@cogic/annotorious 2.7.20 → 2.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotorious.min.css +4 -1
- package/dist/annotorious.min.css.map +1 -0
- package/dist/annotorious.min.js +3 -25
- package/dist/annotorious.min.js.LICENSE.txt +14 -0
- package/dist/annotorious.min.js.map +1 -0
- package/dist/index.html +3 -31
- package/package.json +1 -1
- package/src/tools/rectangle/RubberbandRectTool.js +7 -4
- package/src/util/Touch.js +3 -3
package/dist/annotorious.min.js
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
(function(me,ne){typeof exports=="object"&&typeof module!="undefined"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(me=typeof globalThis!="undefined"?globalThis:me||self,ne(me.Annotorious={}))})(this,function(me){"use strict";var HS=Object.defineProperty;var US=(me,ne,$)=>ne in me?HS(me,ne,{enumerable:!0,configurable:!0,writable:!0,value:$}):me[ne]=$;var h=(me,ne,$)=>(US(me,typeof ne!="symbol"?ne+"":ne,$),$);var ne,$,Ci,Nt,Ai,wi,Oi,fn={},$i=[],Kc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Le(t,e){for(var n in e)t[n]=e[n];return t}function xi(t){var e=t.parentNode;e&&e.removeChild(t)}function Q(t,e,n){var r,o,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?ne.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return Lt(t,a,r,o,null)}function Lt(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++Ci:o};return o==null&&$.vnode!=null&&$.vnode(i),i}function $r(){return{current:null}}function Ce(t){return t.children}function J(t,e){this.props=t,this.context=e}function pt(t,e){if(e==null)return t.__?pt(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?pt(t):null}function Pi(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Pi(t)}}function xr(t){(!t.__d&&(t.__d=!0)&&Nt.push(t)&&!dn.__r++||wi!==$.debounceRendering)&&((wi=$.debounceRendering)||Ai)(dn)}function dn(){for(var t;dn.__r=Nt.length;)t=Nt.sort(function(e,n){return e.__v.__b-n.__v.__b}),Nt=[],t.some(function(e){var n,r,o,i,a,s;e.__d&&(a=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=Le({},i)).__v=i.__v+1,Pr(s,i,o,n.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a==null?pt(i):a,i.__h),Ri(r,i),i.__e!=a&&Pi(i)))})}function Di(t,e,n,r,o,i,a,s,u,c){var l,f,d,p,m,b,v,S=r&&r.__k||$i,C=S.length;for(n.__k=[],l=0;l<e.length;l++)if((p=n.__k[l]=(p=e[l])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Lt(null,p,null,null,p):Array.isArray(p)?Lt(Ce,{children:p},null,null,null):p.__b>0?Lt(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(d=S[l])===null||d&&p.key==d.key&&p.type===d.type)S[l]=void 0;else for(f=0;f<C;f++){if((d=S[f])&&p.key==d.key&&p.type===d.type){S[f]=void 0;break}d=null}Pr(t,p,d=d||fn,o,i,a,s,u,c),m=p.__e,(f=p.ref)&&d.ref!=f&&(v||(v=[]),d.ref&&v.push(d.ref,null,p),v.push(f,p.__c||m,p)),m!=null?(b==null&&(b=m),typeof p.type=="function"&&p.__k===d.__k?p.__d=u=Ti(p,u,t):u=Mi(t,p,d,S,m,u),typeof n.type=="function"&&(n.__d=u)):u&&d.__e==u&&u.parentNode!=t&&(u=pt(d))}for(n.__e=b,l=C;l--;)S[l]!=null&&(typeof n.type=="function"&&S[l].__e!=null&&S[l].__e==n.__d&&(n.__d=pt(r,l+1)),Li(S[l],S[l]));if(v)for(l=0;l<v.length;l++)Ni(v[l],v[++l],v[++l])}function Ti(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?Ti(r,e,n):Mi(n,r,r,o,r.__e,e));return e}function Be(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Be(n,e)}):e.push(t)),e}function Mi(t,e,n,r,o,i){var a,s,u;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;t.insertBefore(o,i),a=i}return a!==void 0?a:o.nextSibling}function Jc(t,e,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in e||pn(t,i,null,n[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||pn(t,i,e[i],n[i],r)}function ki(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||Kc.test(e)?n:n+"px"}function pn(t,e,n,r,o){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||ki(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||ki(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?Ii:Fi,i):t.removeEventListener(e,i?Ii:Fi,i);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function Fi(t){this.l[t.type+!1]($.event?$.event(t):t)}function Ii(t){this.l[t.type+!0]($.event?$.event(t):t)}function Pr(t,e,n,r,o,i,a,s,u){var c,l,f,d,p,m,b,v,S,C,P,F=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,s=e.__e=n.__e,e.__h=null,i=[s]),(c=$.__b)&&c(e);try{e:if(typeof F=="function"){if(v=e.props,S=(c=F.contextType)&&r[c.__c],C=c?S?S.props.value:c.__:r,n.__c?b=(l=e.__c=n.__c).__=l.__E:("prototype"in F&&F.prototype.render?e.__c=l=new F(v,C):(e.__c=l=new J(v,C),l.constructor=F,l.render=Qc),S&&S.sub(l),l.props=v,l.state||(l.state={}),l.context=C,l.__n=r,f=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),F.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Le({},l.__s)),Le(l.__s,F.getDerivedStateFromProps(v,l.__s))),d=l.props,p=l.state,f)F.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(F.getDerivedStateFromProps==null&&v!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(v,C),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(v,l.__s,C)===!1||e.__v===n.__v){l.props=v,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(O){O&&(O.__=e)}),l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(v,l.__s,C),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,p,m)})}l.context=C,l.props=v,l.state=l.__s,(c=$.__r)&&c(e),l.__d=!1,l.__v=e,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(r=Le(Le({},r),l.getChildContext())),f||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(d,p)),P=c!=null&&c.type===Ce&&c.key==null?c.props.children:c,Di(t,Array.isArray(P)?P:[P],e,n,r,o,i,a,s,u),l.base=e.__e,e.__h=null,l.__h.length&&a.push(l),b&&(l.__E=l.__=null),l.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Zc(n.__e,e,n,r,o,i,a,u);(c=$.diffed)&&c(e)}catch(O){e.__v=null,(u||i!=null)&&(e.__e=s,e.__h=!!u,i[i.indexOf(s)]=null),$.__e(O,e,n)}}function Ri(t,e){$.__c&&$.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){$.__e(r,n.__v)}})}function Zc(t,e,n,r,o,i,a,s){var u,c,l,f=n.props,d=e.props,p=e.type,m=0;if(p==="svg"&&(o=!0),i!=null){for(;m<i.length;m++)if((u=i[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){t=u,i[m]=null;break}}if(t==null){if(p===null)return document.createTextNode(d);t=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(p===null)f===d||s&&t.data===d||(t.data=d);else{if(i=i&&ne.call(t.childNodes),c=(f=n.props||fn).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){if(i!=null)for(f={},m=0;m<t.attributes.length;m++)f[t.attributes[m].name]=t.attributes[m].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(Jc(t,d,f,o,s),l)e.__k=[];else if(m=e.props.children,Di(t,Array.isArray(m)?m:[m],e,n,r,o&&p!=="foreignObject",i,a,i?i[0]:n.__k&&pt(n,0),s),i!=null)for(m=i.length;m--;)i[m]!=null&&xi(i[m]);s||("value"in d&&(m=d.value)!==void 0&&(m!==f.value||m!==t.value||p==="progress"&&!m)&&pn(t,"value",m,f.value,!1),"checked"in d&&(m=d.checked)!==void 0&&m!==t.checked&&pn(t,"checked",m,f.checked,!1))}return t}function Ni(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){$.__e(r,n)}}function Li(t,e,n){var r,o;if($.unmount&&$.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ni(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){$.__e(i,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&Li(r[o],e,typeof t.type!="function");n||t.__e==null||xi(t.__e),t.__e=t.__d=void 0}function Qc(t,e,n){return this.constructor(t,n)}function Bt(t,e,n){var r,o,i;$.__&&$.__(t,e),o=(r=typeof n=="function")?null:n&&n.__k||e.__k,i=[],Pr(e,t=(!r&&n||e).__k=Q(Ce,null,[t]),o||fn,fn,e.ownerSVGElement!==void 0,!r&&n?[n]:o?null:e.firstChild?ne.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),Ri(i,t)}function Bi(t,e){Bt(t,e,Bi)}function ef(t,e,n){var r,o,i,a=Le({},t.props);for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?ne.call(arguments,2):n),Lt(t.type,a,r||t.key,o||t.ref,null)}function Vt(t,e){var n={__c:e="__cC"+Oi++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(xr)},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ne=$i.slice,$={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(i){t=i}throw t}},Ci=0,J.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Le({},this.state),typeof t=="function"&&(t=t(Le({},n),this.props)),t&&Le(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),xr(this))},J.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),xr(this))},J.prototype.render=Ce,Nt=[],Ai=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dn.__r=0,Oi=0;var et,re,Vi,ht=0,Dr=[],Hi=$.__b,Ui=$.__r,ji=$.diffed,zi=$.__c,Wi=$.unmount;function mt(t,e){$.__h&&$.__h(re,t,ht||e),ht=0;var n=re.__H||(re.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ve(t){return ht=1,Tr(Xi,t)}function Tr(t,e,n){var r=mt(et++,2);return r.t=t,r.__c||(r.__=[n?n(e):Xi(void 0,e),function(o){var i=r.t(r.__[0],o);r.__[0]!==i&&(r.__=[i,r.__[1]],r.__c.setState({}))}],r.__c=re),r.__}function tt(t,e){var n=mt(et++,3);!$.__s&&Fr(n.__H,e)&&(n.__=t,n.__H=e,re.__H.__h.push(n))}function Mr(t,e){var n=mt(et++,4);!$.__s&&Fr(n.__H,e)&&(n.__=t,n.__H=e,re.__h.push(n))}function $e(t){return ht=5,He(function(){return{current:t}},[])}function Gi(t,e,n){ht=6,Mr(function(){typeof t=="function"?t(e()):t&&(t.current=e())},n==null?n:n.concat(t))}function He(t,e){var n=mt(et++,7);return Fr(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function xe(t,e){return ht=8,He(function(){return t},e)}function Ht(t){var e=re.context[t.__c],n=mt(et++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(re)),e.props.value):t.__}function qi(t,e){$.useDebugValue&&$.useDebugValue(e?e(t):t)}function tf(t){var e=mt(et++,10),n=Ve();return e.__=t,re.componentDidCatch||(re.componentDidCatch=function(r){e.__&&e.__(r),n[1](r)}),[n[0],function(){n[1](void 0)}]}function nf(){var t;for(Dr.sort(function(e,n){return e.__v.__b-n.__v.__b});t=Dr.pop();)if(t.__P)try{t.__H.__h.forEach(hn),t.__H.__h.forEach(kr),t.__H.__h=[]}catch(e){t.__H.__h=[],$.__e(e,t.__v)}}$.__b=function(t){re=null,Hi&&Hi(t)},$.__r=function(t){Ui&&Ui(t),et=0;var e=(re=t.__c).__H;e&&(e.__h.forEach(hn),e.__h.forEach(kr),e.__h=[])},$.diffed=function(t){ji&&ji(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Dr.push(e)!==1&&Vi===$.requestAnimationFrame||((Vi=$.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),Yi&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);Yi&&(r=requestAnimationFrame(o))})(nf)),re=null},$.__c=function(t,e){e.some(function(n){try{n.__h.forEach(hn),n.__h=n.__h.filter(function(r){return!r.__||kr(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],$.__e(r,n.__v)}}),zi&&zi(t,e)},$.unmount=function(t){Wi&&Wi(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{hn(r)}catch(o){e=o}}),e&&$.__e(e,n.__v))};var Yi=typeof requestAnimationFrame=="function";function hn(t){var e=re,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),re=e}function kr(t){var e=re;t.__c=t.__(),re=e}function Fr(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Xi(t,e){return typeof e=="function"?e(t):e}function Ki(t,e){for(var n in e)t[n]=e[n];return t}function Ir(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Ut(t){this.props=t}function Ji(t,e){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!a:Ir(this.props,o)}function r(o){return this.shouldComponentUpdate=n,Q(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ut.prototype=new J).isPureReactComponent=!0,Ut.prototype.shouldComponentUpdate=function(t,e){return Ir(this.props,t)||Ir(this.state,e)};var Zi=$.__b;$.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Zi&&Zi(t)};var rf=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rr(t){function e(n,r){var o=Ki({},n);return delete o.ref,t(o,(r=n.ref||r)&&(typeof r!="object"||"current"in r)?r:null)}return e.$$typeof=rf,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Qi=function(t,e){return t==null?null:Be(Be(t).map(e))},ea={map:Qi,forEach:Qi,count:function(t){return t?Be(t).length:0},only:function(t){var e=Be(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Be},of=$.__e;$.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}of(t,e,n)};var ta=$.unmount;function jt(){this.__u=0,this.t=null,this.__b=null}function na(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function ra(t){var e,n,r;function o(i){if(e||(e=t()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw e;return Q(n,i)}return o.displayName="Lazy",o.__f=!0,o}function vt(){this.u=null,this.o=null}$.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),ta&&ta(t)},(jt.prototype=new J).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=na(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(d,p,m){return d&&(d.__v=null,d.__k=d.__k&&d.__k.map(function(b){return f(b,p,m)}),d.__c&&d.__c.__P===p&&(d.__e&&m.insertBefore(d.__e,d.__d),d.__c.__e=!0,d.__c.__P=m)),d}(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__e:r.__b=null});l=r.t.pop();)l.forceUpdate()}},u=e.__h===!0;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},jt.prototype.componentWillUnmount=function(){this.t=[]},jt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,s,u){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),a.__c.__H=null),(a=Ki({},a)).__c!=null&&(a.__c.__P===u&&(a.__c.__P=s),a.__c=null),a.__k=a.__k&&a.__k.map(function(c){return i(c,s,u)})),a}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&Q(Ce,null,t.fallback);return o&&(o.__h=null),[Q(Ce,null,e.__e?null:t.children),o]};var oa=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function af(t){return this.getChildContext=function(){return t.context},t.children}function sf(t){var e=this,n=t.i;e.componentWillUnmount=function(){Bt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Bt(Q(af,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Nr(t,e){return Q(sf,{__v:t,i:e})}(vt.prototype=new J).__e=function(t){var e=this,n=na(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),oa(e,t,r)):o()};n?n(i):i()}},vt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Be(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},vt.prototype.componentDidUpdate=vt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){oa(t,n,e)})};var ia=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,uf=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,lf=typeof document!="undefined",cf=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function aa(t,e,n){return e.__k==null&&(e.textContent=""),Bt(t,e),typeof n=="function"&&n(),t?t.__c:null}function sa(t,e,n){return Bi(t,e),typeof n=="function"&&n(),t?t.__c:null}J.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(J.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ua=$.event;function ff(){}function df(){return this.cancelBubble}function pf(){return this.defaultPrevented}$.event=function(t){return ua&&(t=ua(t)),t.persist=ff,t.isPropagationStopped=df,t.isDefaultPrevented=pf,t.nativeEvent=t};var la,ca={configurable:!0,get:function(){return this.class}},fa=$.vnode;$.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var o=e.indexOf("-")===-1;for(var i in r={},n){var a=n[i];lf&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&a==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!cf(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&uf.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),r[i]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Be(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Be(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),t.props=r,n.class!=n.className&&(ca.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",ca))}t.$$typeof=ia,fa&&fa(t)};var da=$.__r;$.__r=function(t){da&&da(t),la=t.__c};var pa={ReactCurrentDispatcher:{current:{readContext:function(t){return la.__n[t.__c].props.value}}}},hf="17.0.2";function ha(t){return Q.bind(null,t)}function Lr(t){return!!t&&t.$$typeof===ia}function ma(t){return Lr(t)?ef.apply(null,arguments):t}function va(t){return!!t.__k&&(Bt(null,t),!0)}function ga(t){return t&&(t.base||t.nodeType===1&&t)||null}var ya=function(t,e){return t(e)},ba=function(t,e){return t(e)},mf=Ce,g={useState:Ve,useReducer:Tr,useEffect:tt,useLayoutEffect:Mr,useRef:$e,useImperativeHandle:Gi,useMemo:He,useCallback:xe,useContext:Ht,useDebugValue:qi,version:"17.0.2",Children:ea,render:aa,hydrate:sa,unmountComponentAtNode:va,createPortal:Nr,createElement:Q,createContext:Vt,createFactory:ha,cloneElement:ma,createRef:$r,Fragment:Ce,isValidElement:Lr,findDOMNode:ga,Component:J,PureComponent:Ut,memo:Ji,forwardRef:Rr,flushSync:ba,unstable_batchedUpdates:ya,StrictMode:Ce,Suspense:jt,SuspenseList:vt,lazy:ra,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pa},Br=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:g,version:hf,Children:ea,render:aa,hydrate:sa,unmountComponentAtNode:va,createPortal:Nr,createFactory:ha,cloneElement:ma,isValidElement:Lr,findDOMNode:ga,PureComponent:Ut,memo:Ji,forwardRef:Rr,flushSync:ba,unstable_batchedUpdates:ya,StrictMode:mf,Suspense:jt,SuspenseList:vt,lazy:ra,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pa,createElement:Q,createContext:Vt,createRef:$r,Fragment:Ce,Component:J,useState:Ve,useReducer:Tr,useEffect:tt,useLayoutEffect:Mr,useRef:$e,useImperativeHandle:Gi,useMemo:He,useCallback:xe,useContext:Ht,useDebugValue:qi,useErrorBoundary:tf}),nt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function vf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Vr(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}var Hr={exports:{}};function Ur(){}Ur.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;for(r;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,a=r.length;i<a;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},Hr.exports=Ur,Hr.exports.TinyEmitter=Ur;var mn=Hr.exports;const B="http://www.w3.org/2000/svg",jr=t=>{const e=t.getAttribute("class");return e?new Set(e.split(" ")):new Set},gt=(t,e)=>{const n=jr(t);n.add(e),t.setAttribute("class",Array.from(n).join(" "))},gf=(t,e)=>{const n=jr(t);n.delete(e),n.size===0?t.removeAttribute("class"):t.setAttribute("class",Array.from(n).join(" "))},Sa=(t,e)=>jr(t).has(e),vn=(t,e)=>{const n=t.selector("FragmentSelector");if(n!=null&&n.conformsTo.startsWith("http://www.w3.org/TR/media-frags")){const{value:r}=n,o=r.includes(":")?r.substring(r.indexOf("=")+1,r.indexOf(":")):"pixel",i=r.includes(":")?r.substring(r.indexOf(":")+1):r.substring(r.indexOf("=")+1);let[a,s,u,c]=i.split(",").map(parseFloat);return o.toLowerCase()==="percent"&&(a=a*e.naturalWidth/100,s=s*e.naturalHeight/100,u=u*e.naturalWidth/100,c=c*e.naturalHeight/100),{x:a,y:s,w:u,h:c}}},yf=(t,e,n,r,o)=>({source:o==null?void 0:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=pixel:${t},${e},${n},${r}`}}),bf=(t,e,n,r,o)=>{const i=t/o.naturalWidth*100,a=e/o.naturalHeight*100,s=n/o.naturalWidth*100,u=r/o.naturalHeight*100;return{source:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=percent:${i},${a},${s},${u}`}}},zr=(t,e,n,r,o,i)=>(i==null?void 0:i.toLowerCase())==="percent"?bf(t,e,n,r,o):yf(t,e,n,r,o),gn=(t,e,n,r,o)=>{t.setAttribute("x",e),t.setAttribute("y",n),t.setAttribute("width",r),t.setAttribute("height",o)},yn=(t,e,n)=>{t.setAttribute("cx",e),t.setAttribute("cy",n),t.setAttribute("r",7)},_a=(t,e,n,r,o)=>{const i=document.createElementNS(B,"path");i.setAttribute("fill-rule","evenodd");const{naturalWidth:a,naturalHeight:s}=t;return i.setAttribute("d",`M0 0 h${a} v${s} h-${a} z M${e} ${n} h${r} v${o} h-${r} z`),i},Ea=(t,e,n,r,o,i)=>{const{naturalWidth:a,naturalHeight:s}=e;t.setAttribute("d",`M0 0 h${a} v${s} h-${a} z M${n} ${r} h${o} v${i} h-${o} z`)},Wr=(t,e,n,r)=>{const{x:o,y:i,w:a,h:s}=t.type==="Annotation"||t.type==="Selection"?vn(t,e):{x:t,y:e,w:n,h:r},u=document.createElementNS(B,"g");if(a===0&&s===0){gt(u,"a9s-point"),gt(u,"a9s-non-scaling"),u.setAttribute("transform-origin",`${o} ${i}`);const c=document.createElementNS(B,"circle"),l=document.createElementNS(B,"circle");l.setAttribute("class","a9s-inner"),yn(l,o,i),c.setAttribute("class","a9s-outer"),yn(c,o,i),u.appendChild(c),u.appendChild(l)}else{const c=document.createElementNS(B,"rect"),l=document.createElementNS(B,"rect");l.setAttribute("class","a9s-inner"),gn(l,o,i,a,s),c.setAttribute("class","a9s-outer"),gn(c,o,i,a,s),u.appendChild(c),u.appendChild(l)}return u},Gr=t=>{const e=t.querySelector(".a9s-outer");if(e.nodeName==="rect"){const n=parseFloat(e.getAttribute("x")),r=parseFloat(e.getAttribute("y")),o=parseFloat(e.getAttribute("width")),i=parseFloat(e.getAttribute("height"));return{x:n,y:r,w:o,h:i}}else{const n=parseFloat(e.getAttribute("cx")),r=parseFloat(e.getAttribute("cy"));return{x:n,y:r,w:0,h:0}}},Ca=(t,e,n,r,o)=>{const i=t.querySelector(".a9s-inner"),a=t.querySelector(".a9s-outer");a.nodeName==="rect"?(gn(i,e,n,r,o),gn(a,e,n,r,o)):(yn(i,e,n),yn(a,e,n))},Sf=(t,e)=>{const{w:n,h:r}=vn(t,e);return n*r},bn=t=>{let e=0,n=t.length-1;for(let r=0;r<t.length;r++)e+=(t[n][0]+t[r][0])*(t[n][1]-t[r][1]),n=r;return Math.abs(.5*e)},_f=(t,e,n=!0)=>{const r=t[0],o=t[1];let i=!1,a=0;for(let s=0,u=e.length-1;s<e.length;u=s++){const c=e[s][0],l=e[s][1],f=e[u][0],d=e[u][1];l>o!=d>o&&r<(f-c)*(o-l)/(d-l)+c&&(i=!i,l>d?a++:a--)}return n?a!=0:i},Ef=(t,e)=>{for(let n of t)if(!_f(n,e))return!1;return!0},Cf=t=>{const e=t.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map(o=>o.trim()),n=[];let r=[];for(let o of e){const i=o.substring(0,1);if(i.toLowerCase()==="z")n.push([...r]),r=[];else{const a=o.substring(1).split(" ").map(l=>parseFloat(l.trim())),s=i===i.toUpperCase(),u=s?a[0]:a[0]+r[r.length-1][0],c=s?a[1]:a[1]+r[r.length-1][1];r.push([u,c])}}return r.length>0&&n.push([...r]),n},Af=t=>{const r=new XMLSerializer().serializeToString(t.documentElement).replace("<svg>",`<svg xmlns="${B}">`);return new DOMParser().parseFromString(r,"image/svg+xml").documentElement},Aa=t=>{const e=r=>{Array.from(r.attributes).forEach(o=>{o.name.startsWith("on")&&r.removeAttribute(o.name)})},n=t.getElementsByTagName("script");return Array.from(n).reverse().forEach(r=>r.parentNode.removeChild(r)),e(t),Array.from(t.querySelectorAll("*")).forEach(e),t},qr=t=>{const e=t.selector("SvgSelector");if(e){const n=new DOMParser,{value:r}=e,o=n.parseFromString(r,"image/svg+xml"),i=o.lookupPrefix(B),a=o.lookupNamespaceURI(null);return i||a?Aa(o).firstChild:Aa(Af(o)).firstChild}},wa=t=>{const e=qr(t),n=document.createElementNS(B,"g"),r=e.cloneNode(!0);r.setAttribute("class","a9s-inner");const o=e.cloneNode(!0);return o.setAttribute("class","a9s-outer"),n.appendChild(o),n.appendChild(r),n},Yr=(t,e)=>{const n=t.querySelector(".a9s-inner").cloneNode(!0);n.removeAttribute("class"),n.removeAttribute("xmlns");let r=n.outerHTML||new XMLSerializer().serializeToString(n);return r=r.replace(` xmlns="${B}"`,""),{source:e==null?void 0:e.src,selector:{type:"SvgSelector",value:`<svg>${r}</svg>`}}},wf=t=>{const e=qr(t),n=e.nodeName.toLowerCase();if(n==="polygon")return Of(e);if(n==="circle")return $f(e);if(n==="ellipse")return xf(e);if(n=="path")return Pf(e);if(n=="line")return 0;throw`Unsupported SVG shape type: ${n}`},Of=t=>{const e=t.getAttribute("points").trim().split(" ").map(n=>n.split(",").map(r=>parseFloat(r.trim())));return bn(e)},$f=t=>{const e=t.getAttribute("r");return e*e*Math.PI},xf=t=>{const e=t.getAttribute("rx"),n=t.getAttribute("ry");return e*n*Math.PI},Pf=t=>{const e=Cf(t);if(e.length==1)return bn(e[0]);{const n=o=>e.find(i=>{if(o!==i)return Ef(o,i)});let r=0;for(let o of e)n(o)?r-=bn(o):r+=bn(o);return r}},Df={FragmentSelector:Wr,SvgSelector:wa},Tf={FragmentSelector:Sf,SvgSelector:wf},Oa=t=>{const e=t.targets[0];if(e)return Array.isArray(e.selector)?e.selector[0]:e.selector},Mf=(t,e)=>Df[Oa(t).type](t,e),Sn=(t,e)=>Tf[Oa(t).type](t,e);var _n={exports:{}},$a={},yt=Vr(Br),zt={exports:{}},kf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ff=kf,If=Ff;function xa(){}function Pa(){}Pa.resetWarningCache=xa;var Rf=function(){function t(r,o,i,a,s,u){if(u!==If){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Pa,resetWarningCache:xa};return n.PropTypes=n,n};zt.exports=Rf();function Da(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Da(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Nf(){for(var t=0,e,n,r="";t<arguments.length;)(e=arguments[t++])&&(n=Da(e))&&(r&&(r+=" "),r+=n);return r}var Lf=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nf}),Bf=Vr(Lf),q={},Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.findInArray=Vf,Pe.isFunction=Hf,Pe.isNum=Uf,Pe.int=jf,Pe.dontSetMe=zf;function Vf(t,e){for(var n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]}function Hf(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Function]"}function Uf(t){return typeof t=="number"&&!isNaN(t)}function jf(t){return parseInt(t,10)}function zf(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))}var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.getPrefix=Ta,rt.browserPrefixToKey=Ma,rt.browserPrefixToStyle=Wf,rt.default=void 0;var Xr=["Moz","Webkit","O","ms"];function Ta(){var t,e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var r=(t=window.document)===null||t===void 0||(e=t.documentElement)===null||e===void 0?void 0:e.style;if(!r||n in r)return"";for(var o=0;o<Xr.length;o++)if(Ma(n,Xr[o])in r)return Xr[o];return""}function Ma(t,e){return e?"".concat(e).concat(Gf(t)):t}function Wf(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t}function Gf(t){for(var e="",n=!0,r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):t[r]==="-"?n=!0:e+=t[r];return e}var qf=Ta();rt.default=qf;function En(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?En=function(n){return typeof n}:En=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},En(t)}Object.defineProperty(q,"__esModule",{value:!0}),q.matchesSelector=La,q.matchesSelectorAndParentsTo=Xf,q.addEvent=Kf,q.removeEvent=Jf,q.outerHeight=Zf,q.outerWidth=Qf,q.innerHeight=ed,q.innerWidth=td,q.offsetXYFromParent=nd,q.createCSSTransform=rd,q.createSVGTransform=od,q.getTranslation=Kr,q.getTouch=id,q.getTouchIdentifier=ad,q.addUserSelectStyles=sd,q.removeUserSelectStyles=ud,q.addClassName=Ba,q.removeClassName=Va;var ge=Pe,ka=Yf(rt);function Fa(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Fa=function(o){return o?n:e})(t)}function Yf(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||En(t)!=="object"&&typeof t!="function")return{default:t};var n=Fa(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function Ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ra(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ia(Object(n),!0).forEach(function(r){Na(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Na(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cn="";function La(t,e){return Cn||(Cn=(0,ge.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,ge.isFunction)(t[n])})),(0,ge.isFunction)(t[Cn])?t[Cn](e):!1}function Xf(t,e,n){var r=t;do{if(La(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function Kf(t,e,n,r){if(!!t){var o=Ra({capture:!0},r);t.addEventListener?t.addEventListener(e,n,o):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}}function Jf(t,e,n,r){if(!!t){var o=Ra({capture:!0},r);t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}}function Zf(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,ge.int)(n.borderTopWidth),e+=(0,ge.int)(n.borderBottomWidth),e}function Qf(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,ge.int)(n.borderLeftWidth),e+=(0,ge.int)(n.borderRightWidth),e}function ed(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,ge.int)(n.paddingTop),e-=(0,ge.int)(n.paddingBottom),e}function td(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,ge.int)(n.paddingLeft),e-=(0,ge.int)(n.paddingRight),e}function nd(t,e,n){var r=e===e.ownerDocument.body,o=r?{left:0,top:0}:e.getBoundingClientRect(),i=(t.clientX+e.scrollLeft-o.left)/n,a=(t.clientY+e.scrollTop-o.top)/n;return{x:i,y:a}}function rd(t,e){var n=Kr(t,e,"px");return Na({},(0,ka.browserPrefixToKey)("transform",ka.default),n)}function od(t,e){var n=Kr(t,e,"");return n}function Kr(t,e,n){var r=t.x,o=t.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(e){var a="".concat(typeof e.x=="string"?e.x:e.x+n),s="".concat(typeof e.y=="string"?e.y:e.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function id(t,e){return t.targetTouches&&(0,ge.findInArray)(t.targetTouches,function(n){return e===n.identifier})||t.changedTouches&&(0,ge.findInArray)(t.changedTouches,function(n){return e===n.identifier})}function ad(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}function sd(t){if(!!t){var e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
2
|
-
`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
3
|
-
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ed(t,e){if(!!t){if(typeof t=="string")return Ua(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ua(t,e)}}function Ua(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cd(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));o=!0);}catch(u){i=!0,s=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Ad(t){if(Array.isArray(t))return t}function wd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ja(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Od(t,e,n){return e&&ja(t.prototype,e),n&&ja(t,n),t}function $d(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&to(t,e)}function to(t,e){return to=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},to(t,e)}function xd(t){var e=Dd();return function(){var r=On(t),o;if(e){var i=On(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Pd(this,o)}}function Pd(t,e){if(e&&(Wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(t)}function ue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dd(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},On(t)}function Ae(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Oe={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ge=Oe.mouse,$n=function(t){$d(n,t);var e=xd(n);function n(){var r;wd(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i)),Ae(ue(r),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),Ae(ue(r),"mounted",!1),Ae(ue(r),"handleDragStart",function(s){if(r.props.onMouseDown(s),!r.props.allowAnyClick&&typeof s.button=="number"&&s.button!==0)return!1;var u=r.findDOMNode();if(!u||!u.ownerDocument||!u.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var c=u.ownerDocument;if(!(r.props.disabled||!(s.target instanceof c.defaultView.Node)||r.props.handle&&!(0,se.matchesSelectorAndParentsTo)(s.target,r.props.handle,u)||r.props.cancel&&(0,se.matchesSelectorAndParentsTo)(s.target,r.props.cancel,u))){s.type==="touchstart"&&s.preventDefault();var l=(0,se.getTouchIdentifier)(s);r.setState({touchIdentifier:l});var f=(0,ot.getControlPosition)(s,l,ue(r));if(f!=null){var d=f.x,p=f.y,m=(0,ot.createCoreData)(ue(r),d,p);(0,Gt.default)("DraggableCore: handleDragStart: %j",m),(0,Gt.default)("calling",r.props.onStart);var b=r.props.onStart(s,m);b===!1||r.mounted===!1||(r.props.enableUserSelectHack&&(0,se.addUserSelectStyles)(c),r.setState({dragging:!0,lastX:d,lastY:p}),(0,se.addEvent)(c,Ge.move,r.handleDrag),(0,se.addEvent)(c,Ge.stop,r.handleDragStop))}}}),Ae(ue(r),"handleDrag",function(s){var u=(0,ot.getControlPosition)(s,r.state.touchIdentifier,ue(r));if(u!=null){var c=u.x,l=u.y;if(Array.isArray(r.props.grid)){var f=c-r.state.lastX,d=l-r.state.lastY,p=(0,ot.snapToGrid)(r.props.grid,f,d),m=Sd(p,2);if(f=m[0],d=m[1],!f&&!d)return;c=r.state.lastX+f,l=r.state.lastY+d}var b=(0,ot.createCoreData)(ue(r),c,l);(0,Gt.default)("DraggableCore: handleDrag: %j",b);var v=r.props.onDrag(s,b);if(v===!1||r.mounted===!1){try{r.handleDragStop(new MouseEvent("mouseup"))}catch{var S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.handleDragStop(S)}return}r.setState({lastX:c,lastY:l})}}),Ae(ue(r),"handleDragStop",function(s){if(!!r.state.dragging){var u=(0,ot.getControlPosition)(s,r.state.touchIdentifier,ue(r));if(u!=null){var c=u.x,l=u.y,f=(0,ot.createCoreData)(ue(r),c,l),d=r.props.onStop(s,f);if(d===!1||r.mounted===!1)return!1;var p=r.findDOMNode();p&&r.props.enableUserSelectHack&&(0,se.removeUserSelectStyles)(p.ownerDocument),(0,Gt.default)("DraggableCore: handleDragStop: %j",f),r.setState({dragging:!1,lastX:NaN,lastY:NaN}),p&&((0,Gt.default)("DraggableCore: Removing handlers"),(0,se.removeEvent)(p.ownerDocument,Ge.move,r.handleDrag),(0,se.removeEvent)(p.ownerDocument,Ge.stop,r.handleDragStop))}}}),Ae(ue(r),"onMouseDown",function(s){return Ge=Oe.mouse,r.handleDragStart(s)}),Ae(ue(r),"onMouseUp",function(s){return Ge=Oe.mouse,r.handleDragStop(s)}),Ae(ue(r),"onTouchStart",function(s){return Ge=Oe.touch,r.handleDragStart(s)}),Ae(ue(r),"onTouchEnd",function(s){return Ge=Oe.touch,r.handleDragStop(s)}),r}return Od(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var o=this.findDOMNode();o&&(0,se.addEvent)(o,Oe.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.findDOMNode();if(o){var i=o.ownerDocument;(0,se.removeEvent)(i,Oe.mouse.move,this.handleDrag),(0,se.removeEvent)(i,Oe.touch.move,this.handleDrag),(0,se.removeEvent)(i,Oe.mouse.stop,this.handleDragStop),(0,se.removeEvent)(i,Oe.touch.stop,this.handleDragStop),(0,se.removeEvent)(o,Oe.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,se.removeUserSelectStyles)(i)}}},{key:"findDOMNode",value:function(){var o,i,a;return(o=(i=this.props)===null||i===void 0||(a=i.nodeRef)===null||a===void 0?void 0:a.current)!==null&&o!==void 0?o:yd.default.findDOMNode(this)}},{key:"render",value:function(){return Zr.cloneElement(Zr.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(Zr.Component);An.default=$n,Ae($n,"displayName","DraggableCore"),Ae($n,"propTypes",{allowAnyClick:be.default.bool,disabled:be.default.bool,enableUserSelectHack:be.default.bool,offsetParent:function(e,n){if(e[n]&&e[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:be.default.arrayOf(be.default.number),handle:be.default.string,cancel:be.default.string,nodeRef:be.default.object,onStart:be.default.func,onDrag:be.default.func,onStop:be.default.func,onMouseDown:be.default.func,scale:be.default.number,className:Qr.dontSetMe,style:Qr.dontSetMe,transform:Qr.dontSetMe}),Ae($n,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(t){function e(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(E){return typeof E}:e=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(y)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var n=m(yt),r=d(zt.exports),o=d(yt),i=d(Bf),a=q,s=De,u=Pe,c=d(An),l=d(wn),f=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function d(y){return y&&y.__esModule?y:{default:y}}function p(y){if(typeof WeakMap!="function")return null;var _=new WeakMap,E=new WeakMap;return(p=function(w){return w?E:_})(y)}function m(y,_){if(!_&&y&&y.__esModule)return y;if(y===null||e(y)!=="object"&&typeof y!="function")return{default:y};var E=p(_);if(E&&E.has(y))return E.get(y);var A={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in y)if(D!=="default"&&Object.prototype.hasOwnProperty.call(y,D)){var I=w?Object.getOwnPropertyDescriptor(y,D):null;I&&(I.get||I.set)?Object.defineProperty(A,D,I):A[D]=y[D]}return A.default=y,E&&E.set(y,A),A}function b(){return b=Object.assign||function(y){for(var _=1;_<arguments.length;_++){var E=arguments[_];for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(y[A]=E[A])}return y},b.apply(this,arguments)}function v(y,_){if(y==null)return{};var E=S(y,_),A,w;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(y);for(w=0;w<D.length;w++)A=D[w],!(_.indexOf(A)>=0)&&(!Object.prototype.propertyIsEnumerable.call(y,A)||(E[A]=y[A]))}return E}function S(y,_){if(y==null)return{};var E={},A=Object.keys(y),w,D;for(D=0;D<A.length;D++)w=A[D],!(_.indexOf(w)>=0)&&(E[w]=y[w]);return E}function C(y,_){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(y);_&&(A=A.filter(function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable})),E.push.apply(E,A)}return E}function P(y){for(var _=1;_<arguments.length;_++){var E=arguments[_]!=null?arguments[_]:{};_%2?C(Object(E),!0).forEach(function(A){we(y,A,E[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(E)):C(Object(E)).forEach(function(A){Object.defineProperty(y,A,Object.getOwnPropertyDescriptor(E,A))})}return y}function F(y,_){return H(y)||X(y,_)||k(y,_)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(y,_){if(!!y){if(typeof y=="string")return x(y,_);var E=Object.prototype.toString.call(y).slice(8,-1);if(E==="Object"&&y.constructor&&(E=y.constructor.name),E==="Map"||E==="Set")return Array.from(y);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return x(y,_)}}function x(y,_){(_==null||_>y.length)&&(_=y.length);for(var E=0,A=new Array(_);E<_;E++)A[E]=y[E];return A}function X(y,_){var E=y==null?null:typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(E!=null){var A=[],w=!0,D=!1,I,j;try{for(E=E.call(y);!(w=(I=E.next()).done)&&(A.push(I.value),!(_&&A.length===_));w=!0);}catch(U){D=!0,j=U}finally{try{!w&&E.return!=null&&E.return()}finally{if(D)throw j}}return A}}function H(y){if(Array.isArray(y))return y}function fe(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function W(y,_){for(var E=0;E<_.length;E++){var A=_[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(y,A.key,A)}}function z(y,_,E){return _&&W(y.prototype,_),E&&W(y,E),y}function Y(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),_&&de(y,_)}function de(y,_){return de=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A},de(y,_)}function Ie(y){var _=ln();return function(){var A=Re(y),w;if(_){var D=Re(this).constructor;w=Reflect.construct(A,arguments,D)}else w=A.apply(this,arguments);return he(this,w)}}function he(y,_){if(_&&(e(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return te(y)}function te(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function ln(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Re(y){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},Re(y)}function we(y,_,E){return _ in y?Object.defineProperty(y,_,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[_]=E,y}var dt=function(y){Y(E,y);var _=Ie(E);function E(A){var w;return fe(this,E),w=_.call(this,A),we(te(w),"onDragStart",function(D,I){(0,l.default)("Draggable: onDragStart: %j",I);var j=w.props.onStart(D,(0,s.createDraggableData)(te(w),I));if(j===!1)return!1;w.setState({dragging:!0,dragged:!0})}),we(te(w),"onDrag",function(D,I){if(!w.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",I);var j=(0,s.createDraggableData)(te(w),I),U={x:j.x,y:j.y};if(w.props.bounds){var Ze=U.x,We=U.y;U.x+=w.state.slackX,U.y+=w.state.slackY;var Qe=(0,s.getBoundPosition)(te(w),U.x,U.y),Ne=F(Qe,2),cn=Ne[0],wr=Ne[1];U.x=cn,U.y=wr,U.slackX=w.state.slackX+(Ze-U.x),U.slackY=w.state.slackY+(We-U.y),j.x=U.x,j.y=U.y,j.deltaX=U.x-w.state.x,j.deltaY=U.y-w.state.y}var Or=w.props.onDrag(D,j);if(Or===!1)return!1;w.setState(U)}),we(te(w),"onDragStop",function(D,I){if(!w.state.dragging)return!1;var j=w.props.onStop(D,(0,s.createDraggableData)(te(w),I));if(j===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",I);var U={dragging:!1,slackX:0,slackY:0},Ze=Boolean(w.props.position);if(Ze){var We=w.props.position,Qe=We.x,Ne=We.y;U.x=Qe,U.y=Ne}w.setState(U)}),w.state={dragging:!1,dragged:!1,x:A.position?A.position.x:A.defaultPosition.x,y:A.position?A.position.y:A.defaultPosition.y,prevPropsPosition:P({},A.position),slackX:0,slackY:0,isElementSVG:!1},A.position&&!(A.onDrag||A.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),w}return z(E,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var w,D,I;return(w=(D=this.props)===null||D===void 0||(I=D.nodeRef)===null||I===void 0?void 0:I.current)!==null&&w!==void 0?w:o.default.findDOMNode(this)}},{key:"render",value:function(){var w,D=this.props;D.axis,D.bounds;var I=D.children,j=D.defaultPosition,U=D.defaultClassName,Ze=D.defaultClassNameDragging,We=D.defaultClassNameDragged,Qe=D.position,Ne=D.positionOffset;D.scale;var cn=v(D,f),wr={},Or=null,BS=Boolean(Qe),qc=!BS||this.state.dragging,Yc=Qe||j,Xc={x:(0,s.canDragX)(this)&&qc?this.state.x:Yc.x,y:(0,s.canDragY)(this)&&qc?this.state.y:Yc.y};this.state.isElementSVG?Or=(0,a.createSVGTransform)(Xc,Ne):wr=(0,a.createCSSTransform)(Xc,Ne);var VS=(0,i.default)(I.props.className||"",U,(w={},we(w,Ze,this.state.dragging),we(w,We,this.state.dragged),w));return n.createElement(c.default,b({},cn,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(I),{className:VS,style:P(P({},I.props.style),wr),transform:Or}))}}],[{key:"getDerivedStateFromProps",value:function(w,D){var I=w.position,j=D.prevPropsPosition;return I&&(!j||I.x!==j.x||I.y!==j.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:I,prevPropsPosition:j}),{x:I.x,y:I.y,prevPropsPosition:P({},I)}):null}}]),E}(n.Component);t.default=dt,we(dt,"displayName","Draggable"),we(dt,"propTypes",P(P({},c.default.propTypes),{},{axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),we(dt,"defaultProps",P(P({},c.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}($a);var za=$a,Wa=za.default,Td=za.DraggableCore;_n.exports=Wa,_n.exports.default=Wa,_n.exports.DraggableCore=Td;var Md=_n.exports,kd=["second","minute","hour","day","week","month","year"];function Fd(t,e){if(e===0)return["just now","right now"];var n=kd[Math.floor(e/2)];return t>1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]}var Id=["\u79D2","\u5206\u949F","\u5C0F\u65F6","\u5929","\u5468","\u4E2A\u6708","\u5E74"];function Rd(t,e){if(e===0)return["\u521A\u521A","\u7247\u523B\u540E"];var n=Id[~~(e/2)];return[t+" "+n+"\u524D",t+" "+n+"\u540E"]}var no={},G=function(t,e){no[t]=e},Ga=function(t){return no[t]||no.en_US},it=[60,60,24,7,365/7/12,12];function qa(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}function Ya(t,e){var n=t<0?1:0;t=Math.abs(t);for(var r=t,o=0;t>=it[o]&&o<it.length;o++)t/=it[o];return t=Math.floor(t),o*=2,t>(o===0?9:1)&&(o+=1),e(t,o,r)[n].replace("%s",t.toString())}function Xa(t,e){var n=e?qa(e):new Date;return(+n-+qa(t))/1e3}function Nd(t){for(var e=1,n=0,r=Math.abs(t);t>=it[n]&&n<it.length;n++)t/=it[n],e*=it[n];return r=r%e,r=r?e-r:e,Math.ceil(r)}var Ld=function(t,e,n){var r=Xa(t,n&&n.relativeDate);return Ya(r,Ga(e))},Ka="timeago-id";function Bd(t){return t.getAttribute("datetime")}function Vd(t,e){t.setAttribute(Ka,e)}function Ja(t){return parseInt(t.getAttribute(Ka))}var ro={},oo=function(t){clearTimeout(t),delete ro[t]};function Za(t,e,n,r){oo(Ja(t));var o=r.relativeDate,i=r.minInterval,a=Xa(e,o);t.innerText=Ya(a,n);var s=setTimeout(function(){Za(t,e,n,r)},Math.min(Math.max(Nd(a),i||1)*1e3,2147483647));ro[s]=0,Vd(t,s)}function Qa(t){t?oo(Ja(t)):Object.keys(ro).forEach(oo)}function Hd(t,e,n){var r=t.length?t:[t];return r.forEach(function(o){Za(o,Bd(o),Ga(e),n||{})}),r}G("en_US",Fd),G("zh_CN",Rd);var Ud=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),io=globalThis&&globalThis.__assign||function(){return io=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},io.apply(this,arguments)},jd=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n},zd=function(t){return""+(t instanceof Date?t.getTime():t)},Wd=function(t){Ud(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.dom=null,n}return e.prototype.componentDidMount=function(){this.renderTimeAgo()},e.prototype.componentDidUpdate=function(){this.renderTimeAgo()},e.prototype.renderTimeAgo=function(){var n=this.props,r=n.live,o=n.datetime,i=n.locale,a=n.opts;Qa(this.dom),r!==!1&&(this.dom.setAttribute("datetime",zd(o)),Hd(this.dom,i,a))},e.prototype.componentWillUnmount=function(){Qa(this.dom)},e.prototype.render=function(){var n=this,r=this.props,o=r.datetime;r.live;var i=r.locale,a=r.opts,s=jd(r,["datetime","live","locale","opts"]);return Q("time",io({ref:function(u){n.dom=u}},s),Ld(o,i,a))},e.defaultProps={live:!0,className:""},e}(Ut);function Gd(t,e){const n=r=>{t.current&&!t.current.contains(event.target)&&e()};tt(()=>(document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)))}var es=Object.prototype.toString,ts=function(e){var n=es.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&es.call(e.callee)==="[object Function]"),r},ns;if(!Object.keys){var xn=Object.prototype.hasOwnProperty,rs=Object.prototype.toString,qd=ts,os=Object.prototype.propertyIsEnumerable,Yd=!os.call({toString:null},"toString"),Xd=os.call(function(){},"prototype"),Pn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ao=function(t){var e=t.constructor;return e&&e.prototype===t},Kd={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Jd=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!Kd["$"+t]&&xn.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{ao(window[t])}catch{return!0}}catch{return!0}return!1}(),Zd=function(t){if(typeof window=="undefined"||!Jd)return ao(t);try{return ao(t)}catch{return!1}};ns=function(e){var n=e!==null&&typeof e=="object",r=rs.call(e)==="[object Function]",o=qd(e),i=n&&rs.call(e)==="[object String]",a=[];if(!n&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var s=Xd&&r;if(i&&e.length>0&&!xn.call(e,0))for(var u=0;u<e.length;++u)a.push(String(u));if(o&&e.length>0)for(var c=0;c<e.length;++c)a.push(String(c));else for(var l in e)!(s&&l==="prototype")&&xn.call(e,l)&&a.push(String(l));if(Yd)for(var f=Zd(e),d=0;d<Pn.length;++d)!(f&&Pn[d]==="constructor")&&xn.call(e,Pn[d])&&a.push(Pn[d]);return a}}var Qd=ns,ep=Array.prototype.slice,tp=ts,is=Object.keys,Dn=is?function(e){return is(e)}:Qd,as=Object.keys;Dn.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return tp(r)?as(ep.call(r)):as(r)})}else Object.keys=Dn;return Object.keys||Dn};var np=Dn,rp=np,op=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ip=Object.prototype.toString,ap=Array.prototype.concat,so=Object.defineProperty,sp=function(t){return typeof t=="function"&&ip.call(t)==="[object Function]"},up=function(){var t={};try{so(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch{return!1}},ss=so&&up(),lp=function(t,e,n,r){e in t&&(!sp(r)||!r())||(ss?so(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},us=function(t,e){var n=arguments.length>2?arguments[2]:{},r=rp(e);op&&(r=ap.call(r,Object.getOwnPropertySymbols(e)));for(var o=0;o<r.length;o+=1)lp(t,r[o],e[r[o]],n[r[o]])};us.supportsDescriptors=!!ss;var St=us,_t={exports:{}},cp="Function.prototype.bind called on incompatible ",uo=Array.prototype.slice,fp=Object.prototype.toString,dp="[object Function]",pp=function(e){var n=this;if(typeof n!="function"||fp.call(n)!==dp)throw new TypeError(cp+n);for(var r=uo.call(arguments,1),o,i=function(){if(this instanceof o){var l=n.apply(this,r.concat(uo.call(arguments)));return Object(l)===l?l:this}else return n.apply(e,r.concat(uo.call(arguments)))},a=Math.max(0,n.length-r.length),s=[],u=0;u<a;u++)s.push("$"+u);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},hp=pp,lo=Function.prototype.bind||hp,ls=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;e[n]=o;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},cs=typeof Symbol!="undefined"&&Symbol,mp=ls,fs=function(){return typeof cs!="function"||typeof Symbol!="function"||typeof cs("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:mp()},vp=lo,ds=vp.call(Function.call,Object.prototype.hasOwnProperty),R,qt=SyntaxError,ps=Function,Et=TypeError,co=function(t){try{return ps('"use strict"; return ('+t+").constructor;")()}catch{}},at=Object.getOwnPropertyDescriptor;if(at)try{at({},"")}catch{at=null}var fo=function(){throw new Et},gp=at?function(){try{return arguments.callee,fo}catch{try{return at(arguments,"callee").get}catch{return fo}}}():fo,Ct=fs(),qe=Object.getPrototypeOf||function(t){return t.__proto__},At={},yp=typeof Uint8Array=="undefined"?R:qe(Uint8Array),wt={"%AggregateError%":typeof AggregateError=="undefined"?R:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?R:ArrayBuffer,"%ArrayIteratorPrototype%":Ct?qe([][Symbol.iterator]()):R,"%AsyncFromSyncIteratorPrototype%":R,"%AsyncFunction%":At,"%AsyncGenerator%":At,"%AsyncGeneratorFunction%":At,"%AsyncIteratorPrototype%":At,"%Atomics%":typeof Atomics=="undefined"?R:Atomics,"%BigInt%":typeof BigInt=="undefined"?R:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?R:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?R:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?R:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?R:FinalizationRegistry,"%Function%":ps,"%GeneratorFunction%":At,"%Int8Array%":typeof Int8Array=="undefined"?R:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?R:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?R:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ct?qe(qe([][Symbol.iterator]())):R,"%JSON%":typeof JSON=="object"?JSON:R,"%Map%":typeof Map=="undefined"?R:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Ct?R:qe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?R:Promise,"%Proxy%":typeof Proxy=="undefined"?R:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?R:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?R:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Ct?R:qe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?R:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ct?qe(""[Symbol.iterator]()):R,"%Symbol%":Ct?Symbol:R,"%SyntaxError%":qt,"%ThrowTypeError%":gp,"%TypedArray%":yp,"%TypeError%":Et,"%Uint8Array%":typeof Uint8Array=="undefined"?R:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?R:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?R:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?R:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?R:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?R:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?R:WeakSet},bp=function t(e){var n;if(e==="%AsyncFunction%")n=co("async function () {}");else if(e==="%GeneratorFunction%")n=co("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=co("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(n=qe(o.prototype))}return wt[e]=n,n},hs={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Tn=lo,Mn=ds,Sp=Tn.call(Function.call,Array.prototype.concat),_p=Tn.call(Function.apply,Array.prototype.splice),ms=Tn.call(Function.call,String.prototype.replace),kn=Tn.call(Function.call,String.prototype.slice),Ep=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Cp=/\\(\\)?/g,Ap=function(e){var n=kn(e,0,1),r=kn(e,-1);if(n==="%"&&r!=="%")throw new qt("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new qt("invalid intrinsic syntax, expected opening `%`");var o=[];return ms(e,Ep,function(i,a,s,u){o[o.length]=s?ms(u,Cp,"$1"):a||i}),o},wp=function(e,n){var r=e,o;if(Mn(hs,r)&&(o=hs[r],r="%"+o[0]+"%"),Mn(wt,r)){var i=wt[r];if(i===At&&(i=bp(r)),typeof i=="undefined"&&!n)throw new Et("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new qt("intrinsic "+e+" does not exist!")},pe=function(e,n){if(typeof e!="string"||e.length===0)throw new Et("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Et('"allowMissing" argument must be a boolean');var r=Ap(e),o=r.length>0?r[0]:"",i=wp("%"+o+"%",n),a=i.name,s=i.value,u=!1,c=i.alias;c&&(o=c[0],_p(r,Sp([0,1],c)));for(var l=1,f=!0;l<r.length;l+=1){var d=r[l],p=kn(d,0,1),m=kn(d,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new qt("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(u=!0),o+="."+d,a="%"+o+"%",Mn(wt,a))s=wt[a];else if(s!=null){if(!(d in s)){if(!n)throw new Et("base intrinsic for "+e+" exists, but the property is not available.");return}if(at&&l+1>=r.length){var b=at(s,d);f=!!b,f&&"get"in b&&!("originalValue"in b.get)?s=b.get:s=s[d]}else f=Mn(s,d),s=s[d];f&&!u&&(wt[a]=s)}}return s};(function(t){var e=lo,n=pe,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||e.call(o,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(f){var d=i(e,o,arguments);if(a&&s){var p=a(d,"length");p.configurable&&s(d,"length",{value:1+u(0,f.length-(arguments.length-1))})}return d};var c=function(){return i(e,r,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(_t);var vs=pe,gs=_t.exports,Op=gs(vs("String.prototype.indexOf")),st=function(e,n){var r=vs(e,!!n);return typeof r=="function"&&Op(e,".prototype.")>-1?gs(r):r},$p=pe,xp=$p("%TypeError%"),Pp=function(e,n){if(e==null)throw new xp(n||"Cannot call method on "+e);return e},Fn=Pp,Dp=pe,ys=Dp("%Array%"),Tp=!ys.isArray&&st("Object.prototype.toString"),Mp=ys.isArray||function(e){return Tp(e)==="[object Array]"},bs=pe,kp=st,Fp=bs("%TypeError%"),Ip=Mp,Rp=bs("%Reflect.apply%",!0)||kp("%Function.prototype.apply%"),Np=function(e,n){var r=arguments.length>2?arguments[2]:[];if(!Ip(r))throw new Fp("Assertion failed: optional `argumentsList`, if provided, must be a List");return Rp(e,n,r)},Lp={},Bp=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Lp}),Vp=Vr(Bp),po=typeof Map=="function"&&Map.prototype,ho=Object.getOwnPropertyDescriptor&&po?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,In=po&&ho&&typeof ho.get=="function"?ho.get:null,Hp=po&&Map.prototype.forEach,mo=typeof Set=="function"&&Set.prototype,vo=Object.getOwnPropertyDescriptor&&mo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Rn=mo&&vo&&typeof vo.get=="function"?vo.get:null,Up=mo&&Set.prototype.forEach,jp=typeof WeakMap=="function"&&WeakMap.prototype,Yt=jp?WeakMap.prototype.has:null,zp=typeof WeakSet=="function"&&WeakSet.prototype,Xt=zp?WeakSet.prototype.has:null,Wp=typeof WeakRef=="function"&&WeakRef.prototype,Ss=Wp?WeakRef.prototype.deref:null,Gp=Boolean.prototype.valueOf,qp=Object.prototype.toString,Yp=Function.prototype.toString,Xp=String.prototype.match,go=String.prototype.slice,Ye=String.prototype.replace,Kp=String.prototype.toUpperCase,_s=String.prototype.toLowerCase,Es=RegExp.prototype.test,Cs=Array.prototype.concat,Te=Array.prototype.join,Jp=Array.prototype.slice,As=Math.floor,yo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,bo=Object.getOwnPropertySymbols,So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="object",le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ot?"object":"symbol")?Symbol.toStringTag:null,ws=Object.prototype.propertyIsEnumerable,Os=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $s(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Es.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-As(-t):As(t);if(r!==t){var o=String(r),i=go.call(e,o.length+1);return Ye.call(o,n,"$&_")+"."+Ye.call(Ye.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ye.call(e,n,"$&_")}var _o=Vp.custom,Eo=_o&&Ps(_o)?_o:null,Zp=function t(e,n,r,o){var i=n||{};if(Xe(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Xe(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Xe(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Xe(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Xe(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ts(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return s?$s(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return s?$s(e,c):c}var l=typeof i.depth=="undefined"?5:i.depth;if(typeof r=="undefined"&&(r=0),r>=l&&l>0&&typeof e=="object")return Co(e)?"[Array]":"[Object]";var f=gh(i,r);if(typeof o=="undefined")o=[];else if(Ds(o,e)>=0)return"[Circular]";function d(Y,de,Ie){if(de&&(o=Jp.call(o),o.push(de)),Ie){var he={depth:i.depth};return Xe(i,"quoteStyle")&&(he.quoteStyle=i.quoteStyle),t(Y,he,r+1,o)}return t(Y,i,r+1,o)}if(typeof e=="function"){var p=uh(e),m=Nn(e,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Te.call(m,", ")+" }":"")}if(Ps(e)){var b=Ot?Ye.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):So.call(e);return typeof e=="object"&&!Ot?Kt(b):b}if(hh(e)){for(var v="<"+_s.call(String(e.nodeName)),S=e.attributes||[],C=0;C<S.length;C++)v+=" "+S[C].name+"="+xs(Qp(S[C].value),"double",i);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+_s.call(String(e.nodeName))+">",v}if(Co(e)){if(e.length===0)return"[]";var P=Nn(e,d);return f&&!vh(P)?"["+wo(P,f)+"]":"[ "+Te.call(P,", ")+" ]"}if(nh(e)){var F=Nn(e,d);return"cause"in e&&!ws.call(e,"cause")?"{ ["+String(e)+"] "+Te.call(Cs.call("[cause]: "+d(e.cause),F),", ")+" }":F.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Te.call(F,", ")+" }"}if(typeof e=="object"&&a){if(Eo&&typeof e[Eo]=="function")return e[Eo]();if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(lh(e)){var O=[];return Hp.call(e,function(Y,de){O.push(d(de,e,!0)+" => "+d(Y,e))}),Ms("Map",In.call(e),O,f)}if(dh(e)){var k=[];return Up.call(e,function(Y){k.push(d(Y,e))}),Ms("Set",Rn.call(e),k,f)}if(ch(e))return Ao("WeakMap");if(ph(e))return Ao("WeakSet");if(fh(e))return Ao("WeakRef");if(oh(e))return Kt(d(Number(e)));if(ah(e))return Kt(d(yo.call(e)));if(ih(e))return Kt(Gp.call(e));if(rh(e))return Kt(d(String(e)));if(!eh(e)&&!th(e)){var x=Nn(e,d),X=Os?Os(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",fe=!X&&le&&Object(e)===e&&le in e?go.call(Ke(e),8,-1):H?"Object":"",W=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=W+(fe||H?"["+Te.call(Cs.call([],fe||[],H||[]),": ")+"] ":"");return x.length===0?z+"{}":f?z+"{"+wo(x,f)+"}":z+"{ "+Te.call(x,", ")+" }"}return String(e)};function xs(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function Qp(t){return Ye.call(String(t),/"/g,""")}function Co(t){return Ke(t)==="[object Array]"&&(!le||!(typeof t=="object"&&le in t))}function eh(t){return Ke(t)==="[object Date]"&&(!le||!(typeof t=="object"&&le in t))}function th(t){return Ke(t)==="[object RegExp]"&&(!le||!(typeof t=="object"&&le in t))}function nh(t){return Ke(t)==="[object Error]"&&(!le||!(typeof t=="object"&&le in t))}function rh(t){return Ke(t)==="[object String]"&&(!le||!(typeof t=="object"&&le in t))}function oh(t){return Ke(t)==="[object Number]"&&(!le||!(typeof t=="object"&&le in t))}function ih(t){return Ke(t)==="[object Boolean]"&&(!le||!(typeof t=="object"&&le in t))}function Ps(t){if(Ot)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!So)return!1;try{return So.call(t),!0}catch{}return!1}function ah(t){if(!t||typeof t!="object"||!yo)return!1;try{return yo.call(t),!0}catch{}return!1}var sh=Object.prototype.hasOwnProperty||function(t){return t in this};function Xe(t,e){return sh.call(t,e)}function Ke(t){return qp.call(t)}function uh(t){if(t.name)return t.name;var e=Xp.call(Yp.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ds(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function lh(t){if(!In||!t||typeof t!="object")return!1;try{In.call(t);try{Rn.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ch(t){if(!Yt||!t||typeof t!="object")return!1;try{Yt.call(t,Yt);try{Xt.call(t,Xt)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function fh(t){if(!Ss||!t||typeof t!="object")return!1;try{return Ss.call(t),!0}catch{}return!1}function dh(t){if(!Rn||!t||typeof t!="object")return!1;try{Rn.call(t);try{In.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function ph(t){if(!Xt||!t||typeof t!="object")return!1;try{Xt.call(t,Xt);try{Yt.call(t,Yt)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function hh(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ts(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Ts(go.call(t,0,e.maxStringLength),e)+r}var o=Ye.call(Ye.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mh);return xs(o,"single",e)}function mh(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+Kp.call(e.toString(16))}function Kt(t){return"Object("+t+")"}function Ao(t){return t+" { ? }"}function Ms(t,e,n,r){var o=r?wo(n,r):Te.call(n,", ");return t+" ("+e+") {"+o+"}"}function vh(t){for(var e=0;e<t.length;e++)if(Ds(t[e],`
|
|
6
|
-
`)>=0)return!1;return!0}function gh(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Te.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Te.call(Array(e+1),n)}}function wo(t,e){if(t.length===0)return"";var n=`
|
|
7
|
-
`+e.prev+e.base;return n+Te.call(t,","+n)+`
|
|
8
|
-
`+e.prev}function Nn(t,e){var n=Co(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=Xe(t,o)?e(t[o],t):""}var i=typeof bo=="function"?bo(t):[],a;if(Ot){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in t)!Xe(t,u)||n&&String(Number(u))===u&&u<t.length||Ot&&a["$"+u]instanceof Symbol||(Es.call(/[^\w$]/,u)?r.push(e(u,t)+": "+e(t[u],t)):r.push(u+": "+e(t[u],t)));if(typeof bo=="function")for(var c=0;c<i.length;c++)ws.call(t,i[c])&&r.push("["+e(i[c])+"]: "+e(t[i[c]],t));return r}var ks=function(e){return typeof e=="string"||typeof e=="symbol"},yh=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"},bh=yh,Oo=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":bh(e)},Sh=pe,Fs=Sh("%TypeError%"),_h=Zp,Eh=ks,Ch=Oo,Is=function(e,n){if(Ch(e)!=="Object")throw new Fs("Assertion failed: Type(O) is not Object");if(!Eh(n))throw new Fs("Assertion failed: IsPropertyKey(P) is not true, got "+_h(n));return e[n]},Ah=pe,Rs=Ah("%TypeError%"),wh=ks,Oh=Oo,$h=function(e,n){if(Oh(e)!=="Object")throw new Rs("Assertion failed: `O` must be an Object");if(!wh(n))throw new Rs("Assertion failed: `P` must be a Property Key");return n in e},Ns=Function.prototype.toString,$t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,$o,Ln;if(typeof $t=="function"&&typeof Object.defineProperty=="function")try{$o=Object.defineProperty({},"length",{get:function(){throw Ln}}),Ln={},$t(function(){throw 42},null,$o)}catch(t){t!==Ln&&($t=null)}else $t=null;var xh=/^\s*class\b/,xo=function(e){try{var n=Ns.call(e);return xh.test(n)}catch{return!1}},Ph=function(e){try{return xo(e)?!1:(Ns.call(e),!0)}catch{return!1}},Dh=Object.prototype.toString,Th="[object Function]",Mh="[object GeneratorFunction]",kh=typeof Symbol=="function"&&!!Symbol.toStringTag,Ls=typeof document=="object"&&typeof document.all=="undefined"&&document.all!==void 0?document.all:{},Po=$t?function(e){if(e===Ls)return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;try{$t(e,null,$o)}catch(n){if(n!==Ln)return!1}return!xo(e)}:function(e){if(e===Ls)return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;if(kh)return Ph(e);if(xo(e))return!1;var n=Dh.call(e);return n===Th||n===Mh},Fh=Po,Bs=pe,Ih=Bs("%Math%"),Rh=Bs("%Number%"),Nh=Rh.MAX_SAFE_INTEGER||Ih.pow(2,53)-1,Lh=pe,Bh=Lh("%Math.abs%"),Vh=function(e){return Bh(e)},Hh=Math.floor,Uh=function(e){return Hh(e)},Vs=function(e){return e===null||typeof e!="function"&&typeof e!="object"},jh=Object.prototype.toString,Hs=Vs,zh=Po,Us={"[[DefaultValue]]":function(t){var e;if(arguments.length>1?e=arguments[1]:e=jh.call(t)==="[object Date]"?String:Number,e===String||e===Number){var n=e===String?["toString","valueOf"]:["valueOf","toString"],r,o;for(o=0;o<n.length;++o)if(zh(t[n[o]])&&(r=t[n[o]](),Hs(r)))return r;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}},Wh=function(e){return Hs(e)?e:arguments.length>1?Us["[[DefaultValue]]"](e,arguments[1]):Us["[[DefaultValue]]"](e)},Gh=Wh,qh=Gh,Yh=function(e){var n=qh(e,Number);if(typeof n!="string")return+n;var r=n.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(r)?NaN:+r},Xh=Number.isNaN||function(e){return e!==e},Kh=Number.isNaN||function(t){return t!==t},Jh=Number.isFinite||function(t){return typeof t=="number"&&!Kh(t)&&t!==1/0&&t!==-1/0},Zh=function(e){return e>=0?1:-1},Qh=Vh,em=Uh,tm=Yh,nm=Xh,rm=Jh,om=Zh,im=function(e){var n=tm(e);return nm(n)?0:n===0||!rm(n)?n:om(n)*em(Qh(n))},am=pe,sm=am("RegExp.prototype.test"),um=_t.exports,lm=function(e){return um(sm,e)},cm=function(e){return e===null||typeof e!="function"&&typeof e!="object"},fm=ls,js=function(){return fm()&&!!Symbol.toStringTag},dm=Date.prototype.getDay,pm=function(e){try{return dm.call(e),!0}catch{return!1}},hm=Object.prototype.toString,mm="[object Date]",vm=js(),gm=function(e){return typeof e!="object"||e===null?!1:vm?pm(e):hm.call(e)===mm},Do={exports:{}},ym=Object.prototype.toString,bm=fs();if(bm){var Sm=Symbol.prototype.toString,_m=/^Symbol\(.*\)$/,Em=function(e){return typeof e.valueOf()!="symbol"?!1:_m.test(Sm.call(e))};Do.exports=function(e){if(typeof e=="symbol")return!0;if(ym.call(e)!=="[object Symbol]")return!1;try{return Em(e)}catch{return!1}}}else Do.exports=function(e){return!1};var Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",To=Vs,zs=Po,Am=gm,Ws=Do.exports,wm=function(e,n){if(typeof e=="undefined"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof n!="string"||n!=="number"&&n!=="string")throw new TypeError('hint must be "string" or "number"');var r=n==="string"?["toString","valueOf"]:["valueOf","toString"],o,i,a;for(a=0;a<r.length;++a)if(o=e[r[a]],zs(o)&&(i=o.call(e),To(i)))return i;throw new TypeError("No default value")},Om=function(e,n){var r=e[n];if(r!==null&&typeof r!="undefined"){if(!zs(r))throw new TypeError(r+" returned for property "+n+" of object "+e+" is not a function");return r}},$m=function(e){if(To(e))return e;var n="default";arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number"));var r;if(Cm&&(Symbol.toPrimitive?r=Om(e,Symbol.toPrimitive):Ws(e)&&(r=Symbol.prototype.valueOf)),typeof r!="undefined"){var o=r.call(e,n);if(To(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return n==="default"&&(Am(e)||Ws(e))&&(n="string"),wm(e,n==="default"?"number":n)},Gs=$m,xm=function(e){return arguments.length>1?Gs(e,arguments[1]):Gs(e)},Bn=pe,qs=Bn("%TypeError%"),Ys=Bn("%Number%"),Pm=Bn("%RegExp%"),Xs=Bn("%parseInt%"),Ks=st,Vn=lm,Dm=cm,Js=Ks("String.prototype.slice"),Tm=Vn(/^0b[01]+$/i),Mm=Vn(/^0o[0-7]+$/i),km=Vn(/^[-+]0x[0-9a-f]+$/i),Fm=["\x85","\u200B","\uFFFE"].join(""),Im=new Pm("["+Fm+"]","g"),Rm=Vn(Im),Zs=[`
|
|
9
|
-
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),Nm=new RegExp("(^["+Zs+"]+)|(["+Zs+"]+$)","g"),Lm=Ks("String.prototype.replace"),Bm=function(t){return Lm(t,Nm,"")},Vm=xm,Hm=function t(e){var n=Dm(e)?e:Vm(e,Ys);if(typeof n=="symbol")throw new qs("Cannot convert a Symbol value to a number");if(typeof n=="bigint")throw new qs("Conversion from 'BigInt' to 'number' is not allowed.");if(typeof n=="string"){if(Tm(n))return t(Xs(Js(n,2),2));if(Mm(n))return t(Xs(Js(n,2),8));if(Rm(n)||km(n))return NaN;var r=Bm(n);if(r!==n)return t(r)}return Ys(n)},Um=im,jm=Hm,zm=function(e){var n=jm(e);return n!==0&&(n=Um(n)),n===0?0:n},Qs=Nh,Wm=zm,Gm=function(e){var n=Wm(e);return n<=0?0:n>Qs?Qs:n},qm=pe,Ym=qm("%TypeError%"),Xm=Is,Km=Gm,Jm=Oo,Zm=function(e){if(Jm(e)!=="Object")throw new Ym("Assertion failed: `obj` must be an Object");return Km(Xm(e,"length"))},Qm=pe,ev=Qm("%Object%"),tv=Fn,nv=function(e){return tv(e),ev(e)},eu=pe,rv=eu("%String%"),ov=eu("%TypeError%"),tu=function(e){if(typeof e=="symbol")throw new ov("Cannot convert a Symbol value to a string");return rv(e)},iv=String.prototype.valueOf,av=function(e){try{return iv.call(e),!0}catch{return!1}},sv=Object.prototype.toString,uv="[object String]",lv=js(),cv=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:lv?av(e):sv.call(e)===uv},fv=pe,dv=st,pv=fv("%TypeError%"),hv=Np,mv=Is,vv=$h,gv=Fh,yv=Zm,bv=nv,Sv=tu,_v=cv,Ev=dv("String.prototype.split"),nu=Object("a"),Cv=nu[0]!=="a"||!(0 in nu),ru=function(e){var n=bv(this),r=Cv&&_v(this)?Ev(this,""):n,o=yv(r);if(!gv(e))throw new pv("Array.prototype.forEach callback must be a function");var i;arguments.length>1&&(i=arguments[1]);for(var a=0;a<o;){var s=Sv(a),u=vv(r,s);if(u){var c=mv(r,s);hv(e,i,[c,a,r])}a+=1}},Av=function(e){var n=!0,r=!0,o=!1;if(typeof e=="function"){try{e.call("f",function(i,a,s){typeof s!="object"&&(n=!1)}),e.call([null],function(){"use strict";r=typeof this=="string"},"x")}catch{o=!0}return!o&&n&&r}return!1},wv=Av,Ov=ru,ou=function(){var e=Array.prototype.forEach;return wv(e)?e:Ov},$v=St,xv=ou,Pv=function(){var e=xv();return $v(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e},Dv=St,Tv=_t.exports,Mv=st,kv=Fn,Fv=ru,iu=ou,Iv=iu(),Rv=Pv,Nv=Mv("Array.prototype.slice"),Lv=Tv.apply(Iv),au=function(e,n){return kv(e),Lv(e,Nv(arguments,1))};Dv(au,{getPolyfill:iu,implementation:Fv,shim:Rv});var Bv=au,Vv=Fn,su=st,Hv=su("Object.prototype.propertyIsEnumerable"),Uv=su("Array.prototype.push"),uu=function(e){var n=Vv(e),r=[];for(var o in n)Hv(n,o)&&Uv(r,[o,n[o]]);return r},jv=uu,lu=function(){return typeof Object.entries=="function"?Object.entries:jv},zv=lu,Wv=St,Gv=function(){var e=zv();return Wv(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e},qv=St,Yv=_t.exports,Xv=uu,cu=lu,Kv=Gv,fu=Yv(cu(),Object);qv(fu,{getPolyfill:cu,implementation:Xv,shim:Kv});var Jv=fu,Zv=Fn,Qv=tu,eg=st,du=eg("String.prototype.replace"),tg=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ng=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,pu=function(){var e=Qv(Zv(this));return du(du(e,tg,""),ng,"")},rg=pu,hu="\u200B",mu=function(){return String.prototype.trim&&hu.trim()===hu?String.prototype.trim:rg},og=St,ig=mu,ag=function(){var e=ig();return og(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e},sg=_t.exports,ug=St,lg=pu,vu=mu,cg=ag,gu=sg(vu());ug(gu,{getPolyfill:vu,implementation:lg,shim:cg});var fg=gu,Hn=Bv,Mo=Jv,yu=ds,dg=fg,pg=function(e){},hg=String.prototype.replace,bu=String.prototype.split,Un="||||",ko=function(t){var e=t%100,n=e%10;return e!==11&&n===1?0:2<=n&&n<=4&&!(e>=12&&e<=14)?1:2},Su={pluralTypes:{arabic:function(t){if(t<3)return t;var e=t%100;return e>=3&&e<=10?3:e>=11?4:5},bosnian_serbian:ko,chinese:function(){return 0},croatian:ko,french:function(t){return t>=2?1:0},german:function(t){return t!==1?1:0},russian:ko,lithuanian:function(t){return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=9&&(t%100<11||t%100>19)?1:2},czech:function(t){return t===1?0:t>=2&&t<=4?1:2},polish:function(t){if(t===1)return 0;var e=t%10;return 2<=e&&e<=4&&(t%100<10||t%100>=20)?1:2},icelandic:function(t){return t%10!==1||t%100===11?1:0},slovenian:function(t){var e=t%100;return e===1?0:e===2?1:e===3||e===4?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function mg(t){var e={};return Hn(Mo(t),function(n){var r=n[0],o=n[1];Hn(o,function(i){e[i]=r})}),e}function vg(t,e){var n=mg(t.pluralTypeToLanguages);return n[e]||n[bu.call(e,/-/,1)[0]]||n.en}function gg(t,e,n){return t.pluralTypes[e](n)}function yg(){var t={};return function(e,n){var r=t[n];return r&&!e.pluralTypes[r]&&(r=null,t[n]=r),r||(r=vg(e,n),r&&(t[n]=r)),r}}function _u(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bg(t){var e=t&&t.prefix||"%{",n=t&&t.suffix||"}";if(e===Un||n===Un)throw new RangeError('"'+Un+'" token is reserved for pluralization');return new RegExp(_u(e)+"(.*?)"+_u(n),"g")}var Sg=yg(),_g=/%\{(.*?)\}/g;function Fo(t,e,n,r,o){if(typeof t!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(e==null)return t;var i=t,a=r||_g,s=typeof e=="number"?{smart_count:e}:e;if(s.smart_count!=null&&t){var u=o||Su,c=bu.call(t,Un),l=n||"en",f=Sg(u,l),d=gg(u,f,s.smart_count);i=dg(c[d]||c[0])}return i=hg.call(i,a,function(p,m){return!yu(s,m)||s[m]==null?p:s[m]}),i}function Ue(t){var e=t||{};this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en";var n=e.allowMissing?Fo:null;this.onMissingKey=typeof e.onMissingKey=="function"?e.onMissingKey:n,this.warn=e.warn||pg,this.tokenRegex=bg(e.interpolation),this.pluralRules=e.pluralRules||Su}Ue.prototype.locale=function(t){return t&&(this.currentLocale=t),this.currentLocale},Ue.prototype.extend=function(t,e){Hn(Mo(t||{}),function(n){var r=n[0],o=n[1],i=e?e+"."+r:r;typeof o=="object"?this.extend(o,i):this.phrases[i]=o},this)},Ue.prototype.unset=function(t,e){typeof t=="string"?delete this.phrases[t]:Hn(Mo(t||{}),function(n){var r=n[0],o=n[1],i=e?e+"."+r:r;typeof o=="object"?this.unset(o,i):delete this.phrases[i]},this)},Ue.prototype.clear=function(){this.phrases={}},Ue.prototype.replace=function(t){this.clear(),this.extend(t)},Ue.prototype.t=function(t,e){var n,r,o=e==null?{}:e;if(typeof this.phrases[t]=="string")n=this.phrases[t];else if(typeof o._=="string")n=o._;else if(this.onMissingKey){var i=this.onMissingKey;r=i(t,o,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+t+'"'),r=t;return typeof n=="string"&&(r=Fo(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},Ue.prototype.has=function(t){return yu(this.phrases,t)},Ue.transformPhrase=function(e,n,r){return Fo(e,n,r)};var Eg=Ue,Cg={"Add a comment...":"\u0625\u0636\u0627\u0641\u0629 \u062A\u0639\u0644\u064A\u0642","Add a reply...":"\u0625\u0636\u0627\u0641\u0629 \u0631\u062F","Add tag...":"\u0625\u0636\u0627\u0641\u0629 \u0639\u0644\u0627\u0645\u0629",Cancel:"\u0625\u0644\u063A\u0627\u0621",Close:"\u0625\u063A\u0644\u0627\u0642",Edit:"Edit",Delete:"Delete",Ok:"\u062A\u0645"},Ag={"Add a comment...":"Napsat koment\xE1\u0159...","Add a reply...":"Odpov\u011Bd\u011Bt...","Add tag...":"P\u0159idat \u0161t\xEDtek...",Cancel:"Zru\u0161it",Close:"Zav\u0159\xEDt",Edit:"Upravit",Delete:"Smazat",Ok:"Ok"},wg={"Add a comment...":"Kommentar schreiben...","Add a reply...":"Antwort schreiben...","Add tag...":"Tag...",Cancel:"Abbrechen",Close:"Schliessen",Edit:"Bearbeiten",Delete:"L\xF6schen",Ok:"Ok"},Og={"Add a comment...":"\u03A3\u03C7\u03BF\u03BB\u03AF\u03B1\u03C3\u03B5...","Add a reply...":"\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B5...","Add tag...":"\u03A0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C3\u03B5 tag...",Cancel:"\u0386\u03BA\u03C5\u03C1\u03BF",Close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",Edit:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1",Delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",Ok:"Ok"},$g={"Add a comment...":"Agregar un comentario...","Add a reply...":"Agregar una respuesta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Cerrar",Edit:"Editar",Delete:"Eliminar",Ok:"Ok"},xg={"Add a comment...":"Lis\xE4\xE4 kommentti","Add a reply...":"Lis\xE4\xE4 vastaus","Add tag...":"Lis\xE4\xE4 tunniste",Cancel:"Peruuta",Close:"Sulje",Edit:"Muokkaa",Delete:"Poista",Ok:"Ok"},Pg={"Add a comment...":"Ajouter un commentaire...","Add a reply...":"Ajouter une r\xE9ponse...","Add tag...":"Ajouter une \xE9tiquette...",Cancel:"Annuler",Close:"Fermer",Edit:"\xC9diter",Delete:"Supprimer",Ok:"Ok"},Dg={"Add a comment...":"Engadir un comentario...","Add a reply...":"Engadir unha resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Pechar",Edit:"Edit",Delete:"Delete",Ok:"Ok"},Tg={"Add a comment...":"\u091F\u093F\u092A\u094D\u092A\u0923\u0940 \u091C\u094B\u0921\u093C\u0947\u0902","Add a reply...":"\u091C\u0935\u093E\u092C \u0926\u0947\u0902","Add tag...":"\u091F\u0948\u0917 \u0932\u0917\u093E\u090F\u0901",Cancel:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0947\u0902",Close:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",Edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",Delete:"\u0939\u091F\u093E\u090F\u0901",Ok:"\u0920\u0940\u0915 \u0939\u0948"},Mg={"Add a comment...":"Commenta...","Add a reply...":"Rispondi...","Add tag...":"Aggiungi tag...",Cancel:"Annulla",Close:"Chiudi",Edit:"Edit",Delete:"Delete",Ok:"Ok"},kg={"Add a comment...":"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0\u3059\u308B...","Add a reply...":"\u8FD4\u4FE1\u3059\u308B...","Add tag...":"\u30BF\u30B0\u3092\u8FFD\u52A0\u3059\u308B...",Cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",Close:"\u9589\u3058\u308B",Edit:"\u7DE8\u96C6",Delete:"\u524A\u9664",Ok:"Ok"},Fg={"Add a comment...":"\uB313\uAE00 \uCD94\uAC00","Add a reply...":"\uB2F5\uAE00 \uCD94\uAC00","Add tag...":"\uD0DC\uADF8 \uCD94\uAC00",Cancel:"\uCDE8\uC18C",Close:"\uB2EB\uAE30",Edit:"\uC218\uC815",Delete:"\uC0AD\uC81C",Ok:"\uD655\uC778"},Ig={"Add a comment...":"Commentaar toevoegen...","Add a reply...":"Antwoord toevoegen...","Add tag...":"Tag toevoegen...",Cancel:"Afbreken",Close:"Sluiten",Edit:"Bewerken",Delete:"Verwijderen",Ok:"Ok"},Rg={"Add a comment...":"Adicionar um coment\xE1rio...","Add a reply...":"Adicionar uma resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Fechar",Edit:"Editar",Delete:"Apagar",Ok:"Ok"},Ng={"Add a comment...":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439...","Add a reply...":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442...","Add tag...":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0442\u044D\u0433...",Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",Close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",Edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",Ok:"\u041E\u043A"},Lg={"Add a comment...":"Skriv en kommentar...","Add a reply...":"Skriv ett svar...","Add tag...":"Tagg...",Cancel:"Cancel",Close:"St\xE4ng",Edit:"Edit",Delete:"Delete",Ok:"Ok"},Bg={"Add a comment...":"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E2D\u0E21\u0E40\u0E21\u0E19\u0E15\u0E4C...","Add a reply...":"\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A...","Add tag...":"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E41\u0E17\u0E47\u0E01...",Cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",Close:"\u0E1B\u0E34\u0E14",Edit:"\u0E41\u0E01\u0E49\u0E44\u0E02",Delete:"\u0E25\u0E1A",Ok:"\u0E15\u0E01\u0E25\u0E07"},Vg={"Add a comment...":"Yorum ekle...","Add a reply...":"Cevap ekle...","Add tag...":"Tag Ekle...",Cancel:"\u0130ptal",Close:"Kapat",Edit:"D\xFCzenle",Delete:"Sil",Ok:"Tamam"},Hg={"Add a comment...":"\u062A\u0628\u0635\u0631\u06C1 \u06A9\u0631\u06CC\u06BA","Add a reply...":"\u062C\u0648\u0627\u0628 \u062F\u06CC\u06BA","Add tag...":"\u0679\u06CC\u06AF \u0644\u06AF\u0627\u0626\u06CC\u06BA",Cancel:"\u0645\u0646\u0633\u0648\u062E \u06A9\u0631\u06CC\u06BA",Close:"\u0628\u0646\u062F \u06A9\u0631\u06CC\u06BA",Edit:"\u062A\u0631\u0645\u06CC\u0645 \u06A9\u0631\u06CC\u06BA",Delete:"\u06C1\u0679\u0627\u0626\u06CC\u06BA",Ok:"\u0679\u06BE\u06CC\u06A9 \u06C1\u06D2"},Ug={"Add a comment...":"\u6DFB\u52A0\u6CE8\u91CA...","Add a reply...":"\u6DFB\u52A0\u56DE\u590D...","Add tag...":"\u6807\u7B7E...",Cancel:"\u53D6\u6D88",Close:"\u5173\u95ED",Edit:"\u7F16\u8F91",Delete:"\u5220\u9664",Ok:"\u786E\u8BA4"},jg={"Add a comment...":"\u6DFB\u52A0\u8BC4\u8BBA...","Add a reply...":"\u6DFB\u52A0\u56DE\u590D...","Add tag...":"\u6DFB\u52A0\u6807\u7B7E...",Cancel:"\u53D6\u6D88",Close:"\u5173\u95ED",Edit:"\u7F16\u8F91",Delete:"\u5220\u9664",Ok:"\u786E\u8BA4"},zg={"Add a comment...":"\u6DFB\u52A0\u8A55\u8AD6...","Add a reply...":"\u6DFB\u52A0\u56DE\u8986...","Add tag...":"\u6DFB\u52A0\u6A19\u7C64...",Cancel:"\u53D6\u6D88",Close:"\u95DC\u9589",Edit:"\u7DE8\u8F2F",Delete:"\u522A\u9664",Ok:"\u78BA\u8A8D"},Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var Io=[["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u064A\u0646","%s \u062B\u0648\u0627\u0646","%s \u062B\u0627\u0646\u064A\u0629"],["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u064A\u0646","%s \u062F\u0642\u0627\u0626\u0642","%s \u062F\u0642\u064A\u0642\u0629"],["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","%s \u0633\u0627\u0639\u0627\u062A","%s \u0633\u0627\u0639\u0629"],["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","%s \u0623\u064A\u0627\u0645","%s \u064A\u0648\u0645\u0627\u064B"],["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","%s \u0623\u0633\u0627\u0628\u064A\u0639","%s \u0623\u0633\u0628\u0648\u0639\u0627\u064B"],["\u0634\u0647\u0631","\u0634\u0647\u0631\u064A\u0646","%s \u0623\u0634\u0647\u0631","%s \u0634\u0647\u0631\u0627\u064B"],["\u0639\u0627\u0645","\u0639\u0627\u0645\u064A\u0646","%s \u0623\u0639\u0648\u0627\u0645","%s \u0639\u0627\u0645\u0627\u064B"]];function Wg(t,e){return e<3?Io[t][e-1]:e>=3&&e<=10?Io[t][2]:Io[t][3]}function Gg(t,e){if(e===0)return["\u0645\u0646\u0630 \u0644\u062D\u0638\u0627\u062A","\u0628\u0639\u062F \u0644\u062D\u0638\u0627\u062A"];var n=Wg(Math.floor(e/2),t);return["\u0645\u0646\u0630 "+n,"\u0628\u0639\u062F "+n]}var qg=Eu.default=Gg,Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});function Yg(t,e){var n=0,r=e==1||e==3||e==5||e==7||e==9||e==11||e==13;return r&&t>=5&&(n=1),[[["pr\xE1v\u011B te\u010F","pr\xE1v\u011B te\u010F"]],[["p\u0159ed %s vte\u0159inami","za %s vte\u0159iny"],["p\u0159ed %s vte\u0159inami","za %s vte\u0159in"]],[["p\u0159ed minutou","za minutu"]],[["p\u0159ed %s minutami","za %s minuty"],["p\u0159ed %s minutami","za %s minut"]],[["p\u0159ed hodinou","za hodinu"]],[["p\u0159ed %s hodinami","za %s hodiny"],["p\u0159ed %s hodinami","za %s hodin"]],[["v\u010Dera","z\xEDtra"]],[["p\u0159ed %s dny","za %s dny"],["p\u0159ed %s dny","za %s dn\u016F"]],[["minul\xFD t\xFDden","p\u0159\xED\u0161t\xED t\xFDden"]],[["p\u0159ed %s t\xFDdny","za %s t\xFDdny"],["p\u0159ed %s t\xFDdny","za %s t\xFDdn\u016F"]],[["minul\xFD m\u011Bs\xEDc","p\u0159\xEDst\xED m\u011Bs\xEDc"]],[["p\u0159ed %s m\u011Bs\xEDci","za %s m\u011Bs\xEDce"],["p\u0159ed %s m\u011Bs\xEDci","za %s m\u011Bs\xEDc\u016F"]],[["p\u0159ed rokem","p\u0159\xEDst\xED rok"]],[["p\u0159ed %s lety","za %s roky"],["p\u0159ed %s lety","za %s let"]]][e][n]}var Xg=Cu.default=Yg,Au={};Object.defineProperty(Au,"__esModule",{value:!0});function Kg(t,e){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][e]}var Jg=Au.default=Kg,wu={};Object.defineProperty(wu,"__esModule",{value:!0});function Zg(t,e){return[["\u03BC\u03CC\u03BB\u03B9\u03C2 \u03C4\u03CE\u03C1\u03B1","\u03C3\u03B5 \u03BB\u03AF\u03B3\u03BF"],["%s \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"],["1 \u03BB\u03B5\u03C0\u03C4\u03CC \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03BB\u03B5\u03C0\u03C4\u03CC"],["%s \u03BB\u03B5\u03C0\u03C4\u03AC \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03BB\u03B5\u03C0\u03C4\u03AC"],["1 \u03CE\u03C1\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03CE\u03C1\u03B1"],["%s \u03CE\u03C1\u03B5\u03C2 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03CE\u03C1\u03B5\u03C2"],["1 \u03BC\u03AD\u03C1\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03BC\u03AD\u03C1\u03B1"],["%s \u03BC\u03AD\u03C1\u03B5\u03C2 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03BC\u03AD\u03C1\u03B5\u03C2"],["1 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1"],["%s \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"],["1 \u03BC\u03AE\u03BD\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03BC\u03AE\u03BD\u03B1"],["%s \u03BC\u03AE\u03BD\u03B5\u03C2 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03BC\u03AE\u03BD\u03B5\u03C2"],["1 \u03C7\u03C1\u03CC\u03BD\u03BF \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 1 \u03C7\u03C1\u03CC\u03BD\u03BF"],["%s \u03C7\u03C1\u03CC\u03BD\u03B9\u03B1 \u03C0\u03C1\u03B9\u03BD","\u03C3\u03B5 %s \u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"]][e]}var Qg=wu.default=Zg,Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});function ey(t,e){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 d\xEDa","en 1 d\xEDa"],["hace %s d\xEDas","en %s d\xEDas"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 a\xF1o","en 1 a\xF1o"],["hace %s a\xF1os","en %s a\xF1os"]][e]}var ty=Ou.default=ey,$u={};Object.defineProperty($u,"__esModule",{value:!0});function ny(t,e){return[["juuri \xE4sken","juuri nyt"],["%s sekuntia sitten","%s sekunnin p\xE4\xE4st\xE4"],["minuutti sitten","minuutin p\xE4\xE4st\xE4"],["%s minuuttia sitten","%s minuutin p\xE4\xE4st\xE4"],["tunti sitten","tunnin p\xE4\xE4st\xE4"],["%s tuntia sitten","%s tunnin p\xE4\xE4st\xE4"],["p\xE4iv\xE4 sitten","p\xE4iv\xE4n p\xE4\xE4st\xE4"],["%s p\xE4iv\xE4\xE4 sitten","%s p\xE4iv\xE4n p\xE4\xE4st\xE4"],["viikko sitten","viikon p\xE4\xE4st\xE4"],["%s viikkoa sitten","%s viikon p\xE4\xE4st\xE4"],["kuukausi sitten","kuukauden p\xE4\xE4st\xE4"],["%s kuukautta sitten","%s kuukauden p\xE4\xE4st\xE4"],["vuosi sitten","vuoden p\xE4\xE4st\xE4"],["%s vuotta sitten","%s vuoden p\xE4\xE4st\xE4"]][e]}var ry=$u.default=ny,xu={};Object.defineProperty(xu,"__esModule",{value:!0});function oy(t,e){return[["\xE0 l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][e]}var iy=xu.default=oy,Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});function ay(t,e){return[["xusto agora","daqu\xED a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 d\xEDa","nun d\xEDa"],["hai %s d\xEDas","en %s d\xEDas"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][e]}var sy=Pu.default=ay,Du={};Object.defineProperty(Du,"__esModule",{value:!0});function uy(t,e){return[["\u0905\u092D\u0940","\u0915\u0941\u091B \u0938\u092E\u092F"],["%s \u0938\u0947\u0915\u0902\u0921 \u092A\u0939\u0932\u0947","%s \u0938\u0947\u0915\u0902\u0921 \u092E\u0947\u0902"],["1 \u092E\u093F\u0928\u091F \u092A\u0939\u0932\u0947","1 \u092E\u093F\u0928\u091F \u092E\u0947\u0902"],["%s \u092E\u093F\u0928\u091F \u092A\u0939\u0932\u0947","%s \u092E\u093F\u0928\u091F \u092E\u0947\u0902"],["1 \u0918\u0902\u091F\u0947 \u092A\u0939\u0932\u0947","1 \u0918\u0902\u091F\u0947 \u092E\u0947\u0902"],["%s \u0918\u0902\u091F\u0947 \u092A\u0939\u0932\u0947","%s \u0918\u0902\u091F\u0947 \u092E\u0947\u0902"],["1 \u0926\u093F\u0928 \u092A\u0939\u0932\u0947","1 \u0926\u093F\u0928 \u092E\u0947\u0902"],["%s \u0926\u093F\u0928 \u092A\u0939\u0932\u0947","%s \u0926\u093F\u0928\u094B\u0902 \u092E\u0947\u0902"],["1 \u0938\u092A\u094D\u0924\u093E\u0939 \u092A\u0939\u0932\u0947","1 \u0938\u092A\u094D\u0924\u093E\u0939 \u092E\u0947\u0902"],["%s \u0939\u092B\u094D\u0924\u0947 \u092A\u0939\u0932\u0947","%s \u0939\u092B\u094D\u0924\u094B\u0902 \u092E\u0947\u0902"],["1 \u092E\u0939\u0940\u0928\u0947 \u092A\u0939\u0932\u0947","1 \u092E\u0939\u0940\u0928\u0947 \u092E\u0947\u0902"],["%s \u092E\u0939\u0940\u0928\u0947 \u092A\u0939\u0932\u0947","%s \u092E\u0939\u0940\u0928\u094B\u0902 \u092E\u0947\u0902"],["1 \u0938\u093E\u0932 \u092A\u0939\u0932\u0947","1 \u0938\u093E\u0932 \u092E\u0947\u0902"],["%s \u0938\u093E\u0932 \u092A\u0939\u0932\u0947","%s \u0938\u093E\u0932 \u092E\u0947\u0902"]][e]}var ly=Du.default=uy,Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});function cy(t,e){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][e]}var fy=Tu.default=cy,Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});function dy(t,e){return[["\u3059\u3053\u3057\u524D","\u3059\u3050\u306B"],["%s\u79D2\u524D","%s\u79D2\u4EE5\u5185"],["1\u5206\u524D","1\u5206\u4EE5\u5185"],["%s\u5206\u524D","%s\u5206\u4EE5\u5185"],["1\u6642\u9593\u524D","1\u6642\u9593\u4EE5\u5185"],["%s\u6642\u9593\u524D","%s\u6642\u9593\u4EE5\u5185"],["1\u65E5\u524D","1\u65E5\u4EE5\u5185"],["%s\u65E5\u524D","%s\u65E5\u4EE5\u5185"],["1\u9031\u9593\u524D","1\u9031\u9593\u4EE5\u5185"],["%s\u9031\u9593\u524D","%s\u9031\u9593\u4EE5\u5185"],["1\u30F6\u6708\u524D","1\u30F6\u6708\u4EE5\u5185"],["%s\u30F6\u6708\u524D","%s\u30F6\u6708\u4EE5\u5185"],["1\u5E74\u524D","1\u5E74\u4EE5\u5185"],["%s\u5E74\u524D","%s\u5E74\u4EE5\u5185"]][e]}var py=Mu.default=dy,ku={};Object.defineProperty(ku,"__esModule",{value:!0});function hy(t,e){return[["\uBC29\uAE08","\uACE7"],["%s\uCD08 \uC804","%s\uCD08 \uD6C4"],["1\uBD84 \uC804","1\uBD84 \uD6C4"],["%s\uBD84 \uC804","%s\uBD84 \uD6C4"],["1\uC2DC\uAC04 \uC804","1\uC2DC\uAC04 \uD6C4"],["%s\uC2DC\uAC04 \uC804","%s\uC2DC\uAC04 \uD6C4"],["1\uC77C \uC804","1\uC77C \uD6C4"],["%s\uC77C \uC804","%s\uC77C \uD6C4"],["1\uC8FC\uC77C \uC804","1\uC8FC\uC77C \uD6C4"],["%s\uC8FC\uC77C \uC804","%s\uC8FC\uC77C \uD6C4"],["1\uAC1C\uC6D4 \uC804","1\uAC1C\uC6D4 \uD6C4"],["%s\uAC1C\uC6D4 \uC804","%s\uAC1C\uC6D4 \uD6C4"],["1\uB144 \uC804","1\uB144 \uD6C4"],["%s\uB144 \uC804","%s\uB144 \uD6C4"]][e]}var my=ku.default=hy,Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});function vy(t,e){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][e]}var gy=Fu.default=vy,Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});function yy(t,e){return[["agora mesmo","agora"],["h\xE1 %s segundos","em %s segundos"],["h\xE1 um minuto","em um minuto"],["h\xE1 %s minutos","em %s minutos"],["h\xE1 uma hora","em uma hora"],["h\xE1 %s horas","em %s horas"],["h\xE1 um dia","em um dia"],["h\xE1 %s dias","em %s dias"],["h\xE1 uma semana","em uma semana"],["h\xE1 %s semanas","em %s semanas"],["h\xE1 um m\xEAs","em um m\xEAs"],["h\xE1 %s meses","em %s meses"],["h\xE1 um ano","em um ano"],["h\xE1 %s anos","em %s anos"]][e]}var by=Iu.default=yy,Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});function ut(t,e,n,r,o){var i=o%10,a=r;return o===1?a=t:i===1&&o>20?a=e:i>1&&i<5&&(o>20||o<10)&&(a=n),a}var Nu=ut.bind(null,"\u0441\u0435\u043A\u0443\u043D\u0434\u0443","%s \u0441\u0435\u043A\u0443\u043D\u0434\u0443","%s \u0441\u0435\u043A\u0443\u043D\u0434\u044B","%s \u0441\u0435\u043A\u0443\u043D\u0434"),Lu=ut.bind(null,"\u043C\u0438\u043D\u0443\u0442\u0443","%s \u043C\u0438\u043D\u0443\u0442\u0443","%s \u043C\u0438\u043D\u0443\u0442\u044B","%s \u043C\u0438\u043D\u0443\u0442"),Bu=ut.bind(null,"\u0447\u0430\u0441","%s \u0447\u0430\u0441","%s \u0447\u0430\u0441\u0430","%s \u0447\u0430\u0441\u043E\u0432"),Vu=ut.bind(null,"\u0434\u0435\u043D\u044C","%s \u0434\u0435\u043D\u044C","%s \u0434\u043D\u044F","%s \u0434\u043D\u0435\u0439"),Hu=ut.bind(null,"\u043D\u0435\u0434\u0435\u043B\u044E","%s \u043D\u0435\u0434\u0435\u043B\u044E","%s \u043D\u0435\u0434\u0435\u043B\u0438","%s \u043D\u0435\u0434\u0435\u043B\u044C"),Uu=ut.bind(null,"\u043C\u0435\u0441\u044F\u0446","%s \u043C\u0435\u0441\u044F\u0446","%s \u043C\u0435\u0441\u044F\u0446\u0430","%s \u043C\u0435\u0441\u044F\u0446\u0435\u0432"),ju=ut.bind(null,"\u0433\u043E\u0434","%s \u0433\u043E\u0434","%s \u0433\u043E\u0434\u0430","%s \u043B\u0435\u0442");function Sy(t,e){switch(e){case 0:return["\u0442\u043E\u043B\u044C\u043A\u043E \u0447\u0442\u043E","\u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434"];case 1:return[Nu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Nu(t)];case 2:case 3:return[Lu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Lu(t)];case 4:case 5:return[Bu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Bu(t)];case 6:return["\u0432\u0447\u0435\u0440\u0430","\u0437\u0430\u0432\u0442\u0440\u0430"];case 7:return[Vu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Vu(t)];case 8:case 9:return[Hu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Hu(t)];case 10:case 11:return[Uu(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+Uu(t)];case 12:case 13:return[ju(t)+" \u043D\u0430\u0437\u0430\u0434","\u0447\u0435\u0440\u0435\u0437 "+ju(t)];default:return["",""]}}var _y=Ru.default=Sy,zu={};Object.defineProperty(zu,"__esModule",{value:!0});function Ey(t,e){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 m\xE5nad sedan","om 1 m\xE5nad"],["%s m\xE5nader sedan","om %s m\xE5nader"],["1 \xE5r sedan","om 1 \xE5r"],["%s \xE5r sedan","om %s \xE5r"]][e]}var Cy=zu.default=Ey,Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});function Ay(t,e){return[["\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48\u0E19\u0E35\u0E49","\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"],["%s \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"],["1 \u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E19\u0E32\u0E17\u0E35"],["%s \u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E19\u0E32\u0E17\u0E35"],["1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07"],["%s \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07"],["1 \u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E27\u0E31\u0E19"],["%s \u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E27\u0E31\u0E19"],["1 \u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C"],["%s \u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C"],["1 \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E40\u0E14\u0E37\u0E2D\u0E19"],["%s \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E40\u0E14\u0E37\u0E2D\u0E19"],["1 \u0E1B\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 1 \u0E1B\u0E35"],["%s \u0E1B\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27","\u0E43\u0E19 %s \u0E1B\u0E35"]][e]}var wy=Wu.default=Ay,Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});function Oy(t,e){return[["az \xF6nce","\u015Fimdi"],["%s saniye \xF6nce","%s saniye i\xE7inde"],["1 dakika \xF6nce","1 dakika i\xE7inde"],["%s dakika \xF6nce","%s dakika i\xE7inde"],["1 saat \xF6nce","1 saat i\xE7inde"],["%s saat \xF6nce","%s saat i\xE7inde"],["1 g\xFCn \xF6nce","1 g\xFCn i\xE7inde"],["%s g\xFCn \xF6nce","%s g\xFCn i\xE7inde"],["1 hafta \xF6nce","1 hafta i\xE7inde"],["%s hafta \xF6nce","%s hafta i\xE7inde"],["1 ay \xF6nce","1 ay i\xE7inde"],["%s ay \xF6nce","%s ay i\xE7inde"],["1 y\u0131l \xF6nce","1 y\u0131l i\xE7inde"],["%s y\u0131l \xF6nce","%s y\u0131l i\xE7inde"]][e]}var $y=Gu.default=Oy,qu={};Object.defineProperty(qu,"__esModule",{value:!0});var xy=["\u79D2","\u5206\u949F","\u5C0F\u65F6","\u5929","\u5468","\u4E2A\u6708","\u5E74"];function Py(t,e){if(e===0)return["\u521A\u521A","\u7247\u523B\u540E"];var n=xy[~~(e/2)];return[t+" "+n+"\u524D",t+" "+n+"\u540E"]}var Yu=qu.default=Py,Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});function Dy(t,e){return[["\u525B\u525B","\u7247\u523B\u5F8C"],["%s \u79D2\u524D","%s \u79D2\u5F8C"],["1 \u5206\u9418\u524D","1 \u5206\u9418\u5F8C"],["%s \u5206\u9418\u524D","%s \u5206\u9418\u5F8C"],["1 \u5C0F\u6642\u524D","1 \u5C0F\u6642\u5F8C"],["%s \u5C0F\u6642\u524D","%s \u5C0F\u6642\u5F8C"],["1 \u5929\u524D","1 \u5929\u5F8C"],["%s \u5929\u524D","%s \u5929\u5F8C"],["1 \u9031\u524D","1 \u9031\u5F8C"],["%s \u9031\u524D","%s \u9031\u5F8C"],["1 \u500B\u6708\u524D","1 \u500B\u6708\u5F8C"],["%s \u500B\u6708\u524D","%s \u500B\u6708\u5F8C"],["1 \u5E74\u524D","1 \u5E74\u5F8C"],["%s \u5E74\u524D","%s \u5E74\u5F8C"]][e]}var Ty=Xu.default=Dy;const xt={ar:Cg,cs:Ag,de:wg,el:Og,es:$g,fi:xg,fr:Pg,gl:Dg,hi:Tg,it:Mg,ja:kg,ko:Fg,nl:Ig,pt:Rg,ru:Ng,sv:Lg,th:Bg,tr:Vg,ur:Hg,zh:Ug,"zh-CN":jg,"zh-TW":zg},My=Object.keys(xt),lt=new Eg({allowMissing:!0});lt.init=(t,e)=>{lt.clear(),t&&(lt.locale(t),lt.extend(xt[t])),e&<.extend(e)},G("ar",qg),G("cs",Xg),G("de",Jg),G("el",Qg),G("es",ty),G("fi",ry),G("fr",iy),G("gl",sy),G("hi",ly),G("it",fy),G("ja",py),G("ko",my),G("nl",gy),G("pt",by),G("ru",_y),G("sv",Cy),G("th",wy),G("tr",$y),G("zh",Yu),G("zh-CN",Yu),G("zh-TW",Ty),lt.registerMessages=(t,e)=>{xt[t]?xt[t]={...xt[t],...e}:xt[t]=e};var Se=lt,ky=t=>{const e=$e();return Gd(e,()=>t.onClickOutside()),g.createElement("ul",{ref:e,className:"r6o-comment-dropdown-menu"},g.createElement("li",{onClick:t.onEdit},Se.t("Edit")),g.createElement("li",{onClick:t.onDelete},Se.t("Delete")))},Ku={},Ro={},No={exports:{}};/*!
|
|
10
|
-
autosize 4.0.4
|
|
11
|
-
license: MIT
|
|
12
|
-
http://www.jacklmoore.com/autosize
|
|
13
|
-
*/(function(t,e){(function(n,r){r(t,e)})(nt,function(n,r){var o=typeof Map=="function"?new Map:function(){var l=[],f=[];return{has:function(p){return l.indexOf(p)>-1},get:function(p){return f[l.indexOf(p)]},set:function(p,m){l.indexOf(p)===-1&&(l.push(p),f.push(m))},delete:function(p){var m=l.indexOf(p);m>-1&&(l.splice(m,1),f.splice(m,1))}}}(),i=function(f){return new Event(f,{bubbles:!0})};try{new Event("test")}catch{i=function(d){var p=document.createEvent("Event");return p.initEvent(d,!0,!1),p}}function a(l){if(!l||!l.nodeName||l.nodeName!=="TEXTAREA"||o.has(l))return;var f=null,d=null,p=null;function m(){var O=window.getComputedStyle(l,null);O.resize==="vertical"?l.style.resize="none":O.resize==="both"&&(l.style.resize="horizontal"),O.boxSizing==="content-box"?f=-(parseFloat(O.paddingTop)+parseFloat(O.paddingBottom)):f=parseFloat(O.borderTopWidth)+parseFloat(O.borderBottomWidth),isNaN(f)&&(f=0),C()}function b(O){{var k=l.style.width;l.style.width="0px",l.offsetWidth,l.style.width=k}l.style.overflowY=O}function v(O){for(var k=[];O&&O.parentNode&&O.parentNode instanceof Element;)O.parentNode.scrollTop&&k.push({node:O.parentNode,scrollTop:O.parentNode.scrollTop}),O=O.parentNode;return k}function S(){if(l.scrollHeight!==0){var O=v(l),k=document.documentElement&&document.documentElement.scrollTop;l.style.height="",l.style.height=l.scrollHeight+f+"px",d=l.clientWidth,O.forEach(function(x){x.node.scrollTop=x.scrollTop}),k&&(document.documentElement.scrollTop=k)}}function C(){S();var O=Math.round(parseFloat(l.style.height)),k=window.getComputedStyle(l,null),x=k.boxSizing==="content-box"?Math.round(parseFloat(k.height)):l.offsetHeight;if(x<O?k.overflowY==="hidden"&&(b("scroll"),S(),x=k.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight):k.overflowY!=="hidden"&&(b("hidden"),S(),x=k.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight),p!==x){p=x;var X=i("autosize:resized");try{l.dispatchEvent(X)}catch{}}}var P=function(){l.clientWidth!==d&&C()},F=function(O){window.removeEventListener("resize",P,!1),l.removeEventListener("input",C,!1),l.removeEventListener("keyup",C,!1),l.removeEventListener("autosize:destroy",F,!1),l.removeEventListener("autosize:update",C,!1),Object.keys(O).forEach(function(k){l.style[k]=O[k]}),o.delete(l)}.bind(l,{height:l.style.height,resize:l.style.resize,overflowY:l.style.overflowY,overflowX:l.style.overflowX,wordWrap:l.style.wordWrap});l.addEventListener("autosize:destroy",F,!1),"onpropertychange"in l&&"oninput"in l&&l.addEventListener("keyup",C,!1),window.addEventListener("resize",P,!1),l.addEventListener("input",C,!1),l.addEventListener("autosize:update",C,!1),l.style.overflowX="hidden",l.style.wordWrap="break-word",o.set(l,{destroy:F,update:C}),m()}function s(l){var f=o.get(l);f&&f.destroy()}function u(l){var f=o.get(l);f&&f.update()}var c=null;typeof window=="undefined"||typeof window.getComputedStyle!="function"?(c=function(f){return f},c.destroy=function(l){return l},c.update=function(l){return l}):(c=function(f,d){return f&&Array.prototype.forEach.call(f.length?f:[f],function(p){return a(p)}),f},c.destroy=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],s),l},c.update=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],u),l}),r.default=c,n.exports=r.default})})(No,No.exports);var Fy=function(t,e,n){return n=window.getComputedStyle,(n?n(t):t.currentStyle)[e.replace(/-(\w)/gi,function(r,o){return o.toUpperCase()})]},Iy=Fy,Lo=Iy;function Ry(t){var e=Lo(t,"line-height"),n=parseFloat(e,10);if(e===n+""){var r=t.style.lineHeight;t.style.lineHeight=e+"em",e=Lo(t,"line-height"),n=parseFloat(e,10),r?t.style.lineHeight=r:delete t.style.lineHeight}if(e.indexOf("pt")!==-1?(n*=4,n/=3):e.indexOf("mm")!==-1?(n*=96,n/=25.4):e.indexOf("cm")!==-1?(n*=96,n/=2.54):e.indexOf("in")!==-1?n*=96:e.indexOf("pc")!==-1&&(n*=16),n=Math.round(n),e==="normal"){var o=t.nodeName,i=document.createElement(o);i.innerHTML=" ",o.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var a=Lo(t,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var s=document.body;s.appendChild(i);var u=i.offsetHeight;n=u,s.removeChild(i)}return n}var Ny=Ry,Ly=nt&&nt.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bo=nt&&nt.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},By=nt&&nt.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n};Ro.__esModule=!0;var jn=yt,Jt=zt.exports,zn=No.exports,Vy=Ny,Hy=Vy,Ju="autosize:resized",Uy=function(t){Ly(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={lineHeight:null},n.textarea=null,n.onResize=function(r){n.props.onResize&&n.props.onResize(r)},n.updateLineHeight=function(){n.textarea&&n.setState({lineHeight:Hy(n.textarea)})},n.onChange=function(r){var o=n.props.onChange;n.currentValue=r.currentTarget.value,o&&o(r)},n}return e.prototype.componentDidMount=function(){var n=this,r=this.props,o=r.maxRows,i=r.async;typeof o=="number"&&this.updateLineHeight(),typeof o=="number"||i?setTimeout(function(){return n.textarea&&zn(n.textarea)}):this.textarea&&zn(this.textarea),this.textarea&&this.textarea.addEventListener(Ju,this.onResize)},e.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(Ju,this.onResize),zn.destroy(this.textarea))},e.prototype.render=function(){var n=this,r=this,o=r.props;o.onResize;var i=o.maxRows;o.onChange;var a=o.style;o.innerRef;var s=o.children,u=By(o,["onResize","maxRows","onChange","style","innerRef","children"]),c=r.state.lineHeight,l=i&&c?c*i:null;return jn.createElement("textarea",Bo({},u,{onChange:this.onChange,style:l?Bo({},a,{maxHeight:l}):a,ref:function(f){n.textarea=f,typeof n.props.innerRef=="function"?n.props.innerRef(f):n.props.innerRef&&(n.props.innerRef.current=f)}}),s)},e.prototype.componentDidUpdate=function(){this.textarea&&zn.update(this.textarea)},e.defaultProps={rows:1,async:!1},e.propTypes={rows:Jt.number,maxRows:Jt.number,onResize:Jt.func,innerRef:Jt.any,async:Jt.bool},e}(jn.Component);Ro.TextareaAutosize=jn.forwardRef(function(t,e){return jn.createElement(Uy,Bo({},t,{innerRef:e}))}),function(t){t.__esModule=!0;var e=Ro;t.default=e.TextareaAutosize}(Ku);var jy=vf(Ku);class Zu extends J{constructor(n){super(n);h(this,"onKeyDown",n=>{n.which===13&&n.ctrlKey&&this.props.onSaveAndClose()});h(this,"onKeyUp",n=>{n.which===46&&n.stopPropagation()});this.element=$r()}componentDidMount(){this.props.focus&&this.element.current&&this.element.current.focus({preventScroll:!0})}render(){return g.createElement(jy,{ref:this.element,className:"r6o-editable-text",value:this.props.content,placeholder:this.props.placeholder||Se.t("Add a comment..."),disabled:!this.props.editable,onChange:this.props.onChange,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown})}}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},T.apply(this,arguments)}function zy(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Wy(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Gy=function(){function t(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Wy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=zy(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},t}(),ce="-ms-",Wn="-moz-",N="-webkit-",Qu="comm",Vo="rule",Ho="decl",qy="@import",el="@keyframes",Yy="@layer",Xy=Math.abs,Gn=String.fromCharCode,Ky=Object.assign;function Jy(t,e){return oe(t,0)^45?(((e<<2^oe(t,0))<<2^oe(t,1))<<2^oe(t,2))<<2^oe(t,3):0}function tl(t){return t.trim()}function Zy(t,e){return(t=e.exec(t))?t[0]:t}function L(t,e,n){return t.replace(e,n)}function Uo(t,e){return t.indexOf(e)}function oe(t,e){return t.charCodeAt(e)|0}function Zt(t,e,n){return t.slice(e,n)}function Me(t){return t.length}function jo(t){return t.length}function qn(t,e){return e.push(t),t}function Qy(t,e){return t.map(e).join("")}var Yn=1,Pt=1,nl=0,ve=0,K=0,Dt="";function Xn(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:Yn,column:Pt,length:a,return:""}}function Qt(t,e){return Ky(Xn("",null,null,"",null,null,0),t,{length:-t.length},e)}function e0(){return K}function t0(){return K=ve>0?oe(Dt,--ve):0,Pt--,K===10&&(Pt=1,Yn--),K}function _e(){return K=ve<nl?oe(Dt,ve++):0,Pt++,K===10&&(Pt=1,Yn++),K}function ke(){return oe(Dt,ve)}function Kn(){return ve}function en(t,e){return Zt(Dt,t,e)}function tn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rl(t){return Yn=Pt=1,nl=Me(Dt=t),ve=0,[]}function ol(t){return Dt="",t}function Jn(t){return tl(en(ve-1,zo(t===91?t+2:t===40?t+1:t)))}function n0(t){for(;(K=ke())&&K<33;)_e();return tn(t)>2||tn(K)>3?"":" "}function r0(t,e){for(;--e&&_e()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return en(t,Kn()+(e<6&&ke()==32&&_e()==32))}function zo(t){for(;_e();)switch(K){case t:return ve;case 34:case 39:t!==34&&t!==39&&zo(K);break;case 40:t===41&&zo(t);break;case 92:_e();break}return ve}function o0(t,e){for(;_e()&&t+K!==47+10;)if(t+K===42+42&&ke()===47)break;return"/*"+en(e,ve-1)+"*"+Gn(t===47?t:_e())}function i0(t){for(;!tn(ke());)_e();return en(t,ve)}function a0(t){return ol(Zn("",null,null,null,[""],t=rl(t),0,[0],t))}function Zn(t,e,n,r,o,i,a,s,u){for(var c=0,l=0,f=a,d=0,p=0,m=0,b=1,v=1,S=1,C=0,P="",F=o,O=i,k=r,x=P;v;)switch(m=C,C=_e()){case 40:if(m!=108&&oe(x,f-1)==58){Uo(x+=L(Jn(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:x+=Jn(C);break;case 9:case 10:case 13:case 32:x+=n0(m);break;case 92:x+=r0(Kn()-1,7);continue;case 47:switch(ke()){case 42:case 47:qn(s0(o0(_e(),Kn()),e,n),u);break;default:x+="/"}break;case 123*b:s[c++]=Me(x)*S;case 125*b:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+l:S==-1&&(x=L(x,/\f/g,"")),p>0&&Me(x)-f&&qn(p>32?al(x+";",r,n,f-1):al(L(x," ","")+";",r,n,f-2),u);break;case 59:x+=";";default:if(qn(k=il(x,e,n,c,l,o,s,P,F=[],O=[],f),i),C===123)if(l===0)Zn(x,e,k,k,F,i,f,s,O);else switch(d===99&&oe(x,3)===110?100:d){case 100:case 108:case 109:case 115:Zn(t,k,k,r&&qn(il(t,k,k,0,0,o,s,P,o,F=[],f),O),o,O,f,s,r?F:O);break;default:Zn(x,k,k,k,[""],O,0,s,O)}}c=l=p=0,b=S=1,P=x="",f=a;break;case 58:f=1+Me(x),p=m;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&t0()==125)continue}switch(x+=Gn(C),C*b){case 38:S=l>0?1:(x+="\f",-1);break;case 44:s[c++]=(Me(x)-1)*S,S=1;break;case 64:ke()===45&&(x+=Jn(_e())),d=ke(),l=f=Me(P=x+=i0(Kn())),C++;break;case 45:m===45&&Me(x)==2&&(b=0)}}return i}function il(t,e,n,r,o,i,a,s,u,c,l){for(var f=o-1,d=o===0?i:[""],p=jo(d),m=0,b=0,v=0;m<r;++m)for(var S=0,C=Zt(t,f+1,f=Xy(b=a[m])),P=t;S<p;++S)(P=tl(b>0?d[S]+" "+C:L(C,/&\f/g,d[S])))&&(u[v++]=P);return Xn(t,e,n,o===0?Vo:s,u,c,l)}function s0(t,e,n){return Xn(t,e,n,Qu,Gn(e0()),Zt(t,2,-2),0)}function al(t,e,n,r){return Xn(t,e,n,Ho,Zt(t,0,r),Zt(t,r+1,-1),r)}function Tt(t,e){for(var n="",r=jo(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function u0(t,e,n,r){switch(t.type){case Yy:if(t.children.length)break;case qy:case Ho:return t.return=t.return||t.value;case Qu:return"";case el:return t.return=t.value+"{"+Tt(t.children,r)+"}";case Vo:t.value=t.props.join(",")}return Me(n=Tt(t.children,r))?t.return=t.value+"{"+n+"}":""}function l0(t){var e=jo(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function c0(t){return function(e){e.root||(e=e.return)&&t(e)}}function f0(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var d0=function(e,n,r){for(var o=0,i=0;o=i,i=ke(),o===38&&i===12&&(n[r]=1),!tn(i);)_e();return en(e,ve)},p0=function(e,n){var r=-1,o=44;do switch(tn(o)){case 0:o===38&&ke()===12&&(n[r]=1),e[r]+=d0(ve-1,n,r);break;case 2:e[r]+=Jn(o);break;case 4:if(o===44){e[++r]=ke()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Gn(o)}while(o=_e());return e},h0=function(e,n){return ol(p0(rl(e),n))},sl=new WeakMap,m0=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!sl.get(r))&&!o){sl.set(e,!0);for(var i=[],a=h0(n,i),s=r.props,u=0,c=0;u<a.length;u++)for(var l=0;l<s.length;l++,c++)e.props[c]=i[u]?a[u].replace(/&\f/g,s[l]):s[l]+" "+a[u]}}},v0=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function ul(t,e){switch(Jy(t,e)){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+Wn+t+ce+t+t;case 6828:case 4268:return N+t+ce+t+t;case 6165:return N+t+ce+"flex-"+t+t;case 5187:return N+t+L(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+ce+"flex-$1$2")+t;case 5443:return N+t+ce+"flex-item-"+L(t,/flex-|-self/,"")+t;case 4675:return N+t+ce+"flex-line-pack"+L(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+ce+L(t,"shrink","negative")+t;case 5292:return N+t+ce+L(t,"basis","preferred-size")+t;case 6060:return N+"box-"+L(t,"-grow","")+N+t+ce+L(t,"grow","positive")+t;case 4554:return N+L(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return L(L(L(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return L(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return L(L(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return L(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Me(t)-1-e>6)switch(oe(t,e+1)){case 109:if(oe(t,e+4)!==45)break;case 102:return L(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+Wn+(oe(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Uo(t,"stretch")?ul(L(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(oe(t,e+1)!==115)break;case 6444:switch(oe(t,Me(t)-3-(~Uo(t,"!important")&&10))){case 107:return L(t,":",":"+N)+t;case 101:return L(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(oe(t,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ce+"$2box$3")+t}break;case 5936:switch(oe(t,e+11)){case 114:return N+t+ce+L(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+ce+L(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+ce+L(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+ce+t+t}return t}var g0=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ho:e.return=ul(e.value,e.length);break;case el:return Tt([Qt(e,{value:L(e.value,"@","@"+N)})],o);case Vo:if(e.length)return Qy(e.props,function(i){switch(Zy(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([Qt(e,{props:[L(i,/:(read-\w+)/,":"+Wn+"$1")]})],o);case"::placeholder":return Tt([Qt(e,{props:[L(i,/:(plac\w+)/,":"+N+"input-$1")]}),Qt(e,{props:[L(i,/:(plac\w+)/,":"+Wn+"$1")]}),Qt(e,{props:[L(i,/:(plac\w+)/,ce+"input-$1")]})],o)}return""})}},y0=[g0],b0=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var v=b.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||y0,i={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var v=b.getAttribute("data-emotion").split(" "),S=1;S<v.length;S++)i[v[S]]=!0;s.push(b)});var u,c=[m0,v0];{var l,f=[u0,c0(function(b){l.insert(b)})],d=l0(c.concat(o,f)),p=function(v){return Tt(a0(v),d)};u=function(v,S,C,P){l=C,p(v?v+"{"+S.styles+"}":S.styles),P&&(m.inserted[S.name]=!0)}}var m={key:n,sheet:new Gy({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:u};return m.sheet.hydrate(s),m},ll={exports:{}},V={};/** @license React v16.13.1
|
|
14
|
-
* react-is.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var ee=typeof Symbol=="function"&&Symbol.for,Wo=ee?Symbol.for("react.element"):60103,Go=ee?Symbol.for("react.portal"):60106,Qn=ee?Symbol.for("react.fragment"):60107,er=ee?Symbol.for("react.strict_mode"):60108,tr=ee?Symbol.for("react.profiler"):60114,nr=ee?Symbol.for("react.provider"):60109,rr=ee?Symbol.for("react.context"):60110,qo=ee?Symbol.for("react.async_mode"):60111,or=ee?Symbol.for("react.concurrent_mode"):60111,ir=ee?Symbol.for("react.forward_ref"):60112,ar=ee?Symbol.for("react.suspense"):60113,S0=ee?Symbol.for("react.suspense_list"):60120,sr=ee?Symbol.for("react.memo"):60115,ur=ee?Symbol.for("react.lazy"):60116,_0=ee?Symbol.for("react.block"):60121,E0=ee?Symbol.for("react.fundamental"):60117,C0=ee?Symbol.for("react.responder"):60118,A0=ee?Symbol.for("react.scope"):60119;function Ee(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Wo:switch(t=t.type,t){case qo:case or:case Qn:case tr:case er:case ar:return t;default:switch(t=t&&t.$$typeof,t){case rr:case ir:case ur:case sr:case nr:return t;default:return e}}case Go:return e}}}function cl(t){return Ee(t)===or}V.AsyncMode=qo,V.ConcurrentMode=or,V.ContextConsumer=rr,V.ContextProvider=nr,V.Element=Wo,V.ForwardRef=ir,V.Fragment=Qn,V.Lazy=ur,V.Memo=sr,V.Portal=Go,V.Profiler=tr,V.StrictMode=er,V.Suspense=ar,V.isAsyncMode=function(t){return cl(t)||Ee(t)===qo},V.isConcurrentMode=cl,V.isContextConsumer=function(t){return Ee(t)===rr},V.isContextProvider=function(t){return Ee(t)===nr},V.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Wo},V.isForwardRef=function(t){return Ee(t)===ir},V.isFragment=function(t){return Ee(t)===Qn},V.isLazy=function(t){return Ee(t)===ur},V.isMemo=function(t){return Ee(t)===sr},V.isPortal=function(t){return Ee(t)===Go},V.isProfiler=function(t){return Ee(t)===tr},V.isStrictMode=function(t){return Ee(t)===er},V.isSuspense=function(t){return Ee(t)===ar},V.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Qn||t===or||t===tr||t===er||t===ar||t===S0||typeof t=="object"&&t!==null&&(t.$$typeof===ur||t.$$typeof===sr||t.$$typeof===nr||t.$$typeof===rr||t.$$typeof===ir||t.$$typeof===E0||t.$$typeof===C0||t.$$typeof===A0||t.$$typeof===_0)},V.typeOf=Ee,ll.exports=V;var fl=ll.exports,w0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dl={};dl[fl.ForwardRef]=w0,dl[fl.Memo]=O0;var $0=!0;function pl(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):r+=o+" "}),r}var Yo=function(e,n,r){var o=e.key+"-"+n.name;(r===!1||$0===!1)&&e.registered[o]===void 0&&(e.registered[o]=n.styles)},hl=function(e,n,r){Yo(e,n,r);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function x0(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var P0={animationIterationCount:1,aspectRatio: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},D0=/[A-Z]|^ms/g,T0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ml=function(e){return e.charCodeAt(1)===45},vl=function(e){return e!=null&&typeof e!="boolean"},Xo=f0(function(t){return ml(t)?t:t.replace(D0,"-$&").toLowerCase()}),gl=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(T0,function(r,o,i){return Fe={name:o,styles:i,next:Fe},o})}return P0[e]!==1&&!ml(e)&&typeof n=="number"&&n!==0?n+"px":n},GE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nn(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Fe={name:n.name,styles:n.styles,next:Fe},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fe={name:r.name,styles:r.styles,next:Fe},r=r.next;var o=n.styles+";";return o}return M0(t,e,n)}case"function":{if(t!==void 0){var i=Fe,a=n(t);return Fe=i,nn(t,e,a)}break}}if(e==null)return n;var s=e[n];return s!==void 0?s:n}function M0(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nn(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")e!=null&&e[a]!==void 0?r+=i+"{"+e[a]+"}":vl(a)&&(r+=Xo(i)+":"+gl(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var s=0;s<a.length;s++)vl(a[s])&&(r+=Xo(i)+":"+gl(i,a[s])+";");else{var u=nn(t,e,a);switch(i){case"animation":case"animationName":{r+=Xo(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var yl=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fe,Ko=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";Fe=void 0;var a=e[0];a==null||a.raw===void 0?(o=!1,i+=nn(r,n,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=nn(r,n,e[s]),o&&(i+=a[s]);yl.lastIndex=0;for(var u="",c;(c=yl.exec(i))!==null;)u+="-"+c[1];var l=x0(i)+u;return{name:l,styles:i,next:Fe}},k0=function(e){return e()},F0=Br["useInsertionEffect"]?Br["useInsertionEffect"]:!1,bl=F0||k0,Jo={}.hasOwnProperty,Sl=Vt(typeof HTMLElement!="undefined"?b0({key:"css"}):null);Sl.Provider;var _l=function(e){return Rr(function(n,r){var o=Ht(Sl);return e(n,o,r)})},El=Vt({}),Zo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",I0=function(e,n){var r={};for(var o in n)Jo.call(n,o)&&(r[o]=n[o]);return r[Zo]=e,r},R0=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return Yo(n,r,o),bl(function(){return hl(n,r,o)}),null},N0=_l(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var o=t[Zo],i=[r],a="";typeof t.className=="string"?a=pl(e.registered,i,t.className):t.className!=null&&(a=t.className+" ");var s=Ko(i,void 0,Ht(El));a+=e.key+"-"+s.name;var u={};for(var c in t)Jo.call(t,c)&&c!=="css"&&c!==Zo&&(u[c]=t[c]);return u.ref=n,u.className=a,Q(Ce,null,Q(R0,{cache:e,serialized:s,isStringTag:typeof o=="string"}),Q(o,u))}),L0=N0,M=function(e,n){var r=arguments;if(n==null||!Jo.call(n,"css"))return Q.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=L0,i[1]=I0(e,n);for(var a=2;a<o;a++)i[a]=r[a];return Q.apply(null,i)};function Qo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ko(e)}var B0=function(){var e=Qo.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},V0=function t(e){for(var n=e.length,r=0,o="";r<n;r++){var i=e[r];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=t(i);else{a="";for(var s in i)i[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function H0(t,e,n){var r=[],o=pl(t,r,n);return r.length<2?n:o+e(r)}var U0=function(e){var n=e.cache,r=e.serializedArr;return bl(function(){for(var o=0;o<r.length;o++)hl(n,r[o],!1)}),null},j0=_l(function(t,e){var n=!1,r=[],o=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];var d=Ko(l,e.registered);return r.push(d),Yo(e,d,!1),e.key+"-"+d.name},i=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];return H0(e.registered,o,V0(l))},a={css:o,cx:i,theme:Ht(El)},s=t.children(a);return n=!0,Q(Ce,null,Q(U0,{cache:e,serializedArr:r}),s)});function z0(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function ei(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Mt(t,e){if(t==null)return{};var n=ei(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,r)||(n[r]=t[r]))}return n}function kt(t){return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var ti=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Al=function(){function t(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),wl=yt,rn=Ol(wl),W0=zt.exports,Z=Ol(W0);function Ol(t){return t&&t.__esModule?t:{default:t}}function G0(t,e){var n={};for(var r in t)e.indexOf(r)>=0||!Object.prototype.hasOwnProperty.call(t,r)||(n[r]=t[r]);return n}function q0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y0(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function X0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},K0=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],J0=function(e){return K0.forEach(function(n){return delete e[n]}),e},xl=function(e,n){n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing,n.style.textTransform=e.textTransform},Pl=typeof window!="undefined"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,Dl=function(){return Pl?"_"+Math.random().toString(36).substr(2,12):void 0},ni=function(t){X0(e,t),Al(e,null,[{key:"getDerivedStateFromProps",value:function(r,o){var i=r.id;return i!==o.prevId?{inputId:i||Dl(),prevId:i}:null}}]);function e(n){q0(this,e);var r=Y0(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n));return r.inputRef=function(o){r.input=o,typeof r.props.inputRef=="function"&&r.props.inputRef(o)},r.placeHolderSizerRef=function(o){r.placeHolderSizer=o},r.sizerRef=function(o){r.sizer=o},r.state={inputWidth:n.minWidth,inputId:n.id||Dl(),prevId:n.id},r}return Al(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(r,o){o.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var r=this.input&&window.getComputedStyle(this.input);!r||(xl(r,this.sizer),this.placeHolderSizer&&xl(r,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth=="undefined")){var r=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?r=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:r=this.sizer.scrollWidth+2;var o=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;r+=o,r<this.props.minWidth&&(r=this.props.minWidth),r!==this.state.inputWidth&&this.setState({inputWidth:r})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var r=this.props.injectStyles;return Pl&&r?rn.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var r=[this.props.defaultValue,this.props.value,""].reduce(function(s,u){return s!=null?s:u}),o=ti({},this.props.style);o.display||(o.display="inline-block");var i=ti({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=G0(this.props,[]);return J0(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=i,rn.default.createElement("div",{className:this.props.className,style:o},this.renderStyles(),rn.default.createElement("input",ti({},a,{ref:this.inputRef})),rn.default.createElement("div",{ref:this.sizerRef,style:$l},r),this.props.placeholder?rn.default.createElement("div",{ref:this.placeHolderSizerRef,style:$l},this.props.placeholder):null)}}]),e}(wl.Component);ni.propTypes={className:Z.default.string,defaultValue:Z.default.any,extraWidth:Z.default.oneOfType([Z.default.number,Z.default.string]),id:Z.default.string,injectStyles:Z.default.bool,inputClassName:Z.default.string,inputRef:Z.default.func,inputStyle:Z.default.object,minWidth:Z.default.oneOfType([Z.default.number,Z.default.string]),onAutosize:Z.default.func,onChange:Z.default.func,placeholder:Z.default.string,placeholderIsMinWidth:Z.default.bool,style:Z.default.object,value:Z.default.any},ni.defaultProps={minWidth:1,injectStyles:!0};var Z0=Cl.default=ni;function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q0(t,e){if(kt(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(kt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tl(t){var e=Q0(t,"string");return kt(e)==="symbol"?e:String(e)}function Ml(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tl(r.key),r)}}function cr(t,e,n){return e&&Ml(t.prototype,e),n&&Ml(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fr(t,e){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fr(t,e)}function dr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fr(t,e)}function je(t,e,n){return e=Tl(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kl(Object(n),!0).forEach(function(r){eb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pr(t){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(t)}function tb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function nb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rb(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:nb(t)}function hr(t){var e=tb();return function(){var r=pr(t),o;if(e){var i=pr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return rb(this,o)}}var mr=function(){};function ob(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function ib(t,e,n){var r=[n];if(e&&t)for(var o in e)e.hasOwnProperty(o)&&e[o]&&r.push("".concat(ob(t,o)));return r.filter(function(i){return i}).map(function(i){return String(i).trim()}).join(" ")}var Fl=function(e){return Array.isArray(e)?e.filter(Boolean):kt(e)==="object"&&e!==null?[e]:[]},Il=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=Mt(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]);return ie({},n)};function ri(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Rl(t){return ri(t)?window.pageYOffset:t.scrollTop}function vr(t,e){if(ri(t)){window.scrollTo(0,e);return}t.scrollTop=e}function ab(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/,o=document.documentElement;if(e.position==="fixed")return o;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return o}function sb(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function gr(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:mr,o=Rl(t),i=e-o,a=10,s=0;function u(){s+=a;var c=sb(s,o,i,n);vr(t,c),s<n?window.requestAnimationFrame(u):r(t)}u()}function ub(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?vr(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&vr(t,Math.max(e.offsetTop-o,0))}function lb(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Nl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cb(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ll=!1,fb={get passive(){return Ll=!0}},yr=typeof window!="undefined"?window:{};yr.addEventListener&&yr.removeEventListener&&(yr.addEventListener("p",mr,fb),yr.removeEventListener("p",mr,!1));var db=Ll;function pb(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.theme,u=s.spacing,c=ab(n),l={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return l;var f=c.getBoundingClientRect(),d=f.height,p=n.getBoundingClientRect(),m=p.bottom,b=p.height,v=p.top,S=n.offsetParent.getBoundingClientRect(),C=S.top,P=window.innerHeight,F=Rl(c),O=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),x=C-k,X=P-v,H=x+F,fe=d-F-v,W=m-P+F+O,z=F+v-k,Y=160;switch(o){case"auto":case"bottom":if(X>=b)return{placement:"bottom",maxHeight:e};if(fe>=b&&!a)return i&&gr(c,W,Y),{placement:"bottom",maxHeight:e};if(!a&&fe>=r||a&&X>=r){i&&gr(c,W,Y);var de=a?X-O:fe-O;return{placement:"bottom",maxHeight:de}}if(o==="auto"||a){var Ie=e,he=a?x:H;return he>=r&&(Ie=Math.min(he-O-u.controlHeight,e)),{placement:"top",maxHeight:Ie}}if(o==="bottom")return i&&vr(c,W),{placement:"bottom",maxHeight:e};break;case"top":if(x>=b)return{placement:"top",maxHeight:e};if(H>=b&&!a)return i&&gr(c,z,Y),{placement:"top",maxHeight:e};if(!a&&H>=r||a&&x>=r){var te=e;return(!a&&H>=r||a&&x>=r)&&(te=a?x-k:H-k),i&&gr(c,z,Y),{placement:"top",maxHeight:te}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}function hb(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var oi=function(e){return e==="auto"?"bottom":e},mb=function(e){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return n={label:"menu"},je(n,hb(r),"100%"),je(n,"backgroundColor",s.neutral0),je(n,"borderRadius",i),je(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),je(n,"marginBottom",a.menuGutter),je(n,"marginTop",a.menuGutter),je(n,"position","absolute"),je(n,"width","100%"),je(n,"zIndex",1),n},Bl=Vt({getPortalPlacement:null}),Vl=function(t){dr(n,t);var e=hr(n);function n(){var r;lr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i)),r.state={maxHeight:r.props.maxMenuHeight,placement:null},r.getPlacement=function(s){var u=r.props,c=u.minMenuHeight,l=u.maxMenuHeight,f=u.menuPlacement,d=u.menuPosition,p=u.menuShouldScrollIntoView,m=u.theme;if(!!s){var b=d==="fixed",v=p&&!b,S=pb({maxHeight:l,menuEl:s,minHeight:c,placement:f,shouldScroll:v,isFixedPosition:b,theme:m}),C=r.context.getPortalPlacement;C&&C(S),r.setState(S)}},r.getUpdatedProps=function(){var s=r.props.menuPlacement,u=r.state.placement||oi(s);return ie(ie({},r.props),{},{placement:u,maxHeight:r.state.maxHeight})},r}return cr(n,[{key:"render",value:function(){var o=this.props.children;return o({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(J);Vl.contextType=Bl;var vb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerRef,s=e.innerProps;return M("div",T({css:i("menu",e),className:o({menu:!0},r),ref:a},s),n)},gb=function(e){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:n,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},yb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps,s=e.innerRef,u=e.isMulti;return M("div",T({css:i("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":u},r),ref:s},a),n)},Hl=function(e){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px"),textAlign:"center"}},bb=Hl,Sb=Hl,Ul=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return M("div",T({css:i("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},r)},a),n)};Ul.defaultProps={children:"No options"};var jl=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return M("div",T({css:i("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},r)},a),n)};jl.defaultProps={children:"Loading..."};var _b=function(e){var n=e.rect,r=e.offset,o=e.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},Eb=function(t){dr(n,t);var e=hr(n);function n(){var r;lr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i)),r.state={placement:null},r.getPortalPlacement=function(s){var u=s.placement,c=oi(r.props.menuPlacement);u!==c&&r.setState({placement:u})},r}return cr(n,[{key:"render",value:function(){var o=this.props,i=o.appendTo,a=o.children,s=o.className,u=o.controlElement,c=o.cx,l=o.innerProps,f=o.menuPlacement,d=o.menuPosition,p=o.getStyles,m=d==="fixed";if(!i&&!m||!u)return null;var b=this.state.placement||oi(f),v=lb(u),S=m?0:window.pageYOffset,C=v[b]+S,P={offset:C,position:d,rect:v},F=M("div",T({css:p("menuPortal",P),className:c({"menu-portal":!0},s)},l),a);return M(Bl.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},i?Nr(F,i):F)}}]),n}(J),Cb=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":null,pointerEvents:n?"none":null,position:"relative"}},Ab=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps,s=e.isDisabled,u=e.isRtl;return M("div",T({css:i("container",e),className:o({"--is-disabled":s,"--is-rtl":u},r)},a),n)},wb=function(e){var n=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},Ob=function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.isMulti,s=e.getStyles,u=e.hasValue;return M("div",T({css:s("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":u},r)},i),n)},$b=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},xb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.getStyles;return M("div",T({css:a("indicatorsContainer",e),className:o({indicators:!0},r)},i),n)},zl,Pb={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Wl=function(e){var n=e.size,r=Mt(e,["size"]);return M("svg",T({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Pb},r))},ii=function(e){return M(Wl,T({size:20},e),M("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Gl=function(e){return M(Wl,T({size:20},e),M("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ql=function(e){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return{label:"indicatorContainer",color:n?i.neutral60:i.neutral20,display:"flex",padding:o*2,transition:"color 150ms",":hover":{color:n?i.neutral80:i.neutral40}}},Db=ql,Tb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return M("div",T({css:i("dropdownIndicator",e),className:o({indicator:!0,"dropdown-indicator":!0},r)},a),n||M(Gl,null))},Mb=ql,kb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return M("div",T({css:i("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},r)},a),n||M(ii,null))},Fb=function(e){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:n?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2,width:1}},Ib=function(e){var n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M("span",T({},i,{css:o("indicatorSeparator",e),className:r({"indicator-separator":!0},n)}))},Rb=B0(zl||(zl=z0([`
|
|
21
|
-
0%, 80%, 100% { opacity: 0; }
|
|
22
|
-
40% { opacity: 1; }
|
|
23
|
-
`]))),Nb=function(e){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return{label:"loadingIndicator",color:n?i.neutral60:i.neutral20,display:"flex",padding:a*2,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},ai=function(e){var n=e.delay,r=e.offset;return M("span",{css:Qo({animation:"".concat(Rb," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Yl=function(e){var n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isRtl;return M("div",T({css:o("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},n)},i),M(ai,{delay:0,offset:a}),M(ai,{delay:160,offset:!0}),M(ai,{delay:320,offset:!a}))};Yl.defaultProps={size:4};var Lb=function(e){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius,s=o.spacing;return{label:"control",alignItems:"center",backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?i.primary:i.neutral30}}},Bb=function(e){var n=e.children,r=e.cx,o=e.getStyles,i=e.className,a=e.isDisabled,s=e.isFocused,u=e.innerRef,c=e.innerProps,l=e.menuIsOpen;return M("div",T({ref:u,css:o("control",e),className:r({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},i)},c),n)},Vb=function(e){var n=e.theme.spacing;return{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Hb=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.Heading,s=e.headingProps,u=e.innerProps,c=e.label,l=e.theme,f=e.selectProps;return M("div",T({css:i("group",e),className:o({group:!0},r)},u),M(a,T({},s,{selectProps:f,theme:l,getStyles:i,cx:o}),c),M("div",null,n))},Ub=function(e){var n=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:n.baseUnit*3,paddingRight:n.baseUnit*3,textTransform:"uppercase"}},jb=function(e){var n=e.getStyles,r=e.cx,o=e.className,i=Il(e);i.data;var a=Mt(i,["data"]);return M("div",T({css:n("groupHeading",e),className:r({"group-heading":!0},o)},a))},zb=function(e){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:n?"hidden":"visible",color:i.neutral80}},Wb=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Gb=function(e){var n=e.className,r=e.cx,o=e.getStyles,i=Il(e),a=i.innerRef,s=i.isDisabled,u=i.isHidden,c=Mt(i,["innerRef","isDisabled","isHidden"]);return M("div",{css:o("input",e)},M(Z0,T({className:r({input:!0},n),inputRef:a,inputStyle:Wb(u),disabled:s},c)))},qb=function(e){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return{label:"multiValue",backgroundColor:i.neutral10,borderRadius:o/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},Yb=function(e){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return{borderRadius:r/2,color:o.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},Xb=function(e){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return{alignItems:"center",borderRadius:o/2,backgroundColor:a&&i.dangerLight,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},Xl=function(e){var n=e.children,r=e.innerProps;return M("div",r,n)},Kb=Xl,Jb=Xl;function Zb(t){var e=t.children,n=t.innerProps;return M("div",n,e||M(ii,{size:14}))}var Kl=function(e){var n=e.children,r=e.className,o=e.components,i=e.cx,a=e.data,s=e.getStyles,u=e.innerProps,c=e.isDisabled,l=e.removeProps,f=e.selectProps,d=o.Container,p=o.Label,m=o.Remove;return M(j0,null,function(b){var v=b.css,S=b.cx;return M(d,{data:a,innerProps:ie({className:S(v(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":c},r))},u),selectProps:f},M(p,{data:a,innerProps:{className:S(v(s("multiValueLabel",e)),i({"multi-value__label":!0},r))},selectProps:f},n),M(m,{data:a,innerProps:ie({className:S(v(s("multiValueRemove",e)),i({"multi-value__remove":!0},r))},l),selectProps:f}))})};Kl.defaultProps={cropWithEllipsis:!0};var Qb=function(e){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return{label:"option",backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!n&&(o?s.primary:s.primary50)}}},e1=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.isDisabled,s=e.isFocused,u=e.isSelected,c=e.innerRef,l=e.innerProps;return M("div",T({css:i("option",e),className:o({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":u},r),ref:c},l),n)},t1=function(e){var n=e.theme,r=n.spacing,o=n.colors;return{label:"placeholder",color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},n1=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return M("div",T({css:i("placeholder",e),className:o({placeholder:!0},r)},a),n)},r1=function(e){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return{label:"singleValue",color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2,maxWidth:"calc(100% - ".concat(o.baseUnit*2,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},o1=function(e){var n=e.children,r=e.className,o=e.cx,i=e.getStyles,a=e.isDisabled,s=e.innerProps;return M("div",T({css:i("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":a},r)},s),n)},i1={ClearIndicator:kb,Control:Bb,DropdownIndicator:Tb,DownChevron:Gl,CrossIcon:ii,Group:Hb,GroupHeading:jb,IndicatorsContainer:xb,IndicatorSeparator:Ib,Input:Gb,LoadingIndicator:Yl,Menu:vb,MenuList:yb,MenuPortal:Eb,LoadingMessage:jl,NoOptionsMessage:Ul,MultiValue:Kl,MultiValueContainer:Kb,MultiValueLabel:Jb,MultiValueRemove:Zb,Option:e1,Placeholder:n1,SelectContainer:Ab,SingleValue:o1,ValueContainer:Ob},a1=function(e){return ie(ie({},i1),e.components)};function si(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s1(t){if(Array.isArray(t))return si(t)}function u1(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function l1(t,e){if(!!t){if(typeof t=="string")return si(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return si(t,e)}}function c1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jl(t){return s1(t)||u1(t)||l1(t)||c1()}var Zl=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function f1(t,e){return!!(t===e||Zl(t)&&Zl(e))}function d1(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!f1(t[n],e[n]))return!1;return!0}function p1(t,e){e===void 0&&(e=d1);var n,r=[],o,i=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return i&&n===this&&e(s,r)||(o=t.apply(this,s),i=!0,n=this,r=s),o}return a}for(var h1={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},m1=function(e){return M("span",T({css:h1},e))},v1={guidance:function(e){var n=e.isSearchable,r=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue,a=e.context;switch(a){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,r=e.label,o=r===void 0?"":r,i=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,o=r===void 0?{}:r,i=e.options,a=e.label,s=a===void 0?"":a,u=e.selectValue,c=e.isDisabled,l=e.isSelected,f=function(b,v){return b&&b.length?"".concat(b.indexOf(v)+1," of ").concat(b.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(f(u,o),".");if(n==="menu"){var d=c?" disabled":"",p="".concat(l?"selected":"focused").concat(d);return"option ".concat(s," ").concat(p,", ").concat(f(i,o),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},g1=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,c=u.ariaLiveMessages,l=u.getOptionLabel,f=u.inputValue,d=u.isMulti,p=u.isOptionDisabled,m=u.isSearchable,b=u.menuIsOpen,v=u.options,S=u.screenReaderStatus,C=u.tabSelectsValue,P=u["aria-label"],F=u["aria-live"],O=He(function(){return ie(ie({},v1),c||{})},[c]),k=He(function(){var W="";if(n&&O.onChange){var z=n.option,Y=n.removedValue,de=n.value,Ie=function(Re){return Array.isArray(Re)?null:Re},he=Y||z||Ie(de),te=ie({isDisabled:he&&p(he),label:he?l(he):""},n);W=O.onChange(te)}return W},[n,p,l,O]),x=He(function(){var W="",z=r||o,Y=!!(r&&s&&s.includes(r));if(z&&O.onFocus){var de={focused:z,label:l(z),isDisabled:p(z),isSelected:Y,options:v,context:z===r?"menu":"value",selectValue:s};W=O.onFocus(de)}return W},[r,o,l,p,O,v,s]),X=He(function(){var W="";if(b&&v.length&&O.onFilter){var z=S({count:i.length});W=O.onFilter({inputValue:f,resultsMessage:z})}return W},[i,f,b,O,v,S]),H=He(function(){var W="";if(O.guidance){var z=o?"value":b?"menu":"input";W=O.guidance({"aria-label":P,context:z,isDisabled:r&&p(r),isMulti:d,isSearchable:m,tabSelectsValue:C})}return W},[P,r,o,d,p,m,b,O,C]),fe="".concat(x," ").concat(X," ").concat(H);return M(m1,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text"},a&&M(g.Fragment,null,M("span",{id:"aria-selection"},k),M("span",{id:"aria-context"},fe)))},ui=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],y1=new RegExp("["+ui.map(function(t){return t.letters}).join("")+"]","g"),Ql={},li=0;li<ui.length;li++)for(var ci=ui[li],fi=0;fi<ci.letters.length;fi++)Ql[ci.letters[fi]]=ci.base;var ec=function(e){return e.replace(y1,function(n){return Ql[n]})},b1=p1(ec),tc=function(e){return e.replace(/^\s+|\s+$/g,"")},S1=function(e){return"".concat(e.label," ").concat(e.value)},_1=function(e){return function(n,r){var o=ie({ignoreCase:!0,ignoreAccents:!0,stringify:S1,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,u=o.trim,c=o.matchFrom,l=u?tc(r):r,f=u?tc(s(n)):s(n);return i&&(l=l.toLowerCase(),f=f.toLowerCase()),a&&(l=b1(l),f=ec(f)),c==="start"?f.substr(0,l.length)===l:f.indexOf(l)>-1}};function E1(t){t.in,t.out,t.onExited,t.appear,t.enter,t.exit;var e=t.innerRef;t.emotion;var n=Mt(t,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return M("input",T({ref:e},n,{css:Qo({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var C1=function(e){e.preventDefault(),e.stopPropagation()};function A1(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,a=$e(!1),s=$e(!1),u=$e(0),c=$e(null),l=xe(function(v,S){if(c.current!==null){var C=c.current,P=C.scrollTop,F=C.scrollHeight,O=C.clientHeight,k=c.current,x=S>0,X=F-O-P,H=!1;X>S&&a.current&&(r&&r(v),a.current=!1),x&&s.current&&(i&&i(v),s.current=!1),x&&S>X?(n&&!a.current&&n(v),k.scrollTop=F,H=!0,a.current=!0):!x&&-S>P&&(o&&!s.current&&o(v),k.scrollTop=0,H=!0,s.current=!0),H&&C1(v)}},[]),f=xe(function(v){l(v,v.deltaY)},[l]),d=xe(function(v){u.current=v.changedTouches[0].clientY},[]),p=xe(function(v){var S=u.current-v.changedTouches[0].clientY;l(v,S)},[l]),m=xe(function(v){if(!!v){var S=db?{passive:!1}:!1;typeof v.addEventListener=="function"&&v.addEventListener("wheel",f,S),typeof v.addEventListener=="function"&&v.addEventListener("touchstart",d,S),typeof v.addEventListener=="function"&&v.addEventListener("touchmove",p,S)}},[p,d,f]),b=xe(function(v){!v||(typeof v.removeEventListener=="function"&&v.removeEventListener("wheel",f,!1),typeof v.removeEventListener=="function"&&v.removeEventListener("touchstart",d,!1),typeof v.removeEventListener=="function"&&v.removeEventListener("touchmove",p,!1))},[p,d,f]);return tt(function(){if(!!e){var v=c.current;return m(v),function(){b(v)}}},[e,m,b]),function(v){c.current=v}}var nc=["boxSizing","height","overflow","paddingRight","position"],rc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function oc(t){t.preventDefault()}function ic(t){t.stopPropagation()}function ac(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function sc(){return"ontouchstart"in window||navigator.maxTouchPoints}var uc=!!(typeof window!="undefined"&&window.document&&window.document.createElement),on=0,Ft={capture:!1,passive:!1};function w1(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,o=$e({}),i=$e(null),a=xe(function(u){if(!!uc){var c=document.body,l=c&&c.style;if(r&&nc.forEach(function(m){var b=l&&l[m];o.current[m]=b}),r&&on<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(rc).forEach(function(m){var b=rc[m];l&&(l[m]=b)}),l&&(l.paddingRight="".concat(p,"px"))}c&&sc()&&(c.addEventListener("touchmove",oc,Ft),u&&(u.addEventListener("touchstart",ac,Ft),u.addEventListener("touchmove",ic,Ft))),on+=1}},[]),s=xe(function(u){if(!!uc){var c=document.body,l=c&&c.style;on=Math.max(on-1,0),r&&on<1&&nc.forEach(function(f){var d=o.current[f];l&&(l[f]=d)}),c&&sc()&&(c.removeEventListener("touchmove",oc,Ft),u&&(u.removeEventListener("touchstart",ac,Ft),u.removeEventListener("touchmove",ic,Ft)))}},[]);return tt(function(){if(!!e){var u=i.current;return a(u),function(){s(u)}}},[e,a,s]),function(u){i.current=u}}var O1=function(){return document.activeElement&&document.activeElement.blur()},$1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function x1(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,o=r===void 0?!0:r,i=t.onBottomArrive,a=t.onBottomLeave,s=t.onTopArrive,u=t.onTopLeave,c=A1({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:u}),l=w1({isEnabled:n}),f=function(p){c(p),l(p)};return M(g.Fragment,null,n&&M("div",{onClick:O1,css:$1}),e(f))}var P1=function(e){return e.label},D1=function(e){return e.label},T1=function(e){return e.value},M1=function(e){return!!e.isDisabled},k1={clearIndicator:Mb,container:Cb,control:Lb,dropdownIndicator:Db,group:Vb,groupHeading:Ub,indicatorsContainer:$b,indicatorSeparator:Fb,input:zb,loadingIndicator:Nb,loadingMessage:Sb,menu:mb,menuList:gb,menuPortal:_b,multiValue:qb,multiValueLabel:Yb,multiValueRemove:Xb,noOptionsMessage:bb,option:Qb,placeholder:t1,singleValue:r1,valueContainer:wb},F1={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},I1=4,lc=4,R1=38,N1=lc*2,L1={baseUnit:lc,controlHeight:R1,menuGutter:N1},di={borderRadius:I1,colors:F1,spacing:L1},B1={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Nl(),captureMenuScroll:!Nl(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:_1(),formatGroupLabel:P1,getOptionLabel:D1,getOptionValue:T1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:M1,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!cb(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function cc(t,e,n,r){var o=mc(t,e,n),i=vc(t,e,n),a=hc(t,e),s=br(t,e);return{type:"option",data:e,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function fc(t,e){return t.options.map(function(n,r){if(n.options){var o=n.options.map(function(a,s){return cc(t,a,e,s)}).filter(function(a){return pc(t,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=cc(t,n,e,r);return pc(t,i)?i:void 0}).filter(function(n){return!!n})}function dc(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,Jl(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function V1(t,e){return dc(fc(t,e))}function pc(t,e){var n=t.inputValue,r=n===void 0?"":n,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!yc(t)||!i)&&gc(t,{label:a,value:s,data:o},r)}function H1(t,e){var n=t.focusedValue,r=t.selectValue,o=r.indexOf(n);if(o>-1){var i=e.indexOf(n);if(i>-1)return n;if(o<e.length)return e[o]}return null}function U1(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var hc=function(e,n){return e.getOptionLabel(n)},br=function(e,n){return e.getOptionValue(n)};function mc(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function vc(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=br(t,e);return n.some(function(o){return br(t,o)===r})}function gc(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var yc=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},j1=1,bc=function(t){dr(n,t);var e=hr(n);function n(r){var o;return lr(this,n),o=e.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(i){o.controlRef=i},o.focusedOptionRef=null,o.getFocusedOptionRef=function(i){o.focusedOptionRef=i},o.menuListRef=null,o.getMenuListRef=function(i){o.menuListRef=i},o.inputRef=null,o.getInputRef=function(i){o.inputRef=i},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(i,a){var s=o.props,u=s.onChange,c=s.name;a.name=c,o.ariaOnChange(i,a),u(i,a)},o.setValue=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",s=arguments.length>2?arguments[2]:void 0,u=o.props,c=u.closeMenuOnSelect,l=u.isMulti;o.onInputChange("",{action:"set-value"}),c&&(o.setState({inputIsHiddenAfterUpdate:!l}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(i,{action:a,option:s})},o.selectOption=function(i){var a=o.props,s=a.blurInputOnSelect,u=a.isMulti,c=a.name,l=o.state.selectValue,f=u&&o.isOptionSelected(i,l),d=o.isOptionDisabled(i,l);if(f){var p=o.getOptionValue(i);o.setValue(l.filter(function(m){return o.getOptionValue(m)!==p}),"deselect-option",i)}else if(!d)u?o.setValue([].concat(Jl(l),[i]),"select-option",i):o.setValue(i,"select-option");else{o.ariaOnChange(i,{action:"select-option",name:c});return}s&&o.blurInput()},o.removeValue=function(i){var a=o.props.isMulti,s=o.state.selectValue,u=o.getOptionValue(i),c=s.filter(function(f){return o.getOptionValue(f)!==u}),l=a?c:c[0]||null;o.onChange(l,{action:"remove-value",removedValue:i}),o.focusInput()},o.clearValue=function(){var i=o.state.selectValue;o.onChange(o.props.isMulti?[]:null,{action:"clear",removedValues:i})},o.popValue=function(){var i=o.props.isMulti,a=o.state.selectValue,s=a[a.length-1],u=a.slice(0,a.length-1),c=i?u:u[0]||null;o.onChange(c,{action:"pop-value",removedValue:s})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return ib.apply(void 0,[o.props.classNamePrefix].concat(a))},o.getOptionLabel=function(i){return hc(o.props,i)},o.getOptionValue=function(i){return br(o.props,i)},o.getStyles=function(i,a){var s=k1[i](a);s.boxSizing="border-box";var u=o.props.styles[i];return u?u(s,a):s},o.getElementId=function(i){return"".concat(o.instancePrefix,"-").concat(i)},o.getComponents=function(){return a1(o.props)},o.buildCategorizedOptions=function(){return fc(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return dc(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(i,a){o.setState({ariaSelection:ie({value:i},a)})},o.onMenuMouseDown=function(i){i.button===0&&(i.stopPropagation(),i.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(i){o.blockOptionHover=!1},o.onControlMouseDown=function(i){var a=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&o.onMenuClose():a&&o.openMenu("first"):(a&&(o.openAfterFocus=!0),o.focusInput()),i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&i.preventDefault()},o.onDropdownIndicatorMouseDown=function(i){if(!(i&&i.type==="mousedown"&&i.button!==0)&&!o.props.isDisabled){var a=o.props,s=a.isMulti,u=a.menuIsOpen;o.focusInput(),u?(o.setState({inputIsHiddenAfterUpdate:!s}),o.onMenuClose()):o.openMenu("first"),i.preventDefault(),i.stopPropagation()}},o.onClearIndicatorMouseDown=function(i){i&&i.type==="mousedown"&&i.button!==0||(o.clearValue(),i.stopPropagation(),o.openAfterFocus=!1,i.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(i){typeof o.props.closeMenuOnScroll=="boolean"?i.target instanceof HTMLElement&&ri(i.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(i)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(i){var a=i.touches,s=a&&a.item(0);!s||(o.initialTouchX=s.clientX,o.initialTouchY=s.clientY,o.userIsDragging=!1)},o.onTouchMove=function(i){var a=i.touches,s=a&&a.item(0);if(!!s){var u=Math.abs(s.clientX-o.initialTouchX),c=Math.abs(s.clientY-o.initialTouchY),l=5;o.userIsDragging=u>l||c>l}},o.onTouchEnd=function(i){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(i.target)&&o.menuListRef&&!o.menuListRef.contains(i.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(i){o.userIsDragging||o.onControlMouseDown(i)},o.onClearIndicatorTouchEnd=function(i){o.userIsDragging||o.onClearIndicatorMouseDown(i)},o.onDropdownIndicatorTouchEnd=function(i){o.userIsDragging||o.onDropdownIndicatorMouseDown(i)},o.handleInputChange=function(i){var a=i.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(a,{action:"input-change"}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(i){o.props.onFocus&&o.props.onFocus(i),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(i){if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(i),o.onInputChange("",{action:"input-blur"}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(i){o.blockOptionHover||o.state.focusedOption===i||o.setState({focusedOption:i})},o.shouldHideSelectedOptions=function(){return yc(o.props)},o.onKeyDown=function(i){var a=o.props,s=a.isMulti,u=a.backspaceRemovesValue,c=a.escapeClearsValue,l=a.inputValue,f=a.isClearable,d=a.isDisabled,p=a.menuIsOpen,m=a.onKeyDown,b=a.tabSelectsValue,v=a.openMenuOnFocus,S=o.state,C=S.focusedOption,P=S.focusedValue,F=S.selectValue;if(!d&&!(typeof m=="function"&&(m(i),i.defaultPrevented))){switch(o.blockOptionHover=!0,i.key){case"ArrowLeft":if(!s||l)return;o.focusValue("previous");break;case"ArrowRight":if(!s||l)return;o.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(P)o.removeValue(P);else{if(!u)return;s?o.popValue():f&&o.clearValue()}break;case"Tab":if(o.isComposing||i.shiftKey||!p||!b||!C||v&&o.isOptionSelected(C,F))return;o.selectOption(C);break;case"Enter":if(i.keyCode===229)break;if(p){if(!C||o.isComposing)return;o.selectOption(C);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close"}),o.onMenuClose()):f&&c&&o.clearValue();break;case" ":if(l)return;if(!p){o.openMenu("first");break}if(!C)return;o.selectOption(C);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}i.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++j1),o.state.selectValue=Fl(r.value),o}return cr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!a&&o.isDisabled||u&&s&&!o.menuIsOpen)&&this.focusInput(),u&&a&&!o.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ub(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,u=a.isFocused,c=this.buildFocusableOptions(),l=o==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(s[0]);f>-1&&(l=f)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[l]},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var u=a.indexOf(s);s||(u=-1);var c=a.length-1,l=-1;if(!!a.length){switch(o){case"previous":u===0?l=0:u===-1?l=c:l=u-1;break;case"next":u>-1&&u<c&&(l=u+1);break}this.setState({inputIsHidden:l!==-1,focusedValue:a[l]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(!!s.length){var u=0,c=s.indexOf(a);a||(c=-1),o==="up"?u=c>0?c-1:s.length-1:o==="down"?u=(c+1)%s.length:o==="pageup"?(u=c-i,u<0&&(u=0)):o==="pagedown"?(u=c+i,u>s.length-1&&(u=s.length-1)):o==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(di):ie(ie({},di),this.props.theme):di}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getValue,u=this.selectOption,c=this.setValue,l=this.props,f=l.isMulti,d=l.isRtl,p=l.options,m=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getValue:s,hasValue:m,isMulti:f,isRtl:d,options:p,selectOption:u,selectProps:l,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return mc(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return vc(this.props,o,i)}},{key:"filterOption",value:function(o,i){return gc(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,u=o.inputValue,c=o.tabIndex,l=o.form,f=this.getComponents(),d=f.Input,p=this.state.inputIsHidden,m=this.commonProps,b=s||this.getElementId("input"),v={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return a?g.createElement(d,T({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:l,type:"text",value:u},v)):g.createElement(E1,T({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:mr,onFocus:this.onInputFocus,readOnly:!0,disabled:i,tabIndex:c,form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,u=i.MultiValueLabel,c=i.MultiValueRemove,l=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,m=p.controlShouldRenderValue,b=p.isDisabled,v=p.isMulti,S=p.inputValue,C=p.placeholder,P=this.state,F=P.selectValue,O=P.focusedValue,k=P.isFocused;if(!this.hasValue()||!m)return S?null:g.createElement(f,T({},d,{key:"placeholder",isDisabled:b,isFocused:k}),C);if(v){var x=F.map(function(H,fe){var W=H===O;return g.createElement(a,T({},d,{components:{Container:s,Label:u,Remove:c},isFocused:W,isDisabled:b,key:"".concat(o.getOptionValue(H)).concat(fe),index:fe,removeProps:{onClick:function(){return o.removeValue(H)},onTouchEnd:function(){return o.removeValue(H)},onMouseDown:function(Y){Y.preventDefault(),Y.stopPropagation()}},data:H}),o.formatOptionLabel(H,"value"))});return x}if(S)return null;var X=F[0];return g.createElement(l,T({},d,{data:X,isDisabled:b}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(i,T({},a,{innerProps:f,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!i||!c)return null;var f={"aria-hidden":"true"};return g.createElement(i,T({},a,{innerProps:f,isDisabled:u,isFocused:l}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return g.createElement(a,T({},s,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(i,T({},a,{innerProps:c,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,u=i.Menu,c=i.MenuList,l=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,m=this.commonProps,b=this.state.focusedOption,v=this.props,S=v.captureMenuScroll,C=v.inputValue,P=v.isLoading,F=v.loadingMessage,O=v.minMenuHeight,k=v.maxMenuHeight,x=v.menuIsOpen,X=v.menuPlacement,H=v.menuPosition,fe=v.menuPortalTarget,W=v.menuShouldBlockScroll,z=v.menuShouldScrollIntoView,Y=v.noOptionsMessage,de=v.onMenuScrollToTop,Ie=v.onMenuScrollToBottom;if(!x)return null;var he=function(_,E){var A=_.type,w=_.data,D=_.isDisabled,I=_.isSelected,j=_.label,U=_.value,Ze=b===w,We=D?void 0:function(){return o.onOptionHover(w)},Qe=D?void 0:function(){return o.selectOption(w)},Ne="".concat(o.getElementId("option"),"-").concat(E),cn={id:Ne,onClick:Qe,onMouseMove:We,onMouseOver:We,tabIndex:-1};return g.createElement(p,T({},m,{innerProps:cn,data:w,isDisabled:D,isSelected:I,key:Ne,label:j,type:A,value:U,isFocused:Ze,innerRef:Ze?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(_.data,"menu"))},te;if(this.hasOptions())te=this.getCategorizedOptions().map(function(y){if(y.type==="group"){var _=y.data,E=y.options,A=y.index,w="".concat(o.getElementId("group"),"-").concat(A),D="".concat(w,"-heading");return g.createElement(a,T({},m,{key:w,data:_,options:E,Heading:s,headingProps:{id:D,data:y.data},label:o.formatGroupLabel(y.data)}),y.options.map(function(I){return he(I,"".concat(A,"-").concat(I.index))}))}else if(y.type==="option")return he(y,"".concat(y.index))});else if(P){var ln=F({inputValue:C});if(ln===null)return null;te=g.createElement(f,m,ln)}else{var Re=Y({inputValue:C});if(Re===null)return null;te=g.createElement(d,m,Re)}var we={minMenuHeight:O,maxMenuHeight:k,menuPlacement:X,menuPosition:H,menuShouldScrollIntoView:z},dt=g.createElement(Vl,T({},m,we),function(y){var _=y.ref,E=y.placerProps,A=E.placement,w=E.maxHeight;return g.createElement(u,T({},m,we,{innerRef:_,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:P,placement:A}),g.createElement(x1,{captureEnabled:S,onTopArrive:de,onBottomArrive:Ie,lockEnabled:W},function(D){return g.createElement(c,T({},m,{innerRef:function(j){o.getMenuListRef(j),D(j)},isLoading:P,maxHeight:w,focusedOption:b}),te)}))});return fe||H==="fixed"?g.createElement(l,T({},m,{appendTo:fe,controlElement:this.controlRef,menuPlacement:X,menuPosition:H}),dt):dt}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,u=i.isMulti,c=i.name,l=this.state.selectValue;if(!(!c||s))if(u)if(a){var f=l.map(function(m){return o.getOptionValue(m)}).join(a);return g.createElement("input",{name:c,type:"hidden",value:f})}else{var d=l.length>0?l.map(function(m,b){return g.createElement("input",{key:"i-".concat(b),name:c,type:"hidden",value:o.getOptionValue(m)})}):g.createElement("input",{name:c,type:"hidden"});return g.createElement("div",null,d)}else{var p=l[0]?this.getOptionValue(l[0]):"";return g.createElement("input",{name:c,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,u=i.focusedValue,c=i.isFocused,l=i.selectValue,f=this.getFocusableOptions();return g.createElement(g1,T({},o,{ariaSelection:a,focusedOption:s,focusedValue:u,isFocused:c,selectValue:l,focusableOptions:f}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,u=o.ValueContainer,c=this.props,l=c.className,f=c.id,d=c.isDisabled,p=c.menuIsOpen,m=this.state.isFocused,b=this.commonProps=this.getCommonProps();return g.createElement(s,T({},b,{className:l,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:m}),this.renderLiveRegion(),g.createElement(i,T({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:m,menuIsOpen:p}),g.createElement(u,T({},b,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),g.createElement(a,T({},b,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,c=o.options,l=o.value,f=o.menuIsOpen,d=o.inputValue,p={};if(a&&(l!==a.value||c!==a.options||f!==a.menuIsOpen||d!==a.inputValue)){var m=Fl(l),b=f?V1(o,m):[],v=s?H1(i,m):null,S=U1(i,b);p={selectValue:m,focusedOption:S,focusedValue:v,clearFocusValueOnUpdate:!1}}var C=u!=null&&o!==a?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{};return ie(ie(ie({},p),C),{},{prevProps:o})}}]),n}(J);bc.defaultProps=B1;var z1={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},W1=function(e){var n,r;return r=n=function(o){dr(a,o);var i=hr(a);function a(){var s;lr(this,a);for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];return s=i.call.apply(i,[this].concat(c)),s.select=void 0,s.state={inputValue:s.props.inputValue!==void 0?s.props.inputValue:s.props.defaultInputValue,menuIsOpen:s.props.menuIsOpen!==void 0?s.props.menuIsOpen:s.props.defaultMenuIsOpen,value:s.props.value!==void 0?s.props.value:s.props.defaultValue},s.onChange=function(f,d){s.callProp("onChange",f,d),s.setState({value:f})},s.onInputChange=function(f,d){var p=s.callProp("onInputChange",f,d);s.setState({inputValue:p!==void 0?p:f})},s.onMenuOpen=function(){s.callProp("onMenuOpen"),s.setState({menuIsOpen:!0})},s.onMenuClose=function(){s.callProp("onMenuClose"),s.setState({menuIsOpen:!1})},s}return cr(a,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(u){return this.props[u]!==void 0?this.props[u]:this.state[u]}},{key:"callProp",value:function(u){if(typeof this.props[u]=="function"){for(var c,l=arguments.length,f=new Array(l>1?l-1:0),d=1;d<l;d++)f[d-1]=arguments[d];return(c=this.props)[u].apply(c,f)}}},{key:"render",value:function(){var u=this,c=this.props;c.defaultInputValue,c.defaultMenuIsOpen,c.defaultValue;var l=Mt(c,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return g.createElement(e,T({},l,{ref:function(d){u.select=d},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),a}(J),n.defaultProps=z1,r},G1=W1(bc),q1=G1;const pi=[{value:"assessing",label:"Assessing"},{value:"bookmarking",label:"Bookmarking"},{value:"classifying",label:"Classifying"},{value:"commenting",label:"Commenting"},{value:"describing",label:"Describing"},{value:"editing",label:"Editing"},{value:"highlighting",label:"Highlighting"},{value:"identifying",label:"Identifying"},{value:"linking",label:"Linking"},{value:"moderating",label:"Moderating"},{value:"questioning",label:"Questioning"},{value:"replying",label:"Replying"},{value:"supplementing",label:"Transcription"}];var Sc=t=>{const e=t.content?pi.find(n=>n.value===t.content):null;return g.createElement("div",{className:"r6o-purposedropdown"},g.createElement(q1,{value:e,onChange:t.onChange,options:pi,isDisabled:!t.editable}))};const Y1=t=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 940",width:t.width},g.createElement("metadata",null,"IcoFont Icons"),g.createElement("title",null,"simple-down"),g.createElement("glyph",{glyphName:"simple-down",unicode:"\uEAB2",horizAdvX:"1000"}),g.createElement("path",{fill:"currentColor",d:"M200 392.6l300 300 300-300-85.10000000000002-85.10000000000002-214.89999999999998 214.79999999999995-214.89999999999998-214.89999999999998-85.10000000000002 85.20000000000005z"})),X1=t=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"180 150 700 800",width:t.width},g.createElement("metadata",null,"IcoFont Icons"),g.createElement("title",null,"close"),g.createElement("glyph",{glyphName:"close",unicode:"\uEEE4",horizAdvX:"1000"}),g.createElement("path",{fill:"currentColor",d:"M709.8 206.6c-64.39999999999998 65.50000000000003-128.89999999999998 131.20000000000002-194.19999999999993 197.6-8.600000000000023 8.699999999999989-22.400000000000034 8.800000000000011-31 0-65-66-129.70000000000005-131.8-194.5-197.6-8.600000000000023-8.699999999999989-22.400000000000034-8.599999999999994-30.900000000000034 0.09999999999999432-15.699999999999989 16.200000000000017-31.099999999999994 32.30000000000001-47.099999999999994 48.80000000000001-8.5 8.800000000000011-8.299999999999983 23 0.20000000000001705 31.69999999999999 63.099999999999966 64.19999999999999 127.89999999999998 130.10000000000002 193.59999999999997 197 8.600000000000023 8.699999999999989 8.5 22.80000000000001 0 31.599999999999966-65.19999999999999 66.40000000000009-130.2 132.5-194.7 198.10000000000002-8.5 8.700000000000045-8.5 22.800000000000068 0.20000000000001705 31.399999999999977l47.79999999999998 47.90000000000009c8.600000000000023 8.599999999999909 22.600000000000023 8.599999999999909 31.100000000000023-0.10000000000002274l194.2-197.30000000000007c8.600000000000023-8.699999999999932 22.399999999999977-8.699999999999932 31 0 64.70000000000005 65.80000000000007 129.20000000000005 131.4000000000001 194.20000000000005 197.5 8.599999999999909 8.700000000000045 22.5 8.800000000000068 31 0.10000000000002274 16-16.199999999999932 31.699999999999932-32.19999999999993 47.59999999999991-48.299999999999955 8.600000000000023-8.700000000000045 8.600000000000023-22.899999999999977 0.10000000000002274-31.600000000000023-63.799999999999955-65-128.5-130.89999999999998-194.19999999999993-197.79999999999995-8.600000000000023-8.700000000000045-8.600000000000023-22.900000000000034 0-31.600000000000023 65.19999999999993-66.40000000000003 130.0999999999999-132.5 194.5-198.20000000000005 8.599999999999909-8.699999999999989 8.5-22.799999999999955-0.10000000000002274-31.49999999999997l-47.80000000000007-48.099999999999994c-8.5-8.5-22.399999999999977-8.400000000000006-31 0.29999999999998295z"})),K1=t=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:t.width},g.createElement("path",{fill:"currentColor",d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"}));var J1=t=>{const[e,n]=Ve(!1),[r,o]=Ve(!1),i=f=>{n(!0),o(!1)},a=f=>{t.onDelete(t.body),o(!1)},s=f=>t.onUpdate(t.body,{...t.body,value:f.target.value}),u=f=>t.onUpdate(t.body,{...t.body,purpose:f.value}),c=t.body.modified||t.body.created,l=t.body.creator&&g.createElement("div",{className:"r6o-lastmodified"},g.createElement("span",{className:"r6o-lastmodified-by"},t.body.creator.name||t.body.creator.id),t.body.created&&g.createElement("span",{className:"r6o-lastmodified-at"},g.createElement(Wd,{datetime:t.env.toClientTime(c),locale:Se.locale()})));return t.readOnly?g.createElement("div",{className:"r6o-widget comment"},g.createElement("div",{className:"r6o-readonly-comment"},t.body.value),l):g.createElement("div",{className:e?"r6o-widget comment editable":"r6o-widget comment"},g.createElement(Zu,{editable:e,content:t.body.value,onChange:s,onSaveAndClose:t.onSaveAndClose}),!e&&l,t.purposeSelector&&g.createElement(Sc,{editable:e,content:t.body.purpose,onChange:u,onSaveAndClose:t.onSaveAndClose}),g.createElement("div",{className:r?"r6o-icon r6o-arrow-down r6o-menu-open":"r6o-icon r6o-arrow-down",onClick:()=>o(!r)},g.createElement(Y1,{width:12})),r&&g.createElement(ky,{onEdit:i,onDelete:a,onClickOutside:()=>o(!1)}))};const Z1=pi.map(t=>t.value),_c=(t,e)=>{const n=e?Z1.indexOf(t.purpose)>-1:t.purpose=="commenting"||t.purpose=="replying";return t.type==="TextualBody"&&(!Object.prototype.hasOwnProperty.call(t,"purpose")||n)},Ec=(t,e)=>{var n,r;if(e.editable===!0)return!1;if(e.editable===!1)return!0;if(e.editable==="MINE_ONLY"){const o=(n=t.creator)==null?void 0:n.id;return((r=e.env.user)==null?void 0:r.id)!==o}return e.readOnly},Q1=(t,e)=>t||{type:"TextualBody",value:"",purpose:e?"replying":"commenting",draft:!0},Cc=t=>{const e=t.annotation?t.annotation.bodies.filter(u=>_c(u,t.purposeSelector)):[],n=Q1(e.find(u=>u.draft==!0),e.length>1),r=e.filter(u=>u!=n),o=u=>{const c=n.value,l=u.target.value;c.length===0&&l.length>0?t.onAppendBody({...n,value:l}):c.length>0&&l.length===0?t.onRemoveBody(n):t.onUpdateBody(n,{...n,value:l})},i=u=>t.onUpdateBody(n,{...n,purpose:u.value}),a=!t.readOnly&&t.annotation,s=r.length===0||!t.disableReply;return g.createElement(g.Fragment,null,r.map((u,c)=>g.createElement(J1,{key:c,env:t.env,purposeSelector:t.purposeSelector,readOnly:Ec(u,t),body:u,onUpdate:t.onUpdateBody,onDelete:t.onRemoveBody,onSaveAndClose:t.onSaveAndClose})),a&&s&&g.createElement("div",{className:"r6o-widget comment editable"},g.createElement(Zu,{focus:t.focus,content:n.value,editable:!0,placeholder:r.length>0?Se.t("Add a reply..."):t.textPlaceHolder||Se.t("Add a comment..."),onChange:o,onSaveAndClose:()=>t.onSaveAndClose()}),t.purposeSelector&&n.value.length>0&&g.createElement(Sc,{editable:!0,content:n.purpose,onChange:i,onSaveAndClose:()=>t.onSaveAndClose()})))};Cc.disableDelete=(t,e)=>t.bodies.filter(r=>_c(r,e.purposeSelector)).some(r=>Ec(r,e));var Ac=Cc;function wc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,fr(t,e)}function eS(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function tS(t,e){t.classList?t.classList.add(e):eS(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Oc(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nS(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Oc(t.className,e):t.setAttribute("class",Oc(t.className&&t.className.baseVal||"",e))}var $c={disabled:!1},xc=g.createContext(null),an="unmounted",ct="exited",ft="entering",It="entered",hi="exiting",ze=function(t){wc(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?s?(u=ct,i.appearStatus=ft):u=It:r.unmountOnExit||r.mountOnEnter?u=an:u=ct,i.state={status:u},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===an?{status:ct}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ft&&a!==It&&(i=ft):(a===ft||a===It)&&(i=hi)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===ft?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===ct&&this.setState({status:an})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[g.findDOMNode(this),s],c=u[0],l=u[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!o&&!a||$c.disabled){this.safeSetState({status:It},function(){i.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:ft},function(){i.props.onEntering(c,l),i.onTransitionEnd(d,function(){i.safeSetState({status:It},function(){i.props.onEntered(c,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:g.findDOMNode(this);if(!i||$c.disabled){this.safeSetState({status:ct},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:hi},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ct},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=u[0],l=u[1];this.props.addEndListener(c,l)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===an)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ei(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(xc.Provider,{value:null},typeof a=="function"?a(o,s):g.cloneElement(g.Children.only(a),s))},e}(g.Component);ze.contextType=xc,ze.propTypes={};function Rt(){}ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rt,onEntering:Rt,onEntered:Rt,onExit:Rt,onExiting:Rt,onExited:Rt},ze.UNMOUNTED=an,ze.EXITED=ct,ze.ENTERING=ft,ze.ENTERED=It,ze.EXITING=hi;var rS=ze,oS=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return tS(e,r)})},mi=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return nS(e,r)})},vi=function(t){wc(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,u){var c=r.resolveArguments(s,u),l=c[0],f=c[1];r.removeClasses(l,"exit"),r.addClass(l,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,u)},r.onEntering=function(s,u){var c=r.resolveArguments(s,u),l=c[0],f=c[1],d=f?"appear":"enter";r.addClass(l,d,"active"),r.props.onEntering&&r.props.onEntering(s,u)},r.onEntered=function(s,u){var c=r.resolveArguments(s,u),l=c[0],f=c[1],d=f?"appear":"enter";r.removeClasses(l,d),r.addClass(l,d,"done"),r.props.onEntered&&r.props.onEntered(s,u)},r.onExit=function(s){var u=r.resolveArguments(s),c=u[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var u=r.resolveArguments(s),c=u[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var u=r.resolveArguments(s),c=u[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,u){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,u]},r.getClassNames=function(s){var u=r.props.classNames,c=typeof u=="string",l=c&&u?u+"-":"",f=c?""+l+s:u[s],d=c?f+"-active":u[s+"Active"],p=c?f+"-done":u[s+"Done"];return{baseClassName:f,activeClassName:d,doneClassName:p}},r}var n=e.prototype;return n.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],u=this.getClassNames("enter"),c=u.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&o.scrollTop,s&&(this.appliedClasses[i][a]=s,oS(o,s))},n.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,u=a.active,c=a.done;this.appliedClasses[i]={},s&&mi(o,s),u&&mi(o,u),c&&mi(o,c)},n.render=function(){var o=this.props;o.classNames;var i=ei(o,["classNames"]);return g.createElement(rS,T({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(g.Component);vi.defaultProps={classNames:""},vi.propTypes={};var iS=vi;const aS=(t,e)=>e.filter(n=>(n.label?n.label:n).toLowerCase().startsWith(t.toLowerCase())),sS=(t,e)=>e(t);var uS=t=>{const e=$e(),[n,r]=Ve(t.initialValue||""),[o,i]=Ve([]),[a,s]=Ve(null);tt(()=>{t.focus&&e.current.querySelector("input").focus({preventScroll:!0})},[]),tt(()=>{t.onChange&&t.onChange(n)},[n]);const u=d=>{if(typeof t.vocabulary=="function"){const p=sS(d,t.vocabulary);p.then?p.then(i):i(p)}else{const p=aS(d,t.vocabulary);i(p)}},c=()=>{if(a!==null)t.onSubmit(o[a]);else{const d=n.trim();if(d){const p=Array.isArray(t.vocabulary)?t.vocabulary.find(m=>(m.label||m).toLowerCase()===d.toLowerCase()):null;p?t.onSubmit(p):t.onSubmit(d)}}r(""),i([]),s(null)},l=d=>{if(d.which===13)c();else if(d.which===27)t.onCancel&&t.onCancel();else if(o.length>0){if(d.which===38)if(a===null)s(0);else{const p=Math.max(0,a-1);s(p)}else if(d.which===40)if(a===null)s(0);else{const p=Math.min(o.length-1,a+1);s(p)}}else d.which===40&&Array.isArray(t.vocabulary)&&i(t.vocabulary)},f=d=>{const{value:p}=d.target;r(p),s(null),p?u(p):i([])};return g.createElement("div",{ref:e,className:"r6o-autocomplete"},g.createElement("div",null,g.createElement("input",{onKeyDown:l,onChange:f,value:n,placeholder:t.placeholder})),g.createElement("ul",null,o.length>0&&o.map((d,p)=>g.createElement("li",{key:`${d.label?d.label:d}${p}`,onClick:c,onMouseEnter:()=>s(p),style:a===p?{backgroundColor:"#bde4ff"}:{}},d.label?d.label:d))))};const lS=t=>t||{type:"TextualBody",value:"",purpose:"tagging",draft:!0};var Pc=t=>{const e=t.annotation?t.annotation.bodies.filter(f=>f.purpose==="tagging"):[],n=lS(e.slice().reverse().find(f=>f.draft)),r=e.filter(f=>f!=n),[o,i]=Ve(!1),a=f=>d=>{i(o===f?!1:f)},s=f=>{const d=n.value.trim(),p=f.trim();d.length===0&&p.length>0?t.onAppendBody({...n,value:p}):d.length>0&&p.length===0?t.onRemoveBody(n):d!==p&&t.onUpdateBody(n,{...n,value:p})},u=f=>d=>{d.stopPropagation(),t.onRemoveBody(f)},c=f=>{const d=f.uri?{type:"SpecificResource",purpose:"tagging",source:{id:f.uri,label:f.label}}:{type:"TextualBody",purpose:"tagging",value:f.label||f};n.value.trim().length===0?t.onAppendBody(d):t.onUpdateBody(n,d)},l=f=>f.value||f.source.label;return g.createElement("div",{className:"r6o-widget r6o-tag"},r.length>0&&g.createElement("ul",{className:"r6o-taglist"},r.map(f=>g.createElement("li",{key:l(f),onClick:a(f)},g.createElement("span",{className:"r6o-label"},l(f)),!t.readOnly&&g.createElement(iS,{in:o===f,timeout:200,classNames:"r6o-delete"},g.createElement("span",{className:"r6o-delete-wrapper",onClick:u(f)},g.createElement("span",{className:"r6o-delete"},g.createElement(X1,{width:12}))))))),!t.readOnly&&g.createElement(uS,{focus:t.focus,placeholder:t.textPlaceHolder||Se.t("Add tag..."),vocabulary:t.vocabulary||[],onChange:s,onSubmit:c}))};class Dc extends J{constructor(e){super(e),this.element=g.createRef()}renderWidget(e){const n=this.props.widget({annotation:e.annotation,readOnly:e.readOnly,...e.config,onAppendBody:(r,o)=>e.onAppendBody(r,o),onUpdateBody:(r,o,i)=>e.onUpdateBody(r,o,i),onUpsertBody:(r,o,i)=>e.onUpsertBody(r,o,i),onRemoveBody:(r,o)=>e.onRemoveBody(r,o),onBatchModify:(r,o)=>e.onBatchModify(r,o),onSetProperty:(r,o)=>e.onSetProperty(r,o),onAddContext:r=>e.onAddContext(r),onSaveAndClose:()=>e.onSaveAndClose()});for(;this.element.current.firstChild;)this.element.current.removeChild(this.element.current.lastChild);this.element.current.appendChild(n)}componentDidMount(){this.renderWidget(this.props)}componentWillReceiveProps(e){this.element.current&&this.props.annotation!==e.annotation&&this.renderWidget(e)}render(){return g.createElement("div",{ref:this.element,className:"widget"})}}window.React=g,window.ReactDOM=g;const cS={COMMENT:Ac,TAG:Pc},fS=[g.createElement(Ac,null),g.createElement(Pc,null)],dS=t=>{const e=r=>{var o;return typeof r=="function"&&!!((o=r.prototype)!=null&&o.isReactComponent)},n=r=>typeof r=="function"&&(String(r).match(/return .+\(['|"].+['|"],\s*\{/g)||String(r).match(/return .+preact_compat/)||String(r).match(/return .+\.createElement/g));return e(t)||n(t)},pS=t=>{const e=(n,r,o)=>{if(typeof n=="string"||n instanceof String)return g.createElement(cS[n],r);if((o==null?void 0:o.toLowerCase())==="react")return g.createElement(n,r);if((o==null?void 0:o.toLowerCase())==="plainjs")return g.createElement(Dc,{widget:n,config:r});if(dS(n))return g.createElement(n,r);if(typeof n=="function"||n instanceof Function)return g.createElement(Dc,{widget:n,config:r});throw`${n} is not a valid plugin`};if(t.widget){const{widget:n,force:r,...o}=t;return e(n,o,r)}else return e(t)},Tc=14;var Mc=(t,e,n,r)=>{const o=t.getBoundingClientRect();e.className="r6o-editor r6o-arrow-top r6o-arrow-left";const{left:i,top:a,right:s,bottom:u}=n.getBoundingClientRect();if(e.style.top=`${u-o.top+Tc}px`,e.style.left=`${i-o.left}px`,r){const c=e.children[1].getBoundingClientRect(),{innerWidth:l,innerHeight:f}=t.ownerDocument.defaultView;if(c.right>l&&(e.classList.remove("r6o-arrow-left"),e.classList.add("r6o-arrow-right"),e.style.left=`${s-c.width-o.left}px`),c.bottom>f){e.classList.remove("r6o-arrow-top"),e.classList.add("r6o-arrow-bottom");const p=e.children[1].getBoundingClientRect().height;e.style.top=`${a-o.top-p-Tc}px`}const d=e.children[1].getBoundingClientRect();if(d.top<0){e.classList.add("pushed","down"),e.style.top=`${-o.top}px`;const p=u-o.top;d.height-o.top>p&&e.classList.remove("r6o-arrow-bottom")}d.left<0&&(e.classList.add("pushed","right"),e.style.left=`${-o.left}px`),requestAnimationFrame(()=>e.style.opacity=1)}};const kc=t=>{const{top:e,left:n,width:r,height:o}=t.getBoundingClientRect();return`${e}, ${n}, ${r}, ${o}`};class hS extends J{constructor(n){super(n);h(this,"initResizeObserver",()=>{const n=this.props.autoPosition===void 0?!0:this.props.autoPosition;if(window!=null&&window.ResizeObserver){const r=new ResizeObserver(()=>{this.state.dragged||Mc(this.props.wrapperEl,this.element.current,this.props.selectedElement,n)});return r.observe(this.props.wrapperEl),()=>r.disconnect()}else this.state.dragged||Mc(this.props.wrapperEl,this.element.current,this.props.selectedElement,n)});h(this,"creationMeta",n=>{const r={},{user:o}=this.props.env;return o&&(r.creator={},o.id&&(r.creator.id=o.id),o.displayName&&(r.creator.name=o.displayName),r[n.created?"modified":"created"]=this.props.env.getCurrentTimeAdjusted()),r});h(this,"getCurrentAnnotation",()=>this.state.currentAnnotation.clone());h(this,"hasChanges",()=>{var n;return!((n=this.props.annotation)!=null&&n.isEqual(this.state.currentAnnotation))});h(this,"updateCurrentAnnotation",(n,r)=>{this.setState({currentAnnotation:this.state.currentAnnotation.clone(n)},()=>{r?this.onOk():this.props.onChanged&&this.props.onChanged()})});h(this,"onAppendBody",(n,r)=>this.updateCurrentAnnotation({body:[...this.state.currentAnnotation.bodies,{...n,...this.creationMeta(n)}]},r));h(this,"onUpdateBody",(n,r,o)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.map(i=>i===n?{...r,...this.creationMeta(r)}:i)},o));h(this,"onRemoveBody",(n,r)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.filter(o=>o!==n)},r));h(this,"onUpsertBody",(n,r,o)=>{if(n==null&&r!=null)this.onAppendBody(r,o);else if(n!=null&&r!=null)this.onUpdateBody(n,r,o);else if(n!=null&&r==null){const i=this.state.currentAnnotation.bodies.find(a=>a.purpose===n.purpose);i?this.onUpdateBody(i,n,o):this.onAppendBody(n,o)}});h(this,"onBatchModify",(n,r)=>{const o=n.filter(c=>c.action==="upsert"&&c.body).map(c=>({previous:this.state.currentAnnotation.bodies.find(l=>l.purpose===c.body.purpose),updated:{...c.body,...this.creationMeta(c.body)}})),i=n.filter(c=>c.action==="remove").map(c=>c.body),a=[...n.filter(c=>c.action==="append"||c.action==="upsert"&&c.updated&&!c.previous).map(c=>({...c.body,...this.creationMeta(c.body)})),...o.filter(c=>!c.previous).map(c=>c.updated)],s=[...n.filter(c=>c.action==="update"||c.action==="upsert"&&c.updated&&c.previous).map(c=>({previous:c.previous,updated:{...c.updated,...this.creationMeta(c.updated)}})),...o.filter(c=>c.previous)],u=[...this.state.currentAnnotation.bodies.filter(c=>!i.includes(c)).map(c=>{const l=s.find(f=>f.previous===c);return l?l.updated:c}),...a];this.updateCurrentAnnotation({body:u},r)});h(this,"onSetProperty",(n,r)=>{if(["@context","id","type","body","target"].includes(n))throw new Exception(`Cannot set ${n} - not allowed`);if(r)this.updateCurrentAnnotation({[n]:r});else{const i=this.currentAnnotation.clone();delete i[n],this.setState({currentAnnotation:i})}});h(this,"onAddContext",n=>{const{currentAnnotation:r}=this.state,o=Array.isArray(r.context)?r.context:[r.context];o.indexOf(n)<0&&(o.push(n),this.updateCurrentAnnotation({"@context":o}))});h(this,"onCancel",()=>this.props.onCancel(this.props.annotation));h(this,"onOk",()=>{const n=o=>o.clone({body:o.bodies.map(({draft:i,...a})=>a)}),{currentAnnotation:r}=this.state;r.bodies.length===0&&!this.props.allowEmpty?r.isSelection?this.onCancel():this.props.onAnnotationDeleted(this.props.annotation):r.isSelection?this.props.onAnnotationCreated(n(r).toAnnotation()):this.props.onAnnotationUpdated(n(r),this.props.annotation)});h(this,"onDelete",()=>this.props.onAnnotationDeleted(this.props.annotation));this.element=g.createRef(),this.state={currentAnnotation:n.annotation,dragged:!1,selectionBounds:kc(n.selectedElement)}}componentWillReceiveProps(n){var i;const{selectionBounds:r}=this.state,o=kc(n.selectedElement);(i=this.props.annotation)!=null&&i.isEqual(n.annotation)?this.setState({selectionBounds:o}):this.setState({currentAnnotation:n.annotation,selectionBounds:o}),this.props.modifiedTarget!=n.modifiedTarget&&this.state.currentAnnotation&&this.updateCurrentAnnotation({target:this.props.modifiedTarget}),r!=o&&this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}componentDidMount(){this.removeObserver=this.initResizeObserver(),new MutationObserver(()=>{this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}).observe(this.element.current,{childList:!0,subtree:!0})}componentWillUnmount(){this.removeObserver&&this.removeObserver()}render(){const{currentAnnotation:n}=this.state,r=this.props.widgets?this.props.widgets.map(pS):fS,o=a=>a.type.disableDelete?a.type.disableDelete(n,{...a.props,readOnly:this.props.readOnly,env:this.props.env}):!1,i=n&&(n.bodies.length>0||this.props.allowEmpty)&&!this.props.readOnly&&!n.isSelection&&!r.some(o);return g.createElement(Md,{disabled:!this.props.detachable,handle:".r6o-draggable",cancel:".r6o-btn, .r6o-btn *",onDrag:()=>this.setState({dragged:!0})},g.createElement("div",{ref:this.element,className:this.state.dragged?"r6o-editor dragged":"r6o-editor"},g.createElement("div",{className:"r6o-arrow"}),g.createElement("div",{className:"r6o-editor-inner"},r.map((a,s)=>g.cloneElement(a,{key:`${s}`,focus:s===0,annotation:n,readOnly:this.props.readOnly,env:this.props.env,onAppendBody:this.onAppendBody,onUpdateBody:this.onUpdateBody,onRemoveBody:this.onRemoveBody,onUpsertBody:this.onUpsertBody,onBatchModify:this.onBatchModify,onSetProperty:this.onSetProperty,onAddContext:this.onAddContext,onSaveAndClose:this.onOk})),this.props.readOnly?g.createElement("div",{className:"r6o-footer"},g.createElement("button",{className:"r6o-btn",onClick:this.onCancel},Se.t("Close"))):g.createElement("div",{className:this.props.detachable?"r6o-footer r6o-draggable":"r6o-footer"},i&&g.createElement("button",{className:"r6o-btn left delete-annotation",title:Se.t("Delete"),onClick:this.onDelete},g.createElement(K1,{width:12})),g.createElement("button",{className:"r6o-btn outline",onClick:this.onCancel},Se.t("Cancel")),g.createElement("button",{className:"r6o-btn ",onClick:this.onOk},Se.t("Ok"))))))}}var Sr,mS=new Uint8Array(16);function vS(){if(!Sr&&(Sr=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Sr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sr(mS)}var gS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yS(t){return typeof t=="string"&&gS.test(t)}for(var ae=[],gi=0;gi<256;++gi)ae.push((gi+256).toString(16).substr(1));function bS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]).toLowerCase();if(!yS(n))throw TypeError("Stringified UUID is invalid");return n}function Fc(t,e,n){t=t||{};var r=t.random||(t.rng||vS)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return bS(r)}var SS=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n},Ic=SS;const Ar=class{constructor(e,n){h(this,"clone",(e,n)=>new Ar({...this.underlying,...e},{...this.opts,...n}));h(this,"selector",e=>{const{target:n}=this.underlying;if(n.selector)return(Array.isArray(n.selector)?n.selector:[n.selector]).find(o=>o.type===e)});this.underlying=e,this.opts=n}isEqual(e){return(e==null?void 0:e.type)!=="Annotation"?!1:this.underlying===e.underlying?!0:!this.underlying.id||!e.underlying.id?!1:Ic(this.underlying,e.underlying)}get readOnly(){var e;return(e=this.opts)==null?void 0:e.readOnly}get id(){return this.underlying.id}get context(){return this.underlying["@context"]}get type(){return this.underlying.type}get motivation(){return this.underlying.motivation}get body(){return this.underlying.body}get target(){return this.underlying.target}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}set bodies(e){this.underlying.body=e}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}get quote(){var e;return(e=this.selector("TextQuoteSelector"))==null?void 0:e.exact}get start(){var e;return(e=this.selector("TextPositionSelector"))==null?void 0:e.start}get end(){var e;return(e=this.selector("TextPositionSelector"))==null?void 0:e.end}};let Je=Ar;h(Je,"create",e=>{const n={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Annotation",id:`#${Fc()}`,body:[]};return new Ar({...n,...e})});class sn{constructor(e,n){h(this,"clone",e=>{const n=new sn;return n.underlying=JSON.parse(JSON.stringify(this.underlying)),e&&(n.underlying={...n.underlying,...e}),n});h(this,"selector",e=>{const{target:n}=this.underlying;if(n.selector)return(Array.isArray(n.selector)?n.selector:[n.selector]).find(o=>o.type===e)});h(this,"toAnnotation",()=>{const e=Object.assign({},this.underlying,{type:"Annotation",id:`#${Fc()}`});return new Je(e)});this.underlying={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Selection",body:n||[],target:e}}get context(){return this.underlying["@context"]}get type(){return this.underlying.type}get body(){return this.underlying.body}get target(){return this.underlying.target}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}isEqual(e){return e?Ic(this.underlying,e.underlying):!1}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}get quote(){var e;return(e=this.selector("TextQuoteSelector"))==null?void 0:e.exact}get isSelection(){return!0}}let yi=0;var _S=()=>({setServerTime:t=>{const e=Date.now();yi=t-e},getCurrentTimeAdjusted:()=>new Date(Date.now()+yi).toISOString(),toClientTime:t=>Date.parse(t)-yi});const ES=(t,e)=>{if(t){const n=t==="auto"?window.navigator.userLanguage||window.navigator.language:t,r=n.split("-")[0].toLowerCase(),o=[n,r].find(i=>My.includes(i));o||console.warn(`Unsupported locale '${n}'. Falling back to default en.`),Se.init(o,e)}else Se.init(null,e)};class CS{constructor(e,n,r,o,i){h(this,"dragTo",(e,n)=>{this.group.style.display=null,this.opposite=[e,n];const{x:r,y:o,w:i,h:a}=this.bbox;Ea(this.mask,this.env.image,r,o,i,a),Ca(this.rect,r,o,i,a)});h(this,"getBoundingClientRect",()=>this.rect.getBoundingClientRect());h(this,"toSelection",()=>{const{x:e,y:n,w:r,h:o}=this.bbox;return new sn(zr(e,n,r,o,this.env.image,this.config.fragmentUnit))});h(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.mask=null,this.rect=null,this.group=null});this.anchor=[e,n],this.opposite=[e,n],this.config=o,this.env=i,this.group=document.createElementNS(B,"g"),this.mask=_a(i.image,e,n,2,2),this.mask.setAttribute("class","a9s-selection-mask"),this.rect=Wr(e,n,2,2),this.rect.setAttribute("class","a9s-selection"),this.group.style.pointerEvents="none",this.group.style.display="none",this.group.appendChild(this.mask),this.group.appendChild(this.rect),r.appendChild(this.group)}get bbox(){const e=this.opposite[0]-this.anchor[0],n=this.opposite[1]-this.anchor[1];return{x:e>0?this.anchor[0]:this.opposite[0],y:n>0?this.anchor[1]:this.opposite[1],w:Math.max(1,Math.abs(e)),h:Math.max(1,Math.abs(n))}}get element(){return this.rect}}const AS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},Rc=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,wS=t=>{let e=null;const n=(o,i)=>new MouseEvent(o,{screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,bubbles:!0}),r=o=>{const i=o.changedTouches[0],a=n(AS[o.type],i);i.target.dispatchEvent(a),o.preventDefault(),(o.type==="touchstart"||o.type==="touchmove")&&(e&&clearTimeout(e),e=setTimeout(()=>{const s=n("dblclick",i);i.target.dispatchEvent(s)},800)),o.type==="touchend"&&e&&clearTimeout(e)};t.addEventListener("touchstart",r,!0),t.addEventListener("touchmove",r,!0),t.addEventListener("touchend",r,!0),t.addEventListener("touchcancel",r,!0)},_r="An implementation is missing",OS=Rc();class Nc extends mn{constructor(n,r,o){super();h(this,"enableResponsive",()=>{window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>{const n=this.svg.getBoundingClientRect(),{width:r,height:o}=this.svg.viewBox.baseVal;this.scale=Math.max(r/n.width,o/n.height),this.onScaleChanged&&this.onScaleChanged(this.scale)}),this.resizeObserver.observe(this.svg.parentNode))});h(this,"getSVGPoint",n=>{const r=this.svg.createSVGPoint();if(OS){const o=this.svg.getBoundingClientRect(),i=n.clientX-o.x,a=n.clientY-o.y,{left:s,top:u}=this.svg.getBoundingClientRect();return r.x=i+s,r.y=a+u,r.matrixTransform(this.g.getScreenCTM().inverse())}else return r.x=n.offsetX,r.y=n.offsetY,r.matrixTransform(this.g.getCTM().inverse())});h(this,"drawHandle",(n,r)=>{const o=document.createElementNS(B,"g");o.setAttribute("class","a9s-handle");const i=document.createElementNS(B,"g"),a=l=>{const f=document.createElementNS(B,"circle");return f.setAttribute("cx",n),f.setAttribute("cy",r),f.setAttribute("r",l),f.setAttribute("transform-origin",`${n} ${r}`),f},s=this.config.handleRadius||6,u=a(s);u.setAttribute("class","a9s-handle-inner");const c=a(s+1);return c.setAttribute("class","a9s-handle-outer"),i.appendChild(c),i.appendChild(u),o.appendChild(i),o});h(this,"setHandleXY",(n,r,o)=>{const i=n.querySelector(".a9s-handle-inner");i.setAttribute("cx",r),i.setAttribute("cy",o),i.setAttribute("transform-origin",`${r} ${o}`);const a=n.querySelector(".a9s-handle-outer");a.setAttribute("cx",r),a.setAttribute("cy",o),a.setAttribute("transform-origin",`${r} ${o}`)});h(this,"getHandleXY",n=>{const r=n.querySelector(".a9s-handle-outer");return{x:parseFloat(r.getAttribute("cx")),y:parseFloat(r.getAttribute("cy"))}});h(this,"scaleHandle",n=>{const r=n.querySelector(".a9s-handle-inner"),o=n.querySelector(".a9s-handle-outer"),i=this.scale*(this.config.handleRadius||6);r.setAttribute("r",i),o.setAttribute("r",i)});this.svg=n.closest("svg"),this.g=n,this.config=r,this.env=o,this.scale=1;const{image:i}=o;(i instanceof Element||i instanceof HTMLDocument)&&this.enableResponsive()}destroy(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=null}}class bi extends Nc{constructor(n,r,o){super(n,r,o);h(this,"_eventTarget");h(this,"attachListeners",({mouseMove:n,mouseUp:r,mouseDown:o,dblClick:i})=>{n&&(this.mouseMove=a=>{const{x:s,y:u}=this.getSVGPoint(a);this.started||(this.emit("startSelection",{x:s,y:u}),this.started=!0),n(s,u,a)},this.svg.addEventListener("mousemove",this.mouseMove)),r&&(this.mouseUp=a=>{if(a.button!==0)return;const{x:s,y:u}=this.getSVGPoint(a);r(s,u,a)},this._eventTarget.addEventListener("mouseup",this.mouseUp)),o&&(this.mouseDown=a=>{if(a.button!==0)return;const{x:s,y:u}=this.getSVGPoint(a);o(s,u,a)},this._eventTarget.addEventListener("mousedown",this.mouseDown)),i&&(this.dblClick=a=>{const{x:s,y:u}=this.getSVGPoint(a);i(s,u,a)},this._eventTarget.addEventListener("dblclick",this.dblClick))});h(this,"detachListeners",()=>{this.mouseMove&&this.svg.removeEventListener("mousemove",this.mouseMove),this.mouseUp&&this._eventTarget.removeEventListener("mouseup",this.mouseUp),this.mouseDown&&this._eventTarget.removeEventListener("mousedown",this.mouseDown),this.dblClick&&this._eventTarget.removeEventListener("dblclick",this.dblClick)});h(this,"start",(n,r)=>{const{x:o,y:i}=this.getSVGPoint(n),{naturalWidth:a,naturalHeight:s}=this.env.image,u=o<0?0:o>a?a:o,c=i<0?0:i>s?s:i;this.startDrawing(u,c,r,n)});h(this,"startDrawing",n=>{throw new Error(_r)});h(this,"createEditableShape",(n,r)=>{throw new Error(_r)});this.started=!1,this._eventTarget=this.config.bindEventListenersInternally===!0?this.svg:document}get isDrawing(){throw new Error(_r)}}bi.supports=t=>{throw new Error(_r)};const Lc="An implementation is missing";class Bc extends Nc{constructor(n,r,o,i){super(r,o,i);h(this,"updateState",n=>{throw new Error(Lc)});this.annotation=n}get element(){throw new Error(Lc)}}const $S=/firefox/i.test(navigator.userAgent),Vc=(t,e,n,r,o)=>{t.setAttribute("width",r),t.setAttribute("height",o),$S?(t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("transform",`translate(${e}, ${n})`)):(t.setAttribute("x",e),t.setAttribute("y",n))},xS=(t,e)=>{const r=e.querySelector(".a9s-inner")||e,{x:o,y:i,width:a,height:s}=r.getBBox(),u=document.createElementNS(B,"svg");u.setAttribute("class","a9s-formatter-el"),Vc(u,o,i,a,s);const c=document.createElementNS(B,"g");c.appendChild(t),u.appendChild(c),e.append(u)},Si=(t,e,n)=>{if(!n)return t;const r=n.reduce((u,c)=>{const l=c(e);if(!l)return u;if(typeof l=="string"||l instanceof String)u.className=u.className?`${u.className} ${l}`:l;else if(l.nodeType===Node.ELEMENT_NODE)u.elements=u.elements?[...u.elements,l]:[l];else{const{className:f,style:d,shapeStyle:p,element:m}=l;f&&(u.className=u.className?`${u.className} ${f}`:f),d&&(u.style=u.style?`${u.style} ${d}`:d),p&&(u.shapeStyle=u.shapeStyle?`${u.shapeStyle} ${p}`:p),m&&(u.elements=u.elements?[...u.elements,m]:[m])}for(const f in l)l.hasOwnProperty(f)&&f.startsWith("data-")&&(u[f]=l[f]);return u},{}),{className:o,style:i,shapeStyle:a,elements:s}=r;if(o&>(t,o),i){const u=t.querySelector(".a9s-outer"),c=t.querySelector(".a9s-inner");u&&c?(u.setAttribute("style","display:none"),c.setAttribute("style",i)):t.setAttribute("style",i)}a&&t.setAttribute("style",a),s&&s.forEach(u=>xS(u,t));for(const u in r)r.hasOwnProperty(u)&&u.startsWith("data-")&&t.setAttribute(u,r[u])},Hc=(t,e,n,r,o)=>{const i=t.querySelector(".a9s-formatter-el");i&&Vc(i,e,n,r,o)},un="corner",Er="edge";class PS extends Bc{constructor(n,r,o,i){super(n,r,o,i);h(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle));h(this,"setSize",(n,r,o,i)=>{Ca(this.rectangle,n,r,o,i),Ea(this.mask,this.env.image,n,r,o,i),Hc(this.elementGroup,n,r,o,i);const[a,s,u,c,l,f,d,p]=this.handles;this.setHandleXY(a,n,r),this.setHandleXY(s,n+o,r),this.setHandleXY(u,n+o,r+i),this.setHandleXY(c,n,r+i),this.enableEdgeControls&&(this.setHandleXY(l,n+o/2,r),this.setHandleXY(f,n+o,r+i/2),this.setHandleXY(d,n+o/2,r+i),this.setHandleXY(p,n,r+i/2))});h(this,"stretchCorners",(n,r,o)=>{const i=this.getHandleXY(r),a=o.x-i.x,s=o.y-i.y,u=a>0?i.x:o.x,c=s>0?i.y:o.y,l=Math.abs(a),f=Math.abs(s);return this.setSize(u,c,l,f),{x:u,y:c,w:l,h:f}});h(this,"stretchEdge",(n,r,o)=>{const i=this.getHandleXY(r),a=Gr(this.rectangle),s=n%2===0,u=s?a.w:o.x-i.x,c=s?o.y-i.y:a.h,l=s?a.x:u>0?i.x:o.x,f=s?c>0?i.y:o.y:a.y,d=Math.abs(u),p=Math.abs(c);return this.setSize(l,f,d,p),{x:l,y:f,w:d,h:p}});h(this,"onGrab",(n,r)=>o=>{if(o.button!==0)return;this.grabbedElem=n,this.grabbedType=r;const i=this.getSVGPoint(o),{x:a,y:s}=Gr(this.rectangle);this.mouseOffset={x:i.x-a,y:i.y-s}});h(this,"onMouseMove",n=>{if(n.button!==0)return;const r=(a,s)=>a<0?0:a>s?s:a,{naturalWidth:o,naturalHeight:i}=this.env.image;if(this.grabbedElem){const a=this.getSVGPoint(n);if(this.grabbedElem===this.rectangle){const{w:s,h:u}=Gr(this.rectangle),c=r(a.x-this.mouseOffset.x,o-s),l=r(a.y-this.mouseOffset.y,i-u);this.setSize(c,l,s,u),this.emit("update",zr(c,l,s,u,this.env.image,this.config.fragmentUnit))}else{const s=this.handles.indexOf(this.grabbedElem),u=this.handles[s^2],c={x:Math.min(Math.max(a.x,0),o),y:Math.min(Math.max(a.y,0),i)},{x:l,y:f,w:d,h:p}=this.grabbedType===un?this.stretchCorners(s,u,c):this.stretchEdge(s,u,c);this.emit("update",zr(l,f,d,p,this.env.image,this.config.fragmentUnit))}}});h(this,"onMouseUp",n=>{this.grabbedElem=null,this.grabbedType=null,this.mouseOffset=null});h(this,"updateState",n=>{const{x:r,y:o,w:i,h:a}=vn(n,this.env.image);this.setSize(r,o,i,a)});h(this,"detachListeners",()=>{this.svg.removeEventListener("mousemove",this.onMouseMove),this.svg.removeEventListener("mouseup",this.onMouseUp)});this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp);const{x:a,y:s,w:u,h:c}=vn(n,i.image);this.containerGroup=document.createElementNS(B,"g"),this.mask=_a(i.image,a,s,u,c),this.mask.setAttribute("class","a9s-selection-mask"),this.containerGroup.appendChild(this.mask),this.elementGroup=document.createElementNS(B,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.elementGroup.setAttribute("data-id",n.id),this.rectangle=Wr(a,s,u,c),this.rectangle.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.rectangle)),this.elementGroup.appendChild(this.rectangle),this.enableEdgeControls=o.enableEdgeControls;const l=this.enableEdgeControls?[[a+u/2,s,Er],[a+u,s+c/2,Er],[a+u/2,s+c,Er],[a,s+c/2,Er]]:[];this.handles=[[a,s,un],[a+u,s,un],[a+u,s+c,un],[a,s+c,un],...l].map(f=>{const[d,p,m]=f,b=this.drawHandle(d,p);return b.addEventListener("mousedown",this.onGrab(b,m)),this.elementGroup.appendChild(b),b}),this.containerGroup.appendChild(this.elementGroup),r.appendChild(this.containerGroup),Si(this.elementGroup,n,o.formatters),this.grabbedElem=null,this.grabbedType=null,this.mouseOffset=null}get element(){return this.elementGroup}destroy(){this.detachListeners(),this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()}}class Cr extends bi{constructor(n,r,o){super(n,r,o);h(this,"startDrawing",(n,r)=>{this.attachListeners({mouseMove:this.onMouseMove,mouseUp:this.onMouseUp}),this.rubberband=new CS(n,r,this.g,this.config,this.env)});h(this,"stop",()=>{this.detachListeners(),this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)});h(this,"onMouseMove",(n,r)=>{const{naturalWidth:o,naturalHeight:i}=this.env.image,a=Math.min(Math.max(n,0),o),s=Math.min(Math.max(r,0),i);this.rubberband.dragTo(a,s)});h(this,"onMouseUp",()=>{this.started=!1;const{width:n,height:r}=this.rubberband.getBoundingClientRect(),o=this.config.minSelectionWidth||4,i=this.config.minSelectionHeight||4;if(n>=o&&r>=i){const{element:a}=this.rubberband;a.annotation=this.rubberband.toSelection(),this.emit("complete",a)}else this.emit("cancel");this.stop()});h(this,"createEditableShape",(n,r)=>new PS(n,this.g,{...this.config,formatters:r},this.env));this.rubberband=null}get isDrawing(){return this.rubberband!=null}}Cr.identifier="rect",Cr.supports=t=>{const e=t.selector("FragmentSelector");return e==null?void 0:e.conformsTo.startsWith("http://www.w3.org/TR/media-frags")};class Uc{constructor(e,n){h(this,"redraw",()=>{this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)});h(this,"destroy",()=>this.mask.parentNode.removeChild(this.mask));this.w=e.naturalWidth,this.h=e.naturalHeight,this.polygon=n,this.mask=document.createElementNS(B,"path"),this.mask.setAttribute("fill-rule","evenodd"),this.mask.setAttribute("class","a9s-selection-mask"),this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)}get element(){return this.mask}}class DS{constructor(e,n,r){h(this,"setPoints",e=>{const n=e.map(r=>`${r[0]},${r[1]}`).join(" ");this.outer.setAttribute("points",n),this.inner.setAttribute("points",n)});h(this,"getBoundingClientRect",()=>this.outer.getBoundingClientRect());h(this,"dragTo",e=>{this.group.style.display=null,this.mousepos=e;const n=[...this.points,e];this.setPoints(n),this.mask.redraw()});h(this,"addPoint",()=>{const[e,n]=this.mousepos,r=this.points[this.points.length-1];Math.pow(e-r[0],2)+Math.pow(n-r[1],2)>4&&(this.points=[...this.points,this.mousepos],this.setPoints(this.points),this.mask.redraw())});h(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.polygon=null,this.group=null});h(this,"toSelection",()=>new sn(Yr(this.group,this.env.image)));this.points=[e],this.env=r,this.mousepos=e,this.group=document.createElementNS(B,"g"),this.polygon=document.createElementNS(B,"g"),this.polygon.setAttribute("class","a9s-selection"),this.outer=document.createElementNS(B,"polygon"),this.outer.setAttribute("class","a9s-outer"),this.inner=document.createElementNS(B,"polygon"),this.inner.setAttribute("class","a9s-inner"),this.setPoints(this.points),this.mask=new Uc(r.image,this.inner),this.polygon.appendChild(this.outer),this.polygon.appendChild(this.inner),this.group.style.display="none",this.group.appendChild(this.mask.element),this.group.appendChild(this.polygon),n.appendChild(this.group)}get element(){return this.polygon}}const _i=t=>{const e=t.querySelector(".a9s-inner").points,n=[];for(let r=0;r<e.numberOfItems;r++)n.push(e.getItem(r));return n},TS=t=>t.querySelector(".a9s-inner").getBBox();class MS extends Bc{constructor(n,r,o,i){super(n,r,o,i);h(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle));h(this,"setPoints",n=>{const r=f=>Math.round(10*f)/10,o=n.map(f=>`${r(f.x)},${r(f.y)}`).join(" "),i=this.shape.querySelector(".a9s-inner");i.setAttribute("points",o),this.shape.querySelector(".a9s-outer").setAttribute("points",o),this.mask.redraw();const{x:s,y:u,width:c,height:l}=i.getBBox();Hc(this.elementGroup,s,u,c,l)});h(this,"onGrab",n=>r=>{r.button===0&&(this.grabbedElem=n,this.grabbedAt=this.getSVGPoint(r))});h(this,"onMouseMove",n=>{const r=(o,i,a)=>o+i<0?-o:o+i>a?a-o:i;if(this.grabbedElem){const o=this.getSVGPoint(n),{naturalWidth:i,naturalHeight:a}=this.env.image;if(this.grabbedElem===this.shape){const{x:s,y:u,width:c,height:l}=TS(this.shape),f=r(s,o.x-this.grabbedAt.x,i-c),d=r(u,o.y-this.grabbedAt.y,a-l),p=_i(this.shape).map(m=>({x:m.x+f,y:m.y+d}));this.grabbedAt=o,this.setPoints(p),p.forEach((m,b)=>this.setHandleXY(this.handles[b],m.x,m.y)),this.emit("update",Yr(this.shape,this.env.image))}else{const s=this.handles.indexOf(this.grabbedElem),u={x:Math.min(Math.max(o.x,0),i),y:Math.min(Math.max(o.y,0),a)},c=_i(this.shape).map((l,f)=>f===s?u:l);this.setPoints(c),this.setHandleXY(this.handles[s],u.x,u.y),this.emit("update",Yr(this.shape,this.env.image))}}});h(this,"onMouseUp",n=>{this.grabbedElem=null,this.grabbedAt=null});h(this,"updateState",n=>{const r=qr(n).getAttribute("points").split(" ").map(o=>{const[i,a]=o.split(",").map(s=>parseFloat(s.trim()));return{x:i,y:a}});this.setPoints(r),r.forEach((o,i)=>this.setHandleXY(this.handles[i],o.x,o.y))});h(this,"detachListeners",()=>{this.svg.removeEventListener("mousemove",this.onMouseMove),this.svg.removeEventListener("mouseup",this.onMouseUp)});h(this,"destroy",()=>{this.detachListeners(),this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()});this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp),this.containerGroup=document.createElementNS(B,"g"),this.shape=wa(n),this.shape.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.shape)),this.mask=new Uc(i.image,this.shape.querySelector(".a9s-inner")),this.containerGroup.appendChild(this.mask.element),this.elementGroup=document.createElementNS(B,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.elementGroup.setAttribute("data-id",n.id),this.elementGroup.appendChild(this.shape),this.handles=_i(this.shape).map(a=>{const s=this.drawHandle(a.x,a.y);return s.addEventListener("mousedown",this.onGrab(s)),this.elementGroup.appendChild(s),s}),this.containerGroup.appendChild(this.elementGroup),r.appendChild(this.containerGroup),Si(this.elementGroup,n,o.formatters),this.grabbedElem=null,this.grabbedAt=null}get element(){return this.elementGroup}}class Ei extends bi{constructor(n,r,o){super(n,r,o);h(this,"startDrawing",(n,r,o)=>{this._isDrawing=!0,this._startOnSingleClick=o,this.attachListeners({mouseMove:this.onMouseMove,[this.config.addPolygonPointOnMouseDown&&o?"mouseDown":"mouseUp"]:this.onMouseUpDown,dblClick:this.onDblClick}),this.rubberband=new DS([n,r],this.g,this.env)});h(this,"stop",()=>{this.detachListeners(),this._isDrawing=!1,this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)});h(this,"onMouseMove",(n,r)=>{const{naturalWidth:o,naturalHeight:i}=this.env.image,a=Math.min(Math.max(n,0),o),s=Math.min(Math.max(r,0),i);this.rubberband.dragTo([a,s])});h(this,"onMouseUp",()=>{const{width:n,height:r}=this.rubberband.getBoundingClientRect(),o=this.config.minSelectionWidth||4,i=this.config.minSelectionHeight||4;n>=o||r>=i?this.rubberband.addPoint():this._startOnSingleClick||(this.emit("cancel"),this.stop())});h(this,"onMouseUpDown",()=>{this.onMouseUp()});h(this,"onDblClick",()=>{if(this.rubberband.points.length<(this.config.minPolygonPoints||0))return;this._isDrawing=!1;const n=this.rubberband.element;n.annotation=this.rubberband.toSelection(),this.emit("complete",n),this.stop()});h(this,"createEditableShape",(n,r)=>new MS(n,this.g,{...this.config,formatters:r},this.env));this._isDrawing=!1,this._startOnSingleClick=!1}get isDrawing(){return this._isDrawing}}Ei.identifier="polygon",Ei.supports=t=>{var n;const e=t.selector("SvgSelector");if(e)return(n=e.value)==null?void 0:n.match(/^<svg.*<polygon/g)};class kS extends mn{constructor(n,r,o){super();h(this,"listTools",()=>this._registered.map(n=>n.identifier));h(this,"registerTool",n=>{const r=n.identifier;this.listTools().includes(r)&&this.unregisterTool(r),this._registered.unshift(n)});h(this,"unregisterTool",n=>this._registered=this._registered.filter(r=>r.identifier!==n));h(this,"setCurrent",n=>{this._current&&this._current.destroy();const r=typeof n=="string"||n instanceof String?this._registered.find(o=>o.identifier===n):n;this._current=new r(this._g,this._config,this._env),this._current.on("startSelection",o=>this.emit("startSelection",o)),this._current.on("complete",o=>this.emit("complete",o)),this._current.on("cancel",o=>this.emit("cancel",o))});h(this,"forAnnotation",n=>{var s;const[r,...o]=n.targets,i=(s=r.renderedVia)==null?void 0:s.name,a=i?this._registered.find(u=>u.identifier===i):this._registered.find(u=>u.supports(n));return a?new a(this._g,this._config,this._env):null});this._g=n,this._config=r,this._env=o,this._registered=[Cr,Ei],this.setCurrent(Cr)}get current(){return this._current}}class FS{constructor(e,n,r){this.svg=e.closest("svg"),this.g=document.createElementNS(B,"g"),this.g.setAttribute("class","a9s-crosshair");const o=document.createElementNS(B,"line"),i=document.createElementNS(B,"line");this.g.appendChild(o),this.g.appendChild(i),e.appendChild(this.g);const a=s=>{const u=this.svg.getBoundingClientRect(),c=s.clientX-u.x,l=s.clientY-u.y,f=this.svg.createSVGPoint(),{left:d,top:p}=this.svg.getBoundingClientRect();return f.x=c+d,f.y=l+p,f.matrixTransform(e.getScreenCTM().inverse())};this.svg.parentElement.addEventListener("pointermove",s=>{const{x:u,y:c}=a(s);o.setAttribute("x1",0),o.setAttribute("y1",c),o.setAttribute("x2",n),o.setAttribute("y2",c),i.setAttribute("x1",u),i.setAttribute("y1",0),i.setAttribute("x2",u),i.setAttribute("y2",r)})}}const jc=(t,e)=>{const r=(Sa(e,".a9s-annotation")?e:e.closest(".a9s-annotation")).querySelector(".a9s-outer"),o=t.naturalWidth/t.width,i=t.naturalHeight/t.height,a=t.getBoundingClientRect(),s=r.getBoundingClientRect(),u=s.x-a.x,c=s.y-a.y,{width:l,height:f}=s,d=document.createElement("CANVAS"),p=d.getContext("2d");return d.width=l*o,d.height=f*i,p.drawImage(t,u*o,c*i,l*o,f*i,0,0,l*o,f*i),{snippet:d,transform:m=>{const b=u*o+m[0],v=c*i+m[1];return[b,v]}}},zc=Rc();class IS extends mn{constructor(n){super();h(this,"_attachMouseListeners",(n,r)=>{n.addEventListener("mouseenter",()=>{var o,i;(i=(o=this.tools)==null?void 0:o.current)!=null&&i.isDrawing||(this.currentHover!==n&&this.emit("mouseEnterAnnotation",r,n),this.currentHover=n)}),n.addEventListener("mouseleave",()=>{var o,i;(i=(o=this.tools)==null?void 0:o.current)!=null&&i.isDrawing||(this.emit("mouseLeaveAnnotation",r,n),this.currentHover=null)}),zc&&(n.addEventListener("touchstart",o=>{o.stopPropagation(),this.currentHover=n}),n.addEventListener("touchend",o=>{const{clientX:i,clientY:a}=o.changedTouches[0],s=document.elementFromPoint(i,a);o.stopPropagation(),n.contains(s)&&(this.currentHover=n,this.selectCurrentHover())}))});h(this,"_lazy",n=>{this.imageEl.naturalWidth?n():this.imageEl.addEventListener("load",()=>n())});h(this,"_onMouseDown",n=>{var r,o;n.button===0&&(this.readOnly||(this.allowDrawingWithSelection?this.selectedShape&&this.selectedShape.element===this.currentHover:this.selectedShape)||this.tools.current.isDrawing?!((o=(r=this.tools)==null?void 0:r.current)!=null&&o.isDrawing)&&this.selectedShape!==this.currentHover&&this.selectCurrentHover():this.tools.current.start(n,this.drawOnSingleClick&&!this.currentHover))});h(this,"_refreshNonScalingAnnotations",()=>{const n=this.getCurrentScale();n!==1/0&&Array.from(this.svg.querySelectorAll(".a9s-non-scaling")).forEach(r=>{r.setAttribute("transform",`scale(${n})`)})});h(this,"_scaleFormatterElements",n=>{const r=this.getCurrentScale();if(r!==1/0)if(n){const o=n.querySelector(".a9s-formatter-el");o&&o.firstChild.setAttribute("transform",`scale(${r})`)}else Array.from(this.g.querySelectorAll(".a9s-formatter-el")).forEach(i=>i.firstChild.setAttribute("transform",`scale(${r})`))});h(this,"addAnnotation",n=>{const r=Mf(n,this.imageEl);return gt(r,"a9s-annotation"),r.setAttribute("data-id",n.id),r.annotation=n,this._attachMouseListeners(r,n),this.g.appendChild(r),Si(r,n,this.formatters),this._scaleFormatterElements(r),r});h(this,"addDrawingTool",n=>{var r;return(r=this.tools)==null?void 0:r.registerTool(n)});h(this,"addOrUpdateAnnotation",(n,r)=>{this.selectedShape&&(this.selectedShape.annotation.isEqual(n)||this.selectedShape.annotation.isEqual(r))&&(this.deselect(),this.emit("select",{})),r&&this.removeAnnotation(r),this.removeAnnotation(n);const o=this.addAnnotation(n);Sa(o,"a9s-non-scaling")&&o.setAttribute("transform",`scale(${this.getCurrentScale()})`),this.redraw()});h(this,"deselect",n=>{var r;if(this.selectedShape){(r=this.tools)==null||r.current.stop();const{annotation:o}=this.selectedShape;this.selectedShape.destroy?(this.selectedShape.destroy(),this.selectedShape=null,o.isSelection||(this.addAnnotation(o),n||this.redraw())):(gf(this.selectedShape,"selected"),this.selectedShape=null)}});h(this,"destroy",()=>{this.deselect(),this.currentHover=null,this.svg.parentNode.removeChild(this.svg)});h(this,"findShape",n=>{const r=n!=null&&n.id?n.id:n;return this.g.querySelector(`.a9s-annotation[data-id="${r}"]`)});h(this,"getAnnotations",()=>Array.from(this.g.querySelectorAll(".a9s-annotation")).map(r=>r.annotation));h(this,"getCurrentScale",()=>{const n=this.svg.getBoundingClientRect(),{width:r,height:o}=this.svg.viewBox.baseVal;return Math.max(r/n.width,o/n.height)});h(this,"getSelectedImageSnippet",()=>{if(this.selectedShape){const n=this.selectedShape.element||this.selectedShape;return jc(this.imageEl,n)}});h(this,"init",n=>{this.deselect(),this.currentHover=null,Array.from(this.g.querySelectorAll(".a9s-annotation")).forEach(o=>this.g.removeChild(o)),this._lazy(()=>{n.sort((o,i)=>Sn(i,this.imageEl)-Sn(o,this.imageEl)),n.forEach(this.addAnnotation)}),this._refreshNonScalingAnnotations()});h(this,"listDrawingTools",()=>{var n;return(n=this.tools)==null?void 0:n.listTools()});h(this,"overrideId",(n,r)=>{const o=this.findShape(n);o.setAttribute("data-id",r);const{annotation:i}=o,a=i.clone({id:r});return o.annotation=a,a});h(this,"redraw",()=>{const n=Array.from(this.g.querySelectorAll(".a9s-annotation:not(.selected)")),r=n.map(o=>o.annotation);r.sort((o,i)=>Sn(i,this.imageEl)-Sn(o,this.imageEl)),n.forEach(o=>this.g.removeChild(o)),r.forEach(this.addAnnotation)});h(this,"removeAnnotation",n=>{var i,a,s;const r=n.type?n.id:n;((i=this.selectedShape)==null?void 0:i.annotation.id)===r&&this.deselect();const o=this.findShape(n);o&&(((a=this.selectedShape)==null?void 0:a.annotation)===o.annotation&&this.deselect(),((s=this.currentHover)==null?void 0:s.annotation)===o.annotation&&(this.currentHover=null),o.parentNode.removeChild(o))});h(this,"removeDrawingTool",n=>{var r;return(r=this.tools)==null?void 0:r.unregisterTool(n)});h(this,"selectAnnotation",(n,r)=>{this.selectedShape&&this.deselect();const o=this.findShape(n);if(o){this.selectShape(o,r);const i=this.selectedShape.element?this.selectedShape.element:this.selectedShape;return{annotation:o.annotation,element:i}}else this.deselect()});h(this,"selectCurrentHover",()=>{this.currentHover?this.disableSelect?this.emit("clickAnnotation",this.currentHover.annotation,this.currentHover):this.selectShape(this.currentHover):(this.deselect(),this.emit("select",{skipEvent:!0}))});h(this,"selectShape",(n,r)=>{var a;if(!r&&!n.annotation.isSelection&&this.emit("clickAnnotation",n.annotation,n),((a=this.selectedShape)==null?void 0:a.annotation)===n.annotation)return;this.selectedShape&&this.selectedShape.annotation!==n.annotation&&this.deselect(!0);const{annotation:o}=n;if(this.readOnly||o.readOnly)gt(n,"selected"),this.selectedShape=n,r||this.emit("select",{annotation:o,element:n,skipEvent:r});else{const s=this.tools.forAnnotation(o);s?(n.parentNode.removeChild(n),this.selectedShape=s.createEditableShape(o,this.formatters),this.selectedShape.element.annotation=o,this._scaleFormatterElements(this.selectedShape.element),this.selectedShape.on("update",u=>{this.selectedShape&&this.emit("updateTarget",this.selectedShape.element,u)}),setTimeout(()=>{var u;this.selectedShape!=null&&this._attachMouseListeners(this.selectedShape.element,o),!r&&((u=this.selectedShape)==null?void 0:u.element)&&(this.currentHover=this.selectedShape.element)},1)):this.selectedShape=n,r||this.emit("select",{annotation:o,element:this.selectedShape.element||this.selectedShape})}});h(this,"setDrawingTool",n=>{var r;this.tools&&((r=this.tools.current)==null||r.stop(),this.tools.setCurrent(n))});h(this,"setVisible",n=>{n?this.svg.style.display=null:(this.deselect(),this.svg.style.display="none")});h(this,"stopDrawing",()=>{var n,r;(r=(n=this.tools)==null?void 0:n.current)==null||r.stop()});const{wrapperEl:r,config:o,env:i}=n;this.imageEl=i.image,this.readOnly=o.readOnly,this.allowDrawingWithSelection=o.allowDrawingWithSelection,o.formatter?this.formatters=[o.formatter]:o.formatters&&(this.formatters=Array.isArray(o.formatters)?o.formatters:[o.formatters]),this.disableSelect=o.disableSelect,this.drawOnSingleClick=o.drawOnSingleClick,this.svg=document.createElementNS(B,"svg"),this.svg.setAttribute("tabindex",0),zc?(this.svg.setAttribute("class","a9s-annotationlayer touch"),wS(this.svg),this.svg.addEventListener("touchstart",()=>{this.currentHover=null,this.selectCurrentHover()})):this.svg.setAttribute("class","a9s-annotationlayer");const{naturalWidth:a,naturalHeight:s}=this.imageEl;if(!a&&!s){const{width:u,height:c}=this.imageEl;this.svg.setAttribute("viewBox",`0 0 ${u} ${c}`),this.imageEl.nodeName.toLowerCase()!=="img"&&(this.imageEl.naturalWidth=u,this.imageEl.naturalHeight=c),this.imageEl.addEventListener("load",()=>{this.emit("load",this.imageEl.src),this.svg.setAttribute("viewBox",`0 0 ${this.imageEl.naturalWidth} ${this.imageEl.naturalHeight}`)})}else this.svg.setAttribute("viewBox",`0 0 ${a} ${s}`);this.g=document.createElementNS(B,"g"),this.svg.appendChild(this.g),r.appendChild(this.svg),o.crosshair&&(this.crosshair=new FS(this.g,a,s),o.crosshairWithCursor||gt(this.svg,"no-cursor")),this.selectedShape=null,this.tools=new kS(this.g,o,i),this.tools.on("startSelection",u=>this.emit("startSelection",u)),this.tools.on("cancel",this.selectCurrentHover),this.tools.on("complete",this.selectShape),this.svg.addEventListener("mousedown",this._onMouseDown),this.currentHover=null,window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>{this._refreshNonScalingAnnotations(),this._scaleFormatterElements()}),this.resizeObserver.observe(this.svg.parentNode))}}var ZE="",RS=0;function Wc(t,e,n,r,o){var i,a,s={};for(a in e)a=="ref"?i=e[a]:s[a]=e[a];var u={type:t,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--RS,__source:r,__self:o};if(typeof t=="function"&&(i=t.defaultProps))for(a in i)s[a]===void 0&&(s[a]=i[a]);return $.vnode&&$.vnode(u),u}class NS extends J{constructor(n){super(n);h(this,"clearState",n=>this.setState({selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,beforeHeadlessModify:null},n));h(this,"forwardEvent",(n,r)=>{this.annotationLayer.on(n,(o,i)=>{this.props[r](o.clone(),i)})});h(this,"onKeyUp",n=>{if(n.which===27){const{disableEscapeKey:r}=this.props.config;if(!r){this.annotationLayer.stopDrawing();const{selectedAnnotation:o}=this.state;o&&(this.cancelSelected(),this.props.onCancelSelected(o))}}else if(n.which===46){const{disableDeleteKey:r}=this.props.config;if(!r){const{selectedAnnotation:o}=this.state;o&&(o.isSelection?this.onCancelAnnotation(o):this.onDeleteAnnotation(o))}}});h(this,"handleStartSelect",n=>this.props.onSelectionStarted(n));h(this,"handleSelect",(n,r)=>{this.state.editorDisabled?this.onHeadlessSelect(n,r):this.onNormalSelect(n,r)});h(this,"onNormalSelect",(n,r)=>{const{annotation:o,element:i}=n;if(o){const a=u=>{this.setState({selectedAnnotation:o,selectedDOMElement:i,modifiedTarget:null,beforeHeadlessModify:null},()=>{r||(o.isSelection?this.props.onSelectionCreated(o.clone()):this.props.onAnnotationSelected(o.clone(),i)),u&&u()})},{selectedAnnotation:s}=this.state;s&&!s.isEqual(o)?this.clearState(()=>{this.props.onCancelSelected(s.clone()),a(()=>this.props.onChangeSelected(o.clone(),s.clone()))}):a()}else{const{selectedAnnotation:a}=this.state;a?this.clearState(()=>{this.props.onCancelSelected(a)}):this.clearState()}});h(this,"onHeadlessSelect",(n,r)=>{this.saveSelected().then(()=>{this.onNormalSelect(n,r);const{annotation:o}=n;if(o&&!o.isSelection){const i=this.annotationLayer.selectAnnotation(n.annotation,!0);this.setState({selectedDOMElement:i.element})}})});h(this,"handleUpdateTarget",(n,r)=>{this.setState({selectedDOMElement:n,modifiedTarget:r});const o=JSON.parse(JSON.stringify(r));this.props.onSelectionTargetChanged(o)});h(this,"overrideAnnotationId",n=>r=>{const{id:o}=n;this.state.selectedAnnotation?this.clearState(()=>{this.annotationLayer.overrideId(o,r)}):this.annotationLayer.overrideId(o,r)});h(this,"onCreateOrUpdateAnnotation",(n,r)=>(o,i)=>{let a=o.isSelection?o.toAnnotation():o;a=this.state.modifiedTarget?a.clone({target:this.state.modifiedTarget}):a.clone(),this.clearState(()=>{this.annotationLayer.deselect(),this.annotationLayer.addOrUpdateAnnotation(a,i),i?this.props[n](a,i.clone()):this.props[n](a,this.overrideAnnotationId(a)),r&&r()})});h(this,"onDeleteAnnotation",n=>{this.clearState(),this.annotationLayer.removeAnnotation(n),this.props.onAnnotationDeleted(n)});h(this,"onCancelAnnotation",(n,r)=>{this.annotationLayer.deselect(),this.props.onCancelSelected(n),this.clearState(r)});h(this,"addAnnotation",n=>this.annotationLayer.addOrUpdateAnnotation(n.clone()));h(this,"addDrawingTool",n=>this.annotationLayer.addDrawingTool(n));h(this,"cancelSelected",()=>new Promise(n=>{this.annotationLayer.deselect(),this.state.selectedAnnotation?this.clearState(n):n()}));h(this,"getAnnotationById",n=>{var r;return(r=this.annotationLayer.findShape(n))==null?void 0:r.annotation});h(this,"getAnnotations",()=>this.annotationLayer.getAnnotations().map(n=>n.clone()));h(this,"getImageSnippetById",n=>{const r=this.annotationLayer.findShape(n);if(r)return jc(this.props.env.image,r)});h(this,"getSelected",()=>{var n;if(this.state.selectedAnnotation)return this.state.editorDisabled?this.state.selectedAnnotation:(n=this._editor.current)==null?void 0:n.getCurrentAnnotation()});h(this,"getSelectedImageSnippet",()=>this.annotationLayer.getSelectedImageSnippet());h(this,"getCurrentDrawingTool",()=>{var n;return(n=this.annotationLayer.tools)==null?void 0:n.current});h(this,"getSelectedShape",()=>this.annotationLayer.selectedShape);h(this,"listDrawingTools",()=>this.annotationLayer.listDrawingTools());h(this,"removeAnnotation",n=>{this.annotationLayer.removeAnnotation(n),this.state.selectedAnnotation&&this.setState({selectedAnnotation:null})});h(this,"removeDrawingTool",n=>this.annotationLayer.removeDrawingTool(n));h(this,"saveSelected",()=>new Promise(n=>{const r=this.state.selectedAnnotation;if(r)if(this._editor.current)this._editor.current.onOk(),n();else if(r.isSelection)r.bodies.length>0||this.props.config.allowEmpty?this.onCreateOrUpdateAnnotation("onAnnotationCreated",n)(r):(this.annotationLayer.deselect(),n());else{const{beforeHeadlessModify:o,modifiedTarget:i}=this.state;o?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",n)(r,o):i?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",n)(r,r):this.onCancelAnnotation(r,n)}else n()}));h(this,"selectAnnotation",n=>{const r=this.annotationLayer.selectAnnotation(n,!0);if(r)return this.handleSelect(r,!0),r.annotation.clone();this.clearState()});h(this,"setAnnotations",n=>this.annotationLayer.init(n.map(r=>r.clone())));h(this,"setDrawingTool",n=>this.annotationLayer.setDrawingTool(n));h(this,"setVisible",n=>{this.annotationLayer.setVisible(n),n||this.clearState()});h(this,"updateSelected",(n,r)=>new Promise(o=>{this.state.selectedAnnotation&&(r?this.state.selectedAnnotation.isSelection?this.onCreateOrUpdateAnnotation("onAnnotationCreated",o)(n):this.onCreateOrUpdateAnnotation("onAnnotationUpdated",o)(n,this.state.selectedAnnotation):this.setState({selectedAnnotation:n,beforeHeadlessModify:this.state.beforeHeadlessModify||this.state.selectedAnnotation},o))}));this.state={selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,readOnly:this.props.config.readOnly,editorDisabled:this.props.config.disableEditor,widgets:this.props.config.widgets,beforeHeadlessModify:null},this._editor=g.createRef()}componentDidMount(){this.annotationLayer=new IS(this.props),this.annotationLayer.on("load",this.props.onLoad),this.annotationLayer.on("startSelection",this.handleStartSelect),this.annotationLayer.on("select",this.handleSelect),this.annotationLayer.on("updateTarget",this.handleUpdateTarget),this.forwardEvent("clickAnnotation","onClickAnnotation"),this.forwardEvent("mouseEnterAnnotation","onMouseEnterAnnotation"),this.forwardEvent("mouseLeaveAnnotation","onMouseLeaveAnnotation"),document.addEventListener("keyup",this.onKeyUp)}componentWillUnmount(){this.annotationLayer.destroy(),document.removeEventListener("keyup",this.onKeyUp)}get disableEditor(){return this.state.editorDisabled}set disableEditor(n){this.setState({editorDisabled:n})}get disableSelect(){return this.annotationLayer.disableSelect}set disableSelect(n){this.annotationLayer.disableSelect=n}get formatters(){return this.annotationLayer.formatters}set formatters(n){this.annotationLayer.formatters=n,this.annotationLayer.redraw()}get readOnly(){return this.state.readOnly}set readOnly(n){this.annotationLayer.readOnly=n,this.setState({readOnly:n})}get widgets(){return this.state.widgets}set widgets(n){this.setState({widgets:n})}render(){var o;const n=this.state.selectedAnnotation&&!this.state.editorDisabled,r=this.state.readOnly||((o=this.state.selectedAnnotation)==null?void 0:o.readOnly);return n&&Wc(hS,{ref:this._editor,detachable:!0,wrapperEl:this.props.wrapperEl,annotation:this.state.selectedAnnotation,modifiedTarget:this.state.modifiedTarget,selectedElement:this.state.selectedDOMElement,readOnly:r,allowEmpty:this.props.config.allowEmpty,widgets:this.state.widgets,env:this.props.env,onAnnotationCreated:this.onCreateOrUpdateAnnotation("onAnnotationCreated"),onAnnotationUpdated:this.onCreateOrUpdateAnnotation("onAnnotationUpdated"),onAnnotationDeleted:this.onDeleteAnnotation,onCancel:this.onCancelAnnotation})}}var QE="";class Gc{constructor(e){h(this,"handleAnnotationCreated",(e,n)=>this._emitter.emit("createAnnotation",e.underlying,n));h(this,"handleAnnotationDeleted",e=>this._emitter.emit("deleteAnnotation",e.underlying));h(this,"handleAnnotationSelected",(e,n)=>this._emitter.emit("selectAnnotation",e.underlying,n));h(this,"handleAnnotationUpdated",(e,n)=>this._emitter.emit("updateAnnotation",e.underlying,n.underlying));h(this,"handleCancelSelected",e=>this._emitter.emit("cancelSelected",e.underlying));h(this,"handleChangeSelected",(e,n)=>this._emitter.emit("changeSelected",e.underlying,n.underlying));h(this,"handleClickAnnotation",(e,n)=>this._emitter.emit("clickAnnotation",e.underlying,n));h(this,"handleLoad",e=>this._emitter.emit("load",e));h(this,"handleSelectionCreated",e=>this._emitter.emit("createSelection",e.underlying));h(this,"handleSelectionStarted",e=>this._emitter.emit("startSelection",e));h(this,"handleSelectionTargetChanged",e=>this._emitter.emit("changeSelectionTarget",e));h(this,"handleMouseEnterAnnotation",(e,n)=>this._emitter.emit("mouseEnterAnnotation",e.underlying,n));h(this,"handleMouseLeaveAnnotation",(e,n)=>this._emitter.emit("mouseLeaveAnnotation",e.underlying,n));h(this,"_wrap",e=>(e==null?void 0:e.type)==="Annotation"?new Je(e):e);h(this,"addAnnotation",(e,n)=>this._app.current.addAnnotation(new Je(e,{readOnly:n})));h(this,"addDrawingTool",e=>this._app.current.addDrawingTool(e));h(this,"cancelSelected",()=>this._app.current.cancelSelected());h(this,"clearAnnotations",()=>this.setAnnotations([]));h(this,"clearAuthInfo",()=>this._env.user=null);h(this,"destroy",()=>{g.unmountComponentAtNode(this._appContainerEl),this._element.parentNode.insertBefore(this._env.image,this._element),this._element.parentNode.removeChild(this._element)});h(this,"getAnnotationById",e=>{const n=this._app.current.getAnnotationById(e);return n==null?void 0:n.underlying});h(this,"getAnnotations",()=>this._app.current.getAnnotations().map(n=>n.underlying));h(this,"getImageSnippetById",e=>this._app.current.getImageSnippetById(e));h(this,"getSelected",()=>{const e=this._app.current.getSelected();return e==null?void 0:e.underlying});h(this,"getSelectedImageSnippet",()=>this._app.current.getSelectedImageSnippet());h(this,"getCurrentDrawingTool",()=>this._app.current.getCurrentDrawingTool());h(this,"getSelectedShape",()=>this._app.current.getSelectedShape());h(this,"listDrawingTools",()=>this._app.current.listDrawingTools());h(this,"loadAnnotations",e=>fetch(e).then(n=>n.json()).then(n=>(this.setAnnotations(n),n)));h(this,"off",(e,n)=>this._emitter.off(e,n));h(this,"on",(e,n)=>this._emitter.on(e,n));h(this,"once",(e,n)=>this._emitter.once(e,n));h(this,"removeAnnotation",e=>this._app.current.removeAnnotation(this._wrap(e)));h(this,"removeDrawingTool",e=>this._app.current.removeDrawingTool(e));h(this,"saveSelected",()=>this._app.current.saveSelected());h(this,"selectAnnotation",e=>{const n=this._app.current.selectAnnotation(this._wrap(e));return n==null?void 0:n.underlying});h(this,"setAnnotations",e=>{const r=(e||[]).map(o=>new Je(o));this._app.current.setAnnotations(r)});h(this,"setAuthInfo",e=>this._env.user=e);h(this,"setDrawingTool",e=>this._app.current.setDrawingTool(e));h(this,"setServerTime",e=>this._env.setServerTime(e));h(this,"setVisible",e=>this._app.current.setVisible(e));h(this,"updateSelected",(e,n)=>{let r=null;e.type==="Annotation"?r=new Je(e):e.type==="Selection"&&(r=new sn(e.target,e.body)),r&&this._app.current.updateSelected(r,n)});this._app=g.createRef(),this._emitter=new mn,e.disableEditor=e.disableEditor||e.headless;const n=e.image.nodeType?e.image:document.getElementById(e.image);n.style.display="block",this._env=_S(),this._env.image=n,ES(e.locale,e.messages),this._element=document.createElement("DIV"),this._element.style.position="relative",this._element.style.display="inline-block",n.parentNode.insertBefore(this._element,n),this._element.appendChild(n),this._appContainerEl=document.createElement("DIV"),this._element.appendChild(this._appContainerEl),g.render(Wc(NS,{ref:this._app,env:this._env,wrapperEl:this._element,config:e,onSelectionStarted:this.handleSelectionStarted,onSelectionCreated:this.handleSelectionCreated,onSelectionTargetChanged:this.handleSelectionTargetChanged,onAnnotationCreated:this.handleAnnotationCreated,onAnnotationSelected:this.handleAnnotationSelected,onAnnotationUpdated:this.handleAnnotationUpdated,onAnnotationDeleted:this.handleAnnotationDeleted,onCancelSelected:this.handleCancelSelected,onChangeSelected:this.handleChangeSelected,onClickAnnotation:this.handleClickAnnotation,onLoad:this.handleLoad,onMouseEnterAnnotation:this.handleMouseEnterAnnotation,onMouseLeaveAnnotation:this.handleMouseLeaveAnnotation}),this._appContainerEl)}get disableEditor(){return this._app.current.disableEditor}set disableEditor(e){this._app.current.disableEditor=e}get disableSelect(){return this._app.current.disableSelect}set disableSelect(e){this._app.current.disableSelect=e}get formatters(){return this._app.current.formatters||[]}set formatters(e){if(e){const n=Array.isArray(e)?e:[e];this._app.current.formatters=n}else this._app.current.formatters=null}get readOnly(){return this._app.current.readOnly}set readOnly(e){this._app.current.readOnly=e}get widgets(){return this._app.current.widgets}set widgets(e){this._app.current.widgets=e}}const LS=t=>new Gc(t);me.Annotorious=Gc,me.init=LS,Object.defineProperty(me,"__esModule",{value:!0}),me[Symbol.toStringTag]="Module"});
|
|
25
|
-
//# sourceMappingURL=annotorious.umd.js.map
|
|
1
|
+
/*! For license information please see annotorious.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Annotorious",[],t):"object"==typeof exports?exports.Annotorious=t():e.Annotorious=t()}(self,(()=>(()=>{var e={2768:(e,t,n)=>{"use strict";var r=n(7701),o=n(593),i=r("%TypeError%"),a=n(5589),u=n(7473),s=n(1564),l=n(4293),c=n(9946),f=n(9541),p=n(4597),d=n(1753),y=o("String.prototype.split"),m=Object("a"),h="a"!==m[0]||!(0 in m);e.exports=function(e){var t,n=f(this),r=h&&d(this)?y(this,""):n,o=c(r);if(!l(e))throw new i("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=0;m<o;){var b=p(m);if(s(r,b)){var v=u(r,b);a(e,t,[v,m,r])}m+=1}}},2867:(e,t,n)=>{"use strict";var r=n(4347),o=n(4373),i=n(593),a=n(8866),u=n(2768),s=n(683),l=s(),c=n(4635),f=i("Array.prototype.slice"),p=o.apply(l),d=function(e,t){return a(e),p(e,f(arguments,1))};r(d,{getPolyfill:s,implementation:u,shim:c}),e.exports=d},683:(e,t,n)=>{"use strict";var r=n(3206),o=n(2768);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:o}},4635:(e,t,n)=>{"use strict";var r=n(4347),o=n(683);e.exports=function(){var e=o();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},9584:function(e,t){var n,r;n=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,a=function(){e.clientWidth!==n&&f()},u=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",u,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",u,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:u,update:f}),"vertical"===(s=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),t="content-box"===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&&(t=0),f()}var s;function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function f(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(l("scroll"),c(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),c(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var a=i("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}}function u(e){var t=o.get(e);t&&t.destroy()}function s(e){var t=o.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],u),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=l,e.exports=t.default},void 0===(r=n.apply(t,[e,t]))||(e.exports=r)},593:(e,t,n)=>{"use strict";var r=n(7701),o=n(4373),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},4373:(e,t,n)=>{"use strict";var r=n(3767),o=n(7701),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=u(r,a,arguments);return s&&l&&s(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return u(r,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8344:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"===r(e))if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}n.r(t),n.d(t,{default:()=>i})},6286:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},4347:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(8204),i="function"==typeof Symbol&&"symbol"===r(Symbol("foo")),a=Object.prototype.toString,u=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===a.call(o)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},r=o(t);i&&(r=u.call(r,Object.getOwnPropertySymbols(t)));for(var a=0;a<r.length;a+=1)c(e,r[a],t[r[a]],n[r[a]])};f.supportsDescriptors=!!l,e.exports=f},3206:e=>{function t(e){return t="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},t(e)}e.exports=function(e){var n=!0,r=!0,o=!1;if("function"==typeof e){try{e.call("f",(function(e,r,o){"object"!==t(o)&&(n=!1)})),e.call([null],(function(){"use strict";r="string"==typeof this}),"x")}catch(e){o=!0}return!o&&n&&r}return!1}},2358:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator),i=n(9739),a=n(1493),u=n(3258),s=n(8247);e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),o&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var r=t.call(e,n);if(i(r))return r;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(u(e)||s(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,o,u="string"===t?["toString","valueOf"]:["valueOf","toString"];for(o=0;o<u.length;++o)if(n=e[u[o]],a(n)&&(r=n.call(e),i(r)))return r;throw new TypeError("No default value")}(e,"default"===n?"number":n)}},6391:(e,t,n)=>{"use strict";var r=Object.prototype.toString,o=n(9739),i=n(1493),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,u=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<u.length;++a)if(i(e[u[a]])&&(n=e[u[a]](),o(n)))return n;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};e.exports=function(e){return o(e)?e:arguments.length>1?a(e,arguments[1]):a(e)}},9739:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function(e){return null===e||"function"!=typeof e&&"object"!==t(e)}},3094:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function e(n,r){if(n===r)return!0;if(n&&r&&"object"==t(n)&&"object"==t(r)){if(n.constructor!==r.constructor)return!1;var o,i,a;if(Array.isArray(n)){if((o=n.length)!=r.length)return!1;for(i=o;0!=i--;)if(!e(n[i],r[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if((o=(a=Object.keys(n)).length)!==Object.keys(r).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=o;0!=i--;){var u=a[i];if(!e(n[u],r[u]))return!1}return!0}return n!=n&&r!=r}},3161:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),u=[],s=0;s<a;s++)u.push("$"+s);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}},3767:(e,t,n)=>{"use strict";var r=n(3161);e.exports=Function.prototype.bind||r},7701:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,i=SyntaxError,a=Function,u=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new u},f=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(8489)(),d=Object.getPrototypeOf||function(e){return e.__proto__},y={},m="undefined"==typeof Uint8Array?o:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":r(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):o,"%Symbol%":p?Symbol:o,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":m,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},b=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return h[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(3767),S=n(1888),w=g.call(Function.call,Array.prototype.concat),O=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,P=function(e,t){var n,r=e;if(S(v,r)&&(r="%"+(n=v[r])[0]+"%"),S(h,r)){var o=h[r];if(o===y&&(o=b(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,A,(function(e,t,n,o){r[r.length]=n?_(o,x,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=P("%"+r+"%",t),a=o.name,s=o.value,c=!1,f=o.alias;f&&(r=f[0],O(n,w([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=E(y,0,1),b=E(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&d||(c=!0),S(h,a="%"+(r+="."+y)+"%"))s=h[a];else if(null!=s){if(!(y in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&p+1>=n.length){var v=l(s,y);s=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[y]}else d=S(s,y),s=s[y];d&&!c&&(h[a]=s)}}return s}},8489:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="undefined"!=typeof Symbol&&Symbol,i=n(7027);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===r(o("foo"))&&"symbol"===r(Symbol("bar"))&&i()}},7027:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===t(Symbol.iterator))return!0;var e={},n=Symbol("test"),r=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,n);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1191:(e,t,n)=>{"use strict";var r=n(7027);e.exports=function(){return r()&&!!Symbol.toStringTag}},1888:(e,t,n)=>{"use strict";var r=n(3767);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},7480:(e,t,n)=>{"use strict";var r=n(5532),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(y){var o=d(n);o&&o!==y&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),m=s(n),h=0;h<a.length;++h){var b=a[h];if(!(i[b]||r&&r[b]||m&&m[b]||u&&u[b])){var v=p(n,b);try{l(t,b,v)}catch(e){}}}}return t}},1493:e=>{"use strict";function t(e){return t="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},t(e)}var n,r,o=Function.prototype.toString,i="object"===("undefined"==typeof Reflect?"undefined":t(Reflect))&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,n)}catch(e){e!==r&&(i=null)}else i=null;var a=/^\s*class\b/,u=function(e){try{var t=o.call(e);return a.test(t)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c="object"===("undefined"==typeof document?"undefined":t(document))&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!==t(e))return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,n)}catch(e){if(e!==r)return!1}return!u(e)}:function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!==t(e))return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!u(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(u(e))return!1;var n=s.call(e);return"[object Function]"===n||"[object GeneratorFunction]"===n}},3258:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Date.prototype.getDay,i=Object.prototype.toString,a=n(1191)();e.exports=function(e){return"object"===r(e)&&null!==e&&(a?function(e){try{return o.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},1753:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=String.prototype.valueOf,i=Object.prototype.toString,a=n(1191)();e.exports=function(e){return"string"==typeof e||"object"===r(e)&&(a?function(e){try{return o.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},8247:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Object.prototype.toString;if(n(8489)()){var i=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===r(e))return!0;if("[object Symbol]"!==o.call(e))return!1;try{return function(e){return"symbol"===r(e.valueOf())&&a.test(i.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},7e3:(e,t,n)=>{var r=n(6286);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,a=document.createElement(i);a.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&a.setAttribute("rows","1");var u=r(e,"font-size");a.style.fontSize=u,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a),n=a.offsetHeight,s.removeChild(a)}return n}},8436:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(2867),i=n(2940),a=n(2459),u=n(1888),s=n(2293),l=function(e){a(!1,e)},c=String.prototype.replace,f=String.prototype.split,p="||||",d=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},y={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:d,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h,b=(h={},function(e,t){var n=h[t];return n&&!e.pluralTypes[n]&&(n=null,h[t]=n),n||(n=function(e,t){var n,r,a=(n=e.pluralTypeToLanguages,r={},o(i(n),(function(e){var t=e[0],n=e[1];o(n,(function(e){r[e]=t}))})),r);return a[t]||a[f.call(t,/-/,1)[0]]||a.en}(e,t))&&(h[t]=n),n}),v=/%\{(.*?)\}/g;function g(e,t,n,r,o){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var i=e,a=r||v,l="number"==typeof t?{smart_count:t}:t;if(null!=l.smart_count&&e){var d=o||y,m=f.call(e,p),h=function(e,t,n){return e.pluralTypes[t](n)}(d,b(d,n||"en"),l.smart_count);i=s(m[h]||m[0])}return c.call(i,a,(function(e,t){return u(l,t)&&null!=l[t]?l[t]:e}))}function S(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?g:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||l,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===p||n===p)throw new RangeError('"'+p+'" token is reserved for pluralization');return new RegExp(m(t)+"(.*?)"+m(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||y}S.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},S.prototype.extend=function(e,t){o(i(e||{}),(function(e){var n=e[0],o=e[1],i=t?t+"."+n:n;"object"===r(o)?this.extend(o,i):this.phrases[i]=o}),this)},S.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:o(i(e||{}),(function(e){var n=e[0],o=e[1],i=t?t+"."+n:n;"object"===r(o)?this.unset(o,i):delete this.phrases[i]}),this)},S.prototype.clear=function(){this.phrases={}},S.prototype.replace=function(e){this.clear(),this.extend(e)},S.prototype.t=function(e,t){var n,r,o=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof o._?n=o._:this.onMissingKey?r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=g(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},S.prototype.has=function(e){return u(this.phrases,e)},S.transformPhrase=function(e,t,n){return g(e,t,n)},e.exports=S},7594:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,u=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,f=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,h=Object.prototype.toString,b=Function.prototype.toString,v=String.prototype.match,g=String.prototype.slice,S=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,A=Array.prototype.join,x=Array.prototype.slice,P=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"===r(Symbol.iterator),T="function"==typeof Symbol&&Symbol.toStringTag&&(r(Symbol.toStringTag),1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-P(-e):P(e);if(r!==e){var o=String(r),i=g.call(t,o.length+1);return S.call(o,n,"$&_")+"."+S.call(S.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(t,n,"$&_")}var I=n(4654).custom,L=I&&H(I)?I:null;function U(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return S.call(String(e),/"/g,""")}function V(e){return!("[object Array]"!==W(e)||T&&"object"===r(e)&&T in e)}function H(e){if(D)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,i){var s=n||{};if(z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!z(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return h?N(t,w):w}if("bigint"==typeof t){var _=String(t)+"n";return h?N(t,_):_}var P=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"===r(t))return V(t)?"[Array]":"[Object]";var j,I=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=A.call(Array(e.indent+1)," ")}return{base:n,prev:A.call(Array(t+1),n)}}(s,o);if(void 0===i)i=[];else if($(i,t)>=0)return"[Circular]";function B(t,n,r){if(n&&(i=x.call(i)).push(n),r){var a={depth:s.depth};return z(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,i)}return e(t,s,o+1,i)}if("function"==typeof t){var Y=function(e){if(e.name)return e.name;var t=v.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Q=K(t,B);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(Q.length>0?" { "+A.call(Q,", ")+" }":"")}if(H(t)){var ee=D?S.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!==r(t)||D?ee:X(ee)}if((j=t)&&"object"===r(j)&&("undefined"!=typeof HTMLElement&&j instanceof HTMLElement||"string"==typeof j.nodeName&&"function"==typeof j.getAttribute)){for(var te="<"+O.call(String(t.nodeName)),ne=t.attributes||[],re=0;re<ne.length;re++)te+=" "+ne[re].name+"="+U(F(ne[re].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+"</"+O.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var oe=K(t,B);return I&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(oe)?"["+J(oe,I)+"]":"[ "+A.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||T&&"object"===r(e)&&T in e)}(t)){var ie=K(t,B);return"cause"in t&&!M.call(t,"cause")?"{ ["+String(t)+"] "+A.call(E.call("[cause]: "+B(t.cause),ie),", ")+" }":0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(ie,", ")+" }"}if("object"===r(t)&&l){if(L&&"function"==typeof t[L])return t[L]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==r(e))return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return u.call(t,(function(e,n){ae.push(B(n,t,!0)+" => "+B(e,t))})),Z("Map",a.call(t),ae,I)}if(function(e){if(!c||!e||"object"!==r(e))return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return f.call(t,(function(e){ue.push(B(e,t))})),Z("Set",c.call(t),ue,I)}if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return q("WeakMap");if(function(e){if(!d||!e||"object"!==r(e))return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return q("WeakSet");if(function(e){if(!y||!e||"object"!==r(e))return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return q("WeakRef");if(function(e){return!("[object Number]"!==W(e)||T&&"object"===r(e)&&T in e)}(t))return X(B(Number(t)));if(function(e){if(!e||"object"!==r(e)||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return X(B(C.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||T&&"object"===r(e)&&T in e)}(t))return X(m.call(t));if(function(e){return!("[object String]"!==W(e)||T&&"object"===r(e)&&T in e)}(t))return X(B(String(t)));if(!function(e){return!("[object Date]"!==W(e)||T&&"object"===r(e)&&T in e)}(t)&&!function(e){return!("[object RegExp]"!==W(e)||T&&"object"===r(e)&&T in e)}(t)){var se=K(t,B),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",fe=!le&&T&&Object(t)===t&&T in t?g.call(W(t),8,-1):ce?"Object":"",pe=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||ce?"["+A.call(E.call([],fe||[],ce||[]),": ")+"] ":"");return 0===se.length?pe+"{}":I?pe+"{"+J(se,I)+"}":pe+"{ "+A.call(se,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return B.call(e,t)}function W(e){return h.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(g.call(e,0,t.maxStringLength),t)+r}return U(S.call(S.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function q(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):A.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+A.call(e,","+n)+"\n"+t.prev}function K(e,t){var n=V(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof j?j(e):[];if(D){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)z(e,s)&&(n&&String(Number(s))===s&&s<e.length||D&&i["$"+s]instanceof Symbol||(_.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof j)for(var l=0;l<a.length;l++)M.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},1561:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=n(8013),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===r(window[e]))try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"===r(e),n="[object Function]"===a.call(e),o=u(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var m=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(o&&e.length>0)for(var b=0;b<e.length;++b)d.push(String(b));else for(var v in e)m&&"prototype"===v||!i.call(e,v)||d.push(String(v));if(l)for(var g=function(e){if("undefined"==typeof window||!y)return p(e);try{return p(e)}catch(e){return!1}}(e),S=0;S<f.length;++S)g&&"constructor"===f[S]||!i.call(e,f[S])||d.push(f[S]);return d}}e.exports=o},8204:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(8013),i=Object.keys,a=i?function(e){return i(e)}:n(1561),u=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?u(r.call(e)):u(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},8013:e=>{"use strict";function t(e){return t="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},t(e)}var n=Object.prototype.toString;e.exports=function(e){var r=n.call(e),o="[object Arguments]"===r;return o||(o="[object Array]"!==r&&null!==e&&"object"===t(e)&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),o}},3167:(e,t,n)=>{"use strict";var r=n(8866),o=n(593),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,[o,t[o]]);return n}},2940:(e,t,n)=>{"use strict";var r=n(4347),o=n(4373),i=n(3167),a=n(3365),u=n(463),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},3365:(e,t,n)=>{"use strict";var r=n(3167);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},463:(e,t,n)=>{"use strict";var r=n(3365),o=n(4347);e.exports=function(){var e=r();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},4741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>Ae,Component:()=>g,Fragment:()=>v,PureComponent:()=>ge,StrictMode:()=>it,Suspense:()=>Ce,SuspenseList:()=>De,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Ze,cloneElement:()=>et,createContext:()=>H,createElement:()=>m,createFactory:()=>Ke,createPortal:()=>Ne,createRef:()=>b,default:()=>at,findDOMNode:()=>nt,flushSync:()=>ot,forwardRef:()=>_e,hydrate:()=>He,isValidElement:()=>Qe,lazy:()=>ke,memo:()=>Se,render:()=>Ve,unmountComponentAtNode:()=>tt,unstable_batchedUpdates:()=>rt,useCallback:()=>ae,useContext:()=>ue,useDebugValue:()=>se,useEffect:()=>te,useErrorBoundary:()=>le,useImperativeHandle:()=>oe,useLayoutEffect:()=>ne,useMemo:()=>ie,useReducer:()=>ee,useRef:()=>re,useState:()=>Q,version:()=>Je});var r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return h(e,u,o,i,null)}function h(e,t,n,r,a){var u={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(u),u}function b(){return{current:null}}function v(e){return e.children}function g(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function O(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!_.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||u)(_)}function _(){for(var e;_.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?S(o):i,o.__h),M(n,o),o.__e!=i&&w(o)))}))}function E(e,t,n,r,o,i,a,u,s,l){var p,d,y,m,b,g,w,O=r&&r.__k||f,_=O.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(m=n.__k[p]=null==(m=t[p])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?h(null,m,null,null,m):Array.isArray(m)?h(v,{children:m},null,null,null):m.__b>0?h(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(y=O[p])||y&&m.key==y.key&&m.type===y.type)O[p]=void 0;else for(d=0;d<_;d++){if((y=O[d])&&m.key==y.key&&m.type===y.type){O[d]=void 0;break}y=null}T(e,m,y=y||c,o,i,a,u,s,l),b=m.__e,(d=m.ref)&&y.ref!=d&&(w||(w=[]),y.ref&&w.push(y.ref,null,m),w.push(d,m.__c||b,m)),null!=b?(null==g&&(g=b),"function"==typeof m.type&&m.__k===y.__k?m.__d=s=A(m,s,e):s=P(e,m,y,O,b,s),"function"==typeof n.type&&(n.__d=s)):s&&y.__e==s&&s.parentNode!=e&&(s=S(y))}for(n.__e=g,p=_;p--;)null!=O[p]&&("function"==typeof n.type&&null!=O[p].__e&&O[p].__e==n.__d&&(n.__d=S(r,p+1)),I(O[p],O[p]));if(w)for(p=0;p<w.length;p++)N(w[p],w[++p],w[++p])}function A(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?A(r,t,n):P(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function P(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function C(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function j(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||C(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||C(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?D:k,i):e.removeEventListener(t,i?D:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](o.event?o.event(e):e)}function D(e){this.l[e.type+!0](o.event?o.event(e):e)}function T(e,t,n,r,i,a,u,s,l){var c,f,p,y,m,h,b,S,w,O,_,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=o.__b)&&c(t);try{e:if("function"==typeof A){if(S=t.props,w=(c=A.contextType)&&r[c.__c],O=c?w?w.props.value:c.__:r,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(S,O):(t.__c=f=new g(S,O),f.constructor=A,f.render=L),w&&w.sub(f),f.props=S,f.state||(f.state={}),f.context=O,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,A.getDerivedStateFromProps(S,f.__s))),y=f.props,m=f.state,p)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&S!==y&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(S,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(S,f.__s,O)||t.__v===n.__v){f.props=S,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(S,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(y,m,h)}))}f.context=O,f.props=S,f.state=f.__s,(c=o.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(h=f.getSnapshotBeforeUpdate(y,m)),_=null!=c&&c.type===v&&null==c.key?c.props.children:c,E(e,Array.isArray(_)?_:[_],t,n,r,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,u,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),o.__e(e,t,n)}}function M(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,u,s){var l,f,p,d=n.props,m=t.props,h=t.type,b=0;if("svg"===h&&(i=!0),null!=a)for(;b<a.length;b++)if((l=a[b])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[b]=null;break}if(null==e){if(null===h)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),a=null,s=!1}if(null===h)d===m||s&&e.data===m||(e.data=m);else{if(a=a&&r.call(e.childNodes),f=(d=n.props||c).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!s){if(null!=a)for(d={},b=0;b<e.attributes.length;b++)d[e.attributes[b].name]=e.attributes[b].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||j(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||j(e,i,t[i],n[i],r)}(e,m,d,i,s),p)t.__k=[];else if(b=t.props.children,E(e,Array.isArray(b)?b:[b],t,n,o,i&&"foreignObject"!==h,a,u,a?a[0]:n.__k&&S(n,0),s),null!=a)for(b=a.length;b--;)null!=a[b]&&y(a[b]);s||("value"in m&&void 0!==(b=m.value)&&(b!==d.value||b!==e.value||"progress"===h&&!b)&&j(e,"value",b,d.value,!1),"checked"in m&&void 0!==(b=m.checked)&&b!==e.checked&&j(e,"checked",b,d.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||N(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&I(r[i],t,"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function U(e,t,n){var i,a,u;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,u=[],T(t,e=(!i&&n||t).__k=m(v,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,u,!i&&n?n:a?a.__e:t.firstChild,i),M(u,e)}function F(e,t){U(e,t,F)}function V(e,t,n){var o,i,a,u=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),h(e.type,u,o||e.key,i||e.ref,null)}function H(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(O)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),O(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},g.prototype.render=v,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,l=0;var B,z,W,$=0,G=[],Y=o.__b,X=o.__r,q=o.diffed,Z=o.__c,J=o.unmount;function K(e,t){o.__h&&o.__h(z,e,$||t),$=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return $=1,ee(me,e)}function ee(e,t,n){var r=K(B++,2);return r.t=e,r.__c||(r.__=[n?n(t):me(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=z),r.__}function te(e,t){var n=K(B++,3);!o.__s&&ye(n.__H,t)&&(n.__=e,n.__H=t,z.__H.__h.push(n))}function ne(e,t){var n=K(B++,4);!o.__s&&ye(n.__H,t)&&(n.__=e,n.__H=t,z.__h.push(n))}function re(e){return $=5,ie((function(){return{current:e}}),[])}function oe(e,t,n){$=6,ne((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function ie(e,t){var n=K(B++,7);return ye(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ae(e,t){return $=8,ie((function(){return e}),t)}function ue(e){var t=z.context[e.__c],n=K(B++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function se(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)}function le(e){var t=K(B++,10),n=Q();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ce(){var e;for(G.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=G.pop();)if(e.__P)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){z=null,Y&&Y(e)},o.__r=function(e){X&&X(e),B=0;var t=(z=e.__c).__H;t&&(t.__h.forEach(pe),t.__h.forEach(de),t.__h=[])},o.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==G.push(t)&&W===o.requestAnimationFrame||((W=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))})(ce)),z=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{pe(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var t=z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),z=t}function de(e){var t=z;e.__c=e.__(),z=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function me(e,t){return"function"==typeof t?t(e):t}function he(e){return he="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},he(e)}function be(e,t){for(var n in t)e[n]=t[n];return e}function ve(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ge(e){this.props=e}function Se(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ve(this.props,e)}function r(t){return this.shouldComponentUpdate=n,m(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ge.prototype=new g).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,t){return ve(this.props,e)||ve(this.state,t)};var we=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),we&&we(e)};var Oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _e(e){function t(t,n){var r=be({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=he(n)||"current"in n)?n:null)}return t.$$typeof=Oe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ee=function(e,t){return null==e?null:x(x(e).map(t))},Ae={map:Ee,forEach:Ee,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},xe=o.__e;o.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);xe(e,t,n)};var Pe=o.unmount;function Ce(){this.__u=0,this.t=null,this.__b=null}function je(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ke(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return m(n,o)}return o.displayName="Lazy",o.__f=!0,o}function De(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Pe&&Pe(e)},(Ce.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=je(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=be({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&m(v,null,e.fallback);return o&&(o.__h=null),[m(v,null,t.__e?null:e.children),o]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Me(e){return this.getChildContext=function(){return e.context},e.children}function Re(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),U(m(Me,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ne(e,t){return m(Re,{__v:e,i:t})}(De.prototype=new g).__e=function(e){var t=this,n=je(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},De.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},De.prototype.componentDidUpdate=De.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Te(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Le=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ue="undefined"!=typeof document,Fe=function(e){return("undefined"!=typeof Symbol&&"symbol"==he(Symbol())?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ve(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function He(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null}g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Be=o.event;function ze(){}function We(){return this.cancelBubble}function $e(){return this.defaultPrevented}o.event=function(e){return Be&&(e=Be(e)),e.persist=ze,e.isPropagationStopped=We,e.isDefaultPrevented=$e,e.nativeEvent=e};var Ge,Ye={configurable:!0,get:function(){return this.class}},Xe=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];Ue&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Fe(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&Le.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Ye.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ye))}e.$$typeof=Ie,Xe&&Xe(e)};var qe=o.__r;o.__r=function(e){qe&&qe(e),Ge=e.__c};var Ze={ReactCurrentDispatcher:{current:{readContext:function(e){return Ge.__n[e.__c].props.value}}}},Je="17.0.2";function Ke(e){return m.bind(null,e)}function Qe(e){return!!e&&e.$$typeof===Ie}function et(e){return Qe(e)?V.apply(null,arguments):e}function tt(e){return!!e.__k&&(U(null,e),!0)}function nt(e){return e&&(e.base||1===e.nodeType&&e)||null}var rt=function(e,t){return e(t)},ot=function(e,t){return e(t)},it=v;const at={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useRef:re,useImperativeHandle:oe,useMemo:ie,useCallback:ae,useContext:ue,useDebugValue:se,version:"17.0.2",Children:Ae,render:Ve,hydrate:He,unmountComponentAtNode:tt,createPortal:Ne,createElement:m,createContext:H,createFactory:Ke,cloneElement:et,createRef:b,Fragment:v,isValidElement:Qe,findDOMNode:nt,Component:g,PureComponent:ge,memo:Se,forwardRef:_e,flushSync:ot,unstable_batchedUpdates:rt,StrictMode:v,Suspense:Ce,SuspenseList:De,lazy:ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ze}},9428:(e,t,n)=>{"use strict";var r=n(2134);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},6526:(e,t,n)=>{e.exports=n(9428)()},2134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8744:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var u=n(4741),s=n(6526),l=n(9584),c=n(7e3),f="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:c(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&l(e.textarea)})):this.textarea&&l(this.textarea),this.textarea&&this.textarea.addEventListener(f,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(f,this.onResize),l.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),s=a(t,["onResize","maxRows","onChange","style","innerRef","children"]),l=this.state.lineHeight,c=n&&l?l*n:null;return u.createElement("textarea",i({},s,{onChange:this.onChange,style:c?i({},r,{maxHeight:c}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&l.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(u.Component);t.TextareaAutosize=u.forwardRef((function(e,t){return u.createElement(p,i({},e,{innerRef:t}))}))},6451:(e,t,n)=>{"use strict";var r=n(8744);t.Z=r.TextareaAutosize},7199:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(4741)),i=y(n(6526)),a=y(n(4741)),u=y(n(8344)),s=n(5676),l=n(6102),c=n(6339),f=y(n(9466)),p=y(n(7165)),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function y(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(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 S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(b,e);var t,n,i,c,y,m=(c=b,y=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}}(),function(){var e,t=_(c);if(y){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,e)});function b(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),E(O(t=m.call(this,e)),"onDragStart",(function(e,n){if((0,p.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,l.createDraggableData)(O(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),E(O(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",n);var r,o,i=(0,l.createDraggableData)(O(t),n),a={x:i.x,y:i.y};if(t.props.bounds){var u=a.x,s=a.y;a.x+=t.state.slackX,a.y+=t.state.slackY;var c=(r=(0,l.getBoundPosition)(O(t),a.x,a.y),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=c[0],d=c[1];a.x=f,a.y=d,a.slackX=t.state.slackX+(u-a.x),a.slackY=t.state.slackY+(s-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-t.state.x,i.deltaY=a.y-t.state.y}if(!1===t.props.onDrag(e,i))return!1;t.setState(a)})),E(O(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,l.createDraggableData)(O(t),n)))return!1;(0,p.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:v({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=b,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:v({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,p=t.position,y=t.positionOffset,m=(t.scale,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,d)),b={},g=null,S=!Boolean(p)||this.state.dragging,w=p||r,O={x:(0,l.canDragX)(this)&&S?this.state.x:w.x,y:(0,l.canDragY)(this)&&S?this.state.y:w.y};this.state.isElementSVG?g=(0,s.createSVGTransform)(O,y):b=(0,s.createCSSTransform)(O,y);var _=(0,u.default)(n.props.className||"",i,(E(e={},a,this.state.dragging),E(e,c,this.state.dragged),e));return o.createElement(f.default,h({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:_,style:v(v({},n.props.style),b),transform:g}))}}])&&S(t.prototype,n),i&&S(t,i),b}(o.Component);t.default=A,E(A,"displayName","Draggable"),E(A,"propTypes",v(v({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),E(A,"defaultProps",v(v({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},9466:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(4741)),i=f(n(6526)),a=f(n(4741)),u=n(5676),s=n(6102),l=n(6339),c=f(n(7165));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}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 y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={start:"touchstart",move:"touchmove",stop:"touchend"},S={start:"mousedown",move:"mousemove",stop:"mouseup"},w=S,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(p,e);var t,n,i,l,f=(i=p,l=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}}(),function(){var e,t=b(i);if(l){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function p(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(h(e=f.call.apply(f,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),v(h(e),"mounted",!1),v(h(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,u.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,u.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,u.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,h(e));if(null!=i){var a=i.x,l=i.y,f=(0,s.createCoreData)(h(e),a,l);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:a,lastY:l}),(0,u.addEvent)(r,w.move,e.handleDrag),(0,u.addEvent)(r,w.stop,e.handleDragStop))}}})),v(h(e),"handleDrag",(function(t){var n,r,o=(0,s.getControlPosition)(t,e.state.touchIdentifier,h(e));if(null!=o){var i=o.x,a=o.y;if(Array.isArray(e.props.grid)){var u=i-e.state.lastX,l=a-e.state.lastY,f=(n=(0,s.snapToGrid)(e.props.grid,u,l),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());if(u=f[0],l=f[1],!u&&!l)return;i=e.state.lastX+u,a=e.state.lastY+l}var p=(0,s.createCoreData)(h(e),i,a);if((0,c.default)("DraggableCore: handleDrag: %j",p),!1!==e.props.onDrag(t,p)&&!1!==e.mounted)e.setState({lastX:i,lastY:a});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var y=document.createEvent("MouseEvents");y.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(y)}}})),v(h(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,h(e));if(null!=n){var r=n.x,o=n.y,i=(0,s.createCoreData)(h(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var a=e.findDOMNode();a&&e.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(a.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),a&&((0,c.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(a.ownerDocument,w.move,e.handleDrag),(0,u.removeEvent)(a.ownerDocument,w.stop,e.handleDragStop))}}})),v(h(e),"onMouseDown",(function(t){return w=S,e.handleDragStart(t)})),v(h(e),"onMouseUp",(function(t){return w=S,e.handleDragStop(t)})),v(h(e),"onTouchStart",(function(t){return w=g,e.handleDragStart(t)})),v(h(e),"onTouchEnd",(function(t){return w=g,e.handleDragStop(t)})),e}return t=p,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,u.addEvent)(e,g.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,u.removeEvent)(t,S.move,this.handleDrag),(0,u.removeEvent)(t,g.move,this.handleDrag),(0,u.removeEvent)(t,S.stop,this.handleDragStop),(0,u.removeEvent)(t,g.stop,this.handleDragStop),(0,u.removeEvent)(e,g.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&y(t.prototype,n),p}(o.Component);t.default=O,v(O,"displayName","DraggableCore"),v(O,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),v(O,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},40:(e,t,n)=>{"use strict";var r=n(7199),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},5676:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(e){var o=s({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.removeEvent=function(e,t,n,r){if(e){var o=s({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return l({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&d(e.body,"react-draggable-transparent-selection")}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&y(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=d,t.removeClassName=y;var o=n(6339),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=i?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(3561));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="";function f(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function p(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),u="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(u,")")+i}return i}function d(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function y(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},3561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(var a=0;a<n.length;a++)if(o(r,n[a])in i)return n[a];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},7165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},6102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var u=i(e);if("string"==typeof a){var s,l=u.ownerDocument,c=l.defaultView;if(!((s="parent"===a?u.parentNode:l.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=s,p=c.getComputedStyle(u),d=c.getComputedStyle(f);a={left:-u.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(p.marginLeft),top:-u.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(p.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(u)-u.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(p.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(u)-u.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(p.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),u=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,u,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),u=i(e);return a?{node:u,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:u,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(6339),o=n(5676);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},6339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},2718:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4741),u=l(a),s=l(n(6526));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},f=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),y=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||y(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||y(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?u.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=o({},this.props.style);t.display||(t.display="inline-block");var n=o({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){f.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,u.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),u.default.createElement("input",o({},r,{ref:this.inputRef})),u.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?u.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(a.Component);m.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.Z=m},4015:(e,t)=>{"use strict";function n(e){return n="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},n(e)}var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"===n(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case s:case u:case y:return e;default:switch(e=e&&e.$$typeof){case c:case d:case b:case h:case l:return e;default:return t}}case i:return t}}}function _(e){return O(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=u,t.Suspense=y,t.isAsyncMode=function(e){return _(e)||O(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"===n(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===h},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===u},t.isSuspense=function(e){return O(e)===y},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===u||e===y||e===m||"object"===n(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===S||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},5532:(e,t,n)=>{"use strict";e.exports=n(4015)},7212:(e,t,n)=>{"use strict";var r=n(8866),o=n(4597),i=n(593)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},2293:(e,t,n)=>{"use strict";var r=n(4373),o=n(4347),i=n(7212),a=n(9937),u=n(9183),s=r(a());o(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},9937:(e,t,n)=>{"use strict";var r=n(7212);e.exports=function(){return String.prototype.trim&&""==="".trim()?String.prototype.trim:r}},9183:(e,t,n)=>{"use strict";var r=n(4347),o=n(9937);e.exports=function(){var e=o();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},8841:(e,t)=>{"use strict";var n=[["ثانية","ثانيتين","%s ثوان","%s ثانية"],["دقيقة","دقيقتين","%s دقائق","%s دقيقة"],["ساعة","ساعتين","%s ساعات","%s ساعة"],["يوم","يومين","%s أيام","%s يوماً"],["أسبوع","أسبوعين","%s أسابيع","%s أسبوعاً"],["شهر","شهرين","%s أشهر","%s شهراً"],["عام","عامين","%s أعوام","%s عاماً"]];t.Z=function(e,t){if(0===t)return["منذ لحظات","بعد لحظات"];var r,o,i=(r=Math.floor(t/2),(o=e)<3?n[r][o-1]:o>=3&&o<=10?n[r][2]:n[r][3]);return["منذ "+i,"بعد "+i]}},2463:(e,t)=>{"use strict";t.Z=function(e,t){var n=0;return(1==t||3==t||5==t||7==t||9==t||11==t||13==t)&&e>=5&&(n=1),[[["právě teď","právě teď"]],[["před %s vteřinami","za %s vteřiny"],["před %s vteřinami","za %s vteřin"]],[["před minutou","za minutu"]],[["před %s minutami","za %s minuty"],["před %s minutami","za %s minut"]],[["před hodinou","za hodinu"]],[["před %s hodinami","za %s hodiny"],["před %s hodinami","za %s hodin"]],[["včera","zítra"]],[["před %s dny","za %s dny"],["před %s dny","za %s dnů"]],[["minulý týden","příští týden"]],[["před %s týdny","za %s týdny"],["před %s týdny","za %s týdnů"]],[["minulý měsíc","přístí měsíc"]],[["před %s měsíci","za %s měsíce"],["před %s měsíci","za %s měsíců"]],[["před rokem","přístí rok"]],[["před %s lety","za %s roky"],["před %s lety","za %s let"]]][t][n]}},3506:(e,t)=>{"use strict";t.Z=function(e,t){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][t]}},1975:(e,t)=>{"use strict";t.Z=function(e,t){return[["μόλις τώρα","σε λίγο"],["%s δευτερόλεπτα πριν","σε %s δευτερόλεπτα"],["1 λεπτό πριν","σε 1 λεπτό"],["%s λεπτά πριν","σε %s λεπτά"],["1 ώρα πριν","σε 1 ώρα"],["%s ώρες πριν","σε %s ώρες"],["1 μέρα πριν","σε 1 μέρα"],["%s μέρες πριν","σε %s μέρες"],["1 εβδομάδα πριν","σε 1 εβδομάδα"],["%s εβδομάδες πριν","σε %s εβδομάδες"],["1 μήνα πριν","σε 1 μήνα"],["%s μήνες πριν","σε %s μήνες"],["1 χρόνο πριν","σε 1 χρόνο"],["%s χρόνια πριν","σε %s χρόνια"]][t]}},7813:(e,t)=>{"use strict";t.Z=function(e,t){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 día","en 1 día"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][t]}},5194:(e,t)=>{"use strict";t.Z=function(e,t){return[["juuri äsken","juuri nyt"],["%s sekuntia sitten","%s sekunnin päästä"],["minuutti sitten","minuutin päästä"],["%s minuuttia sitten","%s minuutin päästä"],["tunti sitten","tunnin päästä"],["%s tuntia sitten","%s tunnin päästä"],["päivä sitten","päivän päästä"],["%s päivää sitten","%s päivän päästä"],["viikko sitten","viikon päästä"],["%s viikkoa sitten","%s viikon päästä"],["kuukausi sitten","kuukauden päästä"],["%s kuukautta sitten","%s kuukauden päästä"],["vuosi sitten","vuoden päästä"],["%s vuotta sitten","%s vuoden päästä"]][t]}},3971:(e,t)=>{"use strict";t.Z=function(e,t){return[["à l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][t]}},5211:(e,t)=>{"use strict";t.Z=function(e,t){return[["xusto agora","daquí a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 día","nun día"],["hai %s días","en %s días"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][t]}},3335:(e,t)=>{"use strict";t.Z=function(e,t){return[["अभी","कुछ समय"],["%s सेकंड पहले","%s सेकंड में"],["1 मिनट पहले","1 मिनट में"],["%s मिनट पहले","%s मिनट में"],["1 घंटे पहले","1 घंटे में"],["%s घंटे पहले","%s घंटे में"],["1 दिन पहले","1 दिन में"],["%s दिन पहले","%s दिनों में"],["1 सप्ताह पहले","1 सप्ताह में"],["%s हफ्ते पहले","%s हफ्तों में"],["1 महीने पहले","1 महीने में"],["%s महीने पहले","%s महीनों में"],["1 साल पहले","1 साल में"],["%s साल पहले","%s साल में"]][t]}},6509:(e,t)=>{"use strict";t.Z=function(e,t){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][t]}},6244:(e,t)=>{"use strict";t.Z=function(e,t){return[["すこし前","すぐに"],["%s秒前","%s秒以内"],["1分前","1分以内"],["%s分前","%s分以内"],["1時間前","1時間以内"],["%s時間前","%s時間以内"],["1日前","1日以内"],["%s日前","%s日以内"],["1週間前","1週間以内"],["%s週間前","%s週間以内"],["1ヶ月前","1ヶ月以内"],["%sヶ月前","%sヶ月以内"],["1年前","1年以内"],["%s年前","%s年以内"]][t]}},5626:(e,t)=>{"use strict";t.Z=function(e,t){return[["방금","곧"],["%s초 전","%s초 후"],["1분 전","1분 후"],["%s분 전","%s분 후"],["1시간 전","1시간 후"],["%s시간 전","%s시간 후"],["1일 전","1일 후"],["%s일 전","%s일 후"],["1주일 전","1주일 후"],["%s주일 전","%s주일 후"],["1개월 전","1개월 후"],["%s개월 전","%s개월 후"],["1년 전","1년 후"],["%s년 전","%s년 후"]][t]}},4178:(e,t)=>{"use strict";t.Z=function(e,t){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][t]}},3099:(e,t)=>{"use strict";t.Z=function(e,t){return[["agora mesmo","agora"],["há %s segundos","em %s segundos"],["há um minuto","em um minuto"],["há %s minutos","em %s minutos"],["há uma hora","em uma hora"],["há %s horas","em %s horas"],["há um dia","em um dia"],["há %s dias","em %s dias"],["há uma semana","em uma semana"],["há %s semanas","em %s semanas"],["há um mês","em um mês"],["há %s meses","em %s meses"],["há um ano","em um ano"],["há %s anos","em %s anos"]][t]}},2404:(e,t)=>{"use strict";function n(e,t,n,r,o){var i=o%10,a=r;return 1===o?a=e:1===i&&o>20?a=t:i>1&&i<5&&(o>20||o<10)&&(a=n),a}var r=n.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),o=n.bind(null,"минуту","%s минуту","%s минуты","%s минут"),i=n.bind(null,"час","%s час","%s часа","%s часов"),a=n.bind(null,"день","%s день","%s дня","%s дней"),u=n.bind(null,"неделю","%s неделю","%s недели","%s недель"),s=n.bind(null,"месяц","%s месяц","%s месяца","%s месяцев"),l=n.bind(null,"год","%s год","%s года","%s лет");t.Z=function(e,t){switch(t){case 0:return["только что","через несколько секунд"];case 1:return[r(e)+" назад","через "+r(e)];case 2:case 3:return[o(e)+" назад","через "+o(e)];case 4:case 5:return[i(e)+" назад","через "+i(e)];case 6:return["вчера","завтра"];case 7:return[a(e)+" назад","через "+a(e)];case 8:case 9:return[u(e)+" назад","через "+u(e)];case 10:case 11:return[s(e)+" назад","через "+s(e)];case 12:case 13:return[l(e)+" назад","через "+l(e)];default:return["",""]}}},8248:(e,t)=>{"use strict";t.Z=function(e,t){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 månad sedan","om 1 månad"],["%s månader sedan","om %s månader"],["1 år sedan","om 1 år"],["%s år sedan","om %s år"]][t]}},4475:(e,t)=>{"use strict";t.Z=function(e,t){return[["เมื่อสักครู่นี้","อีกสักครู่"],["%s วินาทีที่แล้ว","ใน %s วินาที"],["1 นาทีที่แล้ว","ใน 1 นาที"],["%s นาทีที่แล้ว","ใน %s นาที"],["1 ชั่วโมงที่แล้ว","ใน 1 ชั่วโมง"],["%s ชั่วโมงที่แล้ว","ใน %s ชั่วโมง"],["1 วันที่แล้ว","ใน 1 วัน"],["%s วันที่แล้ว","ใน %s วัน"],["1 อาทิตย์ที่แล้ว","ใน 1 อาทิตย์"],["%s อาทิตย์ที่แล้ว","ใน %s อาทิตย์"],["1 เดือนที่แล้ว","ใน 1 เดือน"],["%s เดือนที่แล้ว","ใน %s เดือน"],["1 ปีที่แล้ว","ใน 1 ปี"],["%s ปีที่แล้ว","ใน %s ปี"]][t]}},1311:(e,t)=>{"use strict";t.Z=function(e,t){return[["az önce","şimdi"],["%s saniye önce","%s saniye içinde"],["1 dakika önce","1 dakika içinde"],["%s dakika önce","%s dakika içinde"],["1 saat önce","1 saat içinde"],["%s saat önce","%s saat içinde"],["1 gün önce","1 gün içinde"],["%s gün önce","%s gün içinde"],["1 hafta önce","1 hafta içinde"],["%s hafta önce","%s hafta içinde"],["1 ay önce","1 ay içinde"],["%s ay önce","%s ay içinde"],["1 yıl önce","1 yıl içinde"],["%s yıl önce","%s yıl içinde"]][t]}},3211:(e,t)=>{"use strict";var n=["秒","分钟","小时","天","周","个月","年"];t.Z=function(e,t){if(0===t)return["刚刚","片刻后"];var r=n[~~(t/2)];return[e+" "+r+"前",e+" "+r+"后"]}},7883:(e,t)=>{"use strict";t.Z=function(e,t){return[["剛剛","片刻後"],["%s 秒前","%s 秒後"],["1 分鐘前","1 分鐘後"],["%s 分鐘前","%s 分鐘後"],["1 小時前","1 小時後"],["%s 小時前","%s 小時後"],["1 天前","1 天後"],["%s 天前","%s 天後"],["1 週前","1 週後"],["%s 週前","%s 週後"],["1 個月前","1 個月後"],["%s 個月前","%s 個月後"],["1 年前","1 年後"],["%s 年前","%s 年後"]][t]}},8773:e=>{function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},2459:e=>{"use strict";e.exports=function(){}},4654:()=>{},5589:(e,t,n)=>{"use strict";var r=n(7701),o=n(593),i=r("%TypeError%"),a=n(2163),u=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");return u(e,t,n)}},7473:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(7594),i=n(8154),a=n(7233);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},1564:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(8154),i=n(7233);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},2163:(e,t,n)=>{"use strict";var r=n(7701)("%Array%"),o=!r.isArray&&n(593)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},4293:(e,t,n)=>{"use strict";e.exports=n(1493)},8154:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function(e){return"string"==typeof e||"symbol"===t(e)}},9946:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%"),o=n(7473),i=n(338),a=n(7233);e.exports=function(e){if("Object"!==a(e))throw new r("Assertion failed: `obj` must be an Object");return i(o(e,"length"))}},8866:(e,t,n)=>{"use strict";e.exports=n(5152)},9340:(e,t,n)=>{"use strict";var r=n(4448),o=n(486);e.exports=function(e){var t=o(e);return 0!==t&&(t=r(t)),0===t?0:t}},338:(e,t,n)=>{"use strict";var r=n(7622),o=n(9340);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},486:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(7701),i=o("%TypeError%"),a=o("%Number%"),u=o("%RegExp%"),s=o("%parseInt%"),l=n(593),c=n(31),f=n(7544),p=l("String.prototype.slice"),d=c(/^0b[01]+$/i),y=c(/^0o[0-7]+$/i),m=c(/^[-+]0x[0-9a-f]+$/i),h=c(new u("["+["
","",""].join("")+"]","g")),b=["\t\n\v\f\r "," \u2028","\u2029\ufeff"].join(""),v=new RegExp("(^["+b+"]+)|(["+b+"]+$)","g"),g=l("String.prototype.replace"),S=n(2520);e.exports=function e(t){var n=f(t)?t:S(t,a);if("symbol"===r(n))throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(d(n))return e(s(p(n,2),2));if(y(n))return e(s(p(n,2),8));if(h(n)||m(n))return NaN;var o=function(e){return g(e,v,"")}(n);if(o!==n)return e(o)}return a(n)}},9541:(e,t,n)=>{"use strict";var r=n(7701)("%Object%"),o=n(8866);e.exports=function(e){return o(e),r(e)}},2520:(e,t,n)=>{"use strict";var r=n(2358);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},4597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(7701),i=o("%String%"),a=o("%TypeError%");e.exports=function(e){if("symbol"===r(e))throw new a("Cannot convert a Symbol value to a string");return i(e)}},7233:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(3986);e.exports=function(e){return"symbol"===r(e)?"Symbol":"bigint"==typeof e?"BigInt":o(e)}},5152:(e,t,n)=>{"use strict";var r=n(7701)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},4448:(e,t,n)=>{"use strict";var r=n(8198),o=n(8724),i=n(3827),a=n(1256),u=n(367),s=n(6188);e.exports=function(e){var t=i(e);return a(t)?0:0!==t&&u(t)?s(t)*o(r(t)):t}},3827:(e,t,n)=>{"use strict";var r=n(9276);e.exports=function(e){var t=r(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n}},9276:(e,t,n)=>{"use strict";e.exports=n(6391)},3986:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===t(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},8198:(e,t,n)=>{"use strict";var r=n(7701)("%Math.abs%");e.exports=function(e){return r(e)}},8724:e=>{"use strict";var t=Math.floor;e.exports=function(e){return t(e)}},367:e=>{"use strict";var t=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!t(e)&&e!==1/0&&e!==-1/0}},1256:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7544:e=>{"use strict";function t(e){return t="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},t(e)}e.exports=function(e){return null===e||"function"!=typeof e&&"object"!==t(e)}},7622:(e,t,n)=>{"use strict";var r=n(7701),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},31:(e,t,n)=>{"use strict";var r=n(7701)("RegExp.prototype.test"),o=n(4373);e.exports=function(e){return o(r,e)}},6188:e=>{"use strict";e.exports=function(e){return e>=0?1:-1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Annotorious:()=>nl,init:()=>rl});var e=n(4741),t=n(8773),o=n.n(t),i="http://www.w3.org/2000/svg",a=function(e){var t=e.getAttribute("class");return t?new Set(t.split(" ")):new Set},u=function(e,t){var n=a(e);n.add(t),e.setAttribute("class",Array.from(n).join(" "))},s=function(e,t){return a(e).has(t)};function l(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}var c=function(e,t){var n=e.selector("FragmentSelector");if(null!=n&&n.conformsTo.startsWith("http://www.w3.org/TR/media-frags")){var r=n.value,o=r.includes(":")?r.substring(r.indexOf("=")+1,r.indexOf(":")):"pixel",i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((r.includes(":")?r.substring(r.indexOf(":")+1):r.substring(r.indexOf("=")+1)).split(",").map(parseFloat),4),a=i[0],u=i[1],s=i[2],c=i[3];return"percent"===o.toLowerCase()&&(a=a*t.naturalWidth/100,u=u*t.naturalHeight/100,s=s*t.naturalWidth/100,c=c*t.naturalHeight/100),{x:a,y:u,w:s,h:c}}},f=function(e,t,n,r,o,i){return"percent"===(null==i?void 0:i.toLowerCase())?function(e,t,n,r,o){var i=e/o.naturalWidth*100,a=t/o.naturalHeight*100,u=n/o.naturalWidth*100,s=r/o.naturalHeight*100;return{source:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:"xywh=percent:".concat(i,",").concat(a,",").concat(u,",").concat(s)}}}(e,t,n,r,o):function(e,t,n,r,o){return{source:null==o?void 0:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:"xywh=pixel:".concat(e,",").concat(t,",").concat(n,",").concat(r)}}}(e,t,n,r,o)},p=function(e,t,n,r,o){e.setAttribute("x",t),e.setAttribute("y",n),e.setAttribute("width",r),e.setAttribute("height",o)},d=function(e,t,n){e.setAttribute("cx",t),e.setAttribute("cy",n),e.setAttribute("r",7)},y=function(e,t,n,r,o){var a=document.createElementNS(i,"path");a.setAttribute("fill-rule","evenodd");var u=e.naturalWidth,s=e.naturalHeight;return a.setAttribute("d","M0 0 h".concat(u," v").concat(s," h-").concat(u," z M").concat(t," ").concat(n," h").concat(r," v").concat(o," h-").concat(r," z")),a},m=function(e,t,n,r,o,i){var a=t.naturalWidth,u=t.naturalHeight;e.setAttribute("d","M0 0 h".concat(a," v").concat(u," h-").concat(a," z M").concat(n," ").concat(r," h").concat(o," v").concat(i," h-").concat(o," z"))},h=function(e,t,n,r){var o="Annotation"===e.type||"Selection"===e.type?c(e,t):{x:e,y:t,w:n,h:r},a=o.x,s=o.y,l=o.w,f=o.h,y=document.createElementNS(i,"g");if(0===l&&0===f){u(y,"a9s-point"),u(y,"a9s-non-scaling"),y.setAttribute("transform-origin","".concat(a," ").concat(s));var m=document.createElementNS(i,"circle"),h=document.createElementNS(i,"circle");h.setAttribute("class","a9s-inner"),d(h,a,s),m.setAttribute("class","a9s-outer"),d(m,a,s),y.appendChild(m),y.appendChild(h)}else{var b=document.createElementNS(i,"rect"),v=document.createElementNS(i,"rect");v.setAttribute("class","a9s-inner"),p(v,a,s,l,f),b.setAttribute("class","a9s-outer"),p(b,a,s,l,f),y.appendChild(b),y.appendChild(v)}return y},b=function(e){var t=e.querySelector(".a9s-outer");return"rect"===t.nodeName?{x:parseFloat(t.getAttribute("x")),y:parseFloat(t.getAttribute("y")),w:parseFloat(t.getAttribute("width")),h:parseFloat(t.getAttribute("height"))}:{x:parseFloat(t.getAttribute("cx")),y:parseFloat(t.getAttribute("cy")),w:0,h:0}},v=function(e,t,n,r,o){var i=e.querySelector(".a9s-inner"),a=e.querySelector(".a9s-outer");"rect"===a.nodeName?(p(i,t,n,r,o),p(a,t,n,r,o)):(d(i,t,n),d(a,t,n))};function g(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(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 S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function w(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(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}var _=function(e){for(var t=0,n=e.length-1,r=0;r<e.length;r++)t+=(e[n][0]+e[r][0])*(e[n][1]-e[r][1]),n=r;return Math.abs(.5*t)},E=function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e[0],o=e[1],i=!1,a=0,u=0,s=t.length-1;u<t.length;s=u++){var l=t[u][0],c=t[u][1],f=t[s][0],p=t[s][1];c>o!=p>o&&r<(f-l)*(o-c)/(p-c)+l&&(i=!i,c>p?a++:a--)}return n?0!=a:i};function A(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}var x,P=function(e){var t=function(e){Array.from(e.attributes).forEach((function(t){t.name.startsWith("on")&&e.removeAttribute(t.name)}))},n=e.getElementsByTagName("script");return Array.from(n).reverse().forEach((function(e){return e.parentNode.removeChild(e)})),t(e),Array.from(e.querySelectorAll("*")).forEach(t),e},C=function(e){var t,n,r=e.selector("SvgSelector");if(r){var o=new DOMParser,a=r.value,u=o.parseFromString(a,"image/svg+xml"),s=u.lookupPrefix(i),l=u.lookupNamespaceURI(null);return s||l?P(u).firstChild:P((t=u,n=(new XMLSerializer).serializeToString(t.documentElement).replace("<svg>",'<svg xmlns="'.concat(i,'">')),(new DOMParser).parseFromString(n,"image/svg+xml").documentElement)).firstChild}},j=function(e){var t=C(e),n=document.createElementNS(i,"g"),r=t.cloneNode(!0);r.setAttribute("class","a9s-inner");var o=t.cloneNode(!0);return o.setAttribute("class","a9s-outer"),n.appendChild(o),n.appendChild(r),n},k=function(e,t){var n=e.querySelector(".a9s-inner").cloneNode(!0);n.removeAttribute("class"),n.removeAttribute("xmlns");var r=n.outerHTML||(new XMLSerializer).serializeToString(n);return r=r.replace(' xmlns="'.concat(i,'"'),""),{source:null==t?void 0:t.src,selector:{type:"SvgSelector",value:"<svg>".concat(r,"</svg>")}}},D=function(e){var t=function(e){var t,n=[],r=[],o=S(e.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map((function(e){return e.trim()})));try{for(o.s();!(t=o.n()).done;){var i=t.value,a=i.substring(0,1);if("z"===a.toLowerCase())n.push(g(r)),r=[];else{var u=i.substring(1).split(" ").map((function(e){return parseFloat(e.trim())})),s=a===a.toUpperCase(),l=s?u[0]:u[0]+r[r.length-1][0],c=s?u[1]:u[1]+r[r.length-1][1];r.push([l,c])}}}catch(e){o.e(e)}finally{o.f()}return r.length>0&&n.push(g(r)),n}(e);if(1==t.length)return _(t[0]);var n,r=function(e){return t.find((function(t){if(e!==t)return function(e,t){var n,r=S(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!E(o,t))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(e,t)}))},o=0,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;r(a)?o-=_(a):o+=_(a)}}catch(e){i.e(e)}finally{i.f()}return o},T={FragmentSelector:h,SvgSelector:j},M={FragmentSelector:function(e,t){var n=c(e,t);return n.w*n.h},SvgSelector:function(e){var t,n,r,o=C(e),i=o.nodeName.toLowerCase();if("polygon"===i)return t=o.getAttribute("points").trim().split(" ").map((function(e){return e.split(",").map((function(e){return parseFloat(e.trim())}))})),_(t);if("circle"===i)return(n=o.getAttribute("r"))*n*Math.PI;if("ellipse"===i)return(r=o).getAttribute("rx")*r.getAttribute("ry")*Math.PI;if("path"==i)return D(o);if("line"==i)return 0;throw"Unsupported SVG shape type: ".concat(i)}},R=function(e){var t=e.targets[0];if(t)return Array.isArray(t.selector)?t.selector[0]:t.selector},N=function(e,t){return M[R(e).type](e,t)},I=new Uint8Array(16);function L(){if(!x&&!(x="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x(I)}const U=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var F=[],V=0;V<256;++V)F.push((V+256).toString(16).substr(1));const H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&U.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},B=function(e,t,n){var r=(e=e||{}).random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return H(r)};var z=n(3094),W=n.n(z);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function q(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$(t)?t:String(t)}var J=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),q(this,"clone",(function(t,n){return new e(Y(Y({},r.underlying),t),Y(Y({},r.opts),n))})),q(this,"selector",(function(e){var t=r.underlying.target;if(t.selector)return(Array.isArray(t.selector)?t.selector:[t.selector]).find((function(t){return t.type===e}))})),this.underlying=t,this.opts=n}var t,n;return t=e,(n=[{key:"isEqual",value:function(e){return"Annotation"===(null==e?void 0:e.type)&&(this.underlying===e.underlying||!(!this.underlying.id||!e.underlying.id)&&W()(this.underlying,e.underlying))}},{key:"readOnly",get:function(){var e;return null===(e=this.opts)||void 0===e?void 0:e.readOnly}},{key:"id",get:function(){return this.underlying.id}},{key:"context",get:function(){return this.underlying["@context"]}},{key:"type",get:function(){return this.underlying.type}},{key:"motivation",get:function(){return this.underlying.motivation}},{key:"body",get:function(){return this.underlying.body}},{key:"target",get:function(){return this.underlying.target}},{key:"bodies",get:function(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]},set:function(e){this.underlying.body=e}},{key:"targets",get:function(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}},{key:"quote",get:function(){var e;return null===(e=this.selector("TextQuoteSelector"))||void 0===e?void 0:e.exact}},{key:"start",get:function(){var e;return null===(e=this.selector("TextPositionSelector"))||void 0===e?void 0:e.start}},{key:"end",get:function(){var e;return null===(e=this.selector("TextPositionSelector"))||void 0===e?void 0:e.end}}])&&X(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,re(r.key),r)}}function ne(e,t,n){return(t=re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){var t=function(e,t){if("object"!==K(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===K(t)?t:String(t)}q(J,"create",(function(e){var t={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Annotation",id:"#".concat(B()),body:[]};return new J(Y(Y({},t),e))}));var oe=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ne(this,"clone",(function(t){var n=new e;return n.underlying=JSON.parse(JSON.stringify(r.underlying)),t&&(n.underlying=ee(ee({},n.underlying),t)),n})),ne(this,"selector",(function(e){var t=r.underlying.target;if(t.selector)return(Array.isArray(t.selector)?t.selector:[t.selector]).find((function(t){return t.type===e}))})),ne(this,"toAnnotation",(function(){var e=Object.assign({},r.underlying,{type:"Annotation",id:"#".concat(B())});return new J(e)})),this.underlying={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Selection",body:n||[],target:t}}var t,n;return t=e,(n=[{key:"context",get:function(){return this.underlying["@context"]}},{key:"type",get:function(){return this.underlying.type}},{key:"body",get:function(){return this.underlying.body}},{key:"target",get:function(){return this.underlying.target}},{key:"targets",get:function(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}},{key:"isEqual",value:function(e){return!!e&&W()(this.underlying,e.underlying)}},{key:"bodies",get:function(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}},{key:"quote",get:function(){var e;return null===(e=this.selector("TextQuoteSelector"))||void 0===e?void 0:e.exact}},{key:"isSelection",get:function(){return!0}}])&&te(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ie(e){return ie="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},ie(e)}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,se(r.key),r)}}function ue(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){var t=function(e,t){if("object"!==ie(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ie(t)?t:String(t)}var le=function(){function e(t,n,r,o,a){var u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ue(this,"dragTo",(function(e,t){u.group.style.display=null,u.opposite=[e,t];var n=u.bbox,r=n.x,o=n.y,i=n.w,a=n.h;m(u.mask,u.env.image,r,o,i,a),v(u.rect,r,o,i,a)})),ue(this,"getBoundingClientRect",(function(){return u.rect.getBoundingClientRect()})),ue(this,"toSelection",(function(){var e=u.bbox,t=e.x,n=e.y,r=e.w,o=e.h;return new oe(f(t,n,r,o,u.env.image,u.config.fragmentUnit))})),ue(this,"destroy",(function(){u.group.parentNode.removeChild(u.group),u.mask=null,u.rect=null,u.group=null})),this.anchor=[t,n],this.opposite=[t,n],this.config=o,this.env=a,this.group=document.createElementNS(i,"g"),this.mask=y(a.image,t,n,2,2),this.mask.setAttribute("class","a9s-selection-mask"),this.rect=h(t,n,2,2),this.rect.setAttribute("class","a9s-selection"),this.group.style.pointerEvents="none",this.group.style.display="none",this.group.appendChild(this.mask),this.group.appendChild(this.rect),r.appendChild(this.group)}var t,n;return t=e,n=[{key:"bbox",get:function(){var e=this.opposite[0]-this.anchor[0],t=this.opposite[1]-this.anchor[1];return{x:e>0?this.anchor[0]:this.opposite[0],y:t>0?this.anchor[1]:this.opposite[1],w:Math.max(1,Math.abs(e)),h:Math.max(1,Math.abs(t))}}},{key:"element",get:function(){return this.rect}}],n&&ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ce={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},fe=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0};function pe(e){return pe="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},pe(e)}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function me(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}function ve(e){var t=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}}();return function(){var n,r=Se(e);if(t){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ge(e)}(this,n)}}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function we(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){var t=function(e,t){if("object"!==pe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pe(t)?t:String(t)}var _e="An implementation is missing",Ee=fe(),Ae=function(e){he(n,e);var t=ve(n);function n(e,r,o){var a;de(this,n),we(ge(a=t.call(this)),"enableResponsive",(function(){window.ResizeObserver&&(a.resizeObserver=new ResizeObserver((function(){var e=a.svg.getBoundingClientRect(),t=a.svg.viewBox.baseVal,n=t.width,r=t.height;a.scale=Math.max(n/e.width,r/e.height),a.onScaleChanged&&a.onScaleChanged(a.scale)})),a.resizeObserver.observe(a.svg.parentNode))})),we(ge(a),"getSVGPoint",(function(e){var t=a.svg.createSVGPoint();if(Ee){var n=a.svg.getBoundingClientRect(),r=e.clientX-n.x,o=e.clientY-n.y,i=a.svg.getBoundingClientRect(),u=i.left,s=i.top;return t.x=r+u,t.y=o+s,t.matrixTransform(a.g.getScreenCTM().inverse())}return t.x=e.offsetX,t.y=e.offsetY,t.matrixTransform(a.g.getCTM().inverse())})),we(ge(a),"drawHandle",(function(e,t){var n=document.createElementNS(i,"g");n.setAttribute("class","a9s-handle");var r=document.createElementNS(i,"g"),o=function(n){var r=document.createElementNS(i,"circle");return r.setAttribute("cx",e),r.setAttribute("cy",t),r.setAttribute("r",n),r.setAttribute("transform-origin","".concat(e," ").concat(t)),r},u=a.config.handleRadius||6,s=o(u);s.setAttribute("class","a9s-handle-inner");var l=o(u+1);return l.setAttribute("class","a9s-handle-outer"),r.appendChild(l),r.appendChild(s),n.appendChild(r),n})),we(ge(a),"setHandleXY",(function(e,t,n){var r=e.querySelector(".a9s-handle-inner");r.setAttribute("cx",t),r.setAttribute("cy",n),r.setAttribute("transform-origin","".concat(t," ").concat(n));var o=e.querySelector(".a9s-handle-outer");o.setAttribute("cx",t),o.setAttribute("cy",n),o.setAttribute("transform-origin","".concat(t," ").concat(n))})),we(ge(a),"getHandleXY",(function(e){var t=e.querySelector(".a9s-handle-outer");return{x:parseFloat(t.getAttribute("cx")),y:parseFloat(t.getAttribute("cy"))}})),we(ge(a),"scaleHandle",(function(e){var t=e.querySelector(".a9s-handle-inner"),n=e.querySelector(".a9s-handle-outer"),r=a.scale*(a.config.handleRadius||6);t.setAttribute("r",r),n.setAttribute("r",r)})),a.svg=e.closest("svg"),a.g=e,a.config=r,a.env=o,a.scale=1;var u=o.image;return(u instanceof Element||u instanceof HTMLDocument)&&a.enableResponsive(),a}return me(n,[{key:"destroy",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=null}}]),n}(o()),xe=function(e){he(n,e);var t=ve(n);function n(e,r,o){var i;return de(this,n),we(ge(i=t.call(this,e,r,o)),"_eventTarget",void 0),we(ge(i),"attachListeners",(function(e){var t=e.mouseMove,n=e.mouseUp,r=e.mouseDown,o=e.dblClick;t&&(i.mouseMove=function(e){var n=i.getSVGPoint(e),r=n.x,o=n.y;i.started||(i.emit("startSelection",{x:r,y:o}),i.started=!0),t(r,o,e)},i.svg.addEventListener("mousemove",i.mouseMove)),n&&(i.mouseUp=function(e){if(0===e.button){var t=i.getSVGPoint(e),r=t.x,o=t.y;n(r,o,e)}},i._eventTarget.addEventListener("mouseup",i.mouseUp)),r&&(i.mouseDown=function(e){if(0===e.button){var t=i.getSVGPoint(e),n=t.x,o=t.y;r(n,o,e)}},i._eventTarget.addEventListener("mousedown",i.mouseDown)),o&&(i.dblClick=function(e){var t=i.getSVGPoint(e),n=t.x,r=t.y;o(n,r,e)},i._eventTarget.addEventListener("dblclick",i.dblClick))})),we(ge(i),"detachListeners",(function(){i.mouseMove&&i.svg.removeEventListener("mousemove",i.mouseMove),i.mouseUp&&i._eventTarget.removeEventListener("mouseup",i.mouseUp),i.mouseDown&&i._eventTarget.removeEventListener("mousedown",i.mouseDown),i.dblClick&&i._eventTarget.removeEventListener("dblclick",i.dblClick)})),we(ge(i),"start",(function(e,t){var n=i.getSVGPoint(e),r=n.x,o=n.y,a=i.env.image,u=a.naturalWidth,s=a.naturalHeight,l=r<0?0:r>u?u:r,c=o<0?0:o>s?s:o;i.startDrawing(l,c,t,e)})),we(ge(i),"startDrawing",(function(e){throw new Error(_e)})),we(ge(i),"createEditableShape",(function(e,t){throw new Error(_e)})),i.started=!1,i._eventTarget=!0===i.config.bindEventListenersInternally?i.svg:document,i}return me(n,[{key:"isDrawing",get:function(){throw new Error(_e)}}]),n}(Ae);function Pe(e){return Pe="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},Pe(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}function ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}function Te(e){var t=function(e,t){if("object"!==Pe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pe(t)?t:String(t)}xe.supports=function(e){throw new Error(_e)};var Me="An implementation is missing",Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=De(r);if(o){var n=De(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ke(e)}(this,e)});function a(e,t,n,r){var o,u,s,l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=ke(o=i.call(this,t,n,r)),l=function(e){throw new Error(Me)},(s=Te(s="updateState"))in u?Object.defineProperty(u,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[s]=l,o.annotation=e,o}return t=a,(n=[{key:"element",get:function(){throw new Error(Me)}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Ae);function Ne(e){return function(e){if(Array.isArray(e))return Ie(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){if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(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 Ie(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}var Le=/firefox/i.test(navigator.userAgent),Ue=function(e,t,n,r,o){e.setAttribute("width",r),e.setAttribute("height",o),Le?(e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("transform","translate(".concat(t,", ").concat(n,")"))):(e.setAttribute("x",t),e.setAttribute("y",n))},Fe=function(e,t,n){if(!n)return e;var r=n.reduce((function(e,n){var r=n(t);if(!r)return e;if("string"==typeof r||r instanceof String)e.className=e.className?"".concat(e.className," ").concat(r):r;else if(r.nodeType===Node.ELEMENT_NODE)e.elements=e.elements?[].concat(Ne(e.elements),[r]):[r];else{var o=r.className,i=r.style,a=r.shapeStyle,u=r.element;o&&(e.className=e.className?"".concat(e.className," ").concat(o):o),i&&(e.style=e.style?"".concat(e.style," ").concat(i):i),a&&(e.shapeStyle=e.shapeStyle?"".concat(e.shapeStyle," ").concat(a):a),u&&(e.elements=e.elements?[].concat(Ne(e.elements),[u]):[u])}for(var s in r)r.hasOwnProperty(s)&&s.startsWith("data-")&&(e[s]=r[s]);return e}),{}),o=r.className,a=r.style,s=r.shapeStyle,l=r.elements;if(o&&u(e,o),a){var c=e.querySelector(".a9s-outer"),f=e.querySelector(".a9s-inner");c&&f?(c.setAttribute("style","display:none"),f.setAttribute("style",a)):e.setAttribute("style",a)}for(var p in s&&e.setAttribute("style",s),l&&l.forEach((function(t){return function(e,t){var n=(t.querySelector(".a9s-inner")||t).getBBox(),r=n.x,o=n.y,a=n.width,u=n.height,s=document.createElementNS(i,"svg");s.setAttribute("class","a9s-formatter-el"),Ue(s,r,o,a,u);var l=document.createElementNS(i,"g");l.appendChild(e),s.appendChild(l),t.append(s)}(t,e)})),r)r.hasOwnProperty(p)&&p.startsWith("data-")&&e.setAttribute(p,r[p])},Ve=function(e,t,n,r,o){var i=e.querySelector(".a9s-formatter-el");i&&Ue(i,t,n,r,o)};function He(e){return He="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},He(e)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(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 We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ze(r.key),r)}}function $e(){return $e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xe(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},$e.apply(this,arguments)}function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function qe(e,t,n){return(t=Ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){var t=function(e,t){if("object"!==He(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===He(t)?t:String(t)}var Je="corner",Ke="edge",Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}(u,e);var t,n,r,o,a=(r=u,o=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}}(),function(){var e,t=Xe(r);if(o){var n=Xe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ye(e)}(this,e)});function u(e,t,n,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),qe(Ye(o=a.call(this,e,t,n,r)),"onScaleChanged",(function(){return o.handles.map(o.scaleHandle)})),qe(Ye(o),"setSize",(function(e,t,n,r){v(o.rectangle,e,t,n,r),m(o.mask,o.env.image,e,t,n,r),Ve(o.elementGroup,e,t,n,r);var i=Be(o.handles,8),a=i[0],u=i[1],s=i[2],l=i[3],c=i[4],f=i[5],p=i[6],d=i[7];o.setHandleXY(a,e,t),o.setHandleXY(u,e+n,t),o.setHandleXY(s,e+n,t+r),o.setHandleXY(l,e,t+r),o.enableEdgeControls&&(o.setHandleXY(c,e+n/2,t),o.setHandleXY(f,e+n,t+r/2),o.setHandleXY(p,e+n/2,t+r),o.setHandleXY(d,e,t+r/2))})),qe(Ye(o),"stretchCorners",(function(e,t,n){var r=o.getHandleXY(t),i=n.x-r.x,a=n.y-r.y,u=i>0?r.x:n.x,s=a>0?r.y:n.y,l=Math.abs(i),c=Math.abs(a);return o.setSize(u,s,l,c),{x:u,y:s,w:l,h:c}})),qe(Ye(o),"stretchEdge",(function(e,t,n){var r=o.getHandleXY(t),i=b(o.rectangle),a=e%2==0,u=a?i.w:n.x-r.x,s=a?n.y-r.y:i.h,l=a?i.x:u>0?r.x:n.x,c=a?s>0?r.y:n.y:i.y,f=Math.abs(u),p=Math.abs(s);return o.setSize(l,c,f,p),{x:l,y:c,w:f,h:p}})),qe(Ye(o),"onGrab",(function(e,t){return function(n){if(0===n.button){o.grabbedElem=e,o.grabbedType=t;var r=o.getSVGPoint(n),i=b(o.rectangle),a=i.x,u=i.y;o.mouseOffset={x:r.x-a,y:r.y-u}}}})),qe(Ye(o),"onMouseMove",(function(e){if(0===e.button){var t=function(e,t){return e<0?0:e>t?t:e},n=o.env.image,r=n.naturalWidth,i=n.naturalHeight;if(o.grabbedElem){var a=o.getSVGPoint(e);if(o.grabbedElem===o.rectangle){var u=b(o.rectangle),s=u.w,l=u.h,c=t(a.x-o.mouseOffset.x,r-s),p=t(a.y-o.mouseOffset.y,i-l);o.setSize(c,p,s,l),o.emit("update",f(c,p,s,l,o.env.image,o.config.fragmentUnit))}else{var d=o.handles.indexOf(o.grabbedElem),y=o.handles[2^d],m={x:Math.min(Math.max(a.x,0),r),y:Math.min(Math.max(a.y,0),i)},h=o.grabbedType===Je?o.stretchCorners(d,y,m):o.stretchEdge(d,y,m),v=h.x,g=h.y,S=h.w,w=h.h;o.emit("update",f(v,g,S,w,o.env.image,o.config.fragmentUnit))}}}})),qe(Ye(o),"onMouseUp",(function(e){o.grabbedElem=null,o.grabbedType=null,o.mouseOffset=null})),qe(Ye(o),"updateState",(function(e){var t=c(e,o.env.image),n=t.x,r=t.y,i=t.w,a=t.h;o.setSize(n,r,i,a)})),qe(Ye(o),"detachListeners",(function(){o.svg.removeEventListener("mousemove",o.onMouseMove),o.svg.removeEventListener("mouseup",o.onMouseUp)})),o.svg.addEventListener("mousemove",o.onMouseMove),o.svg.addEventListener("mouseup",o.onMouseUp);var s=c(e,r.image),l=s.x,p=s.y,d=s.w,g=s.h;o.containerGroup=document.createElementNS(i,"g"),o.mask=y(r.image,l,p,d,g),o.mask.setAttribute("class","a9s-selection-mask"),o.containerGroup.appendChild(o.mask),o.elementGroup=document.createElementNS(i,"g"),o.elementGroup.setAttribute("class","a9s-annotation editable selected"),o.elementGroup.setAttribute("data-id",e.id),o.rectangle=h(l,p,d,g),o.rectangle.querySelector(".a9s-inner").addEventListener("mousedown",o.onGrab(o.rectangle)),o.elementGroup.appendChild(o.rectangle),o.enableEdgeControls=n.enableEdgeControls;var S=o.enableEdgeControls?[[l+d/2,p,Ke],[l+d,p+g/2,Ke],[l+d/2,p+g,Ke],[l,p+g/2,Ke]]:[];return o.handles=[[l,p,Je],[l+d,p,Je],[l+d,p+g,Je],[l,p+g,Je]].concat(S).map((function(e){var t=Be(e,3),n=t[0],r=t[1],i=t[2],a=o.drawHandle(n,r);return a.addEventListener("mousedown",o.onGrab(a,i)),o.elementGroup.appendChild(a),a})),o.containerGroup.appendChild(o.elementGroup),t.appendChild(o.containerGroup),Fe(o.elementGroup,e,n.formatters),o.grabbedElem=null,o.grabbedType=null,o.mouseOffset=null,o}return t=u,(n=[{key:"element",get:function(){return this.elementGroup}},{key:"destroy",value:function(){this.detachListeners(),this.containerGroup.parentNode.removeChild(this.containerGroup),$e(Xe(u.prototype),"destroy",this).call(this)}}])&&We(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(Re);function et(e){return et="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},et(e)}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,st(r.key),r)}}function ot(e,t){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ot(e,t)}function it(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function ut(e,t,n){return(t=st(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(e){var t=function(e,t){if("object"!==et(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===et(t)?t:String(t)}var lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=at(r);if(o){var n=at(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}(this,e)});function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ut(it(r=i.call(this,e,t,n)),"startDrawing",(function(e,t,n){r._startOnSingleClick=n,r.attachListeners({mouseMove:r.onMouseMove,mouseUp:r.onMouseUp}),r.rubberband=new le(e,t,r.g,r.config,r.env)})),ut(it(r),"stop",(function(){r.detachListeners(),r.rubberband&&(r.rubberband.destroy(),r.rubberband=null)})),ut(it(r),"onMouseMove",(function(e,t){var n=r.env.image,o=n.naturalWidth,i=n.naturalHeight,a=Math.min(Math.max(e,0),o),u=Math.min(Math.max(t,0),i);r.rubberband.dragTo(a,u)})),ut(it(r),"onMouseUp",(function(){r.started=!1;var e=r.rubberband.getBoundingClientRect(),t=e.width,n=e.height,o=r.config.minSelectionWidth||4,i=r.config.minSelectionHeight||4;if(t>=o&&n>=i){var a=r.rubberband.element;a.annotation=r.rubberband.toSelection(),r.emit("complete",a),r.stop()}else r._startOnSingleClick||(r.emit("cancel"),r.stop())})),ut(it(r),"createEditableShape",(function(e,t){return new Qe(e,r.g,nt(nt({},r.config),{},{formatters:t}),r.env)})),r.rubberband=null,r._startOnSingleClick=!1,r}return t=a,(n=[{key:"isDrawing",get:function(){return null!=this.rubberband}}])&&rt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(xe);function ct(e){return ct="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},ct(e)}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dt(r.key),r)}}function pt(e,t,n){return(t=dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dt(e){var t=function(e,t){if("object"!==ct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ct(t)?t:String(t)}lt.identifier="rect",lt.supports=function(e){var t=e.selector("FragmentSelector");return null==t?void 0:t.conformsTo.startsWith("http://www.w3.org/TR/media-frags")};var yt=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pt(this,"redraw",(function(){r.mask.setAttribute("d","M0 0 h".concat(r.w," v").concat(r.h," h-").concat(r.w," z M").concat(r.polygon.getAttribute("points")," z"))})),pt(this,"destroy",(function(){return r.mask.parentNode.removeChild(r.mask)})),this.w=t.naturalWidth,this.h=t.naturalHeight,this.polygon=n,this.mask=document.createElementNS(i,"path"),this.mask.setAttribute("fill-rule","evenodd"),this.mask.setAttribute("class","a9s-selection-mask"),this.mask.setAttribute("d","M0 0 h".concat(this.w," v").concat(this.h," h-").concat(this.w," z M").concat(this.polygon.getAttribute("points")," z"))}var t,n;return t=e,(n=[{key:"element",get:function(){return this.mask}}])&&ft(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mt(e){return mt="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},mt(e)}function ht(e){return function(e){if(Array.isArray(e))return vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bt(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 bt(e,t){if(e){if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}function vt(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 gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wt(r.key),r)}}function St(e,t,n){return(t=wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e){var t=function(e,t){if("object"!==mt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mt(t)?t:String(t)}var Ot=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),St(this,"setPoints",(function(e){var t=e.map((function(e){return"".concat(e[0],",").concat(e[1])})).join(" ");o.outer.setAttribute("points",t),o.inner.setAttribute("points",t)})),St(this,"getBoundingClientRect",(function(){return o.outer.getBoundingClientRect()})),St(this,"dragTo",(function(e){o.group.style.display=null,o.mousepos=e;var t=[].concat(ht(o.points),[e]);o.setPoints(t),o.mask.redraw()})),St(this,"addPoint",(function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||bt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.mousepos,2),t=e[0],n=e[1],r=o.points[o.points.length-1];Math.pow(t-r[0],2)+Math.pow(n-r[1],2)>4&&(o.points=[].concat(ht(o.points),[o.mousepos]),o.setPoints(o.points),o.mask.redraw())})),St(this,"destroy",(function(){o.group.parentNode.removeChild(o.group),o.polygon=null,o.group=null})),St(this,"toSelection",(function(){return new oe(k(o.group,o.env.image))})),this.points=[t],this.env=r,this.mousepos=t,this.group=document.createElementNS(i,"g"),this.polygon=document.createElementNS(i,"g"),this.polygon.setAttribute("class","a9s-selection"),this.outer=document.createElementNS(i,"polygon"),this.outer.setAttribute("class","a9s-outer"),this.inner=document.createElementNS(i,"polygon"),this.inner.setAttribute("class","a9s-inner"),this.setPoints(this.points),this.mask=new yt(r.image,this.inner),this.polygon.appendChild(this.outer),this.polygon.appendChild(this.inner),this.group.style.display="none",this.group.appendChild(this.mask.element),this.group.appendChild(this.polygon),n.appendChild(this.group)}var t,n;return t=e,(n=[{key:"element",get:function(){return this.polygon}}])&>(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _t(e){return _t="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},_t(e)}function Et(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 At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dt(r.key),r)}}function xt(e,t){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xt(e,t)}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ct(){return Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jt(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ct.apply(this,arguments)}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}function kt(e,t,n){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e){var t=function(e,t){if("object"!==_t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_t(t)?t:String(t)}var Tt=function(e){for(var t=e.querySelector(".a9s-inner").points,n=[],r=0;r<t.numberOfItems;r++)n.push(t.getItem(r));return n},Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xt(e,t)}(u,e);var t,n,r,o,a=(r=u,o=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}}(),function(){var e,t=jt(r);if(o){var n=jt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}(this,e)});function u(e,t,n,r){var o,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),kt(Pt(s=a.call(this,e,t,n,r)),"onScaleChanged",(function(){return s.handles.map(s.scaleHandle)})),kt(Pt(s),"setPoints",(function(e){var t=function(e){return Math.round(10*e)/10},n=e.map((function(e){return"".concat(t(e.x),",").concat(t(e.y))})).join(" "),r=s.shape.querySelector(".a9s-inner");r.setAttribute("points",n),s.shape.querySelector(".a9s-outer").setAttribute("points",n),s.mask.redraw();var o=r.getBBox(),i=o.x,a=o.y,u=o.width,l=o.height;Ve(s.elementGroup,i,a,u,l)})),kt(Pt(s),"onGrab",(function(e){return function(t){0===t.button&&(s.grabbedElem=e,s.grabbedAt=s.getSVGPoint(t))}})),kt(Pt(s),"onMouseMove",(function(e){var t=function(e,t,n){return e+t<0?-e:e+t>n?n-e:t};if(s.grabbedElem){var n=s.getSVGPoint(e),r=s.env.image,o=r.naturalWidth,i=r.naturalHeight;if(s.grabbedElem===s.shape){var a=s.shape.querySelector(".a9s-inner").getBBox(),u=a.x,l=a.y,c=a.width,f=a.height,p=t(u,n.x-s.grabbedAt.x,o-c),d=t(l,n.y-s.grabbedAt.y,i-f),y=Tt(s.shape).map((function(e){return{x:e.x+p,y:e.y+d}}));s.grabbedAt=n,s.setPoints(y),y.forEach((function(e,t){return s.setHandleXY(s.handles[t],e.x,e.y)})),s.emit("update",k(s.shape,s.env.image))}else{var m=s.handles.indexOf(s.grabbedElem),h={x:Math.min(Math.max(n.x,0),o),y:Math.min(Math.max(n.y,0),i)},b=Tt(s.shape).map((function(e,t){return t===m?h:e}));s.setPoints(b),s.setHandleXY(s.handles[m],h.x,h.y),s.emit("update",k(s.shape,s.env.image))}}})),kt(Pt(s),"onMouseUp",(function(e){s.grabbedElem=null,s.grabbedAt=null})),kt(Pt(s),"updateState",(function(e){var t=C(e).getAttribute("points").split(" ").map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(",").map((function(e){return parseFloat(e.trim())})),2);return{x:t[0],y:t[1]}}));s.setPoints(t),t.forEach((function(e,t){return s.setHandleXY(s.handles[t],e.x,e.y)}))})),kt(Pt(s),"detachListeners",(function(){s.svg.removeEventListener("mousemove",s.onMouseMove),s.svg.removeEventListener("mouseup",s.onMouseUp)})),kt(Pt(s),"destroy",(function(){s.detachListeners(),s.containerGroup.parentNode.removeChild(s.containerGroup),Ct((o=Pt(s),jt(u.prototype)),"destroy",o).call(o)})),s.svg.addEventListener("mousemove",s.onMouseMove),s.svg.addEventListener("mouseup",s.onMouseUp),s.containerGroup=document.createElementNS(i,"g"),s.shape=j(e),s.shape.querySelector(".a9s-inner").addEventListener("mousedown",s.onGrab(s.shape)),s.mask=new yt(r.image,s.shape.querySelector(".a9s-inner")),s.containerGroup.appendChild(s.mask.element),s.elementGroup=document.createElementNS(i,"g"),s.elementGroup.setAttribute("class","a9s-annotation editable selected"),s.elementGroup.setAttribute("data-id",e.id),s.elementGroup.appendChild(s.shape),s.handles=Tt(s.shape).map((function(e){var t=s.drawHandle(e.x,e.y);return t.addEventListener("mousedown",s.onGrab(t)),s.elementGroup.appendChild(t),t})),s.containerGroup.appendChild(s.elementGroup),t.appendChild(s.containerGroup),Fe(s.elementGroup,e,n.formatters),s.grabbedElem=null,s.grabbedAt=null,s}return t=u,(n=[{key:"element",get:function(){return this.elementGroup}}])&&At(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(Re);function Rt(e){return Rt="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},Rt(e)}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bt(r.key),r)}}function Ut(e,t){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ut(e,t)}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vt(e)}function Ht(e,t,n){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){var t=function(e,t){if("object"!==Rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Rt(t)?t:String(t)}var zt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=Vt(r);if(o){var n=Vt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ft(e)}(this,e)});function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ht(Ft(r=i.call(this,e,t,n)),"startDrawing",(function(e,t,n){var o;r._isDrawing=!0,r._startOnSingleClick=n,r.attachListeners((Ht(o={mouseMove:r.onMouseMove},r.config.addPolygonPointOnMouseDown&&n?"mouseDown":"mouseUp",r.onMouseUpDown),Ht(o,"dblClick",r.onDblClick),o)),r.rubberband=new Ot([e,t],r.g,r.env)})),Ht(Ft(r),"stop",(function(){r.detachListeners(),r._isDrawing=!1,r.rubberband&&(r.rubberband.destroy(),r.rubberband=null)})),Ht(Ft(r),"onMouseMove",(function(e,t){var n=r.env.image,o=n.naturalWidth,i=n.naturalHeight,a=Math.min(Math.max(e,0),o),u=Math.min(Math.max(t,0),i);r.rubberband.dragTo([a,u])})),Ht(Ft(r),"onMouseUp",(function(){var e=r.rubberband.getBoundingClientRect(),t=e.width,n=e.height,o=r.config.minSelectionWidth||4,i=r.config.minSelectionHeight||4;t>=o||n>=i?r.rubberband.addPoint():r._startOnSingleClick||(r.emit("cancel"),r.stop())})),Ht(Ft(r),"onMouseUpDown",(function(){r.onMouseUp()})),Ht(Ft(r),"onDblClick",(function(){if(!(r.rubberband.points.length<(r.config.minPolygonPoints||0))){r._isDrawing=!1;var e=r.rubberband.element;e.annotation=r.rubberband.toSelection(),r.emit("complete",e),r.stop()}})),Ht(Ft(r),"createEditableShape",(function(e,t){return new Mt(e,r.g,It(It({},r.config),{},{formatters:t}),r.env)})),r._isDrawing=!1,r._startOnSingleClick=!1,r}return t=a,(n=[{key:"isDrawing",get:function(){return this._isDrawing}}])&&Lt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(xe);function Wt(e){return Wt="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},Wt(e)}function $t(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 Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jt(r.key),r)}}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yt(e,t)}function Xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}function Zt(e,t,n){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e){var t=function(e,t){if("object"!==Wt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Wt(t)?t:String(t)}zt.identifier="polygon",zt.supports=function(e){var t,n=e.selector("SvgSelector");if(n)return null===(t=n.value)||void 0===t?void 0:t.match(/^<svg.*<polygon/g)};var Kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=qt(r);if(o){var n=qt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xt(e)}(this,e)});function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Zt(Xt(r=i.call(this)),"listTools",(function(){return r._registered.map((function(e){return e.identifier}))})),Zt(Xt(r),"registerTool",(function(e){var t=e.identifier;r.listTools().includes(t)&&r.unregisterTool(t),r._registered.unshift(e)})),Zt(Xt(r),"unregisterTool",(function(e){return r._registered=r._registered.filter((function(t){return t.identifier!==e}))})),Zt(Xt(r),"setCurrent",(function(e){r._current&&r._current.destroy();var t="string"==typeof e||e instanceof String?r._registered.find((function(t){return t.identifier===e})):e;r._current=new t(r._g,r._config,r._env),r._current.on("startSelection",(function(e){return r.emit("startSelection",e)})),r._current.on("complete",(function(e){return r.emit("complete",e)})),r._current.on("cancel",(function(e){return r.emit("cancel",e)}))})),Zt(Xt(r),"forAnnotation",(function(e){var t,n,o=function(e){if(Array.isArray(e))return e}(n=e.targets)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=(o.slice(1),null===(t=i.renderedVia)||void 0===t?void 0:t.name),u=a?r._registered.find((function(e){return e.identifier===a})):r._registered.find((function(t){return t.supports(e)}));return u?new u(r._g,r._config,r._env):null})),r._g=e,r._config=t,r._env=n,r._registered=[lt,zt],r.setCurrent(lt),r}return t=a,(n=[{key:"current",get:function(){return this._current}}])&&Gt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o());function Qt(e){return Qt="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},Qt(e)}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Qt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Qt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Qt(o)?o:String(o)),r)}var o}function tn(e,t,n){return t&&en(e.prototype,t),n&&en(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var nn=tn((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.svg=t.closest("svg"),this.g=document.createElementNS(i,"g"),this.g.setAttribute("class","a9s-crosshair");var a=document.createElementNS(i,"line"),u=document.createElementNS(i,"line");this.g.appendChild(a),this.g.appendChild(u),t.appendChild(this.g),this.svg.parentElement.addEventListener("pointermove",(function(e){var i=function(e){var n=o.svg.getBoundingClientRect(),r=e.clientX-n.x,i=e.clientY-n.y,a=o.svg.createSVGPoint(),u=o.svg.getBoundingClientRect(),s=u.left,l=u.top;return a.x=r+s,a.y=i+l,a.matrixTransform(t.getScreenCTM().inverse())}(e),s=i.x,l=i.y;a.setAttribute("x1",0),a.setAttribute("y1",l),a.setAttribute("x2",n),a.setAttribute("y2",l),u.setAttribute("x1",s),u.setAttribute("y1",0),u.setAttribute("x2",s),u.setAttribute("y2",r)}))})),rn=function(e,t){var n=(s(t,".a9s-annotation")?t:t.closest(".a9s-annotation")).querySelector(".a9s-outer"),r=e.naturalWidth/e.width,o=e.naturalHeight/e.height,i=e.getBoundingClientRect(),a=n.getBoundingClientRect(),u=a.x-i.x,l=a.y-i.y,c=a.width,f=a.height,p=document.createElement("CANVAS"),d=p.getContext("2d");return p.width=c*r,p.height=f*o,d.drawImage(e,u*r,l*o,c*r,f*o,0,0,c*r,f*o),{snippet:p,transform:function(e){return[u*r+e[0],l*o+e[1]]}}};function on(e){return on="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},on(e)}function an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}function un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sn(e)}function ln(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e){var t=function(e,t){if("object"!==on(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===on(t)?t:String(t)}var fn=fe(),pn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(l,e);var t,n,r,o=(n=l,r=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}}(),function(){var e,t=sn(n);if(r){var o=sn(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===on(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return un(e)}(this,e)});function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),ln(un(t=o.call(this)),"_attachMouseListeners",(function(e,n){e.addEventListener("mouseenter",(function(){var r,o;null!==(r=t.tools)&&void 0!==r&&null!==(o=r.current)&&void 0!==o&&o.isDrawing||(t.currentHover!==e&&t.emit("mouseEnterAnnotation",n,e),t.currentHover=e)})),e.addEventListener("mouseleave",(function(){var r,o;null!==(r=t.tools)&&void 0!==r&&null!==(o=r.current)&&void 0!==o&&o.isDrawing||(t.emit("mouseLeaveAnnotation",n,e),t.currentHover=null)})),fn&&(e.addEventListener("touchstart",(function(n){n.stopPropagation(),t.currentHover=e})),e.addEventListener("touchend",(function(n){var r=n.changedTouches[0],o=r.clientX,i=r.clientY,a=document.elementFromPoint(o,i);n.stopPropagation(),e.contains(a)&&(t.currentHover=e,t.selectCurrentHover())})))})),ln(un(t),"_lazy",(function(e){t.imageEl.naturalWidth?e():t.imageEl.addEventListener("load",(function(){return e()}))})),ln(un(t),"_onMouseDown",(function(e){var n,r;0===e.button&&(t.readOnly||(t.allowDrawingWithSelection?t.selectedShape&&t.selectedShape.element===t.currentHover:t.selectedShape)||t.tools.current.isDrawing?null!==(n=t.tools)&&void 0!==n&&null!==(r=n.current)&&void 0!==r&&r.isDrawing||t.selectedShape===t.currentHover||t.selectCurrentHover():t.tools.current.start(e,t.drawOnSingleClick&&!t.currentHover))})),ln(un(t),"_refreshNonScalingAnnotations",(function(){var e=t.getCurrentScale();e!==1/0&&Array.from(t.svg.querySelectorAll(".a9s-non-scaling")).forEach((function(t){t.setAttribute("transform","scale(".concat(e,")"))}))})),ln(un(t),"_scaleFormatterElements",(function(e){var n=t.getCurrentScale();if(n!==1/0)if(e){var r=e.querySelector(".a9s-formatter-el");r&&r.firstChild.setAttribute("transform","scale(".concat(n,")"))}else Array.from(t.g.querySelectorAll(".a9s-formatter-el")).forEach((function(e){return e.firstChild.setAttribute("transform","scale(".concat(n,")"))}))})),ln(un(t),"addAnnotation",(function(e){var n=function(e,t){return T[R(e).type](e,t)}(e,t.imageEl);return u(n,"a9s-annotation"),n.setAttribute("data-id",e.id),n.annotation=e,t._attachMouseListeners(n,e),t.g.appendChild(n),Fe(n,e,t.formatters),t._scaleFormatterElements(n),n})),ln(un(t),"addDrawingTool",(function(e){var n;return null===(n=t.tools)||void 0===n?void 0:n.registerTool(e)})),ln(un(t),"addOrUpdateAnnotation",(function(e,n){t.selectedShape&&(t.selectedShape.annotation.isEqual(e)||t.selectedShape.annotation.isEqual(n))&&(t.deselect(),t.emit("select",{})),n&&t.removeAnnotation(n),t.removeAnnotation(e);var r=t.addAnnotation(e);s(r,"a9s-non-scaling")&&r.setAttribute("transform","scale(".concat(t.getCurrentScale(),")")),t.redraw()})),ln(un(t),"deselect",(function(e){if(t.selectedShape){var n;null===(n=t.tools)||void 0===n||n.current.stop();var r=t.selectedShape.annotation;t.selectedShape.destroy?(t.selectedShape.destroy(),t.selectedShape=null,r.isSelection||(t.addAnnotation(r),e||t.redraw())):(function(e,t){var n=a(e);n.delete("selected"),0===n.size?e.removeAttribute("class"):e.setAttribute("class",Array.from(n).join(" "))}(t.selectedShape),t.selectedShape=null)}})),ln(un(t),"destroy",(function(){t.deselect(),t.currentHover=null,t.svg.parentNode.removeChild(t.svg)})),ln(un(t),"findShape",(function(e){var n=null!=e&&e.id?e.id:e;return t.g.querySelector('.a9s-annotation[data-id="'.concat(n,'"]'))})),ln(un(t),"getAnnotations",(function(){return Array.from(t.g.querySelectorAll(".a9s-annotation")).map((function(e){return e.annotation}))})),ln(un(t),"getCurrentScale",(function(){var e=t.svg.getBoundingClientRect(),n=t.svg.viewBox.baseVal,r=n.width,o=n.height;return Math.max(r/e.width,o/e.height)})),ln(un(t),"getSelectedImageSnippet",(function(){if(t.selectedShape){var e=t.selectedShape.element||t.selectedShape;return rn(t.imageEl,e)}})),ln(un(t),"init",(function(e){t.deselect(),t.currentHover=null,Array.from(t.g.querySelectorAll(".a9s-annotation")).forEach((function(e){return t.g.removeChild(e)})),t._lazy((function(){e.sort((function(e,n){return N(n,t.imageEl)-N(e,t.imageEl)})),e.forEach(t.addAnnotation)})),t._refreshNonScalingAnnotations()})),ln(un(t),"listDrawingTools",(function(){var e;return null===(e=t.tools)||void 0===e?void 0:e.listTools()})),ln(un(t),"overrideId",(function(e,n){var r=t.findShape(e);r.setAttribute("data-id",n);var o=r.annotation.clone({id:n});return r.annotation=o,o})),ln(un(t),"redraw",(function(){var e=Array.from(t.g.querySelectorAll(".a9s-annotation:not(.selected)")),n=e.map((function(e){return e.annotation}));n.sort((function(e,n){return N(n,t.imageEl)-N(e,t.imageEl)})),e.forEach((function(e){return t.g.removeChild(e)})),n.forEach(t.addAnnotation)})),ln(un(t),"removeAnnotation",(function(e){var n,r=e.type?e.id:e;(null===(n=t.selectedShape)||void 0===n?void 0:n.annotation.id)===r&&t.deselect();var o,i,a=t.findShape(e);a&&((null===(o=t.selectedShape)||void 0===o?void 0:o.annotation)===a.annotation&&t.deselect(),(null===(i=t.currentHover)||void 0===i?void 0:i.annotation)===a.annotation&&(t.currentHover=null),a.parentNode.removeChild(a))})),ln(un(t),"removeDrawingTool",(function(e){var n;return null===(n=t.tools)||void 0===n?void 0:n.unregisterTool(e)})),ln(un(t),"selectAnnotation",(function(e,n){t.selectedShape&&t.deselect();var r=t.findShape(e);if(r){t.selectShape(r,n);var o=t.selectedShape.element?t.selectedShape.element:t.selectedShape;return{annotation:r.annotation,element:o}}t.deselect()})),ln(un(t),"selectCurrentHover",(function(){t.currentHover?t.disableSelect?t.emit("clickAnnotation",t.currentHover.annotation,t.currentHover):t.selectShape(t.currentHover):(t.deselect(),t.emit("select",{skipEvent:!0}))})),ln(un(t),"selectShape",(function(e,n){var r;if(n||e.annotation.isSelection||t.emit("clickAnnotation",e.annotation,e),(null===(r=t.selectedShape)||void 0===r?void 0:r.annotation)!==e.annotation){t.selectedShape&&t.selectedShape.annotation!==e.annotation&&t.deselect(!0);var o=e.annotation;if(t.readOnly||o.readOnly)u(e,"selected"),t.selectedShape=e,n||t.emit("select",{annotation:o,element:e,skipEvent:n});else{var i=t.tools.forAnnotation(o);i?(e.parentNode.removeChild(e),t.selectedShape=i.createEditableShape(o,t.formatters),t.selectedShape.element.annotation=o,t._scaleFormatterElements(t.selectedShape.element),t.selectedShape.on("update",(function(e){t.selectedShape&&t.emit("updateTarget",t.selectedShape.element,e)})),setTimeout((function(){var e;null!=t.selectedShape&&t._attachMouseListeners(t.selectedShape.element,o),!n&&null!==(e=t.selectedShape)&&void 0!==e&&e.element&&(t.currentHover=t.selectedShape.element)}),1)):t.selectedShape=e,n||t.emit("select",{annotation:o,element:t.selectedShape.element||t.selectedShape})}}})),ln(un(t),"setDrawingTool",(function(e){var n;t.tools&&(null===(n=t.tools.current)||void 0===n||n.stop(),t.tools.setCurrent(e))})),ln(un(t),"setVisible",(function(e){e?t.svg.style.display=null:(t.deselect(),t.svg.style.display="none")})),ln(un(t),"stopDrawing",(function(){var e,n;null===(e=t.tools)||void 0===e||null===(n=e.current)||void 0===n||n.stop()}));var n=e.wrapperEl,r=e.config,c=e.env;t.imageEl=c.image,t.readOnly=r.readOnly,t.allowDrawingWithSelection=r.allowDrawingWithSelection,r.formatter?t.formatters=[r.formatter]:r.formatters&&(t.formatters=Array.isArray(r.formatters)?r.formatters:[r.formatters]),t.disableSelect=r.disableSelect,t.drawOnSingleClick=r.drawOnSingleClick,t.svg=document.createElementNS(i,"svg"),t.svg.setAttribute("tabindex",0),fn?(t.svg.setAttribute("class","a9s-annotationlayer touch"),function(e){var t=null,n=function(e,t){return new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,bubbles:!0})},r=function(e){var r=e.changedTouches[0],o=n(ce[e.type],r);r.target.dispatchEvent(o),e.preventDefault(),"touchstart"!==e.type&&"touchmove"!==e.type||(t&&clearTimeout(t),t=setTimeout((function(){var e=n("dblclick",r);r.target.dispatchEvent(e)}),800)),"touchend"===e.type&&t&&clearTimeout(t)};e.addEventListener("touchstart",r,!0),e.addEventListener("touchmove",r,!0),e.addEventListener("touchend",r,!0),e.addEventListener("touchcancel",r,!0)}(t.svg),t.svg.addEventListener("touchstart",(function(){t.currentHover=null,t.selectCurrentHover()}))):t.svg.setAttribute("class","a9s-annotationlayer");var f=t.imageEl,p=f.naturalWidth,d=f.naturalHeight;if(p||d)t.svg.setAttribute("viewBox","0 0 ".concat(p," ").concat(d));else{var y=t.imageEl,m=y.width,h=y.height;t.svg.setAttribute("viewBox","0 0 ".concat(m," ").concat(h)),"img"!==t.imageEl.nodeName.toLowerCase()&&(t.imageEl.naturalWidth=m,t.imageEl.naturalHeight=h),t.imageEl.addEventListener("load",(function(){t.emit("load",t.imageEl.src),t.svg.setAttribute("viewBox","0 0 ".concat(t.imageEl.naturalWidth," ").concat(t.imageEl.naturalHeight))}))}return t.g=document.createElementNS(i,"g"),t.svg.appendChild(t.g),n.appendChild(t.svg),r.crosshair&&(t.crosshair=new nn(t.g,p,d),r.crosshairWithCursor||u(t.svg,"no-cursor")),t.selectedShape=null,t.tools=new Kt(t.g,r,c),t.tools.on("startSelection",(function(e){return t.emit("startSelection",e)})),t.tools.on("cancel",t.selectCurrentHover),t.tools.on("complete",t.selectShape),t.svg.addEventListener("mousedown",t._onMouseDown),t.currentHover=null,window.ResizeObserver&&(t.resizeObserver=new ResizeObserver((function(){t._refreshNonScalingAnnotations(),t._scaleFormatterElements()})),t.resizeObserver.observe(t.svg.parentNode)),t}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(o()),dn=n(40),yn=n.n(dn),mn=["second","minute","hour","day","week","month","year"],hn=["秒","分钟","小时","天","周","个月","年"],bn={},vn=function(e,t){bn[e]=t},gn=function(e){return bn[e]||bn.en_US},Sn=[60,60,24,7,365/7/12,12];function wn(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function On(e,t){for(var n=e<0?1:0,r=e=Math.abs(e),o=0;e>=Sn[o]&&o<Sn.length;o++)e/=Sn[o];return(e=Math.floor(e))>(0==(o*=2)?9:1)&&(o+=1),t(e,o,r)[n].replace("%s",e.toString())}function _n(e,t){return(+(t?wn(t):new Date)-+wn(e))/1e3}var En="timeago-id";function An(e){return parseInt(e.getAttribute(En))}var xn={},Pn=function(e){clearTimeout(e),delete xn[e]};function Cn(e,t,n,r){Pn(An(e));var o=r.relativeDate,i=r.minInterval,a=_n(t,o);e.innerText=On(a,n);var u=setTimeout((function(){Cn(e,t,n,r)}),Math.min(1e3*Math.max(function(e){for(var t=1,n=0,r=Math.abs(e);e>=Sn[n]&&n<Sn.length;n++)e/=Sn[n],t*=Sn[n];return r=(r%=t)?t-r:t,Math.ceil(r)}(a),i||1),2147483647));xn[u]=0,function(e,t){e.setAttribute(En,t)}(e,u)}function jn(e){e?Pn(An(e)):Object.keys(xn).forEach(Pn)}vn("en_US",(function(e,t){if(0===t)return["just now","right now"];var n=mn[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]})),vn("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var n=hn[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}));var kn,Dn=(kn=function(e,t){return kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},kn(e,t)},function(e,t){function n(){this.constructor=e}kn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Tn=function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tn.apply(this,arguments)},Mn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.dom=null,e}return Dn(n,t),n.prototype.componentDidMount=function(){this.renderTimeAgo()},n.prototype.componentDidUpdate=function(){this.renderTimeAgo()},n.prototype.renderTimeAgo=function(){var e,t=this.props,n=t.live,r=t.datetime,o=t.locale,i=t.opts;jn(this.dom),!1!==n&&(this.dom.setAttribute("datetime",""+((e=r)instanceof Date?e.getTime():e)),function(e,t,n){(e.length?e:[e]).forEach((function(e){Cn(e,function(e){return e.getAttribute("datetime")}(e),gn(t),n||{})}))}(this.dom,o,i))},n.prototype.componentWillUnmount=function(){jn(this.dom)},n.prototype.render=function(){var t=this,n=this.props,r=n.datetime,o=(n.live,n.locale),i=n.opts,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["datetime","live","locale","opts"]);return e.createElement("time",Tn({ref:function(e){t.dom=e}},a),function(e,t,n){return On(_n(e,n&&n.relativeDate),gn(t))}(r,o,i))},n.defaultProps={live:!0,className:""},n}(e.PureComponent);const Rn=Mn;var Nn=n(8436),In=n.n(Nn);const Ln=JSON.parse('{"Add a comment...":"إضافة تعليق","Add a reply...":"إضافة رد","Add tag...":"إضافة علامة","Cancel":"إلغاء","Close":"إغلاق","Edit":"Edit","Delete":"Delete","Ok":"تم"}'),Un=JSON.parse('{"Add a comment...":"Napsat komentář...","Add a reply...":"Odpovědět...","Add tag...":"Přidat štítek...","Cancel":"Zrušit","Close":"Zavřít","Edit":"Upravit","Delete":"Smazat","Ok":"Ok"}'),Fn=JSON.parse('{"Add a comment...":"Kommentar schreiben...","Add a reply...":"Antwort schreiben...","Add tag...":"Tag...","Cancel":"Abbrechen","Close":"Schliessen","Edit":"Bearbeiten","Delete":"Löschen","Ok":"Ok"}'),Vn=JSON.parse('{"Add a comment...":"Σχολίασε...","Add a reply...":"Απάντησε...","Add tag...":"Πρόσθεσε tag...","Cancel":"Άκυρο","Close":"Κλείσιμο","Edit":"Επεξεργασία","Delete":"Διαγραφή","Ok":"Ok"}'),Hn=JSON.parse('{"Add a comment...":"Agregar un comentario...","Add a reply...":"Agregar una respuesta...","Add tag...":"Etiquetar...","Cancel":"Cancelar","Close":"Cerrar","Edit":"Editar","Delete":"Eliminar","Ok":"Ok"}'),Bn=JSON.parse('{"Add a comment...":"Lisää kommentti","Add a reply...":"Lisää vastaus","Add tag...":"Lisää tunniste","Cancel":"Peruuta","Close":"Sulje","Edit":"Muokkaa","Delete":"Poista","Ok":"Ok"}'),zn=JSON.parse('{"Add a comment...":"Ajouter un commentaire...","Add a reply...":"Ajouter une réponse...","Add tag...":"Ajouter une étiquette...","Cancel":"Annuler","Close":"Fermer","Edit":"Éditer","Delete":"Supprimer","Ok":"Ok"}'),Wn=JSON.parse('{"Add a comment...":"Engadir un comentario...","Add a reply...":"Engadir unha resposta...","Add tag...":"Etiquetar...","Cancel":"Cancelar","Close":"Pechar","Edit":"Edit","Delete":"Delete","Ok":"Ok"}'),$n=JSON.parse('{"Add a comment...":"टिप्पणी जोड़ें","Add a reply...":"जवाब दें","Add tag...":"टैग लगाएँ","Cancel":"रद्द करें","Close":"बंद करें","Edit":"संपादित करें","Delete":"हटाएँ","Ok":"ठीक है"}'),Gn=JSON.parse('{"Add a comment...":"Commenta...","Add a reply...":"Rispondi...","Add tag...":"Aggiungi tag...","Cancel":"Annulla","Close":"Chiudi","Edit":"Edit","Delete":"Delete","Ok":"Ok"}'),Yn=JSON.parse('{"Add a comment...":"コメントを追加する...","Add a reply...":"返信する...","Add tag...":"タグを追加する...","Cancel":"キャンセル","Close":"閉じる","Edit":"編集","Delete":"削除","Ok":"Ok"}'),Xn=JSON.parse('{"Add a comment...":"댓글 추가","Add a reply...":"답글 추가","Add tag...":"태그 추가","Cancel":"취소","Close":"닫기","Edit":"수정","Delete":"삭제","Ok":"확인"}'),qn=JSON.parse('{"Add a comment...":"Commentaar toevoegen...","Add a reply...":"Antwoord toevoegen...","Add tag...":"Tag toevoegen...","Cancel":"Afbreken","Close":"Sluiten","Edit":"Bewerken","Delete":"Verwijderen","Ok":"Ok"}'),Zn=JSON.parse('{"Add a comment...":"Adicionar um comentário...","Add a reply...":"Adicionar uma resposta...","Add tag...":"Etiquetar...","Cancel":"Cancelar","Close":"Fechar","Edit":"Editar","Delete":"Apagar","Ok":"Ok"}'),Jn=JSON.parse('{"Add a comment...":"Добавить комментарий...","Add a reply...":"Добавить ответ...","Add tag...":"Добавить тэг...","Cancel":"Отмена","Close":"Закрыть","Edit":"Редактировать","Delete":"Удалить","Ok":"Ок"}'),Kn=JSON.parse('{"Add a comment...":"Skriv en kommentar...","Add a reply...":"Skriv ett svar...","Add tag...":"Tagg...","Cancel":"Cancel","Close":"Stäng","Edit":"Edit","Delete":"Delete","Ok":"Ok"}'),Qn=JSON.parse('{"Add a comment...":"เพิ่มคอมเมนต์...","Add a reply...":"ตอบกลับ...","Add tag...":"เพิ่มแท็ก...","Cancel":"ยกเลิก","Close":"ปิด","Edit":"แก้ไข","Delete":"ลบ","Ok":"ตกลง"}'),er=JSON.parse('{"Add a comment...":"Yorum ekle...","Add a reply...":"Cevap ekle...","Add tag...":"Tag Ekle...","Cancel":"İptal","Close":"Kapat","Edit":"Düzenle","Delete":"Sil","Ok":"Tamam"}'),tr=JSON.parse('{"Add a comment...":"تبصرہ کریں","Add a reply...":"جواب دیں","Add tag...":"ٹیگ لگائیں","Cancel":"منسوخ کریں","Close":"بند کریں","Edit":"ترمیم کریں","Delete":"ہٹائیں","Ok":"ٹھیک ہے"}'),nr=JSON.parse('{"Add a comment...":"添加注释...","Add a reply...":"添加回复...","Add tag...":"标签...","Cancel":"取消","Close":"关闭","Edit":"编辑","Delete":"删除","Ok":"确认"}'),rr=JSON.parse('{"Add a comment...":"添加评论...","Add a reply...":"添加回复...","Add tag...":"添加标签...","Cancel":"取消","Close":"关闭","Edit":"编辑","Delete":"删除","Ok":"确认"}'),or=JSON.parse('{"Add a comment...":"添加評論...","Add a reply...":"添加回覆...","Add tag...":"添加標籤...","Cancel":"取消","Close":"關閉","Edit":"編輯","Delete":"刪除","Ok":"確認"}');var ir=n(8841),ar=n(2463),ur=n(3506),sr=n(1975),lr=n(7813),cr=n(5194),fr=n(3971),pr=n(5211),dr=n(3335),yr=n(6509),mr=n(6244),hr=n(5626),br=n(4178),vr=n(3099),gr=n(2404),Sr=n(8248),wr=n(4475),Or=n(1311),_r=n(3211),Er=n(7883);function Ar(e){return Ar="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},Ar(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){Cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ar(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ar(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jr={ar:Ln,cs:Un,de:Fn,el:Vn,es:Hn,fi:Bn,fr:zn,gl:Wn,hi:$n,it:Gn,ja:Yn,ko:Xn,nl:qn,pt:Zn,ru:Jn,sv:Kn,th:Qn,tr:er,ur:tr,zh:nr,"zh-CN":rr,"zh-TW":or},kr=Object.keys(jr),Dr=new(In())({allowMissing:!0});Dr.init=function(e,t){Dr.clear(),e&&(Dr.locale(e),Dr.extend(jr[e])),t&&Dr.extend(t)},vn("ar",ir.Z),vn("cs",ar.Z),vn("de",ur.Z),vn("el",sr.Z),vn("es",lr.Z),vn("fi",cr.Z),vn("fr",fr.Z),vn("gl",pr.Z),vn("hi",dr.Z),vn("it",yr.Z),vn("ja",mr.Z),vn("ko",hr.Z),vn("nl",br.Z),vn("pt",vr.Z),vn("ru",gr.Z),vn("sv",Sr.Z),vn("th",wr.Z),vn("tr",Or.Z),vn("zh",_r.Z),vn("zh-CN",_r.Z),vn("zh-TW",Er.Z),Dr.registerMessages=function(e,t){jr[e]?jr[e]=Pr(Pr({},jr[e]),t):jr[e]=t};const Tr=Dr,Mr=function(t){var n=(0,e.useRef)();return function(n,r){var o=function(e){n.current&&!n.current.contains(event.target)&&t.onClickOutside()};(0,e.useEffect)((function(){return document.addEventListener("mousedown",o),function(){return document.removeEventListener("mousedown",o)}}))}(n),e.default.createElement("ul",{ref:n,className:"r6o-comment-dropdown-menu"},e.default.createElement("li",{onClick:t.onEdit},Tr.t("Edit")),e.default.createElement("li",{onClick:t.onDelete},Tr.t("Delete")))};var Rr=n(6451);function Nr(e){return Nr="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},Nr(e)}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hr(r.key),r)}}function Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function Vr(e,t,n){return(t=Hr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hr(e){var t=function(e,t){if("object"!==Nr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Nr(t)?t:String(t)}var Br=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(u,t);var n,r,o,i,a=(o=u,i=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}}(),function(){var e,t=Fr(o);if(i){var n=Fr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Nr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}(this,e)});function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Vr(Ur(n=a.call(this,t)),"onKeyDown",(function(e){13===e.which&&e.ctrlKey&&n.props.onSaveAndClose()})),Vr(Ur(n),"onKeyUp",(function(e){46===e.which&&e.stopPropagation()})),n.element=(0,e.createRef)(),n}return n=u,(r=[{key:"componentDidMount",value:function(){this.props.focus&&this.element.current&&this.element.current.focus({preventScroll:!0})}},{key:"render",value:function(){return e.default.createElement(Rr.Z,{ref:this.element,className:"r6o-editable-text",value:this.props.content,placeholder:this.props.placeholder||Tr.t("Add a comment..."),disabled:!this.props.editable,onChange:this.props.onChange,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown})}}])&&Ir(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.Component);function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var Wr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),$r=Math.abs,Gr=String.fromCharCode,Yr=Object.assign;function Xr(e){return e.trim()}function qr(e,t,n){return e.replace(t,n)}function Zr(e,t){return e.indexOf(t)}function Jr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function eo(e){return e.length}function to(e,t){return t.push(e),e}var no=1,ro=1,oo=0,io=0,ao=0,uo="";function so(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:no,column:ro,length:a,return:""}}function lo(e,t){return Yr(so("",null,null,"",null,null,0),e,{length:-e.length},t)}function co(){return ao=io>0?Jr(uo,--io):0,ro--,10===ao&&(ro=1,no--),ao}function fo(){return ao=io<oo?Jr(uo,io++):0,ro++,10===ao&&(ro=1,no++),ao}function po(){return Jr(uo,io)}function yo(){return io}function mo(e,t){return Kr(uo,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bo(e){return no=ro=1,oo=Qr(uo=e),io=0,[]}function vo(e){return uo="",e}function go(e){return Xr(mo(io-1,Oo(91===e?e+2:40===e?e+1:e)))}function So(e){for(;(ao=po())&&ao<33;)fo();return ho(e)>2||ho(ao)>3?"":" "}function wo(e,t){for(;--t&&fo()&&!(ao<48||ao>102||ao>57&&ao<65||ao>70&&ao<97););return mo(e,yo()+(t<6&&32==po()&&32==fo()))}function Oo(e){for(;fo();)switch(ao){case e:return io;case 34:case 39:34!==e&&39!==e&&Oo(ao);break;case 40:41===e&&Oo(e);break;case 92:fo()}return io}function _o(e,t){for(;fo()&&e+ao!==57&&(e+ao!==84||47!==po()););return"/*"+mo(t,io-1)+"*"+Gr(47===e?e:fo())}function Eo(e){for(;!ho(po());)fo();return mo(e,io)}var Ao="-ms-",xo="-moz-",Po="-webkit-",Co="comm",jo="rule",ko="decl",Do="@keyframes";function To(e,t){for(var n="",r=eo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Mo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ko:return e.return=e.return||e.value;case Co:return"";case Do:return e.return=e.value+"{"+To(e.children,r)+"}";case jo:e.value=e.props.join(",")}return Qr(n=To(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ro(e){return vo(No("",null,null,null,[""],e=bo(e),0,[0],e))}function No(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,y=0,m=1,h=1,b=1,v=0,g="",S=o,w=i,O=r,_=g;h;)switch(y=v,v=fo()){case 40:if(108!=y&&58==Jr(_,f-1)){-1!=Zr(_+=qr(go(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:_+=go(v);break;case 9:case 10:case 13:case 32:_+=So(y);break;case 92:_+=wo(yo()-1,7);continue;case 47:switch(po()){case 42:case 47:to(Lo(_o(fo(),yo()),t,n),s);break;default:_+="/"}break;case 123*m:u[l++]=Qr(_)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+c:-1==b&&(_=qr(_,/\f/g,"")),d>0&&Qr(_)-f&&to(d>32?Uo(_+";",r,n,f-1):Uo(qr(_," ","")+";",r,n,f-2),s);break;case 59:_+=";";default:if(to(O=Io(_,t,n,l,c,o,u,g,S=[],w=[],f),i),123===v)if(0===c)No(_,t,O,O,S,i,f,u,w);else switch(99===p&&110===Jr(_,3)?100:p){case 100:case 108:case 109:case 115:No(e,O,O,r&&to(Io(e,O,O,0,0,o,u,g,o,S=[],f),w),o,w,f,u,r?S:w);break;default:No(_,O,O,O,[""],w,0,u,w)}}l=c=d=0,m=b=1,g=_="",f=a;break;case 58:f=1+Qr(_),d=y;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==co())continue;switch(_+=Gr(v),v*m){case 38:b=c>0?1:(_+="\f",-1);break;case 44:u[l++]=(Qr(_)-1)*b,b=1;break;case 64:45===po()&&(_+=go(fo())),p=po(),c=f=Qr(g=_+=Eo(yo())),v++;break;case 45:45===y&&2==Qr(_)&&(m=0)}}return i}function Io(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=eo(p),y=0,m=0,h=0;y<r;++y)for(var b=0,v=Kr(e,f+1,f=$r(m=a[y])),g=e;b<d;++b)(g=Xr(m>0?p[b]+" "+v:qr(v,/&\f/g,p[b])))&&(s[h++]=g);return so(e,t,n,0===o?jo:u,s,l,c)}function Lo(e,t,n){return so(e,t,n,Co,Gr(ao),Kr(e,2,-2),0)}function Uo(e,t,n,r){return so(e,t,n,ko,Kr(e,0,r),Kr(e,r+1,-1),r)}var Fo=function(e,t,n){for(var r=0,o=0;r=o,o=po(),38===r&&12===o&&(t[n]=1),!ho(o);)fo();return mo(e,io)},Vo=new WeakMap,Ho=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Vo.get(n))&&!r){Vo.set(e,!0);for(var o=[],i=function(e,t){return vo(function(e,t){var n=-1,r=44;do{switch(ho(r)){case 0:38===r&&12===po()&&(t[n]=1),e[n]+=Fo(io-1,t,n);break;case 2:e[n]+=go(r);break;case 4:if(44===r){e[++n]=58===po()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Gr(r)}}while(r=fo());return e}(bo(e),t))}(t,o),a=n.props,u=0,s=0;u<i.length;u++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[u]?i[u].replace(/&\f/g,a[l]):a[l]+" "+i[u]}}},Bo=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zo(e,t){switch(function(e,t){return 45^Jr(e,0)?(((t<<2^Jr(e,0))<<2^Jr(e,1))<<2^Jr(e,2))<<2^Jr(e,3):0}(e,t)){case 5103:return Po+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Po+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Po+e+xo+e+Ao+e+e;case 6828:case 4268:return Po+e+Ao+e+e;case 6165:return Po+e+Ao+"flex-"+e+e;case 5187:return Po+e+qr(e,/(\w+).+(:[^]+)/,Po+"box-$1$2"+Ao+"flex-$1$2")+e;case 5443:return Po+e+Ao+"flex-item-"+qr(e,/flex-|-self/,"")+e;case 4675:return Po+e+Ao+"flex-line-pack"+qr(e,/align-content|flex-|-self/,"")+e;case 5548:return Po+e+Ao+qr(e,"shrink","negative")+e;case 5292:return Po+e+Ao+qr(e,"basis","preferred-size")+e;case 6060:return Po+"box-"+qr(e,"-grow","")+Po+e+Ao+qr(e,"grow","positive")+e;case 4554:return Po+qr(e,/([^-])(transform)/g,"$1"+Po+"$2")+e;case 6187:return qr(qr(qr(e,/(zoom-|grab)/,Po+"$1"),/(image-set)/,Po+"$1"),e,"")+e;case 5495:case 3959:return qr(e,/(image-set\([^]*)/,Po+"$1$`$1");case 4968:return qr(qr(e,/(.+:)(flex-)?(.*)/,Po+"box-pack:$3"+Ao+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Po+e+e;case 4095:case 3583:case 4068:case 2532:return qr(e,/(.+)-inline(.+)/,Po+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qr(e)-1-t>6)switch(Jr(e,t+1)){case 109:if(45!==Jr(e,t+4))break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Po+"$2-$3$1"+xo+(108==Jr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Zr(e,"stretch")?zo(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Jr(e,t+1))break;case 6444:switch(Jr(e,Qr(e)-3-(~Zr(e,"!important")&&10))){case 107:return qr(e,":",":"+Po)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Po+(45===Jr(e,14)?"inline-":"")+"box$3$1"+Po+"$2$3$1"+Ao+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return Po+e+Ao+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Po+e+Ao+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Po+e+Ao+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Po+e+Ao+e+e}return e}var Wo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ko:e.return=zo(e.value,e.length);break;case Do:return To([lo(e,{value:qr(e.value,"@","@"+Po)})],r);case jo:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return To([lo(e,{props:[qr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return To([lo(e,{props:[qr(t,/:(plac\w+)/,":"+Po+"input-$1")]}),lo(e,{props:[qr(t,/:(plac\w+)/,":-moz-$1")]}),lo(e,{props:[qr(t,/:(plac\w+)/,Ao+"input-$1")]})],r)}return""}))}}],$o=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Wo,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var s,l,c,f,p=[Mo,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(l=[Ho,Bo].concat(i,p),c=eo(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,To(Ro(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new Wr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return y.sheet.hydrate(u),y};function Go(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Yo=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Xo=function(e,t,n){Yo(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},qo={animationIterationCount:1,aspectRatio: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};function Zo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}function Jo(e){return Jo="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},Jo(e)}var Ko=/[A-Z]|^ms/g,Qo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ei=function(e){return 45===e.charCodeAt(1)},ti=function(e){return null!=e&&"boolean"!=typeof e},ni=Zo((function(e){return ei(e)?e:e.replace(Ko,"-$&").toLowerCase()})),ri=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qo,(function(e,t,n){return ii={name:t,styles:n,next:ii},t}))}return 1===qo[e]||ei(e)||"number"!=typeof t||0===t?t:t+"px"};function oi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(Jo(n)){case"boolean":return"";case"object":if(1===n.anim)return ii={name:n.name,styles:n.styles,next:ii},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ii={name:r.name,styles:r.styles,next:ii},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==Jo(a))null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ti(a)&&(r+=ni(i)+":"+ri(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=oi(e,t,a);switch(i){case"animation":case"animationName":r+=ni(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var s=0;s<a.length;s++)ti(a[s])&&(r+=ni(i)+":"+ri(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ii,i=n(e);return ii=o,oi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ii,ai=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ui=function(e,t,n){if(1===e.length&&"object"===Jo(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ii=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=oi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=oi(n,t,e[a]),r&&(o+=i[a]);ai.lastIndex=0;for(var u,s="";null!==(u=ai.exec(o));)s+="-"+u[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:ii}},si=!!e.useInsertionEffect&&e.useInsertionEffect,li=si||function(e){return e()};si||e.useLayoutEffect;var ci={}.hasOwnProperty,fi=e.createContext("undefined"!=typeof HTMLElement?$o({key:"css"}):null);fi.Provider;var pi=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(fi);return t(n,o,r)}))},di=e.createContext({}),yi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Yo(t,n,r),li((function(){return Xo(t,n,r)})),null},hi=pi((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[yi],a=[o],u="";"string"==typeof t.className?u=Go(n.registered,a,t.className):null!=t.className&&(u=t.className+" ");var s=ui(a,void 0,e.useContext(di));u+=n.key+"-"+s.name;var l={};for(var c in t)ci.call(t,c)&&"css"!==c&&c!==yi&&(l[c]=t[c]);return l.ref=r,l.className=u,e.createElement(e.Fragment,null,e.createElement(mi,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,l))}));function bi(e){return bi="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},bi(e)}n(7480);var vi=function(t,n){var r=arguments;if(null==n||!ci.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=hi,i[1]=function(e,t){var n={};for(var r in t)ci.call(t,r)&&(n[r]=t[r]);return n[yi]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)};function gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ui(t)}var Si=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(bi(i)){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var u in a="",i)i[u]&&u&&(a&&(a+=" "),a+=u);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},wi=function(e){var t=e.cache,n=e.serializedArr;return li((function(){for(var e=0;e<n.length;e++)Xo(t,n[e],!1)})),null},Oi=pi((function(t,n){var r=[],o=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=ui(t,n.registered);return r.push(i),Yo(n,i,!1),n.key+"-"+i.name},i={css:o,cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,n){var r=[],o=Go(e,r,n);return r.length<2?n:o+t(r)}(n.registered,o,Si(t))},theme:e.useContext(di)},a=t.children(i);return e.createElement(e.Fragment,null,e.createElement(wi,{cache:n,serializedArr:r}),a)}));function _i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ei(e,t){if(null==e)return{};var n,r,o=_i(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ai(e){return Ai="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},Ai(e)}var xi=n(2718);function Pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ci(e){var t=function(e,t){if("object"!==Ai(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ai(t)?t:String(t)}function ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ci(r.key),r)}}function ki(e,t,n){return t&&ji(e.prototype,t),n&&ji(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Di(e,t){return Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Di(e,t)}function Ti(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}function Mi(e,t,n){return(t=Ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){return Ri="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},Ri(e)}function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ui(e)}function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ui(e);if(t){var o=Ui(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==Ri(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var Vi=function(){};function Hi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Bi(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Hi(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var zi=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ai(e)&&null!==e?[e]:[]},Wi=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Li({},Ei(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function $i(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Gi(e){return $i(e)?window.pageYOffset:e.scrollTop}function Yi(e,t){$i(e)?window.scrollTo(0,t):e.scrollTop=t}function Xi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vi,o=Gi(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;Yi(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function qi(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Zi=!1,Ji={get passive(){return Zi=!0}},Ki="undefined"!=typeof window?window:{};Ki.addEventListener&&Ki.removeEventListener&&(Ki.addEventListener("p",Vi,Ji),Ki.removeEventListener("p",Vi,!1));var Qi=Zi;var ea=function(e){return"auto"===e?"bottom":e},ta=(0,e.createContext)({getPortalPlacement:null}),na=function(e){Ti(n,e);var t=Fi(n);function n(){var e;Pi(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,u=n.menuShouldScrollIntoView,s=n.theme;if(t){var l="fixed"===a,c=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=s.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,d=f.height,y=f.top,m=n.offsetParent.getBoundingClientRect().top,h=window.innerHeight,b=Gi(s),v=parseInt(getComputedStyle(n).marginBottom,10),g=parseInt(getComputedStyle(n).marginTop,10),S=m-g,w=h-y,O=S+b,_=c-b-y,E=p-h+b+v,A=b+y-g,x=160;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(_>=d&&!a)return i&&Xi(s,E,x),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return i&&Xi(s,E,x),{placement:"bottom",maxHeight:a?w-v:_-v};if("auto"===o||a){var P=t,C=a?S:O;return C>=r&&(P=Math.min(C-v-u.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Yi(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(S>=d)return{placement:"top",maxHeight:t};if(O>=d&&!a)return i&&Xi(s,A,x),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&S>=r){var j=t;return(!a&&O>=r||a&&S>=r)&&(j=a?S-g:O-g),i&&Xi(s,A,x),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:u&&!l,isFixedPosition:l,theme:s}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ea(t);return Li(Li({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return ki(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);na.contextType=ta;var ra=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},oa=ra,ia=ra,aa=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vi("div",zr({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};aa.defaultProps={children:"No options"};var ua=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vi("div",zr({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};ua.defaultProps={children:"Loading..."};var sa,la,ca,fa=function(t){Ti(r,t);var n=Fi(r);function r(){var e;Pi(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ea(e.props.menuPlacement)&&e.setState({placement:n})},e}return ki(r,[{key:"render",value:function(){var t=this.props,n=t.appendTo,r=t.children,o=t.className,i=t.controlElement,a=t.cx,u=t.innerProps,s=t.menuPlacement,l=t.menuPosition,c=t.getStyles,f="fixed"===l;if(!n&&!f||!i)return null;var p=this.state.placement||ea(s),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),y=f?0:window.pageYOffset,m=d[p]+y,h=vi("div",zr({css:c("menuPortal",{offset:m,position:l,rect:d}),className:a({"menu-portal":!0},o)},u),r);return vi(ta.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},n?(0,e.createPortal)(h,n):h)}}]),r}(e.Component),pa={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},da=function(e){var t=e.size,n=Ei(e,["size"]);return vi("svg",zr({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:pa},n))},ya=function(e){return vi(da,zr({size:20},e),vi("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ma=function(e){return vi(da,zr({size:20},e),vi("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ha=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},ba=ha,va=ha,ga=function(){var e=gi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(sa||(la=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ca||(ca=la.slice(0)),sa=Object.freeze(Object.defineProperties(la,{raw:{value:Object.freeze(ca)}})))),Sa=function(e){var t=e.delay,n=e.offset;return vi("span",{css:gi({animation:"".concat(ga," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},wa=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return vi("div",zr({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),vi(Sa,{delay:0,offset:i}),vi(Sa,{delay:160,offset:!0}),vi(Sa,{delay:320,offset:!i}))};wa.defaultProps={size:4};var Oa=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},_a=function(e){var t=e.children,n=e.innerProps;return vi("div",n,t)},Ea=_a,Aa=_a,xa=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,u=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,f=r.Container,p=r.Label,d=r.Remove;return vi(Oi,null,(function(r){var y=r.css,m=r.cx;return vi(f,{data:i,innerProps:Li({className:m(y(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":s},n))},u),selectProps:c},vi(p,{data:i,innerProps:{className:m(y(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),vi(d,{data:i,innerProps:Li({className:m(y(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},l),selectProps:c}))}))};xa.defaultProps={cropWithEllipsis:!0};var Pa={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vi("div",zr({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||vi(ya,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,u=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return vi("div",zr({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":l},o)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vi("div",zr({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||vi(ma,null))},DownChevron:ma,CrossIcon:ya,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return vi("div",zr({css:o("group",e),className:r({group:!0},n)},u),vi(i,zr({},a,{selectProps:c,theme:l,getStyles:o,cx:r}),s),vi("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=Wi(e);o.data;var i=Ei(o,["data"]);return vi("div",zr({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return vi("div",zr({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return vi("span",zr({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=Wi(e),i=o.innerRef,a=o.isDisabled,u=o.isHidden,s=Ei(o,["innerRef","isDisabled","isHidden"]);return vi("div",{css:r("input",e)},vi(xi.Z,zr({className:n({input:!0},t),inputRef:i,inputStyle:Oa(u),disabled:a},s)))},LoadingIndicator:wa,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return vi("div",zr({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,u=e.isMulti;return vi("div",zr({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":u},n),ref:a},i),t)},MenuPortal:fa,LoadingMessage:ua,NoOptionsMessage:aa,MultiValue:xa,MultiValueContainer:Ea,MultiValueLabel:Aa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return vi("div",n,t||vi(ya,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,u=e.isSelected,s=e.innerRef,l=e.innerProps;return vi("div",zr({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":u},n),ref:s},l),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return vi("div",zr({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,u=e.isRtl;return vi("div",zr({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":u},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return vi("div",zr({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,u=e.hasValue;return vi("div",zr({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":u},n)},o),t)}};function Ca(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 ja(e){return function(e){if(Array.isArray(e))return Ca(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){if("string"==typeof e)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ca(e,t):void 0}}(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.")}()}var ka=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Da(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ka(r)&&ka(o)))return!1;var r,o;return!0}for(var Ta={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ma=function(e){return vi("span",zr({css:Ta},e))},Ra={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,u=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&u)return"value ".concat(a," focused, ").concat(c(u,r),".");if("menu"===t){var f=s?" disabled":"",p="".concat(l?"selected":"focused").concat(f);return"option ".concat(a," ").concat(p,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Na=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,u=t.selectValue,s=t.selectProps,l=s.ariaLiveMessages,c=s.getOptionLabel,f=s.inputValue,p=s.isMulti,d=s.isOptionDisabled,y=s.isSearchable,m=s.menuIsOpen,h=s.options,b=s.screenReaderStatus,v=s.tabSelectsValue,g=s["aria-label"],S=s["aria-live"],w=(0,e.useMemo)((function(){return Li(Li({},Ra),l||{})}),[l]),O=(0,e.useMemo)((function(){var e,t="";if(n&&w.onChange){var r=n.option,o=n.removedValue,i=n.value,a=o||r||(e=i,Array.isArray(e)?null:e),u=Li({isDisabled:a&&d(a),label:a?c(a):""},n);t=w.onChange(u)}return t}),[n,d,c,w]),_=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&u&&u.includes(r));if(t&&w.onFocus){var i={focused:t,label:c(t),isDisabled:d(t),isSelected:n,options:h,context:t===r?"menu":"value",selectValue:u};e=w.onFocus(i)}return e}),[r,o,c,d,w,h,u]),E=(0,e.useMemo)((function(){var e="";if(m&&h.length&&w.onFilter){var t=b({count:i.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,m,w,h,b]),A=(0,e.useMemo)((function(){var e="";if(w.guidance){var t=o?"value":m?"menu":"input";e=w.guidance({"aria-label":g,context:t,isDisabled:r&&d(r),isMulti:p,isSearchable:y,tabSelectsValue:v})}return e}),[g,r,o,p,d,y,m,w,v]),x="".concat(_," ").concat(E," ").concat(A);return vi(Ma,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&vi(e.default.Fragment,null,vi("span",{id:"aria-selection"},O),vi("span",{id:"aria-context"},x)))},Ia=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],La=new RegExp("["+Ia.map((function(e){return e.letters})).join("")+"]","g"),Ua={},Fa=0;Fa<Ia.length;Fa++)for(var Va=Ia[Fa],Ha=0;Ha<Va.letters.length;Ha++)Ua[Va.letters[Ha]]=Va.base;var Ba=function(e){return e.replace(La,(function(e){return Ua[e]}))},za=function(e,t){var n;void 0===t&&(t=Da);var r,o=[],i=!1;return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(Ba),Wa=function(e){return e.replace(/^\s+|\s+$/g,"")},$a=function(e){return"".concat(e.label," ").concat(e.value)};function Ga(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Ei(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return vi("input",zr({ref:t},n,{css:gi({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Ya=["boxSizing","height","overflow","paddingRight","position"],Xa={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qa(e){e.preventDefault()}function Za(e){e.stopPropagation()}function Ja(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ka(){return"ontouchstart"in window||navigator.maxTouchPoints}var Qa=!("undefined"==typeof window||!window.document||!window.document.createElement),eu=0,tu={capture:!1,passive:!1},nu=function(){return document.activeElement&&document.activeElement.blur()},ru={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ou(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,u=(0,e.useRef)(!1),s=(0,e.useRef)(!1),l=(0,e.useRef)(0),c=(0,e.useRef)(null),f=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,l=n.scrollTop,f=n.scrollHeight,p=n.clientHeight,d=c.current,y=t>0,m=f-p-l,h=!1;m>t&&u.current&&(o&&o(e),u.current=!1),y&&s.current&&(a&&a(e),s.current=!1),y&&t>m?(r&&!u.current&&r(e),d.scrollTop=f,h=!0,u.current=!0):!y&&-t>l&&(i&&!s.current&&i(e),d.scrollTop=0,h=!0,s.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=(0,e.useCallback)((function(e){f(e,e.deltaY)}),[f]),d=(0,e.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),y=(0,e.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t)}),[f]),m=(0,e.useCallback)((function(e){if(e){var t=!!Qi&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",y,t)}}),[y,d,p]),h=(0,e.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",y,!1))}),[y,d,p]);return(0,e.useEffect)((function(){if(n){var e=c.current;return m(e),function(){h(e)}}}),[n,m,h]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),u=(0,e.useCallback)((function(e){if(Qa){var t=document.body,n=t&&t.style;if(o&&Ya.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&eu<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+r||0;Object.keys(Xa).forEach((function(e){var t=Xa[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&Ka()&&(t.addEventListener("touchmove",qa,tu),e&&(e.addEventListener("touchstart",Ja,tu),e.addEventListener("touchmove",Za,tu))),eu+=1}}),[]),s=(0,e.useCallback)((function(e){if(Qa){var t=document.body,n=t&&t.style;eu=Math.max(eu-1,0),o&&eu<1&&Ya.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ka()&&(t.removeEventListener("touchmove",qa,tu),e&&(e.removeEventListener("touchstart",Ja,tu),e.removeEventListener("touchmove",Za,tu)))}}),[]);return(0,e.useEffect)((function(){if(n){var e=a.current;return u(e),function(){s(e)}}}),[n,u,s]),function(e){a.current=e}}({isEnabled:r});return vi(e.default.Fragment,null,r&&vi("div",{onClick:nu,css:ru}),n((function(e){i(e),a(e)})))}var iu={clearIndicator:va,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:ba,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ia,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Mi(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Mi(t,"backgroundColor",a.neutral0),Mi(t,"borderRadius",o),Mi(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Mi(t,"marginBottom",i.menuGutter),Mi(t,"marginTop",i.menuGutter),Mi(t,"position","absolute"),Mi(t,"width","100%"),Mi(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:oa,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},au={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},uu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qi(),captureMenuScroll:!qi(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Li({ignoreCase:!0,ignoreAccents:!0,stringify:$a,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?Wa(t):t,l=a?Wa(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=za(s),l=Ba(l)),"start"===u?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function su(e,t,n,r){return{type:"option",data:t,isDisabled:yu(e,t,n),isSelected:mu(e,t,n),label:pu(e,t),value:du(e,t),index:r}}function lu(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return su(e,n,t,r)})).filter((function(t){return fu(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=su(e,n,t,r);return fu(e,i)?i:void 0})).filter((function(e){return!!e}))}function cu(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ja(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function fu(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!bu(e)||!i)&&hu(e,{label:a,value:u,data:o},r)}var pu=function(e,t){return e.getOptionLabel(t)},du=function(e,t){return e.getOptionValue(t)};function yu(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function mu(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=du(e,t);return n.some((function(t){return du(e,t)===r}))}function hu(e,t,n){return!e.filterOption||e.filterOption(t,n)}var bu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},vu=1,gu=function(t){Ti(r,t);var n=Fi(r);function r(e){var t;return Pi(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,u=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(u){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",name:i});o?t.setValue([].concat(ja(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=n?i:i[0]||null;t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(t.props.isMulti?[]:null,{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=e?o:o[0]||null;t.onChange(i,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Bi.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return pu(t.props,e)},t.getOptionValue=function(e){return du(t.props,e)},t.getStyles=function(e,n){var r=iu[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Li(Li({},Pa),e.components);var e},t.buildCategorizedOptions=function(){return lu(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return cu(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Li({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&$i(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return bu(t.props)},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,u=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,y=d.focusedOption,m=d.focusedValue,h=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():u&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!f||!y||p&&t.isOptionSelected(y,h))return;t.selectOption(y);break;case"Enter":if(229===e.keyCode)break;if(l){if(!y)return;if(t.isComposing)return;t.selectOption(y);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):u&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!y)return;t.selectOption(y);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++vu),t.state.selectValue=zi(e.value),t}return ki(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!u&&e.isDisabled||l&&s&&!e.menuIsOpen)&&this.focusInput(),l&&u&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Yi(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Yi(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(au):Li(Li({},au),this.props.theme):au}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,u=a.isMulti,s=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return mu(this.props,e,t)}},{key:"filterOption",value:function(e,t){return hu(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,u=t.form,s=this.getComponents().Input,l=this.state.inputIsHidden,c=this.commonProps,f=o||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return r?e.default.createElement(s,zr({},c,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:n,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:u,type:"text",value:i},p)):e.default.createElement(Ga,zr({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vi,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:a,form:u,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,u=n.SingleValue,s=n.Placeholder,l=this.commonProps,c=this.props,f=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,y=c.inputValue,m=c.placeholder,h=this.state,b=h.selectValue,v=h.focusedValue,g=h.isFocused;if(!this.hasValue()||!f)return y?null:e.default.createElement(s,zr({},l,{key:"placeholder",isDisabled:p,isFocused:g}),m);if(d){var S=b.map((function(n,u){var s=n===v;return e.default.createElement(r,zr({},l,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:p,key:"".concat(t.getOptionValue(n)).concat(u),index:u,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),t.formatOptionLabel(n,"value"))}));return S}if(y)return null;var w=b[0];return e.default.createElement(u,zr({},l,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.default.createElement(t,zr({},n,{innerProps:u,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.default.createElement(t,zr({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.default.createElement(r,zr({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.default.createElement(t,zr({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,u=n.MenuPortal,s=n.LoadingMessage,l=n.NoOptionsMessage,c=n.Option,f=this.commonProps,p=this.state.focusedOption,d=this.props,y=d.captureMenuScroll,m=d.inputValue,h=d.isLoading,b=d.loadingMessage,v=d.minMenuHeight,g=d.maxMenuHeight,S=d.menuIsOpen,w=d.menuPlacement,O=d.menuPosition,_=d.menuPortalTarget,E=d.menuShouldBlockScroll,A=d.menuShouldScrollIntoView,x=d.noOptionsMessage,P=d.onMenuScrollToTop,C=d.onMenuScrollToBottom;if(!S)return null;var j,k=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,u=n.isSelected,s=n.label,l=n.value,d=p===i,y=a?void 0:function(){return t.onOptionHover(i)},m=a?void 0:function(){return t.selectOption(i)},h="".concat(t.getElementId("option"),"-").concat(r),b={id:h,onClick:m,onMouseMove:y,onMouseOver:y,tabIndex:-1};return e.default.createElement(c,zr({},f,{innerProps:b,data:i,isDisabled:a,isSelected:u,key:h,label:s,type:o,value:l,isFocused:d,innerRef:d?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,u=n.index,s="".concat(t.getElementId("group"),"-").concat(u),l="".concat(s,"-heading");return e.default.createElement(r,zr({},f,{key:s,data:i,options:a,Heading:o,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return k(e,"".concat(u,"-").concat(e.index))})))}if("option"===n.type)return k(n,"".concat(n.index))}));else if(h){var D=b({inputValue:m});if(null===D)return null;j=e.default.createElement(s,f,D)}else{var T=x({inputValue:m});if(null===T)return null;j=e.default.createElement(l,f,T)}var M={minMenuHeight:v,maxMenuHeight:g,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:A},R=e.default.createElement(na,zr({},f,M),(function(n){var r=n.ref,o=n.placerProps,u=o.placement,s=o.maxHeight;return e.default.createElement(i,zr({},f,M,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:h,placement:u}),e.default.createElement(ou,{captureEnabled:y,onTopArrive:P,onBottomArrive:C,lockEnabled:E},(function(n){return e.default.createElement(a,zr({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:h,maxHeight:s,focusedOption:p}),j)})))}));return _||"fixed"===O?e.default.createElement(u,zr({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,u=this.state.selectValue;if(a&&!o){if(i){if(r){var s=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.default.createElement("input",{name:a,type:"hidden",value:s})}var l=u.length>0?u.map((function(n,r){return e.default.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.default.createElement("input",{name:a,type:"hidden"});return e.default.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return e.default.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,u=n.selectValue,s=this.getFocusableOptions();return e.default.createElement(Na,zr({},t,{ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:u,focusableOptions:s}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,u=a.className,s=a.id,l=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.default.createElement(o,zr({},p,{className:u,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),e.default.createElement(n,zr({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:c}),e.default.createElement(i,zr({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.default.createElement(r,zr({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,u=e.menuIsOpen,s=e.inputValue,l={};if(n&&(a!==n.value||i!==n.options||u!==n.menuIsOpen||s!==n.inputValue)){var c=zi(a),f=u?function(e,t){return cu(lu(e,t))}(e,c):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null,d=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);l={selectValue:c,focusedOption:d,focusedValue:p,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Li(Li(Li({},l),y),{},{prevProps:e})}}]),r}(e.Component);gu.defaultProps=uu;var Su,wu,Ou,_u=(Su=gu,Ou=wu=function(t){Ti(r,t);var n=Fi(r);function r(){var e;Pi(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return ki(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=Ei(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return e.default.createElement(Su,zr({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),wu.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Ou);const Eu=_u;var Au=[{value:"assessing",label:"Assessing"},{value:"bookmarking",label:"Bookmarking"},{value:"classifying",label:"Classifying"},{value:"commenting",label:"Commenting"},{value:"describing",label:"Describing"},{value:"editing",label:"Editing"},{value:"highlighting",label:"Highlighting"},{value:"identifying",label:"Identifying"},{value:"linking",label:"Linking"},{value:"moderating",label:"Moderating"},{value:"questioning",label:"Questioning"},{value:"replying",label:"Replying"},{value:"supplementing",label:"Transcription"}];const xu=function(t){var n=t.content?Au.find((function(e){return e.value===t.content})):null;return e.default.createElement("div",{className:"r6o-purposedropdown"},e.default.createElement(Eu,{value:n,onChange:t.onChange,options:Au,isDisabled:!t.editable}))};var Pu=function(t){return e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 940",width:t.width},e.default.createElement("metadata",null,"IcoFont Icons"),e.default.createElement("title",null,"simple-down"),e.default.createElement("glyph",{glyphName:"simple-down",unicode:"",horizAdvX:"1000"}),e.default.createElement("path",{fill:"currentColor",d:"M200 392.6l300 300 300-300-85.10000000000002-85.10000000000002-214.89999999999998 214.79999999999995-214.89999999999998-214.89999999999998-85.10000000000002 85.20000000000005z"}))},Cu=function(t){return e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"180 150 700 800",width:t.width},e.default.createElement("metadata",null,"IcoFont Icons"),e.default.createElement("title",null,"close"),e.default.createElement("glyph",{glyphName:"close",unicode:"",horizAdvX:"1000"}),e.default.createElement("path",{fill:"currentColor",d:"M709.8 206.6c-64.39999999999998 65.50000000000003-128.89999999999998 131.20000000000002-194.19999999999993 197.6-8.600000000000023 8.699999999999989-22.400000000000034 8.800000000000011-31 0-65-66-129.70000000000005-131.8-194.5-197.6-8.600000000000023-8.699999999999989-22.400000000000034-8.599999999999994-30.900000000000034 0.09999999999999432-15.699999999999989 16.200000000000017-31.099999999999994 32.30000000000001-47.099999999999994 48.80000000000001-8.5 8.800000000000011-8.299999999999983 23 0.20000000000001705 31.69999999999999 63.099999999999966 64.19999999999999 127.89999999999998 130.10000000000002 193.59999999999997 197 8.600000000000023 8.699999999999989 8.5 22.80000000000001 0 31.599999999999966-65.19999999999999 66.40000000000009-130.2 132.5-194.7 198.10000000000002-8.5 8.700000000000045-8.5 22.800000000000068 0.20000000000001705 31.399999999999977l47.79999999999998 47.90000000000009c8.600000000000023 8.599999999999909 22.600000000000023 8.599999999999909 31.100000000000023-0.10000000000002274l194.2-197.30000000000007c8.600000000000023-8.699999999999932 22.399999999999977-8.699999999999932 31 0 64.70000000000005 65.80000000000007 129.20000000000005 131.4000000000001 194.20000000000005 197.5 8.599999999999909 8.700000000000045 22.5 8.800000000000068 31 0.10000000000002274 16-16.199999999999932 31.699999999999932-32.19999999999993 47.59999999999991-48.299999999999955 8.600000000000023-8.700000000000045 8.600000000000023-22.899999999999977 0.10000000000002274-31.600000000000023-63.799999999999955-65-128.5-130.89999999999998-194.19999999999993-197.79999999999995-8.600000000000023-8.700000000000045-8.600000000000023-22.900000000000034 0-31.600000000000023 65.19999999999993-66.40000000000003 130.0999999999999-132.5 194.5-198.20000000000005 8.599999999999909-8.699999999999989 8.5-22.799999999999955-0.10000000000002274-31.49999999999997l-47.80000000000007-48.099999999999994c-8.5-8.5-22.399999999999977-8.400000000000006-31 0.29999999999998295z"}))},ju=function(t){return e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:t.width},e.default.createElement("path",{fill:"currentColor",d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"}))};function ku(e){return ku="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},ku(e)}function Du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach((function(t){Mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ku(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ku(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ru(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nu(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}const Iu=function(t){var n=Ru((0,e.useState)(!1),2),r=n[0],o=n[1],i=Ru((0,e.useState)(!1),2),a=i[0],u=i[1],s=t.body.modified||t.body.created,l=t.body.creator&&e.default.createElement("div",{className:"r6o-lastmodified"},e.default.createElement("span",{className:"r6o-lastmodified-by"},t.body.creator.name||t.body.creator.id),t.body.created&&e.default.createElement("span",{className:"r6o-lastmodified-at"},e.default.createElement(Rn,{datetime:t.env.toClientTime(s),locale:Tr.locale()})));return t.readOnly?e.default.createElement("div",{className:"r6o-widget comment"},e.default.createElement("div",{className:"r6o-readonly-comment"},t.body.value),l):e.default.createElement("div",{className:r?"r6o-widget comment editable":"r6o-widget comment"},e.default.createElement(Br,{editable:r,content:t.body.value,onChange:function(e){return t.onUpdate(t.body,Tu(Tu({},t.body),{},{value:e.target.value}))},onSaveAndClose:t.onSaveAndClose}),!r&&l,t.purposeSelector&&e.default.createElement(xu,{editable:r,content:t.body.purpose,onChange:function(e){return t.onUpdate(t.body,Tu(Tu({},t.body),{},{purpose:e.value}))},onSaveAndClose:t.onSaveAndClose}),e.default.createElement("div",{className:a?"r6o-icon r6o-arrow-down r6o-menu-open":"r6o-icon r6o-arrow-down",onClick:function(){return u(!a)}},e.default.createElement(Pu,{width:12})),a&&e.default.createElement(Mr,{onEdit:function(e){o(!0),u(!1)},onDelete:function(e){t.onDelete(t.body),u(!1)},onClickOutside:function(){return u(!1)}}))};function Lu(e){return Lu="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},Lu(e)}function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uu(Object(n),!0).forEach((function(t){Vu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Lu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Lu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Lu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hu=Au.map((function(e){return e.value})),Bu=function(e,t){var n=t?Hu.indexOf(e.purpose)>-1:"commenting"==e.purpose||"replying"==e.purpose;return"TextualBody"===e.type&&(!Object.prototype.hasOwnProperty.call(e,"purpose")||n)},zu=function(e,t){if(!0===t.editable)return!1;if(!1===t.editable)return!0;if("MINE_ONLY"===t.editable){var n,r,o=null===(n=e.creator)||void 0===n?void 0:n.id;return(null===(r=t.env.user)||void 0===r?void 0:r.id)!==o}return t.readOnly},Wu=function(t){var n,r,o=t.annotation?t.annotation.bodies.filter((function(e){return Bu(e,t.purposeSelector)})):[],i=(n=o.find((function(e){return 1==e.draft})),r=o.length>1,n||{type:"TextualBody",value:"",purpose:r?"replying":"commenting",draft:!0}),a=o.filter((function(e){return e!=i})),u=!t.readOnly&&t.annotation,s=0===a.length||!t.disableReply;return e.default.createElement(e.default.Fragment,null,a.map((function(n,r){return e.default.createElement(Iu,{key:r,env:t.env,purposeSelector:t.purposeSelector,readOnly:zu(n,t),body:n,onUpdate:t.onUpdateBody,onDelete:t.onRemoveBody,onSaveAndClose:t.onSaveAndClose})})),u&&s&&e.default.createElement("div",{className:"r6o-widget comment editable"},e.default.createElement(Br,{focus:t.focus,content:i.value,editable:!0,placeholder:a.length>0?Tr.t("Add a reply..."):t.textPlaceHolder||Tr.t("Add a comment..."),onChange:function(e){var n=i.value,r=e.target.value;0===n.length&&r.length>0?t.onAppendBody(Fu(Fu({},i),{},{value:r})):n.length>0&&0===r.length?t.onRemoveBody(i):t.onUpdateBody(i,Fu(Fu({},i),{},{value:r}))},onSaveAndClose:function(){return t.onSaveAndClose()}}),t.purposeSelector&&i.value.length>0&&e.default.createElement(xu,{editable:!0,content:i.purpose,onChange:function(e){return t.onUpdateBody(i,Fu(Fu({},i),{},{purpose:e.value}))},onSaveAndClose:function(){return t.onSaveAndClose()}})))};Wu.disableDelete=function(e,t){return e.bodies.filter((function(e){return Bu(e,t.purposeSelector)})).some((function(e){return zu(e,t)}))};const $u=Wu;function Gu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Di(e,t)}function Yu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Xu=e.default.createContext(null);var qu="unmounted",Zu="exited",Ju="entering",Ku="entered",Qu="exiting",es=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=Zu,r.appearStatus=Ju):o=Ku:o=e.unmountOnExit||e.mountOnEnter?qu:Zu,r.state={status:o},r.nextCallback=null,r}Gu(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===qu?{status:Zu}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ju&&n!==Ku&&(t=Ju):n!==Ju&&n!==Ku||(t=Qu)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Ju?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Zu&&this.setState({status:qu})},r.performEnter=function(t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[e.default.findDOMNode(this),o],a=i[0],u=i[1],s=this.getTimeouts(),l=o?s.appear:s.enter;t||r?(this.props.onEnter(a,u),this.safeSetState({status:Ju},(function(){n.props.onEntering(a,u),n.onTransitionEnd(l,(function(){n.safeSetState({status:Ku},(function(){n.props.onEntered(a,u)}))}))}))):this.safeSetState({status:Ku},(function(){n.props.onEntered(a)}))},r.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:e.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:Qu},(function(){t.props.onExiting(o),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:Zu},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:Zu},(function(){t.props.onExited(o)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],u=i[1];this.props.addEndListener(a,u)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===qu)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,_i(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(Xu.Provider,{value:null},"function"==typeof r?r(t,o):e.default.cloneElement(e.default.Children.only(r),o))},n}(e.default.Component);function ts(){}es.contextType=Xu,es.propTypes={},es.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ts,onEntering:ts,onEntered:ts,onExit:ts,onExiting:ts,onExited:ts},es.UNMOUNTED=qu,es.EXITED=Zu,es.ENTERING=Ju,es.ENTERED=Ku,es.EXITING=Qu;const ns=es;var rs=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Yu(n.className,r):n.setAttribute("class",Yu(n.className&&n.className.baseVal||"",r)));var n,r}))},os=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{baseClassName:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}Gu(n,t);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&rs(e,r),o&&rs(e,o),i&&rs(e,i)},r.render=function(){var t=this.props,n=(t.classNames,_i(t,["classNames"]));return e.default.createElement(ns,zr({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e.default.Component);os.defaultProps={classNames:""},os.propTypes={};const is=os;function as(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?us(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function us(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}const ss=function(t){var n=(0,e.useRef)(),r=as((0,e.useState)(t.initialValue||""),2),o=r[0],i=r[1],a=as((0,e.useState)([]),2),u=a[0],s=a[1],l=as((0,e.useState)(null),2),c=l[0],f=l[1];(0,e.useEffect)((function(){t.focus&&n.current.querySelector("input").focus({preventScroll:!0})}),[]),(0,e.useEffect)((function(){t.onChange&&t.onChange(o)}),[o]);var p=function(){if(null!==c)t.onSubmit(u[c]);else{var e=o.trim();if(e){var n=Array.isArray(t.vocabulary)?t.vocabulary.find((function(t){return(t.label||t).toLowerCase()===e.toLowerCase()})):null;n?t.onSubmit(n):t.onSubmit(e)}}i(""),s([]),f(null)};return e.default.createElement("div",{ref:n,className:"r6o-autocomplete"},e.default.createElement("div",null,e.default.createElement("input",{onKeyDown:function(e){if(13===e.which)p();else if(27===e.which)t.onCancel&&t.onCancel();else if(u.length>0){if(38===e.which)if(null===c)f(0);else{var n=Math.max(0,c-1);f(n)}else if(40===e.which)if(null===c)f(0);else{var r=Math.min(u.length-1,c+1);f(r)}}else 40===e.which&&Array.isArray(t.vocabulary)&&s(t.vocabulary)},onChange:function(e){var n=e.target.value;i(n),f(null),n?function(e){if("function"==typeof t.vocabulary){var n=(o=e,(0,t.vocabulary)(o));n.then?n.then(s):s(n)}else{var r=function(e,t){return t.filter((function(t){return(t.label?t.label:t).toLowerCase().startsWith(e.toLowerCase())}))}(e,t.vocabulary);s(r)}var o}(n):s([])},value:o,placeholder:t.placeholder})),e.default.createElement("ul",null,u.length>0&&u.map((function(t,n){return e.default.createElement("li",{key:"".concat(t.label?t.label:t).concat(n),onClick:p,onMouseEnter:function(){return f(n)},style:c===n?{backgroundColor:"#bde4ff"}:{}},t.label?t.label:t)}))))};function ls(e){return ls="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},ls(e)}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ps(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ls(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ls(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ls(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(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}const ys=function(t){var n=t.annotation?t.annotation.bodies.filter((function(e){return"tagging"===e.purpose})):[],r=n.slice().reverse().find((function(e){return e.draft}))||{type:"TextualBody",value:"",purpose:"tagging",draft:!0},o=n.filter((function(e){return e!=r})),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ds(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),a=i[0],u=i[1],s=function(e){return function(t){u(a!==e&&e)}},l=function(e){return function(n){n.stopPropagation(),t.onRemoveBody(e)}},c=function(e){return e.value||e.source.label};return e.default.createElement("div",{className:"r6o-widget r6o-tag"},o.length>0&&e.default.createElement("ul",{className:"r6o-taglist"},o.map((function(n){return e.default.createElement("li",{key:c(n),onClick:s(n)},e.default.createElement("span",{className:"r6o-label"},c(n)),!t.readOnly&&e.default.createElement(is,{in:a===n,timeout:200,classNames:"r6o-delete"},e.default.createElement("span",{className:"r6o-delete-wrapper",onClick:l(n)},e.default.createElement("span",{className:"r6o-delete"},e.default.createElement(Cu,{width:12})))))}))),!t.readOnly&&e.default.createElement(ss,{focus:t.focus,placeholder:t.textPlaceHolder||Tr.t("Add tag..."),vocabulary:t.vocabulary||[],onChange:function(e){var n=r.value.trim(),o=e.trim();0===n.length&&o.length>0?t.onAppendBody(fs(fs({},r),{},{value:o})):n.length>0&&0===o.length?t.onRemoveBody(r):n!==o&&t.onUpdateBody(r,fs(fs({},r),{},{value:o}))},onSubmit:function(e){var n=e.uri?{type:"SpecificResource",purpose:"tagging",source:{id:e.uri,label:e.label}}:{type:"TextualBody",purpose:"tagging",value:e.label||e};0===r.value.trim().length?t.onAppendBody(n):t.onUpdateBody(r,n)}}))};function ms(e){return ms="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},ms(e)}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t,n){return(t=Ss(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ss(r.key),r)}}function Ss(e){var t=function(e,t){if("object"!==ms(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ms(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ms(t)?t:String(t)}function ws(e,t){return ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ws(e,t)}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Os(e)}var _s=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ws(e,t)}(u,t);var n,r,o,i,a=(o=u,i=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}}(),function(){var e,t=Os(o);if(i){var n=Os(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ms(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,t)).element=e.default.createRef(),n}return n=u,r=[{key:"renderWidget",value:function(e){for(var t=this.props.widget(bs(bs({annotation:e.annotation,readOnly:e.readOnly},e.config),{},{onAppendBody:function(t,n){return e.onAppendBody(t,n)},onUpdateBody:function(t,n,r){return e.onUpdateBody(t,n,r)},onUpsertBody:function(t,n,r){return e.onUpsertBody(t,n,r)},onRemoveBody:function(t,n){return e.onRemoveBody(t,n)},onBatchModify:function(t,n){return e.onBatchModify(t,n)},onSetProperty:function(t,n){return e.onSetProperty(t,n)},onAddContext:function(t){return e.onAddContext(t)},onSaveAndClose:function(){return e.onSaveAndClose()}}));this.element.current.firstChild;)this.element.current.removeChild(this.element.current.lastChild);this.element.current.appendChild(t)}},{key:"componentDidMount",value:function(){this.renderWidget(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.element.current&&this.props.annotation!==e.annotation&&this.renderWidget(e)}},{key:"render",value:function(){return e.default.createElement("div",{ref:this.element,className:"widget"})}}],r&&gs(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.Component),Es=["widget","force"];window.React=e.default,window.ReactDOM=e.default;var As={COMMENT:$u,TAG:ys},xs=[e.default.createElement($u,null),e.default.createElement(ys,null)],Ps=function(t){var n=function(t,n,r){if("string"==typeof t||t instanceof String)return e.default.createElement(As[t],n);if("react"===(null==r?void 0:r.toLowerCase()))return e.default.createElement(t,n);if("plainjs"===(null==r?void 0:r.toLowerCase()))return e.default.createElement(_s,{widget:t,config:n});if(function(e){var t;return"function"==typeof e&&!(null===(t=e.prototype)||void 0===t||!t.isReactComponent)}(o=t)||function(e){return"function"==typeof e&&(String(e).match(/return .+\(['|"].+['|"],\s*\{/g)||String(e).match(/return .+preact_compat/)||String(e).match(/return .+\.createElement/g))}(o))return e.default.createElement(t,n);if("function"==typeof t||t instanceof Function)return e.default.createElement(_s,{widget:t,config:n});throw"".concat(t," is not a valid plugin");var o};if(t.widget){var r=t.widget,o=t.force;return n(r,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Es),o)}return n(t)};const Cs=function(e,t,n,r){var o=e.getBoundingClientRect();t.className="r6o-editor r6o-arrow-top r6o-arrow-left";var i=n.getBoundingClientRect(),a=i.left,u=i.top,s=i.right,l=i.bottom;if(t.style.top="".concat(l-o.top+14,"px"),t.style.left="".concat(a-o.left,"px"),r){var c=t.children[1].getBoundingClientRect(),f=e.ownerDocument.defaultView,p=f.innerWidth,d=f.innerHeight;if(c.right>p&&(t.classList.remove("r6o-arrow-left"),t.classList.add("r6o-arrow-right"),t.style.left="".concat(s-c.width-o.left,"px")),c.bottom>d){t.classList.remove("r6o-arrow-top"),t.classList.add("r6o-arrow-bottom");var y=t.children[1].getBoundingClientRect().height;t.style.top="".concat(u-o.top-y-14,"px")}var m=t.children[1].getBoundingClientRect();if(m.top<0){t.classList.add("pushed","down"),t.style.top="".concat(-o.top,"px");var h=l-o.top;m.height-o.top>h&&t.classList.remove("r6o-arrow-bottom")}m.left<0&&(t.classList.add("pushed","right"),t.style.left="".concat(-o.left,"px")),requestAnimationFrame((function(){return t.style.opacity=1}))}};var js=["draft"];function ks(e){return ks="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},ks(e)}function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ms(e){return function(e){if(Array.isArray(e))return Rs(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){if("string"==typeof e)return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rs(e,t):void 0}}(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 Rs(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 Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Is(e,t)}function Ls(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Fs(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(e){var t=function(e,t){if("object"!==ks(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ks(t)?t:String(t)}var Hs=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,o=t.width,i=t.height;return"".concat(n,", ").concat(r,", ").concat(o,", ").concat(i)},Bs=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Is(e,t)}(u,t);var n,r,o,i,a=(o=u,i=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}}(),function(){var e,t=Us(o);if(i){var n=Us(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ks(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ls(e)}(this,e)});function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Fs(Ls(n=a.call(this,t)),"initResizeObserver",(function(){var e,t=void 0===n.props.autoPosition||n.props.autoPosition;if(null!==(e=window)&&void 0!==e&&e.ResizeObserver){var r=new ResizeObserver((function(){n.state.dragged||Cs(n.props.wrapperEl,n.element.current,n.props.selectedElement,t)}));return r.observe(n.props.wrapperEl),function(){return r.disconnect()}}n.state.dragged||Cs(n.props.wrapperEl,n.element.current,n.props.selectedElement,t)})),Fs(Ls(n),"creationMeta",(function(e){var t={},r=n.props.env.user;return r&&(t.creator={},r.id&&(t.creator.id=r.id),r.displayName&&(t.creator.name=r.displayName),t[e.created?"modified":"created"]=n.props.env.getCurrentTimeAdjusted()),t})),Fs(Ls(n),"getCurrentAnnotation",(function(){return n.state.currentAnnotation.clone()})),Fs(Ls(n),"hasChanges",(function(){var e;return!(null!==(e=n.props.annotation)&&void 0!==e&&e.isEqual(n.state.currentAnnotation))})),Fs(Ls(n),"updateCurrentAnnotation",(function(e,t){n.setState({currentAnnotation:n.state.currentAnnotation.clone(e)},(function(){t?n.onOk():n.props.onChanged&&n.props.onChanged()}))})),Fs(Ls(n),"onAppendBody",(function(e,t){return n.updateCurrentAnnotation({body:[].concat(Ms(n.state.currentAnnotation.bodies),[Ts(Ts({},e),n.creationMeta(e))])},t)})),Fs(Ls(n),"onUpdateBody",(function(e,t,r){return n.updateCurrentAnnotation({body:n.state.currentAnnotation.bodies.map((function(r){return r===e?Ts(Ts({},t),n.creationMeta(t)):r}))},r)})),Fs(Ls(n),"onRemoveBody",(function(e,t){return n.updateCurrentAnnotation({body:n.state.currentAnnotation.bodies.filter((function(t){return t!==e}))},t)})),Fs(Ls(n),"onUpsertBody",(function(e,t,r){if(null==e&&null!=t)n.onAppendBody(t,r);else if(null!=e&&null!=t)n.onUpdateBody(e,t,r);else if(null!=e&&null==t){var o=n.state.currentAnnotation.bodies.find((function(t){return t.purpose===e.purpose}));o?n.onUpdateBody(o,e,r):n.onAppendBody(e,r)}})),Fs(Ls(n),"onBatchModify",(function(e,t){var r=e.filter((function(e){return"upsert"===e.action&&e.body})).map((function(e){return{previous:n.state.currentAnnotation.bodies.find((function(t){return t.purpose===e.body.purpose})),updated:Ts(Ts({},e.body),n.creationMeta(e.body))}})),o=e.filter((function(e){return"remove"===e.action})).map((function(e){return e.body})),i=[].concat(Ms(e.filter((function(e){return"append"===e.action||"upsert"===e.action&&e.updated&&!e.previous})).map((function(e){return Ts(Ts({},e.body),n.creationMeta(e.body))}))),Ms(r.filter((function(e){return!e.previous})).map((function(e){return e.updated})))),a=[].concat(Ms(e.filter((function(e){return"update"===e.action||"upsert"===e.action&&e.updated&&e.previous})).map((function(e){return{previous:e.previous,updated:Ts(Ts({},e.updated),n.creationMeta(e.updated))}}))),Ms(r.filter((function(e){return e.previous})))),u=[].concat(Ms(n.state.currentAnnotation.bodies.filter((function(e){return!o.includes(e)})).map((function(e){var t=a.find((function(t){return t.previous===e}));return t?t.updated:e}))),Ms(i));n.updateCurrentAnnotation({body:u},t)})),Fs(Ls(n),"onSetProperty",(function(e,t){if(["@context","id","type","body","target"].includes(e))throw new Exception("Cannot set ".concat(e," - not allowed"));if(t)n.updateCurrentAnnotation(Fs({},e,t));else{var r=n.currentAnnotation.clone();delete r[e],n.setState({currentAnnotation:r})}})),Fs(Ls(n),"onAddContext",(function(e){var t=n.state.currentAnnotation,r=Array.isArray(t.context)?t.context:[t.context];r.indexOf(e)<0&&(r.push(e),n.updateCurrentAnnotation({"@context":r}))})),Fs(Ls(n),"onCancel",(function(){return n.props.onCancel(n.props.annotation)})),Fs(Ls(n),"onOk",(function(){var e=function(e){return e.clone({body:e.bodies.map((function(e){return e.draft,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,js)}))})},t=n.state.currentAnnotation;0!==t.bodies.length||n.props.allowEmpty?t.isSelection?n.props.onAnnotationCreated(e(t).toAnnotation()):n.props.onAnnotationUpdated(e(t),n.props.annotation):t.isSelection?n.onCancel():n.props.onAnnotationDeleted(n.props.annotation)})),Fs(Ls(n),"onDelete",(function(){return n.props.onAnnotationDeleted(n.props.annotation)})),n.element=e.default.createRef(),n.state={currentAnnotation:t.annotation,dragged:!1,selectionBounds:Hs(t.selectedElement)},n}return n=u,r=[{key:"componentWillReceiveProps",value:function(e){var t,n=this.state.selectionBounds,r=Hs(e.selectedElement);null!==(t=this.props.annotation)&&void 0!==t&&t.isEqual(e.annotation)?this.setState({selectionBounds:r}):this.setState({currentAnnotation:e.annotation,selectionBounds:r}),this.props.modifiedTarget!=e.modifiedTarget&&this.state.currentAnnotation&&this.updateCurrentAnnotation({target:this.props.modifiedTarget}),n!=r&&this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}},{key:"componentDidMount",value:function(){var e=this;this.removeObserver=this.initResizeObserver(),new MutationObserver((function(){e.element.current&&(e.removeObserver&&e.removeObserver(),e.removeObserver=e.initResizeObserver())})).observe(this.element.current,{childList:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.removeObserver&&this.removeObserver()}},{key:"render",value:function(){var t=this,n=this.state.currentAnnotation,r=this.props.widgets?this.props.widgets.map(Ps):xs,o=n&&(n.bodies.length>0||this.props.allowEmpty)&&!this.props.readOnly&&!n.isSelection&&!r.some((function(e){return!!e.type.disableDelete&&e.type.disableDelete(n,Ts(Ts({},e.props),{},{readOnly:t.props.readOnly,env:t.props.env}))}));return e.default.createElement(yn(),{disabled:!this.props.detachable,handle:".r6o-draggable",cancel:".r6o-btn, .r6o-btn *",onDrag:function(){return t.setState({dragged:!0})}},e.default.createElement("div",{ref:this.element,className:this.state.dragged?"r6o-editor dragged":"r6o-editor"},e.default.createElement("div",{className:"r6o-arrow"}),e.default.createElement("div",{className:"r6o-editor-inner"},r.map((function(r,o){return e.default.cloneElement(r,{key:"".concat(o),focus:0===o,annotation:n,readOnly:t.props.readOnly,env:t.props.env,onAppendBody:t.onAppendBody,onUpdateBody:t.onUpdateBody,onRemoveBody:t.onRemoveBody,onUpsertBody:t.onUpsertBody,onBatchModify:t.onBatchModify,onSetProperty:t.onSetProperty,onAddContext:t.onAddContext,onSaveAndClose:t.onOk})})),this.props.readOnly?e.default.createElement("div",{className:"r6o-footer"},e.default.createElement("button",{className:"r6o-btn",onClick:this.onCancel},Tr.t("Close"))):e.default.createElement("div",{className:this.props.detachable?"r6o-footer r6o-draggable":"r6o-footer"},o&&e.default.createElement("button",{className:"r6o-btn left delete-annotation",title:Tr.t("Delete"),onClick:this.onDelete},e.default.createElement(ju,{width:12})),e.default.createElement("button",{className:"r6o-btn outline",onClick:this.onCancel},Tr.t("Cancel")),e.default.createElement("button",{className:"r6o-btn ",onClick:this.onOk},Tr.t("Ok"))))))}}],r&&Ns(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.Component);function zs(e){return zs="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},zs(e)}function Ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qs(r.key),r)}}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$s(e,t)}function Gs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(e)}function Xs(e,t,n){return(t=qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qs(e){var t=function(e,t){if("object"!==zs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zs(t)?t:String(t)}var Zs=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$s(e,t)}(u,t);var n,r,o,i,a=(o=u,i=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}}(),function(){var e,t=Ys(o);if(i){var n=Ys(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===zs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gs(e)}(this,e)});function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Xs(Gs(n=a.call(this,t)),"clearState",(function(e){return n.setState({selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,beforeHeadlessModify:null},e)})),Xs(Gs(n),"forwardEvent",(function(e,t){n.annotationLayer.on(e,(function(e,r){n.props[t](e.clone(),r)}))})),Xs(Gs(n),"onKeyUp",(function(e){if(27===e.which){if(!n.props.config.disableEscapeKey){n.annotationLayer.stopDrawing();var t=n.state.selectedAnnotation;t&&(n.cancelSelected(),n.props.onCancelSelected(t))}}else if(46===e.which&&!n.props.config.disableDeleteKey){var r=n.state.selectedAnnotation;r&&(r.isSelection?n.onCancelAnnotation(r):n.onDeleteAnnotation(r))}})),Xs(Gs(n),"handleStartSelect",(function(e){return n.props.onSelectionStarted(e)})),Xs(Gs(n),"handleSelect",(function(e,t){n.state.editorDisabled?n.onHeadlessSelect(e,t):n.onNormalSelect(e,t)})),Xs(Gs(n),"onNormalSelect",(function(e,t){var r=e.annotation,o=e.element;if(r){var i=function(e){n.setState({selectedAnnotation:r,selectedDOMElement:o,modifiedTarget:null,beforeHeadlessModify:null},(function(){t||(r.isSelection?n.props.onSelectionCreated(r.clone()):n.props.onAnnotationSelected(r.clone(),o)),e&&e()}))},a=n.state.selectedAnnotation;a&&!a.isEqual(r)?n.clearState((function(){n.props.onCancelSelected(a.clone()),i((function(){return n.props.onChangeSelected(r.clone(),a.clone())}))})):i()}else{var u=n.state.selectedAnnotation;u?n.clearState((function(){n.props.onCancelSelected(u)})):n.clearState()}})),Xs(Gs(n),"onHeadlessSelect",(function(e,t){n.saveSelected().then((function(){n.onNormalSelect(e,t);var r=e.annotation;if(r&&!r.isSelection){var o=n.annotationLayer.selectAnnotation(e.annotation,!0);n.setState({selectedDOMElement:o.element})}}))})),Xs(Gs(n),"handleUpdateTarget",(function(e,t){n.setState({selectedDOMElement:e,modifiedTarget:t});var r=JSON.parse(JSON.stringify(t));n.props.onSelectionTargetChanged(r)})),Xs(Gs(n),"overrideAnnotationId",(function(e){return function(t){var r=e.id;n.state.selectedAnnotation?n.clearState((function(){n.annotationLayer.overrideId(r,t)})):n.annotationLayer.overrideId(r,t)}})),Xs(Gs(n),"onCreateOrUpdateAnnotation",(function(e,t){return function(r,o){var i=r.isSelection?r.toAnnotation():r;i=n.state.modifiedTarget?i.clone({target:n.state.modifiedTarget}):i.clone(),n.clearState((function(){n.annotationLayer.deselect(),n.annotationLayer.addOrUpdateAnnotation(i,o),o?n.props[e](i,o.clone()):n.props[e](i,n.overrideAnnotationId(i)),t&&t()}))}})),Xs(Gs(n),"onDeleteAnnotation",(function(e){n.clearState(),n.annotationLayer.removeAnnotation(e),n.props.onAnnotationDeleted(e)})),Xs(Gs(n),"onCancelAnnotation",(function(e,t){n.annotationLayer.deselect(),n.props.onCancelSelected(e),n.clearState(t)})),Xs(Gs(n),"addAnnotation",(function(e){return n.annotationLayer.addOrUpdateAnnotation(e.clone())})),Xs(Gs(n),"addDrawingTool",(function(e){return n.annotationLayer.addDrawingTool(e)})),Xs(Gs(n),"cancelSelected",(function(){return new Promise((function(e){n.annotationLayer.deselect(),n.state.selectedAnnotation?n.clearState(e):e()}))})),Xs(Gs(n),"getAnnotationById",(function(e){var t;return null===(t=n.annotationLayer.findShape(e))||void 0===t?void 0:t.annotation})),Xs(Gs(n),"getAnnotations",(function(){return n.annotationLayer.getAnnotations().map((function(e){return e.clone()}))})),Xs(Gs(n),"getImageSnippetById",(function(e){var t=n.annotationLayer.findShape(e);if(t)return rn(n.props.env.image,t)})),Xs(Gs(n),"getSelected",(function(){var e;if(n.state.selectedAnnotation)return n.state.editorDisabled?n.state.selectedAnnotation:null===(e=n._editor.current)||void 0===e?void 0:e.getCurrentAnnotation()})),Xs(Gs(n),"getSelectedImageSnippet",(function(){return n.annotationLayer.getSelectedImageSnippet()})),Xs(Gs(n),"getCurrentDrawingTool",(function(){var e;return null===(e=n.annotationLayer.tools)||void 0===e?void 0:e.current})),Xs(Gs(n),"getSelectedShape",(function(){return n.annotationLayer.selectedShape})),Xs(Gs(n),"listDrawingTools",(function(){return n.annotationLayer.listDrawingTools()})),Xs(Gs(n),"removeAnnotation",(function(e){n.annotationLayer.removeAnnotation(e),n.state.selectedAnnotation&&n.setState({selectedAnnotation:null})})),Xs(Gs(n),"removeDrawingTool",(function(e){return n.annotationLayer.removeDrawingTool(e)})),Xs(Gs(n),"saveSelected",(function(){return new Promise((function(e){var t=n.state.selectedAnnotation;if(t)if(n._editor.current)n._editor.current.onOk(),e();else if(t.isSelection)t.bodies.length>0||n.props.config.allowEmpty?n.onCreateOrUpdateAnnotation("onAnnotationCreated",e)(t):(n.annotationLayer.deselect(),e());else{var r=n.state,o=r.beforeHeadlessModify,i=r.modifiedTarget;o?n.onCreateOrUpdateAnnotation("onAnnotationUpdated",e)(t,o):i?n.onCreateOrUpdateAnnotation("onAnnotationUpdated",e)(t,t):n.onCancelAnnotation(t,e)}else e()}))})),Xs(Gs(n),"selectAnnotation",(function(e){var t=n.annotationLayer.selectAnnotation(e,!0);if(t)return n.handleSelect(t,!0),t.annotation.clone();n.clearState()})),Xs(Gs(n),"setAnnotations",(function(e){return n.annotationLayer.init(e.map((function(e){return e.clone()})))})),Xs(Gs(n),"setDrawingTool",(function(e){return n.annotationLayer.setDrawingTool(e)})),Xs(Gs(n),"setVisible",(function(e){n.annotationLayer.setVisible(e),e||n.clearState()})),Xs(Gs(n),"updateSelected",(function(e,t){return new Promise((function(r){n.state.selectedAnnotation&&(t?n.state.selectedAnnotation.isSelection?n.onCreateOrUpdateAnnotation("onAnnotationCreated",r)(e):n.onCreateOrUpdateAnnotation("onAnnotationUpdated",r)(e,n.state.selectedAnnotation):n.setState({selectedAnnotation:e,beforeHeadlessModify:n.state.beforeHeadlessModify||n.state.selectedAnnotation},r))}))})),n.state={selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,readOnly:n.props.config.readOnly,editorDisabled:n.props.config.disableEditor,widgets:n.props.config.widgets,beforeHeadlessModify:null},n._editor=e.default.createRef(),n}return n=u,(r=[{key:"componentDidMount",value:function(){this.annotationLayer=new pn(this.props),this.annotationLayer.on("load",this.props.onLoad),this.annotationLayer.on("startSelection",this.handleStartSelect),this.annotationLayer.on("select",this.handleSelect),this.annotationLayer.on("updateTarget",this.handleUpdateTarget),this.forwardEvent("clickAnnotation","onClickAnnotation"),this.forwardEvent("mouseEnterAnnotation","onMouseEnterAnnotation"),this.forwardEvent("mouseLeaveAnnotation","onMouseLeaveAnnotation"),document.addEventListener("keyup",this.onKeyUp)}},{key:"componentWillUnmount",value:function(){this.annotationLayer.destroy(),document.removeEventListener("keyup",this.onKeyUp)}},{key:"disableEditor",get:function(){return this.state.editorDisabled},set:function(e){this.setState({editorDisabled:e})}},{key:"disableSelect",get:function(){return this.annotationLayer.disableSelect},set:function(e){this.annotationLayer.disableSelect=e}},{key:"formatters",get:function(){return this.annotationLayer.formatters},set:function(e){this.annotationLayer.formatters=e,this.annotationLayer.redraw()}},{key:"readOnly",get:function(){return this.state.readOnly},set:function(e){this.annotationLayer.readOnly=e,this.setState({readOnly:e})}},{key:"widgets",get:function(){return this.state.widgets},set:function(e){this.setState({widgets:e})}},{key:"render",value:function(){var t,n=this.state.selectedAnnotation&&!this.state.editorDisabled,r=this.state.readOnly||(null===(t=this.state.selectedAnnotation)||void 0===t?void 0:t.readOnly);return n&&e.default.createElement(Bs,{ref:this._editor,detachable:!0,wrapperEl:this.props.wrapperEl,annotation:this.state.selectedAnnotation,modifiedTarget:this.state.modifiedTarget,selectedElement:this.state.selectedDOMElement,readOnly:r,allowEmpty:this.props.config.allowEmpty,widgets:this.state.widgets,env:this.props.env,onAnnotationCreated:this.onCreateOrUpdateAnnotation("onAnnotationCreated"),onAnnotationUpdated:this.onCreateOrUpdateAnnotation("onAnnotationUpdated"),onAnnotationDeleted:this.onDeleteAnnotation,onCancel:this.onCancelAnnotation})}}])&&Ws(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.Component),Js=0;function Ks(e){return Ks="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},Ks(e)}function Qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tl(r.key),r)}}function el(e,t,n){return(t=tl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e){var t=function(e,t){if("object"!==Ks(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ks(t)?t:String(t)}var nl=function(){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),el(this,"handleAnnotationCreated",(function(e,t){return r._emitter.emit("createAnnotation",e.underlying,t)})),el(this,"handleAnnotationDeleted",(function(e){return r._emitter.emit("deleteAnnotation",e.underlying)})),el(this,"handleAnnotationSelected",(function(e,t){return r._emitter.emit("selectAnnotation",e.underlying,t)})),el(this,"handleAnnotationUpdated",(function(e,t){return r._emitter.emit("updateAnnotation",e.underlying,t.underlying)})),el(this,"handleCancelSelected",(function(e){return r._emitter.emit("cancelSelected",e.underlying)})),el(this,"handleChangeSelected",(function(e,t){return r._emitter.emit("changeSelected",e.underlying,t.underlying)})),el(this,"handleClickAnnotation",(function(e,t){return r._emitter.emit("clickAnnotation",e.underlying,t)})),el(this,"handleLoad",(function(e){return r._emitter.emit("load",e)})),el(this,"handleSelectionCreated",(function(e){return r._emitter.emit("createSelection",e.underlying)})),el(this,"handleSelectionStarted",(function(e){return r._emitter.emit("startSelection",e)})),el(this,"handleSelectionTargetChanged",(function(e){return r._emitter.emit("changeSelectionTarget",e)})),el(this,"handleMouseEnterAnnotation",(function(e,t){return r._emitter.emit("mouseEnterAnnotation",e.underlying,t)})),el(this,"handleMouseLeaveAnnotation",(function(e,t){return r._emitter.emit("mouseLeaveAnnotation",e.underlying,t)})),el(this,"_wrap",(function(e){return"Annotation"===(null==e?void 0:e.type)?new J(e):e})),el(this,"addAnnotation",(function(e,t){return r._app.current.addAnnotation(new J(e,{readOnly:t}))})),el(this,"addDrawingTool",(function(e){return r._app.current.addDrawingTool(e)})),el(this,"cancelSelected",(function(){return r._app.current.cancelSelected()})),el(this,"clearAnnotations",(function(){return r.setAnnotations([])})),el(this,"clearAuthInfo",(function(){return r._env.user=null})),el(this,"destroy",(function(){e.default.unmountComponentAtNode(r._appContainerEl),r._element.parentNode.insertBefore(r._env.image,r._element),r._element.parentNode.removeChild(r._element)})),el(this,"getAnnotationById",(function(e){var t=r._app.current.getAnnotationById(e);return null==t?void 0:t.underlying})),el(this,"getAnnotations",(function(){return r._app.current.getAnnotations().map((function(e){return e.underlying}))})),el(this,"getImageSnippetById",(function(e){return r._app.current.getImageSnippetById(e)})),el(this,"getSelected",(function(){var e=r._app.current.getSelected();return null==e?void 0:e.underlying})),el(this,"getSelectedImageSnippet",(function(){return r._app.current.getSelectedImageSnippet()})),el(this,"getCurrentDrawingTool",(function(){return r._app.current.getCurrentDrawingTool()})),el(this,"getSelectedShape",(function(){return r._app.current.getSelectedShape()})),el(this,"listDrawingTools",(function(){return r._app.current.listDrawingTools()})),el(this,"loadAnnotations",(function(e){return fetch(e).then((function(e){return e.json()})).then((function(e){return r.setAnnotations(e),e}))})),el(this,"off",(function(e,t){return r._emitter.off(e,t)})),el(this,"on",(function(e,t){return r._emitter.on(e,t)})),el(this,"once",(function(e,t){return r._emitter.once(e,t)})),el(this,"removeAnnotation",(function(e){return r._app.current.removeAnnotation(r._wrap(e))})),el(this,"removeDrawingTool",(function(e){return r._app.current.removeDrawingTool(e)})),el(this,"saveSelected",(function(){return r._app.current.saveSelected()})),el(this,"selectAnnotation",(function(e){var t=r._app.current.selectAnnotation(r._wrap(e));return null==t?void 0:t.underlying})),el(this,"setAnnotations",(function(e){var t=(e||[]).map((function(e){return new J(e)}));r._app.current.setAnnotations(t)})),el(this,"setAuthInfo",(function(e){return r._env.user=e})),el(this,"setDrawingTool",(function(e){return r._app.current.setDrawingTool(e)})),el(this,"setServerTime",(function(e){return r._env.setServerTime(e)})),el(this,"setVisible",(function(e){return r._app.current.setVisible(e)})),el(this,"updateSelected",(function(e,t){var n=null;"Annotation"===e.type?n=new J(e):"Selection"===e.type&&(n=new oe(e.target,e.body)),n&&r._app.current.updateSelected(n,t)})),this._app=e.default.createRef(),this._emitter=new(o()),n.disableEditor=n.disableEditor||n.headless;var i=n.image.nodeType?n.image:document.getElementById(n.image);i.style.display="block",this._env={setServerTime:function(e){var t=Date.now();Js=e-t},getCurrentTimeAdjusted:function(){return new Date(Date.now()+Js).toISOString()},toClientTime:function(e){return Date.parse(e)-Js}},this._env.image=i,function(e,t){if(e){var n="auto"===e?window.navigator.userLanguage||window.navigator.language:e,r=n.split("-")[0].toLowerCase(),o=[n,r].find((function(e){return kr.includes(e)}));o||console.warn("Unsupported locale '".concat(n,"'. Falling back to default en.")),Tr.init(o,t)}else Tr.init(null,t)}(n.locale,n.messages),this._element=document.createElement("DIV"),this._element.style.position="relative",this._element.style.display="inline-block",i.parentNode.insertBefore(this._element,i),this._element.appendChild(i),this._appContainerEl=document.createElement("DIV"),this._element.appendChild(this._appContainerEl),e.default.render(e.default.createElement(Zs,{ref:this._app,env:this._env,wrapperEl:this._element,config:n,onSelectionStarted:this.handleSelectionStarted,onSelectionCreated:this.handleSelectionCreated,onSelectionTargetChanged:this.handleSelectionTargetChanged,onAnnotationCreated:this.handleAnnotationCreated,onAnnotationSelected:this.handleAnnotationSelected,onAnnotationUpdated:this.handleAnnotationUpdated,onAnnotationDeleted:this.handleAnnotationDeleted,onCancelSelected:this.handleCancelSelected,onChangeSelected:this.handleChangeSelected,onClickAnnotation:this.handleClickAnnotation,onLoad:this.handleLoad,onMouseEnterAnnotation:this.handleMouseEnterAnnotation,onMouseLeaveAnnotation:this.handleMouseLeaveAnnotation}),this._appContainerEl)}var n,r;return n=t,(r=[{key:"disableEditor",get:function(){return this._app.current.disableEditor},set:function(e){this._app.current.disableEditor=e}},{key:"disableSelect",get:function(){return this._app.current.disableSelect},set:function(e){this._app.current.disableSelect=e}},{key:"formatters",get:function(){return this._app.current.formatters||[]},set:function(e){if(e){var t=Array.isArray(e)?e:[e];this._app.current.formatters=t}else this._app.current.formatters=null}},{key:"readOnly",get:function(){return this._app.current.readOnly},set:function(e){this._app.current.readOnly=e}},{key:"widgets",get:function(){return this._app.current.widgets},set:function(e){this._app.current.widgets=e}}])&&Qs(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(),rl=function(e){return new nl(e)}})(),r})()));
|
|
3
|
+
//# sourceMappingURL=annotorious.min.js.map
|