web-input-material 0.0.490 → 0.0.491

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.
@@ -1,9 +1,9 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("webInputMaterial",[],t):"object"==typeof exports?exports.webInputMaterial=t():e.webInputMaterial=t()}(this,function(){return function(){var __webpack_modules__=[function(e,t,n){e.exports=n(57)},function(e,t,n){e.exports=n(56)},function(e,t,n){n.d(t,{C6:function(){return o},Cl:function(){return i},Ju:function(){return a},fX:function(){return l},zs:function(){return s}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(7);const a=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}(n(46)),s="14.3.5";var l,u={exports:{}};
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("webInputMaterial",[],t):"object"==typeof exports?exports.webInputMaterial=t():e.webInputMaterial=t()}(this,function(){return function(){var __webpack_modules__=[function(e,t,n){e.exports=n(60)},function(e,t,n){e.exports=n(59)},function(e,t,n){n.d(t,{C6:function(){return o},Cl:function(){return i},Ju:function(){return a},fX:function(){return l},zs:function(){return s}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(7);const a=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}(n(48)),s="14.3.5";var l,u={exports:{}};
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */l=u,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}l.exports?(t.default=t,l.exports=t):window.classNames=t}();const c=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(u.exports),d={portalElement:null,setPortalElement:null},f=o.createContext(d),p=e=>e.replace(/(-[a-z])/g,e=>e.toUpperCase().replace("-","")),h=e=>e.replace(/(^[a-z]+|[A-Z][a-z]*|\d+)/g,e=>"-"+e.toLowerCase()).slice(1),m=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e).map(e=>`mdc-theme--${h(e)}`),_=o.forwardRef(function({tag:e="div",theme:t,element:n,...o},i){const a=n?n.props(o):o,s=n?v(i,n.reactRef):i;return r.jsx(e,{...a,ref:s})}),v=(...e)=>t=>{for(const n of e)"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},g=(e,t)=>{"function"==typeof e?e(t):e&&"current"in e&&(e.current=t)};function y(e){const t=o.forwardRef(e),n=(e,t)=>r.jsx(r.Fragment,{});return n.displayName=e.constructor.name||"RMWCComponent",t.displayName=n.displayName,t}const b={blur:"onBlur",cancel:"onCancel",click:"onClick",close:"onClose",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",auxclick:"onAuxClick",doubleclick:"onDoubleClick",dragend:"onDragEnd",dragstart:"onDragStart",drop:"onDrop",focus:"onFocus",input:"onInput",invalid:"onInvalid",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",mousedown:"onMouseDown",mouseup:"onMouseUp",paste:"onPaste",pause:"onPause",play:"onPlay",pointercancel:"onPointerCancel",pointerdown:"onPointerDown",pointerup:"onPointerUp",ratechange:"onRateChange",reset:"onReset",seeked:"onSeeked",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchstart:"onTouchStart",volumechange:"onVolumeChange",abort:"onAbort",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",animationstart:"onAnimationStart",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",drag:"onDrag",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",durationchange:"onDurationChange",emptied:"onEmptied",encrypted:"onEncrypted",ended:"onEnded",error:"onError",gotpointercapture:"onGotPointerCapture",load:"onLoad",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",lostpointercapture:"onLostPointerCapture",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",playing:"onPlaying",pointermove:"onPointerMove",pointerout:"onPointerOut",pointerover:"onPointerOver",progress:"onProgress",scroll:"onScroll",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",toggle:"onToggle",touchmove:"onTouchMove",transitionend:"onTransitionEnd",waiting:"onWaiting",wheel:"onWheel",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",pointerenter:"onPointerEnter",pointerleave:"onPointerLeave",change:"onChange",select:"onSelect",beforeinput:"onBeforeInput",compositionend:"onCompositionEnd",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate"},E=e=>b[e]||e;class C{constructor(e){this._classes=new Set,this._events={},this._style={},this._props={},this._onChange=null,this.reactRef=o.createRef(),this._onChange=e,this.onChange=this.onChange.bind(this),this.addClass=this.addClass.bind(this),this.removeClass=this.removeClass.bind(this),this.hasClass=this.hasClass.bind(this),this.setProp=this.setProp.bind(this),this.getProp=this.getProp.bind(this),this.removeProp=this.removeProp.bind(this),this.setStyle=this.setStyle.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this)}onChange(){this._onChange&&this._onChange()}destroy(){this._onChange=null,this._events={},this._style={},this._props={},this._classes=new Set}addClass(e){this._classes.has(e)||(this._classes.add(e),this.onChange())}removeClass(e){this._classes.has(e)&&(this._classes.delete(e),this.onChange())}hasClass(e){return this._classes.has(e)}setProp(e,t,n=!1){this._props[e]!==t&&(this._props[e]=t,!n&&this.onChange())}getProp(e){return this._props[e]}removeProp(e){void 0!==this._props[e]&&(delete this._props[e],this.onChange())}props(e){const{className:t="",style:n={}}=e,r=Object.entries(e).reduce((e,[t,n])=>{const r=this._events[t];if("function"==typeof n&&"function"==typeof r){const o=e=>(r(e),n(e));e[t]=o}return e},{...this._events}),o=c(t,[...this._classes]),i={...this._style,...n};return{...e,...this._props,...r,style:i,className:o}}setStyle(e,t){e=e.startsWith("--")?e:p(e),this._style[e]!==t&&(this._style[e]=t,this.onChange())}addEventListener(e,t){const n=E(e);this._events[n]!==t&&(this._events[n]=t,this.onChange())}removeEventListener(e,t){const n=E(e);this._events[n]&&(delete this._events[n],this.onChange())}get ref(){return this.reactRef.current}}const x="rmwcPortal";const A=a.focusTrap.FocusTrap;const I=typeof window<"u"&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect;let O=!1,T=0;function S(){return++T}const w=o.useId,P=e=>{if(void 0!==w){let t=w();return e??t}let t=e??(O?S():null),[n,r]=o.useState(t);return I(()=>{null===n&&r(S())},[]),o.useEffect(()=>{!1===O&&(O=!0)},[]),e??n??void 0},L=(e,t)=>(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t);class N{constructor(){this.events_={}}on(e,t){this.events_=this.events_||{},this.events_[e]=this.events_[e]||[],this.events_[e].push(t)}off(e,t){this.events_=this.events_||{},e in this.events_&&this.events_[e].splice(this.events_[e].indexOf(t),1)}trigger(e,...t){if(this.events_=this.events_||{},e in this.events_)for(var n=0;n<this.events_[e].length;n++)this.events_[e][n].apply(this,Array.prototype.slice.call(arguments,1))}}const R=o.createContext(!1),D=o.createContext(!1),M=(e,t=1,n=1)=>{window.requestAnimationFrame(()=>{n>=t?e():M(e,t,n+1)})},k=s;t.ArrayEmitter=class extends N{constructor(){super(...arguments),this.array=[]}push(...e){const t=this.array.push(...e);return this.trigger("change"),t}empty(){this.array.length=0,this.trigger("change")}remove(e){const t=this.array.indexOf(e);return t>-1&&(this.array.splice(t,1),this.trigger("change"),!0)}},t.DataTableContext=R,t.DataTableHeadContext=D,t.EventEmitter=N,t.FoundationElement=C,t.Portal=e=>{const t=o.useContext(f),n=null==t?void 0:t.setPortalElement,i=o.useCallback(e=>{null!==e&&n&&n(e)},[n]);return r.jsx("div",{ref:i,id:x,...e})},t.PortalChild=function({children:e,renderTo:t,menuSurfaceDomPositionRef:n}){const[a,s]=o.useState(),{portalElement:l}=o.useContext(f);return o.useEffect(()=>{let e;!0===t&&l?e=l:!0===t?(e=(null==document?void 0:document.getElementById(x))??void 0,e||console.warn('No default Portal found. Did you forget to include it in the root of your app? `import { Portal } from "@rmwc/base";`')):"string"==typeof t?(e=(null==document?void 0:document.querySelector(t))??void 0,e||console.warn(`The selector you provided for renderToPortal "${t}" didn't find any elements.`)):t instanceof Element&&(e=t),e!==a&&s(e)},[t,a,l]),t?a?n?r.jsx("div",{ref:n,children:i.createPortal(e,a)}):i.createPortal(e,a):null:r.jsx(r.Fragment,{children:e})},t.PortalContext=f,t.PortalProvider=({children:e})=>{const[t,n]=o.useState(null);return r.jsx(f.Provider,{value:{portalElement:t,setPortalElement:n},children:e})},t.RMWC_VERSION=k,t.Tag=_,t.classNames=c,t.closest=(e,t)=>{if(e instanceof Element){if(e&&e.closest)return e.closest(t);{let n=e;for(;n;){if(L(n,t))return n;n=n.parentElement}}}return null},t.createComponent=y,t.createMemoComponent=function(e){const t=y(e);return o.memo(t)},t.debounce=function(e,t){var n;return function(){var r=this,o=arguments;null!==n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}},t.deprecationWarning=e=>{},t.emptyClientRect={bottom:0,height:0,left:0,right:0,top:0,width:0},t.eventsMap=b,t.focusTrapFactory=(e,t)=>new A(e,t),t.getDisplayName=e=>{var t,n,r;const o=Array.isArray(e)?e[0]:e;return(null==(t=null==o?void 0:o.type)?void 0:t.displayName)||(null==(n=null==o?void 0:o.constructor)?void 0:n.displayName)||(null==o?void 0:o.displayName)||(null==o?void 0:o.name)||(null==(r=null==o?void 0:o.constructor)?void 0:r.name)||"Unknown"},t.handleDeprecations=(e,t,n)=>{e={...e};for(const n in t){const r=t[n];let o,i=e=>e;Array.isArray(r)?(o=r[0],i=r[1]):o=r,void 0!==e[n]&&(""===o||(e[o]=i(e[n]),e[o]!==e[n]&&(e[n],e[o])),delete e[n])}return e},t.handleRef=g,t.matches=L,t.mergeRefs=v,t.parseThemeOptions=m,t.portalContextDefaultValues=d,t.raf=M,t.randomId=e=>`${e}-${(Math.random()+Math.random()+1).toString(36).substring(2)}`,t.toCamel=p,t.toDashCase=h,t.triggerWindowResize=()=>{window.dispatchEvent(new Event("resize"))},t.useClassNames=(e,t)=>c(e.className,...e.theme?m(e.theme):[],..."function"==typeof t?t(e):t),t.useFoundation=({foundation:e,props:t,elements:n,api:r})=>{const[,i]=o.useReducer(e=>e+1,0),a=o.useRef(t);a.current=t;const s=o.useMemo(()=>Object.keys(n).reduce((e,t)=>(e[t]=new C(()=>{i()}),e),{}),[]),l=o.useMemo(()=>{const t=e({...s,getProps:()=>a.current,emit:(...e)=>(e=>(t,n,r=!1)=>{let o;o=new CustomEvent(t,{detail:n,bubbles:r}),Object.defineProperty(o,"target",{value:n,writable:!1}),Object.defineProperty(o,"currentTarget",{value:n,writable:!1});const i=t;return e[i]&&e[i](o),o})(a.current)(...e)});return r&&g(a.current.apiRef,r({foundation:t,...s})),t},[]);return o.useEffect(()=>{const e=l;return e.init(),r&&g(a.current.apiRef,r({foundation:e,...s})),g(a.current.foundationRef,e),()=>{e.destroy(),g(a.current.apiRef,null),g(a.current.foundationRef,null),Object.values(s).map(e=>e.destroy()),a.current={}}},[l,s]),{foundation:l,...s}},t.useId=(e,t)=>{var n;const r=null==(n=t.label)?void 0:n.replace(/\s/g,"___"),o=P(r);return t.id?t.id:`${e}-${o}`},t.withTheme=e=>{const t=({theme:t,className:n,...o})=>{if(t){const i=c(n,m(t));return r.jsx(e,{className:i,...o})}return r.jsx(e,{className:n,...o})};return t.displayName="withTheme",t},t.wrapChild=e=>{const t=o.Children.only(e.children);return o.cloneElement(t,{...e,...t.props,className:c(e.className,t.props.className),style:{...t.props.style,...e.style}})}},function(e,t,n){n.d(t,{I:function(){return r}});
6
+ */l=u,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}l.exports?(t.default=t,l.exports=t):window.classNames=t}();const c=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(u.exports),d={portalElement:null,setPortalElement:null},f=o.createContext(d),p=e=>e.replace(/(-[a-z])/g,e=>e.toUpperCase().replace("-","")),h=e=>e.replace(/(^[a-z]+|[A-Z][a-z]*|\d+)/g,e=>"-"+e.toLowerCase()).slice(1),m=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e).map(e=>`mdc-theme--${h(e)}`),v=o.forwardRef(function({tag:e="div",theme:t,element:n,...o},i){const a=n?n.props(o):o,s=n?y(i,n.reactRef):i;return r.jsx(e,{...a,ref:s})}),y=(...e)=>t=>{for(const n of e)"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},g=(e,t)=>{"function"==typeof e?e(t):e&&"current"in e&&(e.current=t)};function _(e){const t=o.forwardRef(e),n=(e,t)=>r.jsx(r.Fragment,{});return n.displayName=e.constructor.name||"RMWCComponent",t.displayName=n.displayName,t}const b={blur:"onBlur",cancel:"onCancel",click:"onClick",close:"onClose",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",auxclick:"onAuxClick",doubleclick:"onDoubleClick",dragend:"onDragEnd",dragstart:"onDragStart",drop:"onDrop",focus:"onFocus",input:"onInput",invalid:"onInvalid",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",mousedown:"onMouseDown",mouseup:"onMouseUp",paste:"onPaste",pause:"onPause",play:"onPlay",pointercancel:"onPointerCancel",pointerdown:"onPointerDown",pointerup:"onPointerUp",ratechange:"onRateChange",reset:"onReset",seeked:"onSeeked",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchstart:"onTouchStart",volumechange:"onVolumeChange",abort:"onAbort",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",animationstart:"onAnimationStart",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",drag:"onDrag",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",durationchange:"onDurationChange",emptied:"onEmptied",encrypted:"onEncrypted",ended:"onEnded",error:"onError",gotpointercapture:"onGotPointerCapture",load:"onLoad",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",lostpointercapture:"onLostPointerCapture",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",playing:"onPlaying",pointermove:"onPointerMove",pointerout:"onPointerOut",pointerover:"onPointerOver",progress:"onProgress",scroll:"onScroll",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",toggle:"onToggle",touchmove:"onTouchMove",transitionend:"onTransitionEnd",waiting:"onWaiting",wheel:"onWheel",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",pointerenter:"onPointerEnter",pointerleave:"onPointerLeave",change:"onChange",select:"onSelect",beforeinput:"onBeforeInput",compositionend:"onCompositionEnd",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate"},E=e=>b[e]||e;class x{constructor(e){this._classes=new Set,this._events={},this._style={},this._props={},this._onChange=null,this.reactRef=o.createRef(),this._onChange=e,this.onChange=this.onChange.bind(this),this.addClass=this.addClass.bind(this),this.removeClass=this.removeClass.bind(this),this.hasClass=this.hasClass.bind(this),this.setProp=this.setProp.bind(this),this.getProp=this.getProp.bind(this),this.removeProp=this.removeProp.bind(this),this.setStyle=this.setStyle.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this)}onChange(){this._onChange&&this._onChange()}destroy(){this._onChange=null,this._events={},this._style={},this._props={},this._classes=new Set}addClass(e){this._classes.has(e)||(this._classes.add(e),this.onChange())}removeClass(e){this._classes.has(e)&&(this._classes.delete(e),this.onChange())}hasClass(e){return this._classes.has(e)}setProp(e,t,n=!1){this._props[e]!==t&&(this._props[e]=t,!n&&this.onChange())}getProp(e){return this._props[e]}removeProp(e){void 0!==this._props[e]&&(delete this._props[e],this.onChange())}props(e){const{className:t="",style:n={}}=e,r=Object.entries(e).reduce((e,[t,n])=>{const r=this._events[t];if("function"==typeof n&&"function"==typeof r){const o=e=>(r(e),n(e));e[t]=o}return e},{...this._events}),o=c(t,[...this._classes]),i={...this._style,...n};return{...e,...this._props,...r,style:i,className:o}}setStyle(e,t){e=e.startsWith("--")?e:p(e),this._style[e]!==t&&(this._style[e]=t,this.onChange())}addEventListener(e,t){const n=E(e);this._events[n]!==t&&(this._events[n]=t,this.onChange())}removeEventListener(e,t){const n=E(e);this._events[n]&&(delete this._events[n],this.onChange())}get ref(){return this.reactRef.current}}const C="rmwcPortal";const S=a.focusTrap.FocusTrap;const w=typeof window<"u"&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect;let O=!1,T=0;function A(){return++T}const I=o.useId,k=e=>{if(void 0!==I){let t=I();return e??t}let t=e??(O?A():null),[n,r]=o.useState(t);return w(()=>{null===n&&r(A())},[]),o.useEffect(()=>{!1===O&&(O=!0)},[]),e??n??void 0},N=(e,t)=>(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t);class P{constructor(){this.events_={}}on(e,t){this.events_=this.events_||{},this.events_[e]=this.events_[e]||[],this.events_[e].push(t)}off(e,t){this.events_=this.events_||{},e in this.events_&&this.events_[e].splice(this.events_[e].indexOf(t),1)}trigger(e,...t){if(this.events_=this.events_||{},e in this.events_)for(var n=0;n<this.events_[e].length;n++)this.events_[e][n].apply(this,Array.prototype.slice.call(arguments,1))}}const M=o.createContext(!1),L=o.createContext(!1),D=(e,t=1,n=1)=>{window.requestAnimationFrame(()=>{n>=t?e():D(e,t,n+1)})},R=s;t.ArrayEmitter=class extends P{constructor(){super(...arguments),this.array=[]}push(...e){const t=this.array.push(...e);return this.trigger("change"),t}empty(){this.array.length=0,this.trigger("change")}remove(e){const t=this.array.indexOf(e);return t>-1&&(this.array.splice(t,1),this.trigger("change"),!0)}},t.DataTableContext=M,t.DataTableHeadContext=L,t.EventEmitter=P,t.FoundationElement=x,t.Portal=e=>{const t=o.useContext(f),n=null==t?void 0:t.setPortalElement,i=o.useCallback(e=>{null!==e&&n&&n(e)},[n]);return r.jsx("div",{ref:i,id:C,...e})},t.PortalChild=function({children:e,renderTo:t,menuSurfaceDomPositionRef:n}){const[a,s]=o.useState(),{portalElement:l}=o.useContext(f);return o.useEffect(()=>{let e;!0===t&&l?e=l:!0===t?(e=(null==document?void 0:document.getElementById(C))??void 0,e||console.warn('No default Portal found. Did you forget to include it in the root of your app? `import { Portal } from "@rmwc/base";`')):"string"==typeof t?(e=(null==document?void 0:document.querySelector(t))??void 0,e||console.warn(`The selector you provided for renderToPortal "${t}" didn't find any elements.`)):t instanceof Element&&(e=t),e!==a&&s(e)},[t,a,l]),t?a?n?r.jsx("div",{ref:n,children:i.createPortal(e,a)}):i.createPortal(e,a):null:r.jsx(r.Fragment,{children:e})},t.PortalContext=f,t.PortalProvider=({children:e})=>{const[t,n]=o.useState(null);return r.jsx(f.Provider,{value:{portalElement:t,setPortalElement:n},children:e})},t.RMWC_VERSION=R,t.Tag=v,t.classNames=c,t.closest=(e,t)=>{if(e instanceof Element){if(e&&e.closest)return e.closest(t);{let n=e;for(;n;){if(N(n,t))return n;n=n.parentElement}}}return null},t.createComponent=_,t.createMemoComponent=function(e){const t=_(e);return o.memo(t)},t.debounce=function(e,t){var n;return function(){var r=this,o=arguments;null!==n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}},t.deprecationWarning=e=>{},t.emptyClientRect={bottom:0,height:0,left:0,right:0,top:0,width:0},t.eventsMap=b,t.focusTrapFactory=(e,t)=>new S(e,t),t.getDisplayName=e=>{var t,n,r;const o=Array.isArray(e)?e[0]:e;return(null==(t=null==o?void 0:o.type)?void 0:t.displayName)||(null==(n=null==o?void 0:o.constructor)?void 0:n.displayName)||(null==o?void 0:o.displayName)||(null==o?void 0:o.name)||(null==(r=null==o?void 0:o.constructor)?void 0:r.name)||"Unknown"},t.handleDeprecations=(e,t,n)=>{e={...e};for(const n in t){const r=t[n];let o,i=e=>e;Array.isArray(r)?(o=r[0],i=r[1]):o=r,void 0!==e[n]&&(""===o||(e[o]=i(e[n]),e[o]!==e[n]&&(e[n],e[o])),delete e[n])}return e},t.handleRef=g,t.matches=N,t.mergeRefs=y,t.parseThemeOptions=m,t.portalContextDefaultValues=d,t.raf=D,t.randomId=e=>`${e}-${(Math.random()+Math.random()+1).toString(36).substring(2)}`,t.toCamel=p,t.toDashCase=h,t.triggerWindowResize=()=>{window.dispatchEvent(new Event("resize"))},t.useClassNames=(e,t)=>c(e.className,...e.theme?m(e.theme):[],..."function"==typeof t?t(e):t),t.useFoundation=({foundation:e,props:t,elements:n,api:r})=>{const[,i]=o.useReducer(e=>e+1,0),a=o.useRef(t);a.current=t;const s=o.useMemo(()=>Object.keys(n).reduce((e,t)=>(e[t]=new x(()=>{i()}),e),{}),[]),l=o.useMemo(()=>{const t=e({...s,getProps:()=>a.current,emit:(...e)=>(e=>(t,n,r=!1)=>{let o;o=new CustomEvent(t,{detail:n,bubbles:r}),Object.defineProperty(o,"target",{value:n,writable:!1}),Object.defineProperty(o,"currentTarget",{value:n,writable:!1});const i=t;return e[i]&&e[i](o),o})(a.current)(...e)});return r&&g(a.current.apiRef,r({foundation:t,...s})),t},[]);return o.useEffect(()=>{const e=l;return e.init(),r&&g(a.current.apiRef,r({foundation:e,...s})),g(a.current.foundationRef,e),()=>{e.destroy(),g(a.current.apiRef,null),g(a.current.foundationRef,null),Object.values(s).map(e=>e.destroy()),a.current={}}},[l,s]),{foundation:l,...s}},t.useId=(e,t)=>{var n;const r=null==(n=t.label)?void 0:n.replace(/\s/g,"___"),o=k(r);return t.id?t.id:`${e}-${o}`},t.withTheme=e=>{const t=({theme:t,className:n,...o})=>{if(t){const i=c(n,m(t));return r.jsx(e,{className:i,...o})}return r.jsx(e,{className:n,...o})};return t.displayName="withTheme",t},t.wrapChild=e=>{const t=o.Children.only(e.children);return o.cloneElement(t,{...e,...t.props,className:c(e.className,t.props.className),style:{...t.props.style,...e.style}})}},function(e,t,n){n.d(t,{I:function(){return r}});
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2016 Google Inc.
@@ -26,9 +26,9 @@
26
26
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
27
  * THE SOFTWARE.
28
28
  */
29
- var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},function(e,t,n){n.d(t,{O:function(){return i}});var r=n(2),o=n(4),i=function(){function e(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=e,this.initialize.apply(this,(0,r.fX)([],(0,r.zs)(n))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new o.I({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(e,{bubbles:n,detail:t}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(r)},e}()},function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(58)},function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(8);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;r=function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__18__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__13__){return function(){var __webpack_modules__=[function(e,t,n){n.d(t,{ABBREVIATIONS:function(){return c},ANIMATION_END_EVENT_NAMES:function(){return d},CLASS_TO_TYPE_MAPPING:function(){return f},CLOSE_EVENT_NAMES:function(){return a},CONSOLE_METHODS:function(){return s},DEFAULT_ENCODING:function(){return i},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return u},KEYBOARD_CODES:function(){return h},KEY_CODES:function(){return p},LOCALES:function(){return m},Lock:function(){return r.Lock},PLAIN_OBJECT_PROTOTYPES:function(){return _},SPECIAL_REGEX_SEQUENCES:function(){return v},Semaphore:function(){return o.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return g},VALUE_COPY_SYMBOL:function(){return l}});var r=n(15),o=n(16),i="utf8",a=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"],s=["debug","error","info","log","warn"],l=Symbol.for("clientnodeValue"),u=Symbol.for("clientnodeIgnoreNullAndUndefined"),c=["html","id","url","us","de","api","href"],d="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",f={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},p={BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39},h={BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"},m=[],_=[Object.prototype],v=["-","[","]","(",")","^","$","*","+",".","{","}"],g="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"},function(e,t,n){n.r(t),n.d(t,{isAnyMatching:function(){return u},isArrayLike:function(){return l},isFunction:function(){return m},isMap:function(){return p},isNumeric:function(){return a},isObject:function(){return c},isPlainObject:function(){return d},isProxy:function(){return h},isSet:function(){return f},isWindow:function(){return s}});var r=n(0),o=n(3);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e){var t=(0,o.determineType)(e);return["number","string"].includes(t)&&!isNaN(e-parseFloat(e))},s=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},l=function(e){var t;try{t=Boolean(e)&&e.length}catch(e){return!1}var n=(0,o.determineType)(e);if("function"===n||s(e))return!1;if("array"===n||0===t)return!0;if("number"==typeof t&&t>0)try{return e[t-1],!0}catch(e){}return!1},u=function(e,t){for(var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.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)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var o=n.value;if("string"==typeof o){if(o===e)return!0}else if(o.test(e))return!0}return!1},c=function(e){return null!==e&&"object"==typeof e},d=function(e){return c(e)&&r.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},f=function(e){return"set"===(0,o.determineType)(e)},p=function(e){return"map"===(0,o.determineType)(e)},h=function(e){return Boolean(e.__target__)},m=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e,t,n){n.d(t,{$:function(){return f},MAXIMAL_NUMBER_OF_ITERATIONS:function(){return p},MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION:function(){return h},NOOP:function(){return m},augment$:function(){return _},determine$:function(){return d},determineGlobalContext:function(){return l},globalContext:function(){return u},setGlobalContext:function(){return c}});var r,o,i=n(1),a=n(6),s=n(11);e=n.hmd(e);var l=function(){return"undefined"==typeof globalThis?void 0===window?void 0===n.g?e:Object.prototype.hasOwnProperty.call(n.g,"window")?n.g.window:n.g:window:globalThis},u=l(),c=function(e){u=e};u.fetch=u.fetch?u.fetch.bind(u):null!==(r=null==(o=(0,a.optionalRequire)("node-fetch"))?void 0:o.default)&&void 0!==r?r:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.currentImport?(0,a.currentImport)("node-fetch").then(function(e){var n;return(n=e).default.apply(n,t)}):null};var d=function(){var e,t,r=function(){};if(Object.prototype.hasOwnProperty.call(u,"$"))r=u.$;else{if(Object.prototype.hasOwnProperty.call(u,"document"))try{r=n(12)}catch(e){}if(void 0===r||"object"==typeof r&&0===Object.keys(r).length){var o,a=null!=(o=u.document)&&o.querySelectorAll?u.document.querySelectorAll.bind(u.document):function(){return null};(r=function(e){var t=null;if("string"==typeof e?t=a(e):Array.isArray(e)?t=e:("object"==typeof HTMLElement&&e instanceof HTMLElement||1===(null==e?void 0:e.nodeType)&&"string"==typeof e.nodeName)&&(t=[e]),t){if(Object.prototype.hasOwnProperty.call(r,"fn"))for(var n=0,o=Object.entries(r.fn);n<o.length;n++){var s=o[n],l=s[0],c=s[1];t[l]=c.bind(t)}return t.jquery="clientnode",t}return(0,i.isFunction)(e)&&u.document&&u.document.addEventListener("DOMContentLoaded",e),e}).fn={}}}return Object.prototype.hasOwnProperty.call(r,"global")||(r.global=u),Object.prototype.hasOwnProperty.call(r.global,"window")&&(!r.document&&Object.prototype.hasOwnProperty.call(r.global.window,"document")&&(r.document=null==(e=r.global.window)?void 0:e.document),!r.location&&Object.prototype.hasOwnProperty.call(r.global.window,"location")&&(r.location=null==(t=r.global.window)?void 0:t.location)),r},f=d(),p={value:100},h={value:function(){if(!f.document)return 0;var e,t=f.document.createElement("div");for(e=0;e<10&&(t.innerHTML="\x3c!--[if gt IE "+String(e)+"]><i></i><![endif]--\x3e",0!==t.getElementsByTagName("i").length);e++);if(0===e&&Object.prototype.hasOwnProperty.call(f.global.window,"navigator")){var n;if(-1!==(null==(n=f.global.window)?void 0:n.navigator.appVersion.indexOf("MSIE 10")))return 10;if(![f.global.window.navigator.userAgent.indexOf("Trident"),f.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}return e}()},m=Object.prototype.hasOwnProperty.call(f,"noop")?f.noop.bind(f):function(){},_=function(e){var t,n;if(f=e,Object.prototype.hasOwnProperty.call(f,"global")||(f.global=u),Object.prototype.hasOwnProperty.call(f.global,"window")&&(!f.document&&Object.prototype.hasOwnProperty.call(f.global.window,"document")&&(f.document=null==(t=f.global.window)?void 0:t.document),!f.location&&Object.prototype.hasOwnProperty.call(f.global.window,"location")&&(f.location=null==(n=f.global.window)?void 0:n.location)),Object.prototype.hasOwnProperty.call(f,"fn")&&(f.fn.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.controller(s.default,t,this)}),f.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.controller(s.default,t)},f.Tools.class=s.default,Object.prototype.hasOwnProperty.call(f,"fn")){var r=f.fn.prop;f.fn.prop=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(n.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===n.length)return this[0][e];if(1===n.length)return this[0][e]=n[0],this}return r.call.apply(r,[this,e].concat(n))}}};_(f),f.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_10780__){__nested_webpack_require_10780__.r(__nested_webpack_exports__),__nested_webpack_require_10780__.d(__nested_webpack_exports__,{addDynamicGetterAndSetter:function(){return _addDynamicGetterAndSetter},convertCircularObjectToJSON:function(){return convertCircularObjectToJSON},convertMapToPlainObject:function(){return _convertMapToPlainObject},convertPlainObjectToMap:function(){return _convertPlainObjectToMap},convertSubstringInPlainObject:function(){return _convertSubstringInPlainObject},copy:function(){return _copy},determineType:function(){return determineType},equals:function(){return _equals},evaluateDynamicData:function(){return evaluateDynamicData},extend:function(){return _extend},getProxyHandler:function(){return getProxyHandler},getSubstructure:function(){return getSubstructure},mask:function(){return _mask},modifyObject:function(){return _modifyObject},removeKeyPrefixes:function(){return _removeKeyPrefixes},removeKeysInEvaluation:function(){return _removeKeysInEvaluation},represent:function(){return _represent},sort:function(){return sort},unwrapProxy:function(){return _unwrapProxy}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_10780__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_10780__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_10780__(0),_indicators__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_10780__(1),_number__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_10780__(14),_string__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_10780__(5);function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _addDynamicGetterAndSetter=function(e,t,n,r,o,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r={}),void 0===o&&(o=!0),void 0===i&&(i=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var a,s=0,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var u=a.value;e[s]=_addDynamicGetterAndSetter(u,t,n,r,o),s+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var c,d=_createForOfIteratorHelperLoose(e);!(c=d()).done;){var f=c.value,p=f[0],h=f[1];e.set(p,_addDynamicGetterAndSetter(h,t,n,r,o))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var m,_=[],v=_createForOfIteratorHelperLoose(e);!(m=v()).done;){var g=m.value;e.delete(g),_.push(_addDynamicGetterAndSetter(g,t,n,r,o))}for(var y=0,b=_;y<b.length;y++){var E=b[y];e.add(E)}}else if(null!==e)for(var C=0,x=Object.entries(e);C<x.length;C++){var A=x[C],I=A[0],O=A[1];e[I]=_addDynamicGetterAndSetter(O,t,n,r,o)}if(t||n)for(var T,S,w=function(){var o=S.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e instanceof o){var i=getProxyHandler(e,r),a=getProxyHandler(e,r);t&&(a.get=function(n,r){return"__target__"===r?e:"__revoke__"===r?function(){return u(),e}:"function"==typeof e[r]?e[r]:t(i.get(l,r),r,e)}),n&&(a.set=function(t,r,o){return i.set(l,r,n(r,o,e))});var s=Proxy.revocable({},a),l=s.proxy,u=s.revoke;return{v:l}}},P=_createForOfIteratorHelperLoose(i);!(S=P()).done;)if(T=w())return T.v;return e},convertCircularObjectToJSON=function(e,t,n){void 0===t&&(t=function(e){return null!=e?e:"__circularReference__"}),void 0===n&&(n=0);var r=new Map;return function(e){var o=function(e,n){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)){var i,a;if(r.has(n))return t(null!==(i=r.get(n))&&void 0!==i?i:null,e,n,r);if(r.set(n,null),Array.isArray(n)){a=[];for(var s,l=_createForOfIteratorHelperLoose(n);!(s=l()).done;){var u=s.value;a.push(o(null,u))}}else{a={};for(var c=0,d=Object.entries(n);c<d.length;c++){var f=d[c],p=f[0],h=f[1];a[p]=o(p,h)}}return r.set(n,a),a}return n};return JSON.stringify(e,o,n)}(e)},_convertMapToPlainObject=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var n,r={},o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value,a=i[0],s=i[1];t&&(s=_convertMapToPlainObject(s,t)),["number","string"].includes(typeof a)&&(r[String(a)]=s)}return r}if(t)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e))for(var l=0,u=Object.entries(e);l<u.length;l++){var c=u[l],d=c[0],f=c[1];e[d]=_convertMapToPlainObject(f,t)}else if(Array.isArray(e))for(var p=0,h=0,m=e;h<m.length;h++){var _=m[h];e[p]=_convertMapToPlainObject(_,t),p+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var v,g=[],y=_createForOfIteratorHelperLoose(e);!(v=y()).done;){var b=v.value;e.delete(b),g.push(_convertMapToPlainObject(b,t))}for(var E=0,C=g;E<C.length;E++){var x=C[E];e.add(x)}}}return e},_convertPlainObjectToMap=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)){for(var n=new Map,r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],s=i[1];t&&(e[a]=_convertPlainObjectToMap(s,t)),n.set(a,e[a])}return n}if(t)if(Array.isArray(e))for(var l=0,u=0,c=e;u<c.length;u++){var d=c[u];e[l]=_convertPlainObjectToMap(d,t),l+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var f,p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var h=f.value,m=h[0],_=h[1];e.set(m,_convertPlainObjectToMap(_,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var v,g=[],y=_createForOfIteratorHelperLoose(e);!(v=y()).done;){var b=v.value;e.delete(b),g.push(_convertPlainObjectToMap(b,t))}for(var E=0,C=g;E<C.length;E++){var x=C[E];e.add(x)}}}return e},_convertSubstringInPlainObject=function(e,t,n){for(var r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],s=i[1];(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(s)?e[a]=_convertSubstringInPlainObject(s,t,n):"string"==typeof s&&(e[a]=s.replace(t,n))}return e},_copy=function(e,t,n,r,o,i,a){if(void 0===t&&(t=-1),void 0===n&&(n=_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===i&&(i=[]),void 0===a&&(a=0),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(!r){if(Array.isArray(e))return _copy(e,t,n,[],o,i,a);if(e instanceof Map)return _copy(e,t,n,new Map,o,i,a);if(e instanceof Set)return _copy(e,t,n,new Set,o,i,a);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(r=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,r}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,t,n,{},o,i,a)}if(e===r)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var l=i.indexOf(e);if(-1!==l)return i[l];i.push(e)}var u=function(e){if(-1!==t&&t<a+1)return n===_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL?e:n;var r=_copy(e,t,n,null,o,i,a+1);return o||[void 0,null].includes(e)||"object"!=typeof e||i.push(e),r};if(Array.isArray(e))for(var c,d=_createForOfIteratorHelperLoose(e);!(c=d()).done;){var f=c.value;r.push(u(f))}else if(e instanceof Map)for(var p,h=_createForOfIteratorHelperLoose(e);!(p=h()).done;){var m=p.value,_=m[0],v=m[1];r.set(_,u(v))}else if(e instanceof Set)for(var g,y=_createForOfIteratorHelperLoose(e);!(g=y()).done;){var b=g.value;r.add(u(b))}else for(var E=0,C=Object.entries(e);E<C.length;E++){var x=C[E],A=x[0],I=x[1];try{r[A]=u(I)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return r||e},determineType=function(e){if([null,void 0].includes(e))return String(e);var t=typeof e;if(["function","object"].includes(t)&&"toString"in e){var n=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,n))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[n]}return t},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(secondValue)||firstValue===secondValue||(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(firstValue)&&(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise(function(e){for(var t=[],n=0,r=[firstValue,secondValue];n<r.length;n++){var o=r[n],i=new FileReader;i.onload=function(n){null===n.target?t.push(null):t.push(n.target.result),2===t.length&&(t[0]===t[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(t[0])+") !== Blob("+_represent(t[1])+")"))},i.readAsDataURL(o)}});if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(first);if(firstIsMap&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(first);if(firstIsSet&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i12];if(0!==options.deep){var t=_equals(e,second[index],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!t)return{v:!1};var n=index,r=function(e){var t;return"string"==typeof e?"["+String(n)+"]"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(t,"then")&&promises.push(t.then(r)),"string"==typeof t)return{v:r(t)}}index+=1},_ret2,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.value,t=e[0],n=e[1];if(0!==options.deep){var r=_equals(n,second.get(t),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!r)return{v:!1};var o=function(e){var n;return"string"==typeof e?"get("+_represent(t)+")"+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(o)),"string"==typeof r)return{v:o(r)}}},_ret3,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var t,n=!1,r=[],o=_createForOfIteratorHelperLoose(second);!(t=o()).done;){var i=t.value,a=_equals(e,i,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){n=!0;break}}else r.push(a)}var s=function(t){return!!t||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return n?0:(r.length&&promises.push(new Promise(function(e){Promise.all(r).then(function(t){e(s(t.some(function(e){return e})))},function(){})})),{v:s(!1)})}},_ret4,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],t=e[0],n=e[1];if(options.properties&&!options.properties.includes(t))return 0;for(var r,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(r=i()).done;){var a=r.value;if(t.startsWith(a)){o=!0;break}}if(o)return 0;if(0!==options.deep){var s=_equals(n,second[t],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!s)return{v:!1};var l=function(e){var n;return"string"==typeof e?t+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(l)),"string"==typeof s)return{v:l(s)}}},_ret5,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)if(_ret5)return _ret5.v}return!promises.length||new Promise(function(e){Promise.all(promises).then(function(t){for(var n,r=_createForOfIteratorHelperLoose(t);!(n=r()).done;){var o=n.value;if(!o||"string"==typeof o){e(o);break}}e(!0)},function(){})})}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,t,n,r,o){if(void 0===t&&(t={}),void 0===n&&(n="self"),void 0===r&&(r="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;n in t||(t[n]=e);var i=function(e,n){void 0===n&&(n=r);var i=(0,_string__WEBPACK_IMPORTED_MODULE_4__.evaluate)(e,t,n===o);if(i.error)throw new Error(i.error);return i.result},a=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var t=0,n=Object.entries(e);t<n.length;t++){var l=n[t],u=l[0],c=l[1];if("__target__"!==u&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(c)){var d=c;if(a(d),Object.prototype.hasOwnProperty.call(d,r)||Object.prototype.hasOwnProperty.call(d,o)){var f=d;e[u]=new Proxy(d,{get:function(e,t){if("__target__"===t)return e;if("hasOwnProperty"===t)return e[t];for(var n=0,a=[r,o];n<a.length;n++){var l=a[n];if(t===l&&"string"==typeof e[t])return s(i(e[t],l))}var u=s(e);if("toString"===t){var c=i(u);return c[t].bind(c)}if("string"!=typeof t){var d,f=i(u);return null!=(d=f[t])&&d.bind?f[t].bind(f):f[t]}for(var p=0,h=[r,o];p<h.length;p++){var m=h[p];if(Object.prototype.hasOwnProperty.call(e,m))return i(u,m)[t]}return u[t]},ownKeys:function(e){for(var t=0,n=[r,o];t<n.length;t++){var a=n[t];if(Object.prototype.hasOwnProperty.call(e,a))return Object.getOwnPropertyNames(s(i(e[a],a)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=f)}}}return e},s=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)){for(var t=0,n=[r,o];t<n.length;t++){var a=n[t];if(Object.prototype.hasOwnProperty.call(e,a))return e[a]}e=e.__target__}for(var l=0,u=Object.entries(e);l<u.length;l++){var c=u[l],d=c[0],f=c[1];if([r,o].includes(d))return"undefined"==typeof Proxy?s(i(f)):f;e[d]=s(f)}}return e};t.resolve=s;var l=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if("__target__"!==o&&null!==i&&["function","undefined"].includes(typeof i)){var a=i.__target__;void 0!==a&&(e[o]=a),l(i)}}return e};return Object.prototype.hasOwnProperty.call(e,r)?i(e[r]):Object.prototype.hasOwnProperty.call(e,o)?i(e[o],o):l(s(a(e)))},_removeKeysInEvaluation=function(e,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];!t.includes(i)&&t.some(function(t){return Object.prototype.hasOwnProperty.call(e,t)})?delete e[i]:(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(a)&&_removeKeysInEvaluation(a,t)}return e},_extend=function(e,t){for(var n=!1,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a,s=o;e===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(n=e,a=t):(a=e,(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)?s=[t].concat(s):void 0!==t&&(a=t));for(var l,u=function(e,t){return t===e?e:n&&t&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(t)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t))?(r=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)?e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)?e:new Map:e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)?e:{},_extend(n,r,t)):t;var r},c=_createForOfIteratorHelperLoose(s);!(l=c()).done;){var d=l.value,f=typeof a,p=typeof d;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(f+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(d)&&(p+=" Map"),f===p&&a!==d)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(d))for(var h,m=_createForOfIteratorHelperLoose(d);!(h=m()).done;){var _=h.value,v=_[0],g=_[1];a.set(v,u(a.get(v),g))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(a)&&!Array.isArray(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(d)&&!Array.isArray(d))for(var y=0,b=Object.entries(d);y<b.length;y++){var E=b[y],C=E[0],x=E[1];n===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(x)||(a[C]=u(a[C],x))}else a=d;else a=d}return a},getSubstructure=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(t));!(o=a()).done;){var s=o.value;if("string"==typeof s)for(var l,u=_createForOfIteratorHelperLoose(s.split(r));!(l=u()).done;){var c=l.value;if(c){var d=c.match(/(.*?)(\[[0-9]+])/g);if(d)for(var f,p=_createForOfIteratorHelperLoose(d);!(f=p()).done;){var h=f.value,m=/(.*?)(\[[0-9]+])/.exec(h),_="",v="";m&&(_=m[1],v=m[2],_&&i.push(_)),i.push(v.substring(1,v.length-1))}else i.push(c)}}else i=i.concat(s)}for(var g,y=e,b=_createForOfIteratorHelperLoose(i);!(g=b()).done;){var E=g.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(y)){if("string"==typeof E&&Object.prototype.hasOwnProperty.call(y,E))y=y[E];else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(E))y=E(y);else if(!n)return}else if(!n)return}return y},getProxyHandler=function(e,t){return void 0===t&&(t={}),t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({delete:"[]",get:"[]",has:"[]",set:"[]"},t),{deleteProperty:function(n,r){return"[]"!==t.delete||"string"!=typeof r?e[t.delete](r):(delete e[r],!0)},get:function(n,r){return"[]"===t.get&&"string"==typeof r?e[r]:e[t.get](r)},has:function(n,r){return"[]"===t.has?r in e:e[t.has](r)},set:function(n,r,o){return"[]"!==t.set||"string"!=typeof r?e[t.set](r,o):(e[r]=o,!0)}}},_mask=function(e,t){if(!0===(t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({exclude:!1,include:!0},t)).exclude||Array.isArray(t.exclude)&&0===t.exclude.length||!1===t.include||"object"!=typeof e)return{};var n=Array.isArray(t.exclude)?t.exclude.reduce(function(e,t){var n;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((n={})[t]=!0,n))},{}):t.exclude,r=Array.isArray(t.include)?t.include.reduce(function(e,t){var n;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((n={})[t]=!0,n))},{}):t.include,o={};if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r))for(var i=0,a=Object.entries(r);i<a.length;i++){var s=a[i],l=s[0],u=s[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===u?o[l]=e[l]:((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[l]&&(o[l]=_mask(e[l],{include:u})))}else o=e;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(n)){for(var c=!1,d=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},o),f=0,p=Object.entries(n);f<p.length;f++){var h=p[f],m=h[0],_=h[1];if(Object.prototype.hasOwnProperty.call(d,m))if(!0===_)c=!0,delete d[m];else if(((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(_)||Array.isArray(_)&&_.length)&&"object"==typeof d[m]){var v=d[m];d[m]=_mask(d[m],{exclude:_}),d[m]!==v&&(c=!0)}}c&&(o=d)}return o},_modifyObject=function(e,t,n,r,o,i,a,s,l){if(void 0===n&&(n="__remove__"),void 0===r&&(r="__prepend__"),void 0===o&&(o="__append__"),void 0===i&&(i="__"),void 0===a&&(a="__"),void 0===s&&(s=null),void 0===l&&(l=null),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var u,c=_createForOfIteratorHelperLoose(t);!(u=c()).done;){var d=u.value,f=d[0],p=d[1];e.has(f)&&_modifyObject(e.get(f),p,n,r,o,i,a,t,f)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var h=0,m=Object.entries(t);h<m.length;h++){var _=m[h],v=_[0],g=_[1],y=NaN;if(Array.isArray(e)&&v.startsWith(i)&&v.endsWith(a)&&((y=parseInt(v.substring(i.length,v.length-a.length),10))<0||y>=e.length)&&(y=NaN),[n,r,o].includes(v)||!isNaN(y)){if(Array.isArray(e))if(v===n)for(var b,E=_createForOfIteratorHelperLoose([].concat(g));!(b=E()).done;){var C=b.value;"string"==typeof C&&C.startsWith(i)&&C.endsWith(a)?e.splice(parseInt(C.substring(i.length,C.length-a.length),10),1):e.includes(C)?e.splice(e.indexOf(C),1):"number"==typeof C&&C<e.length&&e.splice(C,1)}else v===o?e=e.concat(g):v===r?e=[].concat(g).concat(e):(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e[y])&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(g)?_extend(!0,_modifyObject(e[y],g,n,r,o,i,a),e[y],g):e[y]=g;else if(v===n)for(var x,A=_createForOfIteratorHelperLoose([].concat(g));!(x=A()).done;){var I=x.value;"string"==typeof I&&Object.prototype.hasOwnProperty.call(e,I)&&delete e[I]}delete t[v],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,v)&&(e[v]=_modifyObject(e[v],g,n,r,o,i,a,t,v))}return e},_removeKeyPrefixes=function(e,t){void 0===t&&(t="#");var n=[].concat(t);if(Array.isArray(e))for(var r,o=0,i=_createForOfIteratorHelperLoose(e.slice());!(r=i()).done;){var a=r.value,s=!1;if("string"==typeof a){for(var l,u=_createForOfIteratorHelperLoose(n);!(l=u()).done;){var c=l.value;if(a.startsWith(c+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(a,n),o+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e))for(var d,f=_createForOfIteratorHelperLoose(new Set(e));!(d=f()).done;){var p=d.value,h=!1;if("string"==typeof p){for(var m,_=_createForOfIteratorHelperLoose(n);!(m=_()).done;){var v=m.value;if(p.startsWith(v+":")){e.delete(p),h=!0;break}}if(h)continue}_removeKeyPrefixes(p,n)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var g,y=_createForOfIteratorHelperLoose(new Map(e));!(g=y()).done;){var b=g.value,E=b[0],C=b[1],x=!1;if("string"==typeof E){for(var A,I=_createForOfIteratorHelperLoose(n);!(A=I()).done;){var O=A.value,T=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(O);if(new RegExp("^"+T+"[0-9]*$").test(E)){e.delete(E),x=!0;break}}if(x)continue}e.set(E,_removeKeyPrefixes(C,n))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var S=0,w=Object.entries(Object.assign({},e));S<w.length;S++){for(var P,L=w[S],N=L[0],R=L[1],D=!1,M=_createForOfIteratorHelperLoose(n);!(P=M()).done;){var k=P.value,j=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(k);if(new RegExp("^"+j+"[0-9]*$").test(N)){delete e[N],D=!0;break}}D||(e[N]=_removeKeyPrefixes(R,n))}return e},_represent=function(e,t,n,r,o){if(void 0===t&&(t=" "),void 0===n&&(n=""),void 0===r&&(r="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(r);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isNumeric)(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var i,a="[",s=!1,l=_createForOfIteratorHelperLoose(e);!(i=l()).done;){var u=i.value;s&&(a+=","),a+="\n"+n+t+_represent(u,t,""+n+t,r,o-1),s=!0}return s&&(a+="\n"+n),a+"]"}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var c,d="",f=!1,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var h=c.value,m=h[0],_=h[1];f&&(d+=",\n"+n+t),d+=_represent(m,t,""+n+t,r,o-1)+" -> "+_represent(_,t,""+n+t,r,o-1),f=!0}return f||(d="EmptyMap"),d}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var v,g="{",y=!1,b=_createForOfIteratorHelperLoose(e);!(v=b()).done;){var E=v.value;y&&(g+=","),g+="\n"+n+t+_represent(E,t,""+n+t,r,o-1),y=!0}return y?g+="\n"+n+"}":g="EmptySet",g}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e))return"__function__";for(var C,x="{",A=!1,I=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(C=I()).done;){var O=C.value;A&&(x+=","),x+="\n"+n+t+O+": "+_represent(e[O],t,""+n+t,r,o-1),A=!0}return A&&(x+="\n"+n),x+"}"},sort=function(e){var t=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)t.push(n);else if("object"==typeof e)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var r,o=_createForOfIteratorHelperLoose(e);!(r=o()).done;){var i=r.value;t.push(i[0])}else if(null!==e)for(var a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];t.push(l)}return t.sort()},_unwrapProxy=function(e,t){if(void 0===t&&(t=new Set),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(t.has(e))return e;try{(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e.__revoke__)&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)&&(e=e.__target__),e.__revoke__())}catch(t){return e}finally{t.add(e)}if(Array.isArray(e))for(var n,r=0,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value;e[r]=_unwrapProxy(i,t),r+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var a,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var l=a.value,u=l[0],c=l[1];e.set(u,_unwrapProxy(c,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var d,f=[],p=_createForOfIteratorHelperLoose(e);!(d=p()).done;){var h=d.value;e.delete(h),f.push(_unwrapProxy(h,t))}for(var m=0,_=f;m<_.length;m++){var v=_[m];e.add(v)}}else for(var g=0,y=Object.entries(e);g<y.length;g++){var b=y[g],E=b[0],C=b[1];e[E]=_unwrapProxy(C,t)}}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_38640__){__nested_webpack_require_38640__.r(__nested_webpack_exports__),__nested_webpack_require_38640__.d(__nested_webpack_exports__,{ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return ALLOWED_VARIABLE_SYMBOLS},FIX_ENCODING_ERROR_MAPPING:function(){return FIX_ENCODING_ERROR_MAPPING},addSeparatorToPath:function(){return addSeparatorToPath},camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compile:function(){return compile},compressStyleValue:function(){return compressStyleValue},convertToValidVariableName:function(){return convertToValidVariableName},decodeHTMLEntities:function(){return decodeHTMLEntities},delimitedToCamelCase:function(){return delimitedToCamelCase},encodeURIComponentExtended:function(){return encodeURIComponentExtended},escapeRegularExpressions:function(){return escapeRegularExpressions},evaluate:function(){return evaluate},findNormalizedMatchRange:function(){return findNormalizedMatchRange},fixKnownEncodingErrors:function(){return fixKnownEncodingErrors},format:function(){return format},getDomainName:function(){return getDomainName},getEditDistance:function(){return getEditDistance},getPortNumber:function(){return getPortNumber},getProtocolName:function(){return getProtocolName},getURLParameter:function(){return getURLParameter},hasPathPrefix:function(){return hasPathPrefix},lowerCase:function(){return lowerCase},mark:function(){return mark},maskForRegularExpression:function(){return maskForRegularExpression},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector},normalizePhoneNumber:function(){return normalizePhoneNumber},normalizeURL:function(){return normalizeURL},normalizeZipCode:function(){return normalizeZipCode},parseEncodedObject:function(){return parseEncodedObject},representPhoneNumber:function(){return representPhoneNumber},representURL:function(){return representURL},serviceURLEquals:function(){return serviceURLEquals},sliceAllExceptNumberAndLastSeparator:function(){return sliceAllExceptNumberAndLastSeparator}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_38640__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_38640__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_38640__(8),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_38640__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_38640__(0),_context__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_38640__(2),_filesystem__WEBPACK_IMPORTED_MODULE_5__=__nested_webpack_require_38640__(17),_object__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_38640__(3);function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$",ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$",FIX_ENCODING_ERROR_MAPPING=[["Ã\\x84","Ä"],["Ã\\x96","Ö"],["Ã\\x9c","Ü"],["ä","ä"],["ö","ö"],["ü","ü"],["\\x96","-"],["é","é"],["è","e"],["ô","o"],["à ","á"],["ø","ø"],["Ã\\x9f","ß"],["Ã","ß"]],escapeRegularExpressions=function(e,t){if(void 0===t&&(t=[]),1===e.length&&!_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES.includes(e))return e;t.includes("\\")||e.replace(/\\/g,"\\\\");for(var n,r=_createForOfIteratorHelperLoose(_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES);!(n=r()).done;){var o=n.value;t.includes(o)||(e=e.replace(new RegExp("\\"+o,"g"),"\\"+o))}return e},convertToValidVariableName=function(e){return["class","default"].includes(e)?"_"+e:e.replace(new RegExp("^[^"+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]+"),"").replace(new RegExp("[^"+ALLOWED_VARIABLE_SYMBOLS+"]+([a-zA-Z])","g"),function(e,t){return t.toUpperCase()})},encodeURIComponentExtended=function(e,t){return void 0===t&&(t=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")},addSeparatorToPath=function(e,t){return void 0===t&&(t="/"),(e=e.trim()).substring(e.length-1)!==t&&e.length?e+t:e},hasPathPrefix=function(e,t,n){var r;return void 0===e&&(e="/admin"),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.pathname)||""),void 0===n&&(n="/"),"string"==typeof e&&(e.endsWith(n)||(e+=n),t===e.substring(0,e.length-n.length)||t.startsWith(e))},getDomainName=function(e,t){var n,r;void 0===e&&(e=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.hostname)||"");var o=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return o&&o.length>2&&o[1]&&o[2]?o[2]:t},getPortNumber=function(e,t){var n,r,o;void 0===e&&(e=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.href)||""),void 0===t&&(t=null!=(o=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)&&o.port?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port):null);var i=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(e);return i&&i.length>1?parseInt(i[1],10):null!==t?t:null!=(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)&&n.port&&parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port,10)?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,t){var n,r;void 0===e&&(e=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.protocol)&&_context__WEBPACK_IMPORTED_MODULE_3__.$.location.protocol.substring(0,_context__WEBPACK_IMPORTED_MODULE_3__.$.location.protocol.length-1)||"");var o=/^([a-z]+):\/\//i.exec(e);return o&&o.length>1&&o[1]?o[1]:t},getURLParameter=function(e,t,n,r,o,i,a){var s,l,u;void 0===e&&(e=null),void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r="$"),void 0===o&&(o="!"),void 0===i&&(i=null),void 0===a&&(a=null!==(l=null==(u=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:u.hash)&&void 0!==l?l:"");var c=null!==(s=a)&&void 0!==s?s:"#",d="";if(i)d=i;else if(o&&c.startsWith(o)){var f,p=c.indexOf("#");-1===p?(f=c.substring(o.length),c=""):(f=c.substring(o.length,p),c=c.substring(p));var h=f.indexOf("?");-1!==h&&(d=f.substring(h))}else _context__WEBPACK_IMPORTED_MODULE_3__.$.location&&(d=_context__WEBPACK_IMPORTED_MODULE_3__.$.location.search||"");var m=n||d,_="&"===m;if(_||"#"===m){var v="";try{v=decodeURIComponent(c)}catch(e){}var g=v.indexOf(r);-1===g?m="":(m=v.substring(g)).startsWith(r)&&(m=m.substring(r.length))}else m.startsWith("?")&&(m=m.substring(1));var y=m?m.split("&"):[];d=d.substring(1),_&&d&&(y=y.concat(d.split("&")));for(var b,E=[],C=_createForOfIteratorHelperLoose(y);!(b=C()).done;){var x=b.value,A=x.split("="),I=void 0;try{I=decodeURIComponent(A[0])}catch(e){I=""}try{x=decodeURIComponent(A[1])}catch(e){x=""}E.push(I),t?Object.prototype.hasOwnProperty.call(E,I)&&Array.isArray(E[I])?E[I].push(x):E[I]=[x]:E[I]=x}return e?Object.prototype.hasOwnProperty.call(E,e)?E[e]:null:E},serviceURLEquals=function(e,t){var n;void 0===t&&(t=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||"");var r=getDomainName(e,""),o=getProtocolName(e,""),i=getPortNumber(e);return!(""!==r&&r!==getDomainName(t)||""!==o&&o!==getProtocolName(t)||null!==i&&i!==getPortNumber(t))},normalizeURL=function(e){if("string"==typeof e){var t=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();return t.startsWith("http")?t:"http://"+t}return""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,t,n){void 0===t&&(t="-"),void 0===n&&(n=null),n||(n=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var r=maskForRegularExpression(t);if(n.length){for(var o,i="",a=_createForOfIteratorHelperLoose(n);!(o=a()).done;)i&&(i+="|"),i+=o.value.toUpperCase();e=e.replace(new RegExp("("+i+")("+i+")","g"),"$1"+t+"$2")}return(e=e.replace(new RegExp("([^"+r+"])([A-Z][a-z]+)","g"),"$1"+t+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+t+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if(_context__WEBPACK_IMPORTED_MODULE_3__.$.document){var t=_context__WEBPACK_IMPORTED_MODULE_3__.$.document.createElement("textarea");return t.innerHTML=e,t.value}return null},delimitedToCamelCase=function(e,t,n,r,o){void 0===t&&(t="-"),void 0===n&&(n=null),void 0===r&&(r=!1),void 0===o&&(o=!1);var i,a=maskForRegularExpression(t);if(n||(n=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),r)i=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{i="";for(var s,l=_createForOfIteratorHelperLoose(n);!(s=l()).done;){var u=s.value;i&&(i+="|"),i+=capitalize(u)+"|"+u}}var c=e.startsWith(t);return c&&(e=e.substring(t.length)),e=e.replace(new RegExp("("+a+")("+i+")("+a+"|$)","g"),function(e,t,n,r){return t+n.toUpperCase()+r}),o&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),function(e,t){return t.toUpperCase()}),c&&(e=t+e),e},compile=function(e,t,n,r,o){var i;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o={});for(var a,s,l=Object.keys(globalThis).concat("globalThis").filter(function(e){return new RegExp("^["+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]["+ALLOWED_VARIABLE_SYMBOLS+"]*$").test(e)}),u={error:null,globalNames:l,globalNamesUndefinedList:l.map(function(){}),originalScopeNames:Array.isArray(t)?t:"string"==typeof t?[t]:Object.keys(t),scopeNameMapping:{},scopeNames:[],templateFunction:function(){}},c=_createForOfIteratorHelperLoose(u.originalScopeNames);!(a=c()).done;){var d=a.value,f=convertToValidVariableName(d);u.scopeNameMapping[d]=f,u.scopeNames.push(f)}if(0!==_context__WEBPACK_IMPORTED_MODULE_3__.MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION.value)if(null!=(i=_context__WEBPACK_IMPORTED_MODULE_3__.$.global.Babel)&&i.transform)e=_context__WEBPACK_IMPORTED_MODULE_3__.$.global.Babel.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var p="####",h="`"===(e=e.replace(/\\\$/g,p).replace(/^`\$\{([\s\S]+)}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,h+"+($1)+"+h).replace(/^`([\s\S]+)`$/,h+"$1"+h).replace(/\n+/g,"").replace(new RegExp(p,"g"),"\\$")}try{s=_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default()(Function,(r?u.globalNames:[]).concat(u.scopeNames,[(n?"":"return ")+e]))}catch(t){u.error='Given expression "'+e+'" could not be compiled width given scope names "'+u.scopeNames.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(t)}if(s){var m=s.bind(o);u.templateFunction=r?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.apply(void 0,u.globalNamesUndefinedList.concat(t))}:m}return u},evaluate=function(e,t,n,r,o){void 0===t&&(t={}),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o={});var i=compile(e,t,n,r,o),a=i.error,s=i.originalScopeNames,l=i.scopeNames,u=i.templateFunction,c={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:void 0};if(a)return c.compileError=c.error=a,c;try{c={compileError:null,runtimeError:null,error:null,result:u.apply(void 0,s.map(function(e){return t[e]}))}}catch(a){c.error=c.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+l.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(a)}return c},findNormalizedMatchRange=function(e,t,n,r){void 0===n&&(n=function(e){return String(e).toLowerCase()}),void 0===r&&(r=["<",">"]);var o=n(t),i=n(e),a="string"==typeof e?e:i;if(i&&o)for(var s=!1,l=0;l<a.length;l+=1)if(s)Array.isArray(r)&&a.charAt(l)===r[1]&&(s=!1);else if(Array.isArray(r)&&a.charAt(l)===r[0])s=!0;else if(n(a.substring(l)).startsWith(o)){if(1===o.length)return[l,l+1];for(var u=a.length;u>l;u-=1)if(!n(a.substring(l,u)).startsWith(o))return[l,u+1]}return null},fixKnownEncodingErrors=function(e){for(var t=0,n=FIX_ENCODING_ERROR_MAPPING;t<n.length;t++){var r=n[t],o=r[0],i=r[1];e=e.replace(new RegExp(o,"g"),i)}return e},format=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e);for(var o=0,i=0,a=n;i<a.length;i++){var s=a[i];e=e.replace(new RegExp("\\{"+String(o)+"\\}","gm"),String(s)),o+=1}return e},getEditDistance=function(e,t){for(var n=Array(t.length+1).fill(null).map(function(){return Array(e.length+1).fill(null)}),r=0;r<=e.length;r++)n[0][r]=r;for(var o=0;o<=t.length;o++)n[o][0]=o;for(var i=1;i<=t.length;i++)for(var a=1;a<=e.length;a++){var s=e[a-1]===t[i-1]?0:1;n[i][a]=Math.min(n[i][a-1]+1,n[i-1][a]+1,n[i-1][a-1]+s)}return n[t.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,t,n){if(void 0===n&&(n={}),"string"==typeof e&&null!=t&&t.length){var r=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:["<",">"]},n);e=e.trim();for(var o,i=[],a=[].concat(t),s=0,l=_createForOfIteratorHelperLoose(a);!(o=l()).done;){var u=o.value;a[s]=r.normalizer(u).trim(),s+=1}for(var c=e,d=0,f=0;f<_context__WEBPACK_IMPORTED_MODULE_3__.MAXIMAL_NUMBER_OF_ITERATIONS.value;f++){for(var p,h=null,m=null,_=_createForOfIteratorHelperLoose(a);!(p=_()).done;){var v=p.value;(m=findNormalizedMatchRange(c,v,r.normalizer,r.skipTagDelimitedParts))&&(!h||m[0]<h[0])&&(h=m)}if(!h){c.length&&i.push(c);break}h[0]>0&&i.push(e.substring(d,d+h[0])),i.push("string"==typeof r.marker?format(r.marker,e.substring(d+h[0],d+h[1])):r.marker(e.substring(d+h[0],d+h[1]),i)),d+=h[1],c=e.substring(d)}return"string"==typeof r.marker?i.join(""):i}return e},normalizePhoneNumber=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e||"number"==typeof e){var n=String(e).trim();if(n=(n=n.replace(/^[^0-9]*\+/,"00")).replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1"),t)return n.replace(/[^0-9]+/g,"");var r="(?:[ /\\-]+)";n=(n=n.replace(new RegExp("^(.+?)"+r+"?\\(0\\)"+r+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+r+"?\\((.+)\\)"+r+"?(.+)$"),"$1-$2-$3");var o=new RegExp("^(00[0-9]+)"+r+"([0-9]+)"+r+"(.+)$");if(o.test(n))n=n.replace(o,function(e,t,n,r){return t+"-"+n+"-"+sliceAllExceptNumberAndLastSeparator(r)});else{var i=function(e,t,n){return t.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeparator(n)};n=(o=/^([0-9 ]+)[/-](.+)$/).test(n)?n.replace(o,i):n.replace(new RegExp("^([0-9]+)"+r+"(.+)$"),i)}return n.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?String(e).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,function(e,t,n){var r;return t&&(t=t.substring(t.length-2).charAt(0).toUpperCase()+"-"),(null!==(r=t)&&void 0!==r?r:"")+(null!=n?n:"").trim().replace(/[^0-9]+/g,"")}):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;if(void 0===scope&&(scope={}),void 0===name&&(name="scope"),!_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)throw new Error("File system api could not be loaded.");serializedObject.endsWith(".json")&&(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.isFileSync)(serializedObject)&&(serializedObject=(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)(serializedObject,{encoding:_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes((0,_object__WEBPACK_IMPORTED_MODULE_4__.determineType)(e))&&e){var t=String(e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(t=(t=t.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,function(e,t,n,r){return t+(n.length%2==0?n.replace(/([0-9]{2})/g,"$1 "):n.replace(/^([0-9]{3})([0-9]+)$/,function(e,t,n){return t+" "+n.replace(/([0-9]{2})/g,"$1 ").trim()})+r).trim()}).trim()}return""},sliceAllExceptNumberAndLastSeparator=function(e){var t=/^(.*[0-9].*)-([0-9]+)$/;return t.test(e)?e.replace(t,function(e,t,n){return t.replace(/[^0-9]+/g,"")+"-"+n}):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,t){void 0===t&&(t="");var n="";return t&&(n=t+" "),e.startsWith(n)||e.trim().startsWith("<")||(e=n+e),e.trim()}},function(module,__nested_webpack_exports__,__nested_webpack_require_56636__){__nested_webpack_require_56636__.r(__nested_webpack_exports__),__nested_webpack_require_56636__.d(__nested_webpack_exports__,{clearRequireCache:function(){return clearRequireCache},currentImport:function(){return currentImport},currentRequire:function(){return currentRequire},isolatedRequire:function(){return isolatedRequire},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_56636__.c);for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a,delete e[i]}return t},restoreRequireCache=function(e,t){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_56636__.c),clearRequireCache();for(var n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];e[i]=a}},isolatedRequire=function(e,t){void 0===t&&(t=currentRequire||__nested_webpack_require_56636__(9));var n=clearRequireCache(t.cache);try{return t(e)}catch(e){throw e}finally{restoreRequireCache(t.cache,n)}}},function(e,t,n){n.r(t),n.d(t,{aggregatePropertyIfEqual:function(){return l},deleteEmptyItems:function(){return u},extract:function(){return c},extractIfMatches:function(){return d},extractIfPropertyExists:function(){return f},extractIfPropertyMatches:function(){return p},intersect:function(){return h},makeArray:function(){return m},makeRange:function(){return _},merge:function(){return v},paginate:function(){return g},permute:function(){return y},permuteLength:function(){return b},removeArrayItem:function(){return C},sortTopological:function(){return x},sumUpProperty:function(){return E},unique:function(){return A}});var r=n(4),o=n.n(r),i=n(1);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.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)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t,n){void 0===n&&(n="");var r=n;if(Array.isArray(e)&&e.length&&Object.prototype.hasOwnProperty.call(e[0],t)){r=e[0][t];for(var o=0,i=m(e);o<i.length;o++)if(i[o][t]!==r)return n}return r},u=function(e,t){void 0===t&&(t=[]);for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a=!0,s=0,l=Object.entries(i);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(!["",null,void 0].includes(d)&&(!t.length||m(t).includes(c))){a=!1;break}}a||n.push(i)}return n},c=function(e,t){for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a={},s=0,l=m(t);s<l.length;s++){var u=l[s];Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}n.push(a)}return n},d=function(e,t){if(!t)return m(e);for(var n=[],r=0,o=m(e);r<o.length;r++){var i=o[r];("string"==typeof t?new RegExp(t):t).test(i)&&n.push(i)}return n},f=function(e,t){if(e&&t){for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a=!1,s=0,l=Object.entries(i);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(c===t&&![null,void 0].includes(d)){a=!0;break}}a&&n.push(i)}return n}return e},p=function(e,t){if(e){for(var n=[],r=0,o=m(e);r<o.length;r++){var i=o[r],a=!0;for(var s in t)if(!t[s]||!("string"==typeof t[s]?new RegExp(t[s]):t[s]).test(i[s])){a=!1;break}a&&n.push(i)}return n}return e},h=function(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=!0);var o=[];t=m(t);for(var s=function(e,t,n,o,i,a){if(a?i&&(n=o):o=n,t[o]!==e[n]&&(r||![null,void 0].includes(t[o])||![null,void 0].includes(e[n])))return!1},l=0,u=m(e);l<u.length;l++){var c=u[l];if((0,i.isPlainObject)(c))for(var d=0,f=t;d<f.length;d++){var p=f[d],h=!0,_=void 0,v=Array.isArray(n);if((0,i.isPlainObject)(n)||v&&n.length?_=!0:(_=!1,n=c),Array.isArray(n))for(var g,y=0,b=a(n);!(g=b()).done;){if(!1===s(c,p,y,g.value,v,_)){h=!1;break}y+=1}else for(var E=0,C=Object.entries(n);E<C.length;E++){var x=C[E];if(!1===s(c,p,x[0],x[1],v,_)){h=!1;break}}if(h){o.push(c);break}}else t.includes(c)&&o.push(c)}return o},m=function(e){var t=[];return[null,void 0].includes(e)||((0,i.isArrayLike)(Object(e))?v(t,"string"==typeof e?[e]:e):t.push(e)),t},_=function(e,t,n){var r,o;if(void 0===t&&(t=1),void 0===n&&(n=!1),1===(e=[].concat(e)).length)r=0,o=parseInt(String(e[0]),10);else{if(2!==e.length)return e;r=parseInt(String(e[0]),10),o=parseInt(String(e[1]),10)}if(o<r)return[];for(var i=[r];r<=o-t;)r+=t,(!n||r<=o-t)&&i.push(r);return i},v=function(e,t){Array.isArray(t)||(t=Array.prototype.slice.call(t));for(var n,r=a(t);!(n=r()).done;){var o=n.value;e.push(o)}return e},g=function(e){void 0===e&&(e={});var t=e,n=t.boundaryCount,r=void 0===n?1:n,i=t.disabled,a=void 0!==i&&i,s=t.hideNextButton,l=void 0!==s&&s,u=t.hidePrevButton,c=void 0!==u&&u,d=t.page,f=void 0===d?1:d,p=t.pageSize,h=void 0===p?5:p,m=t.showFirstButton,v=void 0!==m&&m,g=t.showLastButton,y=void 0!==g&&g,b=t.siblingCount,E=void 0===b?4:b,C=t.total,x=void 0===C?100:C,A="number"!=typeof h||isNaN(h)?x:Math.ceil(x/h),I=_([1,Math.min(r,A)]),O=_([Math.max(A-r+1,r+1),A]),T=Math.max(Math.min(f-E,A-r-2*E-1),r+2),S=Math.min(Math.max(f+E,r+2*E+2),O.length>0?O[0]-2:A-1);return[].concat(v?["first"]:[],c?[]:["previous"],I,T>r+2?["start-ellipsis"]:r+1<A-r?[r+1]:[],_([T,S]),S<A-r-1?["end-ellipsis"]:A-r>r?[A-r]:[],O,l?[]:["next"],y?["last"]:[]).map(function(e){var t;return"number"==typeof e?{disabled:a,page:e,selected:e===f,type:"page"}:o()({disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?f>=A:f<=1),selected:!1,type:e},e.endsWith("-ellipsis")?{}:{page:(null!==(t={first:1,last:A}[e])&&void 0!==t?t:"next"===e)?Math.min(f+1,A):Math.max(f-1,1)})})},y=function(e){var t=[],n=function(e,r){if(void 0===r&&(r=[]),0===e.length)t.push(r);else for(var o=0;o<e.length;o++){var i=e.slice();n(i,r.concat(i.splice(o,1)))}};return n(e),t},b=function(e,t){void 0===t&&(t=1);var n=[];if(0===e.length)return n;for(var r=function(e,t,o){if(0!==e)for(var i=0;i<t.length;i++)r(e-1,t.slice(i+1),o.concat([t[i]]));else o.length>0&&(n[n.length]=o)},o=t;o<e.length;o++)r(o,e,[]);return n.push(e),n},E=function(e,t){var n=0;if(Array.isArray(e)&&e.length)for(var r,o=a(e);!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(i,t)&&(n+=parseFloat(i[t]||0))}return n},C=function(e,t,n){void 0===n&&(n=!1);var r=e.indexOf(t);if(-1===r){if(n)throw new Error("Given target doesn't exists in given list.")}else e.splice(r,1);return e},x=function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(e[i]=[].concat(s),s.length>0)for(var l,u=a(m(s));!(l=u()).done;){var c=l.value;t.push([i,c])}else t.push([i])}for(var d=[],f=0,p=t;f<p.length;f++)for(var h,_=a(p[f]);!(h=_()).done;){var v=h.value;d.includes(v)||d.push(v)}for(var g=[],y=function(e,n){if(0!==n.length&&n.includes(e))throw new Error('Cyclic dependency found. "'+e+'" is dependent of itself.\nDependency chain: "'+n.join('" -> "')+'" => "'+e+'".');var r=d.indexOf(e);if(-1!==r){var o;d[r]=null;for(var i=0,a=t;i<a.length;i++){var s=a[i];s[0]===e&&(o=o||n.concat([e]),y(s[1],o))}g.push(e)}},b=0;b<d.length;b++){var E=d[b];if(E){d[b]=null;for(var C,x=a(t);!(C=x()).done;){var A=C.value;A[0]===E&&y(A[1],[E])}g.push(E)}}return g},A=function(e){for(var t,n=[],r=a(m(e));!(t=r()).done;){var o=t.value;n.includes(o)||n.push(o)}return n}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=9,e.exports=t},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e,t,n){n.d(t,{BoundTools:function(){return v},JAVASCRIPT_DEPENDENT_CONTENT_HANDLED:function(){return m},Tools:function(){return _}});var r=n(10),o=n.n(r),i=n(13),a=n.n(i),s=n(7),l=n(0),u=n(2),c=n(1),d=n(3),f=n(5);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=!1,_=function(){function e(t){var n=this;this.$domNode=null,this.options=void 0,this._bindEventHelper=function(e,t,r){void 0===t&&(t=!1),r||(r=t?"off":"on");var o=(0,u.$)(e[0]);if("object"===(0,d.determineType)(e[1])&&!t){for(var i=0,a=Object.entries(e[1]);i<a.length;i++){var l=a[i],c=l[0],f=l[1];n[r](o,c,f)}return o}return 0===(e=(0,s.makeArray)(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+n.options.name),o[r].apply(o,e)},t&&(this.$domNode=t),this.options=e._defaultOptions,Object.prototype.hasOwnProperty.call(u.$.global,"console")||(u.$.global.console={}),u.$.global.console||(u.$.global.console={});for(var r,o=p(l.CONSOLE_METHODS);!(r=o()).done;){var i=r.value;i in u.$.global.console||(u.$.global.console[i]=u.NOOP)}}var t=e.prototype;return t.destructor=function(){var e;return null!=(e=u.$.fn)&&e.off&&this.off("*"),this},t.initialize=function(t){return void 0===t&&(t={}),this.options=(0,d.extend)(!0,{},e._defaultOptions,t),this.options.domNodeSelectorPrefix=(0,f.format)(this.options.domNodeSelectorPrefix,(0,f.camelCaseToDelimited)(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},e.controller=function(t,n,r){void 0===r&&(r=null),"function"==typeof t&&((t=new t(r))instanceof e||(t=(0,d.extend)(!0,new e,t)));var o,i=(0,s.makeArray)(n);if(i.length&&"string"==typeof i[0]&&i[0]in t)return(0,c.isFunction)(t[i[0]])?(o=t)[i[0]].apply(o,i.slice(1)):t[i[0]];if(0===i.length||"object"==typeof i[0]){var a,l,u=(a=t).initialize.apply(a,i),f=t.options.name||t.constructor.name;return null!=(l=r)&&l.data&&!r.data(f)&&r.data(f,t),u}if(i.length&&"string"==typeof i[0])throw new Error('Method "'+i[0]+'" does not exist on $-extended dom node "'+t+'".')},e.isEquivalentDOM=function(e,t,n){if(void 0===n&&(n=!1),e===t)return!0;if(e&&t){for(var r=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:t},i={first:(0,u.$)("<dummy>"),second:(0,u.$)("<dummy>")},a=0,s=Object.entries(o);a<s.length;a++){var l=s[a],c=l[0],d=l[1];if("string"==typeof d&&(n||d.startsWith("<")&&d.endsWith(">")&&d.length>=3||r.test(d)))i[c]=(0,u.$)("<div>"+d+"</div>");else try{var f=(0,u.$)(d).clone();if(!f.length)return!1;i[c]=(0,u.$)("<div>").append(f)}catch(e){return!1}}if(i.first.length&&i.first.length===i.second.length){i.first=i.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,i.second=i.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var p=0,h=0,m=i.first;h<m.length;h++){if(!m[h].isEqualNode(i.second[p]))return!1;p+=1}return!0}}return!1},t.getPositionRelativeToViewport=function(e){if(void 0===e&&(e={}),!u.$.global.window)throw new Error("No window object available.");var t=(0,d.extend)({bottom:0,left:0,right:0,top:0},e),n=this.$domNode;if(Object.prototype.hasOwnProperty.call(u.$.global,"window")&&null!=n&&n.length&&n[0]&&"getBoundingClientRect"in n[0]){var r=(0,u.$)(u.$.global.window),o=n[0].getBoundingClientRect();if(o.top&&o.top+t.top<0)return"above";if(o.left+t.left<0)return"left";var i=r.height();if("number"==typeof i&&i<o.bottom+t.bottom)return"below";var a=r.width();if("number"==typeof a&&a<o.right+t.right)return"right"}return"in"},e.generateDirectiveSelector=function(e){var t=(0,f.camelCaseToDelimited)(e);return t+", ."+t+", ["+t+"], [data-"+t+"], [x-"+t+"]"+(t.includes("-")?", ["+t.replace(/-/g,"\\:")+"], ["+t.replace(/-/g,"_")+"]":"")},t.removeDirective=function(e){if(null===this.$domNode)return null;var t=(0,f.camelCaseToDelimited)(e);return this.$domNode.removeClass(t).removeAttr(t).removeAttr("data-"+t).removeAttr("x-"+t).removeAttr(t.replace("-",":")).removeAttr(t.replace("-","_"))},t.renderJavaScriptDependentVisibility=function(){!m&&u.$.document&&"filter"in u.$&&"hide"in u.$&&"show"in u.$&&((0,u.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter(function(e,t){return!(0,u.$)(t).data("javaScriptDependentContentHide")}).data("javaScriptDependentContentHide",!0).hide(),(0,u.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter(function(e,t){return!(0,u.$)(t).data("javaScriptDependentContentShow")}).data("javaScriptDependentContentShow",!0).show(),m=!0)},e.getNormalizedDirectiveName=function(e){for(var t,n=p(["-",":","_"]);!(t=n()).done;){for(var r,o=t.value,i=!1,a=p(["data"+o,"x"+o]);!(r=a()).done;){var s=r.value;if(e.startsWith(s)){e=e.substring(s.length),i=!0;break}}if(i)break}for(var l,u=p(["-",":","_"]);!(l=u()).done;){var c=l.value;e=(0,f.delimitedToCamelCase)(e,c)}return e},t.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var t=(0,f.camelCaseToDelimited)(e),n=0,r=[t,"data-"+t,"x-"+t,t.replace("-","\\:")];n<r.length;n++){var o=r[n],i=this.$domNode.attr(o);if("string"==typeof i)return i}return null},t.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},e.getDomNodeName=function(e){var t=/^<?([a-zA-Z]+).*>?.*/.exec(e);return t?t[1]:null},t.grabDomNodes=function(e,t){var n=this,r={};if(t)for(var o=(0,u.$)(t),i=0,a=Object.entries(e);i<a.length;i++){var s=a[i],l=s[0],c=s[1];r[l]=o.find(c)}else for(var d=0,p=Object.entries(e);d<p.length;d++){var h=p[d],m=h[0],_=h[1],v=/, */.exec(_);v&&(e[m]+=_.split(v[0]).map(function(e){return", "+(0,f.normalizeDomNodeSelector)(e,n.options.domNodeSelectorPrefix)}).join("")),r[m]=(0,u.$)((0,f.normalizeDomNodeSelector)(e[m],this.options.domNodeSelectorPrefix))}return this.options.domNodeSelectorPrefix&&(r.parent=(0,u.$)(this.options.domNodeSelectorPrefix)),Object.prototype.hasOwnProperty.call(u.$.global,"window")&&(r.window=(0,u.$)(u.$.global.window),u.$.document&&(r.document=(0,u.$)(u.$.document))),r},t.fireEvent=function(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=this);for(var o="on"+(0,f.capitalize)(e),i=n,a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return t||(o in i?i[o].apply(i,s):"_"+o in i&&i["_"+o].apply(i,s)),!i.options||!(o in i.options)||i.options[o]===u.NOOP||(r=i.options[o]).call.apply(r,[this].concat(s))},t.on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!1)},t.off=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!0)},a()(e,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each(function(t,n){var r=(0,u.$)(n),o=r.attr(e);o?r.attr(e,o.trim().replace(/ +/," ").split(" ").sort().join(" ")):r.is("[class]")&&r.removeAttr(e)})}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each(function(t,n){var r=(0,u.$)(n),o=r.attr(e);o?r.attr(e,(0,f.compressStyleValue)((0,f.compressStyleValue)(o).split(";").sort().map(function(e){return e.trim()}).join(";"))):r.is("[style]")&&r.removeAttr(e)})}return this}},{key:"style",get:function(){var e={},t=this.$domNode;if(null!=t&&t.length){var n,r;if(null!=(n=u.$.global.window)&&n.getComputedStyle){if("length"in(r=u.$.global.window.getComputedStyle(t[0],null)))for(var o=0;o<r.length;o+=1){var i=r[o];e[(0,f.delimitedToCamelCase)(i)]=r.getPropertyValue(i)}else for(var a=0,s=Object.entries(r);a<s.length;a++){var l=s[a],c=l[0],d=l[1];e[(0,f.delimitedToCamelCase)(c)]=d||r.getPropertyValue(c)}return e}r=t[0].style;for(var p=0,h=Object.entries(r);p<h.length;p++){var m=h[p],_=m[0],v=m[1];"function"!=typeof v&&(e[_]=v)}}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}])}();_._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",name:"Tools"};var v=function(e){function t(n){for(var r,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this,n].concat(i))||this).$domNode=void 0,r.self=t,r.$domNode=n,r}return o()(t,e),t}(_);t.default=_},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__12__){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e,t,n){n.r(t),n.d(t,{ceil:function(){return s},floor:function(){return l},getUTCTimestamp:function(){return o},isNotANumber:function(){return i},round:function(){return a}});var r=n(3),o=function(e,t){void 0===t&&(t=!1);var n=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())/(t?1:1e3)},i=function(e){return"number"===(0,r.determineType)(e)&&isNaN(e)},a=function(e,t){return void 0===t&&(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},s=function(e,t){return void 0===t&&(t=0),Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)},l=function(e,t){return void 0===t&&(t=0),Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){n.d(t,{Lock:function(){return s}});var r=n(18),o=n.n(r),i=n(19),a=n.n(i),s=function(){function e(e){void 0===e&&(e={}),this.locks=void 0,this.locks=e}var t=e.prototype;return t.acquire=function(e,t,n){var r=this;return void 0===n&&(n=!1),new Promise(function(o){var i=function(e){var i,a;t&&(a=t(e));var s=function(t){return n&&r.release(e),o(t),t};return null!=(i=a)&&i.then?a.then(s):(s(a),a)};Object.prototype.hasOwnProperty.call(r.locks,e)?r.locks[e].push(i):(r.locks[e]=[],i(e))})},t.release=function(){var e=o()(a().mark(function e(t){var n;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object.prototype.hasOwnProperty.call(this.locks,t)){e.next=3;break}if(void 0!==(n=this.locks[t].shift())){e.next=1;break}delete this.locks[t],e.next=3;break;case 1:return e.next=2,n(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),e}()},function(e,t,n){n.d(t,{Semaphore:function(){return r}});var r=function(){function e(e){void 0===e&&(e=2),this.queue=[],this.numberOfResources=void 0,this.numberOfFreeResources=void 0,this.numberOfResources=e,this.numberOfFreeResources=e}var t=e.prototype;return t.acquire=function(){var e=this;return new Promise(function(t){e.numberOfFreeResources<=0?e.queue.push(t):(e.numberOfFreeResources-=1,t(e.numberOfFreeResources))})},t.release=function(){var e=this.queue.shift();void 0===e?this.numberOfFreeResources+=1:e(this.numberOfFreeResources)},e}()},function(e,t,n){n.r(t),n.d(t,{copyDirectoryRecursive:function(){return q},copyDirectoryRecursiveSync:function(){return H},copyFile:function(){return K},copyFileSync:function(){return z},isDirectory:function(){return $},isDirectorySync:function(){return G},isFile:function(){return X},isFileSync:function(){return Y},mkdirSync:function(){return _},readFileSync:function(){return b},readdirSync:function(){return g},statSync:function(){return C},walkDirectoryRecursively:function(){return Q},walkDirectoryRecursivelySync:function(){return J},writeFileSync:function(){return A}});var r=n(4),o=n.n(r),i=n(18),a=n.n(i),s=n(19),l=n.n(s),u=n(0),c=n(2),d=n(6);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.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)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=(0,d.optionalRequire)("fs")||{},m=h.mkdirSync,_=void 0===m?null:m,v=h.readdirSync,g=void 0===v?null:v,y=h.readFileSync,b=void 0===y?null:y,E=h.statSync,C=void 0===E?null:E,x=h.writeFileSync,A=void 0===x?null:x,I=(0,d.optionalRequire)("fs/promises")||{},O=I.mkdir,T=void 0===O?null:O,S=I.readdir,w=void 0===S?null:S,P=I.readFile,L=void 0===P?null:P,N=I.stat,R=void 0===N?null:N,D=I.writeFile,M=void 0===D?null:D,k=(0,d.optionalRequire)("path")||{},j=k.basename,F=void 0===j?null:j,B=k.join,U=void 0===B?null:B,V=k.resolve,W=void 0===V?null:V,q=function(){var e=a()(l().mark(function e(t,n,r,o,i){var a,s,d,p,h,m,_,v;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r=c.NOOP),void 0===o&&(o={encoding:null,flag:"r"}),void 0===i&&(i={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),F&&U&&T&&W){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return t=W(t),e.next=2,$(n);case 2:if(!e.sent){e.next=3;break}n=W(n,F(t));case 3:return e.prev=3,e.next=4,T(n);case 4:e.next=6;break;case 5:if(e.prev=5,"EEXIST"===(m=e.catch(3)).code){e.next=6;break}throw m;case 6:return _=f,e.next=7,Q(t,r);case 7:a=_(e.sent);case 8:if((s=a()).done){e.next=15;break}if(p=s.value,h=U(n,p.path.substring(t.length)),null==(d=p.stats)||!d.isDirectory()){e.next=13;break}return e.prev=9,e.next=10,T(h);case 10:e.next=12;break;case 11:if(e.prev=11,"EEXIST"===(v=e.catch(9)).code){e.next=12;break}throw v;case 12:e.next=14;break;case 13:return e.next=14,K(p.path,h,o,i);case 14:e.next=8;break;case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}},e,null,[[3,5],[9,11]])}));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),H=function(e,t,n,r,o){if(void 0===n&&(n=c.NOOP),void 0===r&&(r={encoding:null,flag:"r"}),void 0===o&&(o={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&U&&_&&W))throw new Error("Could not load filesystem functions.");e=W(e),G(t)&&(t=W(t,F(e)));try{_(t)}catch(e){if("EEXIST"!==e.code)throw e}for(var i=0,a=J(e,n);i<a.length;i++){var s,l=a[i],d=U(t,l.path.substring(e.length));if(null!=(s=l.stats)&&s.isDirectory())try{_(d)}catch(e){if("EEXIST"!==e.code)throw e}else z(l.path,d,r,o)}return t},K=function(){var e=a()(l().mark(function e(t,n,r,o){var i,a;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r={encoding:null,flag:"r"}),void 0===o&&(o={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),F&&L&&W&&M){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.next=2,$(n);case 2:if(!e.sent){e.next=3;break}n=W(n,F(t));case 3:return i=M,a=n,e.next=4,L(t,r);case 4:return e.next=5,i(a,e.sent,o);case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),z=function(e,t,n,r){if(void 0===n&&(n={encoding:null,flag:"r"}),void 0===r&&(r={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&b&&W&&A))throw new Error("Could not load filesystem functions.");return G(t)&&(t=W(t,F(e))),A(t,b(e,n),r),t},$=function(){var e=a()(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,R(t);case 2:return e.abrupt("return",e.sent.isDirectory());case 3:if(e.prev=3,n=e.catch(1),!Object.prototype.hasOwnProperty.call(n,"code")||!["ENOENT","ENOTDIR"].includes(n.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw n;case 5:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),G=function(e){if(!C)throw new Error("Could not load filesystem functions.");try{return C(e).isDirectory()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},X=function(){var e=a()(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,R(t);case 2:return e.abrupt("return",e.sent.isFile());case 3:if(e.prev=3,n=e.catch(1),!Object.prototype.hasOwnProperty.call(n,"code")||!["ENOENT","ENOTDIR"].includes(n.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw n;case 5:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),Y=function(e){if(!C)throw new Error("Could not load filesystem functions.");try{return C(e).isFile()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},Q=function(){var e=a()(l().mark(function e(t,n,r){var i,a,s,c,d,p,h,m,_,v,g,y,b,E,C;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n=null),void 0===r&&(r=u.DEFAULT_ENCODING),w&&W&&R){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return i=[],b=f,e.next=2,w(t,"string"==typeof r?{encoding:r,withFileTypes:!0}:o()({},r,{withFileTypes:!0}));case 2:a=b(e.sent);case 3:if((s=a()).done){e.next=9;break}return c=s.value,d=W(t,c.name),p={directoryPath:t,directoryEntry:c,error:null,name:c.name,path:d,stats:null},e.prev=4,e.next=5,R(d);case 5:p.stats=e.sent,e.next=7;break;case 6:e.prev=6,E=e.catch(4),p.error=E;case 7:i.push(p);case 8:e.next=3;break;case 9:n&&i.sort(function(e,t){var n,r,o;return null!=(n=e.stats)&&n.isDirectory()?null!=(o=t.stats)&&o.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0}),h=[],m=0,_=i;case 10:if(!(m<_.length)){e.next=17;break}if(g=_[m],h.push(g),null!==(y=n?n(g):void 0)){e.next=11;break}return e.abrupt("continue",17);case 11:if("object"!=typeof y||!("then"in y)){e.next=13;break}return e.next=12,y;case 12:y=e.sent;case 13:if(null!==y){e.next=14;break}return e.abrupt("continue",17);case 14:if(!1===y||null==(v=g.stats)||!v.isDirectory()){e.next=16;break}return C=h,e.next=15,Q(g.path,n,r);case 15:h=C.concat.call(C,e.sent);case 16:m++,e.next=10;break;case 17:return e.abrupt("return",h);case 18:case"end":return e.stop()}},e,null,[[4,6]])}));return function(t,n,r){return e.apply(this,arguments)}}(),J=function(e,t,n){if(void 0===t&&(t=c.NOOP),void 0===n&&(n=u.DEFAULT_ENCODING),!(g&&W&&C))throw new Error("Could not load filesystem functions.");for(var r,i=[],a=f(g(e,"string"==typeof n?{encoding:n,withFileTypes:!0}:o()({},n,{withFileTypes:!0})));!(r=a()).done;){var s=r.value,l=W(e,s.name),d={directoryPath:e,directoryEntry:s,error:null,name:s.name,path:l,stats:null};try{d.stats=C(l)}catch(e){d.error=e}i.push(d)}var p=[];if(t){i.sort(function(e,t){var n,r,o;return null!=(n=e.stats)&&n.isDirectory()?null!=(o=t.stats)&&o.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0});for(var h,m=f(i);!(h=m()).done;){var _,v=h.value;p.push(v);var y=t(v);if(null===y)break;!1!==y&&null!=(_=v.stats)&&_.isDirectory()&&(p=p.concat(J(v.path,t,n)))}}return p}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__18__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e,t,n){n.r(t),n.d(t,{debounce:function(){return i},timeout:function(){return a}});var r=n(2),o=n(1),i=function(e,t){void 0===t&&(t=600);for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,s,l=new Promise(function(e){s=e});return function(){for(var n,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u=u.concat(r),null==(n=i)||n.clear(),i=a(function(){s(e.apply(void 0,u)),l=new Promise(function(e){s=e})},t),l}},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i,a,s=r.NOOP,l=0,u=!1,c=0,d=t;c<d.length;c++){var f=d[c];"number"!=typeof f||isNaN(f)?"boolean"==typeof f?u=f:(0,o.isFunction)(f)&&(s=f):l=f}var p=new Promise(function(e,t){i=t,a=e}),h=function(){var e;(e=s).call.apply(e,[p].concat(t)),a(!1)},m=2147483647;if(l<=m)p.timeoutID=setTimeout(h,l);else{var _=Math.floor(l/m),v=l%m,g=function(){_>0?(_-=1,p.timeoutID=setTimeout(g,m)):p.timeoutID=setTimeout(h,v)};g()}return p.clear=function(){Object.prototype.hasOwnProperty.call(p,"timeoutID")&&(clearTimeout(p.timeoutID),(u?i:a)(!0))},p}},function(e,t,n){n.d(t,{CLI_COLOR:function(){return r}});var r={black:"",blink:"",blue:"",bold:"",cyan:"",darkGray:"",default:"",dim:"",green:"",invert:"",invisible:"",lightBlue:"",lightCyan:"",lightGray:"",lightGreen:"",lightMagenta:"",lightRed:"",lightYellow:"",magenta:"",nodim:"",noblink:"",nobold:"",noinvert:"",noinvisible:"",nounderline:"",red:"",underline:"",white:"",yellow:""}},function(e,t,n){n.r(t),n.d(t,{LEVELS:function(){return l},LEVELS_COLOR:function(){return u},Logger:function(){return c}});var r,o=n(21),i=n(2),a=n(1),s=n(3),l=["error","critical","warn","info","debug"],u=[o.CLI_COLOR.red,o.CLI_COLOR.magenta,o.CLI_COLOR.yellow,o.CLI_COLOR.green,o.CLI_COLOR.blue],c=function(){function e(t){void 0===t&&(t={}),this.level=e.defaultLevel,this.name=e.defaultName,this.configure(t),e.instances[this.name]=this}e.configureAllInstances=function(t){void 0===t&&(t={}),t.level&&(e.defaultLevel=t.level),t.name&&(e.defaultName=t.name);for(var n=0,r=Object.values(e.instances);n<r.length;n++)r[n].configure(t)};var t=e.prototype;return t.configure=function(t){var n=t.name,r=t.level;this.level=r||e.defaultLevel,this.name=n||e.defaultName},t.log=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="info");var s=l.indexOf(this.level),c=l.indexOf(r);if(t||s>=c){for(var d,f=[],p=""+u[c]+r+o.CLI_COLOR.default+":"+this.name+":"+(new Date).toISOString()+":",h=arguments.length,m=new Array(h>4?h-4:0),_=4;_<h;_++)m[_-4]=arguments[_];if(n)f.push(e);else if("string"==typeof e)f.push.apply(f,[p,e].concat(m));else if((0,a.isNumeric)(e)||"boolean"==typeof e)f.push.apply(f,[p,e.toString()].concat(m));else{var v=77-p.length,g=Math.floor(v/2);this.log(","+"-".repeat(g)+p+"-".repeat(g)+"-".repeat(v%2)+","),this.log(e,t,!0),this.log("'"+"-".repeat(77)+"'")}if(f.length)if(i.$.global.console&&r in i.$.global.console&&i.$.global.console[r]!==i.NOOP)(d=i.$.global.console)[r].apply(d,f);else{var y;Object.prototype.hasOwnProperty.call(i.$.global,"window")&&Object.prototype.hasOwnProperty.call(i.$.global.window,"alert")&&(null==(y=i.$.global.window)||y.alert(f.join(" ")))}}},t.info=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"info"].concat(n))},t.debug=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"debug"].concat(n))},t.error=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"error"].concat(n))},t.critical=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"warn"].concat(n))},t.warn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"warn"].concat(n))},e.show=function(t,n,r){void 0===n&&(n=3),void 0===r&&(r=0);var o="";if("object"===(0,s.determineType)(t)){for(var i=0,a=Object.entries(t);i<a.length;i++){var l=a[i],u=l[0],c=l[1];o+=u+": ",o+=r<=n?e.show(c,n,r+1):String(c),o+="\n"}return o.trim()}return(o=String(t).trim())+' (Type: "'+(0,s.determineType)(t)+'")'},e}();r=c,c.defaultLevel="info",c.defaultName="app",c.selfClass=r,c.instances={},c.runtimeVersion=Math.random(),t.default=c},function(e,t,n){n.r(t),n.d(t,{DATE_TIME_PATTERN_CACHE:function(){return d},dateTimeFormat:function(){return f},interpretDateTime:function(){return p},normalizeDateTime:function(){return h},sliceWeekday:function(){return m}});var r=n(8),o=n.n(r),i=n(4),a=n.n(i),s=n(0),l=n(5);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=[],f=function(e,t,n,r){void 0===e&&(e="full"),void 0===t&&(t=new Date),void 0===n&&(n={}),void 0===r&&(r=s.LOCALES),"number"==typeof t&&(t*=1e3);var o=new Date(t);if(["full","long","medium","short"].includes(e))return new Intl.DateTimeFormat([].concat(r,"en-US"),a()({dateStyle:e,timeStyle:e},n)).format(o);for(var i,c={},d=u(["full","long","medium","short"]);!(i=d()).done;){var f=i.value;c[f+"Literals"]=[];var p=new Intl.DateTimeFormat([].concat(r,"en-US"),a()({dateStyle:f,timeStyle:f},n));c[f]=p.format(o);for(var h,m=u(p.formatToParts(o));!(h=m()).done;){var _=h.value;"literal"===_.type?c[f+"Literals"].push(_.value):c[""+f+(0,l.capitalize)(_.type)]=_.value}}var v=(0,l.evaluate)("`"+e+"`",c);if(v.error)throw new Error(v.error);return v.result.replace(/\s/g," ")},p=function(e,t){var n=Boolean(t),r="[0-2][0-9]:[0-6][0-9]",i="^[0-9]{4}-[01][0-9]-[0-3][0-9](?<time>(?:T"+r+"(?::[0-6][0-9](?:\\.[0-9]+)?)?(?<dateTimeTimezone>Z|(?:[+-]"+r+"))?)|(?<dateTimezone>Z|(?:[+-]"+r+")))?$",a=e.match(new RegExp(i,"i"));if(a){var s,c,f,h,_,v=new Date(e);return isNaN(v.getDate())?null:(null!==(s=null==(c=a.groups)?void 0:c.dateTimeTimezone)&&void 0!==s?s:null==(f=a.groups)?void 0:f.dateTimezone)?v:([null,void 0].includes(t)&&(n=!1),n?null!=(_=a.groups)&&_.time?new Date(v.getTime()-60*v.getTimezoneOffset()*1e3):v:null!=(h=a.groups)&&h.time?v:new Date(v.getTime()+60*v.getTimezoneOffset()*1e3))}if(e=e.replace(/^(-?)-*0*([1-9][0-9]*)$/,"$1$2"),String(parseInt(e))===e){[null,void 0].includes(t)&&(n=!0);var g=new Date(1e3*parseInt(e));return new Date(1e3*(parseInt(e)+(n?0:60*g.getTimezoneOffset())))}if(!d.length)for(var y,b="(?:0?[0-9])|(?:[1-5][0-9])|(?:60)",E="(?<second>"+b+")",C="(?<minute>"+b+")",x="(?<hour>(?:0?[0-9])|(?:1[0-9])|(?:2[0-4]))",A="(?<noonIndicator> *(?:(?:a\\.?m\\.?)|(?:p\\.?m\\.?)))?",I="(?<day>(?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))",O="(?<month>(?:0?[1-9])|(?:1[0-2]))",T="(?<year>(?:0?[1-9])|(?:[1-9][0-9]+))",S={},w=u(["t"," "]);!(y=w()).done;)for(var P,L=y.value,N=u([":","/","-"," "]);!(P=N()).done;)for(var R=P.value,D=0,M=[x+(R+"+")+C+A,x+(R+"+")+C+R+"+"+E+A,x+(R+"+")+C+R+"+"+E+R+"+(?<millisecond>(?:0{0,3}[0-9])|(?:0{0,2}[1-9]{2})|(?:0?[1-9]{3})|(?:1[1-9]{3}))"+A,x+A];D<M.length;D++)for(var k=M[D],j=0,F=[{delimiter:["/","-"," "],pattern:[O+"${delimiter}"+I+"${delimiter}"+T,O+"${delimiter}"+I+" +"+T,T+"${delimiter}"+O+"${delimiter}"+I,T+" +"+O+"${delimiter}"+I,O+"${delimiter}"+I+"${delimiter}"+T+L+"+"+k,O+"${delimiter}"+I+" +"+T+L+"+"+k,k+(L+"+")+O+"${delimiter}"+I+"${delimiter}"+T,k+(L+"+")+O+"${delimiter}"+I+" +"+T,T+"${delimiter}"+O+"${delimiter}"+I+L+"+"+k,T+" +"+O+"${delimiter}"+I+L+"+"+k,k+(L+"+")+T+"${delimiter}"+O+"${delimiter}"+I,k+(L+"+")+T+" +"+O+"${delimiter}"+I]},{delimiter:"\\.",pattern:[I+"${delimiter}"+O+"${delimiter}"+T,I+"${delimiter}"+O+" +"+T,T+"${delimiter}"+I+"${delimiter}"+O,T+" +"+I+"${delimiter}"+O,I+"${delimiter}"+O+"${delimiter}"+T+L+"+"+k,I+"${delimiter}"+O+" +"+T+L+"+"+k,k+(L+"+")+I+"${delimiter}"+O+"${delimiter}"+T,k+(L+"+")+I+"${delimiter}"+O+" +"+T,T+"${delimiter}"+I+"${delimiter}"+O+L+"+"+k,T+" +"+I+"${delimiter}"+O+L+"+"+k,k+(L+"+")+T+"${delimiter}"+I+"${delimiter}"+O,k+(L+"+")+T+" +"+I+"${delimiter}"+O]},{pattern:k}];j<F.length;j++)for(var B,U=F[j],V=u([].concat(Object.prototype.hasOwnProperty.call(U,"delimiter")?U.delimiter:"-"));!(B=V()).done;)for(var W,q=B.value,H=u([].concat(U.pattern));!(W=H()).done;){var K=W.value,z=(0,l.evaluate)("`^"+K+"$`",{delimiter:q+"+"}).result;z&&!Object.prototype.hasOwnProperty.call(S,z)&&(S[z]=!0,d.push(new RegExp(z)))}e=(e=e.toLowerCase()).replace(/([^0-9a-z])[^0-9a-z]+/g,"$1");for(var $=1,G=0,X=[["jan","january?","janvier"],["feb","february?","février"],["m(?:a|ae|ä)r","m(?:a|ae|ä)r(?:ch|s|z)"],["ap[rv]","a[pv]ril"],["ma[iy]"],["ju[ein]","jui?n[ei]?"],["jul","jul[iy]","juillet"],["aug","august","août"],["sep","septemb(?:er|re)"],["o[ck]t","o[ck]tob(?:er|re)"],["nov","novemb(?:er|re)"],["de[cz]","d[eé][cz]emb(?:er|re)"]];G<X.length;G++){for(var Y,Q=!1,J=u(X[G]);!(Y=J()).done;){var Z=Y.value,ee=new RegExp("(^|[^a-z])"+Z+"([^a-z]|$)");if(ee.test(e)){e=e.replace(ee,"$1"+String($)+"$2"),Q=!0;break}}if(Q)break;$+=1}e=m(e);var te=/(.+)\+(.+)$/,ne=te.exec(e);ne&&(e=e.replace(te,"$1"));for(var re,oe=u(["","Uhr","o'clock"]);!(re=oe()).done;){var ie=re.value;e=e.replace(ie,"")}e=e.trim();for(var ae,se=function(){var t=ue[le],r=null;try{r=e.match(t)}catch(e){}if(r){var i,a=function(e,t){return void 0===t&&(t=0),r.groups&&e in r.groups?parseInt(r.groups[e],10):t},s=[a("year",1970),a("month",1)-1,a("day",1),a("hour"),a("minute"),a("second"),a("millisecond")];null!=(i=r.groups)&&i.noonIndicator&&"pm"===r.groups.noonIndicator.trim().replace(/\./g,"")&&s[3]<=12&&(s[3]+=12);var l=null;if(ne){var u=p(ne[2],!0);u&&(l=new Date(Date.UTC.apply(Date,s)-u.getTime()))}return l||(l=n?new Date(Date.UTC.apply(Date,s)):o()(Date,s)),isNaN(l.getDate())?{v:null}:{v:l}}},le=0,ue=d;le<ue.length;le++)if(ae=se())return ae.v;return null},h=function(e,t){void 0===e&&(e=null);var n=Boolean(t);if(null===e)return new Date;if("string"==typeof e){if(/^.*(?:(?:[0-9]{1,4}[^0-9]){2}|[0-9]{1,4}[^0-9.]).*$/.test(e))return p(e,n);var r=parseFloat(e);String(r)===e&&(e=r)}if("number"==typeof e){[null,void 0].includes(t)&&(n=!0);var o=new Date(1e3*e);return new Date(1e3*(e+(n?0:60*o.getTimezoneOffset())))}var i=new Date(e);return isNaN(i.getDate())?null:i},m=function(e){var t=/[a-z]{2}\.+ *([^ ].*)$/i;return t.exec(e)?e.replace(t,"$1"):e}},function(e,t,n){function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{getParameterNames:function(){return i},identity:function(){return a},invertArrayFilter:function(){return s}});var i=function(e){var t=("string"==typeof e?e:e.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,"");if(t.startsWith("class"))return i("function "+t.replace(/.*(constructor\([^)]+\))/m,"$1"));var n=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(t);null===n&&(n=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(t)),null===n&&(n=/([^= ]+) *=>.*/m.exec(t));var o=[];if(n&&n.length>1&&n[1].trim().length){for(var a,s=r(n[1].split(","));!(a=s()).done;){var l=a.value;o.push(l.replace(/=.+$/g,"").trim())}return o}return o},a=function(e){return e},s=function(e){return function(t){if(Array.isArray(t)){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=e.apply(void 0,[t].concat(o)),s=[];if(a.length)for(var l,u=r(t);!(l=u()).done;){var c=l.value;a.includes(c)||s.push(c)}else s=t;return s}return t}}},function(e,t,n){n.d(t,{deleteCookie:function(){return s},getCookie:function(){return l},setCookie:function(){return u}});var r=n(4),o=n.n(r),i=n(2);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e){i.$.document&&(i.$.document.cookie=e+"=; Max-Age=-99999999;")},l=function(e){if(i.$.document){for(var t,n=e+"=",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.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;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(decodeURIComponent(i.$.document.cookie).split(";"));!(t=r()).done;){for(var o=t.value;o.startsWith(" ");)o=o.substring(1);if(o.startsWith(n))return o.substring(n.length,o.length)}return""}return null},u=function(e,t,n){if(void 0===n&&(n={}),i.$.document){var r,a=o()({domain:"",httpOnly:!1,minimal:!1,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:!0},n),s=new Date;return s.setTime(s.getTime()+24*a.numberOfDaysUntilExpiration*60*60*1e3),""===a.domain&&null!=(r=i.$.location)&&r.hostname&&(a.domain=i.$.location.hostname),i.$.document.cookie=e+"="+t+(a.minimal?"":';Expires="'+s.toUTCString()+";Path="+a.path+";Domain="+a.domain+(a.sameSite?";SameSite="+a.sameSite:"")+(a.secure?";Secure":"")+(a.httpOnly?";HttpOnly":"")),!0}return!1}},function(e,t,n){n.d(t,{cacheImage:function(){return p},checkReachability:function(){return d},checkUnreachability:function(){return f},sendToExternalURL:function(){return m},sendToIFrame:function(){return h}});var r=n(18),o=n.n(r),i=n(19),a=n.n(i),s=n(1),l=n(2),u=n(3),c=n(20),d=function(){var e=o()(a().mark(function e(t,n){var r,i,s,d,f,p,h,m;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(i=null!==(r=n.abortController)&&void 0!==r?r:new AbortController,s=(0,u.extend)(!0,{expectedIntermediateStatusCodes:[],options:{signal:i.signal},pollIntervallInSeconds:.1,statusCodes:200,timeoutInSeconds:10,wait:!1},n),d=[].concat(s.statusCodes),f=[].concat(s.expectedIntermediateStatusCodes),p=function(e,t){return"status"in e&&t.includes(e.status)},h=function(e){if(!p(e,d))throw new Error("Given status code "+String(e.status)+" differs from "+d.join(", ")+".");return e},!s.wait){e.next=2;break}return e.abrupt("return",new Promise(function(e,n){var r=!1,u=(0,c.timeout)(1e3*s.timeoutInSeconds),d=function(e){return r||(_=(0,c.timeout)(1e3*s.pollIntervallInSeconds,m)).catch(function(){}),e},m=function(){var r=o()(a().mark(function r(){var o,i,c;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=1,l.globalContext.fetch(t,s.options);case 1:o=r.sent,r.next=3;break;case 2:return r.prev=2,i=r.catch(0),r.abrupt("return",d(i));case 3:r.prev=3,e(h(o)),u.clear(),r.next=6;break;case 4:if(r.prev=4,c=r.catch(3),!p(o,f)){r.next=5;break}return r.abrupt("return",d(c));case 5:n(c),u.clear();case 6:return r.abrupt("return",o);case 7:case"end":return r.stop()}},r,null,[[0,2],[3,4]])}));return function(){return r.apply(this,arguments)}}(),_=(0,c.timeout)(m);u.then(function(){r=!0,_.clear(),n(new Error("Timeout of "+String(s.timeoutInSeconds)+" seconds reached.")),i.abort()},function(){})}));case 2:return m=h,e.next=3,l.globalContext.fetch(t,s.options);case 3:return e.abrupt("return",m(e.sent));case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=o()(a().mark(function e(t,n){var r,i,d,f,p,h,m;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(i=null!==(r=n.abortController)&&void 0!==r?r:new AbortController,d=(0,u.extend)(!0,{options:{signal:i.signal},pollIntervallInSeconds:.1,statusCodes:[],timeoutInSeconds:10,wait:!1},n),f=function(e){var n=[].concat(d.statusCodes);if(n.length){if((0,s.isObject)(e)&&"status"in e&&n.includes(e.status))throw new Error('Given url "'+t+'" is reachable and responses with status code "'+String(e.status)+'".');return new Error('Given status code is not "'+n.join(", ")+'".')}return null},!d.wait){e.next=2;break}return e.abrupt("return",new Promise(function(e,n){var r=!1,s=function(){var n=o()(a().mark(function n(){var o,i,h;return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,l.globalContext.fetch(t,d.options);case 1:if(o=n.sent,!r){n.next=2;break}return n.abrupt("return",o);case 2:if(!(i=f(o))){n.next=3;break}return p.clear(),e(i),n.abrupt("return",i);case 3:(u=(0,c.timeout)(1e3*d.pollIntervallInSeconds,s)).catch(function(){}),n.next=5;break;case 4:return n.prev=4,h=n.catch(0),p.clear(),e(h),n.abrupt("return",h);case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}},n,null,[[0,4]])}));return function(){return n.apply(this,arguments)}}(),u=(0,c.timeout)(s),p=(0,c.timeout)(1e3*d.timeoutInSeconds);p.then(function(){r=!0,u.clear(),n(new Error("Timeout of "+String(d.timeoutInSeconds)+" seconds reached.")),i.abort()},function(){})}));case 2:return e.prev=2,h=f,e.next=3,l.globalContext.fetch(t,d.options);case 3:if(!(p=h(e.sent))){e.next=4;break}return e.abrupt("return",p);case 4:e.next=6;break;case 5:return e.prev=5,m=e.catch(2),e.abrupt("return",m);case 6:throw new Error('Given url "'+t+'" is reachable.');case 7:case"end":return e.stop()}},e,null,[[2,5]])}));return function(t,n){return e.apply(this,arguments)}}(),p=function(e){return new Promise(function(t,n){var r=document.createElement("img");r.onload=function(){var e=r.complete;r.remove(),e?t():n(new Error("Image could not be loaded."))},r.src=e})},h=function(e,t,n,r,o){void 0===r&&(r="post"),void 0===o&&(o=!1);for(var i="string"==typeof e?$('iframe[name"'+e+'"]'):$(e),a=$("<form>").attr({action:t,method:r,target:i.attr("name")}),s=0,l=Object.entries(n);s<l.length;s++){var u=l[s],c=u[0],d=u[1];a.append($("<input>").attr({name:c,type:"hidden",value:d}))}return o&&i.on("load",function(){return i.remove()}),a.insertAfter(i),a[0].submit(),a.remove(),i},m=function(e,t,n,r,o){void 0===n&&(n="post"),void 0===r&&(r=!0),void 0===o&&(o=null);var i=$("<iframe>").attr("name","clientnode-"+String((new Date).getTime())).hide();return o&&o.append(i),h(i,e,t,n,r),i}},function(e,t,n){n.d(t,{getProcessCloseHandler:function(){return o},handleChildProcess:function(){return i}});var r=n(2),o=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=r.NOOP);var i=!1;return function(r){if(i)i=!0;else{i=!0;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if("number"!=typeof r||0===r)o(),e({reason:n,parameters:s});else{var u=new Error("Task exited with error code "+String(r));u.returnCode=r,u.parameters=s,t(u)}}}},i=function(e){return e.stdout&&e.stdout.pipe(process.stdout),e.stderr&&e.stderr.pipe(process.stderr),e.on("close",function(e){0!==e&&console.error("Task exited with error code "+String(e))}),e}},function(e,t,n){n.d(t,{UTILITY_SCOPE:function(){return m},UTILITY_SCOPE_NAMES:function(){return _},UTILITY_SCOPE_VALUES:function(){return v},determineUniqueScopeName:function(){return y},isolateScope:function(){return g}});var r=n(2),o=n(7),i=n(23),a=n(17),s=n(24),l=n(1),u=n(22),c=n(14),d=n(3),f=n(6),p=n(5),h=n(20),m={array:o,datetime:i,filesystem:a,functions:s,indicators:l,logger:u,number:c,object:d,require:f,string:p,utility:h},_=["array","datetime","filesystem","functions","indicators","logger","number","object","require","string","utility"],v=[o,i,a,s,l,u,c,d,f,p,h],g=function(e,t){for(var n in void 0===t&&(t=[]),e)t.includes(n.charAt(0))||["constructor","prototype","this"].includes(n)||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=void 0);return e},y=function(e,t,n,o){if(void 0===e&&(e="callback"),void 0===t&&(t=""),void 0===n&&(n=r.$.global),void 0===o&&(o=""),o.length&&!(o in n))return o;for(var i=e+t,a=0;a<r.MAXIMAL_NUMBER_OF_ITERATIONS.value&&(i=e+String(Math.round(Math.random()*Math.pow(10,10)))+t)in n;a++);return i}},function(e,t,n){n.r(t),n.d(t,{$:function(){return a.$},ABBREVIATIONS:function(){return i.ABBREVIATIONS},ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return g.ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return g.ALLOWED_VARIABLE_SYMBOLS},ANIMATION_END_EVENT_NAMES:function(){return i.ANIMATION_END_EVENT_NAMES},BoundTools:function(){return b.BoundTools},CLASS_TO_TYPE_MAPPING:function(){return i.CLASS_TO_TYPE_MAPPING},CLI_COLOR:function(){return o.CLI_COLOR},CLOSE_EVENT_NAMES:function(){return i.CLOSE_EVENT_NAMES},CONSOLE_METHODS:function(){return i.CONSOLE_METHODS},DATE_TIME_PATTERN_CACHE:function(){return u.DATE_TIME_PATTERN_CACHE},DEFAULT_ENCODING:function(){return i.DEFAULT_ENCODING},FIX_ENCODING_ERROR_MAPPING:function(){return g.FIX_ENCODING_ERROR_MAPPING},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return i.IGNORE_NULL_AND_UNDEFINED_SYMBOL},JAVASCRIPT_DEPENDENT_CONTENT_HANDLED:function(){return b.JAVASCRIPT_DEPENDENT_CONTENT_HANDLED},KEYBOARD_CODES:function(){return i.KEYBOARD_CODES},KEY_CODES:function(){return i.KEY_CODES},LEVELS:function(){return y.LEVELS},LEVELS_COLOR:function(){return y.LEVELS_COLOR},LOCALES:function(){return i.LOCALES},Lock:function(){return i.Lock},Logger:function(){return y.Logger},MAXIMAL_NUMBER_OF_ITERATIONS:function(){return a.MAXIMAL_NUMBER_OF_ITERATIONS},MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION:function(){return a.MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION},NOOP:function(){return a.NOOP},PLAIN_OBJECT_PROTOTYPES:function(){return i.PLAIN_OBJECT_PROTOTYPES},SPECIAL_REGEX_SEQUENCES:function(){return i.SPECIAL_REGEX_SEQUENCES},Semaphore:function(){return i.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return i.TRANSITION_END_EVENT_NAMES},Tools:function(){return b.Tools},UTILITY_SCOPE:function(){return v.UTILITY_SCOPE},UTILITY_SCOPE_NAMES:function(){return v.UTILITY_SCOPE_NAMES},UTILITY_SCOPE_VALUES:function(){return v.UTILITY_SCOPE_VALUES},VALUE_COPY_SYMBOL:function(){return i.VALUE_COPY_SYMBOL},addDynamicGetterAndSetter:function(){return h.addDynamicGetterAndSetter},addSeparatorToPath:function(){return g.addSeparatorToPath},aggregatePropertyIfEqual:function(){return r.aggregatePropertyIfEqual},augment$:function(){return a.augment$},cacheImage:function(){return l.cacheImage},camelCaseToDelimited:function(){return g.camelCaseToDelimited},capitalize:function(){return g.capitalize},ceil:function(){return p.ceil},checkReachability:function(){return l.checkReachability},checkUnreachability:function(){return l.checkUnreachability},clearRequireCache:function(){return _.clearRequireCache},compile:function(){return g.compile},compressStyleValue:function(){return g.compressStyleValue},convertCircularObjectToJSON:function(){return h.convertCircularObjectToJSON},convertMapToPlainObject:function(){return h.convertMapToPlainObject},convertPlainObjectToMap:function(){return h.convertPlainObjectToMap},convertSubstringInPlainObject:function(){return h.convertSubstringInPlainObject},convertToValidVariableName:function(){return g.convertToValidVariableName},copy:function(){return h.copy},copyDirectoryRecursive:function(){return c.copyDirectoryRecursive},copyDirectoryRecursiveSync:function(){return c.copyDirectoryRecursiveSync},copyFile:function(){return c.copyFile},copyFileSync:function(){return c.copyFileSync},currentImport:function(){return _.currentImport},currentRequire:function(){return _.currentRequire},dateTimeFormat:function(){return u.dateTimeFormat},debounce:function(){return E.debounce},decodeHTMLEntities:function(){return g.decodeHTMLEntities},deleteCookie:function(){return s.deleteCookie},deleteEmptyItems:function(){return r.deleteEmptyItems},delimitedToCamelCase:function(){return g.delimitedToCamelCase},determine$:function(){return a.determine$},determineGlobalContext:function(){return a.determineGlobalContext},determineType:function(){return h.determineType},determineUniqueScopeName:function(){return v.determineUniqueScopeName},encodeURIComponentExtended:function(){return g.encodeURIComponentExtended},equals:function(){return h.equals},escapeRegularExpressions:function(){return g.escapeRegularExpressions},evaluate:function(){return g.evaluate},evaluateDynamicData:function(){return h.evaluateDynamicData},extend:function(){return h.extend},extract:function(){return r.extract},extractIfMatches:function(){return r.extractIfMatches},extractIfPropertyExists:function(){return r.extractIfPropertyExists},extractIfPropertyMatches:function(){return r.extractIfPropertyMatches},findNormalizedMatchRange:function(){return g.findNormalizedMatchRange},fixKnownEncodingErrors:function(){return g.fixKnownEncodingErrors},floor:function(){return p.floor},format:function(){return g.format},getCookie:function(){return s.getCookie},getDomainName:function(){return g.getDomainName},getEditDistance:function(){return g.getEditDistance},getParameterNames:function(){return d.getParameterNames},getPortNumber:function(){return g.getPortNumber},getProcessCloseHandler:function(){return m.getProcessCloseHandler},getProtocolName:function(){return g.getProtocolName},getProxyHandler:function(){return h.getProxyHandler},getSubstructure:function(){return h.getSubstructure},getURLParameter:function(){return g.getURLParameter},getUTCTimestamp:function(){return p.getUTCTimestamp},globalContext:function(){return a.globalContext},handleChildProcess:function(){return m.handleChildProcess},hasPathPrefix:function(){return g.hasPathPrefix},identity:function(){return d.identity},interpretDateTime:function(){return u.interpretDateTime},intersect:function(){return r.intersect},invertArrayFilter:function(){return d.invertArrayFilter},isAnyMatching:function(){return f.isAnyMatching},isArrayLike:function(){return f.isArrayLike},isDirectory:function(){return c.isDirectory},isDirectorySync:function(){return c.isDirectorySync},isFile:function(){return c.isFile},isFileSync:function(){return c.isFileSync},isFunction:function(){return f.isFunction},isMap:function(){return f.isMap},isNotANumber:function(){return p.isNotANumber},isNumeric:function(){return f.isNumeric},isObject:function(){return f.isObject},isPlainObject:function(){return f.isPlainObject},isProxy:function(){return f.isProxy},isSet:function(){return f.isSet},isWindow:function(){return f.isWindow},isolateScope:function(){return v.isolateScope},isolatedRequire:function(){return _.isolatedRequire},lowerCase:function(){return g.lowerCase},makeArray:function(){return r.makeArray},makeRange:function(){return r.makeRange},mark:function(){return g.mark},mask:function(){return h.mask},maskForRegularExpression:function(){return g.maskForRegularExpression},merge:function(){return r.merge},mkdirSync:function(){return c.mkdirSync},modifyObject:function(){return h.modifyObject},normalizeDateTime:function(){return u.normalizeDateTime},normalizeDomNodeSelector:function(){return g.normalizeDomNodeSelector},normalizePhoneNumber:function(){return g.normalizePhoneNumber},normalizeURL:function(){return g.normalizeURL},normalizeZipCode:function(){return g.normalizeZipCode},optionalRequire:function(){return _.optionalRequire},paginate:function(){return r.paginate},parseEncodedObject:function(){return g.parseEncodedObject},permute:function(){return r.permute},permuteLength:function(){return r.permuteLength},readFileSync:function(){return c.readFileSync},readdirSync:function(){return c.readdirSync},removeArrayItem:function(){return r.removeArrayItem},removeKeyPrefixes:function(){return h.removeKeyPrefixes},removeKeysInEvaluation:function(){return h.removeKeysInEvaluation},represent:function(){return h.represent},representPhoneNumber:function(){return g.representPhoneNumber},representURL:function(){return g.representURL},round:function(){return p.round},sendToExternalURL:function(){return l.sendToExternalURL},sendToIFrame:function(){return l.sendToIFrame},serviceURLEquals:function(){return g.serviceURLEquals},setCookie:function(){return s.setCookie},setGlobalContext:function(){return a.setGlobalContext},sliceAllExceptNumberAndLastSeparator:function(){return g.sliceAllExceptNumberAndLastSeparator},sliceWeekday:function(){return u.sliceWeekday},sort:function(){return h.sort},sortTopological:function(){return r.sortTopological},statSync:function(){return c.statSync},sumUpProperty:function(){return r.sumUpProperty},timeout:function(){return E.timeout},unique:function(){return r.unique},unwrapProxy:function(){return h.unwrapProxy},walkDirectoryRecursively:function(){return c.walkDirectoryRecursively},walkDirectoryRecursivelySync:function(){return c.walkDirectoryRecursivelySync},writeFileSync:function(){return c.writeFileSync}});var r=n(7),o=n(21),i=n(0),a=n(2),s=n(25),l=n(26),u=n(23),c=n(17),d=n(24),f=n(1),p=n(14),h=n(3),m=n(27),_=n(6),v=n(28),g=n(5),y=n(22),b=n(11),E=n(20)}],__webpack_module_cache__={};function __nested_webpack_require_115380__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__nested_webpack_require_115380__),n.loaded=!0,n.exports}__nested_webpack_require_115380__.c=__webpack_module_cache__,__nested_webpack_require_115380__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_115380__.d(t,{a:t}),t},__nested_webpack_require_115380__.d=function(e,t){for(var n in t)__nested_webpack_require_115380__.o(t,n)&&!__nested_webpack_require_115380__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_115380__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_115380__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__nested_webpack_require_115380__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_115380__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_115380__(29);return __nested_webpack_exports__}()},module.exports=r(__webpack_require__(6),__webpack_require__(15),__webpack_require__(19),__webpack_require__(14),function(){try{return __webpack_require__(60)}catch(e){}}(),__webpack_require__(10),__webpack_require__(37))},function(e,t,n){var r=n(13);function o(){
29
+ var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},function(e,t,n){n.d(t,{O:function(){return i}});var r=n(2),o=n(4),i=function(){function e(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=e,this.initialize.apply(this,(0,r.fX)([],(0,r.zs)(n))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new o.I({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(e,{bubbles:n,detail:t}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(r)},e}()},function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(61)},function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(8);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;r=function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__18__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__13__){return function(){var __webpack_modules__=[function(e,t,n){n.d(t,{ABBREVIATIONS:function(){return c},ANIMATION_END_EVENT_NAMES:function(){return d},CLASS_TO_TYPE_MAPPING:function(){return f},CLOSE_EVENT_NAMES:function(){return a},CONSOLE_METHODS:function(){return s},DEFAULT_ENCODING:function(){return i},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return u},KEYBOARD_CODES:function(){return h},KEY_CODES:function(){return p},LOCALES:function(){return m},Lock:function(){return r.Lock},PLAIN_OBJECT_PROTOTYPES:function(){return v},SPECIAL_REGEX_SEQUENCES:function(){return y},Semaphore:function(){return o.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return g},VALUE_COPY_SYMBOL:function(){return l}});var r=n(15),o=n(16),i="utf8",a=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"],s=["debug","error","info","log","warn"],l=Symbol.for("clientnodeValue"),u=Symbol.for("clientnodeIgnoreNullAndUndefined"),c=["html","id","url","us","de","api","href"],d="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",f={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},p={BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39},h={BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"},m=[],v=[Object.prototype],y=["-","[","]","(",")","^","$","*","+",".","{","}"],g="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"},function(e,t,n){n.r(t),n.d(t,{isAnyMatching:function(){return u},isArrayLike:function(){return l},isFunction:function(){return m},isMap:function(){return p},isNumeric:function(){return a},isObject:function(){return c},isPlainObject:function(){return d},isProxy:function(){return h},isSet:function(){return f},isWindow:function(){return s}});var r=n(0),o=n(3);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e){var t=(0,o.determineType)(e);return["number","string"].includes(t)&&!isNaN(e-parseFloat(e))},s=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},l=function(e){var t;try{t=Boolean(e)&&e.length}catch(e){return!1}var n=(0,o.determineType)(e);if("function"===n||s(e))return!1;if("array"===n||0===t)return!0;if("number"==typeof t&&t>0)try{return e[t-1],!0}catch(e){}return!1},u=function(e,t){for(var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.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)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=r()).done;){var o=n.value;if("string"==typeof o){if(o===e)return!0}else if(o.test(e))return!0}return!1},c=function(e){return null!==e&&"object"==typeof e},d=function(e){return c(e)&&r.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},f=function(e){return"set"===(0,o.determineType)(e)},p=function(e){return"map"===(0,o.determineType)(e)},h=function(e){return Boolean(e.__target__)},m=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e,t,n){n.d(t,{$:function(){return f},MAXIMAL_NUMBER_OF_ITERATIONS:function(){return p},MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION:function(){return h},NOOP:function(){return m},augment$:function(){return v},determine$:function(){return d},determineGlobalContext:function(){return l},globalContext:function(){return u},setGlobalContext:function(){return c}});var r,o,i=n(1),a=n(6),s=n(11);e=n.hmd(e);var l=function(){return"undefined"==typeof globalThis?void 0===window?void 0===n.g?e:Object.prototype.hasOwnProperty.call(n.g,"window")?n.g.window:n.g:window:globalThis},u=l(),c=function(e){u=e};u.fetch=u.fetch?u.fetch.bind(u):null!==(r=null==(o=(0,a.optionalRequire)("node-fetch"))?void 0:o.default)&&void 0!==r?r:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.currentImport?(0,a.currentImport)("node-fetch").then(function(e){var n;return(n=e).default.apply(n,t)}):null};var d=function(){var e,t,r=function(){};if(Object.prototype.hasOwnProperty.call(u,"$"))r=u.$;else{if(Object.prototype.hasOwnProperty.call(u,"document"))try{r=n(12)}catch(e){}if(void 0===r||"object"==typeof r&&0===Object.keys(r).length){var o,a=null!=(o=u.document)&&o.querySelectorAll?u.document.querySelectorAll.bind(u.document):function(){return null};(r=function(e){var t=null;if("string"==typeof e?t=a(e):Array.isArray(e)?t=e:("object"==typeof HTMLElement&&e instanceof HTMLElement||1===(null==e?void 0:e.nodeType)&&"string"==typeof e.nodeName)&&(t=[e]),t){if(Object.prototype.hasOwnProperty.call(r,"fn"))for(var n=0,o=Object.entries(r.fn);n<o.length;n++){var s=o[n],l=s[0],c=s[1];t[l]=c.bind(t)}return t.jquery="clientnode",t}return(0,i.isFunction)(e)&&u.document&&u.document.addEventListener("DOMContentLoaded",e),e}).fn={}}}return Object.prototype.hasOwnProperty.call(r,"global")||(r.global=u),Object.prototype.hasOwnProperty.call(r.global,"window")&&(!r.document&&Object.prototype.hasOwnProperty.call(r.global.window,"document")&&(r.document=null==(e=r.global.window)?void 0:e.document),!r.location&&Object.prototype.hasOwnProperty.call(r.global.window,"location")&&(r.location=null==(t=r.global.window)?void 0:t.location)),r},f=d(),p={value:100},h={value:function(){if(!f.document)return 0;var e,t=f.document.createElement("div");for(e=0;e<10&&(t.innerHTML="\x3c!--[if gt IE "+String(e)+"]><i></i><![endif]--\x3e",0!==t.getElementsByTagName("i").length);e++);if(0===e&&Object.prototype.hasOwnProperty.call(f.global.window,"navigator")){var n;if(-1!==(null==(n=f.global.window)?void 0:n.navigator.appVersion.indexOf("MSIE 10")))return 10;if(![f.global.window.navigator.userAgent.indexOf("Trident"),f.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}return e}()},m=Object.prototype.hasOwnProperty.call(f,"noop")?f.noop.bind(f):function(){},v=function(e){var t,n;if(f=e,Object.prototype.hasOwnProperty.call(f,"global")||(f.global=u),Object.prototype.hasOwnProperty.call(f.global,"window")&&(!f.document&&Object.prototype.hasOwnProperty.call(f.global.window,"document")&&(f.document=null==(t=f.global.window)?void 0:t.document),!f.location&&Object.prototype.hasOwnProperty.call(f.global.window,"location")&&(f.location=null==(n=f.global.window)?void 0:n.location)),Object.prototype.hasOwnProperty.call(f,"fn")&&(f.fn.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.controller(s.default,t,this)}),f.Tools=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.controller(s.default,t)},f.Tools.class=s.default,Object.prototype.hasOwnProperty.call(f,"fn")){var r=f.fn.prop;f.fn.prop=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(n.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===n.length)return this[0][e];if(1===n.length)return this[0][e]=n[0],this}return r.call.apply(r,[this,e].concat(n))}}};v(f),f.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_10780__){__nested_webpack_require_10780__.r(__nested_webpack_exports__),__nested_webpack_require_10780__.d(__nested_webpack_exports__,{addDynamicGetterAndSetter:function(){return _addDynamicGetterAndSetter},convertCircularObjectToJSON:function(){return convertCircularObjectToJSON},convertMapToPlainObject:function(){return _convertMapToPlainObject},convertPlainObjectToMap:function(){return _convertPlainObjectToMap},convertSubstringInPlainObject:function(){return _convertSubstringInPlainObject},copy:function(){return _copy},determineType:function(){return determineType},equals:function(){return _equals},evaluateDynamicData:function(){return evaluateDynamicData},extend:function(){return _extend},getProxyHandler:function(){return getProxyHandler},getSubstructure:function(){return getSubstructure},mask:function(){return _mask},modifyObject:function(){return _modifyObject},removeKeyPrefixes:function(){return _removeKeyPrefixes},removeKeysInEvaluation:function(){return _removeKeysInEvaluation},represent:function(){return _represent},sort:function(){return sort},unwrapProxy:function(){return _unwrapProxy}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_10780__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_10780__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_10780__(0),_indicators__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_10780__(1),_number__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_10780__(14),_string__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_10780__(5);function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _addDynamicGetterAndSetter=function(e,t,n,r,o,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r={}),void 0===o&&(o=!0),void 0===i&&(i=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var a,s=0,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var u=a.value;e[s]=_addDynamicGetterAndSetter(u,t,n,r,o),s+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var c,d=_createForOfIteratorHelperLoose(e);!(c=d()).done;){var f=c.value,p=f[0],h=f[1];e.set(p,_addDynamicGetterAndSetter(h,t,n,r,o))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var m,v=[],y=_createForOfIteratorHelperLoose(e);!(m=y()).done;){var g=m.value;e.delete(g),v.push(_addDynamicGetterAndSetter(g,t,n,r,o))}for(var _=0,b=v;_<b.length;_++){var E=b[_];e.add(E)}}else if(null!==e)for(var x=0,C=Object.entries(e);x<C.length;x++){var S=C[x],w=S[0],O=S[1];e[w]=_addDynamicGetterAndSetter(O,t,n,r,o)}if(t||n)for(var T,A,I=function(){var o=A.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e instanceof o){var i=getProxyHandler(e,r),a=getProxyHandler(e,r);t&&(a.get=function(n,r){return"__target__"===r?e:"__revoke__"===r?function(){return u(),e}:"function"==typeof e[r]?e[r]:t(i.get(l,r),r,e)}),n&&(a.set=function(t,r,o){return i.set(l,r,n(r,o,e))});var s=Proxy.revocable({},a),l=s.proxy,u=s.revoke;return{v:l}}},k=_createForOfIteratorHelperLoose(i);!(A=k()).done;)if(T=I())return T.v;return e},convertCircularObjectToJSON=function(e,t,n){void 0===t&&(t=function(e){return null!=e?e:"__circularReference__"}),void 0===n&&(n=0);var r=new Map;return function(e){var o=function(e,n){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)){var i,a;if(r.has(n))return t(null!==(i=r.get(n))&&void 0!==i?i:null,e,n,r);if(r.set(n,null),Array.isArray(n)){a=[];for(var s,l=_createForOfIteratorHelperLoose(n);!(s=l()).done;){var u=s.value;a.push(o(null,u))}}else{a={};for(var c=0,d=Object.entries(n);c<d.length;c++){var f=d[c],p=f[0],h=f[1];a[p]=o(p,h)}}return r.set(n,a),a}return n};return JSON.stringify(e,o,n)}(e)},_convertMapToPlainObject=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var n,r={},o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value,a=i[0],s=i[1];t&&(s=_convertMapToPlainObject(s,t)),["number","string"].includes(typeof a)&&(r[String(a)]=s)}return r}if(t)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e))for(var l=0,u=Object.entries(e);l<u.length;l++){var c=u[l],d=c[0],f=c[1];e[d]=_convertMapToPlainObject(f,t)}else if(Array.isArray(e))for(var p=0,h=0,m=e;h<m.length;h++){var v=m[h];e[p]=_convertMapToPlainObject(v,t),p+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var y,g=[],_=_createForOfIteratorHelperLoose(e);!(y=_()).done;){var b=y.value;e.delete(b),g.push(_convertMapToPlainObject(b,t))}for(var E=0,x=g;E<x.length;E++){var C=x[E];e.add(C)}}}return e},_convertPlainObjectToMap=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)){for(var n=new Map,r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],s=i[1];t&&(e[a]=_convertPlainObjectToMap(s,t)),n.set(a,e[a])}return n}if(t)if(Array.isArray(e))for(var l=0,u=0,c=e;u<c.length;u++){var d=c[u];e[l]=_convertPlainObjectToMap(d,t),l+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var f,p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var h=f.value,m=h[0],v=h[1];e.set(m,_convertPlainObjectToMap(v,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var y,g=[],_=_createForOfIteratorHelperLoose(e);!(y=_()).done;){var b=y.value;e.delete(b),g.push(_convertPlainObjectToMap(b,t))}for(var E=0,x=g;E<x.length;E++){var C=x[E];e.add(C)}}}return e},_convertSubstringInPlainObject=function(e,t,n){for(var r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],s=i[1];(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(s)?e[a]=_convertSubstringInPlainObject(s,t,n):"string"==typeof s&&(e[a]=s.replace(t,n))}return e},_copy=function(e,t,n,r,o,i,a){if(void 0===t&&(t=-1),void 0===n&&(n=_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===i&&(i=[]),void 0===a&&(a=0),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(!r){if(Array.isArray(e))return _copy(e,t,n,[],o,i,a);if(e instanceof Map)return _copy(e,t,n,new Map,o,i,a);if(e instanceof Set)return _copy(e,t,n,new Set,o,i,a);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(r=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,r}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,t,n,{},o,i,a)}if(e===r)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var l=i.indexOf(e);if(-1!==l)return i[l];i.push(e)}var u=function(e){if(-1!==t&&t<a+1)return n===_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL?e:n;var r=_copy(e,t,n,null,o,i,a+1);return o||[void 0,null].includes(e)||"object"!=typeof e||i.push(e),r};if(Array.isArray(e))for(var c,d=_createForOfIteratorHelperLoose(e);!(c=d()).done;){var f=c.value;r.push(u(f))}else if(e instanceof Map)for(var p,h=_createForOfIteratorHelperLoose(e);!(p=h()).done;){var m=p.value,v=m[0],y=m[1];r.set(v,u(y))}else if(e instanceof Set)for(var g,_=_createForOfIteratorHelperLoose(e);!(g=_()).done;){var b=g.value;r.add(u(b))}else for(var E=0,x=Object.entries(e);E<x.length;E++){var C=x[E],S=C[0],w=C[1];try{r[S]=u(w)}catch(e){throw new Error('Failed to copy property value object "'+S+'": '+_represent(e))}}}return r||e},determineType=function(e){if([null,void 0].includes(e))return String(e);var t=typeof e;if(["function","object"].includes(t)&&"toString"in e){var n=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,n))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[n]}return t},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(secondValue)||firstValue===secondValue||(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(firstValue)&&(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise(function(e){for(var t=[],n=0,r=[firstValue,secondValue];n<r.length;n++){var o=r[n],i=new FileReader;i.onload=function(n){null===n.target?t.push(null):t.push(n.target.result),2===t.length&&(t[0]===t[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(t[0])+") !== Blob("+_represent(t[1])+")"))},i.readAsDataURL(o)}});if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(first);if(firstIsMap&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(first);if(firstIsSet&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i12];if(0!==options.deep){var t=_equals(e,second[index],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!t)return{v:!1};var n=index,r=function(e){var t;return"string"==typeof e?"["+String(n)+"]"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(t,"then")&&promises.push(t.then(r)),"string"==typeof t)return{v:r(t)}}index+=1},_ret2,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.value,t=e[0],n=e[1];if(0!==options.deep){var r=_equals(n,second.get(t),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!r)return{v:!1};var o=function(e){var n;return"string"==typeof e?"get("+_represent(t)+")"+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(o)),"string"==typeof r)return{v:o(r)}}},_ret3,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var t,n=!1,r=[],o=_createForOfIteratorHelperLoose(second);!(t=o()).done;){var i=t.value,a=_equals(e,i,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){n=!0;break}}else r.push(a)}var s=function(t){return!!t||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return n?0:(r.length&&promises.push(new Promise(function(e){Promise.all(r).then(function(t){e(s(t.some(function(e){return e})))},function(){})})),{v:s(!1)})}},_ret4,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],t=e[0],n=e[1];if(options.properties&&!options.properties.includes(t))return 0;for(var r,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(r=i()).done;){var a=r.value;if(t.startsWith(a)){o=!0;break}}if(o)return 0;if(0!==options.deep){var s=_equals(n,second[t],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!s)return{v:!1};var l=function(e){var n;return"string"==typeof e?t+(null!==(n={"[":"",">":" "}[e[0]])&&void 0!==n?n:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(l)),"string"==typeof s)return{v:l(s)}}},_ret5,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)if(_ret5)return _ret5.v}return!promises.length||new Promise(function(e){Promise.all(promises).then(function(t){for(var n,r=_createForOfIteratorHelperLoose(t);!(n=r()).done;){var o=n.value;if(!o||"string"==typeof o){e(o);break}}e(!0)},function(){})})}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,t,n,r,o){if(void 0===t&&(t={}),void 0===n&&(n="self"),void 0===r&&(r="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;n in t||(t[n]=e);var i=function(e,n){void 0===n&&(n=r);var i=(0,_string__WEBPACK_IMPORTED_MODULE_4__.evaluate)(e,t,n===o);if(i.error)throw new Error(i.error);return i.result},a=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var t=0,n=Object.entries(e);t<n.length;t++){var l=n[t],u=l[0],c=l[1];if("__target__"!==u&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(c)){var d=c;if(a(d),Object.prototype.hasOwnProperty.call(d,r)||Object.prototype.hasOwnProperty.call(d,o)){var f=d;e[u]=new Proxy(d,{get:function(e,t){if("__target__"===t)return e;if("hasOwnProperty"===t)return e[t];for(var n=0,a=[r,o];n<a.length;n++){var l=a[n];if(t===l&&"string"==typeof e[t])return s(i(e[t],l))}var u=s(e);if("toString"===t){var c=i(u);return c[t].bind(c)}if("string"!=typeof t){var d,f=i(u);return null!=(d=f[t])&&d.bind?f[t].bind(f):f[t]}for(var p=0,h=[r,o];p<h.length;p++){var m=h[p];if(Object.prototype.hasOwnProperty.call(e,m))return i(u,m)[t]}return u[t]},ownKeys:function(e){for(var t=0,n=[r,o];t<n.length;t++){var a=n[t];if(Object.prototype.hasOwnProperty.call(e,a))return Object.getOwnPropertyNames(s(i(e[a],a)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=f)}}}return e},s=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)){for(var t=0,n=[r,o];t<n.length;t++){var a=n[t];if(Object.prototype.hasOwnProperty.call(e,a))return e[a]}e=e.__target__}for(var l=0,u=Object.entries(e);l<u.length;l++){var c=u[l],d=c[0],f=c[1];if([r,o].includes(d))return"undefined"==typeof Proxy?s(i(f)):f;e[d]=s(f)}}return e};t.resolve=s;var l=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if("__target__"!==o&&null!==i&&["function","undefined"].includes(typeof i)){var a=i.__target__;void 0!==a&&(e[o]=a),l(i)}}return e};return Object.prototype.hasOwnProperty.call(e,r)?i(e[r]):Object.prototype.hasOwnProperty.call(e,o)?i(e[o],o):l(s(a(e)))},_removeKeysInEvaluation=function(e,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];!t.includes(i)&&t.some(function(t){return Object.prototype.hasOwnProperty.call(e,t)})?delete e[i]:(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(a)&&_removeKeysInEvaluation(a,t)}return e},_extend=function(e,t){for(var n=!1,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a,s=o;e===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(n=e,a=t):(a=e,(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)?s=[t].concat(s):void 0!==t&&(a=t));for(var l,u=function(e,t){return t===e?e:n&&t&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(t)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t))?(r=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)?e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)?e:new Map:e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)?e:{},_extend(n,r,t)):t;var r},c=_createForOfIteratorHelperLoose(s);!(l=c()).done;){var d=l.value,f=typeof a,p=typeof d;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(f+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(d)&&(p+=" Map"),f===p&&a!==d)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(d))for(var h,m=_createForOfIteratorHelperLoose(d);!(h=m()).done;){var v=h.value,y=v[0],g=v[1];a.set(y,u(a.get(y),g))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(a)&&!Array.isArray(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(d)&&!Array.isArray(d))for(var _=0,b=Object.entries(d);_<b.length;_++){var E=b[_],x=E[0],C=E[1];n===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(C)||(a[x]=u(a[x],C))}else a=d;else a=d}return a},getSubstructure=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(t));!(o=a()).done;){var s=o.value;if("string"==typeof s)for(var l,u=_createForOfIteratorHelperLoose(s.split(r));!(l=u()).done;){var c=l.value;if(c){var d=c.match(/(.*?)(\[[0-9]+])/g);if(d)for(var f,p=_createForOfIteratorHelperLoose(d);!(f=p()).done;){var h=f.value,m=/(.*?)(\[[0-9]+])/.exec(h),v="",y="";m&&(v=m[1],y=m[2],v&&i.push(v)),i.push(y.substring(1,y.length-1))}else i.push(c)}}else i=i.concat(s)}for(var g,_=e,b=_createForOfIteratorHelperLoose(i);!(g=b()).done;){var E=g.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(_)){if("string"==typeof E&&Object.prototype.hasOwnProperty.call(_,E))_=_[E];else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(E))_=E(_);else if(!n)return}else if(!n)return}return _},getProxyHandler=function(e,t){return void 0===t&&(t={}),t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({delete:"[]",get:"[]",has:"[]",set:"[]"},t),{deleteProperty:function(n,r){return"[]"!==t.delete||"string"!=typeof r?e[t.delete](r):(delete e[r],!0)},get:function(n,r){return"[]"===t.get&&"string"==typeof r?e[r]:e[t.get](r)},has:function(n,r){return"[]"===t.has?r in e:e[t.has](r)},set:function(n,r,o){return"[]"!==t.set||"string"!=typeof r?e[t.set](r,o):(e[r]=o,!0)}}},_mask=function(e,t){if(!0===(t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({exclude:!1,include:!0},t)).exclude||Array.isArray(t.exclude)&&0===t.exclude.length||!1===t.include||"object"!=typeof e)return{};var n=Array.isArray(t.exclude)?t.exclude.reduce(function(e,t){var n;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((n={})[t]=!0,n))},{}):t.exclude,r=Array.isArray(t.include)?t.include.reduce(function(e,t){var n;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((n={})[t]=!0,n))},{}):t.include,o={};if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r))for(var i=0,a=Object.entries(r);i<a.length;i++){var s=a[i],l=s[0],u=s[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===u?o[l]=e[l]:((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[l]&&(o[l]=_mask(e[l],{include:u})))}else o=e;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(n)){for(var c=!1,d=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},o),f=0,p=Object.entries(n);f<p.length;f++){var h=p[f],m=h[0],v=h[1];if(Object.prototype.hasOwnProperty.call(d,m))if(!0===v)c=!0,delete d[m];else if(((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(v)||Array.isArray(v)&&v.length)&&"object"==typeof d[m]){var y=d[m];d[m]=_mask(d[m],{exclude:v}),d[m]!==y&&(c=!0)}}c&&(o=d)}return o},_modifyObject=function(e,t,n,r,o,i,a,s,l){if(void 0===n&&(n="__remove__"),void 0===r&&(r="__prepend__"),void 0===o&&(o="__append__"),void 0===i&&(i="__"),void 0===a&&(a="__"),void 0===s&&(s=null),void 0===l&&(l=null),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var u,c=_createForOfIteratorHelperLoose(t);!(u=c()).done;){var d=u.value,f=d[0],p=d[1];e.has(f)&&_modifyObject(e.get(f),p,n,r,o,i,a,t,f)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var h=0,m=Object.entries(t);h<m.length;h++){var v=m[h],y=v[0],g=v[1],_=NaN;if(Array.isArray(e)&&y.startsWith(i)&&y.endsWith(a)&&((_=parseInt(y.substring(i.length,y.length-a.length),10))<0||_>=e.length)&&(_=NaN),[n,r,o].includes(y)||!isNaN(_)){if(Array.isArray(e))if(y===n)for(var b,E=_createForOfIteratorHelperLoose([].concat(g));!(b=E()).done;){var x=b.value;"string"==typeof x&&x.startsWith(i)&&x.endsWith(a)?e.splice(parseInt(x.substring(i.length,x.length-a.length),10),1):e.includes(x)?e.splice(e.indexOf(x),1):"number"==typeof x&&x<e.length&&e.splice(x,1)}else y===o?e=e.concat(g):y===r?e=[].concat(g).concat(e):(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e[_])&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(g)?_extend(!0,_modifyObject(e[_],g,n,r,o,i,a),e[_],g):e[_]=g;else if(y===n)for(var C,S=_createForOfIteratorHelperLoose([].concat(g));!(C=S()).done;){var w=C.value;"string"==typeof w&&Object.prototype.hasOwnProperty.call(e,w)&&delete e[w]}delete t[y],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,y)&&(e[y]=_modifyObject(e[y],g,n,r,o,i,a,t,y))}return e},_removeKeyPrefixes=function(e,t){void 0===t&&(t="#");var n=[].concat(t);if(Array.isArray(e))for(var r,o=0,i=_createForOfIteratorHelperLoose(e.slice());!(r=i()).done;){var a=r.value,s=!1;if("string"==typeof a){for(var l,u=_createForOfIteratorHelperLoose(n);!(l=u()).done;){var c=l.value;if(a.startsWith(c+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(a,n),o+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e))for(var d,f=_createForOfIteratorHelperLoose(new Set(e));!(d=f()).done;){var p=d.value,h=!1;if("string"==typeof p){for(var m,v=_createForOfIteratorHelperLoose(n);!(m=v()).done;){var y=m.value;if(p.startsWith(y+":")){e.delete(p),h=!0;break}}if(h)continue}_removeKeyPrefixes(p,n)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var g,_=_createForOfIteratorHelperLoose(new Map(e));!(g=_()).done;){var b=g.value,E=b[0],x=b[1],C=!1;if("string"==typeof E){for(var S,w=_createForOfIteratorHelperLoose(n);!(S=w()).done;){var O=S.value,T=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(O);if(new RegExp("^"+T+"[0-9]*$").test(E)){e.delete(E),C=!0;break}}if(C)continue}e.set(E,_removeKeyPrefixes(x,n))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var A=0,I=Object.entries(Object.assign({},e));A<I.length;A++){for(var k,N=I[A],P=N[0],M=N[1],L=!1,D=_createForOfIteratorHelperLoose(n);!(k=D()).done;){var R=k.value,j=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(R);if(new RegExp("^"+j+"[0-9]*$").test(P)){delete e[P],L=!0;break}}L||(e[P]=_removeKeyPrefixes(M,n))}return e},_represent=function(e,t,n,r,o){if(void 0===t&&(t=" "),void 0===n&&(n=""),void 0===r&&(r="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(r);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isNumeric)(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var i,a="[",s=!1,l=_createForOfIteratorHelperLoose(e);!(i=l()).done;){var u=i.value;s&&(a+=","),a+="\n"+n+t+_represent(u,t,""+n+t,r,o-1),s=!0}return s&&(a+="\n"+n),a+"]"}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var c,d="",f=!1,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var h=c.value,m=h[0],v=h[1];f&&(d+=",\n"+n+t),d+=_represent(m,t,""+n+t,r,o-1)+" -> "+_represent(v,t,""+n+t,r,o-1),f=!0}return f||(d="EmptyMap"),d}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var y,g="{",_=!1,b=_createForOfIteratorHelperLoose(e);!(y=b()).done;){var E=y.value;_&&(g+=","),g+="\n"+n+t+_represent(E,t,""+n+t,r,o-1),_=!0}return _?g+="\n"+n+"}":g="EmptySet",g}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e))return"__function__";for(var x,C="{",S=!1,w=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(x=w()).done;){var O=x.value;S&&(C+=","),C+="\n"+n+t+O+": "+_represent(e[O],t,""+n+t,r,o-1),S=!0}return S&&(C+="\n"+n),C+"}"},sort=function(e){var t=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)t.push(n);else if("object"==typeof e)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var r,o=_createForOfIteratorHelperLoose(e);!(r=o()).done;){var i=r.value;t.push(i[0])}else if(null!==e)for(var a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];t.push(l)}return t.sort()},_unwrapProxy=function(e,t){if(void 0===t&&(t=new Set),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(t.has(e))return e;try{(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e.__revoke__)&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)&&(e=e.__target__),e.__revoke__())}catch(t){return e}finally{t.add(e)}if(Array.isArray(e))for(var n,r=0,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value;e[r]=_unwrapProxy(i,t),r+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var a,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var l=a.value,u=l[0],c=l[1];e.set(u,_unwrapProxy(c,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var d,f=[],p=_createForOfIteratorHelperLoose(e);!(d=p()).done;){var h=d.value;e.delete(h),f.push(_unwrapProxy(h,t))}for(var m=0,v=f;m<v.length;m++){var y=v[m];e.add(y)}}else for(var g=0,_=Object.entries(e);g<_.length;g++){var b=_[g],E=b[0],x=b[1];e[E]=_unwrapProxy(x,t)}}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_38640__){__nested_webpack_require_38640__.r(__nested_webpack_exports__),__nested_webpack_require_38640__.d(__nested_webpack_exports__,{ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return ALLOWED_VARIABLE_SYMBOLS},FIX_ENCODING_ERROR_MAPPING:function(){return FIX_ENCODING_ERROR_MAPPING},addSeparatorToPath:function(){return addSeparatorToPath},camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compile:function(){return compile},compressStyleValue:function(){return compressStyleValue},convertToValidVariableName:function(){return convertToValidVariableName},decodeHTMLEntities:function(){return decodeHTMLEntities},delimitedToCamelCase:function(){return delimitedToCamelCase},encodeURIComponentExtended:function(){return encodeURIComponentExtended},escapeRegularExpressions:function(){return escapeRegularExpressions},evaluate:function(){return evaluate},findNormalizedMatchRange:function(){return findNormalizedMatchRange},fixKnownEncodingErrors:function(){return fixKnownEncodingErrors},format:function(){return format},getDomainName:function(){return getDomainName},getEditDistance:function(){return getEditDistance},getPortNumber:function(){return getPortNumber},getProtocolName:function(){return getProtocolName},getURLParameter:function(){return getURLParameter},hasPathPrefix:function(){return hasPathPrefix},lowerCase:function(){return lowerCase},mark:function(){return mark},maskForRegularExpression:function(){return maskForRegularExpression},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector},normalizePhoneNumber:function(){return normalizePhoneNumber},normalizeURL:function(){return normalizeURL},normalizeZipCode:function(){return normalizeZipCode},parseEncodedObject:function(){return parseEncodedObject},representPhoneNumber:function(){return representPhoneNumber},representURL:function(){return representURL},serviceURLEquals:function(){return serviceURLEquals},sliceAllExceptNumberAndLastSeparator:function(){return sliceAllExceptNumberAndLastSeparator}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_38640__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_38640__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_38640__(8),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_38640__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_38640__(0),_context__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_38640__(2),_filesystem__WEBPACK_IMPORTED_MODULE_5__=__nested_webpack_require_38640__(17),_object__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_38640__(3);function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$",ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$",FIX_ENCODING_ERROR_MAPPING=[["Ã\\x84","Ä"],["Ã\\x96","Ö"],["Ã\\x9c","Ü"],["ä","ä"],["ö","ö"],["ü","ü"],["\\x96","-"],["é","é"],["è","e"],["ô","o"],["à ","á"],["ø","ø"],["Ã\\x9f","ß"],["Ã","ß"]],escapeRegularExpressions=function(e,t){if(void 0===t&&(t=[]),1===e.length&&!_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES.includes(e))return e;t.includes("\\")||e.replace(/\\/g,"\\\\");for(var n,r=_createForOfIteratorHelperLoose(_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES);!(n=r()).done;){var o=n.value;t.includes(o)||(e=e.replace(new RegExp("\\"+o,"g"),"\\"+o))}return e},convertToValidVariableName=function(e){return["class","default"].includes(e)?"_"+e:e.replace(new RegExp("^[^"+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]+"),"").replace(new RegExp("[^"+ALLOWED_VARIABLE_SYMBOLS+"]+([a-zA-Z])","g"),function(e,t){return t.toUpperCase()})},encodeURIComponentExtended=function(e,t){return void 0===t&&(t=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")},addSeparatorToPath=function(e,t){return void 0===t&&(t="/"),(e=e.trim()).substring(e.length-1)!==t&&e.length?e+t:e},hasPathPrefix=function(e,t,n){var r;return void 0===e&&(e="/admin"),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.pathname)||""),void 0===n&&(n="/"),"string"==typeof e&&(e.endsWith(n)||(e+=n),t===e.substring(0,e.length-n.length)||t.startsWith(e))},getDomainName=function(e,t){var n,r;void 0===e&&(e=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.hostname)||"");var o=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return o&&o.length>2&&o[1]&&o[2]?o[2]:t},getPortNumber=function(e,t){var n,r,o;void 0===e&&(e=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.href)||""),void 0===t&&(t=null!=(o=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)&&o.port?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port):null);var i=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(e);return i&&i.length>1?parseInt(i[1],10):null!==t?t:null!=(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)&&n.port&&parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port,10)?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.$.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,t){var n,r;void 0===e&&(e=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||""),void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:r.protocol)&&_context__WEBPACK_IMPORTED_MODULE_3__.$.location.protocol.substring(0,_context__WEBPACK_IMPORTED_MODULE_3__.$.location.protocol.length-1)||"");var o=/^([a-z]+):\/\//i.exec(e);return o&&o.length>1&&o[1]?o[1]:t},getURLParameter=function(e,t,n,r,o,i,a){var s,l,u;void 0===e&&(e=null),void 0===t&&(t=!1),void 0===n&&(n=null),void 0===r&&(r="$"),void 0===o&&(o="!"),void 0===i&&(i=null),void 0===a&&(a=null!==(l=null==(u=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:u.hash)&&void 0!==l?l:"");var c=null!==(s=a)&&void 0!==s?s:"#",d="";if(i)d=i;else if(o&&c.startsWith(o)){var f,p=c.indexOf("#");-1===p?(f=c.substring(o.length),c=""):(f=c.substring(o.length,p),c=c.substring(p));var h=f.indexOf("?");-1!==h&&(d=f.substring(h))}else _context__WEBPACK_IMPORTED_MODULE_3__.$.location&&(d=_context__WEBPACK_IMPORTED_MODULE_3__.$.location.search||"");var m=n||d,v="&"===m;if(v||"#"===m){var y="";try{y=decodeURIComponent(c)}catch(e){}var g=y.indexOf(r);-1===g?m="":(m=y.substring(g)).startsWith(r)&&(m=m.substring(r.length))}else m.startsWith("?")&&(m=m.substring(1));var _=m?m.split("&"):[];d=d.substring(1),v&&d&&(_=_.concat(d.split("&")));for(var b,E=[],x=_createForOfIteratorHelperLoose(_);!(b=x()).done;){var C=b.value,S=C.split("="),w=void 0;try{w=decodeURIComponent(S[0])}catch(e){w=""}try{C=decodeURIComponent(S[1])}catch(e){C=""}E.push(w),t?Object.prototype.hasOwnProperty.call(E,w)&&Array.isArray(E[w])?E[w].push(C):E[w]=[C]:E[w]=C}return e?Object.prototype.hasOwnProperty.call(E,e)?E[e]:null:E},serviceURLEquals=function(e,t){var n;void 0===t&&(t=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.$.location)?void 0:n.href)||"");var r=getDomainName(e,""),o=getProtocolName(e,""),i=getPortNumber(e);return!(""!==r&&r!==getDomainName(t)||""!==o&&o!==getProtocolName(t)||null!==i&&i!==getPortNumber(t))},normalizeURL=function(e){if("string"==typeof e){var t=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();return t.startsWith("http")?t:"http://"+t}return""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,t,n){void 0===t&&(t="-"),void 0===n&&(n=null),n||(n=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var r=maskForRegularExpression(t);if(n.length){for(var o,i="",a=_createForOfIteratorHelperLoose(n);!(o=a()).done;)i&&(i+="|"),i+=o.value.toUpperCase();e=e.replace(new RegExp("("+i+")("+i+")","g"),"$1"+t+"$2")}return(e=e.replace(new RegExp("([^"+r+"])([A-Z][a-z]+)","g"),"$1"+t+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+t+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if(_context__WEBPACK_IMPORTED_MODULE_3__.$.document){var t=_context__WEBPACK_IMPORTED_MODULE_3__.$.document.createElement("textarea");return t.innerHTML=e,t.value}return null},delimitedToCamelCase=function(e,t,n,r,o){void 0===t&&(t="-"),void 0===n&&(n=null),void 0===r&&(r=!1),void 0===o&&(o=!1);var i,a=maskForRegularExpression(t);if(n||(n=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),r)i=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{i="";for(var s,l=_createForOfIteratorHelperLoose(n);!(s=l()).done;){var u=s.value;i&&(i+="|"),i+=capitalize(u)+"|"+u}}var c=e.startsWith(t);return c&&(e=e.substring(t.length)),e=e.replace(new RegExp("("+a+")("+i+")("+a+"|$)","g"),function(e,t,n,r){return t+n.toUpperCase()+r}),o&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),function(e,t){return t.toUpperCase()}),c&&(e=t+e),e},compile=function(e,t,n,r,o){var i;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o={});for(var a,s,l=Object.keys(globalThis).concat("globalThis").filter(function(e){return new RegExp("^["+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]["+ALLOWED_VARIABLE_SYMBOLS+"]*$").test(e)}),u={error:null,globalNames:l,globalNamesUndefinedList:l.map(function(){}),originalScopeNames:Array.isArray(t)?t:"string"==typeof t?[t]:Object.keys(t),scopeNameMapping:{},scopeNames:[],templateFunction:function(){}},c=_createForOfIteratorHelperLoose(u.originalScopeNames);!(a=c()).done;){var d=a.value,f=convertToValidVariableName(d);u.scopeNameMapping[d]=f,u.scopeNames.push(f)}if(0!==_context__WEBPACK_IMPORTED_MODULE_3__.MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION.value)if(null!=(i=_context__WEBPACK_IMPORTED_MODULE_3__.$.global.Babel)&&i.transform)e=_context__WEBPACK_IMPORTED_MODULE_3__.$.global.Babel.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var p="####",h="`"===(e=e.replace(/\\\$/g,p).replace(/^`\$\{([\s\S]+)}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,h+"+($1)+"+h).replace(/^`([\s\S]+)`$/,h+"$1"+h).replace(/\n+/g,"").replace(new RegExp(p,"g"),"\\$")}try{s=_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default()(Function,(r?u.globalNames:[]).concat(u.scopeNames,[(n?"":"return ")+e]))}catch(t){u.error='Given expression "'+e+'" could not be compiled width given scope names "'+u.scopeNames.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(t)}if(s){var m=s.bind(o);u.templateFunction=r?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.apply(void 0,u.globalNamesUndefinedList.concat(t))}:m}return u},evaluate=function(e,t,n,r,o){void 0===t&&(t={}),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o={});var i=compile(e,t,n,r,o),a=i.error,s=i.originalScopeNames,l=i.scopeNames,u=i.templateFunction,c={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:void 0};if(a)return c.compileError=c.error=a,c;try{c={compileError:null,runtimeError:null,error:null,result:u.apply(void 0,s.map(function(e){return t[e]}))}}catch(a){c.error=c.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+l.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(a)}return c},findNormalizedMatchRange=function(e,t,n,r){void 0===n&&(n=function(e){return String(e).toLowerCase()}),void 0===r&&(r=["<",">"]);var o=n(t),i=n(e),a="string"==typeof e?e:i;if(i&&o)for(var s=!1,l=0;l<a.length;l+=1)if(s)Array.isArray(r)&&a.charAt(l)===r[1]&&(s=!1);else if(Array.isArray(r)&&a.charAt(l)===r[0])s=!0;else if(n(a.substring(l)).startsWith(o)){if(1===o.length)return[l,l+1];for(var u=a.length;u>l;u-=1)if(!n(a.substring(l,u)).startsWith(o))return[l,u+1]}return null},fixKnownEncodingErrors=function(e){for(var t=0,n=FIX_ENCODING_ERROR_MAPPING;t<n.length;t++){var r=n[t],o=r[0],i=r[1];e=e.replace(new RegExp(o,"g"),i)}return e},format=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e);for(var o=0,i=0,a=n;i<a.length;i++){var s=a[i];e=e.replace(new RegExp("\\{"+String(o)+"\\}","gm"),String(s)),o+=1}return e},getEditDistance=function(e,t){for(var n=Array(t.length+1).fill(null).map(function(){return Array(e.length+1).fill(null)}),r=0;r<=e.length;r++)n[0][r]=r;for(var o=0;o<=t.length;o++)n[o][0]=o;for(var i=1;i<=t.length;i++)for(var a=1;a<=e.length;a++){var s=e[a-1]===t[i-1]?0:1;n[i][a]=Math.min(n[i][a-1]+1,n[i-1][a]+1,n[i-1][a-1]+s)}return n[t.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,t,n){if(void 0===n&&(n={}),"string"==typeof e&&null!=t&&t.length){var r=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:["<",">"]},n);e=e.trim();for(var o,i=[],a=[].concat(t),s=0,l=_createForOfIteratorHelperLoose(a);!(o=l()).done;){var u=o.value;a[s]=r.normalizer(u).trim(),s+=1}for(var c=e,d=0,f=0;f<_context__WEBPACK_IMPORTED_MODULE_3__.MAXIMAL_NUMBER_OF_ITERATIONS.value;f++){for(var p,h=null,m=null,v=_createForOfIteratorHelperLoose(a);!(p=v()).done;){var y=p.value;(m=findNormalizedMatchRange(c,y,r.normalizer,r.skipTagDelimitedParts))&&(!h||m[0]<h[0])&&(h=m)}if(!h){c.length&&i.push(c);break}h[0]>0&&i.push(e.substring(d,d+h[0])),i.push("string"==typeof r.marker?format(r.marker,e.substring(d+h[0],d+h[1])):r.marker(e.substring(d+h[0],d+h[1]),i)),d+=h[1],c=e.substring(d)}return"string"==typeof r.marker?i.join(""):i}return e},normalizePhoneNumber=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e||"number"==typeof e){var n=String(e).trim();if(n=(n=n.replace(/^[^0-9]*\+/,"00")).replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1"),t)return n.replace(/[^0-9]+/g,"");var r="(?:[ /\\-]+)";n=(n=n.replace(new RegExp("^(.+?)"+r+"?\\(0\\)"+r+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+r+"?\\((.+)\\)"+r+"?(.+)$"),"$1-$2-$3");var o=new RegExp("^(00[0-9]+)"+r+"([0-9]+)"+r+"(.+)$");if(o.test(n))n=n.replace(o,function(e,t,n,r){return t+"-"+n+"-"+sliceAllExceptNumberAndLastSeparator(r)});else{var i=function(e,t,n){return t.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeparator(n)};n=(o=/^([0-9 ]+)[/-](.+)$/).test(n)?n.replace(o,i):n.replace(new RegExp("^([0-9]+)"+r+"(.+)$"),i)}return n.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?String(e).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,function(e,t,n){var r;return t&&(t=t.substring(t.length-2).charAt(0).toUpperCase()+"-"),(null!==(r=t)&&void 0!==r?r:"")+(null!=n?n:"").trim().replace(/[^0-9]+/g,"")}):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;if(void 0===scope&&(scope={}),void 0===name&&(name="scope"),!_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)throw new Error("File system api could not be loaded.");serializedObject.endsWith(".json")&&(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.isFileSync)(serializedObject)&&(serializedObject=(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)(serializedObject,{encoding:_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes((0,_object__WEBPACK_IMPORTED_MODULE_4__.determineType)(e))&&e){var t=String(e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(t=(t=t.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,function(e,t,n,r){return t+(n.length%2==0?n.replace(/([0-9]{2})/g,"$1 "):n.replace(/^([0-9]{3})([0-9]+)$/,function(e,t,n){return t+" "+n.replace(/([0-9]{2})/g,"$1 ").trim()})+r).trim()}).trim()}return""},sliceAllExceptNumberAndLastSeparator=function(e){var t=/^(.*[0-9].*)-([0-9]+)$/;return t.test(e)?e.replace(t,function(e,t,n){return t.replace(/[^0-9]+/g,"")+"-"+n}):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,t){void 0===t&&(t="");var n="";return t&&(n=t+" "),e.startsWith(n)||e.trim().startsWith("<")||(e=n+e),e.trim()}},function(module,__nested_webpack_exports__,__nested_webpack_require_56636__){__nested_webpack_require_56636__.r(__nested_webpack_exports__),__nested_webpack_require_56636__.d(__nested_webpack_exports__,{clearRequireCache:function(){return clearRequireCache},currentImport:function(){return currentImport},currentRequire:function(){return currentRequire},isolatedRequire:function(){return isolatedRequire},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_56636__.c);for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a,delete e[i]}return t},restoreRequireCache=function(e,t){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_56636__.c),clearRequireCache();for(var n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];e[i]=a}},isolatedRequire=function(e,t){void 0===t&&(t=currentRequire||__nested_webpack_require_56636__(9));var n=clearRequireCache(t.cache);try{return t(e)}catch(e){throw e}finally{restoreRequireCache(t.cache,n)}}},function(e,t,n){n.r(t),n.d(t,{aggregatePropertyIfEqual:function(){return l},deleteEmptyItems:function(){return u},extract:function(){return c},extractIfMatches:function(){return d},extractIfPropertyExists:function(){return f},extractIfPropertyMatches:function(){return p},intersect:function(){return h},makeArray:function(){return m},makeRange:function(){return v},merge:function(){return y},paginate:function(){return g},permute:function(){return _},permuteLength:function(){return b},removeArrayItem:function(){return x},sortTopological:function(){return C},sumUpProperty:function(){return E},unique:function(){return S}});var r=n(4),o=n.n(r),i=n(1);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.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)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t,n){void 0===n&&(n="");var r=n;if(Array.isArray(e)&&e.length&&Object.prototype.hasOwnProperty.call(e[0],t)){r=e[0][t];for(var o=0,i=m(e);o<i.length;o++)if(i[o][t]!==r)return n}return r},u=function(e,t){void 0===t&&(t=[]);for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a=!0,s=0,l=Object.entries(i);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(!["",null,void 0].includes(d)&&(!t.length||m(t).includes(c))){a=!1;break}}a||n.push(i)}return n},c=function(e,t){for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a={},s=0,l=m(t);s<l.length;s++){var u=l[s];Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}n.push(a)}return n},d=function(e,t){if(!t)return m(e);for(var n=[],r=0,o=m(e);r<o.length;r++){var i=o[r];("string"==typeof t?new RegExp(t):t).test(i)&&n.push(i)}return n},f=function(e,t){if(e&&t){for(var n=[],r=0,o=m(e);r<o.length;r++){for(var i=o[r],a=!1,s=0,l=Object.entries(i);s<l.length;s++){var u=l[s],c=u[0],d=u[1];if(c===t&&![null,void 0].includes(d)){a=!0;break}}a&&n.push(i)}return n}return e},p=function(e,t){if(e){for(var n=[],r=0,o=m(e);r<o.length;r++){var i=o[r],a=!0;for(var s in t)if(!t[s]||!("string"==typeof t[s]?new RegExp(t[s]):t[s]).test(i[s])){a=!1;break}a&&n.push(i)}return n}return e},h=function(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=!0);var o=[];t=m(t);for(var s=function(e,t,n,o,i,a){if(a?i&&(n=o):o=n,t[o]!==e[n]&&(r||![null,void 0].includes(t[o])||![null,void 0].includes(e[n])))return!1},l=0,u=m(e);l<u.length;l++){var c=u[l];if((0,i.isPlainObject)(c))for(var d=0,f=t;d<f.length;d++){var p=f[d],h=!0,v=void 0,y=Array.isArray(n);if((0,i.isPlainObject)(n)||y&&n.length?v=!0:(v=!1,n=c),Array.isArray(n))for(var g,_=0,b=a(n);!(g=b()).done;){if(!1===s(c,p,_,g.value,y,v)){h=!1;break}_+=1}else for(var E=0,x=Object.entries(n);E<x.length;E++){var C=x[E];if(!1===s(c,p,C[0],C[1],y,v)){h=!1;break}}if(h){o.push(c);break}}else t.includes(c)&&o.push(c)}return o},m=function(e){var t=[];return[null,void 0].includes(e)||((0,i.isArrayLike)(Object(e))?y(t,"string"==typeof e?[e]:e):t.push(e)),t},v=function(e,t,n){var r,o;if(void 0===t&&(t=1),void 0===n&&(n=!1),1===(e=[].concat(e)).length)r=0,o=parseInt(String(e[0]),10);else{if(2!==e.length)return e;r=parseInt(String(e[0]),10),o=parseInt(String(e[1]),10)}if(o<r)return[];for(var i=[r];r<=o-t;)r+=t,(!n||r<=o-t)&&i.push(r);return i},y=function(e,t){Array.isArray(t)||(t=Array.prototype.slice.call(t));for(var n,r=a(t);!(n=r()).done;){var o=n.value;e.push(o)}return e},g=function(e){void 0===e&&(e={});var t=e,n=t.boundaryCount,r=void 0===n?1:n,i=t.disabled,a=void 0!==i&&i,s=t.hideNextButton,l=void 0!==s&&s,u=t.hidePrevButton,c=void 0!==u&&u,d=t.page,f=void 0===d?1:d,p=t.pageSize,h=void 0===p?5:p,m=t.showFirstButton,y=void 0!==m&&m,g=t.showLastButton,_=void 0!==g&&g,b=t.siblingCount,E=void 0===b?4:b,x=t.total,C=void 0===x?100:x,S="number"!=typeof h||isNaN(h)?C:Math.ceil(C/h),w=v([1,Math.min(r,S)]),O=v([Math.max(S-r+1,r+1),S]),T=Math.max(Math.min(f-E,S-r-2*E-1),r+2),A=Math.min(Math.max(f+E,r+2*E+2),O.length>0?O[0]-2:S-1);return[].concat(y?["first"]:[],c?[]:["previous"],w,T>r+2?["start-ellipsis"]:r+1<S-r?[r+1]:[],v([T,A]),A<S-r-1?["end-ellipsis"]:S-r>r?[S-r]:[],O,l?[]:["next"],_?["last"]:[]).map(function(e){var t;return"number"==typeof e?{disabled:a,page:e,selected:e===f,type:"page"}:o()({disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?f>=S:f<=1),selected:!1,type:e},e.endsWith("-ellipsis")?{}:{page:(null!==(t={first:1,last:S}[e])&&void 0!==t?t:"next"===e)?Math.min(f+1,S):Math.max(f-1,1)})})},_=function(e){var t=[],n=function(e,r){if(void 0===r&&(r=[]),0===e.length)t.push(r);else for(var o=0;o<e.length;o++){var i=e.slice();n(i,r.concat(i.splice(o,1)))}};return n(e),t},b=function(e,t){void 0===t&&(t=1);var n=[];if(0===e.length)return n;for(var r=function(e,t,o){if(0!==e)for(var i=0;i<t.length;i++)r(e-1,t.slice(i+1),o.concat([t[i]]));else o.length>0&&(n[n.length]=o)},o=t;o<e.length;o++)r(o,e,[]);return n.push(e),n},E=function(e,t){var n=0;if(Array.isArray(e)&&e.length)for(var r,o=a(e);!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(i,t)&&(n+=parseFloat(i[t]||0))}return n},x=function(e,t,n){void 0===n&&(n=!1);var r=e.indexOf(t);if(-1===r){if(n)throw new Error("Given target doesn't exists in given list.")}else e.splice(r,1);return e},C=function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(e[i]=[].concat(s),s.length>0)for(var l,u=a(m(s));!(l=u()).done;){var c=l.value;t.push([i,c])}else t.push([i])}for(var d=[],f=0,p=t;f<p.length;f++)for(var h,v=a(p[f]);!(h=v()).done;){var y=h.value;d.includes(y)||d.push(y)}for(var g=[],_=function(e,n){if(0!==n.length&&n.includes(e))throw new Error('Cyclic dependency found. "'+e+'" is dependent of itself.\nDependency chain: "'+n.join('" -> "')+'" => "'+e+'".');var r=d.indexOf(e);if(-1!==r){var o;d[r]=null;for(var i=0,a=t;i<a.length;i++){var s=a[i];s[0]===e&&(o=o||n.concat([e]),_(s[1],o))}g.push(e)}},b=0;b<d.length;b++){var E=d[b];if(E){d[b]=null;for(var x,C=a(t);!(x=C()).done;){var S=x.value;S[0]===E&&_(S[1],[E])}g.push(E)}}return g},S=function(e){for(var t,n=[],r=a(m(e));!(t=r()).done;){var o=t.value;n.includes(o)||n.push(o)}return n}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=9,e.exports=t},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e,t,n){n.d(t,{BoundTools:function(){return y},JAVASCRIPT_DEPENDENT_CONTENT_HANDLED:function(){return m},Tools:function(){return v}});var r=n(10),o=n.n(r),i=n(13),a=n.n(i),s=n(7),l=n(0),u=n(2),c=n(1),d=n(3),f=n(5);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=!1,v=function(){function e(t){var n=this;this.$domNode=null,this.options=void 0,this._bindEventHelper=function(e,t,r){void 0===t&&(t=!1),r||(r=t?"off":"on");var o=(0,u.$)(e[0]);if("object"===(0,d.determineType)(e[1])&&!t){for(var i=0,a=Object.entries(e[1]);i<a.length;i++){var l=a[i],c=l[0],f=l[1];n[r](o,c,f)}return o}return 0===(e=(0,s.makeArray)(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+n.options.name),o[r].apply(o,e)},t&&(this.$domNode=t),this.options=e._defaultOptions,Object.prototype.hasOwnProperty.call(u.$.global,"console")||(u.$.global.console={}),u.$.global.console||(u.$.global.console={});for(var r,o=p(l.CONSOLE_METHODS);!(r=o()).done;){var i=r.value;i in u.$.global.console||(u.$.global.console[i]=u.NOOP)}}var t=e.prototype;return t.destructor=function(){var e;return null!=(e=u.$.fn)&&e.off&&this.off("*"),this},t.initialize=function(t){return void 0===t&&(t={}),this.options=(0,d.extend)(!0,{},e._defaultOptions,t),this.options.domNodeSelectorPrefix=(0,f.format)(this.options.domNodeSelectorPrefix,(0,f.camelCaseToDelimited)(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},e.controller=function(t,n,r){void 0===r&&(r=null),"function"==typeof t&&((t=new t(r))instanceof e||(t=(0,d.extend)(!0,new e,t)));var o,i=(0,s.makeArray)(n);if(i.length&&"string"==typeof i[0]&&i[0]in t)return(0,c.isFunction)(t[i[0]])?(o=t)[i[0]].apply(o,i.slice(1)):t[i[0]];if(0===i.length||"object"==typeof i[0]){var a,l,u=(a=t).initialize.apply(a,i),f=t.options.name||t.constructor.name;return null!=(l=r)&&l.data&&!r.data(f)&&r.data(f,t),u}if(i.length&&"string"==typeof i[0])throw new Error('Method "'+i[0]+'" does not exist on $-extended dom node "'+t+'".')},e.isEquivalentDOM=function(e,t,n){if(void 0===n&&(n=!1),e===t)return!0;if(e&&t){for(var r=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:t},i={first:(0,u.$)("<dummy>"),second:(0,u.$)("<dummy>")},a=0,s=Object.entries(o);a<s.length;a++){var l=s[a],c=l[0],d=l[1];if("string"==typeof d&&(n||d.startsWith("<")&&d.endsWith(">")&&d.length>=3||r.test(d)))i[c]=(0,u.$)("<div>"+d+"</div>");else try{var f=(0,u.$)(d).clone();if(!f.length)return!1;i[c]=(0,u.$)("<div>").append(f)}catch(e){return!1}}if(i.first.length&&i.first.length===i.second.length){i.first=i.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,i.second=i.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var p=0,h=0,m=i.first;h<m.length;h++){if(!m[h].isEqualNode(i.second[p]))return!1;p+=1}return!0}}return!1},t.getPositionRelativeToViewport=function(e){if(void 0===e&&(e={}),!u.$.global.window)throw new Error("No window object available.");var t=(0,d.extend)({bottom:0,left:0,right:0,top:0},e),n=this.$domNode;if(Object.prototype.hasOwnProperty.call(u.$.global,"window")&&null!=n&&n.length&&n[0]&&"getBoundingClientRect"in n[0]){var r=(0,u.$)(u.$.global.window),o=n[0].getBoundingClientRect();if(o.top&&o.top+t.top<0)return"above";if(o.left+t.left<0)return"left";var i=r.height();if("number"==typeof i&&i<o.bottom+t.bottom)return"below";var a=r.width();if("number"==typeof a&&a<o.right+t.right)return"right"}return"in"},e.generateDirectiveSelector=function(e){var t=(0,f.camelCaseToDelimited)(e);return t+", ."+t+", ["+t+"], [data-"+t+"], [x-"+t+"]"+(t.includes("-")?", ["+t.replace(/-/g,"\\:")+"], ["+t.replace(/-/g,"_")+"]":"")},t.removeDirective=function(e){if(null===this.$domNode)return null;var t=(0,f.camelCaseToDelimited)(e);return this.$domNode.removeClass(t).removeAttr(t).removeAttr("data-"+t).removeAttr("x-"+t).removeAttr(t.replace("-",":")).removeAttr(t.replace("-","_"))},t.renderJavaScriptDependentVisibility=function(){!m&&u.$.document&&"filter"in u.$&&"hide"in u.$&&"show"in u.$&&((0,u.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter(function(e,t){return!(0,u.$)(t).data("javaScriptDependentContentHide")}).data("javaScriptDependentContentHide",!0).hide(),(0,u.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter(function(e,t){return!(0,u.$)(t).data("javaScriptDependentContentShow")}).data("javaScriptDependentContentShow",!0).show(),m=!0)},e.getNormalizedDirectiveName=function(e){for(var t,n=p(["-",":","_"]);!(t=n()).done;){for(var r,o=t.value,i=!1,a=p(["data"+o,"x"+o]);!(r=a()).done;){var s=r.value;if(e.startsWith(s)){e=e.substring(s.length),i=!0;break}}if(i)break}for(var l,u=p(["-",":","_"]);!(l=u()).done;){var c=l.value;e=(0,f.delimitedToCamelCase)(e,c)}return e},t.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var t=(0,f.camelCaseToDelimited)(e),n=0,r=[t,"data-"+t,"x-"+t,t.replace("-","\\:")];n<r.length;n++){var o=r[n],i=this.$domNode.attr(o);if("string"==typeof i)return i}return null},t.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},e.getDomNodeName=function(e){var t=/^<?([a-zA-Z]+).*>?.*/.exec(e);return t?t[1]:null},t.grabDomNodes=function(e,t){var n=this,r={};if(t)for(var o=(0,u.$)(t),i=0,a=Object.entries(e);i<a.length;i++){var s=a[i],l=s[0],c=s[1];r[l]=o.find(c)}else for(var d=0,p=Object.entries(e);d<p.length;d++){var h=p[d],m=h[0],v=h[1],y=/, */.exec(v);y&&(e[m]+=v.split(y[0]).map(function(e){return", "+(0,f.normalizeDomNodeSelector)(e,n.options.domNodeSelectorPrefix)}).join("")),r[m]=(0,u.$)((0,f.normalizeDomNodeSelector)(e[m],this.options.domNodeSelectorPrefix))}return this.options.domNodeSelectorPrefix&&(r.parent=(0,u.$)(this.options.domNodeSelectorPrefix)),Object.prototype.hasOwnProperty.call(u.$.global,"window")&&(r.window=(0,u.$)(u.$.global.window),u.$.document&&(r.document=(0,u.$)(u.$.document))),r},t.fireEvent=function(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=this);for(var o="on"+(0,f.capitalize)(e),i=n,a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return t||(o in i?i[o].apply(i,s):"_"+o in i&&i["_"+o].apply(i,s)),!i.options||!(o in i.options)||i.options[o]===u.NOOP||(r=i.options[o]).call.apply(r,[this].concat(s))},t.on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!1)},t.off=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._bindEventHelper(t,!0)},a()(e,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each(function(t,n){var r=(0,u.$)(n),o=r.attr(e);o?r.attr(e,o.trim().replace(/ +/," ").split(" ").sort().join(" ")):r.is("[class]")&&r.removeAttr(e)})}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each(function(t,n){var r=(0,u.$)(n),o=r.attr(e);o?r.attr(e,(0,f.compressStyleValue)((0,f.compressStyleValue)(o).split(";").sort().map(function(e){return e.trim()}).join(";"))):r.is("[style]")&&r.removeAttr(e)})}return this}},{key:"style",get:function(){var e={},t=this.$domNode;if(null!=t&&t.length){var n,r;if(null!=(n=u.$.global.window)&&n.getComputedStyle){if("length"in(r=u.$.global.window.getComputedStyle(t[0],null)))for(var o=0;o<r.length;o+=1){var i=r[o];e[(0,f.delimitedToCamelCase)(i)]=r.getPropertyValue(i)}else for(var a=0,s=Object.entries(r);a<s.length;a++){var l=s[a],c=l[0],d=l[1];e[(0,f.delimitedToCamelCase)(c)]=d||r.getPropertyValue(c)}return e}r=t[0].style;for(var p=0,h=Object.entries(r);p<h.length;p++){var m=h[p],v=m[0],y=m[1];"function"!=typeof y&&(e[v]=y)}}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}])}();v._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",name:"Tools"};var y=function(e){function t(n){for(var r,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this,n].concat(i))||this).$domNode=void 0,r.self=t,r.$domNode=n,r}return o()(t,e),t}(v);t.default=v},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__12__){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e,t,n){n.r(t),n.d(t,{ceil:function(){return s},floor:function(){return l},getUTCTimestamp:function(){return o},isNotANumber:function(){return i},round:function(){return a}});var r=n(3),o=function(e,t){void 0===t&&(t=!1);var n=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())/(t?1:1e3)},i=function(e){return"number"===(0,r.determineType)(e)&&isNaN(e)},a=function(e,t){return void 0===t&&(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},s=function(e,t){return void 0===t&&(t=0),Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)},l=function(e,t){return void 0===t&&(t=0),Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){n.d(t,{Lock:function(){return s}});var r=n(18),o=n.n(r),i=n(19),a=n.n(i),s=function(){function e(e){void 0===e&&(e={}),this.locks=void 0,this.locks=e}var t=e.prototype;return t.acquire=function(e,t,n){var r=this;return void 0===n&&(n=!1),new Promise(function(o){var i=function(e){var i,a;t&&(a=t(e));var s=function(t){return n&&r.release(e),o(t),t};return null!=(i=a)&&i.then?a.then(s):(s(a),a)};Object.prototype.hasOwnProperty.call(r.locks,e)?r.locks[e].push(i):(r.locks[e]=[],i(e))})},t.release=function(){var e=o()(a().mark(function e(t){var n;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object.prototype.hasOwnProperty.call(this.locks,t)){e.next=3;break}if(void 0!==(n=this.locks[t].shift())){e.next=1;break}delete this.locks[t],e.next=3;break;case 1:return e.next=2,n(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),e}()},function(e,t,n){n.d(t,{Semaphore:function(){return r}});var r=function(){function e(e){void 0===e&&(e=2),this.queue=[],this.numberOfResources=void 0,this.numberOfFreeResources=void 0,this.numberOfResources=e,this.numberOfFreeResources=e}var t=e.prototype;return t.acquire=function(){var e=this;return new Promise(function(t){e.numberOfFreeResources<=0?e.queue.push(t):(e.numberOfFreeResources-=1,t(e.numberOfFreeResources))})},t.release=function(){var e=this.queue.shift();void 0===e?this.numberOfFreeResources+=1:e(this.numberOfFreeResources)},e}()},function(e,t,n){n.r(t),n.d(t,{copyDirectoryRecursive:function(){return W},copyDirectoryRecursiveSync:function(){return q},copyFile:function(){return H},copyFileSync:function(){return $},isDirectory:function(){return K},isDirectorySync:function(){return G},isFile:function(){return X},isFileSync:function(){return Y},mkdirSync:function(){return v},readFileSync:function(){return b},readdirSync:function(){return g},statSync:function(){return x},walkDirectoryRecursively:function(){return J},walkDirectoryRecursivelySync:function(){return Q},writeFileSync:function(){return S}});var r=n(4),o=n.n(r),i=n(18),a=n.n(i),s=n(19),l=n.n(s),u=n(0),c=n(2),d=n(6);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.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)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=(0,d.optionalRequire)("fs")||{},m=h.mkdirSync,v=void 0===m?null:m,y=h.readdirSync,g=void 0===y?null:y,_=h.readFileSync,b=void 0===_?null:_,E=h.statSync,x=void 0===E?null:E,C=h.writeFileSync,S=void 0===C?null:C,w=(0,d.optionalRequire)("fs/promises")||{},O=w.mkdir,T=void 0===O?null:O,A=w.readdir,I=void 0===A?null:A,k=w.readFile,N=void 0===k?null:k,P=w.stat,M=void 0===P?null:P,L=w.writeFile,D=void 0===L?null:L,R=(0,d.optionalRequire)("path")||{},j=R.basename,F=void 0===j?null:j,B=R.join,U=void 0===B?null:B,V=R.resolve,z=void 0===V?null:V,W=function(){var e=a()(l().mark(function e(t,n,r,o,i){var a,s,d,p,h,m,v,y;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r=c.NOOP),void 0===o&&(o={encoding:null,flag:"r"}),void 0===i&&(i={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),F&&U&&T&&z){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return t=z(t),e.next=2,K(n);case 2:if(!e.sent){e.next=3;break}n=z(n,F(t));case 3:return e.prev=3,e.next=4,T(n);case 4:e.next=6;break;case 5:if(e.prev=5,"EEXIST"===(m=e.catch(3)).code){e.next=6;break}throw m;case 6:return v=f,e.next=7,J(t,r);case 7:a=v(e.sent);case 8:if((s=a()).done){e.next=15;break}if(p=s.value,h=U(n,p.path.substring(t.length)),null==(d=p.stats)||!d.isDirectory()){e.next=13;break}return e.prev=9,e.next=10,T(h);case 10:e.next=12;break;case 11:if(e.prev=11,"EEXIST"===(y=e.catch(9)).code){e.next=12;break}throw y;case 12:e.next=14;break;case 13:return e.next=14,H(p.path,h,o,i);case 14:e.next=8;break;case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}},e,null,[[3,5],[9,11]])}));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),q=function(e,t,n,r,o){if(void 0===n&&(n=c.NOOP),void 0===r&&(r={encoding:null,flag:"r"}),void 0===o&&(o={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&U&&v&&z))throw new Error("Could not load filesystem functions.");e=z(e),G(t)&&(t=z(t,F(e)));try{v(t)}catch(e){if("EEXIST"!==e.code)throw e}for(var i=0,a=Q(e,n);i<a.length;i++){var s,l=a[i],d=U(t,l.path.substring(e.length));if(null!=(s=l.stats)&&s.isDirectory())try{v(d)}catch(e){if("EEXIST"!==e.code)throw e}else $(l.path,d,r,o)}return t},H=function(){var e=a()(l().mark(function e(t,n,r,o){var i,a;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r={encoding:null,flag:"r"}),void 0===o&&(o={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),F&&N&&z&&D){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.next=2,K(n);case 2:if(!e.sent){e.next=3;break}n=z(n,F(t));case 3:return i=D,a=n,e.next=4,N(t,r);case 4:return e.next=5,i(a,e.sent,o);case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),$=function(e,t,n,r){if(void 0===n&&(n={encoding:null,flag:"r"}),void 0===r&&(r={encoding:u.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&b&&z&&S))throw new Error("Could not load filesystem functions.");return G(t)&&(t=z(t,F(e))),S(t,b(e,n),r),t},K=function(){var e=a()(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,M(t);case 2:return e.abrupt("return",e.sent.isDirectory());case 3:if(e.prev=3,n=e.catch(1),!Object.prototype.hasOwnProperty.call(n,"code")||!["ENOENT","ENOTDIR"].includes(n.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw n;case 5:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),G=function(e){if(!x)throw new Error("Could not load filesystem functions.");try{return x(e).isDirectory()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},X=function(){var e=a()(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,M(t);case 2:return e.abrupt("return",e.sent.isFile());case 3:if(e.prev=3,n=e.catch(1),!Object.prototype.hasOwnProperty.call(n,"code")||!["ENOENT","ENOTDIR"].includes(n.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw n;case 5:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),Y=function(e){if(!x)throw new Error("Could not load filesystem functions.");try{return x(e).isFile()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},J=function(){var e=a()(l().mark(function e(t,n,r){var i,a,s,c,d,p,h,m,v,y,g,_,b,E,x;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n=null),void 0===r&&(r=u.DEFAULT_ENCODING),I&&z&&M){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return i=[],b=f,e.next=2,I(t,"string"==typeof r?{encoding:r,withFileTypes:!0}:o()({},r,{withFileTypes:!0}));case 2:a=b(e.sent);case 3:if((s=a()).done){e.next=9;break}return c=s.value,d=z(t,c.name),p={directoryPath:t,directoryEntry:c,error:null,name:c.name,path:d,stats:null},e.prev=4,e.next=5,M(d);case 5:p.stats=e.sent,e.next=7;break;case 6:e.prev=6,E=e.catch(4),p.error=E;case 7:i.push(p);case 8:e.next=3;break;case 9:n&&i.sort(function(e,t){var n,r,o;return null!=(n=e.stats)&&n.isDirectory()?null!=(o=t.stats)&&o.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0}),h=[],m=0,v=i;case 10:if(!(m<v.length)){e.next=17;break}if(g=v[m],h.push(g),null!==(_=n?n(g):void 0)){e.next=11;break}return e.abrupt("continue",17);case 11:if("object"!=typeof _||!("then"in _)){e.next=13;break}return e.next=12,_;case 12:_=e.sent;case 13:if(null!==_){e.next=14;break}return e.abrupt("continue",17);case 14:if(!1===_||null==(y=g.stats)||!y.isDirectory()){e.next=16;break}return x=h,e.next=15,J(g.path,n,r);case 15:h=x.concat.call(x,e.sent);case 16:m++,e.next=10;break;case 17:return e.abrupt("return",h);case 18:case"end":return e.stop()}},e,null,[[4,6]])}));return function(t,n,r){return e.apply(this,arguments)}}(),Q=function(e,t,n){if(void 0===t&&(t=c.NOOP),void 0===n&&(n=u.DEFAULT_ENCODING),!(g&&z&&x))throw new Error("Could not load filesystem functions.");for(var r,i=[],a=f(g(e,"string"==typeof n?{encoding:n,withFileTypes:!0}:o()({},n,{withFileTypes:!0})));!(r=a()).done;){var s=r.value,l=z(e,s.name),d={directoryPath:e,directoryEntry:s,error:null,name:s.name,path:l,stats:null};try{d.stats=x(l)}catch(e){d.error=e}i.push(d)}var p=[];if(t){i.sort(function(e,t){var n,r,o;return null!=(n=e.stats)&&n.isDirectory()?null!=(o=t.stats)&&o.isDirectory()?0:-1:null!=(r=t.stats)&&r.isDirectory()?1:0});for(var h,m=f(i);!(h=m()).done;){var v,y=h.value;p.push(y);var _=t(y);if(null===_)break;!1!==_&&null!=(v=y.stats)&&v.isDirectory()&&(p=p.concat(Q(y.path,t,n)))}}return p}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__18__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e,t,n){n.r(t),n.d(t,{debounce:function(){return i},timeout:function(){return a}});var r=n(2),o=n(1),i=function(e,t){void 0===t&&(t=600);for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,s,l=new Promise(function(e){s=e});return function(){for(var n,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u=u.concat(r),null==(n=i)||n.clear(),i=a(function(){s(e.apply(void 0,u)),l=new Promise(function(e){s=e})},t),l}},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i,a,s=r.NOOP,l=0,u=!1,c=0,d=t;c<d.length;c++){var f=d[c];"number"!=typeof f||isNaN(f)?"boolean"==typeof f?u=f:(0,o.isFunction)(f)&&(s=f):l=f}var p=new Promise(function(e,t){i=t,a=e}),h=function(){var e;(e=s).call.apply(e,[p].concat(t)),a(!1)},m=2147483647;if(l<=m)p.timeoutID=setTimeout(h,l);else{var v=Math.floor(l/m),y=l%m,g=function(){v>0?(v-=1,p.timeoutID=setTimeout(g,m)):p.timeoutID=setTimeout(h,y)};g()}return p.clear=function(){Object.prototype.hasOwnProperty.call(p,"timeoutID")&&(clearTimeout(p.timeoutID),(u?i:a)(!0))},p}},function(e,t,n){n.d(t,{CLI_COLOR:function(){return r}});var r={black:"",blink:"",blue:"",bold:"",cyan:"",darkGray:"",default:"",dim:"",green:"",invert:"",invisible:"",lightBlue:"",lightCyan:"",lightGray:"",lightGreen:"",lightMagenta:"",lightRed:"",lightYellow:"",magenta:"",nodim:"",noblink:"",nobold:"",noinvert:"",noinvisible:"",nounderline:"",red:"",underline:"",white:"",yellow:""}},function(e,t,n){n.r(t),n.d(t,{LEVELS:function(){return l},LEVELS_COLOR:function(){return u},Logger:function(){return c}});var r,o=n(21),i=n(2),a=n(1),s=n(3),l=["error","critical","warn","info","debug"],u=[o.CLI_COLOR.red,o.CLI_COLOR.magenta,o.CLI_COLOR.yellow,o.CLI_COLOR.green,o.CLI_COLOR.blue],c=function(){function e(t){void 0===t&&(t={}),this.level=e.defaultLevel,this.name=e.defaultName,this.configure(t),e.instances[this.name]=this}e.configureAllInstances=function(t){void 0===t&&(t={}),t.level&&(e.defaultLevel=t.level),t.name&&(e.defaultName=t.name);for(var n=0,r=Object.values(e.instances);n<r.length;n++)r[n].configure(t)};var t=e.prototype;return t.configure=function(t){var n=t.name,r=t.level;this.level=r||e.defaultLevel,this.name=n||e.defaultName},t.log=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="info");var s=l.indexOf(this.level),c=l.indexOf(r);if(t||s>=c){for(var d,f=[],p=""+u[c]+r+o.CLI_COLOR.default+":"+this.name+":"+(new Date).toISOString()+":",h=arguments.length,m=new Array(h>4?h-4:0),v=4;v<h;v++)m[v-4]=arguments[v];if(n)f.push(e);else if("string"==typeof e)f.push.apply(f,[p,e].concat(m));else if((0,a.isNumeric)(e)||"boolean"==typeof e)f.push.apply(f,[p,e.toString()].concat(m));else{var y=77-p.length,g=Math.floor(y/2);this.log(","+"-".repeat(g)+p+"-".repeat(g)+"-".repeat(y%2)+","),this.log(e,t,!0),this.log("'"+"-".repeat(77)+"'")}if(f.length)if(i.$.global.console&&r in i.$.global.console&&i.$.global.console[r]!==i.NOOP)(d=i.$.global.console)[r].apply(d,f);else{var _;Object.prototype.hasOwnProperty.call(i.$.global,"window")&&Object.prototype.hasOwnProperty.call(i.$.global.window,"alert")&&(null==(_=i.$.global.window)||_.alert(f.join(" ")))}}},t.info=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"info"].concat(n))},t.debug=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"debug"].concat(n))},t.error=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"error"].concat(n))},t.critical=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!0,!1,"warn"].concat(n))},t.warn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,!1,!1,"warn"].concat(n))},e.show=function(t,n,r){void 0===n&&(n=3),void 0===r&&(r=0);var o="";if("object"===(0,s.determineType)(t)){for(var i=0,a=Object.entries(t);i<a.length;i++){var l=a[i],u=l[0],c=l[1];o+=u+": ",o+=r<=n?e.show(c,n,r+1):String(c),o+="\n"}return o.trim()}return(o=String(t).trim())+' (Type: "'+(0,s.determineType)(t)+'")'},e}();r=c,c.defaultLevel="info",c.defaultName="app",c.selfClass=r,c.instances={},c.runtimeVersion=Math.random(),t.default=c},function(e,t,n){n.r(t),n.d(t,{DATE_TIME_PATTERN_CACHE:function(){return d},dateTimeFormat:function(){return f},interpretDateTime:function(){return p},normalizeDateTime:function(){return h},sliceWeekday:function(){return m}});var r=n(8),o=n.n(r),i=n(4),a=n.n(i),s=n(0),l=n(5);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=[],f=function(e,t,n,r){void 0===e&&(e="full"),void 0===t&&(t=new Date),void 0===n&&(n={}),void 0===r&&(r=s.LOCALES),"number"==typeof t&&(t*=1e3);var o=new Date(t);if(["full","long","medium","short"].includes(e))return new Intl.DateTimeFormat([].concat(r,"en-US"),a()({dateStyle:e,timeStyle:e},n)).format(o);for(var i,c={},d=u(["full","long","medium","short"]);!(i=d()).done;){var f=i.value;c[f+"Literals"]=[];var p=new Intl.DateTimeFormat([].concat(r,"en-US"),a()({dateStyle:f,timeStyle:f},n));c[f]=p.format(o);for(var h,m=u(p.formatToParts(o));!(h=m()).done;){var v=h.value;"literal"===v.type?c[f+"Literals"].push(v.value):c[""+f+(0,l.capitalize)(v.type)]=v.value}}var y=(0,l.evaluate)("`"+e+"`",c);if(y.error)throw new Error(y.error);return y.result.replace(/\s/g," ")},p=function(e,t){var n=Boolean(t),r="[0-2][0-9]:[0-6][0-9]",i="^[0-9]{4}-[01][0-9]-[0-3][0-9](?<time>(?:T"+r+"(?::[0-6][0-9](?:\\.[0-9]+)?)?(?<dateTimeTimezone>Z|(?:[+-]"+r+"))?)|(?<dateTimezone>Z|(?:[+-]"+r+")))?$",a=e.match(new RegExp(i,"i"));if(a){var s,c,f,h,v,y=new Date(e);return isNaN(y.getDate())?null:(null!==(s=null==(c=a.groups)?void 0:c.dateTimeTimezone)&&void 0!==s?s:null==(f=a.groups)?void 0:f.dateTimezone)?y:([null,void 0].includes(t)&&(n=!1),n?null!=(v=a.groups)&&v.time?new Date(y.getTime()-60*y.getTimezoneOffset()*1e3):y:null!=(h=a.groups)&&h.time?y:new Date(y.getTime()+60*y.getTimezoneOffset()*1e3))}if(e=e.replace(/^(-?)-*0*([1-9][0-9]*)$/,"$1$2"),String(parseInt(e))===e){[null,void 0].includes(t)&&(n=!0);var g=new Date(1e3*parseInt(e));return new Date(1e3*(parseInt(e)+(n?0:60*g.getTimezoneOffset())))}if(!d.length)for(var _,b="(?:0?[0-9])|(?:[1-5][0-9])|(?:60)",E="(?<second>"+b+")",x="(?<minute>"+b+")",C="(?<hour>(?:0?[0-9])|(?:1[0-9])|(?:2[0-4]))",S="(?<noonIndicator> *(?:(?:a\\.?m\\.?)|(?:p\\.?m\\.?)))?",w="(?<day>(?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))",O="(?<month>(?:0?[1-9])|(?:1[0-2]))",T="(?<year>(?:0?[1-9])|(?:[1-9][0-9]+))",A={},I=u(["t"," "]);!(_=I()).done;)for(var k,N=_.value,P=u([":","/","-"," "]);!(k=P()).done;)for(var M=k.value,L=0,D=[C+(M+"+")+x+S,C+(M+"+")+x+M+"+"+E+S,C+(M+"+")+x+M+"+"+E+M+"+(?<millisecond>(?:0{0,3}[0-9])|(?:0{0,2}[1-9]{2})|(?:0?[1-9]{3})|(?:1[1-9]{3}))"+S,C+S];L<D.length;L++)for(var R=D[L],j=0,F=[{delimiter:["/","-"," "],pattern:[O+"${delimiter}"+w+"${delimiter}"+T,O+"${delimiter}"+w+" +"+T,T+"${delimiter}"+O+"${delimiter}"+w,T+" +"+O+"${delimiter}"+w,O+"${delimiter}"+w+"${delimiter}"+T+N+"+"+R,O+"${delimiter}"+w+" +"+T+N+"+"+R,R+(N+"+")+O+"${delimiter}"+w+"${delimiter}"+T,R+(N+"+")+O+"${delimiter}"+w+" +"+T,T+"${delimiter}"+O+"${delimiter}"+w+N+"+"+R,T+" +"+O+"${delimiter}"+w+N+"+"+R,R+(N+"+")+T+"${delimiter}"+O+"${delimiter}"+w,R+(N+"+")+T+" +"+O+"${delimiter}"+w]},{delimiter:"\\.",pattern:[w+"${delimiter}"+O+"${delimiter}"+T,w+"${delimiter}"+O+" +"+T,T+"${delimiter}"+w+"${delimiter}"+O,T+" +"+w+"${delimiter}"+O,w+"${delimiter}"+O+"${delimiter}"+T+N+"+"+R,w+"${delimiter}"+O+" +"+T+N+"+"+R,R+(N+"+")+w+"${delimiter}"+O+"${delimiter}"+T,R+(N+"+")+w+"${delimiter}"+O+" +"+T,T+"${delimiter}"+w+"${delimiter}"+O+N+"+"+R,T+" +"+w+"${delimiter}"+O+N+"+"+R,R+(N+"+")+T+"${delimiter}"+w+"${delimiter}"+O,R+(N+"+")+T+" +"+w+"${delimiter}"+O]},{pattern:R}];j<F.length;j++)for(var B,U=F[j],V=u([].concat(Object.prototype.hasOwnProperty.call(U,"delimiter")?U.delimiter:"-"));!(B=V()).done;)for(var z,W=B.value,q=u([].concat(U.pattern));!(z=q()).done;){var H=z.value,$=(0,l.evaluate)("`^"+H+"$`",{delimiter:W+"+"}).result;$&&!Object.prototype.hasOwnProperty.call(A,$)&&(A[$]=!0,d.push(new RegExp($)))}e=(e=e.toLowerCase()).replace(/([^0-9a-z])[^0-9a-z]+/g,"$1");for(var K=1,G=0,X=[["jan","january?","janvier"],["feb","february?","février"],["m(?:a|ae|ä)r","m(?:a|ae|ä)r(?:ch|s|z)"],["ap[rv]","a[pv]ril"],["ma[iy]"],["ju[ein]","jui?n[ei]?"],["jul","jul[iy]","juillet"],["aug","august","août"],["sep","septemb(?:er|re)"],["o[ck]t","o[ck]tob(?:er|re)"],["nov","novemb(?:er|re)"],["de[cz]","d[eé][cz]emb(?:er|re)"]];G<X.length;G++){for(var Y,J=!1,Q=u(X[G]);!(Y=Q()).done;){var Z=Y.value,ee=new RegExp("(^|[^a-z])"+Z+"([^a-z]|$)");if(ee.test(e)){e=e.replace(ee,"$1"+String(K)+"$2"),J=!0;break}}if(J)break;K+=1}e=m(e);var te=/(.+)\+(.+)$/,ne=te.exec(e);ne&&(e=e.replace(te,"$1"));for(var re,oe=u(["","Uhr","o'clock"]);!(re=oe()).done;){var ie=re.value;e=e.replace(ie,"")}e=e.trim();for(var ae,se=function(){var t=ue[le],r=null;try{r=e.match(t)}catch(e){}if(r){var i,a=function(e,t){return void 0===t&&(t=0),r.groups&&e in r.groups?parseInt(r.groups[e],10):t},s=[a("year",1970),a("month",1)-1,a("day",1),a("hour"),a("minute"),a("second"),a("millisecond")];null!=(i=r.groups)&&i.noonIndicator&&"pm"===r.groups.noonIndicator.trim().replace(/\./g,"")&&s[3]<=12&&(s[3]+=12);var l=null;if(ne){var u=p(ne[2],!0);u&&(l=new Date(Date.UTC.apply(Date,s)-u.getTime()))}return l||(l=n?new Date(Date.UTC.apply(Date,s)):o()(Date,s)),isNaN(l.getDate())?{v:null}:{v:l}}},le=0,ue=d;le<ue.length;le++)if(ae=se())return ae.v;return null},h=function(e,t){void 0===e&&(e=null);var n=Boolean(t);if(null===e)return new Date;if("string"==typeof e){if(/^.*(?:(?:[0-9]{1,4}[^0-9]){2}|[0-9]{1,4}[^0-9.]).*$/.test(e))return p(e,n);var r=parseFloat(e);String(r)===e&&(e=r)}if("number"==typeof e){[null,void 0].includes(t)&&(n=!0);var o=new Date(1e3*e);return new Date(1e3*(e+(n?0:60*o.getTimezoneOffset())))}var i=new Date(e);return isNaN(i.getDate())?null:i},m=function(e){var t=/[a-z]{2}\.+ *([^ ].*)$/i;return t.exec(e)?e.replace(t,"$1"):e}},function(e,t,n){function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{getParameterNames:function(){return i},identity:function(){return a},invertArrayFilter:function(){return s}});var i=function(e){var t=("string"==typeof e?e:e.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,"");if(t.startsWith("class"))return i("function "+t.replace(/.*(constructor\([^)]+\))/m,"$1"));var n=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(t);null===n&&(n=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(t)),null===n&&(n=/([^= ]+) *=>.*/m.exec(t));var o=[];if(n&&n.length>1&&n[1].trim().length){for(var a,s=r(n[1].split(","));!(a=s()).done;){var l=a.value;o.push(l.replace(/=.+$/g,"").trim())}return o}return o},a=function(e){return e},s=function(e){return function(t){if(Array.isArray(t)){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=e.apply(void 0,[t].concat(o)),s=[];if(a.length)for(var l,u=r(t);!(l=u()).done;){var c=l.value;a.includes(c)||s.push(c)}else s=t;return s}return t}}},function(e,t,n){n.d(t,{deleteCookie:function(){return s},getCookie:function(){return l},setCookie:function(){return u}});var r=n(4),o=n.n(r),i=n(2);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e){i.$.document&&(i.$.document.cookie=e+"=; Max-Age=-99999999;")},l=function(e){if(i.$.document){for(var t,n=e+"=",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.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;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(decodeURIComponent(i.$.document.cookie).split(";"));!(t=r()).done;){for(var o=t.value;o.startsWith(" ");)o=o.substring(1);if(o.startsWith(n))return o.substring(n.length,o.length)}return""}return null},u=function(e,t,n){if(void 0===n&&(n={}),i.$.document){var r,a=o()({domain:"",httpOnly:!1,minimal:!1,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:!0},n),s=new Date;return s.setTime(s.getTime()+24*a.numberOfDaysUntilExpiration*60*60*1e3),""===a.domain&&null!=(r=i.$.location)&&r.hostname&&(a.domain=i.$.location.hostname),i.$.document.cookie=e+"="+t+(a.minimal?"":';Expires="'+s.toUTCString()+";Path="+a.path+";Domain="+a.domain+(a.sameSite?";SameSite="+a.sameSite:"")+(a.secure?";Secure":"")+(a.httpOnly?";HttpOnly":"")),!0}return!1}},function(e,t,n){n.d(t,{cacheImage:function(){return p},checkReachability:function(){return d},checkUnreachability:function(){return f},sendToExternalURL:function(){return m},sendToIFrame:function(){return h}});var r=n(18),o=n.n(r),i=n(19),a=n.n(i),s=n(1),l=n(2),u=n(3),c=n(20),d=function(){var e=o()(a().mark(function e(t,n){var r,i,s,d,f,p,h,m;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(i=null!==(r=n.abortController)&&void 0!==r?r:new AbortController,s=(0,u.extend)(!0,{expectedIntermediateStatusCodes:[],options:{signal:i.signal},pollIntervallInSeconds:.1,statusCodes:200,timeoutInSeconds:10,wait:!1},n),d=[].concat(s.statusCodes),f=[].concat(s.expectedIntermediateStatusCodes),p=function(e,t){return"status"in e&&t.includes(e.status)},h=function(e){if(!p(e,d))throw new Error("Given status code "+String(e.status)+" differs from "+d.join(", ")+".");return e},!s.wait){e.next=2;break}return e.abrupt("return",new Promise(function(e,n){var r=!1,u=(0,c.timeout)(1e3*s.timeoutInSeconds),d=function(e){return r||(v=(0,c.timeout)(1e3*s.pollIntervallInSeconds,m)).catch(function(){}),e},m=function(){var r=o()(a().mark(function r(){var o,i,c;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=1,l.globalContext.fetch(t,s.options);case 1:o=r.sent,r.next=3;break;case 2:return r.prev=2,i=r.catch(0),r.abrupt("return",d(i));case 3:r.prev=3,e(h(o)),u.clear(),r.next=6;break;case 4:if(r.prev=4,c=r.catch(3),!p(o,f)){r.next=5;break}return r.abrupt("return",d(c));case 5:n(c),u.clear();case 6:return r.abrupt("return",o);case 7:case"end":return r.stop()}},r,null,[[0,2],[3,4]])}));return function(){return r.apply(this,arguments)}}(),v=(0,c.timeout)(m);u.then(function(){r=!0,v.clear(),n(new Error("Timeout of "+String(s.timeoutInSeconds)+" seconds reached.")),i.abort()},function(){})}));case 2:return m=h,e.next=3,l.globalContext.fetch(t,s.options);case 3:return e.abrupt("return",m(e.sent));case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=o()(a().mark(function e(t,n){var r,i,d,f,p,h,m;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(i=null!==(r=n.abortController)&&void 0!==r?r:new AbortController,d=(0,u.extend)(!0,{options:{signal:i.signal},pollIntervallInSeconds:.1,statusCodes:[],timeoutInSeconds:10,wait:!1},n),f=function(e){var n=[].concat(d.statusCodes);if(n.length){if((0,s.isObject)(e)&&"status"in e&&n.includes(e.status))throw new Error('Given url "'+t+'" is reachable and responses with status code "'+String(e.status)+'".');return new Error('Given status code is not "'+n.join(", ")+'".')}return null},!d.wait){e.next=2;break}return e.abrupt("return",new Promise(function(e,n){var r=!1,s=function(){var n=o()(a().mark(function n(){var o,i,h;return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,l.globalContext.fetch(t,d.options);case 1:if(o=n.sent,!r){n.next=2;break}return n.abrupt("return",o);case 2:if(!(i=f(o))){n.next=3;break}return p.clear(),e(i),n.abrupt("return",i);case 3:(u=(0,c.timeout)(1e3*d.pollIntervallInSeconds,s)).catch(function(){}),n.next=5;break;case 4:return n.prev=4,h=n.catch(0),p.clear(),e(h),n.abrupt("return",h);case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}},n,null,[[0,4]])}));return function(){return n.apply(this,arguments)}}(),u=(0,c.timeout)(s),p=(0,c.timeout)(1e3*d.timeoutInSeconds);p.then(function(){r=!0,u.clear(),n(new Error("Timeout of "+String(d.timeoutInSeconds)+" seconds reached.")),i.abort()},function(){})}));case 2:return e.prev=2,h=f,e.next=3,l.globalContext.fetch(t,d.options);case 3:if(!(p=h(e.sent))){e.next=4;break}return e.abrupt("return",p);case 4:e.next=6;break;case 5:return e.prev=5,m=e.catch(2),e.abrupt("return",m);case 6:throw new Error('Given url "'+t+'" is reachable.');case 7:case"end":return e.stop()}},e,null,[[2,5]])}));return function(t,n){return e.apply(this,arguments)}}(),p=function(e){return new Promise(function(t,n){var r=document.createElement("img");r.onload=function(){var e=r.complete;r.remove(),e?t():n(new Error("Image could not be loaded."))},r.src=e})},h=function(e,t,n,r,o){void 0===r&&(r="post"),void 0===o&&(o=!1);for(var i="string"==typeof e?$('iframe[name"'+e+'"]'):$(e),a=$("<form>").attr({action:t,method:r,target:i.attr("name")}),s=0,l=Object.entries(n);s<l.length;s++){var u=l[s],c=u[0],d=u[1];a.append($("<input>").attr({name:c,type:"hidden",value:d}))}return o&&i.on("load",function(){return i.remove()}),a.insertAfter(i),a[0].submit(),a.remove(),i},m=function(e,t,n,r,o){void 0===n&&(n="post"),void 0===r&&(r=!0),void 0===o&&(o=null);var i=$("<iframe>").attr("name","clientnode-"+String((new Date).getTime())).hide();return o&&o.append(i),h(i,e,t,n,r),i}},function(e,t,n){n.d(t,{getProcessCloseHandler:function(){return o},handleChildProcess:function(){return i}});var r=n(2),o=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=r.NOOP);var i=!1;return function(r){if(i)i=!0;else{i=!0;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if("number"!=typeof r||0===r)o(),e({reason:n,parameters:s});else{var u=new Error("Task exited with error code "+String(r));u.returnCode=r,u.parameters=s,t(u)}}}},i=function(e){return e.stdout&&e.stdout.pipe(process.stdout),e.stderr&&e.stderr.pipe(process.stderr),e.on("close",function(e){0!==e&&console.error("Task exited with error code "+String(e))}),e}},function(e,t,n){n.d(t,{UTILITY_SCOPE:function(){return m},UTILITY_SCOPE_NAMES:function(){return v},UTILITY_SCOPE_VALUES:function(){return y},determineUniqueScopeName:function(){return _},isolateScope:function(){return g}});var r=n(2),o=n(7),i=n(23),a=n(17),s=n(24),l=n(1),u=n(22),c=n(14),d=n(3),f=n(6),p=n(5),h=n(20),m={array:o,datetime:i,filesystem:a,functions:s,indicators:l,logger:u,number:c,object:d,require:f,string:p,utility:h},v=["array","datetime","filesystem","functions","indicators","logger","number","object","require","string","utility"],y=[o,i,a,s,l,u,c,d,f,p,h],g=function(e,t){for(var n in void 0===t&&(t=[]),e)t.includes(n.charAt(0))||["constructor","prototype","this"].includes(n)||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=void 0);return e},_=function(e,t,n,o){if(void 0===e&&(e="callback"),void 0===t&&(t=""),void 0===n&&(n=r.$.global),void 0===o&&(o=""),o.length&&!(o in n))return o;for(var i=e+t,a=0;a<r.MAXIMAL_NUMBER_OF_ITERATIONS.value&&(i=e+String(Math.round(Math.random()*Math.pow(10,10)))+t)in n;a++);return i}},function(e,t,n){n.r(t),n.d(t,{$:function(){return a.$},ABBREVIATIONS:function(){return i.ABBREVIATIONS},ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return g.ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return g.ALLOWED_VARIABLE_SYMBOLS},ANIMATION_END_EVENT_NAMES:function(){return i.ANIMATION_END_EVENT_NAMES},BoundTools:function(){return b.BoundTools},CLASS_TO_TYPE_MAPPING:function(){return i.CLASS_TO_TYPE_MAPPING},CLI_COLOR:function(){return o.CLI_COLOR},CLOSE_EVENT_NAMES:function(){return i.CLOSE_EVENT_NAMES},CONSOLE_METHODS:function(){return i.CONSOLE_METHODS},DATE_TIME_PATTERN_CACHE:function(){return u.DATE_TIME_PATTERN_CACHE},DEFAULT_ENCODING:function(){return i.DEFAULT_ENCODING},FIX_ENCODING_ERROR_MAPPING:function(){return g.FIX_ENCODING_ERROR_MAPPING},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return i.IGNORE_NULL_AND_UNDEFINED_SYMBOL},JAVASCRIPT_DEPENDENT_CONTENT_HANDLED:function(){return b.JAVASCRIPT_DEPENDENT_CONTENT_HANDLED},KEYBOARD_CODES:function(){return i.KEYBOARD_CODES},KEY_CODES:function(){return i.KEY_CODES},LEVELS:function(){return _.LEVELS},LEVELS_COLOR:function(){return _.LEVELS_COLOR},LOCALES:function(){return i.LOCALES},Lock:function(){return i.Lock},Logger:function(){return _.Logger},MAXIMAL_NUMBER_OF_ITERATIONS:function(){return a.MAXIMAL_NUMBER_OF_ITERATIONS},MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION:function(){return a.MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION},NOOP:function(){return a.NOOP},PLAIN_OBJECT_PROTOTYPES:function(){return i.PLAIN_OBJECT_PROTOTYPES},SPECIAL_REGEX_SEQUENCES:function(){return i.SPECIAL_REGEX_SEQUENCES},Semaphore:function(){return i.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return i.TRANSITION_END_EVENT_NAMES},Tools:function(){return b.Tools},UTILITY_SCOPE:function(){return y.UTILITY_SCOPE},UTILITY_SCOPE_NAMES:function(){return y.UTILITY_SCOPE_NAMES},UTILITY_SCOPE_VALUES:function(){return y.UTILITY_SCOPE_VALUES},VALUE_COPY_SYMBOL:function(){return i.VALUE_COPY_SYMBOL},addDynamicGetterAndSetter:function(){return h.addDynamicGetterAndSetter},addSeparatorToPath:function(){return g.addSeparatorToPath},aggregatePropertyIfEqual:function(){return r.aggregatePropertyIfEqual},augment$:function(){return a.augment$},cacheImage:function(){return l.cacheImage},camelCaseToDelimited:function(){return g.camelCaseToDelimited},capitalize:function(){return g.capitalize},ceil:function(){return p.ceil},checkReachability:function(){return l.checkReachability},checkUnreachability:function(){return l.checkUnreachability},clearRequireCache:function(){return v.clearRequireCache},compile:function(){return g.compile},compressStyleValue:function(){return g.compressStyleValue},convertCircularObjectToJSON:function(){return h.convertCircularObjectToJSON},convertMapToPlainObject:function(){return h.convertMapToPlainObject},convertPlainObjectToMap:function(){return h.convertPlainObjectToMap},convertSubstringInPlainObject:function(){return h.convertSubstringInPlainObject},convertToValidVariableName:function(){return g.convertToValidVariableName},copy:function(){return h.copy},copyDirectoryRecursive:function(){return c.copyDirectoryRecursive},copyDirectoryRecursiveSync:function(){return c.copyDirectoryRecursiveSync},copyFile:function(){return c.copyFile},copyFileSync:function(){return c.copyFileSync},currentImport:function(){return v.currentImport},currentRequire:function(){return v.currentRequire},dateTimeFormat:function(){return u.dateTimeFormat},debounce:function(){return E.debounce},decodeHTMLEntities:function(){return g.decodeHTMLEntities},deleteCookie:function(){return s.deleteCookie},deleteEmptyItems:function(){return r.deleteEmptyItems},delimitedToCamelCase:function(){return g.delimitedToCamelCase},determine$:function(){return a.determine$},determineGlobalContext:function(){return a.determineGlobalContext},determineType:function(){return h.determineType},determineUniqueScopeName:function(){return y.determineUniqueScopeName},encodeURIComponentExtended:function(){return g.encodeURIComponentExtended},equals:function(){return h.equals},escapeRegularExpressions:function(){return g.escapeRegularExpressions},evaluate:function(){return g.evaluate},evaluateDynamicData:function(){return h.evaluateDynamicData},extend:function(){return h.extend},extract:function(){return r.extract},extractIfMatches:function(){return r.extractIfMatches},extractIfPropertyExists:function(){return r.extractIfPropertyExists},extractIfPropertyMatches:function(){return r.extractIfPropertyMatches},findNormalizedMatchRange:function(){return g.findNormalizedMatchRange},fixKnownEncodingErrors:function(){return g.fixKnownEncodingErrors},floor:function(){return p.floor},format:function(){return g.format},getCookie:function(){return s.getCookie},getDomainName:function(){return g.getDomainName},getEditDistance:function(){return g.getEditDistance},getParameterNames:function(){return d.getParameterNames},getPortNumber:function(){return g.getPortNumber},getProcessCloseHandler:function(){return m.getProcessCloseHandler},getProtocolName:function(){return g.getProtocolName},getProxyHandler:function(){return h.getProxyHandler},getSubstructure:function(){return h.getSubstructure},getURLParameter:function(){return g.getURLParameter},getUTCTimestamp:function(){return p.getUTCTimestamp},globalContext:function(){return a.globalContext},handleChildProcess:function(){return m.handleChildProcess},hasPathPrefix:function(){return g.hasPathPrefix},identity:function(){return d.identity},interpretDateTime:function(){return u.interpretDateTime},intersect:function(){return r.intersect},invertArrayFilter:function(){return d.invertArrayFilter},isAnyMatching:function(){return f.isAnyMatching},isArrayLike:function(){return f.isArrayLike},isDirectory:function(){return c.isDirectory},isDirectorySync:function(){return c.isDirectorySync},isFile:function(){return c.isFile},isFileSync:function(){return c.isFileSync},isFunction:function(){return f.isFunction},isMap:function(){return f.isMap},isNotANumber:function(){return p.isNotANumber},isNumeric:function(){return f.isNumeric},isObject:function(){return f.isObject},isPlainObject:function(){return f.isPlainObject},isProxy:function(){return f.isProxy},isSet:function(){return f.isSet},isWindow:function(){return f.isWindow},isolateScope:function(){return y.isolateScope},isolatedRequire:function(){return v.isolatedRequire},lowerCase:function(){return g.lowerCase},makeArray:function(){return r.makeArray},makeRange:function(){return r.makeRange},mark:function(){return g.mark},mask:function(){return h.mask},maskForRegularExpression:function(){return g.maskForRegularExpression},merge:function(){return r.merge},mkdirSync:function(){return c.mkdirSync},modifyObject:function(){return h.modifyObject},normalizeDateTime:function(){return u.normalizeDateTime},normalizeDomNodeSelector:function(){return g.normalizeDomNodeSelector},normalizePhoneNumber:function(){return g.normalizePhoneNumber},normalizeURL:function(){return g.normalizeURL},normalizeZipCode:function(){return g.normalizeZipCode},optionalRequire:function(){return v.optionalRequire},paginate:function(){return r.paginate},parseEncodedObject:function(){return g.parseEncodedObject},permute:function(){return r.permute},permuteLength:function(){return r.permuteLength},readFileSync:function(){return c.readFileSync},readdirSync:function(){return c.readdirSync},removeArrayItem:function(){return r.removeArrayItem},removeKeyPrefixes:function(){return h.removeKeyPrefixes},removeKeysInEvaluation:function(){return h.removeKeysInEvaluation},represent:function(){return h.represent},representPhoneNumber:function(){return g.representPhoneNumber},representURL:function(){return g.representURL},round:function(){return p.round},sendToExternalURL:function(){return l.sendToExternalURL},sendToIFrame:function(){return l.sendToIFrame},serviceURLEquals:function(){return g.serviceURLEquals},setCookie:function(){return s.setCookie},setGlobalContext:function(){return a.setGlobalContext},sliceAllExceptNumberAndLastSeparator:function(){return g.sliceAllExceptNumberAndLastSeparator},sliceWeekday:function(){return u.sliceWeekday},sort:function(){return h.sort},sortTopological:function(){return r.sortTopological},statSync:function(){return c.statSync},sumUpProperty:function(){return r.sumUpProperty},timeout:function(){return E.timeout},unique:function(){return r.unique},unwrapProxy:function(){return h.unwrapProxy},walkDirectoryRecursively:function(){return c.walkDirectoryRecursively},walkDirectoryRecursivelySync:function(){return c.walkDirectoryRecursivelySync},writeFileSync:function(){return c.writeFileSync}});var r=n(7),o=n(21),i=n(0),a=n(2),s=n(25),l=n(26),u=n(23),c=n(17),d=n(24),f=n(1),p=n(14),h=n(3),m=n(27),v=n(6),y=n(28),g=n(5),_=n(22),b=n(11),E=n(20)}],__webpack_module_cache__={};function __nested_webpack_require_115380__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__nested_webpack_require_115380__),n.loaded=!0,n.exports}__nested_webpack_require_115380__.c=__webpack_module_cache__,__nested_webpack_require_115380__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_115380__.d(t,{a:t}),t},__nested_webpack_require_115380__.d=function(e,t){for(var n in t)__nested_webpack_require_115380__.o(t,n)&&!__nested_webpack_require_115380__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_115380__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_115380__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__nested_webpack_require_115380__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_115380__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_115380__(29);return __nested_webpack_exports__}()},module.exports=r(__webpack_require__(6),__webpack_require__(15),__webpack_require__(19),__webpack_require__(14),function(){try{return __webpack_require__(63)}catch(e){}}(),__webpack_require__(10),__webpack_require__(39))},function(e,t,n){var r=n(13);function o(){
30
30
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
31
- var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function l(e,o,i,a){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,o){var i,a,s,l=0,c=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,s=t,f.n=n,u}};function p(e,r){for(a=e,s=r,n=0;!d&&l&&!o&&n<c.length;n++){var o,i=c[n],p=f.p,h=i[2];e>3?(o=h===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<h&&(o=e<3||i[0]>r||r>h)&&(i[4]=e,i[5]=r,f.n=h,a=0))}if(o||e>1)return u;throw d=!0,r}return function(o,c,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),a=c,s=h;(n=a<2?t:s)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(l=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(d=f.n<0)?s:e.call(r,f))!==u)break}catch(e){i=t,a=1,s=e}finally{l=1}}return{value:n,done:d}}}(e,i,a),!0),l}var u={};function c(){}function d(){}function f(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=f.prototype=c.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=f,r(h,"constructor",f),r(f,"constructor",d),d.displayName="GeneratorFunction",r(f,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(31),o=n(8);e.exports=function(e,t,n){if(r())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&o(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12),o=n(18);e.exports=function(e,t,n,i,a){return new o(r().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16),o=n(13);e.exports=function e(t,n){function i(e,o,a,s){try{var l=t[e](o),u=l.value;return u instanceof r?n.resolve(u.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):n.resolve(u).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(32)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,n,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(10),n=__webpack_require__(29),r=__webpack_require__(43),function(){var t={10:function(t){t.exports=e},31:function(e){e.exports=n},32:function(e){e.exports=r}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};i.r(a),i.d(a,{DummyTypes:function(){return g},NullSymbol:function(){return p},PropertyTypes:function(){return y},RealTypes:function(){return m},UndefinedSymbol:function(){return h},ValidationError:function(){return v},any:function(){return b},array:function(){return E},arrayOf:function(){return C},bool:function(){return x},boolean:function(){return A},createDummy:function(){return _},element:function(){return I},elementType:function(){return O},exact:function(){return T},func:function(){return S},instanceOf:function(){return w},node:function(){return P},number:function(){return L},object:function(){return N},objectOf:function(){return R},oneOf:function(){return D},oneOfType:function(){return M},shape:function(){return k},string:function(){return j},symbol:function(){return F}});var s=i(10),l=i.n(s),u=i(31),c=i.n(u),d=i(32),f=i.n(d),p=Symbol("clientnodePropertyTypesNull"),h=Symbol("clientnodePropertyTypesUndefined"),m={any:f().any,array:f().array,arrayOf:f().arrayOf,bool:f().bool,boolean:f().bool,element:f().element,elementType:f().elementType,exact:f().exact,func:f().func,instanceOf:f().instanceOf,node:f().node,number:f().number,object:f().object,objectOf:f().objectOf,oneOf:f().oneOf,oneOfType:f().oneOfType,shape:f().shape,string:f().string,symbol:f().symbol},_=function(e){void 0===e&&(e=null);var t=function(){return e};return t.isRequired=function(){return null},t},v=function(e){function t(){var t;return(t=e.call(this,"return null")||this).message="DummyErrorMessage",t}return l()(t,e),t}(c()(Function)),g={any:_(),array:_(),arrayOf:_(new v),bool:_(),boolean:_(),element:_(),elementType:_(new v),exact:_(),func:_(),instanceOf:_(new v),node:_(),number:_(),object:_(),objectOf:_(new v),oneOf:_(new v),oneOfType:_(new v),shape:_(new v),string:_(),symbol:_()},y=["debug","dev","development"].includes("production".trim().toLowerCase())?m:g,b=y.any,E=y.array,C=y.arrayOf,x=y.bool,A=y.bool,I=y.element,O=y.elementType,T=y.exact,S=y.func,w=y.instanceOf,P=y.node,L=y.number,N=y.object,R=y.objectOf,D=y.oneOf,M=y.oneOfType,k=y.shape,j=y.string,F=y.symbol;return a.default=y,a}())},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i={ripple:!0,tooltip:{align:"top",showArrow:!1,activateOn:["hover","focus"],enterDelay:0,leaveDelay:0},typography:{},icon:{icon:"",basename:"material-icons",prefix:"",strategy:"auto",render:void 0}},a=o.createContext(i);t.ProviderContext=a,t.RMWCProvider=({children:e,...t})=>r.jsx(a.Provider,{value:{...i,...t},children:e}),t.typographyDefaults={defaultTag:"span"},t.useProviderContext=()=>o.useContext(a)},function(e,t,n){
31
+ var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function l(e,o,i,a){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,o){var i,a,s,l=0,c=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,s=t,f.n=n,u}};function p(e,r){for(a=e,s=r,n=0;!d&&l&&!o&&n<c.length;n++){var o,i=c[n],p=f.p,h=i[2];e>3?(o=h===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<h&&(o=e<3||i[0]>r||r>h)&&(i[4]=e,i[5]=r,f.n=h,a=0))}if(o||e>1)return u;throw d=!0,r}return function(o,c,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),a=c,s=h;(n=a<2?t:s)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(l=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(d=f.n<0)?s:e.call(r,f))!==u)break}catch(e){i=t,a=1,s=e}finally{l=1}}return{value:n,done:d}}}(e,i,a),!0),l}var u={};function c(){}function d(){}function f(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=f.prototype=c.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=f,r(h,"constructor",f),r(f,"constructor",d),d.displayName="GeneratorFunction",r(f,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(33),o=n(8);e.exports=function(e,t,n){if(r())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&o(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12),o=n(18);e.exports=function(e,t,n,i,a){return new o(r().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16),o=n(13);e.exports=function e(t,n){function i(e,o,a,s){try{var l=t[e](o),u=l.value;return u instanceof r?n.resolve(u.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):n.resolve(u).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(34)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,n,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(10),n=__webpack_require__(31),r=__webpack_require__(45),function(){var t={10:function(t){t.exports=e},31:function(e){e.exports=n},32:function(e){e.exports=r}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};i.r(a),i.d(a,{DummyTypes:function(){return g},NullSymbol:function(){return p},PropertyTypes:function(){return _},RealTypes:function(){return m},UndefinedSymbol:function(){return h},ValidationError:function(){return y},any:function(){return b},array:function(){return E},arrayOf:function(){return x},bool:function(){return C},boolean:function(){return S},createDummy:function(){return v},element:function(){return w},elementType:function(){return O},exact:function(){return T},func:function(){return A},instanceOf:function(){return I},node:function(){return k},number:function(){return N},object:function(){return P},objectOf:function(){return M},oneOf:function(){return L},oneOfType:function(){return D},shape:function(){return R},string:function(){return j},symbol:function(){return F}});var s=i(10),l=i.n(s),u=i(31),c=i.n(u),d=i(32),f=i.n(d),p=Symbol("clientnodePropertyTypesNull"),h=Symbol("clientnodePropertyTypesUndefined"),m={any:f().any,array:f().array,arrayOf:f().arrayOf,bool:f().bool,boolean:f().bool,element:f().element,elementType:f().elementType,exact:f().exact,func:f().func,instanceOf:f().instanceOf,node:f().node,number:f().number,object:f().object,objectOf:f().objectOf,oneOf:f().oneOf,oneOfType:f().oneOfType,shape:f().shape,string:f().string,symbol:f().symbol},v=function(e){void 0===e&&(e=null);var t=function(){return e};return t.isRequired=function(){return null},t},y=function(e){function t(){var t;return(t=e.call(this,"return null")||this).message="DummyErrorMessage",t}return l()(t,e),t}(c()(Function)),g={any:v(),array:v(),arrayOf:v(new y),bool:v(),boolean:v(),element:v(),elementType:v(new y),exact:v(),func:v(),instanceOf:v(new y),node:v(),number:v(),object:v(),objectOf:v(new y),oneOf:v(new y),oneOfType:v(new y),shape:v(new y),string:v(),symbol:v()},_=["debug","dev","development"].includes("production".trim().toLowerCase())?m:g,b=_.any,E=_.array,x=_.arrayOf,C=_.bool,S=_.bool,w=_.element,O=_.elementType,T=_.exact,A=_.func,I=_.instanceOf,k=_.node,N=_.number,P=_.object,M=_.objectOf,L=_.oneOf,D=_.oneOfType,R=_.shape,j=_.string,F=_.symbol;return a.default=_,a}())},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i={ripple:!0,tooltip:{align:"top",showArrow:!1,activateOn:["hover","focus"],enterDelay:0,leaveDelay:0},typography:{},icon:{icon:"",basename:"material-icons",prefix:"",strategy:"auto",render:void 0}},a=o.createContext(i);t.ProviderContext=a,t.RMWCProvider=({children:e,...t})=>r.jsx(a.Provider,{value:{...i,...t},children:e}),t.typographyDefaults={defaultTag:"span"},t.useProviderContext=()=>o.useContext(a)},function(e,t,n){
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2018 Google Inc.
@@ -51,7 +51,7 @@ var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toS
51
51
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52
52
  * THE SOFTWARE.
53
53
  */
54
- function r(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(o(n,t))return n;n=n.parentElement}return null}function o(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}function i(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}n.d(t,{cK:function(){return o},et:function(){return i},kp:function(){return r}})},function(e,t,n){var r=function(e,t){return function(n){"function"==typeof e?e(n):e&&"current"in e&&(e.current=n),"function"==typeof t?t(n):t&&"current"in t&&(t.current=n)}};Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const o=n(1),i=n(0),a=n(3),s=n(21),l=n(98),u=i.createContext({});function c(e){const{children:t,className:n,primary:c,accent:d,unbounded:f,surface:p,foundationRef:h,...m}=e,{rootEl:_,surfaceEl:v}=(e=>{const t=i.useRef(!1),{foundation:n,...r}=a.useFoundation({props:e,elements:{rootEl:!0,surfaceEl:!0},foundation:({rootEl:e,surfaceEl:t,getProps:n})=>new l.MDCRippleFoundation({addClass:e=>{t.addClass(e)},browserSupportsCssVars:()=>l.util.supportsCssVariables(window),computeBoundingRect:()=>e.ref?e.ref.getBoundingClientRect():a.emptyClientRect,containsEventTarget:t=>!!e.ref&&e.ref.contains(t),deregisterDocumentInteractionHandler:(e,t)=>document.documentElement.removeEventListener(e,t),deregisterInteractionHandler:(e,t)=>{},deregisterResizeHandler:e=>window.removeEventListener("resize",e),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>!!e.ref&&a.matches(e.ref,":active"),isSurfaceDisabled:()=>!!n().disabled,removeClass:e=>{t.removeClass(e)},isUnbounded:()=>!!n().unbounded,registerDocumentInteractionHandler:(e,t)=>document.documentElement.addEventListener(e,t,{passive:!0}),registerInteractionHandler:(e,t)=>{},registerResizeHandler:e=>window.addEventListener("resize",e),updateCssVariable:(e,n)=>t.setStyle(e,n)})}),{rootEl:o}=r,s=i.useCallback(e=>{e.persist(),n.activate(e)},[n]),u=i.useCallback(e=>{e.persist(),n.deactivate()},[n]),{onFocus:c}=e,d=i.useCallback(e=>{null==c||c(e),n.handleFocus()},[n,c]),{onBlur:f}=e,p=i.useCallback(e=>{null==f||f(e),n.handleBlur()},[n,f]),{onMouseDown:h}=e,m=i.useCallback(e=>{null==h||h(e),t.current||s(e),t.current=!1},[h,s]),{onMouseUp:_}=e,v=i.useCallback(e=>{null==_||_(e),u(e)},[_,u]),{onTouchStart:g}=e,y=i.useCallback(e=>{t.current=!0,null==g||g(e),s(e)},[g,s]),{onTouchEnd:b}=e,E=i.useCallback(e=>{null==b||b(e),u(e)},[b,u]),{onKeyDown:C}=e,x=i.useCallback(e=>{null==C||C(e),s(e)},[C,s]),{onKeyUp:A}=e,I=i.useCallback(e=>{null==A||A(e),u(e)},[A,u]);return o.setProp("onFocus",d,!0),o.setProp("onBlur",p,!0),o.setProp("onMouseDown",m,!0),o.setProp("onMouseUp",v,!0),o.setProp("onTouchStart",y,!0),o.setProp("onTouchEnd",E,!0),o.setProp("onKeyDown",x,!0),o.setProp("onKeyUp",I,!0),i.useEffect(()=>{n.setUnbounded(!!e.unbounded)},[e.unbounded,n]),i.useEffect(()=>{e.disabled&&n.handleBlur()},[e.disabled,n]),{...r}})(e),g=s.useProviderContext(),y=i.Children.only(t);if(!g.ripple)return o.jsx(o.Fragment,{children:t});if(!i.isValidElement(y))return null;const b=f?{"data-mdc-ripple-is-unbounded":!0}:{},E=!p||!f?v.props({style:y.props.style}):{};let C=a.classNames(n!==y.props.className&&n,E.className,y.props.className,{"mdc-ripple-surface":"boolean"==typeof p?p:void 0===p,"mdc-ripple-surface--primary":c,"rmwc-ripple-surface--primary":c,"mdc-ripple-surface--accent":d,"rmwc-ripple-surface--accent":d});m.disabled&&(C=C.replace("mdc-ripple-upgraded--background-focused",""));const x=i.cloneElement(y,{ref:r(y.ref,_.reactRef),...y.props,...b,..._.props({...m,style:y.props.style,...E,className:C})});return o.jsx(u.Provider,{value:v.props({style:y.props.style}),children:x})}t.Ripple=c,t.RippleSurface=({className:e,...t})=>o.jsx(u.Consumer,{children:n=>o.jsx("div",{...t,...n,className:`${e} ${n.className||""}`})}),t.withRipple=({unbounded:e,accent:t,surface:n}={})=>r=>{const a=i.forwardRef(({ripple:i,...a},l)=>{const u=s.useProviderContext(),d="object"!=typeof(i=i??u.ripple)?{}:i;return i?o.jsx(c,{...a,accent:d.accent||t,unbounded:d.unbounded||e,surface:d.surface||n,children:o.jsx(r,{...a,ref:l})}):o.jsx(r,{...a,ref:l})});return a.displayName=`withRipple(${r.displayName||r.constructor.name||"Unknown"})`,a}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(21),a=n(3),s=(e,t,n)=>"auto"===(t=t||n||"auto")?(e=>"string"==typeof e&&e.includes("/")?"url":o.isValidElement(e)?"component":"ligature")(e):t,l={ligature:({content:e,...t})=>r.jsx(c,{...t,children:e}),className:({content:e,...t})=>r.jsx(c,{...t}),url:({content:e,...t})=>r.jsx(c,{...t,style:{...t.style,backgroundImage:`url(${e})`}}),component:({content:e,...t})=>{if("svg"===e.type){const{children:n,...o}=e.props;return r.jsx(c,{...o,...t,tag:"svg",children:n})}return r.jsx(c,{...t,children:e})},auto:void 0},u=e=>o.isValidElement(e)||e&&"object"!=typeof e?{icon:e}:e,c=o.forwardRef(function(e,t){return r.jsx(a.Tag,{tag:"i",...e,ref:t})}),d=a.createComponent(function({icon:e,...t},n){const r=i.useProviderContext(),{icon:c,strategy:d,prefix:f,basename:p,render:h,size:m,..._}={...u(e)},{basename:v=null,prefix:g=null,strategy:y=null,render:b=null}=r.icon||{},E=c,C=s(E,d||null,y||null),x=void 0===p?v:p,A="className"===C&&"string"==typeof c?`${String(f||g)}${c}`:null;let I=!!C&&l[C]||null;if("custom"===C&&(I=h||b),!I)return console.error(`Icon: rendering not implemented for ${String(C)}.`),null;const O=I({...t,..._,ref:n,content:E,className:a.classNames("rmwc-icon",`rmwc-icon--${C}`,x,t.className,_.className,A,{[`rmwc-icon--size-${m||""}`]:!!m})});if(!o.isValidElement(O))return null;const T=a.getDisplayName(O.props.children);return T.includes("Avatar")||T.includes("Icon")?o.cloneElement(O.props.children,{...O.props.children.props,...O.props,ref:n,children:O.props.children.props.children,className:a.classNames(O.props.className,O.props.children.props.className)}):O});d.displayName="Icon",t.Icon=d,t.getIconStrategy=s},function(e,t,n){n.d(t,{E:function(){return c}});var r=n(2),o=n(4),i=n(63),a=n(52),s=["touchstart","pointerdown","mousedown","keydown"],l=["touchend","pointerup","mouseup","contextmenu"],u=[],c=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(e){o.activateImpl(e)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=t.cssClasses,o=r.ROOT,i=r.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(i),e.layoutInternal())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(r),e.adapter.removeClass(o),e.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){e.layoutInternal(),e.layoutFrame=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var o=(0,r.Ju)(s),i=o.next();!i.done;i=o.next()){var a=i.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=(0,r.Ju)(l),i=o.next();!i.done;i=o.next()){var a=i.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=(0,r.Ju)(s),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=(0,r.Ju)(l),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==e&&r.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&u.length>0&&u.some(function(e){return t.adapter.containsEventTarget(e)})?this.resetActivationState():(void 0!==e&&(u.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){u=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation()),n.wasElementMadeActive||(t.activationState=t.defaultActivationState())}))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,n=t.strings,r=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,i=t.cssClasses,a=i.FG_DEACTIVATION,s=i.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,p=d.endPoint;u=f.x+"px, "+f.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(r,u),this.adapter.updateCssVariable(o,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){e.activationTimerCallback()},l)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?(0,a.getNormalizedEventCoords)(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){e.adapter.removeClass(n)},i.nL.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return e.previousActivationEvent=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=(0,r.Cl)({},t);t.isProgrammatic?(requestAnimationFrame(function(){e.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()}))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var r=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,n=e.VAR_FG_SIZE,r=e.VAR_LEFT,o=e.VAR_TOP,i=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(i,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},t}(o.I)},function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,{N:function(){return u}});var r=n(2),o=n(5),i=n(53),a=n(22),s=n(25),l=n(52),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return(0,r.C6)(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var r=new t(e);return void 0!==n.isUnbounded&&(r.unbounded=n.isUnbounded),r},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return l.supportsCssVariables(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,(0,i.E)())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,(0,i.E)())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return(0,a.cK)(e.root,":active")},isSurfaceDisabled:function(){return Boolean(e.disabled)},isUnbounded:function(){return Boolean(e.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,(0,i.E)())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,(0,i.E)())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(e){this.isUnbounded=Boolean(e),this.setUnbounded()},enumerable:!1,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new s.E(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.isUnbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},t}(o.O)},function(e,t){
54
+ function r(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(o(n,t))return n;n=n.parentElement}return null}function o(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}function i(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}n.d(t,{cK:function(){return o},et:function(){return i},kp:function(){return r}})},function(e,t,n){var r=function(e,t){return function(n){"function"==typeof e?e(n):e&&"current"in e&&(e.current=n),"function"==typeof t?t(n):t&&"current"in t&&(t.current=n)}};Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const o=n(1),i=n(0),a=n(3),s=n(21),l=n(110),u=i.createContext({});function c(e){const{children:t,className:n,primary:c,accent:d,unbounded:f,surface:p,foundationRef:h,...m}=e,{rootEl:v,surfaceEl:y}=(e=>{const t=i.useRef(!1),{foundation:n,...r}=a.useFoundation({props:e,elements:{rootEl:!0,surfaceEl:!0},foundation:({rootEl:e,surfaceEl:t,getProps:n})=>new l.MDCRippleFoundation({addClass:e=>{t.addClass(e)},browserSupportsCssVars:()=>l.util.supportsCssVariables(window),computeBoundingRect:()=>e.ref?e.ref.getBoundingClientRect():a.emptyClientRect,containsEventTarget:t=>!!e.ref&&e.ref.contains(t),deregisterDocumentInteractionHandler:(e,t)=>document.documentElement.removeEventListener(e,t),deregisterInteractionHandler:(e,t)=>{},deregisterResizeHandler:e=>window.removeEventListener("resize",e),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>!!e.ref&&a.matches(e.ref,":active"),isSurfaceDisabled:()=>!!n().disabled,removeClass:e=>{t.removeClass(e)},isUnbounded:()=>!!n().unbounded,registerDocumentInteractionHandler:(e,t)=>document.documentElement.addEventListener(e,t,{passive:!0}),registerInteractionHandler:(e,t)=>{},registerResizeHandler:e=>window.addEventListener("resize",e),updateCssVariable:(e,n)=>t.setStyle(e,n)})}),{rootEl:o}=r,s=i.useCallback(e=>{e.persist(),n.activate(e)},[n]),u=i.useCallback(e=>{e.persist(),n.deactivate()},[n]),{onFocus:c}=e,d=i.useCallback(e=>{null==c||c(e),n.handleFocus()},[n,c]),{onBlur:f}=e,p=i.useCallback(e=>{null==f||f(e),n.handleBlur()},[n,f]),{onMouseDown:h}=e,m=i.useCallback(e=>{null==h||h(e),t.current||s(e),t.current=!1},[h,s]),{onMouseUp:v}=e,y=i.useCallback(e=>{null==v||v(e),u(e)},[v,u]),{onTouchStart:g}=e,_=i.useCallback(e=>{t.current=!0,null==g||g(e),s(e)},[g,s]),{onTouchEnd:b}=e,E=i.useCallback(e=>{null==b||b(e),u(e)},[b,u]),{onKeyDown:x}=e,C=i.useCallback(e=>{null==x||x(e),s(e)},[x,s]),{onKeyUp:S}=e,w=i.useCallback(e=>{null==S||S(e),u(e)},[S,u]);return o.setProp("onFocus",d,!0),o.setProp("onBlur",p,!0),o.setProp("onMouseDown",m,!0),o.setProp("onMouseUp",y,!0),o.setProp("onTouchStart",_,!0),o.setProp("onTouchEnd",E,!0),o.setProp("onKeyDown",C,!0),o.setProp("onKeyUp",w,!0),i.useEffect(()=>{n.setUnbounded(!!e.unbounded)},[e.unbounded,n]),i.useEffect(()=>{e.disabled&&n.handleBlur()},[e.disabled,n]),{...r}})(e),g=s.useProviderContext(),_=i.Children.only(t);if(!g.ripple)return o.jsx(o.Fragment,{children:t});if(!i.isValidElement(_))return null;const b=f?{"data-mdc-ripple-is-unbounded":!0}:{},E=!p||!f?y.props({style:_.props.style}):{};let x=a.classNames(n!==_.props.className&&n,E.className,_.props.className,{"mdc-ripple-surface":"boolean"==typeof p?p:void 0===p,"mdc-ripple-surface--primary":c,"rmwc-ripple-surface--primary":c,"mdc-ripple-surface--accent":d,"rmwc-ripple-surface--accent":d});m.disabled&&(x=x.replace("mdc-ripple-upgraded--background-focused",""));const C=i.cloneElement(_,{ref:r(_.ref,v.reactRef),..._.props,...b,...v.props({...m,style:_.props.style,...E,className:x})});return o.jsx(u.Provider,{value:y.props({style:_.props.style}),children:C})}t.Ripple=c,t.RippleSurface=({className:e,...t})=>o.jsx(u.Consumer,{children:n=>o.jsx("div",{...t,...n,className:`${e} ${n.className||""}`})}),t.withRipple=({unbounded:e,accent:t,surface:n}={})=>r=>{const a=i.forwardRef(({ripple:i,...a},l)=>{const u=s.useProviderContext(),d="object"!=typeof(i=i??u.ripple)?{}:i;return i?o.jsx(c,{...a,accent:d.accent||t,unbounded:d.unbounded||e,surface:d.surface||n,children:o.jsx(r,{...a,ref:l})}):o.jsx(r,{...a,ref:l})});return a.displayName=`withRipple(${r.displayName||r.constructor.name||"Unknown"})`,a}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(21),a=n(3),s=(e,t,n)=>"auto"===(t=t||n||"auto")?(e=>"string"==typeof e&&e.includes("/")?"url":o.isValidElement(e)?"component":"ligature")(e):t,l={ligature:({content:e,...t})=>r.jsx(c,{...t,children:e}),className:({content:e,...t})=>r.jsx(c,{...t}),url:({content:e,...t})=>r.jsx(c,{...t,style:{...t.style,backgroundImage:`url(${e})`}}),component:({content:e,...t})=>{if("svg"===e.type){const{children:n,...o}=e.props;return r.jsx(c,{...o,...t,tag:"svg",children:n})}return r.jsx(c,{...t,children:e})},auto:void 0},u=e=>o.isValidElement(e)||e&&"object"!=typeof e?{icon:e}:e,c=o.forwardRef(function(e,t){return r.jsx(a.Tag,{tag:"i",...e,ref:t})}),d=a.createComponent(function({icon:e,...t},n){const r=i.useProviderContext(),{icon:c,strategy:d,prefix:f,basename:p,render:h,size:m,...v}={...u(e)},{basename:y=null,prefix:g=null,strategy:_=null,render:b=null}=r.icon||{},E=c,x=s(E,d||null,_||null),C=void 0===p?y:p,S="className"===x&&"string"==typeof c?`${String(f||g)}${c}`:null;let w=!!x&&l[x]||null;if("custom"===x&&(w=h||b),!w)return console.error(`Icon: rendering not implemented for ${String(x)}.`),null;const O=w({...t,...v,ref:n,content:E,className:a.classNames("rmwc-icon",`rmwc-icon--${x}`,C,t.className,v.className,S,{[`rmwc-icon--size-${m||""}`]:!!m})});if(!o.isValidElement(O))return null;const T=a.getDisplayName(O.props.children);return T.includes("Avatar")||T.includes("Icon")?o.cloneElement(O.props.children,{...O.props.children.props,...O.props,ref:n,children:O.props.children.props.children,className:a.classNames(O.props.className,O.props.children.props.className)}):O});d.displayName="Icon",t.Icon=d,t.getIconStrategy=s},function(e,t,n){n.d(t,{E:function(){return c}});var r=n(2),o=n(4),i=n(66),a=n(54),s=["touchstart","pointerdown","mousedown","keydown"],l=["touchend","pointerup","mouseup","contextmenu"],u=[],c=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(e){o.activateImpl(e)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=t.cssClasses,o=r.ROOT,i=r.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(i),e.layoutInternal())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(r),e.adapter.removeClass(o),e.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){e.layoutInternal(),e.layoutFrame=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var o=(0,r.Ju)(s),i=o.next();!i.done;i=o.next()){var a=i.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=(0,r.Ju)(l),i=o.next();!i.done;i=o.next()){var a=i.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=(0,r.Ju)(s),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=(0,r.Ju)(l),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==e&&r.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&u.length>0&&u.some(function(e){return t.adapter.containsEventTarget(e)})?this.resetActivationState():(void 0!==e&&(u.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){u=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation()),n.wasElementMadeActive||(t.activationState=t.defaultActivationState())}))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,n=t.strings,r=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,i=t.cssClasses,a=i.FG_DEACTIVATION,s=i.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,p=d.endPoint;u=f.x+"px, "+f.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(r,u),this.adapter.updateCssVariable(o,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){e.activationTimerCallback()},l)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?(0,a.getNormalizedEventCoords)(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){e.adapter.removeClass(n)},i.nL.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return e.previousActivationEvent=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=(0,r.Cl)({},t);t.isProgrammatic?(requestAnimationFrame(function(){e.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()}))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var r=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,n=e.VAR_FG_SIZE,r=e.VAR_LEFT,o=e.VAR_TOP,i=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(i,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},t}(o.I)},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(0),r=__webpack_require__(1),function(){var t=[,function(t){t.exports=e},function(e){e.exports=r}],n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};o.r(i),o.d(i,{Dummy:function(){return u},reference:function(){return l}});var a=o(1),s=o(2),l={current:null},u=(0,a.forwardRef)(function(e,t){var n;return l.current=t,(0,s.jsx)("div",{children:null!==(n=e.children)&&void 0!==n?n:null})});return u.isDummy=!0,i.default=u,i}())},function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(){return r="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=s(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}},r.apply(this,arguments)}function o(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&&i(e,t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(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=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(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,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e){return l="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},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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,f(r.key),r)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var p=n(56),h=n(49),m=Object.create(null),v=function(){function e(t,n,r){u(this,e),this.$anchor=t,this.$head=n,this.ranges=r||[new y(t.min(n),t.max(n))]}return d(e,[{key:"anchor",get:function(){return this.$anchor.pos}},{key:"head",get:function(){return this.$head.pos}},{key:"from",get:function(){return this.$from.pos}},{key:"to",get:function(){return this.$to.pos}},{key:"$from",get:function(){return this.ranges[0].$from}},{key:"$to",get:function(){return this.ranges[0].$to}},{key:"empty",get:function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}},{key:"content",value:function(){return this.$from.doc.slice(this.from,this.to,!0)}},{key:"replace",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty,n=t.content.lastChild,r=null,o=0;o<t.openEnd;o++)r=n,n=n.lastChild;for(var i=e.steps.length,a=this.ranges,s=0;s<a.length;s++){var l=a[s],u=l.$from,c=l.$to,d=e.mapping.slice(i);e.replaceRange(d.map(u.pos),d.map(c.pos),s?p.Slice.empty:t),0==s&&T(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}},{key:"replaceWith",value:function(e,t){for(var n=e.steps.length,r=this.ranges,o=0;o<r.length;o++){var i=r[o],a=i.$from,s=i.$to,l=e.mapping.slice(n),u=l.map(a.pos),c=l.map(s.pos);o?e.deleteRange(u,c):(e.replaceRangeWith(u,c,t),T(e,n,t.isInline?-1:1))}}},{key:"getBookmark",value:function(){return b.between(this.$anchor,this.$head).getBookmark()}}],[{key:"findFrom",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new b(e):O(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var o=e.depth-1;o>=0;o--){var i=t<0?O(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):O(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new S(e.node(0))}},{key:"atStart",value:function(e){return O(e,e,0,0,1)||new S(e)}},{key:"atEnd",value:function(e){return O(e,e,e.content.size,e.childCount,-1)||new S(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=m[t.type];if(!n)throw new RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in m)throw new RangeError("Duplicate use of selection JSON ID "+e);return m[e]=t,t.prototype.jsonID=e,t}}]),e}();v.prototype.visible=!0;var y=d(function e(t,n){u(this,e),this.$from=t,this.$to=n}),g=!1;function _(e){g||e.parent.inlineContent||(g=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var b=function(e){o(n,e);var t=a(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return u(this,n),_(e),_(r),t.call(this,e,r)}return d(n,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return v.near(r);var o=e.resolve(t.map(this.anchor));return new n(o.parent.inlineContent?o:r,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty;if(r(s(n.prototype),"replace",this).call(this,e,t),t==p.Slice.empty){var o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new E(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}},{key:"between",value:function(e,t,r){var o=e.pos-t.pos;if(r&&!o||(r=o>=0?1:-1),!t.parent.inlineContent){var i=v.findFrom(t,r,!0)||v.findFrom(t,-r,!0);if(!i)return v.near(t,r);t=i.$head}return e.parent.inlineContent||(0==o||(e=(v.findFrom(e,-r,!0)||v.findFrom(e,r,!0)).$anchor).pos<t.pos!=o<0)&&(e=t),new n(e,t)}}]),n}(v);v.jsonID("text",b);var E=function(){function e(t,n){u(this,e),this.anchor=t,this.head=n}return d(e,[{key:"map",value:function(t){return new e(t.map(this.anchor),t.map(this.head))}},{key:"resolve",value:function(e){return b.between(e.resolve(this.anchor),e.resolve(this.head))}}]),e}(),x=function(e){o(n,e);var t=a(n);function n(e){var r;u(this,n);var o=e.nodeAfter,i=e.node(0).resolve(e.pos+o.nodeSize);return(r=t.call(this,e,i)).node=o,r}return d(n,[{key:"map",value:function(e,t){var r=t.mapResult(this.anchor),o=r.deleted,i=r.pos,a=e.resolve(i);return o?v.near(a):new n(a)}},{key:"content",value:function(){return new p.Slice(p.Fragment.from(this.node),0,0)}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor}},{key:"toJSON",value:function(){return{type:"node",anchor:this.anchor}}},{key:"getBookmark",value:function(){return new C(this.anchor)}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new n(e.resolve(t.anchor))}},{key:"create",value:function(e,t){return new n(e.resolve(t))}},{key:"isSelectable",value:function(e){return!e.isText&&!1!==e.type.spec.selectable}}]),n}(v);x.prototype.visible=!1,v.jsonID("node",x);var C=function(){function e(t){u(this,e),this.anchor=t}return d(e,[{key:"map",value:function(t){var n=t.mapResult(this.anchor),r=n.deleted,o=n.pos;return r?new E(o,o):new e(o)}},{key:"resolve",value:function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&x.isSelectable(n)?new x(t):v.near(t)}}]),e}(),S=function(e){o(n,e);var t=a(n);function n(e){return u(this,n),t.call(this,e.resolve(0),e.resolve(e.content.size))}return d(n,[{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty;if(t==p.Slice.empty){e.delete(0,e.doc.content.size);var o=v.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else r(s(n.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new n(e)}},{key:"eq",value:function(e){return e instanceof n}},{key:"getBookmark",value:function(){return w}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(v);v.jsonID("all",S);var w={map:function(){return this},resolve:function(e){return new S(e)}};function O(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return b.create(e,n);for(var a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){var s=t.child(a);if(s.isAtom){if(!i&&x.isSelectable(s))return x.create(e,n-(o<0?s.nodeSize:0))}else{var l=O(e,s,n+o,o<0?s.childCount:0,o,i);if(l)return l}n+=s.nodeSize*o}return null}function T(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o,i=e.steps[r];if(i instanceof h.ReplaceStep||i instanceof h.ReplaceAroundStep)e.mapping.maps[r].forEach(function(e,t,n,r){null==o&&(o=r)}),e.setSelection(v.near(e.doc.resolve(o),n))}}var A=function(e){o(n,e);var t=a(n);function n(e){var r;return u(this,n),(r=t.call(this,e.doc)).curSelectionFor=0,r.updated=0,r.meta=Object.create(null),r.time=Date.now(),r.curSelection=e.selection,r.storedMarks=e.storedMarks,r}return d(n,[{key:"selection",get:function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}},{key:"setSelection",value:function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}},{key:"selectionSet",get:function(){return(1&this.updated)>0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return p.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){r(s(n.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||p.Mark.none))),n.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,n){var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(null==n&&(n=t),!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(v.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),n}(h.Transform);function I(e,t){return t&&e?e.bind(t):e}var k=d(function e(t,n,r){u(this,e),this.name=t,this.init=I(n.init,r),this.apply=I(n.apply,r)}),N=[new k("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new k("selection",{init:function(e,t){return e.selection||v.atStart(t.doc)},apply:function(e){return e.selection}}),new k("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new k("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],P=d(function e(t,n){var r=this;u(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=N.slice(),n&&n.forEach(function(e){if(r.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");r.plugins.push(e),r.pluginsByKey[e.key]=e,e.spec.state&&r.fields.push(new k(e.key,e.spec.state,e))})}),M=function(){function e(t){u(this,e),this.config=t}return d(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}},{key:"applyTransaction",value:function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var o=!1,i=0;i<this.config.plugins.length;i++){var a=this.config.plugins[i];if(a.spec.appendTransaction){var s=r?r[i].n:0,l=r?r[i].state:this,u=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(u&&n.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(var c=0;c<this.config.plugins.length;c++)r.push(c<i?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}},{key:"applyInner",value:function(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var n=new e(this.config),r=this.config.fields,o=0;o<r.length;o++){var i=r[o];n[i.name]=i.apply(t,this[i.name],this,n)}return n}},{key:"tr",get:function(){return new A(this)}},{key:"reconfigure",value:function(t){for(var n=new P(this.schema,t.plugins),r=n.fields,o=new e(n),i=0;i<r.length;i++){var a=r[i].name;o[a]=this.hasOwnProperty(a)?this[a]:r[i].init(t,o)}return o}},{key:"toJSON",value:function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(function(e){return e.toJSON()})),e&&"object"==l(e))for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}}],[{key:"create",value:function(t){for(var n=new P(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n),o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(t,r);return r}},{key:"fromJSON",value:function(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");var o=new P(t.schema,t.plugins),i=new e(o);return o.fields.forEach(function(e){if("doc"==e.name)i.doc=p.Node.fromJSON(t.schema,n.doc);else if("selection"==e.name)i.selection=v.fromJSON(i.doc,n.selection);else if("storedMarks"==e.name)n.storedMarks&&(i.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(var o in r){var a=r[o],s=a.spec.state;if(a.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,o))return void(i[e.name]=s.fromJSON.call(a,t,n[o],i))}i[e.name]=e.init(t,i)}}),i}}]),e}();function L(e,t,n){for(var r in e){var o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=L(o,t,{})),n[r]=o}return n}var D=function(){function e(t){u(this,e),this.spec=t,this.props={},t.props&&L(t.props,this,this.props),this.key=t.key?t.key.key:j("plugin")}return d(e,[{key:"getState",value:function(e){return e[this.key]}}]),e}(),R=Object.create(null);function j(e){return e in R?e+"$"+ ++R[e]:(R[e]=0,e+"$")}var F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"key";u(this,e),this.key=j(t)}return d(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}();t.AllSelection=S,t.EditorState=M,t.NodeSelection=x,t.Plugin=D,t.PluginKey=F,t.Selection=v,t.SelectionRange=y,t.TextSelection=b,t.Transaction=A},function(e,t,n){n.d(t,{N:function(){return u}});var r=n(2),o=n(5),i=n(55),a=n(22),s=n(25),l=n(54),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return(0,r.C6)(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var r=new t(e);return void 0!==n.isUnbounded&&(r.unbounded=n.isUnbounded),r},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return l.supportsCssVariables(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,(0,i.E)())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,(0,i.E)())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return(0,a.cK)(e.root,":active")},isSurfaceDisabled:function(){return Boolean(e.disabled)},isUnbounded:function(){return Boolean(e.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,(0,i.E)())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,(0,i.E)())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(e){this.isUnbounded=Boolean(e),this.setUnbounded()},enumerable:!1,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new s.E(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.isUnbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},t}(o.O)},function(e,t){
55
55
  /**
56
56
  * @license React
57
57
  * scheduler.production.min.js
@@ -61,7 +61,7 @@ function r(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(o(n,t))retur
61
61
  * This source code is licensed under the MIT license found in the
62
62
  * LICENSE file in the root directory of this source tree.
63
63
  */
64
- function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,_=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(_=!1,b(e),!m)if(null!==r(u))m=!0,R(C);else{var t=r(c);null!==t&&D(E,t.startTime-e)}}function C(e,n){m=!1,_&&(_=!1,g(O),O=-1),h=!0;var i=p;try{for(b(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!w());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),b(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&D(E,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,A=!1,I=null,O=-1,T=5,S=-1;function w(){return!(t.unstable_now()-S<T)}function P(){if(null!==I){var e=t.unstable_now();S=e;var n=!0;try{n=I(!0,e)}finally{n?x():(A=!1,I=null)}}else A=!1}if("function"==typeof y)x=function(){y(P)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,N=L.port2;L.port1.onmessage=P,x=function(){N.postMessage(null)}}else x=function(){v(P,0)};function R(e){I=e,A||(A=!0,x())}function D(e,n){O=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(_?(g(O),O=-1):_=!0,D(E,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,R(C))),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},function(e,t,n){var r=n(30),o=n(8),i=n(33),a=n(14);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16),o=n(12),i=n(34),a=n(17),s=n(18),l=n(35),u=n(36);function c(){var t=o(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,u(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,o){return t.w(h(e),n,r,o&&o.reverse())},isGeneratorFunction:f,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,o){return(f(t)?a:i)(h(e),t,n,r,o)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);e.exports=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(38);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default,o=n(39);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(e,t,i),null):i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=n(44)()},function(e,t,n){var r=n(45);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},function(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e){
64
+ function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(v=!1,b(e),!m)if(null!==r(u))m=!0,M(x);else{var t=r(c);null!==t&&L(E,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,g(O),O=-1),h=!0;var i=p;try{for(b(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!I());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),b(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&L(E,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,w=null,O=-1,T=5,A=-1;function I(){return!(t.unstable_now()-A<T)}function k(){if(null!==w){var e=t.unstable_now();A=e;var n=!0;try{n=w(!0,e)}finally{n?C():(S=!1,w=null)}}else S=!1}if("function"==typeof _)C=function(){_(k)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=k,C=function(){P.postMessage(null)}}else C=function(){y(k,0)};function M(e){w=e,S||(S=!0,C())}function L(e,n){O=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(g(O),O=-1):v=!0,L(E,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,M(x))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},function(e,t,n){var r=n(32),o=n(8),i=n(35),a=n(14);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16),o=n(12),i=n(36),a=n(17),s=n(18),l=n(37),u=n(38);function c(){var t=o(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,u(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,o){return t.w(h(e),n,r,o&&o.reverse())},isGeneratorFunction:f,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,o){return(f(t)?a:i)(h(e),t,n,r,o)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);e.exports=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(40);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default,o=n(41);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(e,t,i),null):i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e){e.exports=function(e,t){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=n(46)()},function(e,t,n){var r=n(47);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},function(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e){
65
65
  /**
66
66
  * @license
67
67
  * Copyright Google LLC All Rights Reserved.
@@ -177,7 +177,7 @@ var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(
177
177
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
178
178
  * THE SOFTWARE.
179
179
  */
180
- Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigationEvent=t.normalizeKey=t.KEY=void 0,t.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var r=new Set;r.add(t.KEY.BACKSPACE),r.add(t.KEY.ENTER),r.add(t.KEY.SPACEBAR),r.add(t.KEY.PAGE_UP),r.add(t.KEY.PAGE_DOWN),r.add(t.KEY.END),r.add(t.KEY.HOME),r.add(t.KEY.ARROW_LEFT),r.add(t.KEY.ARROW_UP),r.add(t.KEY.ARROW_RIGHT),r.add(t.KEY.ARROW_DOWN),r.add(t.KEY.DELETE),r.add(t.KEY.ESCAPE),r.add(t.KEY.TAB);var o=8,i=13,a=32,s=33,l=34,u=35,c=36,d=37,f=38,p=39,h=40,m=46,_=27,v=9,g=new Map;g.set(o,t.KEY.BACKSPACE),g.set(i,t.KEY.ENTER),g.set(a,t.KEY.SPACEBAR),g.set(s,t.KEY.PAGE_UP),g.set(l,t.KEY.PAGE_DOWN),g.set(u,t.KEY.END),g.set(c,t.KEY.HOME),g.set(d,t.KEY.ARROW_LEFT),g.set(f,t.KEY.ARROW_UP),g.set(p,t.KEY.ARROW_RIGHT),g.set(h,t.KEY.ARROW_DOWN),g.set(m,t.KEY.DELETE),g.set(_,t.KEY.ESCAPE),g.set(v,t.KEY.TAB);var y=new Set;function b(e){var n=e.key;if(r.has(n))return n;var o=g.get(e.keyCode);return o||t.KEY.UNKNOWN}y.add(t.KEY.PAGE_UP),y.add(t.KEY.PAGE_DOWN),y.add(t.KEY.END),y.add(t.KEY.HOME),y.add(t.KEY.ARROW_LEFT),y.add(t.KEY.ARROW_UP),y.add(t.KEY.ARROW_RIGHT),y.add(t.KEY.ARROW_DOWN),t.normalizeKey=b,t.isNavigationEvent=function(e){return y.has(b(e))}},"./packages/mdc-dom/ponyfill.ts":
180
+ Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigationEvent=t.normalizeKey=t.KEY=void 0,t.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var r=new Set;r.add(t.KEY.BACKSPACE),r.add(t.KEY.ENTER),r.add(t.KEY.SPACEBAR),r.add(t.KEY.PAGE_UP),r.add(t.KEY.PAGE_DOWN),r.add(t.KEY.END),r.add(t.KEY.HOME),r.add(t.KEY.ARROW_LEFT),r.add(t.KEY.ARROW_UP),r.add(t.KEY.ARROW_RIGHT),r.add(t.KEY.ARROW_DOWN),r.add(t.KEY.DELETE),r.add(t.KEY.ESCAPE),r.add(t.KEY.TAB);var o=8,i=13,a=32,s=33,l=34,u=35,c=36,d=37,f=38,p=39,h=40,m=46,v=27,y=9,g=new Map;g.set(o,t.KEY.BACKSPACE),g.set(i,t.KEY.ENTER),g.set(a,t.KEY.SPACEBAR),g.set(s,t.KEY.PAGE_UP),g.set(l,t.KEY.PAGE_DOWN),g.set(u,t.KEY.END),g.set(c,t.KEY.HOME),g.set(d,t.KEY.ARROW_LEFT),g.set(f,t.KEY.ARROW_UP),g.set(p,t.KEY.ARROW_RIGHT),g.set(h,t.KEY.ARROW_DOWN),g.set(m,t.KEY.DELETE),g.set(v,t.KEY.ESCAPE),g.set(y,t.KEY.TAB);var _=new Set;function b(e){var n=e.key;if(r.has(n))return n;var o=g.get(e.keyCode);return o||t.KEY.UNKNOWN}_.add(t.KEY.PAGE_UP),_.add(t.KEY.PAGE_DOWN),_.add(t.KEY.END),_.add(t.KEY.HOME),_.add(t.KEY.ARROW_LEFT),_.add(t.KEY.ARROW_UP),_.add(t.KEY.ARROW_RIGHT),_.add(t.KEY.ARROW_DOWN),t.normalizeKey=b,t.isNavigationEvent=function(e){return _.has(b(e))}},"./packages/mdc-dom/ponyfill.ts":
181
181
  /*!**************************************!*\
182
182
  !*** ./packages/mdc-dom/ponyfill.ts ***!
183
183
  \**************************************/
@@ -204,7 +204,7 @@ Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigationEvent=t.normalize
204
204
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
205
205
  * THE SOFTWARE.
206
206
  */
207
- Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(r(n,t))return n;n=n.parentElement}return null},t.matches=r,t.estimateScrollWidth=function(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}}})},e.exports=t()},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(0),r=__webpack_require__(1),function(){var t=[,function(t){t.exports=e},function(e){e.exports=r}],n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};o.r(i),o.d(i,{Dummy:function(){return u},reference:function(){return l}});var a=o(1),s=o(2),l={current:null},u=(0,a.forwardRef)(function(e,t){var n;return l.current=t,(0,s.jsx)("div",{children:null!==(n=e.children)&&void 0!==n?n:null})});return u.isDummy=!0,i.default=u,i}())},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",transparent:"#ffffff",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},s=e=>a[e]||e,l=e=>{4===e.length&&(e+=e.slice(1));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}},u=(e,t,n)=>{let r=[e,t,n].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]},c=(e,t)=>(u(e[0],e[1],e[2])+.05)/(u(t[0],t[1],t[2])+.05),d=e=>(e=s(e),l(e)),f=e=>{const{r:t,g:n,b:r}=d(e);return!(c([255,255,255],[t,n,r])>3)},p={"--mdc-theme-primary":[["--mdc-theme-on-primary",0]],"--mdc-theme-surface":[["--mdc-theme-on-surface",0]],"--mdc-theme-secondary":[["--mdc-theme-on-secondary",0]],"--mdc-theme-background":[["--mdc-theme-text-primary-on-background",0],["--mdc-theme-text-secondary-on-background",1],["--mdc-theme-text-hint-on-background",2],["--mdc-theme-text-disabled-on-background",2],["--mdc-theme-text-icon-on-background",2]]},h=["rgba(0, 0, 0, 0.87)","rgba(0, 0, 0, 0.54)","rgba(0, 0, 0, 0.38)"],m=["rgba(255, 255, 255, 1)","rgba(255, 255, 255, 0.7)","rgba(255, 255, 255, 0.5)"],_=e=>({...Object.keys(p).reduce((t,n)=>{if(e[n]){const r=f(e[n])?h:m;p[n].forEach(e=>{t[e[0]]=r[e[1]]})}return t},{}),...e}),v=i.createComponent(function(e,t){const{use:n,wrap:o,...a}=e,s=i.useClassNames(e,[i.parseThemeOptions(n).join(" ")]);return o?i.wrapChild({...a,ref:t,className:s}):r.jsx(i.Tag,{tag:"span",theme:n,...a,ref:t,className:s})}),g=i.createComponent(function(e,t){var n,a;const s=JSON.stringify(e.options),l=o.useMemo(()=>{const t=Object.keys(e.options).reduce((t,n)=>{const r=e.options[n];return t[n=n.startsWith("--")?n:`--mdc-theme-${i.toDashCase(n)}`]=r,t},{});return _(t)},[s]),{options:u,style:c={},wrap:d,...f}=e,p=i.useClassNames(e,[d&&"object"==typeof f.children&&(null==(a=null==(n=f.children)?void 0:n.props)?void 0:a.className)]),h={...c,...l};return d&&f.children?i.wrapChild({...f,style:h,ref:t}):r.jsx(i.Tag,{...f,style:h,className:p,ref:t})});t.Theme=v,t.ThemeProvider=g,t.contrast=c,t.getAutoColorsForTheme=_,t.getRgb=d,t.hexToRgb=l,t.isLight=f,t.luminance=u,t.nameToHex=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(21),a={headline1:"h1",headline2:"h2",headline3:"h3",headline4:"h4",headline5:"h5",headline6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",button:"span",overline:"span"},s=o.createComponent(function(e,t){const{use:n,...s}=e,l=i.useProviderContext().typography,u=(null==l?void 0:l[n])||(null==l?void 0:l.defaultTag)||a[n],c=o.useClassNames(e,[{[`mdc-typography--${e.use}`]:e.use}]);return r.jsx(o.Tag,{tag:u,...s,ref:t,className:c})});t.Typography=s},function(e,t,n){n.d(t,{Jv:function(){return r},OK:function(){return o},P$:function(){return a},Y7:function(){return i},nL:function(){return s}});
207
+ Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(r(n,t))return n;n=n.parentElement}return null},t.matches=r,t.estimateScrollWidth=function(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}}})},e.exports=t()},function(e,t,n){function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)},r(e)}function o(e,t,n){return o=l()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&a(o,n.prototype),o},o.apply(null,arguments)}function i(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&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=l();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(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,n)}}function l(){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 u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e){return c="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},c(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,h(r.key),r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}var m=n(56),v=Math.pow(2,16);function y(e,t){return e+t*v}function g(e){return 65535&e}var _=function(){function e(t,n,r){d(this,e),this.pos=t,this.delInfo=n,this.recover=r}return p(e,[{key:"deleted",get:function(){return(8&this.delInfo)>0}},{key:"deletedBefore",get:function(){return(5&this.delInfo)>0}},{key:"deletedAfter",get:function(){return(6&this.delInfo)>0}},{key:"deletedAcross",get:function(){return(4&this.delInfo)>0}}]),e}(),b=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(d(this,e),this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}return p(e,[{key:"recover",value:function(e){var t=0,n=g(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/v}(e)}},{key:"mapResult",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}},{key:"_map",value:function(e,t,n){for(var r=0,o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;var l=this.ranges[a+o],u=this.ranges[a+i],c=s+l;if(e<=c){var d=s+r+((l?e==s?-1:e==c?1:t:t)<0?0:u);if(n)return d;var f=e==(t<0?s:c)?null:y(a/3,e-s),p=e==s?2:e==c?1:4;return(t<0?e!=s:e!=c)&&(p|=8),new _(d,p,f)}r+=u-l}return n?e+r:new _(e+r,0,null)}},{key:"touches",value:function(e,t){for(var n=0,r=g(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1}},{key:"forEach",value:function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r<this.ranges.length;r+=3){var i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],u=this.ranges[r+n];e(a,a+l,s,s+u),o+=u-l}}},{key:"invert",value:function(){return new e(this.ranges,!this.inverted)}},{key:"toString",value:function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}}],[{key:"offset",value:function(t){return 0==t?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}}]),e}();b.empty=new b([]);var E=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t?t.length:0;d(this,e),this.mirror=n,this.from=r,this.to=o,this._maps=t||[],this.ownData=!(t||n)}return p(e,[{key:"maps",get:function(){return this._maps}},{key:"slice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new e(this._maps,this.mirror,t,n)}},{key:"appendMap",value:function(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}},{key:"appendMapping",value:function(e){for(var t=0,n=this._maps.length;t<e._maps.length;t++){var r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}},{key:"getMirror",value:function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}},{key:"setMirror",value:function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}},{key:"appendMappingInverted",value:function(e){for(var t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}},{key:"invert",value:function(){var t=new e;return t.appendMappingInverted(this),t}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}},{key:"mapResult",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"_map",value:function(e,t,n){for(var r=0,o=this.from;o<this.to;o++){var i=this._maps[o].mapResult(e,t);if(null!=i.recover){var a=this.getMirror(o);if(null!=a&&a>o&&a<this.to){o=a,e=this._maps[a].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new _(e,r,null)}}]),e}(),x=Object.create(null),C=function(){function e(){d(this,e)}return p(e,[{key:"getMap",value:function(){return b.empty}},{key:"merge",value:function(e){return null}}],[{key:"fromJSON",value:function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=x[t.stepType];if(!n)throw new RangeError("No step type ".concat(t.stepType," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in x)throw new RangeError("Duplicate use of step JSON ID "+e);return x[e]=t,t.prototype.jsonID=e,t}}]),e}(),S=function(){function e(t,n){d(this,e),this.doc=t,this.failed=n}return p(e,null,[{key:"ok",value:function(t){return new e(t,null)}},{key:"fail",value:function(t){return new e(null,t)}},{key:"fromReplace",value:function(t,n,r,o){try{return e.ok(t.replace(n,r,o))}catch(t){if(t instanceof m.ReplaceError)return e.fail(t.message);throw t}}}]),e}();function w(e,t,n){for(var r=[],o=0;o<e.childCount;o++){var i=e.child(o);i.content.size&&(i=i.copy(w(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return m.Fragment.fromArray(r)}var O=function(e){i(n,e);var t=s(n);function n(e,r,o){var i;return d(this,n),(i=t.call(this)).from=e,i.to=r,i.mark=o,i}return p(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new m.Slice(w(n.content,function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e},o),n.openStart,n.openEnd);return S.fromReplace(e,this.from,this.to,i)}},{key:"invert",value:function(){return new T(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(C);C.jsonID("addMark",O);var T=function(e){i(n,e);var t=s(n);function n(e,r,o){var i;return d(this,n),(i=t.call(this)).from=e,i.to=r,i.mark=o,i}return p(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=new m.Slice(w(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))},e),n.openStart,n.openEnd);return S.fromReplace(e,this.from,this.to,r)}},{key:"invert",value:function(){return new O(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(C);C.jsonID("removeMark",T);var A=function(e){i(n,e);var t=s(n);function n(e,r){var o;return d(this,n),(o=t.call(this)).pos=e,o.mark=r,o}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return S.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return S.fromReplace(e,this.pos,this.pos+1,new m.Slice(m.Fragment.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);if(t){var r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(var o=0;o<t.marks.length;o++)if(!t.marks[o].isInSet(r))return new n(this.pos,t.marks[o]);return new n(this.pos,this.mark)}}return new I(this.pos,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.mark)}},{key:"toJSON",value:function(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new n(t.pos,e.markFromJSON(t.mark))}}]),n}(C);C.jsonID("addNodeMark",A);var I=function(e){i(n,e);var t=s(n);function n(e,r){var o;return d(this,n),(o=t.call(this)).pos=e,o.mark=r,o}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return S.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return S.fromReplace(e,this.pos,this.pos+1,new m.Slice(m.Fragment.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new A(this.pos,this.mark):this}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.mark)}},{key:"toJSON",value:function(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new n(t.pos,e.markFromJSON(t.mark))}}]),n}(C);C.jsonID("removeNodeMark",I);var k=function(e){i(n,e);var t=s(n);function n(e,r,o){var i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return d(this,n),(i=t.call(this)).from=e,i.to=r,i.slice=o,i.structure=a,i}return p(n,[{key:"apply",value:function(e){return this.structure&&P(e,this.from,this.to)?S.fail("Structure replace would overwrite content"):S.fromReplace(e,this.from,this.to,this.slice)}},{key:"getMap",value:function(){return new b([this.from,this.to-this.from,this.slice.size])}},{key:"invert",value:function(e){return new n(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new n(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}},{key:"merge",value:function(e){if(!(e instanceof n)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?m.Slice.empty:new m.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new n(e.from,this.to,t,this.structure)}var r=this.slice.size+e.slice.size==0?m.Slice.empty:new m.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new n(this.from,this.to+(e.to-e.from),r,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new n(t.from,t.to,m.Slice.fromJSON(e,t.slice),!!t.structure)}}]),n}(C);C.jsonID("replace",k);var N=function(e){i(n,e);var t=s(n);function n(e,r,o,i,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,n),(l=t.call(this)).from=e,l.to=r,l.gapFrom=o,l.gapTo=i,l.slice=a,l.insert=s,l.structure=u,l}return p(n,[{key:"apply",value:function(e){if(this.structure&&(P(e,this.from,this.gapFrom)||P(e,this.gapTo,this.to)))return S.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return S.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?S.fromReplace(e,this.from,this.to,n):S.fail("Content does not fit in gap")}},{key:"getMap",value:function(){return new b([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}},{key:"invert",value:function(e){var t=this.gapTo-this.gapFrom;return new n(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new n(t.pos,r.pos,o,i,this.slice,this.insert,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new n(t.from,t.to,t.gapFrom,t.gapTo,m.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)}}]),n}(C);function P(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function M(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.contentMatch,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=e.doc.nodeAt(t),a=[],s=t+1,l=0;l<i.childCount;l++){var u=i.child(l),c=s+u.nodeSize,d=r.matchType(u.type);if(d){r=d;for(var f=0;f<u.marks.length;f++)n.allowsMarkType(u.marks[f].type)||e.step(new T(s,c,u.marks[f]));if(o&&u.isText&&"pre"!=n.whitespace)for(var p=void 0,h=/\r?\n|\r/g,v=void 0;p=h.exec(u.text);)v||(v=new m.Slice(m.Fragment.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),a.push(new k(s+p.index,s+p.index+p[0].length,v))}else a.push(new k(s,c,m.Slice.empty));s=c}if(!r.validEnd){var y=r.fillBefore(m.Fragment.empty,!0);e.replace(s,s,new m.Slice(y,0,0))}for(var g=a.length-1;g>=0;g--)e.step(a[g])}function L(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function D(e){return{type:e,attrs:null}}function R(e,t,n,r){t.forEach(function(o,i){if(o.isText)for(var a,s=/\r?\n|\r/g;a=s.exec(o.text);){var l=e.mapping.slice(r).map(n+1+i+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}})}function j(e,t,n,r){t.forEach(function(o,i){if(o.type==o.type.schema.linebreakReplacement){var a=e.mapping.slice(r).map(n+1+i);e.replaceWith(a,a+1,t.type.schema.text("\n"))}})}function F(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);for(var n=e.contentMatchAt(e.childCount),r=e.type.schema.linebreakReplacement,o=0;o<t.childCount;o++){var i=t.child(o),a=i.type==r?e.type.schema.nodes.text:i.type;if(!(n=n.matchType(a)))return!1;if(!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function B(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s<r.node(a).childCount)return null}return null}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.Slice.empty;if(t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return V(o,i,r)?new k(t,n,r):new z(o,i,r).fit()}function V(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}C.jsonID("replaceAround",N);var z=function(){function e(t,n,r){d(this,e),this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=m.Fragment.empty;for(var o=0;o<=t.depth;o++){var i=t.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(o))})}for(var a=t.depth;a>0;a--)this.placed=m.Fragment.from(t.node(a).copy(this.placed))}return p(e,[{key:"depth",get:function(){return this.frontier.length-1}},{key:"fit",value:function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;for(var i=this.placed,a=r.depth,s=o.depth;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;var l=new m.Slice(i,a,s);return t>-1?new N(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new k(r.pos,o.pos,l):null}},{key:"findFittable",value:function(){for(var e=this.unplaced.openStart,t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){var o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(var i=1;i<=2;i++)for(var a=1==i?e:this.unplaced.openStart;a>=0;a--)for(var s=null,l=(a?(s=H(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild,u=this.depth;u>=0;u--){var c=this.frontier[u],d=c.type,f=c.match,p=void 0,h=null;if(1==i&&(l?f.matchType(l.type)||(h=f.fillBefore(m.Fragment.from(l),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:u,parent:s,inject:h};if(2==i&&l&&(p=f.findWrapping(l.type)))return{sliceDepth:a,frontierDepth:u,parent:s,wrap:p};if(s&&f.matchType(s.type))break}}},{key:"openMore",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=H(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new m.Slice(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)}},{key:"dropNode",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=H(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new m.Slice(W(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new m.Slice(W(t,n,1),n,r)}},{key:"placeNodes",value:function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a<i.length;a++)this.openFrontierNode(i[a]);var s=this.unplaced,l=r?r.content:s.content,u=s.openStart-t,c=0,d=[],f=this.frontier[n],p=f.match,h=f.type;if(o){for(var v=0;v<o.childCount;v++)d.push(o.child(v));p=p.matchFragment(o)}for(var y=l.size+t-(s.content.size-s.openEnd);c<l.childCount;){var g=l.child(c),_=p.matchType(g.type);if(!_)break;(++c>1||0==u||g.content.size)&&(p=_,d.push($(g.mark(h.allowedMarks(g.marks)),1==c?u:0,c==l.childCount?y:-1)))}var b=c==l.childCount;b||(y=-1),this.placed=q(this.placed,n,m.Fragment.from(d)),this.frontier[n].match=p,b&&y<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var E=0,x=l;E<y;E++){var C=x.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),x=C.content}this.unplaced=b?0==t?m.Slice.empty:new m.Slice(W(s.content,t-1,1),t-1,y<0?s.openEnd:t-1):new m.Slice(W(s.content,t,c),s.openStart,s.openEnd)}},{key:"mustMoveInline",value:function(){if(!this.$to.parent.isTextblock)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!K(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r}},{key:"findCloseLevel",value:function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=K(e,t,o,r,i);if(a){for(var s=t-1;s>=0;s--){var l=this.frontier[s],u=l.match,c=K(e,s,l.type,u,!0);if(!c||c.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}},{key:"close",value:function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=q(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e}},{key:"openFrontierNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=q(this.placed,this.depth,m.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}},{key:"closeFrontierNode",value:function(){var e=this.frontier.pop().match.fillBefore(m.Fragment.empty,!0);e.childCount&&(this.placed=q(this.placed,this.frontier.length,e))}}]),e}();function W(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(W(e.firstChild.content,t-1,n)))}function q(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(q(e.lastChild.content,t-1,n)))}function H(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function $(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,$(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(m.Fragment.empty,!0)))),e.copy(r)}function K(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function G(e){return e.spec.defining||e.spec.definingForContent}function X(e,t,n,r,o){if(t<n){var i=e.firstChild;e=e.replaceChild(0,i.copy(X(i.content,t+1,n,r,i)))}if(t>r){var a=o.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(m.Fragment.empty,!0))}return e}function Y(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}var J=function(e){i(n,e);var t=s(n);function n(e,r,o){var i;return d(this,n),(i=t.call(this)).pos=e,i.attr=r,i.value=o,i}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return S.fail("No node at attribute step's position");var n=Object.create(null);for(var r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;var o=t.type.create(n,null,t.marks);return S.fromReplace(e,this.pos,this.pos+1,new m.Slice(m.Fragment.from(o),0,t.isLeaf?0:1))}},{key:"getMap",value:function(){return b.empty}},{key:"invert",value:function(e){return new n(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.attr,this.value)}},{key:"toJSON",value:function(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new n(t.pos,t.attr,t.value)}}]),n}(C);C.jsonID("attr",J);var Q=function(e){i(n,e);var t=s(n);function n(e,r){var o;return d(this,n),(o=t.call(this)).attr=e,o.value=r,o}return p(n,[{key:"apply",value:function(e){var t=Object.create(null);for(var n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;var r=e.type.create(t,e.content,e.marks);return S.ok(r)}},{key:"getMap",value:function(){return b.empty}},{key:"invert",value:function(e){return new n(this.attr,e.attrs[this.attr])}},{key:"map",value:function(e){return this}},{key:"toJSON",value:function(){return{stepType:"docAttr",attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new n(t.attr,t.value)}}]),n}(C);C.jsonID("docAttr",Q),t.TransformError=function(e){i(n,e);var t=s(n);function n(){return d(this,n),t.apply(this,arguments)}return p(n)}(r(Error)),t.TransformError=function e(t){var n=Error.call(this,t);return n.__proto__=e.prototype,n},t.TransformError.prototype=Object.create(Error.prototype),t.TransformError.prototype.constructor=t.TransformError,t.TransformError.prototype.name="TransformError";var Z=function(){function e(t){d(this,e),this.doc=t,this.steps=[],this.docs=[],this.mapping=new E}return p(e,[{key:"before",get:function(){return this.docs.length?this.docs[0]:this.doc}},{key:"step",value:function(e){var n=this.maybeStep(e);if(n.failed)throw new t.TransformError(n.failed);return this}},{key:"maybeStep",value:function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}},{key:"docChanged",get:function(){return this.steps.length>0}},{key:"changedRange",value:function(){for(var e=1e9,t=-1e9,n=0;n<this.mapping.maps.length;n++){var r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach(function(n,r,o,i){e=Math.min(e,o),t=Math.max(t,i)})}return 1e9==e?null:{from:e,to:t}}},{key:"addStep",value:function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.Slice.empty,r=U(this.doc,e,t,n);return r&&this.step(r),this}},{key:"replaceWith",value:function(e,t,n){return this.replace(e,t,new m.Slice(m.Fragment.from(n),0,0))}},{key:"delete",value:function(e,t){return this.replace(e,t,m.Slice.empty)}},{key:"insert",value:function(e,t){return this.replaceWith(e,e,t)}},{key:"replaceRange",value:function(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);var o=e.doc.resolve(t),i=e.doc.resolve(n);if(V(o,i,r))return e.step(new k(t,n,r));var a=Y(o,i);0==a[a.length-1]&&a.pop();var s=-(o.depth+1);a.unshift(s);for(var l=o.depth,u=o.pos-1;l>0;l--,u--){var c=o.node(l).type.spec;if(c.defining||c.definingAsContext||c.isolating)break;a.indexOf(l)>-1?s=l:o.before(l)==u&&a.splice(1,0,-l)}for(var d=a.indexOf(s),f=[],p=r.openStart,h=r.content,v=0;;v++){var y=h.firstChild;if(f.push(y),v==r.openStart)break;h=y.content}for(var g=p-1;g>=0;g--){var _=f[g],b=G(_.type);if(b&&!_.sameMarkup(o.node(Math.abs(s)-1)))p=g;else if(b||!_.type.isTextblock)break}for(var E=r.openStart;E>=0;E--){var x=(E+p+1)%(r.openStart+1),C=f[x];if(C)for(var S=0;S<a.length;S++){var w=a[(S+d)%a.length],O=!0;w<0&&(O=!1,w=-w);var T=o.node(w-1),A=o.index(w-1);if(T.canReplaceWith(A,A,C.type,C.marks))return e.replace(o.before(w),O?i.after(w):n,new m.Slice(X(r.content,0,r.openStart,x),x,r.openEnd))}}for(var I=e.steps.length,N=a.length-1;N>=0&&(e.replace(t,n,r),!(e.steps.length>I));N--){var P=a[N];P<0||(t=o.before(P),n=i.after(P))}}(this,e,t,n),this}},{key:"replaceRangeWith",value:function(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){var o=B(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new m.Slice(m.Fragment.from(r),0,0))}(this,e,t,n),this}},{key:"deleteRange",value:function(e,t){return function(e,t,n){for(var r=e.doc.resolve(t),o=e.doc.resolve(n),i=Y(r,o),a=0;a<i.length;a++){var s=i[a],l=a==i.length-1;if(l&&0==s||r.node(s).type.contentMatch.validEnd)return e.delete(r.start(s),o.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),o.indexAfter(s-1))))return e.delete(r.before(s),o.after(s))}for(var u=1;u<=r.depth&&u<=o.depth;u++)if(t-r.start(u)==r.depth-u&&n>r.end(u)&&o.end(u)-n!=o.depth-u&&r.start(u-1)==o.start(u-1)&&r.node(u-1).canReplace(r.index(u-1),o.index(u-1)))return e.delete(r.before(u),n);e.delete(t,n)}(this,e,t),this}},{key:"lift",value:function(e,t){return function(e,t,n){for(var r=t.$from,o=t.$to,i=t.depth,a=r.before(i+1),s=o.after(i+1),l=a,u=s,c=m.Fragment.empty,d=0,f=i,p=!1;f>n;f--)p||r.index(f)>0?(p=!0,c=m.Fragment.from(r.node(f).copy(c)),d++):l--;for(var h=m.Fragment.empty,v=0,y=i,g=!1;y>n;y--)g||o.after(y+1)<o.end(y)?(g=!0,h=m.Fragment.from(o.node(y).copy(h)),v++):u++;e.step(new N(l,u,a,s,new m.Slice(c.append(h),d,v),c.size-d,!0))}(this,e,t),this}},{key:"join",value:function(e){return function(e,t,n){var r=null,o=e.doc.type.schema.linebreakReplacement,i=e.doc.resolve(t-n),a=i.node().type;if(o&&a.inlineContent){var s="pre"==a.whitespace,l=!!a.contentMatch.matchType(o);s&&!l?r=!1:!s&&l&&(r=!0)}var u=e.steps.length;if(!1===r){var c=e.doc.resolve(t+n);j(e,c.node(),c.before(),u)}a.inlineContent&&M(e,t+n-1,a,i.node().contentMatchAt(i.index()),null==r);var d=e.mapping.slice(u),f=d.map(t-n);if(e.step(new k(f,d.map(t+n,-1),m.Slice.empty,!0)),!0===r){var p=e.doc.resolve(f);R(e,p.node(),p.before(),e.steps.length)}}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this}},{key:"wrap",value:function(e,t){return function(e,t,n){for(var r=m.Fragment.empty,o=n.length-1;o>=0;o--){if(r.size){var i=n[o].type.contentMatch.matchFragment(r);if(!i||!i.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=m.Fragment.from(n[o].type.create(n[o].attrs,r))}var a=t.start,s=t.end;e.step(new N(a,s,a,s,new m.Slice(r,0,0),n.length,!0))}(this,e,t),this}},{key:"setBlockType",value:function(e){return function(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=e.steps.length;e.doc.nodesBetween(t,n,function(t,n){var a="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(r,a)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(i).map(n),r)){var s=null;if(r.schema.linebreakReplacement){var l="pre"==r.whitespace,u=!!r.contentMatch.matchType(r.schema.linebreakReplacement);l&&!u?s=!1:!l&&u&&(s=!0)}!1===s&&j(e,t,n,i),M(e,e.mapping.slice(i).map(n,1),r,void 0,null===s);var c=e.mapping.slice(i),d=c.map(n,1),f=c.map(n+t.nodeSize,1);return e.step(new N(d,f,d+1,f-1,new m.Slice(m.Fragment.from(r.create(a,null,t.marks)),0,0),1,!0)),!0===s&&R(e,t,n,i),!1}})}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,arguments.length>2?arguments[2]:void 0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),this}},{key:"setNodeMarkup",value:function(e,t){return function(e,t,n,r,o){var i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);var a=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new N(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new m.Slice(m.Fragment.from(a),0,0),1,!0))}(this,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0),this}},{key:"setNodeAttribute",value:function(e,t,n){return this.step(new J(e,t,n)),this}},{key:"setDocAttribute",value:function(e,t){return this.step(new Q(e,t)),this}},{key:"addNodeMark",value:function(e,t){return this.step(new A(e,t)),this}},{key:"removeNodeMark",value:function(e,t){var n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof m.Mark)t.isInSet(n.marks)&&this.step(new I(e,t));else{for(var r,o=n.marks,i=[];r=t.isInSet(o);)i.push(new I(e,r)),o=r.removeFromSet(o);for(var a=i.length-1;a>=0;a--)this.step(i[a])}return this}},{key:"split",value:function(e){return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=e.doc.resolve(t),i=m.Fragment.empty,a=m.Fragment.empty,s=o.depth,l=o.depth-n,u=n-1;s>l;s--,u--){i=m.Fragment.from(o.node(s).copy(i));var c=r&&r[u];a=m.Fragment.from(c?c.type.create(c.attrs,a):o.node(s).copy(a))}e.step(new k(t,t,new m.Slice(i.append(a),n,n),!0))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2?arguments[2]:void 0),this}},{key:"addMark",value:function(e,t,n){return function(e,t,n,r){var o,i,a=[],s=[];e.doc.nodesBetween(t,n,function(e,l,u){if(e.isInline){var c=e.marks;if(!r.isInSet(c)&&u.type.allowsMarkType(r.type)){for(var d=Math.max(l,t),f=Math.min(l+e.nodeSize,n),p=r.addToSet(c),h=0;h<c.length;h++)c[h].isInSet(p)||(o&&o.to==d&&o.mark.eq(c[h])?o.to=f:a.push(o=new T(d,f,c[h])));i&&i.to==d?i.to=f:s.push(i=new O(d,f,r))}}}),a.forEach(function(t){return e.step(t)}),s.forEach(function(t){return e.step(t)})}(this,e,t,n),this}},{key:"removeMark",value:function(e,t,n){return function(e,t,n,r){var o=[],i=0;e.doc.nodesBetween(t,n,function(e,a){if(e.isInline){i++;var s=null;if(r instanceof m.MarkType)for(var l,u=e.marks;l=r.isInSet(u);)(s||(s=[])).push(l),u=l.removeFromSet(u);else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length)for(var c=Math.min(a+e.nodeSize,n),d=0;d<s.length;d++){for(var f=s[d],p=void 0,h=0;h<o.length;h++){var v=o[h];v.step==i-1&&f.eq(o[h].style)&&(p=v)}p?(p.to=c,p.step=i):o.push({style:f,from:Math.max(a,t),to:c,step:i})}}}),o.forEach(function(t){return e.step(new T(t.from,t.to,t.style))})}(this,e,t,n),this}},{key:"clearIncompatible",value:function(e,t,n){return M(this,e,t,n),this}}]),e}();t.AddMarkStep=O,t.AddNodeMarkStep=A,t.AttrStep=J,t.DocAttrStep=Q,t.MapResult=_,t.Mapping=E,t.RemoveMarkStep=T,t.RemoveNodeMarkStep=I,t.ReplaceAroundStep=N,t.ReplaceStep=k,t.Step=C,t.StepMap=b,t.StepResult=S,t.Transform=Z,t.canJoin=function(e,t){var n=e.resolve(t),r=n.index();return F(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)},t.canSplit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var s=o.depth-1,l=n-2;s>i;s--,l--){var u=o.node(s),c=o.index(s);if(u.type.spec.isolating)return!1;var d=u.content.cutByIndex(c,u.childCount),f=r&&r[l+1];f&&(d=d.replaceChild(0,f.type.create(f.attrs)));var p=r&&r[l]||u;if(!u.canReplace(c+1,u.childCount)||!p.type.validContent(d))return!1}var h=o.indexAfter(i),m=r&&r[0];return o.node(i).canReplaceWith(h,h,m?m.type:o.node(i+1).type)},t.dropPoint=function(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var o=n.content,i=0;i<n.openStart;i++)o=o.firstChild.content;for(var a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(var s=r.depth;s>=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,u=r.index(s)+(l>0?1:0),c=r.node(s),d=!1;if(1==a)d=c.canReplace(u,u,o);else{var f=c.contentMatchAt(u).findWrapping(o.firstChild.type);d=f&&c.canReplaceWith(u,u,f[0])}if(d)return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null},t.findWrapping=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=function(e,t){var n=e.parent,r=e.startIndex,o=e.endIndex,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;var a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){var n=e.parent,r=e.startIndex,o=e.endIndex,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,l=r;s&&l<o;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(D).concat({type:t,attrs:n}).concat(i.map(D)):null},t.insertPoint=B,t.joinPoint=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=e.resolve(t),o=r.depth;;o--){var i=void 0,a=void 0,s=r.index(o);if(o==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(o+1),s++,a=r.node(o).maybeChild(s)):(i=r.node(o).maybeChild(s-1),a=r.node(o+1)),i&&!i.isTextblock&&F(i,a)&&r.node(o).canReplace(s,s+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}},t.liftTarget=function(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth,r=0,o=0;;--n){var i=e.$from.node(n),a=e.$from.index(n)+r,s=e.$to.indexAfter(n)-o;if(n<e.depth&&i.canReplace(a,s,t))return n;if(0==n||i.type.spec.isolating||!L(i,a,s))break;a&&(r=1),s<i.childCount&&(o=1)}return null},t.replaceStep=U},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",transparent:"#ffffff",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},s=e=>a[e]||e,l=e=>{4===e.length&&(e+=e.slice(1));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}},u=(e,t,n)=>{let r=[e,t,n].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]},c=(e,t)=>(u(e[0],e[1],e[2])+.05)/(u(t[0],t[1],t[2])+.05),d=e=>(e=s(e),l(e)),f=e=>{const{r:t,g:n,b:r}=d(e);return!(c([255,255,255],[t,n,r])>3)},p={"--mdc-theme-primary":[["--mdc-theme-on-primary",0]],"--mdc-theme-surface":[["--mdc-theme-on-surface",0]],"--mdc-theme-secondary":[["--mdc-theme-on-secondary",0]],"--mdc-theme-background":[["--mdc-theme-text-primary-on-background",0],["--mdc-theme-text-secondary-on-background",1],["--mdc-theme-text-hint-on-background",2],["--mdc-theme-text-disabled-on-background",2],["--mdc-theme-text-icon-on-background",2]]},h=["rgba(0, 0, 0, 0.87)","rgba(0, 0, 0, 0.54)","rgba(0, 0, 0, 0.38)"],m=["rgba(255, 255, 255, 1)","rgba(255, 255, 255, 0.7)","rgba(255, 255, 255, 0.5)"],v=e=>({...Object.keys(p).reduce((t,n)=>{if(e[n]){const r=f(e[n])?h:m;p[n].forEach(e=>{t[e[0]]=r[e[1]]})}return t},{}),...e}),y=i.createComponent(function(e,t){const{use:n,wrap:o,...a}=e,s=i.useClassNames(e,[i.parseThemeOptions(n).join(" ")]);return o?i.wrapChild({...a,ref:t,className:s}):r.jsx(i.Tag,{tag:"span",theme:n,...a,ref:t,className:s})}),g=i.createComponent(function(e,t){var n,a;const s=JSON.stringify(e.options),l=o.useMemo(()=>{const t=Object.keys(e.options).reduce((t,n)=>{const r=e.options[n];return t[n=n.startsWith("--")?n:`--mdc-theme-${i.toDashCase(n)}`]=r,t},{});return v(t)},[s]),{options:u,style:c={},wrap:d,...f}=e,p=i.useClassNames(e,[d&&"object"==typeof f.children&&(null==(a=null==(n=f.children)?void 0:n.props)?void 0:a.className)]),h={...c,...l};return d&&f.children?i.wrapChild({...f,style:h,ref:t}):r.jsx(i.Tag,{...f,style:h,className:p,ref:t})});t.Theme=y,t.ThemeProvider=g,t.contrast=c,t.getAutoColorsForTheme=v,t.getRgb=d,t.hexToRgb=l,t.isLight=f,t.luminance=u,t.nameToHex=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(21),a={headline1:"h1",headline2:"h2",headline3:"h3",headline4:"h4",headline5:"h5",headline6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",button:"span",overline:"span"},s=o.createComponent(function(e,t){const{use:n,...s}=e,l=i.useProviderContext().typography,u=(null==l?void 0:l[n])||(null==l?void 0:l.defaultTag)||a[n],c=o.useClassNames(e,[{[`mdc-typography--${e.use}`]:e.use}]);return r.jsx(o.Tag,{tag:u,...s,ref:t,className:c})});t.Typography=s},function(e,t,n){n.d(t,{Jv:function(){return r},OK:function(){return o},P$:function(){return a},Y7:function(){return i},nL:function(){return s}});
208
208
  /**
209
209
  * @license
210
210
  * Copyright 2018 Google Inc.
@@ -273,7 +273,7 @@ var r,o;n.d(t,{$z:function(){return a},P$:function(){return l},PY:function(){ret
273
273
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
274
274
  * THE SOFTWARE.
275
275
  */
276
- function r(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},r=function(){};e.document.addEventListener("test",r,n),e.document.removeEventListener("test",r,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}n.d(t,{E:function(){return r}})},function(e,t,n){n.d(t,{O:function(){return a}});var r=n(2),o=n(4),i=n(50),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.isSurfaceOpen=!1,o.isQuickOpen=!1,o.isHoistedElement=!1,o.isFixedPosition=!1,o.isHorizontallyCenteredOnViewport=!1,o.maxHeight=0,o.openBottomBias=0,o.openAnimationEndTimerId=0,o.closeAnimationEndTimerId=0,o.animationRequestId=0,o.anchorCorner=i.OK.TOP_START,o.originCorner=i.OK.TOP_START,o.anchorMargin={top:0,right:0,bottom:0,left:0},o.position={x:0,y:0},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return i.OK},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,r=e.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^i.Jv.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.isFixed=function(){return this.isFixedPosition},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.setMaxHeight=function(e){this.maxHeight=e},t.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(t.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},i.nL.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},i.nL.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,i.Jv.BOTTOM)?"bottom":"top",a=this.hasBit(n,i.Jv.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset(n),l=this.getVerticalOriginOffset(n),u=this.measurements,c=u.anchorSize,d=u.surfaceSize,f=((e={})[a]=s,e[o]=l,e);c.width/d.width>i.nL.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(a="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(f),this.adapter.setTransformOrigin(a+" "+o),this.adapter.setPosition(f),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(n,i.Jv.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),r=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:r}},t.prototype.getoriginCorner=function(){var e,n,r=this.originCorner,o=this.measurements,a=o.viewportDistance,s=o.anchorSize,l=o.surfaceSize,u=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,i.Jv.BOTTOM)?(e=a.top-u+this.anchorMargin.bottom,n=a.bottom-u-this.anchorMargin.bottom):(e=a.top-u+this.anchorMargin.top,n=a.bottom-u+s.height-this.anchorMargin.top),!(n-l.height>0)&&e>n+this.openBottomBias&&(r=this.setBit(r,i.Jv.BOTTOM));var c,d,f=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,i.Jv.FLIP_RTL),h=this.hasBit(this.anchorCorner,i.Jv.RIGHT)||this.hasBit(r,i.Jv.RIGHT),m=!1;(m=f&&p?!h:h)?(c=a.left+s.width+this.anchorMargin.right,d=a.right-this.anchorMargin.right):(c=a.left+this.anchorMargin.left,d=a.right+s.width-this.anchorMargin.left);var _=c-l.width>0,v=d-l.width>0,g=this.hasBit(r,i.Jv.FLIP_RTL)&&this.hasBit(r,i.Jv.RIGHT);return v&&g&&f||!_&&g?r=this.unsetBit(r,i.Jv.RIGHT):(_&&m&&f||_&&!m&&h||!v&&c>=d)&&(r=this.setBit(r,i.Jv.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,r=0,o=this.hasBit(e,i.Jv.BOTTOM),a=this.hasBit(this.anchorCorner,i.Jv.BOTTOM),s=t.numbers.MARGIN_TO_EDGE;return o?(r=n.top+this.anchorMargin.top-s,a||(r+=this.measurements.anchorSize.height)):(r=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,a&&(r-=this.measurements.anchorSize.height)),r},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.Jv.RIGHT),r=this.hasBit(this.anchorCorner,i.Jv.RIGHT);if(n){var o=r?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return r?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.Jv.BOTTOM),r=this.hasBit(this.anchorCorner,i.Jv.BOTTOM);return n?r?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:r?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,o=this.measurements,i=o.windowScroll,a=o.viewportDistance,s=o.surfaceSize,l=o.viewportSize,u=Object.keys(e);try{for(var c=(0,r.Ju)(u),d=c.next();!d.done;d=c.next()){var f=d.value,p=e[f]||0;!this.isHorizontallyCenteredOnViewport||"left"!==f&&"right"!==f?(p+=a[f],this.isFixedPosition||("top"===f?p+=i.y:"bottom"===f?p-=i.y:"left"===f?p+=i.x:p-=i.x),e[f]=p):e[f]=(l.width-s.width)/2}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,r=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(t||r)&&setTimeout(function(){e.adapter.restoreFocus()},i.nL.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(o.I)},function(e,t,n){n.d(t,{P$:function(){return i},Y7:function(){return o},hf:function(){return r},nL:function(){return a}});
276
+ function r(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},r=function(){};e.document.addEventListener("test",r,n),e.document.removeEventListener("test",r,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}n.d(t,{E:function(){return r}})},function(e,t,n){function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}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}function i(){return i="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=f(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}},i.apply(this,arguments)}function a(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&&d(e,t)}function s(e){var t=c();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(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,n)}}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function u(e,t,n){return u=c()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&d(o,n.prototype),o},u.apply(null,arguments)}function c(){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 d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){return p="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},p(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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,y(r.key),r)}}function v(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}var g=n(96);function _(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){var s=_(o.content,i.content,n+1);if(null!=s)return s}n+=o.nodeSize}else n+=o.nodeSize}}function b(e,t,n,r){for(var o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){for(var u=0,c=Math.min(a.text.length,s.text.length);u<c&&a.text[a.text.length-u-1]==s.text[s.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){var d=b(a.content,s.content,n-1,r-1);if(d)return d}n-=l,r-=l}else n-=l,r-=l}}var E=function(){function e(t,n){if(h(this,e),this.content=t,this.size=n||0,null==n)for(var r=0;r<t.length;r++)this.size+=t[r].nodeSize}return v(e,[{key:"nodesBetween",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,i=0,a=0;a<t;i++){var s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){var u=a+1;s.nodesBetween(Math.max(0,e-u),Math.min(s.content.size,t-u),n,r+u)}a=l}}},{key:"descendants",value:function(e){this.nodesBetween(0,this.size,e)}},{key:"textBetween",value:function(e,t,n,r){var o="",i=!0;return this.nodesBetween(e,t,function(a,s){var l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}},{key:"append",value:function(t){if(!t.size)return this;if(!this.size)return t;var n=this.lastChild,r=t.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<t.content.length;i++)o.push(t.content[i]);return new e(o,this.size+t.size)}},{key:"cut",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==t&&n==this.size)return this;var r=[],o=0;if(n>t)for(var i=0,a=0;a<n;i++){var s=this.content[i],l=a+s.nodeSize;l>t&&((a<t||l>n)&&(s=s.isText?s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),o+=s.nodeSize),a=l}return new e(r,o)}},{key:"cutByIndex",value:function(t,n){return t==n?e.empty:0==t&&n==this.content.length?this:new e(this.content.slice(t,n))}},{key:"replaceChild",value:function(t,n){var r=this.content[t];if(r==n)return this;var o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[t]=n,new e(o,i)}},{key:"addToStart",value:function(t){return new e([t].concat(this.content),this.size+t.nodeSize)}},{key:"addToEnd",value:function(t){return new e(this.content.concat(t),this.size+t.nodeSize)}},{key:"eq",value:function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}},{key:"firstChild",get:function(){return this.content.length?this.content[0]:null}},{key:"lastChild",get:function(){return this.content.length?this.content[this.content.length-1]:null}},{key:"childCount",get:function(){return this.content.length}},{key:"child",value:function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}},{key:"maybeChild",value:function(e){return this.content[e]||null}},{key:"forEach",value:function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}}},{key:"findDiffStart",value:function(e){return _(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"findDiffEnd",value:function(e){return b(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size)}},{key:"findIndex",value:function(e){if(0==e)return C(0,e);if(e==this.size)return C(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(var t=0,n=0;;t++){var r=n+this.child(t).nodeSize;if(r>=e)return r==e?C(t+1,r):C(t,n);n=r}}},{key:"toString",value:function(){return"<"+this.toStringInner()+">"}},{key:"toStringInner",value:function(){return this.content.join(", ")}},{key:"toJSON",value:function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new e(n.map(t.nodeFromJSON))}},{key:"fromArray",value:function(t){if(!t.length)return e.empty;for(var n,r=0,o=0;o<t.length;o++){var i=t[o];r+=i.nodeSize,o&&i.isText&&t[o-1].sameMarkup(i)?(n||(n=t.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}},{key:"from",value:function(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}]),e}();E.empty=new E([],0);var x={index:0,offset:0};function C(e,t){return x.index=e,x.offset=t,x}function S(e,t){if(e===t)return!0;if(!e||"object"!=p(e)||!t||"object"!=p(t))return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!S(e[r],t[r]))return!1}else{for(var o in e)if(!(o in t)||!S(e[o],t[o]))return!1;for(var i in t)if(!(i in e))return!1}return!0}var w=function(){function e(t,n){h(this,e),this.type=t,this.attrs=n}return v(e,[{key:"addToSet",value:function(e){for(var t,n=!1,r=0;r<e.length;r++){var o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}},{key:"removeFromSet",value:function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}},{key:"isInSet",value:function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}},{key:"eq",value:function(e){return this==e||this.type==e.type&&S(this.attrs,e.attrs)}},{key:"toJSON",value:function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e}}],[{key:"fromJSON",value:function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type ".concat(t.type," in this schema"));var r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}},{key:"sameSet",value:function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}},{key:"setFrom",value:function(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];var n=t.slice();return n.sort(function(e,t){return e.type.rank-t.type.rank}),n}}]),e}();w.none=[];var O=function(e){a(n,e);var t=s(n);function n(){return h(this,n),t.apply(this,arguments)}return v(n)}(l(Error)),T=function(){function e(t,n,r){h(this,e),this.content=t,this.openStart=n,this.openEnd=r}return v(e,[{key:"size",get:function(){return this.content.size-this.openStart-this.openEnd}},{key:"insertAt",value:function(t,n){var r=I(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}},{key:"removeBetween",value:function(t,n){return new e(A(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}},{key:"eq",value:function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}},{key:"toString",value:function(){return this.content+"("+this.openStart+","+this.openEnd+")"}},{key:"toJSON",value:function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;var r=n.openStart||0,o=n.openEnd||0;if("number"!=typeof r||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new e(E.fromJSON(t,n.content),r,o)}},{key:"maxOpen",value:function(t){for(var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0,o=0,i=t.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(var a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)o++;return new e(t,r,o)}}]),e}();function A(e,t,n){var r=e.findIndex(t),o=r.index,i=r.offset,a=e.maybeChild(o),s=e.findIndex(n),l=s.index,u=s.offset;if(i==t||a.isText){if(u!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(o,a.copy(A(a.content,t-i-1,n-i-1)))}function I(e,t,n,r){var o=e.findIndex(t),i=o.index,a=o.offset,s=e.maybeChild(i);if(a==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=I(s.content,t-a-1,n,s);return l&&e.replaceChild(i,s.copy(l))}function k(e,t,n){if(n.openStart>e.depth)throw new O("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new O("Inconsistent open depths");return N(e,t,n,0)}function N(e,t,n,r){var o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){var a=N(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),o=n-1;o>=0;o--)r=t.node(o).copy(E.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return R(i,j(e,s.start,s.end,t,r))}var l=e.parent,u=l.content;return R(l,u.cut(0,e.parentOffset).append(n.content).append(u.cut(t.parentOffset)))}return R(i,F(e,t,r))}function P(e,t){if(!t.type.compatibleContent(e.type))throw new O("Cannot join "+t.type.name+" onto "+e.type.name)}function M(e,t,n){var r=e.node(n);return P(r,t.node(n)),r}function L(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function D(e,t,n,r){var o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(L(e.nodeAfter,r),i++));for(var s=i;s<a;s++)L(o.child(s),r);t&&t.depth==n&&t.textOffset&&L(t.nodeBefore,r)}function R(e,t){return e.type.checkContent(t),e.copy(t)}function j(e,t,n,r,o){var i=e.depth>o&&M(e,t,o+1),a=r.depth>o&&M(n,r,o+1),s=[];return D(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(P(i,a),L(R(i,j(e,t,n,r,o+1)),s)):(i&&L(R(i,F(e,t,o+1)),s),D(t,n,o,s),a&&L(R(a,F(n,r,o+1)),s)),D(r,null,o,s),new E(s)}function F(e,t,n){var r=[];(D(null,e,n,r),e.depth>n)&&L(R(M(e,t,n+1),F(e,t,n+1)),r);return D(t,null,n,r),new E(r)}T.empty=new T(E.empty,0,0);var B=function(){function e(t,n,r){h(this,e),this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}return v(e,[{key:"resolveDepth",value:function(e){return null==e?this.depth:e<0?this.depth+e:e}},{key:"parent",get:function(){return this.node(this.depth)}},{key:"doc",get:function(){return this.node(0)}},{key:"node",value:function(e){return this.path[3*this.resolveDepth(e)]}},{key:"index",value:function(e){return this.path[3*this.resolveDepth(e)+1]}},{key:"indexAfter",value:function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}},{key:"start",value:function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}},{key:"end",value:function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}},{key:"before",value:function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}},{key:"after",value:function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}},{key:"textOffset",get:function(){return this.pos-this.path[this.path.length-1]}},{key:"nodeAfter",get:function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}},{key:"nodeBefore",get:function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}},{key:"posAtIndex",value:function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,o=0;o<e;o++)r+=n.child(o).nodeSize;return r}},{key:"marks",value:function(){var e=this.parent,t=this.index();if(0==e.content.size)return w.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var o=n;n=r,r=o}for(var i=n.marks,a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}},{key:"marksAcross",value:function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}},{key:"sharedDepth",value:function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}},{key:"blockRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new W(this,e,n);return null}},{key:"sameParent",value:function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}},{key:"max",value:function(e){return e.pos>this.pos?e:this}},{key:"min",value:function(e){return e.pos<this.pos?e:this}},{key:"toString",value:function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}}],[{key:"resolve",value:function(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");for(var r=[],o=0,i=n,a=t;;){var s=a.content.findIndex(i),l=s.index,u=s.offset,c=i-u;if(r.push(a,l,o+u),!c)break;if((a=a.child(l)).isText)break;i=c-1,o+=u+1}return new e(n,r,i)}},{key:"resolveCached",value:function(t,n){var r=z.get(t);if(r)for(var o=0;o<r.elts.length;o++){var i=r.elts[o];if(i.pos==n)return i}else z.set(t,r=new U);var a=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%V,a}}]),e}(),U=v(function e(){h(this,e),this.elts=[],this.i=0}),V=12,z=new WeakMap,W=function(){function e(t,n,r){h(this,e),this.$from=t,this.$to=n,this.depth=r}return v(e,[{key:"start",get:function(){return this.$from.before(this.depth+1)}},{key:"end",get:function(){return this.$to.after(this.depth+1)}},{key:"parent",get:function(){return this.$from.node(this.depth)}},{key:"startIndex",get:function(){return this.$from.index(this.depth)}},{key:"endIndex",get:function(){return this.$to.indexAfter(this.depth)}}]),e}(),q=Object.create(null),H=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w.none;h(this,e),this.type=t,this.attrs=n,this.marks=o,this.content=r||E.empty}return v(e,[{key:"children",get:function(){return this.content.content}},{key:"nodeSize",get:function(){return this.isLeaf?1:2+this.content.size}},{key:"childCount",get:function(){return this.content.childCount}},{key:"child",value:function(e){return this.content.child(e)}},{key:"maybeChild",value:function(e){return this.content.maybeChild(e)}},{key:"forEach",value:function(e){this.content.forEach(e)}},{key:"nodesBetween",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}},{key:"descendants",value:function(e){this.nodesBetween(0,this.content.size,e)}},{key:"textContent",get:function(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}},{key:"textBetween",value:function(e,t,n,r){return this.content.textBetween(e,t,n,r)}},{key:"firstChild",get:function(){return this.content.firstChild}},{key:"lastChild",get:function(){return this.content.lastChild}},{key:"eq",value:function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}},{key:"sameMarkup",value:function(e){return this.hasMarkup(e.type,e.attrs,e.marks)}},{key:"hasMarkup",value:function(e,t,n){return this.type==e&&S(this.attrs,t||e.defaultAttrs||q)&&w.sameSet(this.marks,n||w.none)}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}},{key:"mark",value:function(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return T.empty;var r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new T(s,r.depth-i,o.depth-i)}},{key:"replace",value:function(e,t,n){return k(this.resolve(e),this.resolve(t),n)}},{key:"nodeAt",value:function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,o=n.offset;if(!(t=t.maybeChild(r)))return null;if(o==e||t.isText)return t;e-=o+1}}},{key:"childAfter",value:function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}}},{key:"childBefore",value:function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}},{key:"resolve",value:function(e){return B.resolveCached(this,e)}},{key:"resolveNoCache",value:function(e){return B.resolve(this,e)}},{key:"rangeHasMark",value:function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,function(e){return n.isInSet(e.marks)&&(r=!0),!r}),r}},{key:"isBlock",get:function(){return this.type.isBlock}},{key:"isTextblock",get:function(){return this.type.isTextblock}},{key:"inlineContent",get:function(){return this.type.inlineContent}},{key:"isInline",get:function(){return this.type.isInline}},{key:"isText",get:function(){return this.type.isText}},{key:"isLeaf",get:function(){return this.type.isLeaf}},{key:"isAtom",get:function(){return this.type.isAtom}},{key:"toString",value:function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),K(this.marks,e)}},{key:"contentMatchAt",value:function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}},{key:"canReplace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}},{key:"canReplaceWith",value:function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}},{key:"canAppend",value:function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}},{key:"check",value:function(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);for(var e=w.none,t=0;t<this.marks.length;t++){var n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!w.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node ".concat(this.type.name,": ").concat(this.marks.map(function(e){return e.type.name})));this.content.forEach(function(e){return e.check()})}},{key:"toJSON",value:function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(function(e){return e.toJSON()})),e}}],[{key:"fromJSON",value:function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=void 0;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=E.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}]),e}();H.prototype.text=void 0;var $=function(e){a(n,e);var t=s(n);function n(e,r,o,i){var a;if(h(this,n),a=t.call(this,e,r,null,i),!o)throw new RangeError("Empty text nodes are not allowed");return a.text=o,a}return v(n,[{key:"toString",value:function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):K(this.marks,JSON.stringify(this.text))}},{key:"textContent",get:function(){return this.text}},{key:"textBetween",value:function(e,t){return this.text.slice(e,t)}},{key:"nodeSize",get:function(){return this.text.length}},{key:"mark",value:function(e){return e==this.marks?this:new n(this.type,this.attrs,this.text,e)}},{key:"withText",value:function(e){return e==this.text?this:new n(this.type,this.attrs,e,this.marks)}},{key:"cut",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}},{key:"eq",value:function(e){return this.sameMarkup(e)&&this.text==e.text}},{key:"toJSON",value:function(){var e=i(f(n.prototype),"toJSON",this).call(this);return e.text=this.text,e}}]),n}(H);function K(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var G=function(){function e(t){h(this,e),this.validEnd=t,this.next=[],this.wrapCache=[]}return v(e,[{key:"matchType",value:function(e){for(var t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}},{key:"matchFragment",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this,o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}},{key:"inlineContent",get:function(){return 0!=this.next.length&&this.next[0].type.isInline}},{key:"defaultType",get:function(){for(var e=0;e<this.next.length;e++){var t=this.next[e].type;if(!t.isText&&!t.hasRequiredAttrs())return t}return null}},{key:"compatible",value:function(e){for(var t=0;t<this.next.length;t++)for(var n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}},{key:"fillBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function o(i,a){var s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return E.from(a.map(function(e){return e.createAndFill()}));for(var l=0;l<i.next.length;l++){var u=i.next[l],c=u.type,d=u.next;if(!c.isText&&!c.hasRequiredAttrs()&&-1==r.indexOf(d)){r.push(d);var f=o(d,a.concat(c));if(f)return f}}return null}(this,[])}},{key:"findWrapping",value:function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}},{key:"computeWrapping",value:function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),o=r.match;if(o.matchType(e)){for(var i=[],a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(var s=0;s<o.next.length;s++){var l=o.next[s],u=l.type,c=l.next;u.isLeaf||u.hasRequiredAttrs()||u.name in t||r.type&&!c.validEnd||(n.push({match:u.contentMatch,type:u,via:r}),t[u.name]=!0)}}return null}},{key:"edgeCount",get:function(){return this.next.length}},{key:"edge",value:function(e){if(e>=this.next.length)throw new RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}},{key:"toString",value:function(){var e=[];return function t(n){e.push(n);for(var r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map(function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r}).join("\n")}}],[{key:"parse",value:function(t,n){var r=new X(t,n);if(null==r.next)return e.empty;var o=Y(r);r.next&&r.err("Unexpected trailing text");var i=re(function(e){var t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(function(e){return e.to=t})}function i(e,t){if("choice"==e.type)return e.exprs.reduce(function(e,n){return e.concat(i(n,t))},[]);if("seq"!=e.type){if("star"==e.type){var a=n();return r(t,a),o(i(e.expr,a),a),[r(a)]}if("plus"==e.type){var s=n();return o(i(e.expr,t),s),o(i(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){for(var l=t,u=0;u<e.min;u++){var c=n();o(i(e.expr,l),c),l=c}if(-1==e.max)o(i(e.expr,l),l);else for(var d=e.min;d<e.max;d++){var f=n();r(l,f),o(i(e.expr,l),f),l=f}return[r(l)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(var p=0;;p++){var h=i(e.exprs[p],t);if(p==e.exprs.length-1)return h;o(h,t=n())}}}(o));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var o=r[n],i=!o.validEnd,a=[],s=0;s<o.next.length;s++){var l=o.next[s],u=l.type,c=l.next;a.push(u.name),!i||u.isText||u.hasRequiredAttrs()||(i=!1),-1==r.indexOf(c)&&r.push(c)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,r),i}}]),e}();G.empty=new G(!0);var X=function(){function e(t,n){h(this,e),this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}return v(e,[{key:"next",get:function(){return this.tokens[this.pos]}},{key:"eat",value:function(e){return this.next==e&&(this.pos++||!0)}},{key:"err",value:function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}]),e}();function Y(e){var t=[];do{t.push(J(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function J(e){var t=[];do{t.push(Q(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function Q(e){for(var t=function(e){if(e.eat("(")){var t=Y(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var i in n){var a=n[i];a.isInGroup(t)&&o.push(a)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map(function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}});return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=ee(e,t)}return t}function Z(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function ee(e,t){var n=Z(e),r=n;return e.eat(",")&&(r="}"!=e.next?Z(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function te(e,t){return t-e}function ne(e,t){var n=[];return function t(r){var o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(var i=0;i<o.length;i++){var a=o[i],s=a.term,l=a.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(te)}function re(e){var t=Object.create(null);return function n(r){var o=[];r.forEach(function(t){e[t].forEach(function(t){var n=t.term,r=t.to;if(n){for(var i,a=0;a<o.length;a++)o[a][0]==n&&(i=o[a][1]);ne(e,r).forEach(function(e){i||o.push([n,i=[]]),-1==i.indexOf(e)&&i.push(e)})}})});for(var i=t[r.join(",")]=new G(r.indexOf(e.length-1)>-1),a=0;a<o.length;a++){var s=o[a][1].sort(te);i.next.push({type:o[a][0],next:t[s.join(",")]||n(s)})}return i}(ne(e,0))}function oe(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ie(e,t){var n=Object.create(null);for(var r in e){var o=t&&t[r];if(void 0===o){var i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=i.default}n[r]=o}return n}function ae(e,t,n,r){for(var o in t)if(!(o in e))throw new RangeError("Unsupported attribute ".concat(o," for ").concat(n," of type ").concat(o));for(var i in e){var a=e[i];a.validate&&a.validate(t[i])}}function se(e,t){var n=Object.create(null);if(t)for(var r in t)n[r]=new ue(e,r,t[r]);return n}var le=function(){function e(t,n,r){h(this,e),this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=se(t,r.attrs),this.defaultAttrs=oe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==t),this.isText="text"==t}return v(e,[{key:"isInline",get:function(){return!this.isBlock}},{key:"isTextblock",get:function(){return this.isBlock&&this.inlineContent}},{key:"isLeaf",get:function(){return this.contentMatch==G.empty}},{key:"isAtom",get:function(){return this.isLeaf||!!this.spec.atom}},{key:"isInGroup",value:function(e){return this.groups.indexOf(e)>-1}},{key:"whitespace",get:function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}},{key:"hasRequiredAttrs",value:function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}},{key:"compatibleContent",value:function(e){return this==e||this.contentMatch.compatible(e.contentMatch)}},{key:"computeAttrs",value:function(e){return!e&&this.defaultAttrs?this.defaultAttrs:ie(this.attrs,e)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new H(this,this.computeAttrs(e),E.from(t),w.setFrom(n))}},{key:"createChecked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=E.from(t),this.checkContent(t),new H(this,this.computeAttrs(e),t,w.setFrom(n))}},{key:"createAndFill",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=E.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(E.empty,!0);return i?new H(this,e,t.append(i),w.setFrom(n)):null}},{key:"validContent",value:function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}},{key:"checkContent",value:function(e){if(!this.validContent(e))throw new RangeError("Invalid content for node ".concat(this.name,": ").concat(e.toString().slice(0,50)))}},{key:"checkAttrs",value:function(e){ae(this.attrs,e,"node",this.name)}},{key:"allowsMarkType",value:function(e){return null==this.markSet||this.markSet.indexOf(e)>-1}},{key:"allowsMarks",value:function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}},{key:"allowedMarks",value:function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:w.none:e}}],[{key:"compile",value:function(t,n){var r=Object.create(null);t.forEach(function(t,o){return r[t]=new e(t,n,o)});var o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(var i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}}]),e}();var ue=function(){function e(t,n,r){h(this,e),this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,n){var r=n.split("|");return function(n){var o=null===n?"null":p(n);if(r.indexOf(o)<0)throw new RangeError("Expected value of type ".concat(r," for attribute ").concat(t," on type ").concat(e,", got ").concat(o))}}(t,n,r.validate):r.validate}return v(e,[{key:"isRequired",get:function(){return!this.hasDefault}}]),e}(),ce=function(){function e(t,n,r,o){h(this,e),this.name=t,this.rank=n,this.schema=r,this.spec=o,this.attrs=se(t,o.attrs),this.excluded=null;var i=oe(this.attrs);this.instance=i?new w(this,i):null}return v(e,[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new w(this,ie(this.attrs,e))}},{key:"removeFromSet",value:function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}},{key:"isInSet",value:function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]}},{key:"checkAttrs",value:function(e){ae(this.attrs,e,"mark",this.name)}},{key:"excludes",value:function(e){return this.excluded.indexOf(e)>-1}}],[{key:"compile",value:function(t,n){var r=Object.create(null),o=0;return t.forEach(function(t,i){return r[t]=new e(t,o++,n,i)}),r}}]),e}(),de=function(){function e(t){var n=this;h(this,e),this.linebreakReplacement=null,this.cached=Object.create(null);var r=this.spec={};for(var o in t)r[o]=t[o];r.nodes=g.from(t.nodes),r.marks=g.from(t.marks||{}),this.nodes=le.compile(this.spec.nodes,this),this.marks=ce.compile(this.spec.marks,this);var i=Object.create(null);for(var a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");var s=this.nodes[a],l=s.spec.content||"",u=s.spec.marks;if(s.contentMatch=i[l]||(i[l]=G.parse(l,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet="_"==u?null:u?fe(this,u.split(" ")):""!=u&&s.inlineContent?null:[]}for(var c in this.marks){var d=this.marks[c],f=d.spec.excludes;d.excluded=null==f?[d]:""==f?[]:fe(this,f.split(" "))}this.nodeFromJSON=function(e){return H.fromJSON(n,e)},this.markFromJSON=function(e){return w.fromJSON(n,e)},this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}return v(e,[{key:"node",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof le))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}},{key:"text",value:function(e,t){var n=this.nodes.text;return new $(n,n.defaultAttrs,e,w.setFrom(t))}},{key:"mark",value:function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}},{key:"nodeType",value:function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}]),e}();function fe(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(var s in e.marks){var l=e.marks[s];("_"==o||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}var pe=function(){function e(t,n){var r=this;h(this,e),this.schema=t,this.rules=n,this.tags=[],this.styles=[];var o=this.matchedStyles=[];n.forEach(function(e){if(function(e){return null!=e.tag}(e))r.tags.push(e);else if(function(e){return null!=e.style}(e)){var t=/[^=]*/.exec(e.style)[0];o.indexOf(t)<0&&o.push(t),r.styles.push(e)}}),this.normalizeLists=!this.tags.some(function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var n=t.nodes[e.node];return n.contentMatch.matchType(n)})}return v(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new _e(this,t,!1);return n.addAll(e,w.none,t.from,t.to),n.finish()}},{key:"parseSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new _e(this,t,!0);return n.addAll(e,w.none,t.from,t.to),T.maxOpen(n.finish())}},{key:"matchTag",value:function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var o=this.tags[r];if(be(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){var i=o.getAttrs(e);if(!1===i)continue;o.attrs=i||void 0}return o}}}},{key:"matchStyle",value:function(e,t,n,r){for(var o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){var i=this.styles[o],a=i.style;if(!(0!=a.indexOf(e)||i.context&&!n.matchesContext(i.context)||a.length>e.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(i.getAttrs){var s=i.getAttrs(t);if(!1===s)continue;i.attrs=s||void 0}return i}}}}],[{key:"schemaRules",value:function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var o=t[r];if((null==o.priority?50:o.priority)<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach(function(e){n(e=Ee(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})};for(var o in e.marks)r(o);var i=function(t){var r=e.nodes[t].spec.parseDOM;r&&r.forEach(function(e){n(e=Ee(e)),e.node||e.ignore||e.mark||(e.node=t)})};for(var a in e.nodes)i(a);return t}},{key:"fromSchema",value:function(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}}]),e}(),he={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},me={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ve={ol:!0,ul:!0};function ye(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var ge=function(){function e(t,n,r,o,i,a){h(this,e),this.type=t,this.attrs=n,this.marks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=w.none,this.match=i||(4&a?null:t.contentMatch)}return v(e,[{key:"findWrapping",value:function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(E.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}},{key:"finish",value:function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];if(n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))){var r=n;n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}var o=E.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(E.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}},{key:"inlineContext",value:function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!he.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}]),e}(),_e=function(){function e(t,n,r){h(this,e),this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;var o,i=n.topNode,a=ye(null,n.preserveWhitespace,0)|(r?4:0);o=i?new ge(i.type,i.attrs,w.none,!0,n.topMatch||i.type.contentMatch,a):new ge(r?null:t.schema.topNodeType,null,w.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}return v(e,[{key:"top",get:function(){return this.nodes[this.open]}},{key:"addDOM",value:function(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}},{key:"addTextNode",value:function(e,t){var n=e.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,i=this.parser.schema;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)if("full"===o)n=n.replace(/\r\n?/g,"\n");else if(i.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(i.linebreakReplacement.create())){for(var a=n.split(/\r?\n|\r/),s=0;s<a.length;s++)s&&this.insertNode(i.linebreakReplacement.create(),t,!0),a[s]&&this.insertNode(i.text(a[s]),t,!/\S/.test(a[s]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){var l=r.content[r.content.length-1],u=e.previousSibling;(!l||u&&"BR"==u.nodeName||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(n=n.slice(1))}n&&this.insertNode(i.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}},{key:"addElement",value:function(e,t,n){var r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);var i,a=e.nodeName.toLowerCase();ve.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&ve.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));e:if(s?s.ignore:me.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);var l,u=this.needsBlock;if(he.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),l=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}var c=s&&s.skip?t:this.readStyles(e,t);c&&this.addAll(e,c),l&&this.sync(o),this.needsBlock=u}else{var d=this.readStyles(e,t);d&&this.addElementByRule(e,s,d,!1===s.consuming?i:void 0)}this.localPreserveWS=r}},{key:"leafFallback",value:function(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}},{key:"ignoreFallback",value:function(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}},{key:"readStyles",value:function(e,t){var n=this,r=e.style;if(r&&r.length)for(var o=0;o<this.parser.matchedStyles.length;o++){var i=this.parser.matchedStyles[o],a=r.getPropertyValue(i);if(a)for(var s,l=function(e){var r=n.parser.matchStyle(i,a,n,e);return r?r.ignore?{v:null}:(t=r.clearMark?t.filter(function(e){return!r.clearMark(e)}):t.concat(n.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming?(u=e,0):void(u=e=r)):(u=e,0)},u=void 0;0!==(s=l(u));)if(s)return s.v}return t}},{key:"addElementByRule",value:function(e,t,n,r){var o,i,a=this;if(t.node)if((i=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(i.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{var s=this.enter(i,t.attrs||null,n,t.preserveWhitespace);s&&(o=!0,n=s)}else{var l=this.parser.schema.marks[t.mark];n=n.concat(l.create(t.attrs))}var u=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(function(e){return a.insertNode(e,n,!1)});else{var c=e;"string"==typeof t.contentElement?c=e.querySelector(t.contentElement):"function"==typeof t.contentElement?c=t.contentElement(e):t.contentElement&&(c=t.contentElement),this.findAround(e,c,!0),this.addAll(c,n),this.findAround(e,c,!1)}o&&this.sync(u)&&this.open--}},{key:"addAll",value:function(e,t,n,r){for(var o=n||0,i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}},{key:"findPlace",value:function(e,t,n){for(var r,o,i=this.open,a=0;i>=0;i--){var s=this.nodes[i],l=s.findWrapping(e);if(l&&(!r||r.length>l.length+a)&&(r=l,o=s,!l.length))break;if(s.solid){if(n)break;a+=2}}if(!r)return null;this.sync(o);for(var u=0;u<r.length;u++)t=this.enterInner(r[u],null,t,!1);return t}},{key:"insertNode",value:function(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){var o=this.textblockFromContext();o&&(t=this.enterInner(o,null,t))}var i=this.findPlace(e,t,n);if(i){this.closeExtra();var a=this.top;a.match&&(a.match=a.match.matchType(e.type));var s,l=w.none,u=r(i.concat(e.marks));try{for(u.s();!(s=u.n()).done;){var c=s.value;(a.type?a.type.allowsMarkType(c.type):xe(c.type,e.type))&&(l=c.addToSet(l))}}catch(e){u.e(e)}finally{u.f()}return a.content.push(e.mark(l)),!0}return!1}},{key:"enter",value:function(e,t,n,r){var o=this.findPlace(e.create(t),n,!1);return o&&(o=this.enterInner(e,t,n,!0,r)),o}},{key:"enterInner",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;this.closeExtra();var i=this.top;i.match=i.match&&i.match.matchType(e);var a=ye(e,o,i.options);4&i.options&&0==i.content.length&&(a|=4);var s=w.none;return n=n.filter(function(t){return!(i.type?i.type.allowsMarkType(t.type):xe(t.type,e))||(s=t.addToSet(s),!1)}),this.nodes.push(new ge(e,t,s,r,null,a)),this.open++,n}},{key:"closeExtra",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}},{key:"finish",value:function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}},{key:"sync",value:function(e){for(var t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}},{key:"currentPos",get:function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}},{key:"findAtPoint",value:function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}},{key:"findInside",value:function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}},{key:"findAround",value:function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++){if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node))t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}},{key:"findInText",value:function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}},{key:"matchesContext",value:function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,o=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1);return function e(a,s){for(;a>=0;a--){var l=n[a];if(""==l){if(a==n.length-1||0==a)continue;for(;s>=i;s--)if(e(a-1,s))return!0;return!1}var u=s>0||0==s&&o?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!u||u.name!=l&&!u.isInGroup(l))return!1;s--}return!0}(n.length-1,this.open)}},{key:"textblockFromContext",value:function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}}}]),e}();function be(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ee(e){var t={};for(var n in e)t[n]=e[n];return t}function xe(e,t){var n,r=t.schema.nodes,o=function(){var n=r[i];if(!n.allowsMarkType(e))return 0;var o=[];return function e(n){o.push(n);for(var r=0;r<n.edgeCount;r++){var i=n.edge(r),a=i.type,s=i.next;if(a==t)return!0;if(o.indexOf(s)<0&&e(s))return!0}}(n.contentMatch)?{v:!0}:void 0};for(var i in r)if(0!==(n=o())&&n)return n.v}var Ce=function(){function e(t,n){h(this,e),this.nodes=t,this.marks=n}return v(e,[{key:"serializeFragment",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;r||(r=we(n).createDocumentFragment());var o=r,i=[];return e.forEach(function(e){if(i.length||e.marks.length){for(var r=0,a=0;r<i.length&&a<e.marks.length;){var s=e.marks[a];if(t.marks[s.type.name]){if(!s.eq(i[r][0])||!1===s.type.spec.spanning)break;r++,a++}else a++}for(;r<i.length;)o=i.pop()[1];for(;a<e.marks.length;){var l=e.marks[a++],u=t.serializeMark(l,e.isInline,n);u&&(i.push([l,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(t.serializeNodeInner(e,n))}),r}},{key:"serializeNodeInner",value:function(e,t){var n=Ae(we(t),this.nodes[e.type.name](e),null,e.attrs),r=n.dom,o=n.contentDOM;if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return r}},{key:"serializeNode",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}},{key:"serializeMark",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.marks[e.type.name];return r&&Ae(we(n),r(e,t),null,e.attrs)}}],[{key:"renderSpec",value:function(e,t){return Ae(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0)}},{key:"fromSchema",value:function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}},{key:"nodesFromSchema",value:function(e){var t=Se(e.nodes);return t.text||(t.text=function(e){return e.text}),t}},{key:"marksFromSchema",value:function(e){return Se(e.marks)}}]),e}();function Se(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function we(e){return e.document||window.document}var Oe=new WeakMap;function Te(e){var t=Oe.get(e);return void 0===t&&Oe.set(e,t=function(e){var t=null;function n(e){if(e&&"object"==p(e))if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(var r=0;r<e.length;r++)n(e[r]);else for(var o in e)n(e[o])}return n(e),t}(e)),t}function Ae(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var o,i=t[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=Te(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");var a,s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));var l=n?e.createElementNS(n,i):e.createElement(i),u=t[1],c=1;if(u&&"object"==p(u)&&null==u.nodeType&&!Array.isArray(u))for(var d in c=2,u)if(null!=u[d]){var f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):"style"==d&&l.style?l.style.cssText=u[d]:l.setAttribute(d,u[d])}for(var h=c;h<t.length;h++){var m=t[h];if(0===m){if(h<t.length-1||h>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}var v=Ae(e,m,n,r),y=v.dom,g=v.contentDOM;if(l.appendChild(y),g){if(a)throw new RangeError("Multiple content holes");a=g}}return{dom:l,contentDOM:a}}t.ContentMatch=G,t.DOMParser=pe,t.DOMSerializer=Ce,t.Fragment=E,t.Mark=w,t.MarkType=ce,t.Node=H,t.NodeRange=W,t.NodeType=le,t.ReplaceError=O,t.ResolvedPos=B,t.Schema=de,t.Slice=T},function(e,t,n){n.d(t,{O:function(){return a}});var r=n(2),o=n(4),i=n(52),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.isSurfaceOpen=!1,o.isQuickOpen=!1,o.isHoistedElement=!1,o.isFixedPosition=!1,o.isHorizontallyCenteredOnViewport=!1,o.maxHeight=0,o.openBottomBias=0,o.openAnimationEndTimerId=0,o.closeAnimationEndTimerId=0,o.animationRequestId=0,o.anchorCorner=i.OK.TOP_START,o.originCorner=i.OK.TOP_START,o.anchorMargin={top:0,right:0,bottom:0,left:0},o.position={x:0,y:0},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return i.OK},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,r=e.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^i.Jv.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.isFixed=function(){return this.isFixedPosition},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.setMaxHeight=function(e){this.maxHeight=e},t.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(t.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},i.nL.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},i.nL.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,i.Jv.BOTTOM)?"bottom":"top",a=this.hasBit(n,i.Jv.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset(n),l=this.getVerticalOriginOffset(n),u=this.measurements,c=u.anchorSize,d=u.surfaceSize,f=((e={})[a]=s,e[o]=l,e);c.width/d.width>i.nL.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(a="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(f),this.adapter.setTransformOrigin(a+" "+o),this.adapter.setPosition(f),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(n,i.Jv.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),r=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:r}},t.prototype.getoriginCorner=function(){var e,n,r=this.originCorner,o=this.measurements,a=o.viewportDistance,s=o.anchorSize,l=o.surfaceSize,u=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,i.Jv.BOTTOM)?(e=a.top-u+this.anchorMargin.bottom,n=a.bottom-u-this.anchorMargin.bottom):(e=a.top-u+this.anchorMargin.top,n=a.bottom-u+s.height-this.anchorMargin.top),!(n-l.height>0)&&e>n+this.openBottomBias&&(r=this.setBit(r,i.Jv.BOTTOM));var c,d,f=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,i.Jv.FLIP_RTL),h=this.hasBit(this.anchorCorner,i.Jv.RIGHT)||this.hasBit(r,i.Jv.RIGHT),m=!1;(m=f&&p?!h:h)?(c=a.left+s.width+this.anchorMargin.right,d=a.right-this.anchorMargin.right):(c=a.left+this.anchorMargin.left,d=a.right+s.width-this.anchorMargin.left);var v=c-l.width>0,y=d-l.width>0,g=this.hasBit(r,i.Jv.FLIP_RTL)&&this.hasBit(r,i.Jv.RIGHT);return y&&g&&f||!v&&g?r=this.unsetBit(r,i.Jv.RIGHT):(v&&m&&f||v&&!m&&h||!y&&c>=d)&&(r=this.setBit(r,i.Jv.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,r=0,o=this.hasBit(e,i.Jv.BOTTOM),a=this.hasBit(this.anchorCorner,i.Jv.BOTTOM),s=t.numbers.MARGIN_TO_EDGE;return o?(r=n.top+this.anchorMargin.top-s,a||(r+=this.measurements.anchorSize.height)):(r=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,a&&(r-=this.measurements.anchorSize.height)),r},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.Jv.RIGHT),r=this.hasBit(this.anchorCorner,i.Jv.RIGHT);if(n){var o=r?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return r?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.Jv.BOTTOM),r=this.hasBit(this.anchorCorner,i.Jv.BOTTOM);return n?r?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:r?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,o=this.measurements,i=o.windowScroll,a=o.viewportDistance,s=o.surfaceSize,l=o.viewportSize,u=Object.keys(e);try{for(var c=(0,r.Ju)(u),d=c.next();!d.done;d=c.next()){var f=d.value,p=e[f]||0;!this.isHorizontallyCenteredOnViewport||"left"!==f&&"right"!==f?(p+=a[f],this.isFixedPosition||("top"===f?p+=i.y:"bottom"===f?p-=i.y:"left"===f?p+=i.x:p-=i.x),e[f]=p):e[f]=(l.width-s.width)/2}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,r=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(t||r)&&setTimeout(function(){e.adapter.restoreFocus()},i.nL.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(o.I)},function(e,t,n){n.d(t,{P$:function(){return i},Y7:function(){return o},hf:function(){return r},nL:function(){return a}});
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2018 Google Inc.
@@ -316,7 +316,7 @@ var r=n(0),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object
316
316
  * This source code is licensed under the MIT license found in the
317
317
  * LICENSE file in the root directory of this source tree.
318
318
  */
319
- var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,m(b,v.prototype),b.isPureReactComponent=!0;var E=Array.isArray,C=Object.prototype.hasOwnProperty,x={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!A.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:x.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function S(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function w(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+S(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),w(a,t,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+S(s=e[u],u);l+=w(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=w(s=s.value,t,o,c=i+S(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return w(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},R={transition:null},D={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:R,ReactCurrentOwner:x};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!A.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},function(e,t,n){
319
+ var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=_.prototype=new g;b.constructor=_,m(b,y.prototype),b.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,C={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+A(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),I(a,t,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+A(s=e[u],u);l+=I(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=I(s=s.value,t,o,c=i+A(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function k(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},M={transition:null},L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=_,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},function(e,t,n){
320
320
  /**
321
321
  * @license React
322
322
  * react-dom.production.min.js
@@ -326,7 +326,7 @@ var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("rea
326
326
  * This source code is licensed under the MIT license found in the
327
327
  * LICENSE file in the root directory of this source tree.
328
328
  */
329
- var r=n(0),o=n(59);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!(void 0===window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=_.hasOwnProperty(t)?_[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,g);_[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,g);_[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,g);_[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),C=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var k,j=Object.assign;function F(e){if(void 0===k)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return"\n"+k+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case C:return"Portal";case I:return"Profiler";case A:return"StrictMode";case w:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,xe=null,Ae=null;function Ie(e){if(e=bo(e)){if("function"!=typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Oe(e){xe?Ae?Ae.push(e):Ae=[e]:xe=e}function Te(){if(xe){var e=xe,t=Ae;if(Ae=xe=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Se(e,t){return e(t)}function we(){}var Pe=!1;function Le(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Se(e,t,n)}finally{Pe=!1,(null!==xe||null!==Ae)&&(we(),Te())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Re=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Re=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Re=!1}function Me(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ke=!1,je=null,Fe=!1,Be=null,Ue={onError:function(e){ke=!0,je=e}};function Ve(e,t,n,r,o,i,a,s,l){ke=!1,je=null,Me.apply(Ue,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(We(e)!==e)throw Error(i(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?ze(e):null}function ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ze(e);if(null!==t)return t;e=e.sibling}return null}var $e=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function _t(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,Ct,xt,At,It,Ot=!1,Tt=[],St=null,wt=null,Pt=null,Lt=new Map,Nt=new Map,Rt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":St=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function kt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=bo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void It(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Ot=!1,null!==St&&Ft(St)&&(St=null),null!==wt&&Ft(wt)&&(wt=null),null!==Pt&&Ft(Pt)&&(Pt=null),Lt.forEach(Bt),Nt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Wt(e){function t(t){return Vt(t,e)}if(0<Tt.length){Vt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==St&&Vt(St,e),null!==wt&&Vt(wt,e),null!==Pt&&Vt(Pt,e),Lt.forEach(t),Nt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)jt(n),null===n.blockedOn&&Rt.shift()}var qt=b.ReactCurrentBatchConfig,Ht=!0;function Kt(e,t,n,r){var o=yt,i=qt.transition;qt.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=o,qt.transition=i}}function zt(e,t,n,r){var o=yt,i=qt.transition;qt.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=o,qt.transition=i}}function $t(e,t,n,r){if(Ht){var o=Xt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return St=kt(St,e,t,n,r,o),!0;case"dragenter":return wt=kt(wt,e,t,n,r,o),!0;case"mouseover":return Pt=kt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lt.set(i,kt(Lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,kt(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=bo(o);if(null!==i&&Et(i),null===(i=Xt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Xt(e,t,n,r){if(Gt=null,null!==(e=yo(e=Ee(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),_n=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(gn),bn=on(j({},un,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function In(){return An}var On=j({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(On),Sn=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Pn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=on(Ln),Rn=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var kn=c&&"TextEvent"in window&&!Mn,jn=c&&(!Dn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Kn(e,t,n,r){Oe(r),0<(t=zr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zn=null,$n=null;function Gn(e){Fr(e,0)}function Xn(e){if($(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){zn&&(zn.detachEvent("onpropertychange",nr),$n=zn=null)}function nr(e){if("value"===e.propertyName&&Xn($n)){var t=[];Kn(t,$n,e,Ee(e)),Le(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn($n)}function ir(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,_r=null,vr=null,gr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==_r||_r!==G(r)||("selectionStart"in(r=_r)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=zr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},xr={},Ar={};function Ir(e){if(xr[e])return xr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ar)return xr[e]=n[t];return e}c&&(Ar=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Or=Ir("animationend"),Tr=Ir("animationiteration"),Sr=Ir("animationstart"),wr=Ir("transitionend"),Pr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Pr.set(e,t),l(t,[e])}for(var Rr=0;Rr<Lr.length;Rr++){var Dr=Lr[Rr];Nr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Nr(Or,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Sr,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(wr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Ve.apply(this,arguments),ke){if(!ke)throw Error(i(198));var c=je;ke=!1,je=null,Fe||(Fe=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,u),i=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[_o];void 0===n&&(n=t[_o]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Vr]){e[Vr]=!0,a.forEach(function(t){"selectionchange"!==t&&(kr.has(t)||Ur(t,!1,e),Ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Yt(t)){case 1:var o=Kt;break;case 4:o=zt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Le(function(){var r=i,o=Ee(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=_n;break;case"focusout":u="blur",l=_n;break;case"beforeblur":case"afterblur":l=_n;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=wn;break;case Or:case Tr:case Sr:l=vn;break;case wr:l=Pn;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ne(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Sn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Eo(l),p=null==u?s:Eo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=$r(p))h++;for(p=0,m=f;m;m=$r(m))p++;for(;0<h-p;)c=$r(c),h--;for(;0<p-h;)f=$r(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==l&&Gr(a,s,l,c,!1),null!==u&&null!==d&&Gr(a,d,u,c,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var _=Yn;else if(Hn(s))if(Qn)_=ar;else{_=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(_=ir);switch(_&&(_=_(e,r))?Kn(a,_,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?Eo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(_r=v,vr=r,gr=null);break;case"focusout":gr=vr=_r=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(jn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(g=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,Wn=!0)),0<(v=zr(r,y)).length&&(y=new bn(y,e,null,n,o),a.push({event:y,listeners:v}),g?y.data=g:null!==(g=Vn(n))&&(y.data=g))),(g=kn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Dn&&Un(e,t)?(e=en(),Zt=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}Fr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ne(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ne(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ne(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,_o="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[ho]||null}var xo=[],Ao=-1;function Io(e){return{current:e}}function Oo(e){0>Ao||(e.current=xo[Ao],xo[Ao]=null,Ao--)}function To(e,t){Ao++,xo[Ao]=e.current,e.current=t}var So={},wo=Io(So),Po=Io(!1),Lo=So;function No(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ro(e){return null!=(e=e.childContextTypes)}function Do(){Oo(Po),Oo(wo)}function Mo(e,t,n){if(wo.current!==So)throw Error(i(168));To(wo,t),To(Po,n)}function ko(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,q(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,Lo=wo.current,To(wo,e),To(Po,Po.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ko(e,t,Lo),r.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(wo),To(wo,e)):Oo(Po),To(Po,n)}var Bo=null,Uo=!1,Vo=!1;function Wo(e){null===Bo?Bo=[e]:Bo.push(e)}function qo(){if(!Vo&&null!==Bo){Vo=!0;var e=0,t=yt;try{var n=Bo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Uo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),$e(Ze,qo),t}finally{yt=t,Vo=!1}}return null}var Ho=[],Ko=0,zo=null,$o=0,Go=[],Xo=0,Yo=null,Qo=1,Jo="";function Zo(e,t){Ho[Ko++]=$o,Ho[Ko++]=zo,zo=e,$o=t}function ei(e,t,n){Go[Xo++]=Qo,Go[Xo++]=Jo,Go[Xo++]=Yo,Yo=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===zo;)zo=Ho[--Ko],Ho[Ko]=null,$o=Ho[--Ko],Ho[Ko]=null;for(;e===Yo;)Yo=Go[--Xo],Go[Xo]=null,Jo=Go[--Xo],Go[Xo]=null,Qo=Go[--Xo],Go[Xo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var _i=b.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function bi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===N&&yi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case C:return(t=Fu(t,e.mode,n)).return=e,t;case N:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case C:return n.key===o?c(e,t,n,r):null;case N:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,_=null;null!==d&&m<s.length;m++){d.index>m?(_=d,d=null):_=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=_);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=_}if(m===s.length)return n(o,d),ii&&Zo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(_=h(d,o,m,s[m],l))&&(e&&null!==_.alternate&&d.delete(null===_.key?m:_.key),i=a(_,i,m),null===c?u=_:c.sibling=_,c=_);return e&&d.forEach(function(e){return t(o,e)}),ii&&Zo(o,m),u}function _(o,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,_=s=0,v=null,g=l.next();null!==m&&!g.done;_++,g=l.next()){m.index>_?(v=m,m=null):v=m.sibling;var y=p(o,m,g.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,_),null===d?c=y:d.sibling=y,d=y,m=v}if(g.done)return n(o,m),ii&&Zo(o,_),c;if(null===m){for(;!g.done;_++,g=l.next())null!==(g=f(o,g.value,u))&&(s=a(g,s,_),null===d?c=g:d.sibling=g,d=g);return ii&&Zo(o,_),c}for(m=r(o,m);!g.done;_++,g=l.next())null!==(g=h(m,o,_,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?_:g.key),s=a(g,s,_),null===d?c=g:d.sibling=g,d=g);return e&&m.forEach(function(e){return t(o,e)}),ii&&Zo(o,_),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===N&&yi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=vi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Mu(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Du(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case C:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fu(a,r.mode,l)).return=r,r=i}return s(r);case N:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(M(a))return _(r,i,a,l);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=ju(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Ei=bi(!0),Ci=bi(!1),xi=Io(null),Ai=null,Ii=null,Oi=null;function Ti(){Oi=Ii=Ai=null}function Si(e){var t=xi.current;Oo(xi),e._currentValue=t}function wi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pi(e,t){Ai=e,Oi=Ii=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Li(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ii){if(null===Ai)throw Error(i(308));Ii=e,Ai.dependencies={lanes:0,firstContext:e}}else Ii=Ii.next=e;return t}var Ni=null;function Ri(e){null===Ni?Ni=[e]:Ni.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ri(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ki=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ui(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Sl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ri(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qi(e,t,n,r){var o=e.updateQueue;ki=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:ki=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);kl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ki={},zi=Io(Ki),$i=Io(Ki),Gi=Io(Ki);function Xi(e){if(e===Ki)throw Error(i(174));return e}function Yi(e,t){switch(To(Gi,t),To($i,e),To(zi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(zi),To(zi,t)}function Qi(){Oo(zi),Oo($i),Oo(Gi)}function Ji(e){Xi(Gi.current);var t=Xi(zi.current),n=le(t,e.type);t!==n&&(To($i,e),To(zi,n))}function Zi(e){$i.current===e&&(Oo(zi),Oo($i))}var ea=Io(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=b.ReactCurrentDispatcher,ia=b.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function _a(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ya(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function ba(e,t){return"function"==typeof t?t(e):t}function Ea(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,kl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,kl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Aa(e,t){var n=sa,r=ya(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ys=!0),r=r.queue,ka(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,La(9,Oa.bind(null,n,r,o,t),void 0,null),null===wl)throw Error(i(349));30&aa||Ia(n,t,o)}return o}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,Sa(t)&&wa(e)}function Ta(e,t,n){return n(function(){Sa(t)&&wa(e)})}function Sa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function wa(e){var t=Mi(e,1);null!==t&&nu(t,e,1,-1)}function Pa(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Na(){return ya().memoizedState}function Ra(e,t,n,r){var o=ga();sa.flags|=e,o.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=La(t,n,i,r))}sa.flags|=e,o.memoizedState=La(1|t,n,i,r)}function Ma(e,t){return Ra(8390656,8,e,t)}function ka(e,t){return Da(2048,8,e,t)}function ja(e,t){return Da(4,2,e,t)}function Fa(e,t){return Da(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Ba.bind(null,t,e),n)}function Va(){}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,kl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ka(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function za(){return ya().memoizedState}function $a(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Ya(t,n);else if(null!==(n=Di(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Ga(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ri(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Li,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Li,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Li,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$a.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Pa,useDebugValue:Va,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ka.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===wl)throw Error(i(349));30&aa||Ia(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ma(Ta.bind(null,r,a,e),[e]),r.flags|=2048,La(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=wl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Li,useCallback:Wa,useContext:Li,useEffect:ka,useImperativeHandle:Ua,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:qa,useReducer:Ea,useRef:Na,useState:function(){return Ea(ba)},useDebugValue:Va,useDeferredValue:function(e){return Ha(ya(),la.memoizedState,e)},useTransition:function(){return[Ea(ba)[0],ya().memoizedState]},useMutableSource:xa,useSyncExternalStore:Aa,useId:za,unstable_isNewReconciler:!1},ts={readContext:Li,useCallback:Wa,useContext:Li,useEffect:ka,useImperativeHandle:Ua,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:qa,useReducer:Ca,useRef:Na,useState:function(){return Ca(ba)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ca(ba)[0],ya().memoizedState]},useMutableSource:xa,useSyncExternalStore:Aa,useId:za,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ui(e,o,r))&&(nu(t,e,r,n),Vi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=So,i=t.contextType;return"object"==typeof i&&null!==i?i=Li(i):(o=Ro(t)?Lo:wo.current,i=(r=null!=(r=t.contextTypes))?No(e,o):So),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Li(i):(i=Ro(t)?Lo:wo.current,o.context=No(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),qi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===zl?zl=new Set([this]):zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Iu.bind(null,e,t,n),t.then(e,e))}function _s(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Ui(n,t,1))),n.lanes|=1),e)}var gs=b.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Ei(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return Pi(t,o),r=_a(e,t,n,r,i,o),n=va(),null===e||ys?(ii&&n&&ti(t),t.flags|=1,bs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Ru(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(ys=!0)}}return Os(e,t,n,r,o)}function As(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Rl,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Rl,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Rl,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Rl,Nl),Nl|=r;return bs(e,t,o,n),t.child}function Is(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,o){var i=Ro(n)?Lo:wo.current;return i=No(t,i),Pi(t,o),n=_a(e,t,n,r,i,o),r=va(),null===e||ys?(ii&&r&&ti(t),t.flags|=1,bs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ts(e,t,n,r,o){if(Ro(n)){var i=!0;jo(t)}else i=!1;if(Pi(t,o),null===t.stateNode)qs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Li(u):u=No(t,u=Ro(n)?Lo:wo.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),ki=!1;var f=t.memoizedState;a.state=f,qi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Po.current||ki?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=ki||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Li(l):l=No(t,l=Ro(n)?Lo:wo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),ki=!1,f=t.memoizedState,a.state=f,qi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Po.current||ki?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=ki||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ss(e,t,n,r,i,o)}function Ss(e,t,n,r,o,i){Is(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Hs(e,t,i);r=t.stateNode,gs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):bs(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function ws(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Yi(e,t.containerInfo)}function Ps(e,t,n,r,o){return hi(),mi(o),t.flags|=256,bs(e,t,n,r),t.child}var Ls,Ns,Rs,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=ku(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ks(n),t.memoizedState=Ms,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=cs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=ku({mode:"visible",children:r.children},o,0,null),(a=Mu(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Ei(t,e.child,null,s),t.child.memoizedState=ks(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=cs(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=wl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Mi(e,o),nu(r,e,o,-1))}return mu(),Bs(e,t,s,r=cs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Xo++]=Qo,Go[Xo++]=Jo,Go[Xo++]=Yo,Qo=e.id,Jo=e.overflow,Yo=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Ru(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Ru(r,s):(s=Mu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?ks(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Ru(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=ku({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mi(r),Ei(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wi(e.return,t,n)}function Vs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function qs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ru(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ru(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zs(t),null;case 1:case 17:return Ro(t.type)&&Do(),zs(t),null;case 3:return r=t.stateNode,Qi(),Oo(Po),Oo(wo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ns(e,t),zs(t),null;case 5:Zi(t);var o=Xi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return zs(t),null}if(e=Xi(zi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Br(Mr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var l in ge(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":z(r),Z(r,a,!0);break;case"textarea":z(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ls(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Br(Mr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=X(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ge(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?_e(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Br("scroll",e):null!=c&&y(e,a,c,l))}switch(n){case"input":z(e),Z(e,r,!1);break;case"textarea":z(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zs(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Xi(Gi.current),Xi(zi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return zs(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zs(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Dl&&(Dl=3):mu())),null!==t.updateQueue&&(t.flags|=4),zs(t),null);case 4:return Qi(),Ns(e,t),null===e&&Wr(t.stateNode.containerInfo),zs(t),null;case 10:return Si(t.type._context),zs(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return zs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ks(a,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Wl&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return zs(t),null}else 2*Qe()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,To(ea,r?1&n|2:1&n),t):(zs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Nl)&&(zs(t),6&t.subtreeFlags&&(t.flags|=8192)):zs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Ro(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Oo(Po),Oo(wo),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Qi(),null;case 10:return Si(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xi(zi.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Au(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Au(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[_o],delete t[vo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ys||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Wt(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Au(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Su.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Au(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_l(t,e),t=t.sibling}function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Au(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Au(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Au(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?_e(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Au(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Au(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Au(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,ml(t,e),Ys=c):ml(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Au(r,n,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){El(f);continue}}null!==h?(h.return=p,Js=h):El(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Au(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Au(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Au(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Js=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var u=Ys;if(Xs=a,(Ys=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Cl(o):null!==l?(l.return=a,Js=l):Cl(o);for(;null!==i;)Js=i,yl(i,t,n),i=i.sibling;Js=o,Xs=s,Ys=u}bl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&ol(t)}catch(e){Au(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Cl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Au(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Au(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Au(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Au(t,a,e)}}}catch(e){Au(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var xl,Al=Math.ceil,Il=b.ReactCurrentDispatcher,Ol=b.ReactCurrentOwner,Tl=b.ReactCurrentBatchConfig,Sl=0,wl=null,Pl=null,Ll=0,Nl=0,Rl=Io(0),Dl=0,Ml=null,kl=0,jl=0,Fl=0,Bl=null,Ul=null,Vl=0,Wl=1/0,ql=null,Hl=!1,Kl=null,zl=null,$l=!1,Gl=null,Xl=0,Yl=0,Ql=null,Jl=-1,Zl=0;function eu(){return 6&Sl?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 1&e.mode?2&Sl&&0!==Ll?Ll&-Ll:null!==_i.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));vt(e,n,r),2&Sl&&e===wl||(e===wl&&(!(2&Sl)&&(jl|=n),4===Dl&&su(e,Ll)),ru(e,r),1===n&&0===Sl&&!(1&t.mode)&&(Wl=Qe()+500,Uo&&qo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===wl?Ll:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Uo=!0,Wo(e)}(lu.bind(null,e)):Wo(lu.bind(null,e)),ao(function(){!(6&Sl)&&qo()}),n=null;else{switch(bt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=wu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,Zl=0,6&Sl)throw Error(i(327));var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=ft(e,e===wl?Ll:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=_u(e,r);else{t=r;var o=Sl;Sl|=2;var a=hu();for(wl===e&&Ll===t||(ql=null,Wl=Qe()+500,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}Ti(),Il.current=a,Sl=o,null!==Pl?t=0:(wl=null,Ll=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=iu(e,o))),1===t)throw n=Ml,fu(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=_u(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ml,fu(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Eu(e,Ul,ql);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Vl+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Eu.bind(null,e,Ul,ql),t);break}Eu(e,Ul,ql);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Al(r/1960))-r)){e.timeoutHandle=ro(Eu.bind(null,e,Ul,ql),r);break}Eu(e,Ul,ql);break;default:throw Error(i(329))}}}return ru(e,Qe()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=_u(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~Fl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Sl)throw Error(i(327));Cu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var n=_u(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ml,fu(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Ul,ql),ru(e,Qe()),null}function uu(e,t){var n=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=n)&&(Wl=Qe()+500,Uo&&qo())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&Sl)&&Cu();var t=Sl;Sl|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(Sl=t))&&qo()}}function du(){Nl=Rl.current,Oo(Rl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Qi(),Oo(Po),Oo(wo),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Oo(ea);break;case 10:Si(r.type._context);break;case 22:case 23:du()}n=n.return}if(wl=e,Pl=e=Ru(e.current,null),Ll=Nl=t,Dl=0,Ml=null,Fl=jl=kl=0,Ul=Bl=null,null!==Ni){for(t=0;t<Ni.length;t++)if(null!==(r=(n=Ni[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ni=null}return e}function pu(e,t){for(;;){var n=Pl;try{if(Ti(),oa.current=Ja,ca){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,Ol.current=null,null===n||null===n.return){Dl=1,Ml=t,Pl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=_s(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var _=new Set;_.add(u),t.updateQueue=_}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=_s(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Dl&&(Dl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,ps(0,u,t));break e;case 1:l=u;var g=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==zl&&zl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function hu(){var e=Il.current;return Il.current=Ja,null===e?Ja:e}function mu(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===wl||!(268435455&kl)&&!(268435455&jl)||su(wl,Ll)}function _u(e,t){var n=Sl;Sl|=2;var r=hu();for(wl===e&&Ll===t||(ql=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Sl=n,Il.current=r,null!==Pl)throw Error(i(261));return wl=null,Ll=0,Dl}function vu(){for(;null!==Pl;)yu(Pl)}function gu(){for(;null!==Pl&&!Xe();)yu(Pl)}function yu(e){var t=xl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?bu(e):Pl=t,Ol.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Dl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,Nl)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Dl&&(Dl=5)}function Eu(e,t,n){var r=yt,o=Tl.transition;try{Tl.transition=null,yt=1,function(e,t,n,r){do{Cu()}while(null!==Gl);if(6&Sl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===wl&&(Pl=wl=null,Ll=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,wu(tt,function(){return Cu(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=1;var l=Sl;Sl|=4,Ol.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var _=m.memoizedProps,v=m.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?_:ns(t.type,_),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(i(163))}}catch(e){Au(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),_l(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,gl(n,e,o),Ye(),Sl=l,yt=s,Tl.transition=a}else e.current=n;if($l&&($l=!1,Gl=e,Xl=o),a=e.pendingLanes,0===a&&(zl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Kl,Kl=null,e;!!(1&Xl)&&0!==e.tag&&Cu(),a=e.pendingLanes,1&a?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,qo()}(e,t,n,r)}finally{Tl.transition=o,yt=r}return null}function Cu(){if(null!==Gl){var e=bt(Xl),t=Tl.transition,n=yt;try{if(Tl.transition=null,yt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Xl=0,6&Sl)throw Error(i(331));var o=Sl;for(Sl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var _=m.child;if(null!==_){m.child=null;do{var v=_.sibling;_.sibling=null,_=v}while(null!==_)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Js=g;break e}Js=a.return}}var y=e.current;for(Js=y;null!==Js;){var b=(s=Js).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,Js=b;else e:for(s=y;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Au(l,l.return,e)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Sl=o,qo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Tl.transition=t}}return!1}function xu(e,t,n){e=Ui(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Au(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zl||!zl.has(r))){t=Ui(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Iu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,wl===e&&(Ll&n)===n&&(4===Dl||3===Dl&&(130023424&Ll)===Ll&&500>Qe()-Vl?fu(e,0):Fl|=n),ru(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Mi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Su(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function wu(e,t){return $e(e,t)}function Pu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Pu(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Mu(n.children,o,a,t);case A:s=8,o|=8;break;case I:return(e=Lu(12,n,t,2|o)).elementType=I,e.lanes=a,e;case w:return(e=Lu(13,n,t,o)).elementType=w,e.lanes=a,e;case P:return(e=Lu(19,n,t,o)).elementType=P,e.lanes=a,e;case R:return ku(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case T:s=9;break e;case S:s=11;break e;case L:s=14;break e;case N:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Mu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function ku(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_t(0),this.expirationTimes=_t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_t(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Vu(e){if(!e)return So;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ro(n))return ko(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Uu(n,r,!0,e,0,i,0,s,l)).context=Vu(null),n=e.current,(i=Bi(r=eu(),o=tu(n))).callback=null!=t?t:null,Ui(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function qu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ui(o,t,a))&&(nu(e,o,a,i),Vi(e,o,a)),a}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function zu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)ys=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:ws(t),hi();break;case 5:Ji(t);break;case 1:Ro(t.type)&&jo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?js(e,t,n):(To(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,As(e,t,n)}return Hs(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var o=No(t,wo.current);Pi(t,n),o=_a(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(r)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ss(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),bs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===S)return 11;if(e===L)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Os(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(ws(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),qi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=Ps(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Is(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return js(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,To(xi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Po.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Bi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),wi(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),wi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pi(t,n),r=r(o=Li(o)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Cs(e,t,r,o=ns(r.type,o),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),qs(e,t),t.tag=1,Ro(r)?(e=!0,jo(t)):e=!1,Pi(t,n),as(t,r,o),ls(t,r,o,n),Ss(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return As(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Hu(a);s.call(e)}}qu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hu(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[mo]=a.current,Wr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[mo]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){qu(t,l,n,r)}),l}(n,t,e,o,r);return Hu(a)}Xu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));qu(e,t,null,null)},Xu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){qu(null,e,null,null)}),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=At();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&jt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(gt(t,1|n),ru(t,Qe()),!(6&Sl)&&(Wl=Qe()+500,qo()))}break;case 13:cu(function(){var t=Mi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),zu(e,1)}},Ct=function(e){if(13===e.tag){var t=Mi(e,134217728);if(null!==t)nu(t,e,134217728,eu());zu(e,134217728)}},xt=function(e){if(13===e.tag){var t=tu(e),n=Mi(e,t);if(null!==n)nu(n,e,t,eu());zu(e,t)}},At=function(){return yt},It=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ce=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));$(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Se=uu,we=cu;var ec={usingClientEntryPoint:!1,Events:[bo,Eo,Co,Oe,Te,uu]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(i(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(i(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},function(e,t,n){e.exports=n(28)},function(){},function(e,t,n){var r=n(7);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t,n){n.r(t),n.d(t,{getCorrectEventName:function(){return s},getCorrectPropertyName:function(){return a}});
329
+ var r=n(0),o=n(62);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!(void 0===window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function _(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var R,j=Object.assign;function F(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case x:return"Portal";case w:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ie(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ce=null,Se=null;function we(e){if(e=bo(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Ce?Se?Se.push(e):Se=[e]:Ce=e}function Te(){if(Ce){var e=Ce,t=Se;if(Se=Ce=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ae(e,t){return e(t)}function Ie(){}var ke=!1;function Ne(e,t,n){if(ke)return e(t,n);ke=!0;try{return Ae(e,t,n)}finally{ke=!1,(null!==Ce||null!==Se)&&(Ie(),Te())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Me=!1}function De(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,je=null,Fe=!1,Be=null,Ue={onError:function(e){Re=!0,je=e}};function Ve(e,t,n,r,o,i,a,s,l){Re=!1,je=null,De.apply(Ue,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(ze(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return qe(o),e;if(a===r)return qe(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Je=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _t=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,xt,Ct,St,wt,Ot=!1,Tt=[],At=null,It=null,kt=null,Nt=new Map,Pt=new Map,Mt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=bo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=_o(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void wt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Ot=!1,null!==At&&Ft(At)&&(At=null),null!==It&&Ft(It)&&(It=null),null!==kt&&Ft(kt)&&(kt=null),Nt.forEach(Bt),Pt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Vt(t,e)}if(0<Tt.length){Vt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Vt(At,e),null!==It&&Vt(It,e),null!==kt&&Vt(kt,e),Nt.forEach(t),Pt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)jt(n),null===n.blockedOn&&Mt.shift()}var Wt=b.ReactCurrentBatchConfig,qt=!0;function Ht(e,t,n,r){var o=_t,i=Wt.transition;Wt.transition=null;try{_t=1,Kt(e,t,n,r)}finally{_t=o,Wt.transition=i}}function $t(e,t,n,r){var o=_t,i=Wt.transition;Wt.transition=null;try{_t=4,Kt(e,t,n,r)}finally{_t=o,Wt.transition=i}}function Kt(e,t,n,r){if(qt){var o=Xt(e,t,n,r);if(null===o)qr(e,t,r,Gt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=Rt(At,e,t,n,r,o),!0;case"dragenter":return It=Rt(It,e,t,n,r,o),!0;case"mouseover":return kt=Rt(kt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,Rt(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Rt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=bo(o);if(null!==i&&Et(i),null===(i=Xt(e,t,n,r))&&qr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Gt=null;function Xt(e,t,n,r){if(Gt=null,null!==(e=_o(e=Ee(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),vn=on(j({},dn,{relatedTarget:0})),yn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=on(gn),bn=on(j({},un,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function wn(){return Sn}var On=j({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(On),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),kn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Nn),Mn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Rn=c&&"TextEvent"in window&&!Dn,jn=c&&(!Ln||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Oe(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Kn=null;function Gn(e){Fr(e,0)}function Xn(e){if(K(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Qn=Zn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Kn=$n=null)}function nr(e){if("value"===e.propertyName&&Xn(Kn)){var t=[];Hn(t,Kn,e,Ee(e)),Ne(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Kn)}function ir(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,_r=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==vr||vr!==G(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=$r(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Cr={},Sr={};function wr(e){if(Cr[e])return Cr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Cr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=wr("animationend"),Tr=wr("animationiteration"),Ar=wr("animationstart"),Ir=wr("transitionend"),kr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){kr.set(e,t),l(t,[e])}for(var Mr=0;Mr<Nr.length;Mr++){var Lr=Nr[Mr];Pr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Pr(Or,"onAnimationEnd"),Pr(Tr,"onAnimationIteration"),Pr(Ar,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Ir,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Ve.apply(this,arguments),Re){if(!Re)throw Error(i(198));var c=je;Re=!1,je=null,Fe||(Fe=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,u),i=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Vr]){e[Vr]=!0,a.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Ht;break;case 4:o=$t;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=_o(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ne(function(){var r=i,o=Ee(n),a=[];e:{var s=kr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Or:case Tr:case Ar:l=yn;break;case Ir:l=kn;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&c.push(Hr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!_o(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?_o(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Eo(l),p=null==u?s:Eo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,_o(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==l&&Gr(a,s,l,c,!1),null!==u&&null!==d&&Gr(a,d,u,c,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Yn;else if(qn(s))if(Jn)v=ar;else{v=or;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?Eo(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,br(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(a,n,o)}var g;if(Ln)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else zn?Un(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(jn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==_?"onCompositionEnd"===_&&zn&&(g=en()):(Qt="value"in(Jt=o)?Jt.value:Jt.textContent,zn=!0)),0<(y=$r(r,_)).length&&(_=new bn(_,e,null,n,o),a.push({event:_,listeners:y}),g?_.data=g:null!==(g=Vn(n))&&(_.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Ln&&Un(e,t)?(e=en(),Zt=Qt=Jt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}Fr(a,t)})}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Pe(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Yr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,yo="__reactListeners$"+fo,go="__reactHandles$"+fo;function _o(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var Co=[],So=-1;function wo(e){return{current:e}}function Oo(e){0>So||(e.current=Co[So],Co[So]=null,So--)}function To(e,t){So++,Co[So]=e.current,e.current=t}var Ao={},Io=wo(Ao),ko=wo(!1),No=Ao;function Po(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function Lo(){Oo(ko),Oo(Io)}function Do(e,t,n){if(Io.current!==Ao)throw Error(i(168));To(Io,t),To(ko,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,No=Io.current,To(Io,e),To(ko,ko.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,Oo(ko),Oo(Io),To(Io,e)):Oo(ko),To(ko,n)}var Bo=null,Uo=!1,Vo=!1;function zo(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!Vo&&null!==Bo){Vo=!0;var e=0,t=_t;try{var n=Bo;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Uo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ke(Ze,Wo),t}finally{_t=t,Vo=!1}}return null}var qo=[],Ho=0,$o=null,Ko=0,Go=[],Xo=0,Yo=null,Jo=1,Qo="";function Zo(e,t){qo[Ho++]=Ko,qo[Ho++]=$o,$o=e,Ko=t}function ei(e,t,n){Go[Xo++]=Jo,Go[Xo++]=Qo,Go[Xo++]=Yo,Yo=e;var r=Jo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Jo=1<<i|n<<o|r,Qo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=qo[--Ho],qo[Ho]=null,Ko=qo[--Ho],qo[Ho]=null;for(;e===Yo;)Yo=Go[--Xo],Go[Xo]=null,Qo=Go[--Xo],Go[Xo]=null,Jo=Go[--Xo],Go[Xo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Jo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=b.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _i(e){return(0,e._init)(e._payload)}function bi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===P&&_i(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Du(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case x:return(t=Fu(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Du(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var y=p(o,d,s[m],l);if(null===y){null===d&&(d=v);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,d=v}if(m===s.length)return n(o,d),ii&&Zo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(o,e)}),ii&&Zo(o,m),u}function v(o,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,v=s=0,y=null,g=l.next();null!==m&&!g.done;v++,g=l.next()){m.index>v?(y=m,m=null):y=m.sibling;var _=p(o,m,g.value,u);if(null===_){null===m&&(m=y);break}e&&m&&null===_.alternate&&t(o,m),s=a(_,s,v),null===d?c=_:d.sibling=_,d=_,m=y}if(g.done)return n(o,m),ii&&Zo(o,v),c;if(null===m){for(;!g.done;v++,g=l.next())null!==(g=f(o,g.value,u))&&(s=a(g,s,v),null===d?c=g:d.sibling=g,d=g);return ii&&Zo(o,v),c}for(m=r(o,m);!g.done;v++,g=l.next())null!==(g=h(m,o,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=a(g,s,v),null===d?c=g:d.sibling=g,d=g);return e&&m.forEach(function(e){return t(o,e)}),ii&&Zo(o,v),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===C){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&_i(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===C?((i=Du(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Lu(a.type,a.key,a.props,null,r.mode,l)).ref=yi(r,i,a),l.return=r,r=l)}return s(r);case x:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fu(a,r.mode,l)).return=r,r=i}return s(r);case P:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(D(a))return v(r,i,a,l);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=ju(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Ei=bi(!0),xi=bi(!1),Ci=wo(null),Si=null,wi=null,Oi=null;function Ti(){Oi=wi=Si=null}function Ai(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function Ii(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ki(e,t){Si=e,Oi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_s=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Si)throw Error(i(308));wi=e,Si.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Mi(e){null===Pi?Pi=[e]:Pi.push(e)}function Li(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Di(e,r)}function Di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ui(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Di(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Di(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function zi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Ri=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rl|=a,e.lanes=a,e.memoizedState=d}}function qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Hi={},$i=wo(Hi),Ki=wo(Hi),Gi=wo(Hi);function Xi(e){if(e===Hi)throw Error(i(174));return e}function Yi(e,t){switch(To(Gi,t),To(Ki,e),To($i,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo($i),To($i,t)}function Ji(){Oo($i),Oo(Ki),Oo(Gi)}function Qi(e){Xi(Gi.current);var t=Xi($i.current),n=le(t,e.type);t!==n&&(To(Ki,e),To($i,n))}function Zi(e){Ki.current===e&&(Oo($i),Oo(Ki))}var ea=wo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=b.ReactCurrentDispatcher,ia=b.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Qa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(i(300));return e}function ya(){var e=0!==fa;return fa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function _a(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function ba(e,t){return"function"==typeof t?t(e):t}function Ea(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Rl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Rl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Sa(e,t){var n=sa,r=_a(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,_s=!0),r=r.queue,Ra(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Na(9,Oa.bind(null,n,r,o,t),void 0,null),null===Il)throw Error(i(349));30&aa||wa(n,t,o)}return o}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Ia(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Ia(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ia(e){var t=Di(e,1);null!==t&&nu(t,e,1,-1)}function ka(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return _a().memoizedState}function Ma(e,t,n,r){var o=ga();sa.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var o=_a();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}sa.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Da(e,t){return Ma(8390656,8,e,t)}function Ra(e,t){return La(2048,8,e,t)}function ja(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,Ba.bind(null,t,e),n)}function Va(){}function za(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qa(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n)}function Ha(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{_t=n,ia.transition=r}}function $a(){return _a().memoizedState}function Ka(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Ya(t,n);else if(null!==(n=Li(e,t,n,r))){nu(n,e,r,eu()),Ja(n,t,r)}}function Ga(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Li(e,t,o,r))&&(nu(n,e,r,o=eu()),Ja(n,t,r))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Qa={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:ka,useDebugValue:Va,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=ka(!1),t=e[0];return e=Ha.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Il)throw Error(i(349));30&aa||wa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Da(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Il.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ni,useCallback:za,useContext:Ni,useEffect:Ra,useImperativeHandle:Ua,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:Wa,useReducer:Ea,useRef:Pa,useState:function(){return Ea(ba)},useDebugValue:Va,useDeferredValue:function(e){return qa(_a(),la.memoizedState,e)},useTransition:function(){return[Ea(ba)[0],_a().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:$a,unstable_isNewReconciler:!1},ts={readContext:Ni,useCallback:za,useContext:Ni,useEffect:Ra,useImperativeHandle:Ua,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:Wa,useReducer:xa,useRef:Pa,useState:function(){return xa(ba)},useDebugValue:Va,useDeferredValue:function(e){var t=_a();return null===la?t.memoizedState=e:qa(t,la.memoizedState,e)},useTransition:function(){return[xa(ba)[0],_a().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:$a,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ui(e,o,r))&&(nu(t,e,r,n),Vi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Mo(t)?No:Io.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Mo(t)?No:Io.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),ds(0,t)},n}function hs(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===$l?$l=new Set([this]):$l.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=wu.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Ui(n,t,1))),n.lanes|=1),e)}var gs=b.ReactCurrentOwner,_s=!1;function bs(e,t,n,r){t.child=null===e?xi(t,null,n,r):Ei(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return ki(t,o),r=va(e,t,n,r,i,o),n=ya(),null===e||_s?(ii&&n&&ti(t),t.flags|=1,bs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return qs(e,t,o)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,qs(e,t,o);131072&e.flags&&(_s=!0)}}return Os(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ml,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ml,Pl),Pl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ml,Pl),Pl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ml,Pl),Pl|=r;return bs(e,t,o,n),t.child}function ws(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,o){var i=Mo(n)?No:Io.current;return i=Po(t,i),ki(t,o),n=va(e,t,n,r,i,o),r=ya(),null===e||_s?(ii&&r&&ti(t),t.flags|=1,bs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ts(e,t,n,r,o){if(Mo(n)){var i=!0;jo(t)}else i=!1;if(ki(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ni(u):u=Po(t,u=Mo(n)?No:Io.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Ri=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||ko.current||Ri?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ri||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ni(l):l=Po(t,l=Mo(n)?No:Io.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Ri=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||ko.current||Ri?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Ri||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){ws(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),qs(e,t,i);r=t.stateNode,gs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):bs(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),Yi(e,t.containerInfo)}function ks(e,t,n,r,o){return hi(),mi(o),t.flags|=256,bs(e,t,n,r),t.child}var Ns,Ps,Ms,Ls,Ds={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Ru(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Du(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Ds,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=cs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ru({mode:"visible",children:r.children},o,0,null),(a=Du(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Ei(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Ds,a);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=cs(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),_s||l){if(null!==(r=Il)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Di(e,o),nu(r,e,o,-1))}return mu(),Bs(e,t,s,r=cs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Xo++]=Jo,Go[Xo++]=Qo,Go[Xo++]=Yo,Jo=e.id,Qo=e.overflow,Yo=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Mu(r,s):(s=Du(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,o}return e=(s=e.child).sibling,o=Mu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mi(r),Ei(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ii(e.return,t,n)}function Vs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return Mo(t.type)&&Lo(),$s(t),null;case 3:return r=t.stateNode,Ji(),Oo(ko),Oo(Io),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ps(e,t),$s(t),null;case 5:Zi(t);var o=Xi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $s(t),null}if(e=Xi($i.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)Br(Dr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var l in ge(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":$(r),Z(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=_e(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)Br(Dr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=X(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ge(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Br("scroll",e):null!=c&&_(e,a,c,l))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Xi(Gi.current),Xi($i.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return $s(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return Ji(),Ps(e,t),null===e&&zr(t.stateNode.containerInfo),$s(t),null;case 10:return Ai(t.type._context),$s(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return $s(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>zl&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return $s(t),null}else 2*Je()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ea.current,To(ea,r?1&n|2:1&n),t):($s(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Pl)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),Oo(ko),Oo(Io),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Ji(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xi($i.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,Js="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[yo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ys||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),zt(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(o,a),_e(l,s);var c=_e(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):_(o,d,f,c)}switch(l){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Je())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,ml(t,e),Ys=c):ml(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(h=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){El(f);continue}}null!==h?(h.return=p,Qs=h):El(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),yl(e),4&r&&hl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Qs=e,_l(e,t,n)}function _l(e,t,n){for(var r=!!(1&e.mode);null!==Qs;){var o=Qs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var u=Ys;if(Xs=a,(Ys=l)&&!u)for(Qs=o;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Qs=l):xl(o);for(;null!==i;)Qs=i,_l(i,t,n),i=i.sibling;Qs=o,Xs=s,Ys=u}bl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Qs=i):bl(e)}}function bl(e){for(;null!==Qs;){var t=Qs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&qi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function El(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var Cl,Sl=Math.ceil,wl=b.ReactCurrentDispatcher,Ol=b.ReactCurrentOwner,Tl=b.ReactCurrentBatchConfig,Al=0,Il=null,kl=null,Nl=0,Pl=0,Ml=wo(0),Ll=0,Dl=null,Rl=0,jl=0,Fl=0,Bl=null,Ul=null,Vl=0,zl=1/0,Wl=null,ql=!1,Hl=null,$l=null,Kl=!1,Gl=null,Xl=0,Yl=0,Jl=null,Ql=-1,Zl=0;function eu(){return 6&Al?Je():-1!==Ql?Ql:Ql=Je()}function tu(e){return 1&e.mode?2&Al&&0!==Nl?Nl&-Nl:null!==vi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=_t)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Jl=null,Error(i(185));yt(e,n,r),2&Al&&e===Il||(e===Il&&(!(2&Al)&&(jl|=n),4===Ll&&su(e,Nl)),ru(e,r),1===n&&0===Al&&!(1&t.mode)&&(zl=Je()+500,Uo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Il?Nl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Uo=!0,zo(e)}(lu.bind(null,e)):zo(lu.bind(null,e)),ao(function(){!(6&Al)&&Wo()}),n=null;else{switch(bt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Iu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Ql=-1,Zl=0,6&Al)throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===Il?Nl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=Al;Al|=2;var a=hu();for(Il===e&&Nl===t||(Wl=null,zl=Je()+500,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}Ti(),wl.current=a,Al=o,null!==kl?t=0:(Il=null,Nl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=iu(e,o))),1===t)throw n=Dl,fu(e,0),su(e,r),ru(e,Je()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Dl,fu(e,0),su(e,r),ru(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Eu(e,Ul,Wl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Vl+500-Je())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Eu.bind(null,e,Ul,Wl),t);break}Eu(e,Ul,Wl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(Eu.bind(null,e,Ul,Wl),r);break}Eu(e,Ul,Wl);break;default:throw Error(i(329))}}}return ru(e,Je()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~Fl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(i(327));xu();var t=ft(e,0);if(!(1&t))return ru(e,Je()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Dl,fu(e,0),su(e,t),ru(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Ul,Wl),ru(e,Je()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(zl=Je()+500,Uo&&Wo())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&Al)&&xu();var t=Al;Al|=1;var n=Tl.transition,r=_t;try{if(Tl.transition=null,_t=1,e)return e()}finally{_t=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Pl=Ml.current,Oo(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==kl)for(n=kl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Ji(),Oo(ko),Oo(Io),ra();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Oo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Il=e,kl=e=Mu(e.current,null),Nl=Pl=t,Ll=0,Dl=null,Fl=jl=Rl=0,Ul=Bl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function pu(e,t){for(;;){var n=kl;try{if(Ti(),oa.current=Qa,ca){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,Ol.current=null,null===n||null===n.return){Ll=1,Dl=t,kl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Nl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=vs(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Ll&&(Ll=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,ps(0,u,t));break e;case 1:l=u;var g=a.type,_=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==$l&&$l.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(e){t=e,kl===n&&null!==n&&(kl=n=n.return);continue}break}}function hu(){var e=wl.current;return wl.current=Qa,null===e?Qa:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Il||!(268435455&Rl)&&!(268435455&jl)||su(Il,Nl)}function vu(e,t){var n=Al;Al|=2;var r=hu();for(Il===e&&Nl===t||(Wl=null,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}if(Ti(),Al=n,wl.current=r,null!==kl)throw Error(i(261));return Il=null,Nl=0,Ll}function yu(){for(;null!==kl;)_u(kl)}function gu(){for(;null!==kl&&!Xe();)_u(kl)}function _u(e){var t=Cl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?bu(e):kl=t,Ol.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(kl=n);if(null===e)return Ll=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Pl)))return void(kl=n);if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===Ll&&(Ll=5)}function Eu(e,t,n){var r=_t,o=Tl.transition;try{Tl.transition=null,_t=1,function(e,t,n,r){do{xu()}while(null!==Gl);if(6&Al)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Il&&(kl=Il=null,Nl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Iu(tt,function(){return xu(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=_t;_t=1;var l=Al;Al|=4,Ol.current=null,function(e,t){if(eo=qt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},qt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,y=m.memoizedState,g=t.stateNode,_=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(i(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,n),vl(n,e),hr(to),qt=!!eo,to=eo=null,e.current=n,gl(n,e,o),Ye(),Al=l,_t=s,Tl.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Xl=o),a=e.pendingLanes,0===a&&($l=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ql)throw ql=!1,e=Hl,Hl=null,e;!!(1&Xl)&&0!==e.tag&&xu(),a=e.pendingLanes,1&a?e===Jl?Yl++:(Yl=0,Jl=e):Yl=0,Wo()}(e,t,n,r)}finally{Tl.transition=o,_t=r}return null}function xu(){if(null!==Gl){var e=bt(Xl),t=Tl.transition,n=_t;try{if(Tl.transition=null,_t=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Xl=0,6&Al)throw Error(i(331));var o=Al;for(Al|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(16&Qs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var p=(d=Qs).sibling,h=d.return;if(il(d),d===c){Qs=null;break}if(null!==p){p.return=h,Qs=p;break}Qs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}Qs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(2048&(a=Qs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Qs=g;break e}Qs=a.return}}var _=e.current;for(Qs=_;null!==Qs;){var b=(s=Qs).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,Qs=b;else e:for(s=_;null!==Qs;){if(2048&(l=Qs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Qs=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Qs=E;break e}Qs=l.return}}if(Al=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{_t=n,Tl.transition=t}}return!1}function Cu(e,t,n){e=Ui(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$l||!$l.has(r))){t=Ui(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function wu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Nl&n)===n&&(4===Ll||3===Ll&&(130023424&Nl)===Nl&&500>Je()-Vl?fu(e,0):Fl|=n),ru(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Di(e,t))&&(yt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Iu(e,t){return Ke(e,t)}function ku(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,r){return new ku(e,t,n,r)}function Pu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Pu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Du(n.children,o,a,t);case S:s=8,o|=8;break;case w:return(e=Nu(12,n,t,2|o)).elementType=w,e.lanes=a,e;case I:return(e=Nu(13,n,t,o)).elementType=I,e.lanes=a,e;case k:return(e=Nu(19,n,t,o)).elementType=k,e.lanes=a,e;case M:return Ru(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case T:s=9;break e;case A:s=11;break e;case N:s=14;break e;case P:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nu(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Du(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Vu(e){if(!e)return Ao;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return Ro(e,n,t)}return t}function zu(e,t,n,r,o,i,a,s,l){return(e=Uu(n,r,!0,e,0,i,0,s,l)).context=Vu(null),n=e.current,(i=Bi(r=eu(),o=tu(n))).callback=null!=t?t:null,Ui(n,i,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ui(o,t,a))&&(nu(e,o,a,i),Vi(e,o,a)),a}function qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $u(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ko.current)_s=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Is(t),hi();break;case 5:Qi(t);break;case 1:Mo(t.type)&&jo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?js(e,t,n):(To(ea,1&ea.current),null!==(e=qs(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return qs(e,t,n)}(e,t,n);_s=!!(131072&e.flags)}else _s=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var o=Po(t,Io.current);ki(t,n),o=va(null,t,r,e,o,n);var a=ya();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),bs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pu(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Os(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=xs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Is(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),Wi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=ks(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=ks(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=qs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return Qi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),ws(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return js(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,To(Ci,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!ko.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Bi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ii(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ii(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ki(t,n),r=r(o=Ni(o)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),xs(e,t,r,o=ns(r.type,o),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Ws(e,t),t.tag=1,Mo(r)?(e=!0,jo(t)):e=!1,ki(t,n),as(t,r,o),ls(t,r,o,n),As(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=qu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=qu(a);i.call(e)}}var a=zu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=a,e[mo]=a.current,zr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=qu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=l,e[mo]=l.current,zr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,o,r);return qu(a)}Xu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wu(e,t,null,null)},Xu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&jt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(gt(t,1|n),ru(t,Je()),!(6&Al)&&(zl=Je()+500,Wo()))}break;case 13:cu(function(){var t=Di(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),$u(e,1)}},xt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nu(t,e,134217728,eu());$u(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tu(e),n=Di(e,t);if(null!==n)nu(n,e,t,eu());$u(e,t)}},St=function(){return _t},wt=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},xe=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));K(r),Q(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uu,Ie=cu;var ec={usingClientEntryPoint:!1,Events:[bo,Eo,xo,Oe,Te,uu]},tc={findFiberByHostInstance:_o,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,zr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(i(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=zu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(i(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(i(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},function(e,t,n){e.exports=n(30)},function(){},function(e,t,n){var r=n(7);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t,n){n.r(t),n.d(t,{getCorrectEventName:function(){return s},getCorrectPropertyName:function(){return a}});
330
330
  /**
331
331
  * @license
332
332
  * Copyright 2016 Google Inc.
@@ -372,7 +372,7 @@ var r={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{
372
372
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
373
373
  * THE SOFTWARE.
374
374
  */
375
- var r={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},o={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},i={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(65),a=n(3),s=n(103),l=n(104),u=n(105),c={bottomEnd:"BOTTOM_END",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT",bottomStart:"BOTTOM_START",topEnd:"TOP_END",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",topStart:"TOP_START"},d=(e,t)=>{const[n,r]=o.useState(e.open),i=o.useRef(null),u=o.useRef(null),d=o.useRef(null),f=o.useRef(null),{foundation:p,...h}=a.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e,rootEl:t})=>({setAnchorCorner:t=>e.setAnchorCorner(t),setAnchorElement:e=>d.current=e,setOpen:e=>r(e),getSurfaceElement:()=>t.ref}),foundation:({rootEl:e,getProps:t,emit:n})=>{const o=e=>{p.handleBodyClick(e)},i=()=>{document.body.removeEventListener("click",o),document.body.removeEventListener("touchstart",o)},c=new s.MDCMenuSurfaceFoundation({addClass:t=>{e.addClass(t)},removeClass:t=>{e.removeClass(t)},hasClass:t=>"mdc-menu-surface"===t||e.hasClass(t),hasAnchor:()=>!!d.current,notifyClose:()=>{i(),r(!1)},notifyClosing:()=>n(s.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT,{}),notifyOpen:()=>{n("onOpen",{}),setTimeout(()=>{document.body.addEventListener("click",o),document.body.addEventListener("touchstart",o)},150)},notifyOpening:()=>n(s.MDCMenuSurfaceFoundation.strings.OPENING_EVENT,{}),isElementInContainer:t=>e.ref===t||!!e.ref&&e.ref.contains(t),isRtl:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).getPropertyValue("direction"),setTransformOrigin:t=>{const n=`${l.getCorrectPropertyName(window,"transform")}-origin`;e.setStyle(n,t)},isFocused:()=>document.activeElement===e.ref,saveFocus:()=>{u.current=document.activeElement},restoreFocus:()=>{e.ref&&e.ref.contains(document.activeElement)&&u.current&&u.current.focus&&u.current.focus()},getInnerDimensions:()=>({width:e.ref?e.ref.offsetWidth:0,height:e.ref?e.ref.offsetHeight:0}),getAnchorDimensions:()=>{var e;return(null==(e=d.current)?void 0:e.getBoundingClientRect())||a.emptyClientRect},getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{e.setStyle("left",void 0!==t.left?t.left:null),e.setStyle("right",void 0!==t.right?t.right:null),e.setStyle("top",void 0!==t.top?t.top:null),e.setStyle("bottom",void 0!==t.bottom?t.bottom:null)},setMaxHeight:t=>{e.setStyle("maxHeight",t)}}),h=c.close.bind(c);c.close=(e=!1)=>{n("onClose",{}),f.current=window.setTimeout(()=>{t().open||h(e)})};const m=c.destroy.bind(c);return c.destroy=()=>{i(),m()},c}}),{rootEl:m}=h,{onKeyDown:_}=e,v=o.useCallback(e=>{null==_||_(e),p.handleKeydown(e)},[_,p]);return m.setProp("onKeyDown",v,!0),o.useEffect(()=>{p.setFixedPosition(!!e.fixed)},[e.fixed,p]),o.useEffect(()=>{const e=(null==t?void 0:t.current)||m.ref;if(e){const t=a.closest(e,`.${s.MDCMenuSurfaceFoundation.cssClasses.ANCHOR}`);t&&(d.current=t)}},[t,m.ref]),o.useEffect(()=>{e.renderToPortal?p.setIsHoisted(!0):p.setIsHoisted(!1);const t=e.renderToPortal?()=>{try{p.autoposition()}catch{}}:()=>{};return a.raf(()=>{p.isOpen()}),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.renderToPortal,p]),o.useEffect(()=>{const t=e.anchorCorner&&(e=>s.MDCMenuSurfaceFoundation.Corner[c[e]])(e.anchorCorner);if(void 0!==t){p.setAnchorCorner(t),p.dimensions=p.adapter.getInnerDimensions();try{p.autoposition()}catch{}}},[e.anchorCorner,p]),o.useEffect(()=>{if(n){const e=m.ref?m.ref.querySelectorAll(s.MDCMenuSurfaceFoundation.strings.FOCUSABLE_ELEMENTS):[];i.current=e.length>0?e[0]:null,p.open()}else p.isOpen()&&p.close()},[n,p,m.ref]),o.useEffect(()=>{r(!!e.open)},[e.open]),o.useEffect(()=>()=>{f.current&&window.clearTimeout(f.current)},[]),{...h}},f=a.createComponent(function(e,t){const{children:n,open:i,anchorCorner:s,onOpen:l,onClose:u,renderToPortal:c,fixed:f,apiRef:p,foundationRef:h,...m}=e,_=o.useRef(null),{rootEl:v}=d(e,_),g=a.useClassNames(e,["mdc-menu-surface",{"mdc-menu-surface--fixed":f}]);return r.jsx(r.Fragment,{children:r.jsx(a.PortalChild,{renderTo:c,menuSurfaceDomPositionRef:_,children:r.jsx(a.Tag,{...m,element:v,className:g,ref:t,children:n})})})}),p=a.createComponent(function(e,t){const n=a.useClassNames(e,["mdc-menu-surface--anchor"]);return r.jsx(a.Tag,{...e,className:n,ref:t})}),h=a.createComponent(function(e,t){const n=a.useClassNames(e,["mdc-list mdc-menu__items"]);return r.jsx(i.List,{role:"menu",...e,className:n,ref:t})});h.displayName="MenuItems";const m=a.createComponent(function(e,t){return r.jsx(i.ListItem,{role:"menuitem",tabIndex:0,...e,ref:t})}),_=e=>"MenuItems"===a.getDisplayName(e),v=a.createComponent(function(e,t){const{children:n,focusOnOpen:i,onSelect:s,foundationRef:l,...c}=e,{rootEl:d,setListApi:p,setMenuSurfaceApi:m}=(e=>{const t=o.useRef(),n=o.useRef(),r=o.useCallback(()=>{var e;return(null==(e=n.current)?void 0:e.listElements())||[]},[]),{foundation:i,...s}=a.useFoundation({props:{...e,apiRef:void 0},elements:{rootEl:!0},foundation:({emit:e})=>new u.MDCMenuFoundation({addClassToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.addClassToElementIndex(...e)},removeClassFromElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.removeClassFromElementAtIndex(...e)},addAttributeToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.setAttributeForElementIndex(...e)},removeAttributeFromElementAtIndex:(e,t)=>{r()[e].removeAttribute(t)},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{var e;null==(e=t.current)||e.setOpen(!1)},getElementIndex:e=>r().indexOf(e),notifySelected:t=>e("onSelect",{index:t.index,item:r()[t.index]}),getMenuItemCount:()=>{var e;return(null==(e=n.current)?void 0:e.getListItemCount())||0},focusItemAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.focusItemAtIndex(...e)},focusListRoot:()=>{var e;return null==(e=n.current)?void 0:e.focusRoot()}})}),{rootEl:l}=s,{onClick:c}=e,d=o.useCallback(e=>{null==c||c(e);const t=a.closest(e.target,".mdc-deprecated-list-item");t&&i.handleItemAction(t)},[i,c]),{onKeyDown:f}=e,p=o.useCallback(e=>{null==f||f(e),i.handleKeydown(e),13===e.which&&e.target instanceof Element&&n.current&&e.target.classList.contains(n.current.getClasses())&&i.handleItemAction(e.target)},[i,f]),{onOpen:h,focusOnOpen:m}=e,_=o.useCallback(e=>{const t=r();(m||void 0===m)&&t.length>0&&!t.some(e=>e===document.activeElement)&&t[0].focus(),null==h||h(e)},[h,m,r]);l.setProp("onKeyDown",p,!0),l.setProp("onClick",d,!0),l.setProp("onOpen",_,!0);const v=n.current&&t.current&&e.apiRef;return o.useEffect(()=>{n.current&&t.current&&e.apiRef&&e.apiRef({...n.current,...t.current,items:r})},[v,r]),{setListApi:e=>{n.current=e},setMenuSurfaceApi:e=>{t.current=e},...s}})(e),v=(o.Children.map(n,_)||[]).every(e=>!1===e),g={apiRef:p};return r.jsx(f,{...d.props(c),className:a.classNames("mdc-menu",c.className),apiRef:m,ref:t,children:v?r.jsx(h,{...g,children:n}):o.Children.map(n,e=>_(e)?o.cloneElement(e,{...o.isValidElement(e)?e.props:{},...g}):e)})}),g=e=>function(t){const[n,i]=o.useState(!!t.open);o.useEffect(()=>{void 0!==t.open&&t.open!==n&&i(!!t.open)},[t.open,n]);const{handle:a,onClose:s,children:l,rootProps:u={},open:c,foundationRef:d,...f}=t,h=o.cloneElement(a,{...a.props,onClick:e=>{i(!n),a.props.onClick&&a.props.onClick(e)}}),m=e;return r.jsxs(p,{...u,children:[r.jsx(m,{...f,onClose:e=>{i(!!c||!1),null==s||s(e)},open:n,children:l}),h]})},y=g(v),b=g(f);t.Menu=v,t.MenuItem=m,t.MenuItems=h,t.MenuSurface=f,t.MenuSurfaceAnchor=p,t.SimpleMenu=y,t.SimpleMenuSurface=b},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(102),s=n(23),l=n(24);const u=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}(o),c=e=>{if(!e)return!1;const t=e.getAttribute("tabindex");return!!(t&&Number(t)>=0)&&(e.focus(),!0)},d=(e,t)=>{if(!e)return null;const n=t?e.previousElementSibling:e.nextElementSibling;return null===n?d(e.parentElement,t):n},f=class extends o.Component{constructor(e){super(e),this.childContainer=null,this.root=null,this.rafId=null,this.timerId=null,this.state={open:!!this.props.defaultOpen||!!this.props.open,childrenStyle:{}},this.handleClick=this.handleClick.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.handleFocus=this.handleFocus.bind(this)}static getDerivedStateFromProps(e,t){return void 0!==e.open&&e.open!==t.open?{...t,open:e.open}:t}componentDidMount(){this.syncOpenState()}componentDidUpdate(e,t){t.open!==this.state.open&&this.syncOpenState()}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId),this.timerId&&window.clearTimeout(this.timerId)}syncOpenState(){const{onOpen:e,onClose:t}=this.props,n={maxHeight:this.childContainer?`${this.childContainer.offsetHeight}px`:"0px"};this.setState({childrenStyle:n},()=>{this.state.open?(e&&e(),this.timerId=window.setTimeout(()=>{this.state.open&&this.setState({childrenStyle:{maxHeight:"none"}})},300)):(t&&t(),this.rafId=window.requestAnimationFrame(()=>{this.setState({childrenStyle:{}})}))})}correctFocus(e){this.rafId=window.requestAnimationFrame(()=>{if(!this.state.open&&this.root&&this.root.contains(document.activeElement)){const t=d(this.root,e);if(c(t))return;if(t){const e=t.querySelectorAll("[tabindex]");for(let t=0;t<e.length&&!c(e[t]);t++);}}})}toggleOpen(e){this.setState({open:e})}handleClick(e){const{handle:t}=this.props;t.props.onClick&&t.props.onClick(e),this.toggleOpen(!this.state.open)}handleKeydown(e){const{handle:t}=this.props;switch(t.props.onKeyDown&&t.props.onKeyDown(e),e.key){case"Enter":return void this.toggleOpen(!this.state.open);case"ArrowRight":return void this.toggleOpen(!0);case"ArrowUp":case"ArrowDown":case"Tab":const t=e.shiftKey||"ArrowUp"===e.key;return void this.correctFocus(t);case"ArrowLeft":return void this.toggleOpen(!1)}}handleFocus(e){if(!this.state.open&&this.root&&this.childContainer&&this.childContainer.contains(document.activeElement)){const e=this.root.querySelector(".rmwc-collapsible-list__handle .mdc-deprecated-list-item");e&&e.focus()}}render(){const{children:e,handle:t,onOpen:n,onClose:a,open:s,defaultOpen:l,className:u,...c}=this.props,{open:d,childrenStyle:f}=this.state;return r.jsxs(i.Tag,{...c,onFocus:this.handleFocus,ref:e=>this.root=e,className:i.classNames("rmwc-collapsible-list",u,{"rmwc-collapsible-list--open":d}),children:[r.jsx("div",{className:"rmwc-collapsible-list__handle",children:o.cloneElement(t,{...t.props,onClick:this.handleClick,onKeyDown:this.handleKeydown})}),r.jsx("div",{className:"rmwc-collapsible-list__children",style:f,children:r.jsx("div",{className:"rmwc-collapsible-list__children-inner",ref:e=>this.childContainer=e,children:e})})]})}};f.displayName="CollapsibleList";let p=f;const h=e=>{const t=o.useCallback(e=>e?[].slice.call(e.querySelectorAll(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS]}`)):[],[]),[n,r]=o.useState({}),[s,l]=o.useState(void 0),{foundation:u,...c}=i.useFoundation({props:e,api:({rootEl:e,foundation:n})=>{const r=n.adapter;return{listElements:()=>t(e.ref),focusRoot:()=>null==e?void 0:e.ref.focus(),getClasses:()=>a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS],addClassToElementIndex:r.addClassForElementIndex,removeClassFromElementAtIndex:r.removeClassForElementIndex,setAttributeForElementIndex:r.setAttributeForElementIndex,getListItemCount:r.getListItemCount,focusItemAtIndex:r.focusItemAtIndex,selectedIndex:a.MDCListFoundation.numbers.UNSET_INDEX,setSelectedIndex:e=>n.setSelectedIndex(e)}},elements:{rootEl:!0},foundation:({rootEl:e,emit:n})=>new a.MDCListFoundation({getListItemCount:()=>t(e.ref).length,getFocusedElementIndex:()=>t(e.ref).indexOf(document.activeElement),getAttributeForElementIndex:(n,r)=>t(e.ref)[n].getAttribute(r),listItemAtIndexHasClass:(n,r)=>{const o=t(e.ref)[n];return!(null==o||!o.classList.contains(a.deprecatedClassNameMap[r]))},setAttributeForElementIndex:(n,r,o)=>{"tabindex"===r&&(r="tabIndex");const i=t(e.ref)[n];i&&i.setAttribute(r,String(o))},addClassForElementIndex:(e,t)=>{r(n=>n[e]&&n[e].indexOf(t)>-1?n:n[e]&&-1===n[e].indexOf(t)?{...n,[e]:[...n[e],t]}:{...n,[e]:[t]})},removeClassForElementIndex:(e,t)=>{r(n=>n[e]&&n[e].indexOf(t)>-1?{...n,[e]:n[e].filter(e=>e!==t)}:n)},focusItemAtIndex:n=>{const r=t(e.ref)[n];r&&r.focus()},setTabIndexForListItemChildren:(n,r)=>{const o=t(e.ref)[n];[].slice.call(o.querySelectorAll(a.MDCListFoundation.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(e=>e.setAttribute("tabindex",String(r)))},hasCheckboxAtIndex:n=>!!t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR),hasRadioAtIndex:n=>!!t(e.ref)[n].querySelector(a.MDCListFoundation.strings.RADIO_SELECTOR),isCheckboxCheckedAtIndex:n=>{const r=t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR);return!!r&&r.checked},setCheckedCheckboxOrRadioAtIndex:(n,r)=>{const o=t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_RADIO_SELECTOR);if(o){o.checked=r;const e=document.createEvent("Event");e.initEvent("change",!0,!0),o.dispatchEvent(e)}},notifyAction:e=>n("onAction",{index:e}),notifySelectionChange:e=>n(a.strings.SELECTION_CHANGE_EVENT,{changedIndices:e},!0),isFocusInsideList:()=>{var t;return!(null==(t=e.ref)||!t.contains(document.activeElement))},isRootFocused:()=>document.activeElement===e.ref,getPrimaryTextAtIndex:n=>(e=>{const t=e.querySelector(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]}`);if(t)return(null==t?void 0:t.textContent)??"";const n=e.querySelector(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_TEXT_CLASS]}`);return n&&n.textContent||""})(t(e.ref)[n])})}),{rootEl:d}=c,f=o.useCallback(e=>{let n=e.target,r=-1;for(;n&&!n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS])&&!n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.ROOT]);)n=n.parentElement;return n&&n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS])&&(r=t(d.ref).indexOf(n)),r},[t,d.ref]),{onClick:p}=e,h=o.useCallback(e=>{null==p||p(e);const t=f(e),n=!i.matches(e.target,a.MDCListFoundation.strings.CHECKBOX_RADIO_SELECTOR);u.handleClick(t,n)},[f,u,p]),{onKeyDown:m}=e,_=o.useCallback(e=>{null==m||m(e);const t=f(e);t>=0&&u.handleKeydown(e,e.target instanceof Element&&e.target.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS]),t)},[f,u,m]),{onFocus:v}=e,g=o.useCallback(e=>{null==v||v(e),u.handleFocusIn(f(e))},[f,u,v]),{onBlur:y}=e,b=o.useCallback(e=>{null==y||y(e),u.handleFocusOut(f(e))},[f,u,y]);d.setProp("onClick",h,!0),d.setProp("onKeyDown",_,!0),d.setProp("onFocus",g,!0),d.setProp("onBlur",b,!0);const E=o.useCallback(()=>{if(e.role)return l(e.role);if(!d.ref)return;const t=!!e.selectedIndex||!!d.ref.querySelector(`\n .${a.MDCListFoundation.cssClasses.LIST_ITEM_ACTIVATED_CLASS},\n .${a.MDCListFoundation.cssClasses.LIST_ITEM_SELECTED_CLASS}\n `),n=!!d.ref.querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR),r=!!d.ref.querySelector(a.MDCListFoundation.strings.RADIO_SELECTOR);return n?l("group"):r?l("radiogroup"):t?l("listbox"):void 0},[e.role,e.selectedIndex,d.ref]);return o.useEffect(()=>{u.layout(),E()},[u,E]),o.useEffect(()=>{u.setWrapFocus(e.wrapFocus||void 0===e.wrapFocus)},[u,e.wrapFocus]),o.useEffect(()=>{u.setVerticalOrientation(e.vertical||void 0===e.vertical)},[u,e.vertical]),o.useEffect(()=>{void 0!==e.selectedIndex&&u.setSelectedIndex(e.selectedIndex)},[u,e.selectedIndex]),o.useEffect(()=>{s&&u.setSingleSelection("listbox"===s)},[u,s]),{...c,listItemClasses:n,setEnabled:(e,t)=>{u.setEnabled(e,t)},role:s}},m=u.createContext({getClassName:e=>[],setEnabled:(e,t)=>{}}),_=i.createComponent(function(e,t){const{dense:n,twoLine:a,avatarList:s,apiRef:l,nonInteractive:u,onAction:c,foundationRef:d,wrapFocus:f,vertical:p,selectedIndex:_,children:v,...g}=e,{rootEl:y,listItemClasses:b,setEnabled:E,role:C}=h(e),x={getClassName:e=>b[e]||[],setEnabled:E},A=i.useClassNames(e,["mdc-deprecated-list",{"mdc-deprecated-list--dense":n,"mdc-deprecated-list--two-line":a,"mdc-deprecated-list--avatar-list":s,"mdc-deprecated-list--non-interactive":u}]);return r.jsx(m.Provider,{value:x,children:r.jsx(i.Tag,{tag:"ul",...g,element:y,role:C,className:A,ref:t,children:["group","radiogroup","listbox"].some(e=>e===C)?o.Children.map(v,e=>(e=>"ListItem"===i.getDisplayName(e))(e)?o.cloneElement(e,{..."group"===C?{role:"checkbox"}:"radiogroup"===C?{role:"radio"}:"listbox"===C?{role:"option"}:{},...o.isValidElement(e)?e.props:{}}):e):v})})}),v=s.withRipple({surface:!1})(i.createComponent(function(e,t){const n=o.createRef(),a=t?i.mergeRefs(t,n):n,l=o.useContext(m),[u,c]=o.useState(-1),d=o.useCallback(()=>{const e=f(n.current);return e?e.indexOf(n.current):-1},[n]),f=e=>{var t;return e?[].slice.call(null==(t=e.parentNode)?void 0:t.querySelectorAll(".mdc-deprecated-list-item")):[]};o.useEffect(()=>{n.current&&-1===u&&c(d())},[n,u,d]),o.useEffect(()=>{u>-1&&void 0!==e.disabled&&l.setEnabled(u,!e.disabled)},[u,e.disabled,l]);const{selected:p,activated:h,disabled:_,...v}=e,g=i.useClassNames(e,["mdc-deprecated-list-item",{"mdc-deprecated-list-item--selected":e.selected,"mdc-deprecated-list-item--activated":e.activated,"mdc-deprecated-list-item--disabled":e.disabled}]);return r.jsxs(i.Tag,{tag:"li",tabIndex:0,...v,className:g,ref:a,children:[r.jsx(s.RippleSurface,{className:"mdc-deprecated-list-item__ripple"}),v.children]})}));v.displayName="ListItem";const g=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),y=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__primary-text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),b=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__secondary-text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),E=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__graphic"]);return r.jsx(l.Icon,{...e,"aria-hidden":"true",ref:t,className:n})}),C=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__meta"]);if(e.icon)return r.jsx(l.Icon,{...e,"aria-hidden":"true",ref:t,className:n});if(o.isValidElement(e.children)){const{children:t,...r}=e;return o.cloneElement(e.children,{...r,...e.children.props,className:i.classNames(n,e.children.props.className)})}return r.jsx(i.Tag,{...e,ref:t,className:n})}),x=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-group"]);return r.jsx(i.Tag,{...e,ref:t,className:n,role:"group"})}),A=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-group__subheader"]);return r.jsx(i.Tag,{...e,ref:t,className:n})}),I=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-divider"]);return r.jsx(i.Tag,{tag:"li",role:"separator",...e,ref:t,className:n})}),O=i.createComponent(({text:e,secondaryText:t,graphic:n,metaIcon:o,meta:i,children:a,...l},u)=>{const c=e&&void 0!==t?r.jsx(y,{children:e}):e,d=void 0!==t?r.jsx(b,{children:t}):null;return r.jsxs(v,{...l,ref:u,children:[r.jsx(s.RippleSurface,{className:"mdc-deprecated-list-item__ripple"}),void 0!==n&&r.jsx(E,{icon:n}),null!==d?r.jsxs(g,{children:[c,d]}):c,(!!i||!!o)&&r.jsx(C,{icon:o,children:i}),a]})});t.CollapsibleList=p,t.List=_,t.ListDivider=I,t.ListGroup=x,t.ListGroupSubheader=A,t.ListItem=v,t.ListItemGraphic=E,t.ListItemMeta=C,t.ListItemPrimaryText=y,t.ListItemSecondaryText=b,t.ListItemText=g,t.SimpleListItem=O},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(106),a=n(0),s=o.createComponent(function(e,t){const{rootEl:n}=(e=>{const{foundation:t,...n}=o.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getWidth(){return e.getWidth()},setRequired(t){return e.setRequired(t)}}),foundation:({rootEl:e})=>new i.MDCFloatingLabelFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),getWidth:()=>{var t;return(null==(t=e.ref)?void 0:t.scrollWidth)||0},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n)})});return a.useEffect(()=>{t.shake(!!e.shake)},[e.shake,t]),a.useEffect(()=>{t.float(!!e.float)},[e.float,t]),{foundation:t,...n}})(e),{shake:s,float:l,apiRef:u,...c}=e;return r.jsx("span",{...n.props({...c,className:"mdc-floating-label"}),ref:o.mergeRefs(n.reactRef,t)})});t.FloatingLabel=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(107),i=n(3),a=n(0),s=i.createComponent(function(e,t){const{active:n,center:s,...l}=e,{rootEl:u}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},foundation:({rootEl:e})=>new o.MDCLineRippleFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),setStyle:(t,n)=>e.setStyle(t,n),registerEventHandler:(t,n)=>e.addEventListener(t,n),deregisterEventHandler:(t,n)=>e.removeEventListener(t,n)})}),{rootEl:r}=n;return a.useEffect(()=>{e.active?t.activate():t.deactivate()},[e.active,t]),a.useEffect(()=>{"number"==typeof e.center&&t.setRippleCenter(e.center)},[e.center,t]),r.setProp("onTransitionEnd",e=>t.handleTransitionEnd(e),!0),{foundation:t,...n}})(e);return r.jsx(i.Tag,{...l,tag:"span",element:u,className:"mdc-line-ripple",ref:t})});t.LineRipple=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(108),a=n(3),s=a.createComponent(function(e,t){const{children:n,...s}=e,{rootEl:c,notchedEl:d}=(e=>{const{foundation:t,...n}=a.useFoundation({props:e,elements:{rootEl:!0,notchedEl:!0},foundation:({rootEl:e,notchedEl:t})=>new i.MDCNotchedOutlineFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNotchWidthProperty:e=>t.setStyle("width",e+"px"),removeNotchWidthProperty:()=>t.setStyle("width","")})}),{rootEl:r}=n,s=o.useRef();return o.useEffect(()=>{e.notch?t.notch(e.notch):t.closeNotch()},[e.notch,t]),o.useEffect(()=>{var e;s.current=(null==(e=r.ref)?void 0:e.querySelector(".mdc-floating-label"))||void 0;const t=s.current;t?(t.style.transitionDuration="0s",r.addClass(i.MDCNotchedOutlineFoundation.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame(()=>{t&&(t.style.transitionDuration="")})):r.addClass(i.MDCNotchedOutlineFoundation.cssClasses.NO_LABEL)},[r]),{foundation:t,...n}})(e);return r.jsxs(a.Tag,{...s,element:c,className:"mdc-notched-outline",ref:t,children:[r.jsx(l,{}),r.jsx("div",{...d.props({className:"mdc-notched-outline__notch"}),ref:d.reactRef,children:n}),r.jsx(u,{})]})}),l=o.memo(function(){return r.jsx("div",{className:"mdc-notched-outline__leading"})}),u=o.memo(function(){return r.jsx("div",{className:"mdc-notched-outline__trailing"})});t.NotchedOutline=s},function(e,t,n){n.d(t,{$:function(){return s}});var r=n(2),o=n(5),i=n(22),a=n(70),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){return(0,i.et)(e.root)},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}};return new a.K(t)},t}(o.O)},function(e,t,n){n.d(t,{K:function(){return a}});var r=n(2),o=n(4),i=n(87),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.shakeAnimationEndHandler=function(){o.handleShakeAnimationEnd()},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,r=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(r):(this.adapter.removeClass(r),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(o.I)},function(e,t,n){n.d(t,{l:function(){return a}});var r=n(2),o=n(5),i=n(88),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}};return new i.C(t)},t}(o.O)},function(e,t,n){n.d(t,{i:function(){return l}});var r=n(2),o=n(5),i=n(70),a=n(73),s=n(90),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(a.P$.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+i.K.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(a.Y7.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(a.Y7.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){e.notchElement.style.removeProperty("width")}};return new s.z(t)},t}(o.O)},function(e,t,n){n.d(t,{P$:function(){return r},Y7:function(){return i},nL:function(){return o}});
375
+ var r={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},o={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},i={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(68),a=n(3),s=n(115),l=n(116),u=n(117),c={bottomEnd:"BOTTOM_END",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT",bottomStart:"BOTTOM_START",topEnd:"TOP_END",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",topStart:"TOP_START"},d=(e,t)=>{const[n,r]=o.useState(e.open),i=o.useRef(null),u=o.useRef(null),d=o.useRef(null),f=o.useRef(null),{foundation:p,...h}=a.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e,rootEl:t})=>({setAnchorCorner:t=>e.setAnchorCorner(t),setAnchorElement:e=>d.current=e,setOpen:e=>r(e),getSurfaceElement:()=>t.ref}),foundation:({rootEl:e,getProps:t,emit:n})=>{const o=e=>{p.handleBodyClick(e)},i=()=>{document.body.removeEventListener("click",o),document.body.removeEventListener("touchstart",o)},c=new s.MDCMenuSurfaceFoundation({addClass:t=>{e.addClass(t)},removeClass:t=>{e.removeClass(t)},hasClass:t=>"mdc-menu-surface"===t||e.hasClass(t),hasAnchor:()=>!!d.current,notifyClose:()=>{i(),r(!1)},notifyClosing:()=>n(s.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT,{}),notifyOpen:()=>{n("onOpen",{}),setTimeout(()=>{document.body.addEventListener("click",o),document.body.addEventListener("touchstart",o)},150)},notifyOpening:()=>n(s.MDCMenuSurfaceFoundation.strings.OPENING_EVENT,{}),isElementInContainer:t=>e.ref===t||!!e.ref&&e.ref.contains(t),isRtl:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).getPropertyValue("direction"),setTransformOrigin:t=>{const n=`${l.getCorrectPropertyName(window,"transform")}-origin`;e.setStyle(n,t)},isFocused:()=>document.activeElement===e.ref,saveFocus:()=>{u.current=document.activeElement},restoreFocus:()=>{e.ref&&e.ref.contains(document.activeElement)&&u.current&&u.current.focus&&u.current.focus()},getInnerDimensions:()=>({width:e.ref?e.ref.offsetWidth:0,height:e.ref?e.ref.offsetHeight:0}),getAnchorDimensions:()=>{var e;return(null==(e=d.current)?void 0:e.getBoundingClientRect())||a.emptyClientRect},getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{e.setStyle("left",void 0!==t.left?t.left:null),e.setStyle("right",void 0!==t.right?t.right:null),e.setStyle("top",void 0!==t.top?t.top:null),e.setStyle("bottom",void 0!==t.bottom?t.bottom:null)},setMaxHeight:t=>{e.setStyle("maxHeight",t)}}),h=c.close.bind(c);c.close=(e=!1)=>{n("onClose",{}),f.current=window.setTimeout(()=>{t().open||h(e)})};const m=c.destroy.bind(c);return c.destroy=()=>{i(),m()},c}}),{rootEl:m}=h,{onKeyDown:v}=e,y=o.useCallback(e=>{null==v||v(e),p.handleKeydown(e)},[v,p]);return m.setProp("onKeyDown",y,!0),o.useEffect(()=>{p.setFixedPosition(!!e.fixed)},[e.fixed,p]),o.useEffect(()=>{const e=(null==t?void 0:t.current)||m.ref;if(e){const t=a.closest(e,`.${s.MDCMenuSurfaceFoundation.cssClasses.ANCHOR}`);t&&(d.current=t)}},[t,m.ref]),o.useEffect(()=>{e.renderToPortal?p.setIsHoisted(!0):p.setIsHoisted(!1);const t=e.renderToPortal?()=>{try{p.autoposition()}catch{}}:()=>{};return a.raf(()=>{p.isOpen()}),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.renderToPortal,p]),o.useEffect(()=>{const t=e.anchorCorner&&(e=>s.MDCMenuSurfaceFoundation.Corner[c[e]])(e.anchorCorner);if(void 0!==t){p.setAnchorCorner(t),p.dimensions=p.adapter.getInnerDimensions();try{p.autoposition()}catch{}}},[e.anchorCorner,p]),o.useEffect(()=>{if(n){const e=m.ref?m.ref.querySelectorAll(s.MDCMenuSurfaceFoundation.strings.FOCUSABLE_ELEMENTS):[];i.current=e.length>0?e[0]:null,p.open()}else p.isOpen()&&p.close()},[n,p,m.ref]),o.useEffect(()=>{r(!!e.open)},[e.open]),o.useEffect(()=>()=>{f.current&&window.clearTimeout(f.current)},[]),{...h}},f=a.createComponent(function(e,t){const{children:n,open:i,anchorCorner:s,onOpen:l,onClose:u,renderToPortal:c,fixed:f,apiRef:p,foundationRef:h,...m}=e,v=o.useRef(null),{rootEl:y}=d(e,v),g=a.useClassNames(e,["mdc-menu-surface",{"mdc-menu-surface--fixed":f}]);return r.jsx(r.Fragment,{children:r.jsx(a.PortalChild,{renderTo:c,menuSurfaceDomPositionRef:v,children:r.jsx(a.Tag,{...m,element:y,className:g,ref:t,children:n})})})}),p=a.createComponent(function(e,t){const n=a.useClassNames(e,["mdc-menu-surface--anchor"]);return r.jsx(a.Tag,{...e,className:n,ref:t})}),h=a.createComponent(function(e,t){const n=a.useClassNames(e,["mdc-list mdc-menu__items"]);return r.jsx(i.List,{role:"menu",...e,className:n,ref:t})});h.displayName="MenuItems";const m=a.createComponent(function(e,t){return r.jsx(i.ListItem,{role:"menuitem",tabIndex:0,...e,ref:t})}),v=e=>"MenuItems"===a.getDisplayName(e),y=a.createComponent(function(e,t){const{children:n,focusOnOpen:i,onSelect:s,foundationRef:l,...c}=e,{rootEl:d,setListApi:p,setMenuSurfaceApi:m}=(e=>{const t=o.useRef(),n=o.useRef(),r=o.useCallback(()=>{var e;return(null==(e=n.current)?void 0:e.listElements())||[]},[]),{foundation:i,...s}=a.useFoundation({props:{...e,apiRef:void 0},elements:{rootEl:!0},foundation:({emit:e})=>new u.MDCMenuFoundation({addClassToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.addClassToElementIndex(...e)},removeClassFromElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.removeClassFromElementAtIndex(...e)},addAttributeToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.setAttributeForElementIndex(...e)},removeAttributeFromElementAtIndex:(e,t)=>{r()[e].removeAttribute(t)},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{var e;null==(e=t.current)||e.setOpen(!1)},getElementIndex:e=>r().indexOf(e),notifySelected:t=>e("onSelect",{index:t.index,item:r()[t.index]}),getMenuItemCount:()=>{var e;return(null==(e=n.current)?void 0:e.getListItemCount())||0},focusItemAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.focusItemAtIndex(...e)},focusListRoot:()=>{var e;return null==(e=n.current)?void 0:e.focusRoot()}})}),{rootEl:l}=s,{onClick:c}=e,d=o.useCallback(e=>{null==c||c(e);const t=a.closest(e.target,".mdc-deprecated-list-item");t&&i.handleItemAction(t)},[i,c]),{onKeyDown:f}=e,p=o.useCallback(e=>{null==f||f(e),i.handleKeydown(e),13===e.which&&e.target instanceof Element&&n.current&&e.target.classList.contains(n.current.getClasses())&&i.handleItemAction(e.target)},[i,f]),{onOpen:h,focusOnOpen:m}=e,v=o.useCallback(e=>{const t=r();(m||void 0===m)&&t.length>0&&!t.some(e=>e===document.activeElement)&&t[0].focus(),null==h||h(e)},[h,m,r]);l.setProp("onKeyDown",p,!0),l.setProp("onClick",d,!0),l.setProp("onOpen",v,!0);const y=n.current&&t.current&&e.apiRef;return o.useEffect(()=>{n.current&&t.current&&e.apiRef&&e.apiRef({...n.current,...t.current,items:r})},[y,r]),{setListApi:e=>{n.current=e},setMenuSurfaceApi:e=>{t.current=e},...s}})(e),y=(o.Children.map(n,v)||[]).every(e=>!1===e),g={apiRef:p};return r.jsx(f,{...d.props(c),className:a.classNames("mdc-menu",c.className),apiRef:m,ref:t,children:y?r.jsx(h,{...g,children:n}):o.Children.map(n,e=>v(e)?o.cloneElement(e,{...o.isValidElement(e)?e.props:{},...g}):e)})}),g=e=>function(t){const[n,i]=o.useState(!!t.open);o.useEffect(()=>{void 0!==t.open&&t.open!==n&&i(!!t.open)},[t.open,n]);const{handle:a,onClose:s,children:l,rootProps:u={},open:c,foundationRef:d,...f}=t,h=o.cloneElement(a,{...a.props,onClick:e=>{i(!n),a.props.onClick&&a.props.onClick(e)}}),m=e;return r.jsxs(p,{...u,children:[r.jsx(m,{...f,onClose:e=>{i(!!c||!1),null==s||s(e)},open:n,children:l}),h]})},_=g(y),b=g(f);t.Menu=y,t.MenuItem=m,t.MenuItems=h,t.MenuSurface=f,t.MenuSurfaceAnchor=p,t.SimpleMenu=_,t.SimpleMenuSurface=b},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(114),s=n(23),l=n(24);const u=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}(o),c=e=>{if(!e)return!1;const t=e.getAttribute("tabindex");return!!(t&&Number(t)>=0)&&(e.focus(),!0)},d=(e,t)=>{if(!e)return null;const n=t?e.previousElementSibling:e.nextElementSibling;return null===n?d(e.parentElement,t):n},f=class extends o.Component{constructor(e){super(e),this.childContainer=null,this.root=null,this.rafId=null,this.timerId=null,this.state={open:!!this.props.defaultOpen||!!this.props.open,childrenStyle:{}},this.handleClick=this.handleClick.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.handleFocus=this.handleFocus.bind(this)}static getDerivedStateFromProps(e,t){return void 0!==e.open&&e.open!==t.open?{...t,open:e.open}:t}componentDidMount(){this.syncOpenState()}componentDidUpdate(e,t){t.open!==this.state.open&&this.syncOpenState()}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId),this.timerId&&window.clearTimeout(this.timerId)}syncOpenState(){const{onOpen:e,onClose:t}=this.props,n={maxHeight:this.childContainer?`${this.childContainer.offsetHeight}px`:"0px"};this.setState({childrenStyle:n},()=>{this.state.open?(e&&e(),this.timerId=window.setTimeout(()=>{this.state.open&&this.setState({childrenStyle:{maxHeight:"none"}})},300)):(t&&t(),this.rafId=window.requestAnimationFrame(()=>{this.setState({childrenStyle:{}})}))})}correctFocus(e){this.rafId=window.requestAnimationFrame(()=>{if(!this.state.open&&this.root&&this.root.contains(document.activeElement)){const t=d(this.root,e);if(c(t))return;if(t){const e=t.querySelectorAll("[tabindex]");for(let t=0;t<e.length&&!c(e[t]);t++);}}})}toggleOpen(e){this.setState({open:e})}handleClick(e){const{handle:t}=this.props;t.props.onClick&&t.props.onClick(e),this.toggleOpen(!this.state.open)}handleKeydown(e){const{handle:t}=this.props;switch(t.props.onKeyDown&&t.props.onKeyDown(e),e.key){case"Enter":return void this.toggleOpen(!this.state.open);case"ArrowRight":return void this.toggleOpen(!0);case"ArrowUp":case"ArrowDown":case"Tab":const t=e.shiftKey||"ArrowUp"===e.key;return void this.correctFocus(t);case"ArrowLeft":return void this.toggleOpen(!1)}}handleFocus(e){if(!this.state.open&&this.root&&this.childContainer&&this.childContainer.contains(document.activeElement)){const e=this.root.querySelector(".rmwc-collapsible-list__handle .mdc-deprecated-list-item");e&&e.focus()}}render(){const{children:e,handle:t,onOpen:n,onClose:a,open:s,defaultOpen:l,className:u,...c}=this.props,{open:d,childrenStyle:f}=this.state;return r.jsxs(i.Tag,{...c,onFocus:this.handleFocus,ref:e=>this.root=e,className:i.classNames("rmwc-collapsible-list",u,{"rmwc-collapsible-list--open":d}),children:[r.jsx("div",{className:"rmwc-collapsible-list__handle",children:o.cloneElement(t,{...t.props,onClick:this.handleClick,onKeyDown:this.handleKeydown})}),r.jsx("div",{className:"rmwc-collapsible-list__children",style:f,children:r.jsx("div",{className:"rmwc-collapsible-list__children-inner",ref:e=>this.childContainer=e,children:e})})]})}};f.displayName="CollapsibleList";let p=f;const h=e=>{const t=o.useCallback(e=>e?[].slice.call(e.querySelectorAll(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS]}`)):[],[]),[n,r]=o.useState({}),[s,l]=o.useState(void 0),{foundation:u,...c}=i.useFoundation({props:e,api:({rootEl:e,foundation:n})=>{const r=n.adapter;return{listElements:()=>t(e.ref),focusRoot:()=>null==e?void 0:e.ref.focus(),getClasses:()=>a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS],addClassToElementIndex:r.addClassForElementIndex,removeClassFromElementAtIndex:r.removeClassForElementIndex,setAttributeForElementIndex:r.setAttributeForElementIndex,getListItemCount:r.getListItemCount,focusItemAtIndex:r.focusItemAtIndex,selectedIndex:a.MDCListFoundation.numbers.UNSET_INDEX,setSelectedIndex:e=>n.setSelectedIndex(e)}},elements:{rootEl:!0},foundation:({rootEl:e,emit:n})=>new a.MDCListFoundation({getListItemCount:()=>t(e.ref).length,getFocusedElementIndex:()=>t(e.ref).indexOf(document.activeElement),getAttributeForElementIndex:(n,r)=>t(e.ref)[n].getAttribute(r),listItemAtIndexHasClass:(n,r)=>{const o=t(e.ref)[n];return!(null==o||!o.classList.contains(a.deprecatedClassNameMap[r]))},setAttributeForElementIndex:(n,r,o)=>{"tabindex"===r&&(r="tabIndex");const i=t(e.ref)[n];i&&i.setAttribute(r,String(o))},addClassForElementIndex:(e,t)=>{r(n=>n[e]&&n[e].indexOf(t)>-1?n:n[e]&&-1===n[e].indexOf(t)?{...n,[e]:[...n[e],t]}:{...n,[e]:[t]})},removeClassForElementIndex:(e,t)=>{r(n=>n[e]&&n[e].indexOf(t)>-1?{...n,[e]:n[e].filter(e=>e!==t)}:n)},focusItemAtIndex:n=>{const r=t(e.ref)[n];r&&r.focus()},setTabIndexForListItemChildren:(n,r)=>{const o=t(e.ref)[n];[].slice.call(o.querySelectorAll(a.MDCListFoundation.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(e=>e.setAttribute("tabindex",String(r)))},hasCheckboxAtIndex:n=>!!t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR),hasRadioAtIndex:n=>!!t(e.ref)[n].querySelector(a.MDCListFoundation.strings.RADIO_SELECTOR),isCheckboxCheckedAtIndex:n=>{const r=t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR);return!!r&&r.checked},setCheckedCheckboxOrRadioAtIndex:(n,r)=>{const o=t(e.ref)[n].querySelector(a.MDCListFoundation.strings.CHECKBOX_RADIO_SELECTOR);if(o){o.checked=r;const e=document.createEvent("Event");e.initEvent("change",!0,!0),o.dispatchEvent(e)}},notifyAction:e=>n("onAction",{index:e}),notifySelectionChange:e=>n(a.strings.SELECTION_CHANGE_EVENT,{changedIndices:e},!0),isFocusInsideList:()=>{var t;return!(null==(t=e.ref)||!t.contains(document.activeElement))},isRootFocused:()=>document.activeElement===e.ref,getPrimaryTextAtIndex:n=>(e=>{const t=e.querySelector(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]}`);if(t)return(null==t?void 0:t.textContent)??"";const n=e.querySelector(`.${a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_TEXT_CLASS]}`);return n&&n.textContent||""})(t(e.ref)[n])})}),{rootEl:d}=c,f=o.useCallback(e=>{let n=e.target,r=-1;for(;n&&!n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS])&&!n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.ROOT]);)n=n.parentElement;return n&&n.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS])&&(r=t(d.ref).indexOf(n)),r},[t,d.ref]),{onClick:p}=e,h=o.useCallback(e=>{null==p||p(e);const t=f(e),n=!i.matches(e.target,a.MDCListFoundation.strings.CHECKBOX_RADIO_SELECTOR);u.handleClick(t,n)},[f,u,p]),{onKeyDown:m}=e,v=o.useCallback(e=>{null==m||m(e);const t=f(e);t>=0&&u.handleKeydown(e,e.target instanceof Element&&e.target.classList.contains(a.deprecatedClassNameMap[a.MDCListFoundation.cssClasses.LIST_ITEM_CLASS]),t)},[f,u,m]),{onFocus:y}=e,g=o.useCallback(e=>{null==y||y(e),u.handleFocusIn(f(e))},[f,u,y]),{onBlur:_}=e,b=o.useCallback(e=>{null==_||_(e),u.handleFocusOut(f(e))},[f,u,_]);d.setProp("onClick",h,!0),d.setProp("onKeyDown",v,!0),d.setProp("onFocus",g,!0),d.setProp("onBlur",b,!0);const E=o.useCallback(()=>{if(e.role)return l(e.role);if(!d.ref)return;const t=!!e.selectedIndex||!!d.ref.querySelector(`\n .${a.MDCListFoundation.cssClasses.LIST_ITEM_ACTIVATED_CLASS},\n .${a.MDCListFoundation.cssClasses.LIST_ITEM_SELECTED_CLASS}\n `),n=!!d.ref.querySelector(a.MDCListFoundation.strings.CHECKBOX_SELECTOR),r=!!d.ref.querySelector(a.MDCListFoundation.strings.RADIO_SELECTOR);return n?l("group"):r?l("radiogroup"):t?l("listbox"):void 0},[e.role,e.selectedIndex,d.ref]);return o.useEffect(()=>{u.layout(),E()},[u,E]),o.useEffect(()=>{u.setWrapFocus(e.wrapFocus||void 0===e.wrapFocus)},[u,e.wrapFocus]),o.useEffect(()=>{u.setVerticalOrientation(e.vertical||void 0===e.vertical)},[u,e.vertical]),o.useEffect(()=>{void 0!==e.selectedIndex&&u.setSelectedIndex(e.selectedIndex)},[u,e.selectedIndex]),o.useEffect(()=>{s&&u.setSingleSelection("listbox"===s)},[u,s]),{...c,listItemClasses:n,setEnabled:(e,t)=>{u.setEnabled(e,t)},role:s}},m=u.createContext({getClassName:e=>[],setEnabled:(e,t)=>{}}),v=i.createComponent(function(e,t){const{dense:n,twoLine:a,avatarList:s,apiRef:l,nonInteractive:u,onAction:c,foundationRef:d,wrapFocus:f,vertical:p,selectedIndex:v,children:y,...g}=e,{rootEl:_,listItemClasses:b,setEnabled:E,role:x}=h(e),C={getClassName:e=>b[e]||[],setEnabled:E},S=i.useClassNames(e,["mdc-deprecated-list",{"mdc-deprecated-list--dense":n,"mdc-deprecated-list--two-line":a,"mdc-deprecated-list--avatar-list":s,"mdc-deprecated-list--non-interactive":u}]);return r.jsx(m.Provider,{value:C,children:r.jsx(i.Tag,{tag:"ul",...g,element:_,role:x,className:S,ref:t,children:["group","radiogroup","listbox"].some(e=>e===x)?o.Children.map(y,e=>(e=>"ListItem"===i.getDisplayName(e))(e)?o.cloneElement(e,{..."group"===x?{role:"checkbox"}:"radiogroup"===x?{role:"radio"}:"listbox"===x?{role:"option"}:{},...o.isValidElement(e)?e.props:{}}):e):y})})}),y=s.withRipple({surface:!1})(i.createComponent(function(e,t){const n=o.createRef(),a=t?i.mergeRefs(t,n):n,l=o.useContext(m),[u,c]=o.useState(-1),d=o.useCallback(()=>{const e=f(n.current);return e?e.indexOf(n.current):-1},[n]),f=e=>{var t;return e?[].slice.call(null==(t=e.parentNode)?void 0:t.querySelectorAll(".mdc-deprecated-list-item")):[]};o.useEffect(()=>{n.current&&-1===u&&c(d())},[n,u,d]),o.useEffect(()=>{u>-1&&void 0!==e.disabled&&l.setEnabled(u,!e.disabled)},[u,e.disabled,l]);const{selected:p,activated:h,disabled:v,...y}=e,g=i.useClassNames(e,["mdc-deprecated-list-item",{"mdc-deprecated-list-item--selected":e.selected,"mdc-deprecated-list-item--activated":e.activated,"mdc-deprecated-list-item--disabled":e.disabled}]);return r.jsxs(i.Tag,{tag:"li",tabIndex:0,...y,className:g,ref:a,children:[r.jsx(s.RippleSurface,{className:"mdc-deprecated-list-item__ripple"}),y.children]})}));y.displayName="ListItem";const g=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),_=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__primary-text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),b=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__secondary-text"]);return r.jsx(i.Tag,{tag:"span",...e,ref:t,className:n})}),E=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__graphic"]);return r.jsx(l.Icon,{...e,"aria-hidden":"true",ref:t,className:n})}),x=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-item__meta"]);if(e.icon)return r.jsx(l.Icon,{...e,"aria-hidden":"true",ref:t,className:n});if(o.isValidElement(e.children)){const{children:t,...r}=e;return o.cloneElement(e.children,{...r,...e.children.props,className:i.classNames(n,e.children.props.className)})}return r.jsx(i.Tag,{...e,ref:t,className:n})}),C=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-group"]);return r.jsx(i.Tag,{...e,ref:t,className:n,role:"group"})}),S=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-group__subheader"]);return r.jsx(i.Tag,{...e,ref:t,className:n})}),w=i.createComponent(function(e,t){const n=i.useClassNames(e,["mdc-deprecated-list-divider"]);return r.jsx(i.Tag,{tag:"li",role:"separator",...e,ref:t,className:n})}),O=i.createComponent(({text:e,secondaryText:t,graphic:n,metaIcon:o,meta:i,children:a,...l},u)=>{const c=e&&void 0!==t?r.jsx(_,{children:e}):e,d=void 0!==t?r.jsx(b,{children:t}):null;return r.jsxs(y,{...l,ref:u,children:[r.jsx(s.RippleSurface,{className:"mdc-deprecated-list-item__ripple"}),void 0!==n&&r.jsx(E,{icon:n}),null!==d?r.jsxs(g,{children:[c,d]}):c,(!!i||!!o)&&r.jsx(x,{icon:o,children:i}),a]})});t.CollapsibleList=p,t.List=v,t.ListDivider=w,t.ListGroup=C,t.ListGroupSubheader=S,t.ListItem=y,t.ListItemGraphic=E,t.ListItemMeta=x,t.ListItemPrimaryText=_,t.ListItemSecondaryText=b,t.ListItemText=g,t.SimpleListItem=O},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(118),a=n(0),s=o.createComponent(function(e,t){const{rootEl:n}=(e=>{const{foundation:t,...n}=o.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getWidth(){return e.getWidth()},setRequired(t){return e.setRequired(t)}}),foundation:({rootEl:e})=>new i.MDCFloatingLabelFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),getWidth:()=>{var t;return(null==(t=e.ref)?void 0:t.scrollWidth)||0},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n)})});return a.useEffect(()=>{t.shake(!!e.shake)},[e.shake,t]),a.useEffect(()=>{t.float(!!e.float)},[e.float,t]),{foundation:t,...n}})(e),{shake:s,float:l,apiRef:u,...c}=e;return r.jsx("span",{...n.props({...c,className:"mdc-floating-label"}),ref:o.mergeRefs(n.reactRef,t)})});t.FloatingLabel=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(119),i=n(3),a=n(0),s=i.createComponent(function(e,t){const{active:n,center:s,...l}=e,{rootEl:u}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},foundation:({rootEl:e})=>new o.MDCLineRippleFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),setStyle:(t,n)=>e.setStyle(t,n),registerEventHandler:(t,n)=>e.addEventListener(t,n),deregisterEventHandler:(t,n)=>e.removeEventListener(t,n)})}),{rootEl:r}=n;return a.useEffect(()=>{e.active?t.activate():t.deactivate()},[e.active,t]),a.useEffect(()=>{"number"==typeof e.center&&t.setRippleCenter(e.center)},[e.center,t]),r.setProp("onTransitionEnd",e=>t.handleTransitionEnd(e),!0),{foundation:t,...n}})(e);return r.jsx(i.Tag,{...l,tag:"span",element:u,className:"mdc-line-ripple",ref:t})});t.LineRipple=s},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(120),a=n(3),s=a.createComponent(function(e,t){const{children:n,...s}=e,{rootEl:c,notchedEl:d}=(e=>{const{foundation:t,...n}=a.useFoundation({props:e,elements:{rootEl:!0,notchedEl:!0},foundation:({rootEl:e,notchedEl:t})=>new i.MDCNotchedOutlineFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNotchWidthProperty:e=>t.setStyle("width",e+"px"),removeNotchWidthProperty:()=>t.setStyle("width","")})}),{rootEl:r}=n,s=o.useRef();return o.useEffect(()=>{e.notch?t.notch(e.notch):t.closeNotch()},[e.notch,t]),o.useEffect(()=>{var e;s.current=(null==(e=r.ref)?void 0:e.querySelector(".mdc-floating-label"))||void 0;const t=s.current;t?(t.style.transitionDuration="0s",r.addClass(i.MDCNotchedOutlineFoundation.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame(()=>{t&&(t.style.transitionDuration="")})):r.addClass(i.MDCNotchedOutlineFoundation.cssClasses.NO_LABEL)},[r]),{foundation:t,...n}})(e);return r.jsxs(a.Tag,{...s,element:c,className:"mdc-notched-outline",ref:t,children:[r.jsx(l,{}),r.jsx("div",{...d.props({className:"mdc-notched-outline__notch"}),ref:d.reactRef,children:n}),r.jsx(u,{})]})}),l=o.memo(function(){return r.jsx("div",{className:"mdc-notched-outline__leading"})}),u=o.memo(function(){return r.jsx("div",{className:"mdc-notched-outline__trailing"})});t.NotchedOutline=s},function(e,t,n){n.d(t,{$:function(){return s}});var r=n(2),o=n(5),i=n(22),a=n(73),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){return(0,i.et)(e.root)},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}};return new a.K(t)},t}(o.O)},function(e,t,n){n.d(t,{K:function(){return a}});var r=n(2),o=n(4),i=n(99),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.shakeAnimationEndHandler=function(){o.handleShakeAnimationEnd()},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,r=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(r):(this.adapter.removeClass(r),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(o.I)},function(e,t,n){n.d(t,{l:function(){return a}});var r=n(2),o=n(5),i=n(100),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}};return new i.C(t)},t}(o.O)},function(e,t,n){n.d(t,{i:function(){return l}});var r=n(2),o=n(5),i=n(73),a=n(76),s=n(102),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(a.P$.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+i.K.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(a.Y7.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(a.Y7.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){e.notchElement.style.removeProperty("width")}};return new s.z(t)},t}(o.O)},function(e,t,n){n.d(t,{P$:function(){return r},Y7:function(){return i},nL:function(){return o}});
376
376
  /**
377
377
  * @license
378
378
  * Copyright 2018 Google Inc.
@@ -395,7 +395,7 @@ var r={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-r
395
395
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
396
396
  * THE SOFTWARE.
397
397
  */
398
- var r={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},o={NOTCH_ELEMENT_PADDING:8},i={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"}},function(e,t,n){n.d(t,{Y:function(){return m}});var r=n(2),o=n(4),i=n(95),a=n(51),s=["input","button","textarea","select"],l=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===s.indexOf(n)&&e.preventDefault()}};function u(e,t){var n,r=e.nextChar,o=e.focusItemAtIndex,i=e.sortedIndexByFirstChar,s=e.focusedItemIndex,l=e.skipFocus,u=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){d(t)},a.nL.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+r,n=1===t.typeaheadBuffer.length?function(e,t,n,r){var o=r.typeaheadBuffer[0],i=e.get(o);if(!i)return-1;if(o===r.currentFirstChar&&i[r.sortedIndexCursor].index===t){r.sortedIndexCursor=(r.sortedIndexCursor+1)%i.length;var a=i[r.sortedIndexCursor].index;if(!n(a))return a}r.currentFirstChar=o;var s,l=-1;for(s=0;s<i.length;s++)if(!n(i[s].index)){l=s;break}for(;s<i.length;s++)if(i[s].index>t&&!n(i[s].index)){l=s;break}if(-1!==l)return r.sortedIndexCursor=l,i[r.sortedIndexCursor].index;return-1}(i,s,u,t):function(e,t,n){var r=n.typeaheadBuffer[0],o=e.get(r);if(!o)return-1;var i=o[n.sortedIndexCursor];if(0===i.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(i.index))return i.index;var a=(n.sortedIndexCursor+1)%o.length,s=-1;for(;a!==n.sortedIndexCursor;){var l=o[a],u=0===l.text.lastIndexOf(n.typeaheadBuffer,0),c=!t(l.index);if(u&&c){s=a;break}a=(a+1)%o.length}if(-1!==s)return n.sortedIndexCursor=s,o[n.sortedIndexCursor].index;return-1}(i,u,t),-1===n||l||o(n),n}function c(e){return e.typeaheadBuffer.length>0}function d(e){e.typeaheadBuffer=""}function f(e,t){var n=e.event,r=e.isTargetListItem,o=e.focusedItemIndex,a=e.focusItemAtIndex,s=e.sortedIndexByFirstChar,d=e.isItemAtIndexDisabled,f="ArrowLeft"===(0,i.l5)(n),p="ArrowUp"===(0,i.l5)(n),h="ArrowRight"===(0,i.l5)(n),m="ArrowDown"===(0,i.l5)(n),_="Home"===(0,i.l5)(n),v="End"===(0,i.l5)(n),g="Enter"===(0,i.l5)(n),y="Spacebar"===(0,i.l5)(n);return n.altKey||n.ctrlKey||n.metaKey||f||p||h||m||_||v||g?-1:y||1!==n.key.length?y?(r&&l(n),r&&c(t)?u({focusItemAtIndex:a,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:d},t):-1):-1:(l(n),u({focusItemAtIndex:a,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:d},t))}var p=["Alt","Control","Meta","Shift"];function h(e){var t=new Set(e?p.filter(function(t){return e.getModifierState(t)}):[]);return function(e){return e.every(function(e){return t.has(e)})&&e.length===t.size}}var m=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.wrapFocus=!1,o.isVertical=!0,o.isSingleSelectionList=!1,o.areDisabledItemsFocusable=!0,o.selectedIndex=a.nL.UNSET_INDEX,o.focusedItemIndex=a.nL.UNSET_INDEX,o.useActivatedClass=!1,o.useSelectedAttr=!1,o.ariaCurrentAttrValue=null,o.isCheckboxList=!1,o.isRadioList=!1,o.lastSelectedIndex=null,o.hasTypeahead=!1,o.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},o.sortedIndexByFirstChar=new Map,o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return a.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return a.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return a.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},t.prototype.setWrapFocus=function(e){this.wrapFocus=e},t.prototype.setVerticalOrientation=function(e){this.isVertical=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList=e,e&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},t.prototype.setDisabledItemsFocusable=function(e){this.areDisabledItemsFocusable=e},t.prototype.maybeInitializeSingleSelection=function(){var e=this.getSelectedIndexFromDOM();e!==a.nL.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,a.Y7.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},t.prototype.getSelectedIndexFromDOM=function(){for(var e=a.nL.UNSET_INDEX,t=this.adapter.getListItemCount(),n=0;n<t;n++){var r=this.adapter.listItemAtIndexHasClass(n,a.Y7.LIST_ITEM_SELECTED_CLASS),o=this.adapter.listItemAtIndexHasClass(n,a.Y7.LIST_ITEM_ACTIVATED_CLASS);if(r||o){e=n;break}}return e},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&c(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t={}),this.isIndexValid(e)&&(this.isCheckboxList?this.setCheckboxAtIndex(e,t):this.isRadioList?this.setRadioAtIndex(e,t):this.setSingleSelectionAtIndex(e,t))},t.prototype.handleFocusIn=function(e){e>=0&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},t.prototype.handleFocusOut=function(e){var t=this;e>=0&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout(function(){t.adapter.isFocusInsideList()||t.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.isIndexDisabled=function(e){return this.adapter.listItemAtIndexHasClass(e,a.Y7.LIST_ITEM_DISABLED_CLASS)},t.prototype.handleKeydown=function(e,t,n){var r,o=this,s="ArrowLeft"===(0,i.l5)(e),u="ArrowUp"===(0,i.l5)(e),c="ArrowRight"===(0,i.l5)(e),d="ArrowDown"===(0,i.l5)(e),p="Home"===(0,i.l5)(e),m="End"===(0,i.l5)(e),_="Enter"===(0,i.l5)(e),v="Spacebar"===(0,i.l5)(e),g=this.isVertical&&d||!this.isVertical&&c,y=this.isVertical&&u||!this.isVertical&&s,b="A"===e.key||"a"===e.key,E=h(e);if(this.adapter.isRootFocused()){if((y||m)&&E([]))e.preventDefault(),this.focusLastElement();else if((g||p)&&E([]))e.preventDefault(),this.focusFirstElement();else if(y&&E(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(x=this.focusLastElement())&&this.setSelectedIndexOnAction(x,!1)}else if(g&&E(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(x=this.focusFirstElement())&&this.setSelectedIndexOnAction(x,!1)}this.hasTypeahead&&f({event:e,focusItemAtIndex:function(e){o.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return o.isIndexDisabled(e)}},this.typeaheadState)}else{var C=this.adapter.getFocusedElementIndex();if(!(-1===C&&(C=n)<0)){if(g&&E([]))l(e),this.focusNextElement(C);else if(y&&E([]))l(e),this.focusPrevElement(C);else if(g&&E(["Shift"])&&this.isCheckboxList){l(e),-1!==(x=this.focusNextElement(C))&&this.setSelectedIndexOnAction(x,!1)}else if(y&&E(["Shift"])&&this.isCheckboxList){var x;l(e),-1!==(x=this.focusPrevElement(C))&&this.setSelectedIndexOnAction(x,!1)}else if(p&&E([]))l(e),this.focusFirstElement();else if(m&&E([]))l(e),this.focusLastElement();else if(p&&E(["Control","Shift"])&&this.isCheckboxList){if(l(e),this.isIndexDisabled(C))return;this.focusFirstElement(),this.toggleCheckboxRange(0,C,C)}else if(m&&E(["Control","Shift"])&&this.isCheckboxList){if(l(e),this.isIndexDisabled(C))return;this.focusLastElement(),this.toggleCheckboxRange(C,this.adapter.getListItemCount()-1,C)}else if(b&&E(["Control"])&&this.isCheckboxList)e.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex,!0);else if((_||v)&&E([])){if(t){if((A=e.target)&&"A"===A.tagName&&_)return;if(l(e),this.isIndexDisabled(C))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(C,!1),this.adapter.notifyAction(C))}}else if((_||v)&&E(["Shift"])&&this.isCheckboxList){var A;if((A=e.target)&&"A"===A.tagName&&_)return;if(l(e),this.isIndexDisabled(C))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:C,C,C),this.adapter.notifyAction(C))}if(this.hasTypeahead)f({event:e,focusItemAtIndex:function(e){o.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return o.isIndexDisabled(e)}},this.typeaheadState)}}},t.prototype.handleClick=function(e,t,n){var r,o=h(n);e!==a.nL.UNSET_INDEX&&(this.isIndexDisabled(e)||(o([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)):this.isCheckboxList&&o(["Shift"])&&(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:e,e,e),this.adapter.notifyAction(e))))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e,r=null;do{if(++n>=t){if(!this.wrapFocus)return e;n=0}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=this.adapter.getListItemCount(),n=e,r=null;do{if(--n<0){if(!this.wrapFocus)return e;n=t-1}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},t.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid(e,!1)&&(t?(this.adapter.removeClassForElementIndex(e,a.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.P$.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,a.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.P$.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex=function(e,t){if(void 0===t&&(t={}),this.selectedIndex!==e||t.forceUpdate){var n=a.Y7.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=a.Y7.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==a.nL.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,n),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e])}},t.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===a.nL.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,a.P$.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?a.P$.ARIA_CURRENT:a.P$.ARIA_SELECTED;if(this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==a.nL.UNSET_INDEX){var r=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,r)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?a.P$.ARIA_SELECTED:a.P$.ARIA_CHECKED},t.prototype.setRadioAtIndex=function(e,t){void 0===t&&(t={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),(this.selectedIndex!==e||t.forceUpdate)&&(this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(e,n,"true"),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e]))},t.prototype.setCheckboxAtIndex=function(e,t){void 0===t&&(t={});for(var n=this.selectedIndex,r=t.isUserInteraction?new Set(n===a.nL.UNSET_INDEX?[]:n):null,o=this.getSelectionAttribute(),i=[],s=0;s<this.adapter.getListItemCount();s++){var l=null==r?void 0:r.has(s),u=e.indexOf(s)>=0;u!==l&&i.push(s),this.adapter.setCheckedCheckboxOrRadioAtIndex(s,u),this.adapter.setAttributeForElementIndex(s,o,u?"true":"false")}this.selectedIndex=e,t.isUserInteraction&&i.length&&this.adapter.notifySelectionChange(i)},t.prototype.toggleCheckboxRange=function(e,t,n){this.lastSelectedIndex=n;for(var o=new Set(this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex),i=!(null==o?void 0:o.has(n)),s=(0,r.zs)([e,t].sort(),2),l=s[0],u=s[1],c=this.getSelectionAttribute(),d=[],f=l;f<=u;f++){if(!this.isIndexDisabled(f))i!==o.has(f)&&(d.push(f),this.adapter.setCheckedCheckboxOrRadioAtIndex(f,i),this.adapter.setAttributeForElementIndex(f,c,""+i),i?o.add(f):o.delete(f))}d.length&&(this.selectedIndex=(0,r.fX)([],(0,r.zs)(o)),this.adapter.notifySelectionChange(d))},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===a.nL.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===e||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),e!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==a.nL.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce(function(e,t){return Math.min(e,t)}):0:Math.max(this.focusedItemIndex,0)},t.prototype.isIndexValid=function(e,t){var n=this;if(void 0===t&&(t=!0),e instanceof Array){if(!this.isCheckboxList&&t)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return n.isIndexInRange(e)})}if("number"==typeof e){if(this.isCheckboxList&&t)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===a.nL.UNSET_INDEX}return!1},t.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction=function(e,t){this.lastSelectedIndex=e,this.isCheckboxList?(this.toggleCheckboxAtIndex(e,t),this.adapter.notifySelectionChange([e])):this.setSelectedIndex(e,{isUserInteraction:!0})},t.prototype.toggleCheckboxAtIndex=function(e,t){var n,r=this.getSelectionAttribute(),o=this.adapter.isCheckboxCheckedAtIndex(e);t?n=o:(n=!o,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,n)),this.adapter.setAttributeForElementIndex(e,r,n?"true":"false");var i=this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex.slice();n?i.push(e):i=i.filter(function(t){return t!==e}),this.selectedIndex=i},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.checkboxListToggleAll=function(e,t){var n=this.adapter.getListItemCount();if(e.length===n)this.setCheckboxAtIndex([],{isUserInteraction:t});else{for(var r=[],o=0;o<n;o++)(!this.isIndexDisabled(o)||e.indexOf(o)>-1)&&r.push(o);this.setCheckboxAtIndex(r,{isUserInteraction:t})}},t.prototype.typeaheadMatchItem=function(e,t,n){var r=this;return void 0===n&&(n=!1),u({focusItemAtIndex:function(e){r.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return r.isIndexDisabled(e)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,r=0;r<e;r++){var o=t(r).trim();if(o){var i=o[0].toLowerCase();n.has(i)||n.set(i,[]),n.get(i).push({text:o.toLowerCase(),index:r})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){d(this.typeaheadState)},t}(o.I)},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,r,n,t,i,a,o;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(6),r=__webpack_require__(11),n=__webpack_require__(20),t=__webpack_require__(0),i=__webpack_require__(99),a=__webpack_require__(77),o=__webpack_require__(1),function(){var s=[,function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=t},function(e){e.exports=i},function(e){e.exports=a},function(e){e.exports=o}],l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return s[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};u.r(c),u.d(c,{GenericAnimate:function(){return E},GenericAnimateInner:function(){return b},default:function(){return C}});var d=u(1),f=u.n(d),p=u(2),h=u(3),m=u(4),_=u(5),v=u(6),g=u(7),y={genericAnimate:"generic-animate",genericAnimateListWrapper:"generic-animate__list-wrapper",genericAnimateWrapper:"generic-animate__wrapper",genericAnimateAppear:"generic-animate-appear",genericAnimateEnter:"generic-animate-enter",genericAnimateExitActive:"generic-animate-exit-active",genericAnimateAppearActive:"generic-animate-appear-active",genericAnimateEnterActive:"generic-animate-enter-active",genericAnimateExit:"generic-animate-exit",genericAnimateExitDone:"generic-animate-exit-done"},b=function(e,t){t||(t=(0,m.useRef)(null));var n=(0,p.isFunction)(e.children)?e.children(v.ENTERING):e.children;return(0,g.jsx)(_.CSSTransition,f()({appear:!0,classNames:y.genericAnimate,in:!0,nodeRef:t,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof n?(0,g.jsx)("span",{className:y.genericAnimateWrapper,ref:t,children:n}):Array.isArray(n)?(0,g.jsx)("div",{className:y.genericAnimateListWrapper,ref:t,children:n}):"string"==typeof n?(0,g.jsx)("span",{ref:t,children:n}):n}))},E=(0,m.memo)((0,m.forwardRef)(b));E.wrapped=b,E.webComponentAdapterWrapped="react",E.propTypes={appear:h.boolean,classNames:h.string,in:h.boolean,timeout:h.number};var C=E;return c}())},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(97),a=n(0),s={xsmall:24,small:24,medium:32,large:48,xlarge:48},l={24:12,32:16,48:24},u={24:8.75,32:12.5,48:18},c={24:54.978,32:78.54,48:113.097},d={24:27.489,32:39.27,48:56.549},f={24:2.5,32:3,48:4},p={24:2,32:2.4,48:3.2},h=o.createComponent(function(e,t){const{closed:n,size:h="small",max:m=1,min:_=0,progress:v,label:g,...y}=e,{rootEl:b,determinateCircleEl:E}=(e=>{const{foundation:t,...n}=o.useFoundation({props:e,elements:{rootEl:!0,determinateCircleEl:!0},foundation:({rootEl:e,determinateCircleEl:t})=>new i.MDCCircularProgressFoundation({addClass:t=>e.addClass(t),getDeterminateCircleAttribute:e=>{var n;return null==(n=t.ref)?void 0:n.getAttribute(e)},hasClass:t=>e.hasClass(t),removeClass:t=>e.removeClass(t),removeAttribute:t=>e.removeProp(t),setAttribute:(t,n)=>{e.setProp(t,n)},setDeterminateCircleAttribute:(e,n)=>{var r;return null==(r=t.ref)?void 0:r.setAttribute(e,n)}})}),[r,s]=a.useState(void 0);return a.useEffect(()=>{t.setProgress(e.progress||0);const n=void 0!==e.progress;n!==r&&(t.setDeterminate(n),s(n))},[e.progress,r,t]),a.useEffect(()=>{e.closed?t.close():t.open()},[e.closed,t]),{foundation:t,...n}})(e),C=o.useClassNames(e,["mdc-circular-progress",`rmwc-circular-progress--${h}`,{"mdc-circular-progress--closed":n}]),x=void 0!==v,A="number"==typeof h,I=s[A?"medium":h],O=A?{...y.style,fontSize:`${h}px`,width:`${h}px`,height:`${h}px`}:{...y.style},T=e=>e<_?0:e>m?1:(e-_)/(m-_),S=e=>({cx:l[e],cy:l[e],r:u[e],strokeDasharray:c[e],strokeDashoffset:d[e],strokeWidth:f[e]});return r.jsx(o.Tag,{"aria-valuenow":v,"aria-valuemin":_,"aria-valuemax":m,"aria-label":g,...y,style:O,className:C,element:b,ref:t,role:"progressbar",children:x?r.jsx("div",{className:"mdc-circular-progress__determinate-container",children:r.jsxs("svg",{className:"mdc-circular-progress__determinate-circle-graphic",viewBox:`0 0 ${I} ${I}`,children:[r.jsx("circle",{className:"mdc-circular-progress__determinate-track",cx:I/2,cy:I/2,r:I/2.4,strokeWidth:"4"}),r.jsx(o.Tag,{tag:"circle",className:"mdc-circular-progress__determinate-circle",style:(w=I,void 0!==v?{strokeDasharray:2*Math.PI*(w/2.4)*T(v)+", 666.66%",width:`${w}px`,height:`${w}px`}:void 0),cx:I/2,cy:I/2,r:I/2.4,element:E,strokeDashoffset:"113.097",strokeWidth:"4"})]})}):r.jsx("div",{className:"mdc-circular-progress__indeterminate-container",children:r.jsxs("div",{className:"mdc-circular-progress__spinner-layer",children:[r.jsx("div",{className:"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${I} ${I}`,children:r.jsx("circle",{...S(I)})})}),r.jsx("div",{className:"mdc-circular-progress__gap-patch",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${I} ${I}`,children:r.jsx("circle",{...S(I),strokeWidth:p[I]})})}),r.jsx("div",{className:"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${I} ${I}`,children:r.jsx("circle",{...S(I)})})})]})})});var w});t.CircularProgress=h},function(e,t,n){n.r(t),n.d(t,{ENTERED:function(){return p},ENTERING:function(){return f},EXITED:function(){return d},EXITING:function(){return h},UNMOUNTED:function(){return c}});var r=n(78),o=n(79),i=n(0),a=n(7),s=n(100),l=n(80),u=n(81),c="unmounted",d="exited",f="entering",p="entered",h="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=f):o=p:o=t.unmountOnExit||t.mountOnEnter?c:d,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==p&&(t=f):n!==f&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,u.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!e&&!n||s.A.disabled?this.safeSetState({status:p},function(){t.props.onEntered(i)}):(this.props.onEnter(i,l),this.safeSetState({status:f},function(){t.props.onEntering(i,l),t.onTransitionEnd(c,function(){t.safeSetState({status:p},function(){t.props.onEntered(i,l)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s.A.disabled?(this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})):this.safeSetState({status:d},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function _(){}m.contextType=l.A,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},m.UNMOUNTED=c,m.EXITED=d,m.ENTERING=f,m.ENTERED=p,m.EXITING=h,t.default=m},function(e,t,n){function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:function(){return o}})},function(e,t,n){var r=n(0);t.A=r.createContext(null)},function(e,t,n){n.d(t,{F:function(){return r}});var r=function(e){return e.scrollTop}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(24),s=n(23),l=n(101),u=i.createComponent(function({...e},t){return e.onIcon?r.jsx(c,{...e,ref:t}):r.jsx(d,{...e,ref:t})}),c=i.createComponent(function(e,t){const{icon:n,onIcon:a,foundationRef:s,...u}=e,{isOn:c,rootEl:d}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},foundation:({rootEl:e,emit:t})=>new l.MDCIconButtonToggleFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),setAttr:(t,n)=>e.setProp(t,n),notifyChange:e=>t("onChange",e)})}),{rootEl:r}=n,a=void 0!==e.checked?e.checked:t.isOn();return o.useEffect(()=>{a!==t.isOn()&&t.toggle(a)},[t,a]),r.setProp("onClick",n=>{var r;null==(r=e.onClick)||r.call(e,n),t.handleClick()},!0),{isOn:a,foundation:t,...n}})(e);return r.jsxs(f,{"aria-pressed":c,...d.props(u),tag:"button",ref:t,children:[r.jsx("div",{className:"mdc-icon-button__ripple"}),r.jsx(p,{icon:n}),r.jsx(p,{icon:a,on:!0})]})}),d=s.withRipple({surface:!1,unbounded:!0})(i.createComponent(function(e,t){const{checked:n,label:o,foundationRef:s,children:l,icon:u,...c}=e,d=i.useClassNames(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return r.jsxs(i.Tag,{tag:"button",role:"button",tabIndex:0,"aria-label":o,...c,className:d,ref:t,children:[r.jsx("div",{className:"mdc-icon-button__ripple"}),r.jsx(a.Icon,{icon:u,tag:"i"})]})})),f=s.withRipple({surface:!1,unbounded:!0})(i.createComponent(function(e,t){const{checked:n,...o}=e,a=i.useClassNames(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return r.jsx(i.Tag,{tag:"button",role:"button",tabIndex:0,...o,className:a,ref:t})})),p=o.memo(function(e){const{on:t,...n}=e,o=i.useClassNames(e,["mdc-icon-button__icon",{"mdc-icon-button__icon--on":e.on}]);return r.jsx(a.Icon,{...n,className:o})});t.IconButton=u},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,t,r,n,o;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(6),t=__webpack_require__(26),r=__webpack_require__(11),n=__webpack_require__(0),o=__webpack_require__(1),function(){var i=[function(e){e.exports=n},function(t){t.exports=e},function(e){e.exports=r},,,,,,,,,function(e){e.exports=t},function(e){e.exports=o}],a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{Pagination:function(){return g},useMemorizedValue:function(){return v}});var u=s(1),c=s.n(u),d=s(11),f=s.n(d),p=s(2),h=s(0),m=s(12),_=["boundaryCount","className","disabled","hideNextButton","hidePrevButton","page","pageSize","render","showFirstButton","showLastButton","siblingCount","total"],v=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,h.useMemo)(function(){return e},n)},g=function(e){var t=e.boundaryCount,n=void 0===t?1:t,r=e.className,o=void 0===r?"pagination":r,i=e.disabled,a=e.hideNextButton,s=e.hidePrevButton,l=e.page,u=void 0===l?1:l,d=e.pageSize,h=void 0===d?5:d,v=e.render,g=void 0===v?function(e){var t=e.page,n=e.type;return t+""||n}:v,y=e.showFirstButton,b=e.showLastButton,E=e.siblingCount,C=void 0===E?1:E,x=e.total,A=void 0===x?100:x,I=f()(e,_);return A>(null!=h?h:1)?(0,m.jsx)("div",{className:o,children:(0,m.jsx)("ul",c()({},I,{children:(0,p.paginate)({boundaryCount:n,disabled:void 0!==i&&i,hideNextButton:void 0!==a&&a,hidePrevButton:void 0!==s&&s,page:u,pageSize:h,showFirstButton:void 0!==y&&y,showLastButton:void 0!==b&&b,siblingCount:C,total:A}).map(function(e){return(0,m.jsx)("li",{children:g(e)},e.type+("number"==typeof e.page?"-"+e.page:""))})}))}):(0,m.jsx)(m.Fragment,{})};return l}())},function(e,t,n){n.r(t),n.d(t,{ALWAYS_FLOAT_TYPES:function(){return E},MDCTextField:function(){return D},MDCTextFieldCharacterCounter:function(){return _},MDCTextFieldCharacterCounterFoundation:function(){return m},MDCTextFieldFoundation:function(){return A},MDCTextFieldHelperText:function(){return S},MDCTextFieldHelperTextFoundation:function(){return T},MDCTextFieldIcon:function(){return R},MDCTextFieldIconFoundation:function(){return N},VALIDATION_ATTR_WHITELIST:function(){return b},characterCountCssClasses:function(){return p},characterCountStrings:function(){return h},cssClasses:function(){return g},helperTextCssClasses:function(){return I},helperTextStrings:function(){return O},iconCssClasses:function(){return P},iconStrings:function(){return w},numbers:function(){return y},strings:function(){return v}});var r=n(2),o=n(5),i=n(53),a=n(22),s=n(69),l=n(71),u=n(72),c=n(27),d=n(25),f=n(4),p={ROOT:"mdc-text-field-character-counter"},h={ROOT_SELECTOR:"."+p.ROOT},m=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(f.I),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new m({setContent:function(t){e.root.textContent=t}})},t}(o.O),v={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},g={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},y={LABEL_SCALE:.75},b=["pattern","min","max","required","step","minlength","maxlength"],E=["color","date","datetime-local","month","range","time","week"],C=["mousedown","touchstart"],x=["click","keydown"],A=function(e){function t(n,o){void 0===o&&(o={});var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.isFocused=!1,i.receivedUserInput=!1,i.valid=!0,i.useNativeValidation=!0,i.validateOnValueChange=!0,i.helperText=o.helperText,i.characterCounter=o.characterCounter,i.leadingIcon=o.leadingIcon,i.trailingIcon=o.trailingIcon,i.inputFocusHandler=function(){i.activateFocus()},i.inputBlurHandler=function(){i.deactivateFocus()},i.inputInputHandler=function(){i.handleInput()},i.setPointerXOffset=function(e){i.setTransformOrigin(e)},i.textFieldInteractionHandler=function(){i.handleTextFieldInteraction()},i.validationAttributeChangeHandler=function(e){i.handleValidationAttributeChange(e)},i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat",{get:function(){var e=this.getNativeInput().type;return E.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t,n,o;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var i=(0,r.Ju)(C),a=i.next();!a.done;a=i.next()){var s=a.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var l=(0,r.Ju)(x),u=l.next();!u.done;u=l.next()){s=u.value;this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},t.prototype.destroy=function(){var e,t,n,o;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var i=(0,r.Ju)(C),a=i.next();!a.done;a=i.next()){var s=a.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var l=(0,r.Ju)(x),u=l.next();!u.done;u=l.next()){s=u.value;this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return b.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput().required),!0)}),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*y.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,n=t?t[0]:e,r=n.target.getBoundingClientRect(),o=n.clientX-r.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity(e),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},t.prototype.getValue=function(){return this.getNativeInput().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput().value=e),this.setcharacterCounter(e.length),this.validateOnValueChange){var t=this.isValid();this.styleValidity(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},t.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},t.prototype.isDisabled=function(){return this.getNativeInput().disabled},t.prototype.setDisabled=function(e){this.getNativeInput().disabled=e,this.styleDisabled(e)},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},t.prototype.setcharacterCounter=function(e){if(this.characterCounter){var t=this.getNativeInput().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(e,t)}},t.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},t.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},t.prototype.styleValidity=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation())return;var r=this.helperText.isVisible(),o=this.helperText.getId();r&&o?this.adapter.setInputAttr(v.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(v.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled=function(e){var n=t.cssClasses,r=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(r),this.adapter.removeClass(o)):this.adapter.removeClass(r),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},t.prototype.styleFloating=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(f.I),I={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},O={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+I.ROOT},T=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return I},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return O},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(O.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(I.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(I.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(I.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(I.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(I.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(I.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(O.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(I.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(I.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),"alert"===this.adapter.getAttr(O.ROLE)?this.refreshAlertRole():this.adapter.setAttr(O.ROLE,"alert")):this.adapter.removeAttr(O.ROLE),t||n||this.hide()},t.prototype.hide=function(){this.adapter.setAttr(O.ARIA_HIDDEN,"true")},t.prototype.refreshAlertRole=function(){var e=this;this.adapter.removeAttr(O.ROLE),requestAnimationFrame(function(){e.adapter.setAttr(O.ROLE,"alert")})},t}(f.I),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new T({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(o.O),w={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},P={ROOT:"mdc-text-field__icon"},L=["click","keydown"],N=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.savedTabIndex=null,o.interactionHandler=function(e){o.handleInteraction(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return w},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return P},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(L),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(L),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",w.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(f.I),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new N({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(N.strings.ICON_EVENT,{},!0)}})},t}(o.O),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,i,a){void 0===e&&(e=function(e,t){return new c.N(e,t)}),void 0===t&&(t=function(e){return new l.l(e)}),void 0===n&&(n=function(e){return new S(e)}),void 0===r&&(r=function(e){return new _(e)}),void 0===o&&(o=function(e){return new R(e)}),void 0===i&&(i=function(e){return new s.$(e)}),void 0===a&&(a=function(e){return new u.i(e)}),this.input=this.root.querySelector(v.INPUT_SELECTOR);var d=this.root.querySelector(v.LABEL_SELECTOR);this.label=d?i(d):null;var f=this.root.querySelector(v.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var p=this.root.querySelector(v.OUTLINE_SELECTOR);this.outline=p?a(p):null;var h=T.strings,y=this.root.nextElementSibling,b=y&&y.classList.contains(g.HELPER_LINE),E=b&&y&&y.querySelector(h.ROOT_SELECTOR);this.helperText=E?n(E):null;var C=m.strings,x=this.root.querySelector(C.ROOT_SELECTOR);!x&&b&&y&&(x=y.querySelector(C.ROOT_SELECTOR)),this.characterCounter=x?r(x):null;var A=this.root.querySelector(v.LEADING_ICON_SELECTOR);this.leadingIcon=A?o(A):null;var I=this.root.querySelector(v.TRAILING_ICON_SELECTOR);this.trailingIcon=I?o(I):null,this.prefix=this.root.querySelector(v.PREFIX_SELECTOR),this.suffix=this.root.querySelector(v.SUFFIX_SELECTOR),this.ripple=this.createRipple(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple&&this.lineRipple.destroy(),this.helperText&&this.helperText.destroy(),this.characterCounter&&this.characterCounter.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.trailingIcon&&this.trailingIcon.destroy(),this.label&&this.label.destroy(),this.outline&&this.outline.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input.required},set:function(e){this.input.required=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input.pattern},set:function(e){this.input.pattern=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input.minLength},set:function(e){this.input.minLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input.maxLength},set:function(e){e<0?this.input.removeAttribute("maxLength"):this.input.maxLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input.min},set:function(e){this.input.min=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input.max},set:function(e){this.input.max=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input.step},set:function(e){this.input.step=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix?this.prefix.textContent:null},set:function(e){this.prefix&&(this.prefix.textContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix?this.suffix.textContent:null},set:function(e){this.suffix&&(this.suffix.textContent=e)},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods());return new A(e,this.getFoundationMap())},t.prototype.getRootAdapterMethods=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(function(e){return e.map(function(e){return e.attributeName}).filter(function(e){return e})}(e))});return n.observe(e.input,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods=function(){var e=this;return{getNativeInput:function(){return e.input},setInputAttr:function(t,n){e.input.setAttribute(t,n)},removeInputAttr:function(t){e.input.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input},registerInputInteractionHandler:function(t,n){e.input.addEventListener(t,n,(0,i.E)())},deregisterInputInteractionHandler:function(t,n){e.input.removeEventListener(t,n,(0,i.E)())}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},hasLabel:function(){return Boolean(e.label)},shakeLabel:function(t){e.label&&e.label.shake(t)},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods=function(){var e=this;return{activateLineRipple:function(){e.lineRipple&&e.lineRipple.activate()},deactivateLineRipple:function(){e.lineRipple&&e.lineRipple.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{closeOutline:function(){e.outline&&e.outline.closeNotch()},hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)}}},t.prototype.getFoundationMap=function(){return{characterCounter:this.characterCounter?this.characterCounter.foundationForTextField:void 0,helperText:this.helperText?this.helperText.foundationForTextField:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForTextField:void 0,trailingIcon:this.trailingIcon?this.trailingIcon.foundationForTextField:void 0}},t.prototype.createRipple=function(e){var t=this,n=this.root.classList.contains(g.TEXTAREA),o=this.root.classList.contains(g.OUTLINED);if(n||o)return null;var s=(0,r.Cl)((0,r.Cl)({},c.N.createAdapter(this)),{isSurfaceActive:function(){return a.cK(t.input,":active")},registerInteractionHandler:function(e,n){t.input.addEventListener(e,n,(0,i.E)())},deregisterInteractionHandler:function(e,n){t.input.removeEventListener(e,n,(0,i.E)())}});return e(this.root,new d.E(s))},t}(o.O)},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(66),s=n(67),l=n(68),u=n(64),c=n(65),d=n(109),f=n(24),p=(e,t)=>{if(void 0===e)return t;if(Array.isArray(e)){if("string"==typeof e[0])return e.includes(t)?t:"";{const n=e.find(e=>e.value===t||e.label===t);return n?n.label:""}}{const n=e;if(n[t])return n[t];{const e=Object.keys(n).find(e=>n[e]===t);return e?n[e]:""}}},h=e=>{const[t,n]=o.useState(),[r,a]=o.useState(!1),[s,l]=o.useState(0),[u,c]=o.useState(!1),[f,h]=o.useState(!1),[m,_]=o.useState(""),v=o.useRef(-1),g=o.useRef(),y=o.useRef(),b=o.useRef(null),E=o.useRef(),C=o.useRef(),x=o.useRef(!1),{foundation:A,...I}=i.useFoundation({props:e,elements:{rootEl:!0,anchorEl:!0},foundation:({rootEl:t,anchorEl:r,getProps:o,emit:i})=>{const s=()=>!o().enhanced,u=new d.MDCSelectFoundation({...(()=>{const e=()=>{var e,t;return(s()?Array.apply(null,null==(e=C.current)?void 0:e.options):null==(t=y.current)?void 0:t.items())||[]},t=e=>e.getAttribute("data-value")||e.getAttribute("value")||"";return{setSelectedText:e=>_(e),openMenu:()=>{h(!0)},closeMenu:()=>{h(!1)},getAnchorElement:()=>b.current,setMenuAnchorElement:e=>(e=>{b.current=e})(e),setMenuAnchorCorner:e=>{var t;return null==(t=y.current)?void 0:t.setAnchorCorner(e)},setMenuWrapFocus:e=>{},focusMenuItemAtIndex:e=>{var t;return null==(t=y.current)?void 0:t.focusItemAtIndex(e)},getMenuItemCount:()=>e().length,getMenuItemValues:()=>e().map(t)||[],getMenuItemTextAtIndex:t=>e()[t].textContent,isSelectAnchorFocused:()=>!(!r.ref||r.ref!==document.activeElement),getSelectAnchorAttr:e=>r.getProp(e),setSelectAnchorAttr:(e,t)=>{if("tabindex"===e){if(s())return;e="tabIndex"}return r.setProp(e,t)},removeSelectAnchorAttr:e=>{var t;null==(t=b.current)||t.removeAttribute(e)},addMenuClass:e=>{var t,n,r;return null==(r=null==(n=null==(t=y.current)?void 0:t.getSurfaceElement())?void 0:n.querySelector(".mdc-deprecated-list-item--activated"))?void 0:r.classList.add(e)},removeMenuClass:e=>{var t,n,r;return null==(r=null==(n=null==(t=y.current)?void 0:t.getSurfaceElement())?void 0:n.querySelector(".mdc-deprecated-list-item--activated"))?void 0:r.classList.remove(e)},getSelectedIndex:()=>v.current,setSelectedIndex:e=>(e=>{v.current=e})(e)}})(),addClass:e=>{t.addClass(e)},removeClass:e=>{t.removeClass(e)},hasClass:e=>t.hasClass(e),isRtl:()=>t.ref&&"rtl"===window.getComputedStyle(t.ref).getPropertyValue("direction"),setRippleCenter:e=>{l(e)},activateBottomLine:()=>a(!0),deactivateBottomLine:()=>a(!1),notifyChange:t=>{x.current||i(e.enhanced?"onChange":"MDCSelect:change",{index:v.current,value:t},!0)},hasOutline:()=>!!o().outlined,notchOutline:e=>{n(e)},closeOutline:()=>{n(void 0)},hasLabel:()=>!!o().label,floatLabel:e=>{c(e)},getLabelWidth:()=>{var e;return(null==(e=g.current)?void 0:e.getWidth())||0},setLabelRequired:e=>{var t;return null==(t=g.current)?void 0:t.setRequired(e)}},{leadingIcon:E.current&&E.current.getFoundation()||void 0}),f=u.adapter;u.layout=()=>{(()=>{const e=u.getValue();if(f.hasLabel()){const t=void 0!==W,n=!!o().placeholder||(null==e?void 0:e.length)>0||v.current>-1,r=f.hasClass(d.cssClasses.FOCUSED),i=n||t||r,a=f.hasClass(d.cssClasses.REQUIRED);u.notchOutline(i),f.floatLabel(i),f.setLabelRequired(a)}})()},Object.defineProperty(u,"menuItemValues",{get:()=>f.getMenuItemValues()});const p=u.init.bind(u);return u.init=()=>{x.current=!0,p();const e=String(o().placeholder||"");!u.getValue()&&e&&f.setSelectedText(e),x.current=!1},u}}),{rootEl:O}=I,{onFocus:T}=e,S=o.useCallback(e=>{null==T||T(e),A.handleFocus()},[T,A]),{onBlur:w}=e,P=o.useCallback(e=>{null==w||w(e),A.handleBlur()},[w,A]),{onChange:L}=e,N=o.useCallback(e=>{null==L||L(e),A.handleChange()},[L,A]),R=o.useCallback(e=>{var t,n;if(null!=(t=O.ref)&&t.querySelector(".mdc-select--disabled"))return;if(null!=(n=O.ref)&&n.querySelector(".mdc-menu-surface--open"))return void A.handleMenuClosed();const r=(e=>{const t=e.target.getBoundingClientRect();return e.clientX-t.left})(e);O.ref&&O.ref.focus(),A.handleClick(r)},[A,O.ref]),{onKeyDown:D}=e,M=o.useCallback(e=>{null==D||D(e),A.handleKeydown(e)},[A,D]),k=o.useCallback(e=>{v.current=e,A.handleMenuItemAction(e)},[A]),j=o.useCallback(()=>{A.handleMenuOpened()},[A]),F=o.useCallback(()=>{h(!1),A.handleMenuClosed()},[A]),B=A.getValue(),U=e.value??(-1===v.current?e.defaultValue:void 0),V=Array.isArray(e.options)?e.options.length:Object.values(e.options||{}).length;o.useEffect(()=>{if(x.current=!0,void 0!==U&&U!==B){A.setValue(U||""),_(p(e.options,U));const t=A.menuItemValues.indexOf(U);if(v.current=t,A.menuItemValues.includes(U)){const e=A.adapter.getMenuItemTextAtIndex(t);_(e),c(!0)}}i.raf(()=>{x.current=!1})},[U,B,V,A,A.menuItemValues]),o.useEffect(()=>{A.setDisabled(!!e.disabled)},[A,e.disabled]),o.useEffect(()=>{var e;O.ref&&(null==(e=y.current)||e.setAnchorElement(O.ref))},[O.ref]);const{defaultValue:W}=e;return o.useEffect(()=>{if(W){const t=p(e.options,W);_(t.toString())}},[]),o.useEffect(()=>{e.open&&(h(!0),A.handleMenuOpened())},[]),{notchWidth:t,menuOpen:f,lineRippleActive:r,lineRippleCenter:s,floatLabel:u,selectedIndex:v.current,selectedTextContent:m,setFloatingLabel:e=>{g.current=e},setMenu:e=>{y.current=e},setLeadingIcon:e=>{E.current=e},setNativeControl:e=>{C.current=e},handleFocus:S,handleBlur:P,handleChange:N,handleClick:R,handleKeydown:M,handleMenuClosed:F,handleMenuOpened:j,handleMenuSelected:k,...I}},m=function(e){const{apiRef:t,...n}=e,{rootEl:o}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getFoundation:()=>e}),foundation:({rootEl:e,emit:t})=>new d.MDCSelectIconFoundation({getAttr:t=>e.getProp(t),setAttr:(t,n)=>e.setProp(t,n),removeAttr:t=>e.removeProp(t),setContent:t=>{e.ref&&(e.ref.textContent=t)},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n),notifyIconAction:()=>t("onClick",{},!0)})});return{...n}})(e),a=i.useClassNames(e,["mdc-select__icon"]);return r.jsx(f.Icon,{...o.props({...n,className:a})})},_=e=>Array.isArray(e)&&e[0]&&"object"==typeof e[0]?e.map(e=>{if("object"!=typeof e)throw new Error(`Encountered non object for Select ${e}`);return{...e,options:_(e.options)}}):Array.isArray(e)?e.map(e=>({value:e,label:e})):"object"==typeof e?Object.keys(e).map(t=>({value:t,label:e[t]})):e,v=()=>r.jsxs("span",{className:"mdc-select__dropdown-icon",children:[r.jsx(f.Icon,{className:"mdc-select__dropdown-icon-inactive",icon:"arrow_drop_down"}),r.jsx(f.Icon,{className:"mdc-select__dropdown-icon-active",icon:"arrow_drop_up"})]});function g(e){const{selectOptions:t,placeholder:n="",children:o,elementRef:i,open:a,label:s,...l}=e,u=({label:e,option:t,index:n})=>r.jsx("option",{...t,value:t.value,children:e},n),c=!e.value&&!e.defaultValue;return r.jsxs("select",{tabIndex:0,...l,ref:i,className:"rmwc-select__native-control"+(l.className?` ${l.className}`:""),children:[(void 0!==e.placeholder||c)&&r.jsx("option",{value:"",disabled:c,children:n}),!!t&&t.map(({label:e,options:t,...n},o)=>t?r.jsx("optgroup",{label:e,children:t.map(({label:e,...t},n)=>u({label:e,option:t,index:n}))},o):u({label:e,option:n,index:o})),o]})}const y=function(e){return r.jsx(i.Tag,{...e})},b=o.forwardRef((e,t)=>{const{selectOptions:n,menuApiRef:o,value:a,placeholder:s,children:l,selectedIndex:d,renderToPortal:f,...p}=e;let h=0;const m=i.useClassNames(e,["mdc-select__menu"]),_=({label:e,option:t})=>(h+=1,r.jsx(u.MenuItem,{activated:void 0!==a?t.value===a:h-1===d,...t,"data-value":t.value,children:r.jsx("span",{className:"mdc-deprecated-list-item__text",children:e})},`${e}-${t.value}`));return r.jsxs(u.Menu,{...p,ref:t,apiRef:o,className:m,focusOnOpen:!0,renderToPortal:f,children:[!!e.placeholder&&r.jsx(u.MenuItem,{selected:h-1===d,"data-value":"",theme:"textDisabledOnBackground",children:r.jsx("span",{className:"mdc-deprecated-list-item__text",children:s})}),n.map(({label:e,options:t,...o},i)=>t?r.jsxs(c.ListGroup,{children:[e&&r.jsx(c.ListGroupSubheader,{theme:"textDisabledOnBackground",children:e}),r.jsx(u.MenuItems,{children:t.map(({label:e,...t})=>_({label:e,option:t}))}),i<n.length-1&&r.jsx(c.ListDivider,{})]},i):_({label:e,option:o})),l]})}),E=({enhanced:e,children:t})=>e?r.jsx(u.MenuSurfaceAnchor,{children:t}):r.jsx(r.Fragment,{children:t}),C=i.createComponent(function(e,t){const{placeholder:n,children:u,disabled:c,value:d,outlined:f,label:p="",options:C=[],rootProps:A={},enhanced:I,icon:O,onChange:T,onFocus:S,onBlur:w,onKeyDown:P,invalid:L,inputRef:N,helpText:R,foundationRef:D,...M}=e,k=_(C),{rootEl:j,anchorEl:F,notchWidth:B,menuOpen:U,selectedTextContent:V,lineRippleActive:W,lineRippleCenter:q,floatLabel:H,setFloatingLabel:K,setNativeControl:z,setLeadingIcon:$,selectedIndex:G,setMenu:X,handleFocus:Y,handleBlur:Q,handleChange:J,handleClick:Z,handleKeydown:ee,handleMenuClosed:te,handleMenuOpened:ne,handleMenuSelected:re}=h(e),oe=i.useId("select",e),ie=oe+"-label",ae=i.useClassNames(e,["mdc-select","rmwc-select__default-width",{"mdc-select--outlined":!!f,"mdc-select--filled":!f,"mdc-select--required":!!e.required,"mdc-select--invalid":!!L,"mdc-select--with-leading-icon":!!O,"mdc-select--no-label":!p}]),se="object"==typeof I?I:{},le=void 0!==d?void 0:e.defaultValue||"",ue=r.jsx(a.FloatingLabel,{float:H,apiRef:K,htmlFor:oe,id:ie,children:p});return r.jsxs(E,{enhanced:I,children:[r.jsxs(i.Tag,{...A,element:j,ref:t,className:ae,children:[r.jsxs(y,{className:"mdc-select__anchor",role:"button","aria-haspopup":"listbox","aria-labelledby":ie,element:F,onFocus:c?void 0:Y,onBlur:Q,onClick:Z,onKeyDown:ee,tabIndex:I?void 0:-1,children:[!!O&&r.jsx(m,{apiRef:$,icon:O}),f?r.jsx(l.NotchedOutline,{notch:B,children:ue}):r.jsxs(r.Fragment,{children:[r.jsx(s.LineRipple,{active:W,center:q}),ue]}),r.jsx("span",{className:"mdc-select__selected-text-container",children:r.jsx("span",{className:"mdc-select__selected-text",children:V})}),r.jsx(v,{}),!I&&r.jsx(g,{...M,id:oe,value:d,children:u,defaultValue:le,placeholder:n,selectOptions:k,elementRef:z,onFocus:Y,onBlur:e=>{Q(e),te()},onChange:e=>{J(e),re(e.currentTarget.selectedIndex)},disabled:c})]}),I&&r.jsx(b,{...M,...se,ref:t,anchorCorner:se.anchorCorner??"bottomStart",defaultValue:le,disabled:c,placeholder:n,open:U,onClose:te,onOpen:ne,onSelect:e=>{re(e.detail.index)},selectOptions:k,value:d,selectedIndex:G,menuApiRef:X,children:u})]}),(()=>{if(!R)return null;const e="object"==typeof R&&!o.isValidElement(R);return R&&e?r.jsx(x,{...R}):r.jsx(x,{children:R})})()]})}),x=i.createComponent(function(e,t){const{persistent:n,validationMsg:o,...a}=e,s=i.useClassNames(e,["mdc-select-helper-text",{"mdc-select-helper-text--persistent":n,"mdc-select-helper-text--validation-msg":o}]);return r.jsx(i.Tag,{tag:"p",...a,className:s,ref:t})});t.Select=C,t.SelectHelperText=x},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(66),s=n(24),l=n(67),u=n(68),c=n(23),d=n(84),f=e=>{const[t,n]=o.useState(!1),[r,a]=o.useState(0),[s,l]=o.useState(),[u,c]=o.useState(!1),[f,p]=o.useState(!1),h=o.useRef(),m=e=>{h.current=e},_=o.useRef(),v=o.useRef(),g=o.useRef(),{content:y}=(e=>{const[t,n]=o.useState(),{foundation:r,...a}=i.useFoundation({props:e,api:({foundation:e})=>({getFoundation:()=>e}),elements:{},foundation:()=>new d.MDCTextFieldCharacterCounterFoundation({setContent:e=>{n(e)}})});return{content:t,...a}})({apiRef:e.characterCount?m:void 0}),{foundation:b,...E}=i.useFoundation({props:e,elements:{rootEl:!0,inputEl:!0},foundation:({rootEl:e,inputEl:t,getProps:r})=>new d.MDCTextFieldFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),registerTextFieldInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterTextFieldInteractionHandler:(t,n)=>e.removeEventListener(t,n),registerValidationAttributeChangeHandler:e=>{if(t.ref){const n=new MutationObserver(t=>e((e=>e.map(e=>e.attributeName))(t))),r=t.ref,o={attributes:!0};return r&&n.observe(r,o),n}return{}},deregisterValidationAttributeChangeHandler:e=>{e&&e.disconnect()},isFocused:()=>document.activeElement===t.ref,registerInputInteractionHandler:(e,n)=>t.addEventListener(e,n),deregisterInputInteractionHandler:(e,n)=>t.removeEventListener(e,n),getNativeInput:()=>t.ref,shakeLabel:e=>c(e),floatLabel:e=>{p(r().floatLabel??e)},hasLabel:()=>!!r().label,getLabelWidth:()=>{var e;return(null==(e=g.current)?void 0:e.getWidth())||0},activateLineRipple:()=>{n(!0)},deactivateLineRipple:()=>{n(!1)},setLineRippleTransformOrigin:e=>{a(e)},notchOutline:e=>{l(e)},closeOutline:()=>{r().floatLabel??l(void 0)},hasOutline:()=>!!r().outlined},{characterCounter:h.current?h.current.getFoundation():void 0,helperText:void 0,leadingIcon:_.current?_.current.getFoundation():void 0,trailingIcon:v.current?v.current.getFoundation():void 0})}),C=b.getValue();return o.useEffect(()=>{void 0!==e.value&&e.value!==C&&b.setValue(String(e.value))},[e.value,b,C]),o.useEffect(()=>{void 0!==e.floatLabel&&(b.notchOutline(e.floatLabel),b.adapter.floatLabel(e.floatLabel))},[b,e.floatLabel]),{shakeLabel:u,floatLabel:f,notchWidth:s,lineRippleActive:t,lineRippleCenter:r,setCharacterCounter:m,setLeadingIcon:e=>_.current=e,setTrailingIcon:e=>v.current=e,setFloatingLabel:e=>g.current=e,characterCountContent:y,...E}},p=i.createComponent(function(e,t){const{label:n,style:s,outlined:c,align:d,invalid:p,disabled:b,helpText:E,children:C,textarea:x,fullwidth:A,inputRef:I,characterCount:O,icon:T,trailingIcon:S,rootProps:w={},foundationRef:P,ripple:L,prefix:N,suffix:R,resizeable:D,floatLabel:M,...k}=e,{rootEl:j,inputEl:F,shakeLabel:B,floatLabel:U,notchWidth:V,lineRippleActive:W,lineRippleCenter:q,setLeadingIcon:H,setTrailingIcon:K,setFloatingLabel:z,characterCountContent:$}=f(e),G=i.useId("textfield",e)+"-label",X=i.useClassNames(e,["mdc-text-field","mdc-text-field--upgraded",{"mdc-text-field--filled":!c,"mdc-text-field--textarea":x,"mdc-text-field--outlined":c,"mdc-text-field--invalid":p,"mdc-text-field--disabled":b,"mdc-text-field--with-leading-icon":!!T,"mdc-text-field--with-trailing-icon":!!S,"mdc-text-field--no-label":!n,"mdc-text-field--end-aligned":"end"===d,"mdc-text-field--with-internal-counter":x&&O,"rmwc-text-field--fullwidth":A}]),Y=(e,t)=>r.jsx(y,{apiRef:e=>{"leading"===t?H(e):K(e)},position:t,tabIndex:"trailing"===t?0:void 0,icon:e}),Q=n?r.jsx(a.FloatingLabel,{shake:B,float:U,apiRef:z,id:G,children:n}):null,J=O?r.jsx("div",{className:"mdc-text-field-character-counter",children:$}):null,Z=D?r.jsxs("span",{className:"mdc-text-field__resizer",children:[r.jsx(i.Tag,{...k,element:F,className:"mdc-text-field__input",disabled:b,tag:"textarea",ref:i.mergeRefs(t,I)}),J]}):r.jsxs(r.Fragment,{children:[r.jsx(i.Tag,{...k,element:F,className:"mdc-text-field__input",disabled:b,tag:"textarea",ref:i.mergeRefs(t,I)}),J]});return r.jsxs(r.Fragment,{children:[r.jsxs(m,{...w,element:j,style:s,className:X,ref:t,children:[!!T&&Y(T,"leading"),C,r.jsx(h,{}),!!N&&!x&&r.jsx(_,{prefix:N}),x?Z:r.jsx(i.Tag,{...k,"aria-labelledby":G,element:F,className:"mdc-text-field__input",disabled:b,tag:"input",ref:i.mergeRefs(t,I)}),!!R&&!x&&r.jsx(v,{suffix:R}),c?r.jsxs(r.Fragment,{children:[r.jsx(u.NotchedOutline,{notch:V,children:Q}),!!S&&Y(S,"trailing")]}):r.jsxs(r.Fragment,{children:[Q,!!S&&Y(S,"trailing"),r.jsx(l.LineRipple,{active:W,center:q})]})]}),(e=>{if(!(E||O&&!x))return null;const t="object"==typeof E&&!o.isValidElement(E);return r.jsxs("div",{className:"mdc-text-field-helper-line",children:[E&&t?r.jsx(g,{...E}):r.jsx(g,{children:E}),!x&&e]})})(J)]})}),h=o.memo(function(){return r.jsx("span",{className:"mdc-text-field__ripple"})}),m=c.withRipple({surface:!1})(o.forwardRef(function(e,t){return r.jsx(i.Tag,{...e,tag:"label",ref:t})})),_=o.memo(function({prefix:e}){return r.jsx("span",{className:"mdc-text-field__affix mdc-text-field__affix--prefix",children:e})}),v=o.memo(function({suffix:e}){return r.jsx("span",{className:"mdc-text-field__affix mdc-text-field__affix--suffix",children:e})}),g=i.createComponent(function(e,t){const{persistent:n,validationMsg:o,...a}=e,s=i.useClassNames(e,["mdc-text-field-helper-text",{"mdc-text-field-helper-text--persistent":n,"mdc-text-field-helper-text--validation-msg":o}]);return r.jsx(i.Tag,{tag:"div",...a,className:s,ref:t})}),y=function(e){const{apiRef:t,position:n,...o}=e,{rootEl:a}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getFoundation:()=>e}),foundation:({rootEl:e,emit:t})=>new d.MDCTextFieldIconFoundation({getAttr:t=>e.getProp(t),setAttr:(t,n)=>e.setProp(t,n),removeAttr:t=>e.removeProp(t),setContent:t=>{e.setProp("icon",t)},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n),notifyIconAction:()=>t("onClick",{},!0)})});return{...n}})(e),l=i.useClassNames(e,["mdc-text-field__icon",{"mdc-text-field__icon--trailing":"trailing"===n,"mdc-text-field__icon--leading":"leading"===n}]);return r.jsx(s.Icon,{...a.props({...o,className:l})})};y.displayName="TextFieldIcon",t.TextField=p,t.TextFieldHelperText=g},function(e,t,n){n.d(t,{Y:function(){return r}});
398
+ var r={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},o={NOTCH_ELEMENT_PADDING:8},i={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"}},function(e,t,n){n.d(t,{Y:function(){return m}});var r=n(2),o=n(4),i=n(107),a=n(53),s=["input","button","textarea","select"],l=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===s.indexOf(n)&&e.preventDefault()}};function u(e,t){var n,r=e.nextChar,o=e.focusItemAtIndex,i=e.sortedIndexByFirstChar,s=e.focusedItemIndex,l=e.skipFocus,u=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){d(t)},a.nL.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+r,n=1===t.typeaheadBuffer.length?function(e,t,n,r){var o=r.typeaheadBuffer[0],i=e.get(o);if(!i)return-1;if(o===r.currentFirstChar&&i[r.sortedIndexCursor].index===t){r.sortedIndexCursor=(r.sortedIndexCursor+1)%i.length;var a=i[r.sortedIndexCursor].index;if(!n(a))return a}r.currentFirstChar=o;var s,l=-1;for(s=0;s<i.length;s++)if(!n(i[s].index)){l=s;break}for(;s<i.length;s++)if(i[s].index>t&&!n(i[s].index)){l=s;break}if(-1!==l)return r.sortedIndexCursor=l,i[r.sortedIndexCursor].index;return-1}(i,s,u,t):function(e,t,n){var r=n.typeaheadBuffer[0],o=e.get(r);if(!o)return-1;var i=o[n.sortedIndexCursor];if(0===i.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(i.index))return i.index;var a=(n.sortedIndexCursor+1)%o.length,s=-1;for(;a!==n.sortedIndexCursor;){var l=o[a],u=0===l.text.lastIndexOf(n.typeaheadBuffer,0),c=!t(l.index);if(u&&c){s=a;break}a=(a+1)%o.length}if(-1!==s)return n.sortedIndexCursor=s,o[n.sortedIndexCursor].index;return-1}(i,u,t),-1===n||l||o(n),n}function c(e){return e.typeaheadBuffer.length>0}function d(e){e.typeaheadBuffer=""}function f(e,t){var n=e.event,r=e.isTargetListItem,o=e.focusedItemIndex,a=e.focusItemAtIndex,s=e.sortedIndexByFirstChar,d=e.isItemAtIndexDisabled,f="ArrowLeft"===(0,i.l5)(n),p="ArrowUp"===(0,i.l5)(n),h="ArrowRight"===(0,i.l5)(n),m="ArrowDown"===(0,i.l5)(n),v="Home"===(0,i.l5)(n),y="End"===(0,i.l5)(n),g="Enter"===(0,i.l5)(n),_="Spacebar"===(0,i.l5)(n);return n.altKey||n.ctrlKey||n.metaKey||f||p||h||m||v||y||g?-1:_||1!==n.key.length?_?(r&&l(n),r&&c(t)?u({focusItemAtIndex:a,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:d},t):-1):-1:(l(n),u({focusItemAtIndex:a,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:d},t))}var p=["Alt","Control","Meta","Shift"];function h(e){var t=new Set(e?p.filter(function(t){return e.getModifierState(t)}):[]);return function(e){return e.every(function(e){return t.has(e)})&&e.length===t.size}}var m=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.wrapFocus=!1,o.isVertical=!0,o.isSingleSelectionList=!1,o.areDisabledItemsFocusable=!0,o.selectedIndex=a.nL.UNSET_INDEX,o.focusedItemIndex=a.nL.UNSET_INDEX,o.useActivatedClass=!1,o.useSelectedAttr=!1,o.ariaCurrentAttrValue=null,o.isCheckboxList=!1,o.isRadioList=!1,o.lastSelectedIndex=null,o.hasTypeahead=!1,o.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},o.sortedIndexByFirstChar=new Map,o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return a.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return a.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return a.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},t.prototype.setWrapFocus=function(e){this.wrapFocus=e},t.prototype.setVerticalOrientation=function(e){this.isVertical=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList=e,e&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},t.prototype.setDisabledItemsFocusable=function(e){this.areDisabledItemsFocusable=e},t.prototype.maybeInitializeSingleSelection=function(){var e=this.getSelectedIndexFromDOM();e!==a.nL.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,a.Y7.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},t.prototype.getSelectedIndexFromDOM=function(){for(var e=a.nL.UNSET_INDEX,t=this.adapter.getListItemCount(),n=0;n<t;n++){var r=this.adapter.listItemAtIndexHasClass(n,a.Y7.LIST_ITEM_SELECTED_CLASS),o=this.adapter.listItemAtIndexHasClass(n,a.Y7.LIST_ITEM_ACTIVATED_CLASS);if(r||o){e=n;break}}return e},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&c(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t={}),this.isIndexValid(e)&&(this.isCheckboxList?this.setCheckboxAtIndex(e,t):this.isRadioList?this.setRadioAtIndex(e,t):this.setSingleSelectionAtIndex(e,t))},t.prototype.handleFocusIn=function(e){e>=0&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},t.prototype.handleFocusOut=function(e){var t=this;e>=0&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout(function(){t.adapter.isFocusInsideList()||t.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.isIndexDisabled=function(e){return this.adapter.listItemAtIndexHasClass(e,a.Y7.LIST_ITEM_DISABLED_CLASS)},t.prototype.handleKeydown=function(e,t,n){var r,o=this,s="ArrowLeft"===(0,i.l5)(e),u="ArrowUp"===(0,i.l5)(e),c="ArrowRight"===(0,i.l5)(e),d="ArrowDown"===(0,i.l5)(e),p="Home"===(0,i.l5)(e),m="End"===(0,i.l5)(e),v="Enter"===(0,i.l5)(e),y="Spacebar"===(0,i.l5)(e),g=this.isVertical&&d||!this.isVertical&&c,_=this.isVertical&&u||!this.isVertical&&s,b="A"===e.key||"a"===e.key,E=h(e);if(this.adapter.isRootFocused()){if((_||m)&&E([]))e.preventDefault(),this.focusLastElement();else if((g||p)&&E([]))e.preventDefault(),this.focusFirstElement();else if(_&&E(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(C=this.focusLastElement())&&this.setSelectedIndexOnAction(C,!1)}else if(g&&E(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(C=this.focusFirstElement())&&this.setSelectedIndexOnAction(C,!1)}this.hasTypeahead&&f({event:e,focusItemAtIndex:function(e){o.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return o.isIndexDisabled(e)}},this.typeaheadState)}else{var x=this.adapter.getFocusedElementIndex();if(!(-1===x&&(x=n)<0)){if(g&&E([]))l(e),this.focusNextElement(x);else if(_&&E([]))l(e),this.focusPrevElement(x);else if(g&&E(["Shift"])&&this.isCheckboxList){l(e),-1!==(C=this.focusNextElement(x))&&this.setSelectedIndexOnAction(C,!1)}else if(_&&E(["Shift"])&&this.isCheckboxList){var C;l(e),-1!==(C=this.focusPrevElement(x))&&this.setSelectedIndexOnAction(C,!1)}else if(p&&E([]))l(e),this.focusFirstElement();else if(m&&E([]))l(e),this.focusLastElement();else if(p&&E(["Control","Shift"])&&this.isCheckboxList){if(l(e),this.isIndexDisabled(x))return;this.focusFirstElement(),this.toggleCheckboxRange(0,x,x)}else if(m&&E(["Control","Shift"])&&this.isCheckboxList){if(l(e),this.isIndexDisabled(x))return;this.focusLastElement(),this.toggleCheckboxRange(x,this.adapter.getListItemCount()-1,x)}else if(b&&E(["Control"])&&this.isCheckboxList)e.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex,!0);else if((v||y)&&E([])){if(t){if((S=e.target)&&"A"===S.tagName&&v)return;if(l(e),this.isIndexDisabled(x))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(x,!1),this.adapter.notifyAction(x))}}else if((v||y)&&E(["Shift"])&&this.isCheckboxList){var S;if((S=e.target)&&"A"===S.tagName&&v)return;if(l(e),this.isIndexDisabled(x))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:x,x,x),this.adapter.notifyAction(x))}if(this.hasTypeahead)f({event:e,focusItemAtIndex:function(e){o.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return o.isIndexDisabled(e)}},this.typeaheadState)}}},t.prototype.handleClick=function(e,t,n){var r,o=h(n);e!==a.nL.UNSET_INDEX&&(this.isIndexDisabled(e)||(o([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)):this.isCheckboxList&&o(["Shift"])&&(this.toggleCheckboxRange(null!==(r=this.lastSelectedIndex)&&void 0!==r?r:e,e,e),this.adapter.notifyAction(e))))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e,r=null;do{if(++n>=t){if(!this.wrapFocus)return e;n=0}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=this.adapter.getListItemCount(),n=e,r=null;do{if(--n<0){if(!this.wrapFocus)return e;n=t-1}if(n===r)return-1;r=null!=r?r:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},t.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid(e,!1)&&(t?(this.adapter.removeClassForElementIndex(e,a.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.P$.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,a.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.P$.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex=function(e,t){if(void 0===t&&(t={}),this.selectedIndex!==e||t.forceUpdate){var n=a.Y7.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=a.Y7.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==a.nL.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,n),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e])}},t.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===a.nL.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,a.P$.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?a.P$.ARIA_CURRENT:a.P$.ARIA_SELECTED;if(this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==a.nL.UNSET_INDEX){var r=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,r)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?a.P$.ARIA_SELECTED:a.P$.ARIA_CHECKED},t.prototype.setRadioAtIndex=function(e,t){void 0===t&&(t={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),(this.selectedIndex!==e||t.forceUpdate)&&(this.selectedIndex!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(e,n,"true"),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e]))},t.prototype.setCheckboxAtIndex=function(e,t){void 0===t&&(t={});for(var n=this.selectedIndex,r=t.isUserInteraction?new Set(n===a.nL.UNSET_INDEX?[]:n):null,o=this.getSelectionAttribute(),i=[],s=0;s<this.adapter.getListItemCount();s++){var l=null==r?void 0:r.has(s),u=e.indexOf(s)>=0;u!==l&&i.push(s),this.adapter.setCheckedCheckboxOrRadioAtIndex(s,u),this.adapter.setAttributeForElementIndex(s,o,u?"true":"false")}this.selectedIndex=e,t.isUserInteraction&&i.length&&this.adapter.notifySelectionChange(i)},t.prototype.toggleCheckboxRange=function(e,t,n){this.lastSelectedIndex=n;for(var o=new Set(this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex),i=!(null==o?void 0:o.has(n)),s=(0,r.zs)([e,t].sort(),2),l=s[0],u=s[1],c=this.getSelectionAttribute(),d=[],f=l;f<=u;f++){if(!this.isIndexDisabled(f))i!==o.has(f)&&(d.push(f),this.adapter.setCheckedCheckboxOrRadioAtIndex(f,i),this.adapter.setAttributeForElementIndex(f,c,""+i),i?o.add(f):o.delete(f))}d.length&&(this.selectedIndex=(0,r.fX)([],(0,r.zs)(o)),this.adapter.notifySelectionChange(d))},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===a.nL.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===e||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),e!==a.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==a.nL.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce(function(e,t){return Math.min(e,t)}):0:Math.max(this.focusedItemIndex,0)},t.prototype.isIndexValid=function(e,t){var n=this;if(void 0===t&&(t=!0),e instanceof Array){if(!this.isCheckboxList&&t)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return n.isIndexInRange(e)})}if("number"==typeof e){if(this.isCheckboxList&&t)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===a.nL.UNSET_INDEX}return!1},t.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction=function(e,t){this.lastSelectedIndex=e,this.isCheckboxList?(this.toggleCheckboxAtIndex(e,t),this.adapter.notifySelectionChange([e])):this.setSelectedIndex(e,{isUserInteraction:!0})},t.prototype.toggleCheckboxAtIndex=function(e,t){var n,r=this.getSelectionAttribute(),o=this.adapter.isCheckboxCheckedAtIndex(e);t?n=o:(n=!o,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,n)),this.adapter.setAttributeForElementIndex(e,r,n?"true":"false");var i=this.selectedIndex===a.nL.UNSET_INDEX?[]:this.selectedIndex.slice();n?i.push(e):i=i.filter(function(t){return t!==e}),this.selectedIndex=i},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.checkboxListToggleAll=function(e,t){var n=this.adapter.getListItemCount();if(e.length===n)this.setCheckboxAtIndex([],{isUserInteraction:t});else{for(var r=[],o=0;o<n;o++)(!this.isIndexDisabled(o)||e.indexOf(o)>-1)&&r.push(o);this.setCheckboxAtIndex(r,{isUserInteraction:t})}},t.prototype.typeaheadMatchItem=function(e,t,n){var r=this;return void 0===n&&(n=!1),u({focusItemAtIndex:function(e){r.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return r.isIndexDisabled(e)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,r=0;r<e;r++){var o=t(r).trim();if(o){var i=o[0].toLowerCase();n.has(i)||n.set(i,[]),n.get(i).push({text:o.toLowerCase(),index:r})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){d(this.typeaheadState)},t}(o.I)},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,r,n,t,i,a,o;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(6),r=__webpack_require__(11),n=__webpack_require__(20),t=__webpack_require__(0),i=__webpack_require__(111),a=__webpack_require__(80),o=__webpack_require__(1),function(){var s=[,function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=t},function(e){e.exports=i},function(e){e.exports=a},function(e){e.exports=o}],l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return s[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};u.r(c),u.d(c,{GenericAnimate:function(){return E},GenericAnimateInner:function(){return b},default:function(){return x}});var d=u(1),f=u.n(d),p=u(2),h=u(3),m=u(4),v=u(5),y=u(6),g=u(7),_={genericAnimate:"generic-animate",genericAnimateListWrapper:"generic-animate__list-wrapper",genericAnimateWrapper:"generic-animate__wrapper",genericAnimateAppear:"generic-animate-appear",genericAnimateEnter:"generic-animate-enter",genericAnimateExitActive:"generic-animate-exit-active",genericAnimateAppearActive:"generic-animate-appear-active",genericAnimateEnterActive:"generic-animate-enter-active",genericAnimateExit:"generic-animate-exit",genericAnimateExitDone:"generic-animate-exit-done"},b=function(e,t){t||(t=(0,m.useRef)(null));var n=(0,p.isFunction)(e.children)?e.children(y.ENTERING):e.children;return(0,g.jsx)(v.CSSTransition,f()({appear:!0,classNames:_.genericAnimate,in:!0,nodeRef:t,timeout:200,unmountOnExit:!0},e,{children:"string"==typeof n?(0,g.jsx)("span",{className:_.genericAnimateWrapper,ref:t,children:n}):Array.isArray(n)?(0,g.jsx)("div",{className:_.genericAnimateListWrapper,ref:t,children:n}):"string"==typeof n?(0,g.jsx)("span",{ref:t,children:n}):n}))},E=(0,m.memo)((0,m.forwardRef)(b));E.wrapped=b,E.webComponentAdapterWrapped="react",E.propTypes={appear:h.boolean,classNames:h.string,in:h.boolean,timeout:h.number};var x=E;return c}())},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(3),i=n(109),a=n(0),s={xsmall:24,small:24,medium:32,large:48,xlarge:48},l={24:12,32:16,48:24},u={24:8.75,32:12.5,48:18},c={24:54.978,32:78.54,48:113.097},d={24:27.489,32:39.27,48:56.549},f={24:2.5,32:3,48:4},p={24:2,32:2.4,48:3.2},h=o.createComponent(function(e,t){const{closed:n,size:h="small",max:m=1,min:v=0,progress:y,label:g,..._}=e,{rootEl:b,determinateCircleEl:E}=(e=>{const{foundation:t,...n}=o.useFoundation({props:e,elements:{rootEl:!0,determinateCircleEl:!0},foundation:({rootEl:e,determinateCircleEl:t})=>new i.MDCCircularProgressFoundation({addClass:t=>e.addClass(t),getDeterminateCircleAttribute:e=>{var n;return null==(n=t.ref)?void 0:n.getAttribute(e)},hasClass:t=>e.hasClass(t),removeClass:t=>e.removeClass(t),removeAttribute:t=>e.removeProp(t),setAttribute:(t,n)=>{e.setProp(t,n)},setDeterminateCircleAttribute:(e,n)=>{var r;return null==(r=t.ref)?void 0:r.setAttribute(e,n)}})}),[r,s]=a.useState(void 0);return a.useEffect(()=>{t.setProgress(e.progress||0);const n=void 0!==e.progress;n!==r&&(t.setDeterminate(n),s(n))},[e.progress,r,t]),a.useEffect(()=>{e.closed?t.close():t.open()},[e.closed,t]),{foundation:t,...n}})(e),x=o.useClassNames(e,["mdc-circular-progress",`rmwc-circular-progress--${h}`,{"mdc-circular-progress--closed":n}]),C=void 0!==y,S="number"==typeof h,w=s[S?"medium":h],O=S?{..._.style,fontSize:`${h}px`,width:`${h}px`,height:`${h}px`}:{..._.style},T=e=>e<v?0:e>m?1:(e-v)/(m-v),A=e=>({cx:l[e],cy:l[e],r:u[e],strokeDasharray:c[e],strokeDashoffset:d[e],strokeWidth:f[e]});return r.jsx(o.Tag,{"aria-valuenow":y,"aria-valuemin":v,"aria-valuemax":m,"aria-label":g,..._,style:O,className:x,element:b,ref:t,role:"progressbar",children:C?r.jsx("div",{className:"mdc-circular-progress__determinate-container",children:r.jsxs("svg",{className:"mdc-circular-progress__determinate-circle-graphic",viewBox:`0 0 ${w} ${w}`,children:[r.jsx("circle",{className:"mdc-circular-progress__determinate-track",cx:w/2,cy:w/2,r:w/2.4,strokeWidth:"4"}),r.jsx(o.Tag,{tag:"circle",className:"mdc-circular-progress__determinate-circle",style:(I=w,void 0!==y?{strokeDasharray:2*Math.PI*(I/2.4)*T(y)+", 666.66%",width:`${I}px`,height:`${I}px`}:void 0),cx:w/2,cy:w/2,r:w/2.4,element:E,strokeDashoffset:"113.097",strokeWidth:"4"})]})}):r.jsx("div",{className:"mdc-circular-progress__indeterminate-container",children:r.jsxs("div",{className:"mdc-circular-progress__spinner-layer",children:[r.jsx("div",{className:"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${w} ${w}`,children:r.jsx("circle",{...A(w)})})}),r.jsx("div",{className:"mdc-circular-progress__gap-patch",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${w} ${w}`,children:r.jsx("circle",{...A(w),strokeWidth:p[w]})})}),r.jsx("div",{className:"mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right",children:r.jsx("svg",{className:"mdc-circular-progress__indeterminate-circle-graphic",viewBox:`0 0 ${w} ${w}`,children:r.jsx("circle",{...A(w)})})})]})})});var I});t.CircularProgress=h},function(e,t,n){n.r(t),n.d(t,{ENTERED:function(){return p},ENTERING:function(){return f},EXITED:function(){return d},EXITING:function(){return h},UNMOUNTED:function(){return c}});var r=n(81),o=n(82),i=n(0),a=n(7),s=n(112),l=n(83),u=n(84),c="unmounted",d="exited",f="entering",p="entered",h="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=f):o=p:o=t.unmountOnExit||t.mountOnEnter?c:d,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==p&&(t=f):n!==f&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,u.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!e&&!n||s.A.disabled?this.safeSetState({status:p},function(){t.props.onEntered(i)}):(this.props.onEnter(i,l),this.safeSetState({status:f},function(){t.props.onEntering(i,l),t.onTransitionEnd(c,function(){t.safeSetState({status:p},function(){t.props.onEntered(i,l)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s.A.disabled?(this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})):this.safeSetState({status:d},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function v(){}m.contextType=l.A,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=c,m.EXITED=d,m.ENTERING=f,m.ENTERED=p,m.EXITING=h,t.default=m},function(e,t,n){function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:function(){return o}})},function(e,t,n){var r=n(0);t.A=r.createContext(null)},function(e,t,n){n.d(t,{F:function(){return r}});var r=function(e){return e.scrollTop}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(24),s=n(23),l=n(113),u=i.createComponent(function({...e},t){return e.onIcon?r.jsx(c,{...e,ref:t}):r.jsx(d,{...e,ref:t})}),c=i.createComponent(function(e,t){const{icon:n,onIcon:a,foundationRef:s,...u}=e,{isOn:c,rootEl:d}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},foundation:({rootEl:e,emit:t})=>new l.MDCIconButtonToggleFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),setAttr:(t,n)=>e.setProp(t,n),notifyChange:e=>t("onChange",e)})}),{rootEl:r}=n,a=void 0!==e.checked?e.checked:t.isOn();return o.useEffect(()=>{a!==t.isOn()&&t.toggle(a)},[t,a]),r.setProp("onClick",n=>{var r;null==(r=e.onClick)||r.call(e,n),t.handleClick()},!0),{isOn:a,foundation:t,...n}})(e);return r.jsxs(f,{"aria-pressed":c,...d.props(u),tag:"button",ref:t,children:[r.jsx("div",{className:"mdc-icon-button__ripple"}),r.jsx(p,{icon:n}),r.jsx(p,{icon:a,on:!0})]})}),d=s.withRipple({surface:!1,unbounded:!0})(i.createComponent(function(e,t){const{checked:n,label:o,foundationRef:s,children:l,icon:u,...c}=e,d=i.useClassNames(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return r.jsxs(i.Tag,{tag:"button",role:"button",tabIndex:0,"aria-label":o,...c,className:d,ref:t,children:[r.jsx("div",{className:"mdc-icon-button__ripple"}),r.jsx(a.Icon,{icon:u,tag:"i"})]})})),f=s.withRipple({surface:!1,unbounded:!0})(i.createComponent(function(e,t){const{checked:n,...o}=e,a=i.useClassNames(e,["mdc-icon-button",{"mdc-icon-button--on":n}]);return r.jsx(i.Tag,{tag:"button",role:"button",tabIndex:0,...o,className:a,ref:t})})),p=o.memo(function(e){const{on:t,...n}=e,o=i.useClassNames(e,["mdc-icon-button__icon",{"mdc-icon-button__icon--on":e.on}]);return r.jsx(a.Icon,{...n,className:o})});t.IconButton=u},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,t,r,n,o;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(6),t=__webpack_require__(27),r=__webpack_require__(11),n=__webpack_require__(0),o=__webpack_require__(1),function(){var i=[function(e){e.exports=n},function(t){t.exports=e},function(e){e.exports=r},,,,,,,,,function(e){e.exports=t},function(e){e.exports=o}],a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{Pagination:function(){return g},useMemorizedValue:function(){return y}});var u=s(1),c=s.n(u),d=s(11),f=s.n(d),p=s(2),h=s(0),m=s(12),v=["boundaryCount","className","disabled","hideNextButton","hidePrevButton","page","pageSize","render","showFirstButton","showLastButton","siblingCount","total"],y=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,h.useMemo)(function(){return e},n)},g=function(e){var t=e.boundaryCount,n=void 0===t?1:t,r=e.className,o=void 0===r?"pagination":r,i=e.disabled,a=e.hideNextButton,s=e.hidePrevButton,l=e.page,u=void 0===l?1:l,d=e.pageSize,h=void 0===d?5:d,y=e.render,g=void 0===y?function(e){var t=e.page,n=e.type;return t+""||n}:y,_=e.showFirstButton,b=e.showLastButton,E=e.siblingCount,x=void 0===E?1:E,C=e.total,S=void 0===C?100:C,w=f()(e,v);return S>(null!=h?h:1)?(0,m.jsx)("div",{className:o,children:(0,m.jsx)("ul",c()({},w,{children:(0,p.paginate)({boundaryCount:n,disabled:void 0!==i&&i,hideNextButton:void 0!==a&&a,hidePrevButton:void 0!==s&&s,page:u,pageSize:h,showFirstButton:void 0!==_&&_,showLastButton:void 0!==b&&b,siblingCount:x,total:S}).map(function(e){return(0,m.jsx)("li",{children:g(e)},e.type+("number"==typeof e.page?"-"+e.page:""))})}))}):(0,m.jsx)(m.Fragment,{})};return l}())},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28);r=o,Object.keys(r).filter(e=>"default"!==e&&"__esModule"!==e).forEach(e=>{t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>r[e]})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(97);r=o,Object.keys(r).filter(e=>"default"!==e&&"__esModule"!==e).forEach(e=>{t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>r[e]})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(122);r=o,Object.keys(r).filter(e=>"default"!==e&&"__esModule"!==e).forEach(e=>{t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>r[e]})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(123);r=o,Object.keys(r).filter(e=>"default"!==e&&"__esModule"!==e).forEach(e=>{t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>r[e]})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(126);r=o,Object.keys(r).filter(e=>"default"!==e&&"__esModule"!==e).forEach(e=>{t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>r[e]})})},function(e,t,n){n.r(t),n.d(t,{ALWAYS_FLOAT_TYPES:function(){return E},MDCTextField:function(){return L},MDCTextFieldCharacterCounter:function(){return v},MDCTextFieldCharacterCounterFoundation:function(){return m},MDCTextFieldFoundation:function(){return S},MDCTextFieldHelperText:function(){return A},MDCTextFieldHelperTextFoundation:function(){return T},MDCTextFieldIcon:function(){return M},MDCTextFieldIconFoundation:function(){return P},VALIDATION_ATTR_WHITELIST:function(){return b},characterCountCssClasses:function(){return p},characterCountStrings:function(){return h},cssClasses:function(){return g},helperTextCssClasses:function(){return w},helperTextStrings:function(){return O},iconCssClasses:function(){return k},iconStrings:function(){return I},numbers:function(){return _},strings:function(){return y}});var r=n(2),o=n(5),i=n(55),a=n(22),s=n(72),l=n(74),u=n(75),c=n(29),d=n(25),f=n(4),p={ROOT:"mdc-text-field-character-counter"},h={ROOT_SELECTOR:"."+p.ROOT},m=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(f.I),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new m({setContent:function(t){e.root.textContent=t}})},t}(o.O),y={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},g={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},_={LABEL_SCALE:.75},b=["pattern","min","max","required","step","minlength","maxlength"],E=["color","date","datetime-local","month","range","time","week"],x=["mousedown","touchstart"],C=["click","keydown"],S=function(e){function t(n,o){void 0===o&&(o={});var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.isFocused=!1,i.receivedUserInput=!1,i.valid=!0,i.useNativeValidation=!0,i.validateOnValueChange=!0,i.helperText=o.helperText,i.characterCounter=o.characterCounter,i.leadingIcon=o.leadingIcon,i.trailingIcon=o.trailingIcon,i.inputFocusHandler=function(){i.activateFocus()},i.inputBlurHandler=function(){i.deactivateFocus()},i.inputInputHandler=function(){i.handleInput()},i.setPointerXOffset=function(e){i.setTransformOrigin(e)},i.textFieldInteractionHandler=function(){i.handleTextFieldInteraction()},i.validationAttributeChangeHandler=function(e){i.handleValidationAttributeChange(e)},i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat",{get:function(){var e=this.getNativeInput().type;return E.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t,n,o;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var i=(0,r.Ju)(x),a=i.next();!a.done;a=i.next()){var s=a.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var l=(0,r.Ju)(C),u=l.next();!u.done;u=l.next()){s=u.value;this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},t.prototype.destroy=function(){var e,t,n,o;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var i=(0,r.Ju)(x),a=i.next();!a.done;a=i.next()){var s=a.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var l=(0,r.Ju)(C),u=l.next();!u.done;u=l.next()){s=u.value;this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return b.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput().required),!0)}),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*_.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,n=t?t[0]:e,r=n.target.getBoundingClientRect(),o=n.clientX-r.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity(e),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},t.prototype.getValue=function(){return this.getNativeInput().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput().value=e),this.setcharacterCounter(e.length),this.validateOnValueChange){var t=this.isValid();this.styleValidity(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},t.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},t.prototype.isDisabled=function(){return this.getNativeInput().disabled},t.prototype.setDisabled=function(e){this.getNativeInput().disabled=e,this.styleDisabled(e)},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},t.prototype.setcharacterCounter=function(e){if(this.characterCounter){var t=this.getNativeInput().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(e,t)}},t.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},t.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},t.prototype.styleValidity=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation())return;var r=this.helperText.isVisible(),o=this.helperText.getId();r&&o?this.adapter.setInputAttr(y.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(y.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled=function(e){var n=t.cssClasses,r=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(r),this.adapter.removeClass(o)):this.adapter.removeClass(r),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},t.prototype.styleFloating=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(f.I),w={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},O={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+w.ROOT},T=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return w},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return O},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(O.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(w.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(w.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(w.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(w.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(w.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(w.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(O.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(w.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(w.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),"alert"===this.adapter.getAttr(O.ROLE)?this.refreshAlertRole():this.adapter.setAttr(O.ROLE,"alert")):this.adapter.removeAttr(O.ROLE),t||n||this.hide()},t.prototype.hide=function(){this.adapter.setAttr(O.ARIA_HIDDEN,"true")},t.prototype.refreshAlertRole=function(){var e=this;this.adapter.removeAttr(O.ROLE),requestAnimationFrame(function(){e.adapter.setAttr(O.ROLE,"alert")})},t}(f.I),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new T({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(o.O),I={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},k={ROOT:"mdc-text-field__icon"},N=["click","keydown"],P=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.savedTabIndex=null,o.interactionHandler=function(e){o.handleInteraction(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return I},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(N),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(N),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",I.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(f.I),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new P({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(P.strings.ICON_EVENT,{},!0)}})},t}(o.O),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,i,a){void 0===e&&(e=function(e,t){return new c.N(e,t)}),void 0===t&&(t=function(e){return new l.l(e)}),void 0===n&&(n=function(e){return new A(e)}),void 0===r&&(r=function(e){return new v(e)}),void 0===o&&(o=function(e){return new M(e)}),void 0===i&&(i=function(e){return new s.$(e)}),void 0===a&&(a=function(e){return new u.i(e)}),this.input=this.root.querySelector(y.INPUT_SELECTOR);var d=this.root.querySelector(y.LABEL_SELECTOR);this.label=d?i(d):null;var f=this.root.querySelector(y.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var p=this.root.querySelector(y.OUTLINE_SELECTOR);this.outline=p?a(p):null;var h=T.strings,_=this.root.nextElementSibling,b=_&&_.classList.contains(g.HELPER_LINE),E=b&&_&&_.querySelector(h.ROOT_SELECTOR);this.helperText=E?n(E):null;var x=m.strings,C=this.root.querySelector(x.ROOT_SELECTOR);!C&&b&&_&&(C=_.querySelector(x.ROOT_SELECTOR)),this.characterCounter=C?r(C):null;var S=this.root.querySelector(y.LEADING_ICON_SELECTOR);this.leadingIcon=S?o(S):null;var w=this.root.querySelector(y.TRAILING_ICON_SELECTOR);this.trailingIcon=w?o(w):null,this.prefix=this.root.querySelector(y.PREFIX_SELECTOR),this.suffix=this.root.querySelector(y.SUFFIX_SELECTOR),this.ripple=this.createRipple(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple&&this.lineRipple.destroy(),this.helperText&&this.helperText.destroy(),this.characterCounter&&this.characterCounter.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.trailingIcon&&this.trailingIcon.destroy(),this.label&&this.label.destroy(),this.outline&&this.outline.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input.required},set:function(e){this.input.required=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input.pattern},set:function(e){this.input.pattern=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input.minLength},set:function(e){this.input.minLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input.maxLength},set:function(e){e<0?this.input.removeAttribute("maxLength"):this.input.maxLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input.min},set:function(e){this.input.min=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input.max},set:function(e){this.input.max=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input.step},set:function(e){this.input.step=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix?this.prefix.textContent:null},set:function(e){this.prefix&&(this.prefix.textContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix?this.suffix.textContent:null},set:function(e){this.suffix&&(this.suffix.textContent=e)},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods());return new S(e,this.getFoundationMap())},t.prototype.getRootAdapterMethods=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(function(e){return e.map(function(e){return e.attributeName}).filter(function(e){return e})}(e))});return n.observe(e.input,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods=function(){var e=this;return{getNativeInput:function(){return e.input},setInputAttr:function(t,n){e.input.setAttribute(t,n)},removeInputAttr:function(t){e.input.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input},registerInputInteractionHandler:function(t,n){e.input.addEventListener(t,n,(0,i.E)())},deregisterInputInteractionHandler:function(t,n){e.input.removeEventListener(t,n,(0,i.E)())}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},hasLabel:function(){return Boolean(e.label)},shakeLabel:function(t){e.label&&e.label.shake(t)},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods=function(){var e=this;return{activateLineRipple:function(){e.lineRipple&&e.lineRipple.activate()},deactivateLineRipple:function(){e.lineRipple&&e.lineRipple.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{closeOutline:function(){e.outline&&e.outline.closeNotch()},hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)}}},t.prototype.getFoundationMap=function(){return{characterCounter:this.characterCounter?this.characterCounter.foundationForTextField:void 0,helperText:this.helperText?this.helperText.foundationForTextField:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForTextField:void 0,trailingIcon:this.trailingIcon?this.trailingIcon.foundationForTextField:void 0}},t.prototype.createRipple=function(e){var t=this,n=this.root.classList.contains(g.TEXTAREA),o=this.root.classList.contains(g.OUTLINED);if(n||o)return null;var s=(0,r.Cl)((0,r.Cl)({},c.N.createAdapter(this)),{isSurfaceActive:function(){return a.cK(t.input,":active")},registerInteractionHandler:function(e,n){t.input.addEventListener(e,n,(0,i.E)())},deregisterInteractionHandler:function(e,n){t.input.removeEventListener(e,n,(0,i.E)())}});return e(this.root,new d.E(s))},t}(o.O)},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(69),s=n(70),l=n(71),u=n(67),c=n(68),d=n(121),f=n(24),p=(e,t)=>{if(void 0===e)return t;if(Array.isArray(e)){if("string"==typeof e[0])return e.includes(t)?t:"";{const n=e.find(e=>e.value===t||e.label===t);return n?n.label:""}}{const n=e;if(n[t])return n[t];{const e=Object.keys(n).find(e=>n[e]===t);return e?n[e]:""}}},h=e=>{const[t,n]=o.useState(),[r,a]=o.useState(!1),[s,l]=o.useState(0),[u,c]=o.useState(!1),[f,h]=o.useState(!1),[m,v]=o.useState(""),y=o.useRef(-1),g=o.useRef(),_=o.useRef(),b=o.useRef(null),E=o.useRef(),x=o.useRef(),C=o.useRef(!1),{foundation:S,...w}=i.useFoundation({props:e,elements:{rootEl:!0,anchorEl:!0},foundation:({rootEl:t,anchorEl:r,getProps:o,emit:i})=>{const s=()=>!o().enhanced,u=new d.MDCSelectFoundation({...(()=>{const e=()=>{var e,t;return(s()?Array.apply(null,null==(e=x.current)?void 0:e.options):null==(t=_.current)?void 0:t.items())||[]},t=e=>e.getAttribute("data-value")||e.getAttribute("value")||"";return{setSelectedText:e=>v(e),openMenu:()=>{h(!0)},closeMenu:()=>{h(!1)},getAnchorElement:()=>b.current,setMenuAnchorElement:e=>(e=>{b.current=e})(e),setMenuAnchorCorner:e=>{var t;return null==(t=_.current)?void 0:t.setAnchorCorner(e)},setMenuWrapFocus:e=>{},focusMenuItemAtIndex:e=>{var t;return null==(t=_.current)?void 0:t.focusItemAtIndex(e)},getMenuItemCount:()=>e().length,getMenuItemValues:()=>e().map(t)||[],getMenuItemTextAtIndex:t=>e()[t].textContent,isSelectAnchorFocused:()=>!(!r.ref||r.ref!==document.activeElement),getSelectAnchorAttr:e=>r.getProp(e),setSelectAnchorAttr:(e,t)=>{if("tabindex"===e){if(s())return;e="tabIndex"}return r.setProp(e,t)},removeSelectAnchorAttr:e=>{var t;null==(t=b.current)||t.removeAttribute(e)},addMenuClass:e=>{var t,n,r;return null==(r=null==(n=null==(t=_.current)?void 0:t.getSurfaceElement())?void 0:n.querySelector(".mdc-deprecated-list-item--activated"))?void 0:r.classList.add(e)},removeMenuClass:e=>{var t,n,r;return null==(r=null==(n=null==(t=_.current)?void 0:t.getSurfaceElement())?void 0:n.querySelector(".mdc-deprecated-list-item--activated"))?void 0:r.classList.remove(e)},getSelectedIndex:()=>y.current,setSelectedIndex:e=>(e=>{y.current=e})(e)}})(),addClass:e=>{t.addClass(e)},removeClass:e=>{t.removeClass(e)},hasClass:e=>t.hasClass(e),isRtl:()=>t.ref&&"rtl"===window.getComputedStyle(t.ref).getPropertyValue("direction"),setRippleCenter:e=>{l(e)},activateBottomLine:()=>a(!0),deactivateBottomLine:()=>a(!1),notifyChange:t=>{C.current||i(e.enhanced?"onChange":"MDCSelect:change",{index:y.current,value:t},!0)},hasOutline:()=>!!o().outlined,notchOutline:e=>{n(e)},closeOutline:()=>{n(void 0)},hasLabel:()=>!!o().label,floatLabel:e=>{c(e)},getLabelWidth:()=>{var e;return(null==(e=g.current)?void 0:e.getWidth())||0},setLabelRequired:e=>{var t;return null==(t=g.current)?void 0:t.setRequired(e)}},{leadingIcon:E.current&&E.current.getFoundation()||void 0}),f=u.adapter;u.layout=()=>{(()=>{const e=u.getValue();if(f.hasLabel()){const t=void 0!==z,n=!!o().placeholder||(null==e?void 0:e.length)>0||y.current>-1,r=f.hasClass(d.cssClasses.FOCUSED),i=n||t||r,a=f.hasClass(d.cssClasses.REQUIRED);u.notchOutline(i),f.floatLabel(i),f.setLabelRequired(a)}})()},Object.defineProperty(u,"menuItemValues",{get:()=>f.getMenuItemValues()});const p=u.init.bind(u);return u.init=()=>{C.current=!0,p();const e=String(o().placeholder||"");!u.getValue()&&e&&f.setSelectedText(e),C.current=!1},u}}),{rootEl:O}=w,{onFocus:T}=e,A=o.useCallback(e=>{null==T||T(e),S.handleFocus()},[T,S]),{onBlur:I}=e,k=o.useCallback(e=>{null==I||I(e),S.handleBlur()},[I,S]),{onChange:N}=e,P=o.useCallback(e=>{null==N||N(e),S.handleChange()},[N,S]),M=o.useCallback(e=>{var t,n;if(null!=(t=O.ref)&&t.querySelector(".mdc-select--disabled"))return;if(null!=(n=O.ref)&&n.querySelector(".mdc-menu-surface--open"))return void S.handleMenuClosed();const r=(e=>{const t=e.target.getBoundingClientRect();return e.clientX-t.left})(e);O.ref&&O.ref.focus(),S.handleClick(r)},[S,O.ref]),{onKeyDown:L}=e,D=o.useCallback(e=>{null==L||L(e),S.handleKeydown(e)},[S,L]),R=o.useCallback(e=>{y.current=e,S.handleMenuItemAction(e)},[S]),j=o.useCallback(()=>{S.handleMenuOpened()},[S]),F=o.useCallback(()=>{h(!1),S.handleMenuClosed()},[S]),B=S.getValue(),U=e.value??(-1===y.current?e.defaultValue:void 0),V=Array.isArray(e.options)?e.options.length:Object.values(e.options||{}).length;o.useEffect(()=>{if(C.current=!0,void 0!==U&&U!==B){S.setValue(U||""),v(p(e.options,U));const t=S.menuItemValues.indexOf(U);if(y.current=t,S.menuItemValues.includes(U)){const e=S.adapter.getMenuItemTextAtIndex(t);v(e),c(!0)}}i.raf(()=>{C.current=!1})},[U,B,V,S,S.menuItemValues]),o.useEffect(()=>{S.setDisabled(!!e.disabled)},[S,e.disabled]),o.useEffect(()=>{var e;O.ref&&(null==(e=_.current)||e.setAnchorElement(O.ref))},[O.ref]);const{defaultValue:z}=e;return o.useEffect(()=>{if(z){const t=p(e.options,z);v(t.toString())}},[]),o.useEffect(()=>{e.open&&(h(!0),S.handleMenuOpened())},[]),{notchWidth:t,menuOpen:f,lineRippleActive:r,lineRippleCenter:s,floatLabel:u,selectedIndex:y.current,selectedTextContent:m,setFloatingLabel:e=>{g.current=e},setMenu:e=>{_.current=e},setLeadingIcon:e=>{E.current=e},setNativeControl:e=>{x.current=e},handleFocus:A,handleBlur:k,handleChange:P,handleClick:M,handleKeydown:D,handleMenuClosed:F,handleMenuOpened:j,handleMenuSelected:R,...w}},m=function(e){const{apiRef:t,...n}=e,{rootEl:o}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getFoundation:()=>e}),foundation:({rootEl:e,emit:t})=>new d.MDCSelectIconFoundation({getAttr:t=>e.getProp(t),setAttr:(t,n)=>e.setProp(t,n),removeAttr:t=>e.removeProp(t),setContent:t=>{e.ref&&(e.ref.textContent=t)},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n),notifyIconAction:()=>t("onClick",{},!0)})});return{...n}})(e),a=i.useClassNames(e,["mdc-select__icon"]);return r.jsx(f.Icon,{...o.props({...n,className:a})})},v=e=>Array.isArray(e)&&e[0]&&"object"==typeof e[0]?e.map(e=>{if("object"!=typeof e)throw new Error(`Encountered non object for Select ${e}`);return{...e,options:v(e.options)}}):Array.isArray(e)?e.map(e=>({value:e,label:e})):"object"==typeof e?Object.keys(e).map(t=>({value:t,label:e[t]})):e,y=()=>r.jsxs("span",{className:"mdc-select__dropdown-icon",children:[r.jsx(f.Icon,{className:"mdc-select__dropdown-icon-inactive",icon:"arrow_drop_down"}),r.jsx(f.Icon,{className:"mdc-select__dropdown-icon-active",icon:"arrow_drop_up"})]});function g(e){const{selectOptions:t,placeholder:n="",children:o,elementRef:i,open:a,label:s,...l}=e,u=({label:e,option:t,index:n})=>r.jsx("option",{...t,value:t.value,children:e},n),c=!e.value&&!e.defaultValue;return r.jsxs("select",{tabIndex:0,...l,ref:i,className:"rmwc-select__native-control"+(l.className?` ${l.className}`:""),children:[(void 0!==e.placeholder||c)&&r.jsx("option",{value:"",disabled:c,children:n}),!!t&&t.map(({label:e,options:t,...n},o)=>t?r.jsx("optgroup",{label:e,children:t.map(({label:e,...t},n)=>u({label:e,option:t,index:n}))},o):u({label:e,option:n,index:o})),o]})}const _=function(e){return r.jsx(i.Tag,{...e})},b=o.forwardRef((e,t)=>{const{selectOptions:n,menuApiRef:o,value:a,placeholder:s,children:l,selectedIndex:d,renderToPortal:f,...p}=e;let h=0;const m=i.useClassNames(e,["mdc-select__menu"]),v=({label:e,option:t})=>(h+=1,r.jsx(u.MenuItem,{activated:void 0!==a?t.value===a:h-1===d,...t,"data-value":t.value,children:r.jsx("span",{className:"mdc-deprecated-list-item__text",children:e})},`${e}-${t.value}`));return r.jsxs(u.Menu,{...p,ref:t,apiRef:o,className:m,focusOnOpen:!0,renderToPortal:f,children:[!!e.placeholder&&r.jsx(u.MenuItem,{selected:h-1===d,"data-value":"",theme:"textDisabledOnBackground",children:r.jsx("span",{className:"mdc-deprecated-list-item__text",children:s})}),n.map(({label:e,options:t,...o},i)=>t?r.jsxs(c.ListGroup,{children:[e&&r.jsx(c.ListGroupSubheader,{theme:"textDisabledOnBackground",children:e}),r.jsx(u.MenuItems,{children:t.map(({label:e,...t})=>v({label:e,option:t}))}),i<n.length-1&&r.jsx(c.ListDivider,{})]},i):v({label:e,option:o})),l]})}),E=({enhanced:e,children:t})=>e?r.jsx(u.MenuSurfaceAnchor,{children:t}):r.jsx(r.Fragment,{children:t}),x=i.createComponent(function(e,t){const{placeholder:n,children:u,disabled:c,value:d,outlined:f,label:p="",options:x=[],rootProps:S={},enhanced:w,icon:O,onChange:T,onFocus:A,onBlur:I,onKeyDown:k,invalid:N,inputRef:P,helpText:M,foundationRef:L,...D}=e,R=v(x),{rootEl:j,anchorEl:F,notchWidth:B,menuOpen:U,selectedTextContent:V,lineRippleActive:z,lineRippleCenter:W,floatLabel:q,setFloatingLabel:H,setNativeControl:$,setLeadingIcon:K,selectedIndex:G,setMenu:X,handleFocus:Y,handleBlur:J,handleChange:Q,handleClick:Z,handleKeydown:ee,handleMenuClosed:te,handleMenuOpened:ne,handleMenuSelected:re}=h(e),oe=i.useId("select",e),ie=oe+"-label",ae=i.useClassNames(e,["mdc-select","rmwc-select__default-width",{"mdc-select--outlined":!!f,"mdc-select--filled":!f,"mdc-select--required":!!e.required,"mdc-select--invalid":!!N,"mdc-select--with-leading-icon":!!O,"mdc-select--no-label":!p}]),se="object"==typeof w?w:{},le=void 0!==d?void 0:e.defaultValue||"",ue=r.jsx(a.FloatingLabel,{float:q,apiRef:H,htmlFor:oe,id:ie,children:p});return r.jsxs(E,{enhanced:w,children:[r.jsxs(i.Tag,{...S,element:j,ref:t,className:ae,children:[r.jsxs(_,{className:"mdc-select__anchor",role:"button","aria-haspopup":"listbox","aria-labelledby":ie,element:F,onFocus:c?void 0:Y,onBlur:J,onClick:Z,onKeyDown:ee,tabIndex:w?void 0:-1,children:[!!O&&r.jsx(m,{apiRef:K,icon:O}),f?r.jsx(l.NotchedOutline,{notch:B,children:ue}):r.jsxs(r.Fragment,{children:[r.jsx(s.LineRipple,{active:z,center:W}),ue]}),r.jsx("span",{className:"mdc-select__selected-text-container",children:r.jsx("span",{className:"mdc-select__selected-text",children:V})}),r.jsx(y,{}),!w&&r.jsx(g,{...D,id:oe,value:d,children:u,defaultValue:le,placeholder:n,selectOptions:R,elementRef:$,onFocus:Y,onBlur:e=>{J(e),te()},onChange:e=>{Q(e),re(e.currentTarget.selectedIndex)},disabled:c})]}),w&&r.jsx(b,{...D,...se,ref:t,anchorCorner:se.anchorCorner??"bottomStart",defaultValue:le,disabled:c,placeholder:n,open:U,onClose:te,onOpen:ne,onSelect:e=>{re(e.detail.index)},selectOptions:R,value:d,selectedIndex:G,menuApiRef:X,children:u})]}),(()=>{if(!M)return null;const e="object"==typeof M&&!o.isValidElement(M);return M&&e?r.jsx(C,{...M}):r.jsx(C,{children:M})})()]})}),C=i.createComponent(function(e,t){const{persistent:n,validationMsg:o,...a}=e,s=i.useClassNames(e,["mdc-select-helper-text",{"mdc-select-helper-text--persistent":n,"mdc-select-helper-text--validation-msg":o}]);return r.jsx(i.Tag,{tag:"p",...a,className:s,ref:t})});t.Select=x,t.SelectHelperText=C},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(69),s=n(24),l=n(70),u=n(71),c=n(23),d=n(92),f=e=>{const[t,n]=o.useState(!1),[r,a]=o.useState(0),[s,l]=o.useState(),[u,c]=o.useState(!1),[f,p]=o.useState(!1),h=o.useRef(),m=e=>{h.current=e},v=o.useRef(),y=o.useRef(),g=o.useRef(),{content:_}=(e=>{const[t,n]=o.useState(),{foundation:r,...a}=i.useFoundation({props:e,api:({foundation:e})=>({getFoundation:()=>e}),elements:{},foundation:()=>new d.MDCTextFieldCharacterCounterFoundation({setContent:e=>{n(e)}})});return{content:t,...a}})({apiRef:e.characterCount?m:void 0}),{foundation:b,...E}=i.useFoundation({props:e,elements:{rootEl:!0,inputEl:!0},foundation:({rootEl:e,inputEl:t,getProps:r})=>new d.MDCTextFieldFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),hasClass:t=>e.hasClass(t),registerTextFieldInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterTextFieldInteractionHandler:(t,n)=>e.removeEventListener(t,n),registerValidationAttributeChangeHandler:e=>{if(t.ref){const n=new MutationObserver(t=>e((e=>e.map(e=>e.attributeName))(t))),r=t.ref,o={attributes:!0};return r&&n.observe(r,o),n}return{}},deregisterValidationAttributeChangeHandler:e=>{e&&e.disconnect()},isFocused:()=>document.activeElement===t.ref,registerInputInteractionHandler:(e,n)=>t.addEventListener(e,n),deregisterInputInteractionHandler:(e,n)=>t.removeEventListener(e,n),getNativeInput:()=>t.ref,shakeLabel:e=>c(e),floatLabel:e=>{p(r().floatLabel??e)},hasLabel:()=>!!r().label,getLabelWidth:()=>{var e;return(null==(e=g.current)?void 0:e.getWidth())||0},activateLineRipple:()=>{n(!0)},deactivateLineRipple:()=>{n(!1)},setLineRippleTransformOrigin:e=>{a(e)},notchOutline:e=>{l(e)},closeOutline:()=>{r().floatLabel??l(void 0)},hasOutline:()=>!!r().outlined},{characterCounter:h.current?h.current.getFoundation():void 0,helperText:void 0,leadingIcon:v.current?v.current.getFoundation():void 0,trailingIcon:y.current?y.current.getFoundation():void 0})}),x=b.getValue();return o.useEffect(()=>{void 0!==e.value&&e.value!==x&&b.setValue(String(e.value))},[e.value,b,x]),o.useEffect(()=>{void 0!==e.floatLabel&&(b.notchOutline(e.floatLabel),b.adapter.floatLabel(e.floatLabel))},[b,e.floatLabel]),{shakeLabel:u,floatLabel:f,notchWidth:s,lineRippleActive:t,lineRippleCenter:r,setCharacterCounter:m,setLeadingIcon:e=>v.current=e,setTrailingIcon:e=>y.current=e,setFloatingLabel:e=>g.current=e,characterCountContent:_,...E}},p=i.createComponent(function(e,t){const{label:n,style:s,outlined:c,align:d,invalid:p,disabled:b,helpText:E,children:x,textarea:C,fullwidth:S,inputRef:w,characterCount:O,icon:T,trailingIcon:A,rootProps:I={},foundationRef:k,ripple:N,prefix:P,suffix:M,resizeable:L,floatLabel:D,...R}=e,{rootEl:j,inputEl:F,shakeLabel:B,floatLabel:U,notchWidth:V,lineRippleActive:z,lineRippleCenter:W,setLeadingIcon:q,setTrailingIcon:H,setFloatingLabel:$,characterCountContent:K}=f(e),G=i.useId("textfield",e)+"-label",X=i.useClassNames(e,["mdc-text-field","mdc-text-field--upgraded",{"mdc-text-field--filled":!c,"mdc-text-field--textarea":C,"mdc-text-field--outlined":c,"mdc-text-field--invalid":p,"mdc-text-field--disabled":b,"mdc-text-field--with-leading-icon":!!T,"mdc-text-field--with-trailing-icon":!!A,"mdc-text-field--no-label":!n,"mdc-text-field--end-aligned":"end"===d,"mdc-text-field--with-internal-counter":C&&O,"rmwc-text-field--fullwidth":S}]),Y=(e,t)=>r.jsx(_,{apiRef:e=>{"leading"===t?q(e):H(e)},position:t,tabIndex:"trailing"===t?0:void 0,icon:e}),J=n?r.jsx(a.FloatingLabel,{shake:B,float:U,apiRef:$,id:G,children:n}):null,Q=O?r.jsx("div",{className:"mdc-text-field-character-counter",children:K}):null,Z=L?r.jsxs("span",{className:"mdc-text-field__resizer",children:[r.jsx(i.Tag,{...R,element:F,className:"mdc-text-field__input",disabled:b,tag:"textarea",ref:i.mergeRefs(t,w)}),Q]}):r.jsxs(r.Fragment,{children:[r.jsx(i.Tag,{...R,element:F,className:"mdc-text-field__input",disabled:b,tag:"textarea",ref:i.mergeRefs(t,w)}),Q]});return r.jsxs(r.Fragment,{children:[r.jsxs(m,{...I,element:j,style:s,className:X,ref:t,children:[!!T&&Y(T,"leading"),x,r.jsx(h,{}),!!P&&!C&&r.jsx(v,{prefix:P}),C?Z:r.jsx(i.Tag,{...R,"aria-labelledby":G,element:F,className:"mdc-text-field__input",disabled:b,tag:"input",ref:i.mergeRefs(t,w)}),!!M&&!C&&r.jsx(y,{suffix:M}),c?r.jsxs(r.Fragment,{children:[r.jsx(u.NotchedOutline,{notch:V,children:J}),!!A&&Y(A,"trailing")]}):r.jsxs(r.Fragment,{children:[J,!!A&&Y(A,"trailing"),r.jsx(l.LineRipple,{active:z,center:W})]})]}),(e=>{if(!(E||O&&!C))return null;const t="object"==typeof E&&!o.isValidElement(E);return r.jsxs("div",{className:"mdc-text-field-helper-line",children:[E&&t?r.jsx(g,{...E}):r.jsx(g,{children:E}),!C&&e]})})(Q)]})}),h=o.memo(function(){return r.jsx("span",{className:"mdc-text-field__ripple"})}),m=c.withRipple({surface:!1})(o.forwardRef(function(e,t){return r.jsx(i.Tag,{...e,tag:"label",ref:t})})),v=o.memo(function({prefix:e}){return r.jsx("span",{className:"mdc-text-field__affix mdc-text-field__affix--prefix",children:e})}),y=o.memo(function({suffix:e}){return r.jsx("span",{className:"mdc-text-field__affix mdc-text-field__affix--suffix",children:e})}),g=i.createComponent(function(e,t){const{persistent:n,validationMsg:o,...a}=e,s=i.useClassNames(e,["mdc-text-field-helper-text",{"mdc-text-field-helper-text--persistent":n,"mdc-text-field-helper-text--validation-msg":o}]);return r.jsx(i.Tag,{tag:"div",...a,className:s,ref:t})}),_=function(e){const{apiRef:t,position:n,...o}=e,{rootEl:a}=(e=>{const{foundation:t,...n}=i.useFoundation({props:e,elements:{rootEl:!0},api:({foundation:e})=>({getFoundation:()=>e}),foundation:({rootEl:e,emit:t})=>new d.MDCTextFieldIconFoundation({getAttr:t=>e.getProp(t),setAttr:(t,n)=>e.setProp(t,n),removeAttr:t=>e.removeProp(t),setContent:t=>{e.setProp("icon",t)},registerInteractionHandler:(t,n)=>e.addEventListener(t,n),deregisterInteractionHandler:(t,n)=>e.removeEventListener(t,n),notifyIconAction:()=>t("onClick",{},!0)})});return{...n}})(e),l=i.useClassNames(e,["mdc-text-field__icon",{"mdc-text-field__icon--trailing":"trailing"===n,"mdc-text-field__icon--leading":"leading"===n}]);return r.jsx(s.Icon,{...a.props({...o,className:l})})};_.displayName="TextFieldIcon",t.TextField=p,t.TextFieldHelperText=g},function(e,t,n){var r,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(l,{CharacterCount:()=>d,Dropcursor:()=>h,Focus:()=>g,Gapcursor:()=>E,Placeholder:()=>T,Selection:()=>N,TrailingNode:()=>D,UndoRedo:()=>F,preparePlaceholderAttribute:()=>O}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))s.call(e,l)||l===n||o(e,l,{get:()=>t[l],enumerable:!(r=i(t,l))||r.enumerable});return e})(o({},"__esModule",{value:!0}),r));var u=n(26),c=n(87),d=u.Extension.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){const e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new c.Plugin({key:new c.PluginKey("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const o=this.options.limit;if(null==o||0===o)return void(e=!0);const i=this.storage.characters({node:r.doc});if(i>o){const t=0,n=i-o;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const a=r.tr.deleteRange(t,n);return e=!0,a}e=!0},filterTransaction:(e,t)=>{const n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;const r=this.storage.characters({node:t.doc}),o=this.storage.characters({node:e.doc});if(o<=n)return!0;if(r>n&&o>n&&o<=r)return!0;if(r>n&&o>n&&o>r)return!1;if(!e.getMeta("paste"))return!1;const i=e.selection.$head.pos,a=i-(o-n),s=i;e.deleteRange(a,s);return!(this.storage.characters({node:e.doc})>n)}})]}}),f=n(26),p=n(89),h=f.Extension.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[(0,p.dropCursor)(this.options)]}}),m=n(26),v=n(87),y=n(88),g=m.Extension.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new v.Plugin({key:new v.PluginKey("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:o}=t,i=[];if(!n||!r)return y.DecorationSet.create(e,[]);let a=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(e.isText)return;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;a+=1});let s=0;return e.descendants((e,t)=>{if(e.isText)return!1;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;s+=1;if("deepest"===this.options.mode&&a-s>0||"shallowest"===this.options.mode&&s>1)return"deepest"===this.options.mode;i.push(y.Decoration.node(t,t+e.nodeSize,{class:this.options.className}))}),y.DecorationSet.create(e,i)}}})]}}),_=n(26),b=n(90),E=_.Extension.create({name:"gapCursor",addProseMirrorPlugins(){return[(0,b.gapCursor)()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,_.callOrReturn)((0,_.getExtensionField)(e,"allowGapCursor",n)))?t:null}}}),x=n(26),C=n(87),S=n(88),w="placeholder";function O(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var T=x.Extension.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:w,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${O(this.options.dataAttribute)}`:`data-${w}`;return[new C.Plugin({key:new C.PluginKey("placeholder"),props:{decorations:({doc:t,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=n,i=[];if(!r)return null;const a=this.editor.isEmpty;return t.descendants((t,n)=>{const r=o>=n&&o<=n+t.nodeSize,s=!t.isLeaf&&(0,x.isNodeEmpty)(t);if((r||!this.options.showOnlyCurrent)&&s){const o=[this.options.emptyNodeClass];a&&o.push(this.options.emptyEditorClass);const s=S.Decoration.node(n,n+t.nodeSize,{class:o.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:r}):this.options.placeholder});i.push(s)}return this.options.includeChildren}),S.DecorationSet.create(t,i)}}})]}}),A=n(26),I=n(87),k=n(88),N=A.Extension.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new I.Plugin({key:new I.PluginKey("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||(0,A.isNodeSelection)(n.selection)||e.view.dragging?null:k.DecorationSet.create(n.doc,[k.Decoration.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}}),P=n(26),M=n(87);function L({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var D=P.Extension.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new M.PluginKey(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new M.Plugin({key:t,appendTransaction:(e,r,o)=>{const{doc:i,tr:a,schema:s}=o,l=t.getState(o),u=i.content.size,c=s.nodes[n];if(l)return a.insert(u,c.create())},state:{init:(e,t)=>!L({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>{if(!e.docChanged)return t;if(e.getMeta("__uniqueIDTransaction"))return t;return!L({node:e.doc.lastChild,types:r})}}})]}}),R=n(26),j=n(91),F=R.Extension.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>(0,j.undo)(e,t),redo:()=>({state:e,dispatch:t})=>(0,j.redo)(e,t)}},addProseMirrorPlugins(){return[(0,j.history)(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},function(e){function t(e){this.content=e}t.prototype={constructor:t,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,n,r){var o=r&&r!=e?this.remove(r):this,i=o.find(e),a=o.content.slice();return-1==i?a.push(r||e,n):(a[i+1]=n,r&&(a[i]=r)),new t(a)},remove:function(e){var n=this.find(e);if(-1==n)return this;var r=this.content.slice();return r.splice(n,2),new t(r)},addToStart:function(e,n){return new t([e,n].concat(this.remove(e).content))},addToEnd:function(e,n){var r=this.remove(e).content.slice();return r.push(e,n),new t(r)},addBefore:function(e,n,r){var o=this.remove(n),i=o.content.slice(),a=o.find(e);return i.splice(-1==a?i.length:a,0,n,r),new t(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=t.from(e)).size?new t(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=t.from(e)).size?new t(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var n=this;e=t.from(e);for(var r=0;r<e.content.length;r+=2)n=n.remove(e.content[r]);return n},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},t.from=function(e){if(e instanceof t)return e;var n=[];if(e)for(var r in e)n.push(r,e[r]);return new t(n)},e.exports=t},function(e,t,n){function r(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,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||i(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 o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(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 a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(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}}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}function s(){return s="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=f(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}},s.apply(this,arguments)}function l(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&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,n)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){return p="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},p(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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,y(r.key),r)}}function v(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}var g=n(28),_=n(56),b=n(49),E=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},x=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},C=null,S=function(e,t,n){var r=C||(C=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},w=function(e,t,n,r){return n&&(T(e,t,n,r,-1)||T(e,t,n,r,1))},O=/^(img|br|input|textarea|hr)$/i;function T(e,t,n,r,o){for(var i;;){if(e==n&&t==r)return!0;if(t==(o<0?0:A(e))){var a=e.parentNode;if(!a||1!=a.nodeType||I(e)||O.test(e.nodeName)||"false"==e.contentEditable)return!1;t=E(e)+(o<0?0:1),e=a}else{if(1!=e.nodeType)return!1;var s=e.childNodes[t+(o<0?-1:0)];if(1==s.nodeType&&"false"==s.contentEditable){if(!(null===(i=s.pmViewDesc)||void 0===i?void 0:i.ignoreForSelection))return!1;t+=o}else e=s,t=o<0?A(e):0}}}function A(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function I(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var k=function(e){return e.focusNode&&w(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function N(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}var P="undefined"!=typeof navigator?navigator:null,M="undefined"!=typeof document?document:null,L=P&&P.userAgent||"",D=/Edge\/(\d+)/.exec(L),R=/MSIE \d/.exec(L),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(L),F=!!(R||j||D),B=R?document.documentMode:j?+j[1]:D?+D[1]:0,U=!F&&/gecko\/(\d+)/i.test(L);U&&(/Firefox\/(\d+)/.exec(L)||[0,0])[1];var V=!F&&/Chrome\/(\d+)/.exec(L),z=!!V,W=V?+V[1]:0,q=!F&&!!P&&/Apple Computer/.test(P.vendor),H=q&&(/Mobile\/\w+/.test(L)||!!P&&P.maxTouchPoints>2),$=H||!!P&&/Mac/.test(P.platform),K=!!P&&/Win/.test(P.platform),G=/Android \d/.test(L),X=!!M&&"webkitFontSmoothing"in M.documentElement.style,Y=X?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function J(e){var t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Q(e,t){return"number"==typeof e?e:e[t]}function Z(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function ee(e,t,n){for(var r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,a=n||e.dom;a;)if(1==a.nodeType){var s=a,l=s==i.body,u=l?J(i):Z(s),c=0,d=0;if(t.top<u.top+Q(r,"top")?d=-(u.top-t.top+Q(o,"top")):t.bottom>u.bottom-Q(r,"bottom")&&(d=t.bottom-t.top>u.bottom-u.top?t.top+Q(o,"top")-u.top:t.bottom-u.bottom+Q(o,"bottom")),t.left<u.left+Q(r,"left")?c=-(u.left-t.left+Q(o,"left")):t.right>u.right-Q(r,"right")&&(c=t.right-u.right+Q(o,"right")),c||d)if(l)i.defaultView.scrollBy(c,d);else{var f=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),c&&(s.scrollLeft+=c);var h=s.scrollLeft-f,m=s.scrollTop-p;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}var v=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(v))break;a="absolute"==v?a.offsetParent:x(a)}else a=x(a)}function te(e){for(var t=[],n=e.ownerDocument,r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=x(r));return t}function ne(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.dom,i=r.top,a=r.left;o.scrollTop!=i+t&&(o.scrollTop=i+t),o.scrollLeft!=a&&(o.scrollLeft=a)}}var re=null;function oe(e,t){for(var n,r,o,i,a=2e8,s=0,l=t.top,u=t.top,c=e.firstChild,d=0;c;c=c.nextSibling,d++){var f=void 0;if(1==c.nodeType)f=c.getClientRects();else{if(3!=c.nodeType)continue;f=S(c).getClientRects()}for(var p=0;p<f.length;p++){var h=f[p];if(h.top<=l&&h.bottom>=u){l=Math.max(h.bottom,l),u=Math.min(h.top,u);var m=h.left>t.left?h.left-t.left:h.right<t.left?t.left-h.right:0;if(m<a){n=c,a=m,r=m&&3==n.nodeType?{left:h.right<t.left?h.right:h.left,top:t.top}:t,1==c.nodeType&&m&&(s=d+(t.left>=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!o&&h.left<=t.left&&h.right>=t.left&&(o=c,i={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(s=d+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(e,t){for(var n,r=e.nodeValue.length,o=document.createRange(),i=0;i<r;i++){o.setEnd(e,i+1),o.setStart(e,i);var a=ue(o,1);if(a.top!=a.bottom&&ie(t,a)){n={node:e,offset:i+(t.left>=(a.left+a.right)/2?1:0)};break}}return o.detach(),n||{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:oe(n,r)}function ie(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function ae(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){var a=e.childNodes[i];if(1==a.nodeType)for(var s=a.getClientRects(),l=0;l<s.length;l++){var u=s[l];if(ie(t,u))return ae(a,t,u)}if((i=(i+1)%r)==o)break}return e}function se(e,t){var n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{var r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(A(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){var o=e.caretRangeFromPoint(t,n);if(o)return{node:o.startContainer,offset:Math.min(A(o.startContainer),o.startOffset)}}}(r,t.left,t.top);i&&(n=i.node,o=i.offset);var a,s=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){var l=e.dom.getBoundingClientRect();if(!ie(t,l))return null;if(!(s=ae(e.dom,t,l)))return null}if(q)for(var u=s;n&&u;u=x(u))u.draggable&&(n=void 0);if(s=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(U&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length))<n.childNodes.length){var c,d=n.childNodes[o];"IMG"==d.nodeName&&(c=d.getBoundingClientRect()).right<=t.left&&c.bottom>t.top&&o++}var f;X&&o&&1==n.nodeType&&1==(f=n.childNodes[o-1]).nodeType&&"false"==f.contentEditable&&f.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(e,t,n,r){for(var o=-1,i=t,a=!1;i!=e.dom;){var s=e.docView.nearestDesc(i,!0),l=void 0;if(!s)return null;if(1==s.dom.nodeType&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!a&&l.left>r.left||l.top>r.top?o=s.posBefore:(!a&&l.right<r.left||l.bottom<r.top)&&(o=s.posAfter),a=!0),!s.contentDOM&&o<0&&!s.node.isText))return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;i=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==a&&(a=function(e,t,n){var r=oe(t,n),o=r.node,i=r.offset,a=-1;if(1==o.nodeType&&!o.firstChild){var s=o.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,i,a)}(e,s,t));var p=e.docView.nearestDesc(s,!0);return{pos:a,inside:p?p.posAtStart-p.border:-1}}function le(e){return e.top<e.bottom||e.left<e.right}function ue(e,t){var n=e.getClientRects();if(n.length){var r=n[t<0?0:n.length-1];if(le(r))return r}return Array.prototype.find.call(n,le)||e.getBoundingClientRect()}var ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function de(e,t,n){var r=e.docView.domFromPos(t,n<0?-1:1),o=r.node,i=r.offset,a=r.atom,s=X||U;if(3==o.nodeType){if(!s||!ce.test(o.nodeValue)&&(n<0?i:i!=o.nodeValue.length)){var l=i,u=i,c=n<0?1:-1;return n<0&&!i?(u++,c=-1):n>=0&&i==o.nodeValue.length?(l--,c=1):n<0?l--:u++,fe(ue(S(o,l,u),c),c<0)}var d=ue(S(o,i,i),n);if(U&&i&&/\s/.test(o.nodeValue[i-1])&&i<o.nodeValue.length){var f=ue(S(o,i-1,i-1),-1);if(f.top==d.top){var p=ue(S(o,i,i+1),-1);if(p.top!=d.top)return fe(p,p.left<f.left)}}return d}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(null==a&&i&&(n<0||i==A(o))){var h=o.childNodes[i-1];if(1==h.nodeType)return pe(h.getBoundingClientRect(),!1)}if(null==a&&i<A(o)){var m=o.childNodes[i];if(1==m.nodeType)return pe(m.getBoundingClientRect(),!0)}return pe(o.getBoundingClientRect(),n>=0)}if(null==a&&i&&(n<0||i==A(o))){var v=o.childNodes[i-1],y=3==v.nodeType?S(v,A(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(y)return fe(ue(y,1),!1)}if(null==a&&i<A(o)){for(var g=o.childNodes[i];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var _=g?3==g.nodeType?S(g,0,s?0:1):1==g.nodeType?g:null:null;if(_)return fe(ue(_,-1),!0)}return fe(ue(3==o.nodeType?S(o):o,-n),n>=0)}function fe(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function pe(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function he(e,t,n){var r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}var me=/[\u0590-\u08ac]/;var ve=null,ye=null,ge=!1;function _e(e,t,n){return ve==t&&ye==n?ge:(ve=t,ye=n,ge="up"==n||"down"==n?function(e,t,n){var r=t.selection,o="up"==n?r.$from:r.$to;return he(e,t,function(){for(var t=e.docView.domFromPos(o.pos,"up"==n?-1:1).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}for(var i=de(e,o.pos,1),a=t.firstChild;a;a=a.nextSibling){var s=void 0;if(1==a.nodeType)s=a.getClientRects();else{if(3!=a.nodeType)continue;s=S(a,0,a.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var u=s[l];if(u.bottom>u.top+1&&("up"==n?i.top-u.top>2*(u.bottom-i.top):u.bottom-i.bottom>2*(i.bottom-u.top)))return!1}}return!0})}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return s?me.test(r.parent.textContent)&&s.modify?he(e,t,function(){var t=e.domSelectionRange(),o=t.focusNode,i=t.focusOffset,a=t.anchorNode,l=t.anchorOffset,u=s.caretBidiLevel;s.modify("move",n,"character");var c=r.depth?e.docView.domAfterPos(r.before()):e.dom,d=e.domSelectionRange(),f=d.focusNode,p=d.focusOffset,h=f&&!c.contains(1==f.nodeType?f:f.parentNode)||o==f&&i==p;try{s.collapse(a,l),o&&(o!=a||i!=l)&&s.extend&&s.extend(o,i)}catch(e){}return null!=u&&(s.caretBidiLevel=u),h}):"left"==n||"backward"==n?i:a:r.pos==r.start()||r.pos==r.end()}(e,t,n))}var be=function(){function e(t,n,r,o){h(this,e),this.parent=t,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=0,r.pmViewDesc=this}return v(e,[{key:"matchesWidget",value:function(e){return!1}},{key:"matchesMark",value:function(e){return!1}},{key:"matchesNode",value:function(e,t,n){return!1}},{key:"matchesHack",value:function(e){return!1}},{key:"parseRule",value:function(){return null}},{key:"stopEvent",value:function(e){return!1}},{key:"size",get:function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e}},{key:"border",get:function(){return 0}},{key:"destroy",value:function(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(var e=0;e<this.children.length;e++)this.children[e].destroy()}},{key:"posBeforeChild",value:function(e){for(var t=0,n=this.posAtStart;;t++){var r=this.children[t];if(r==e)return n;n+=r.size}}},{key:"posBefore",get:function(){return this.parent.posBeforeChild(this)}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}},{key:"posAfter",get:function(){return this.posBefore+this.size}},{key:"posAtEnd",get:function(){return this.posAtStart+this.size-2*this.border}},{key:"localPosFromDOM",value:function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,o;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(o=r.pmViewDesc)||o.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(o)+o.size:this.posAtStart}var i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(a=i.pmViewDesc)||a.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}var s;if(e==this.dom&&this.contentDOM)s=t>E(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.previousSibling)break}if(null==s&&t==e.childNodes.length)for(var u=e;;u=u.parentNode){if(u==this.dom){s=!0;break}if(u.nextSibling)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart}},{key:"nearestDesc",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!0,r=e;r;r=r.parentNode){var o=this.getDesc(r),i=void 0;if(o&&(!t||o.node)){if(!n||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;n=!1}}}},{key:"getDesc",value:function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t}},{key:"posFromDOM",value:function(e,t,n){for(var r=e;r;r=r.parentNode){var o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}},{key:"descAt",value:function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)for(var i=0;i<r.children.length;i++){var a=r.children[i];if(a.size){r=a;break}}return r}if(e<o)return r.descAt(e-n-r.border);n=o}}},{key:"domFromPos",value:function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};for(var n,r=0,o=0,i=0;r<this.children.length;r++){var a=this.children[r],s=i+a.size;if(s>e||a instanceof Te){o=e-i;break}i=s}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof Ee&&n.side>=0;r--);if(t<=0){for(var l,u=!0;(l=r?this.children[r-1]:null)&&l.dom.parentNode!=this.contentDOM;r--,u=!1);return l&&t&&u&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?E(l.dom)+1:0}}for(var c,d=!0;(c=r<this.children.length?this.children[r]:null)&&c.dom.parentNode!=this.contentDOM;r++,d=!1);return c&&d&&!c.border&&!c.domAtom?c.domFromPos(0,t):{node:this.contentDOM,offset:c?E(c.dom):this.contentDOM.childNodes.length}}},{key:"parseRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,o=-1,i=n,a=0;;a++){var s=this.children[a],l=i+s.size;if(-1==r&&e<=l){var u=i+s.border;if(e>=u&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,u);e=i;for(var c=a;c>0;c--){var d=this.children[c-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=E(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(var f=a+1;f<this.children.length;f++){var p=this.children[f];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){o=E(p.dom);break}t+=p.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}},{key:"emptyChildAt",value:function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}},{key:"domAfterPos",value:function(e){var t=this.domFromPos(e,0),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}},{key:"setSelection",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Math.min(e,t),i=Math.max(e,t),a=0,s=0;a<this.children.length;a++){var l=this.children[a],u=s+l.size;if(o>s&&i<u)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=u}var c=this.domFromPos(e,e?-1:1),d=t==e?c:this.domFromPos(t,t?-1:1),f=n.root.getSelection(),p=n.domSelectionRange(),h=!1;if((U||q)&&e==t){var m=c,v=m.node,y=m.offset;if(3==v.nodeType){if((h=!(!y||"\n"!=v.nodeValue[y-1]))&&y==v.nodeValue.length)for(var g,_=v;_;_=_.parentNode){if(g=_.nextSibling){"BR"==g.nodeName&&(c=d={node:g.parentNode,offset:E(g)+1});break}var b=_.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{var x=v.childNodes[y-1];h=x&&("BR"==x.nodeName||"false"==x.contentEditable)}}if(U&&p.focusNode&&p.focusNode!=d.node&&1==p.focusNode.nodeType){var C=p.focusNode.childNodes[p.focusOffset];C&&"false"==C.contentEditable&&(r=!0)}if(r||h&&q||!w(c.node,c.offset,p.anchorNode,p.anchorOffset)||!w(d.node,d.offset,p.focusNode,p.focusOffset)){var S=!1;if((f.extend||e==t)&&(!h||!U)){f.collapse(c.node,c.offset);try{e!=t&&f.extend(d.node,d.offset),S=!0}catch(e){}}if(!S){if(e>t){var O=c;c=d,d=O}var T=document.createRange();T.setEnd(d.node,d.offset),T.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(T)}}}},{key:"ignoreMutation",value:function(e){return!this.contentDOM&&"selection"!=e.type}},{key:"contentLost",get:function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}},{key:"markDirty",value:function(e,t){for(var n=0,r=0;r<this.children.length;r++){var o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var a=n+o.border,s=i-o.border;if(e>=a&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=a||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-a,t-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}},{key:"markParentsDirty",value:function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}},{key:"domAtom",get:function(){return!1}},{key:"ignoreForCoords",get:function(){return!1}},{key:"ignoreForSelection",get:function(){return!1}},{key:"isText",value:function(e){return!1}}]),e}(),Ee=function(e){l(n,e);var t=c(n);function n(e,r,o,i){var a;h(this,n);var s,l=r.type.toDOM;if("function"==typeof l&&(l=l(o,function(){return s?s.parent?s.parent.posBeforeChild(s):void 0:i})),!r.type.spec.raw){if(1!=l.nodeType){var u=document.createElement("span");u.appendChild(l),l=u}l.contentEditable="false",l.classList.add("ProseMirror-widget")}return(a=t.call(this,e,[],l,null)).widget=r,a.widget=r,s=d(a),a}return v(n,[{key:"matchesWidget",value:function(e){return 0==this.dirty&&e.type.eq(this.widget.type)}},{key:"parseRule",value:function(){return{ignore:!0}}},{key:"stopEvent",value:function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)}},{key:"ignoreMutation",value:function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}},{key:"destroy",value:function(){this.widget.type.destroy(this.dom),s(f(n.prototype),"destroy",this).call(this)}},{key:"domAtom",get:function(){return!0}},{key:"ignoreForSelection",get:function(){return!!this.widget.type.spec.relaxedSide}},{key:"side",get:function(){return this.widget.type.side}}]),n}(be),xe=function(e){l(n,e);var t=c(n);function n(e,r,o,i){var a;return h(this,n),(a=t.call(this,e,[],r,null)).textDOM=o,a.text=i,a}return v(n,[{key:"size",get:function(){return this.text.length}},{key:"localPosFromDOM",value:function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}},{key:"domFromPos",value:function(e){return{node:this.textDOM,offset:e}}},{key:"ignoreMutation",value:function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}]),n}(be),Ce=function(e){l(n,e);var t=c(n);function n(e,r,o,i,a){var s;return h(this,n),(s=t.call(this,e,[],o,i)).mark=r,s.spec=a,s}return v(n,[{key:"parseRule",value:function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}},{key:"matchesMark",value:function(e){return 3!=this.dirty&&this.mark.eq(e)}},{key:"markDirty",value:function(e,t){if(s(f(n.prototype),"markDirty",this).call(this,e,t),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}}},{key:"slice",value:function(e,t,r){var o=n.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;t<a&&(i=Ue(i,t,a,r)),e>0&&(i=Ue(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=o;return o.children=i,o}},{key:"ignoreMutation",value:function(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):s(f(n.prototype),"ignoreMutation",this).call(this,e)}},{key:"destroy",value:function(){this.spec.destroy&&this.spec.destroy(),s(f(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e,t,r,o){var i=o.nodeViews[t.type.name],a=i&&i(t,o,r);return a&&a.dom||(a=_.DOMSerializer.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new n(e,t,a.dom,a.contentDOM||a.dom,a)}}]),n}(be),Se=function(e){l(n,e);var t=c(n);function n(e,r,o,i,a,s,l,u,c){var d;return h(this,n),(d=t.call(this,e,[],a,s)).node=r,d.outerDeco=o,d.innerDeco=i,d.nodeDOM=l,d}return v(n,[{key:"parseRule",value:function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(var n=this.children.length-1;n>=0;n--){var r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=function(){return _.Fragment.empty})}else t.contentElement=this.contentDOM;else t.getContent=function(){return e.node.content};return t}},{key:"matchesNode",value:function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Re(t,this.outerDeco)&&n.eq(this.innerDeco)}},{key:"size",get:function(){return this.node.nodeSize}},{key:"border",get:function(){return this.node.isLeaf?0:1}},{key:"updateChildren",value:function(e,t){var n=this,r=this.node.inlineContent,o=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new Fe(this,a&&a.node,e);!function(e,t,n,r){var o=t.locals(e),i=0;if(0==o.length){for(var a=0;a<e.childCount;a++){var s=e.child(a);r(s,o,t.forChild(i,s),a),i+=s.nodeSize}return}for(var l=0,u=[],c=null,d=0;;){for(var f=void 0,p=void 0;l<o.length&&o[l].to==i;){var h=o[l++];h.widget&&(f?(p||(p=[f])).push(h):f=h)}if(f)if(p){p.sort(Be);for(var m=0;m<p.length;m++)n(p[m],d,!!c)}else n(f,d,!!c);var v=void 0,y=void 0;if(c)y=-1,v=c,c=null;else{if(!(d<e.childCount))break;y=d,v=e.child(d++)}for(var g=0;g<u.length;g++)u[g].to<=i&&u.splice(g--,1);for(;l<o.length&&o[l].from<=i&&o[l].to>i;)u.push(o[l++]);var _=i+v.nodeSize;if(v.isText){var b=_;l<o.length&&o[l].from<b&&(b=o[l].from);for(var E=0;E<u.length;E++)u[E].to<b&&(b=u[E].to);b<_&&(c=v.cut(b-i),v=v.cut(0,b-i),_=b,y=-1)}else for(;l<o.length&&o[l].to<_;)l++;r(v,v.isInline&&!v.isLeaf?u.filter(function(e){return!e.inline}):u.slice(),t.forChild(i,v),y),i=_}}(this.node,this.innerDeco,function(t,i,a){t.spec.marks?l.syncToMarks(t.spec.marks,r,e,i):t.type.side>=0&&!a&&l.syncToMarks(i==n.node.childCount?_.Mark.none:n.node.child(i).marks,r,e,i),l.placeWidget(t,e,o)},function(t,n,a,u){var c;l.syncToMarks(t.marks,r,e,u),l.findNodeMatch(t,n,a,u)||s&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(c=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(t,n,a,c,e)||l.updateNextNode(t,n,a,e,u,o)||l.addNode(t,n,a,e,o),o+=t.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(e,a),Ie(this.contentDOM,this.children,e),H&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}},{key:"localCompositionInfo",value:function(e,t){var n=e.state.selection,r=n.from,o=n.to;if(!(e.state.selection instanceof g.TextSelection)||r<t||o>t+this.node.content.size)return null;var i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){var a=i.nodeValue,s=function(e,t,n,r){for(var o=0,i=0;o<e.childCount&&i<=r;){var a=e.child(o++),s=i;if(i+=a.nodeSize,a.isText){for(var l=a.text;o<e.childCount;){var u=e.child(o++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;var c=s<r?l.lastIndexOf(t,r-s-1):-1;if(c>=0&&c+t.length+s>=n)return s+c;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}}return-1}(this.node.content,a,r-t,o-t);return s<0?null:{node:i,pos:s,text:a}}return{node:i,pos:-1,text:""}}},{key:"protectLocalComposition",value:function(e,t){var n=t.node,r=t.pos,o=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}var a=new xe(this,i,n,o);e.input.compositionNodes.push(a),this.children=Ue(this.children,r,r+o.length,e,a)}}},{key:"update",value:function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}},{key:"updateInner",value:function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}},{key:"updateOuterDeco",value:function(e){if(!Re(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Me(this.dom,this.nodeDOM,Pe(this.outerDeco,this.node,t),Pe(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}}},{key:"selectNode",value:function(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}},{key:"deselectNode",value:function(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}},{key:"domAtom",get:function(){return this.node.isAtom}}],[{key:"create",value:function(e,t,r,o,i,a){var s,l=i.nodeViews[t.type.name],u=l&&l(t,i,function(){return s?s.parent?s.parent.posBeforeChild(s):void 0:a},r,o),c=u&&u.dom,d=u&&u.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else if(!c){var f=_.DOMSerializer.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);c=f.dom,d=f.contentDOM}d||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));var p=c;return c=De(c,r,t),u?s=new Ae(e,t,r,o,c,d||null,p,u,i,a+1):t.isText?new Oe(e,t,r,o,c,p,i):new n(e,t,r,o,c,d||null,p,i,a+1)}}]),n}(be);function we(e,t,n,r,o){De(r,t,e);var i=new Se(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}var Oe=function(e){l(n,e);var t=c(n);function n(e,r,o,i,a,s,l){return h(this,n),t.call(this,e,r,o,i,a,null,s,l,0)}return v(n,[{key:"parseRule",value:function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}},{key:"update",value:function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}},{key:"inParent",value:function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}},{key:"domFromPos",value:function(e){return{node:this.nodeDOM,offset:e}}},{key:"localPosFromDOM",value:function(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):s(f(n.prototype),"localPosFromDOM",this).call(this,e,t,r)}},{key:"ignoreMutation",value:function(e){return"characterData"!=e.type&&"selection"!=e.type}},{key:"slice",value:function(e,t,r){var o=this.node.cut(e,t),i=document.createTextNode(o.text);return new n(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}},{key:"markDirty",value:function(e,t){s(f(n.prototype),"markDirty",this).call(this,e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}},{key:"domAtom",get:function(){return!1}},{key:"isText",value:function(e){return this.node.text==e}}]),n}(Se),Te=function(e){l(n,e);var t=c(n);function n(){return h(this,n),t.apply(this,arguments)}return v(n,[{key:"parseRule",value:function(){return{ignore:!0}}},{key:"matchesHack",value:function(e){return 0==this.dirty&&this.dom.nodeName==e}},{key:"domAtom",get:function(){return!0}},{key:"ignoreForCoords",get:function(){return"IMG"==this.dom.nodeName}}]),n}(be),Ae=function(e){l(n,e);var t=c(n);function n(e,r,o,i,a,s,l,u,c,d){var f;return h(this,n),(f=t.call(this,e,r,o,i,a,s,l,c,d)).spec=u,f}return v(n,[{key:"update",value:function(e,t,r,o){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){var i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,o),i}return!(!this.contentDOM&&!e.isLeaf)&&s(f(n.prototype),"update",this).call(this,e,t,r,o)}},{key:"selectNode",value:function(){this.spec.selectNode?this.spec.selectNode():s(f(n.prototype),"selectNode",this).call(this)}},{key:"deselectNode",value:function(){this.spec.deselectNode?this.spec.deselectNode():s(f(n.prototype),"deselectNode",this).call(this)}},{key:"setSelection",value:function(e,t,r,o){this.spec.setSelection?this.spec.setSelection(e,t,r.root):s(f(n.prototype),"setSelection",this).call(this,e,t,r,o)}},{key:"destroy",value:function(){this.spec.destroy&&this.spec.destroy(),s(f(n.prototype),"destroy",this).call(this)}},{key:"stopEvent",value:function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}},{key:"ignoreMutation",value:function(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):s(f(n.prototype),"ignoreMutation",this).call(this,e)}}]),n}(Se);function Ie(e,t,n){for(var r=e.firstChild,o=!1,i=0;i<t.length;i++){var a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=je(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(a instanceof Ce){var l=r?r.previousSibling:e.lastChild;Ie(a.contentDOM,a.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=je(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}var ke=function(e){e&&(this.nodeName=e)};ke.prototype=Object.create(null);var Ne=[new ke];function Pe(e,t,n){if(0==e.length)return Ne;for(var r=n?Ne[0]:new ke,o=[r],i=0;i<e.length;i++){var a=e[i].type.attrs;if(a)for(var s in a.nodeName&&o.push(r=new ke(a.nodeName)),a){var l=a[s];null!=l&&(n&&1==o.length&&o.push(r=new ke(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+l:"style"==s?r.style=(r.style?r.style+";":"")+l:"nodeName"!=s&&(r[s]=l))}}return o}function Me(e,t,n,r){if(n==Ne&&r==Ne)return t;for(var o=t,i=0;i<r.length;i++){var a=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==a.nodeName&&o!=e&&(l=o.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||((l=document.createElement(a.nodeName)).pmIsDeco=!0,l.appendChild(o),s=Ne[0]),o=l}Le(o,s||Ne[0],a)}return o}function Le(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){for(var i=t.class?t.class.split(" ").filter(Boolean):[],a=n.class?n.class.split(" ").filter(Boolean):[],s=0;s<i.length;s++)-1==a.indexOf(i[s])&&e.classList.remove(i[s]);for(var l=0;l<a.length;l++)-1==i.indexOf(a[l])&&e.classList.add(a[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var u,c=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;u=c.exec(t.style);)e.style.removeProperty(u[1]);n.style&&(e.style.cssText+=n.style)}}function De(e,t,n){return Me(e,e,Ne,Pe(t,n,1!=e.nodeType))}function Re(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function je(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var Fe=function(){function e(t,n,r){h(this,e),this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(e,t){var n=t,r=n.children.length,o=e.childCount,i=new Map,a=[];e:for(;o>0;){for(var s=void 0;;)if(r){var l=n.children[r-1];if(!(l instanceof Ce)){s=l,r--;break}n=l,r=l.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}var u=s.node;if(u){if(u!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(t.node.content,t)}return v(e,[{key:"destroyBetween",value:function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}},{key:"destroyRest",value:function(){this.destroyBetween(this.index,this.top.children.length)}},{key:"syncToMarks",value:function(e,t,n,r){for(var o=0,i=this.stack.length>>1,a=Math.min(i,e.length);o<a&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&!1!==e[o].type.spec.spanning;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);var s=-1,l=this.top.children.length;r<this.preMatch.index&&(l=Math.min(this.index+3,l));for(var u=this.index;u<l;u++){var c=this.top.children[u];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){s=u;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var d=Ce.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,i++}}},{key:"findNodeMatch",value:function(e,t,n,r){var o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(var a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){var l=this.top.children[a];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){i=a;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}},{key:"updateNodeAt",value:function(e,t,n,r,o){var i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}},{key:"findIndexWithChild",value:function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r;return-1}e=t}}},{key:"updateNextNode",value:function(e,t,n,r,o,i){for(var a=this.index;a<this.top.children.length;a++){var s=this.top.children[a];if(s instanceof Se){var l=this.preMatch.matched.get(s);if(null!=l&&l!=o)return!1;var u=s.dom,c=void 0,d=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&Re(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(s,e,t,n,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}},{key:"recreateWrapper",value:function(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Re(n,e.outerDeco)||!r.eq(e.innerDeco))return null;var s=Se.create(this.top,t,n,r,i,a);if(s.contentDOM){s.children=e.children,e.children=[];var l,u=o(s.children);try{for(u.s();!(l=u.n()).done;){l.value.parent=s}}catch(e){u.e(e)}finally{u.f()}}return e.destroy(),s}},{key:"addNode",value:function(e,t,n,r,o){var i=Se.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}},{key:"placeWidget",value:function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var o=new Ee(this.top,e,t,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++}},{key:"addTextblockHacks",value:function(){for(var e=this.top.children[this.index-1],t=this.top;e instanceof Ce;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof Oe)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((q||z)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}},{key:"addHackNode",value:function(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{var n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");var r=new Te(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}},{key:"isLocked",value:function(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}]),e}();function Be(e,t){return e.type.side-t.type.side}function Ue(e,t,n,r,o){for(var i=[],a=0,s=0;a<e.length;a++){var l=e[a],u=s,c=s+=l.size;u>=n||c<=t?i.push(l):(u<t&&i.push(l.slice(0,t-u,r)),o&&(i.push(o),o=void 0),c>n&&i.push(l.slice(n-u,l.size,r)))}return i}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;var i=e.docView.nearestDesc(n.focusNode),a=i&&0==i.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;var l,u,c=o.resolve(s);if(k(n)){for(l=s;i&&!i.node;)i=i.parent;var d=i.node;if(i&&d.isAtom&&g.NodeSelection.isSelectable(d)&&i.parent&&(!d.isInline||!function(e,t,n){for(var r=0==t,o=t==A(e);r||o;){if(e==n)return!0;var i=E(e);if(!(e=e.parentNode))return!1;r=r&&0==i,o=o&&i==A(e)}}(n.focusNode,n.focusOffset,i.dom))){var f=i.posBefore;u=new g.NodeSelection(s==f?c:o.resolve(f))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){for(var p=s,h=s,m=0;m<n.rangeCount;m++){var v=n.getRangeAt(m);p=Math.min(p,e.docView.posFromDOM(v.startContainer,v.startOffset,1)),h=Math.max(h,e.docView.posFromDOM(v.endContainer,v.endOffset,-1))}if(p<0)return null;var y=r(h==e.state.selection.anchor?[h,p]:[p,h],2);l=y[0],s=y[1],c=o.resolve(s)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}var _=o.resolve(l);u||(u=Ye(e,_,c,"pointer"==t||e.state.selection.head<c.pos&&!a?1:-1));return u}function ze(e){return e.editable?e.hasFocus():Qe(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function We(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.state.selection;if(Ge(e,n),ze(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&z){var r=e.domSelectionRange(),o=e.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&w(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.domSelection();if(!t)return;var n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,E(n)+1):t.collapse(n,0);!r&&!e.state.selection.visible&&F&&B<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{var i,a,s=n.anchor,l=n.head;!qe||n instanceof g.TextSelection||(n.$from.parent.inlineContent||(i=He(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=He(e,n.to))),e.docView.setSelection(s,l,e,t),qe&&(i&&Ke(i),a&&Ke(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);var n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(function(){ze(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}var qe=q||z&&W<63;function He(e,t){var n=e.docView.domFromPos(t,0),r=n.node,o=n.offset,i=o<r.childNodes.length?r.childNodes[o]:null,a=o?r.childNodes[o-1]:null;if(q&&i&&"false"==i.contentEditable)return $e(i);if(!(i&&"false"!=i.contentEditable||a&&"false"!=a.contentEditable)){if(i)return $e(i);if(a)return $e(a)}}function $e(e){return e.contentEditable="true",q&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Ke(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Ge(e,t){if(t instanceof g.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Xe(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Xe(e)}function Xe(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Ye(e,t,n,r){return e.someProp("createSelectionBetween",function(r){return r(e,t,n)})||g.TextSelection.between(t,n,r)}function Je(e){return!(e.editable&&!e.hasFocus())&&Qe(e)}function Qe(e){var t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Ze(e,t){var n=e.selection,r=n.$anchor,o=n.$head,i=t>0?r.max(o):r.min(o),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&g.Selection.findFrom(a,t)}function et(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function tt(e,t,n){var r=e.state.selection;if(!(r instanceof g.TextSelection)){if(r instanceof g.NodeSelection&&r.node.isInline)return et(e,new g.TextSelection(t>0?r.$to:r.$from));var o=Ze(e.state,t);return!!o&&et(e,o)}if(n.indexOf("s")>-1){var i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;var s=e.state.doc.resolve(i.pos+a.nodeSize*(t<0?-1:1));return et(e,new g.TextSelection(r.$anchor,s))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){var l=Ze(e.state,t);return!!(l&&l instanceof g.NodeSelection)&&et(e,l)}if(!($&&n.indexOf("m")>-1)){var u,c=r.$head,d=c.textOffset?null:t<0?c.nodeBefore:c.nodeAfter;if(!d||d.isText)return!1;var f=t<0?c.pos-d.nodeSize:c.pos;return!!(d.isAtom||(u=e.docView.descAt(f))&&!u.contentDOM)&&(g.NodeSelection.isSelectable(d)?et(e,new g.NodeSelection(t<0?e.state.doc.resolve(c.pos-d.nodeSize):c)):!!X&&et(e,new g.TextSelection(e.state.doc.resolve(t<0?f:f+d.nodeSize))))}}function nt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function rt(e,t){var n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function ot(e,t){return t<0?function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;var o,i,a=!1;U&&1==n.nodeType&&r<nt(n)&&rt(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;var s=n.childNodes[r-1];if(rt(s,-1))o=n,i=--r;else{if(3!=s.nodeType)break;r=(n=s).nodeValue.length}}else{if(it(n))break;for(var l=n.previousSibling;l&&rt(l,-1);)o=n.parentNode,i=E(l),l=l.previousSibling;if(l)r=nt(n=l);else{if((n=n.parentNode)==e.dom)break;r=0}}a?at(e,n,r):o&&at(e,o,i)}(e):function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;for(var o,i,a=nt(n);;)if(r<a){if(1!=n.nodeType)break;if(!rt(n.childNodes[r],1))break;o=n,i=++r}else{if(it(n))break;for(var s=n.nextSibling;s&&rt(s,1);)o=s.parentNode,i=E(s)+1,s=s.nextSibling;if(s)r=0,a=nt(n=s);else{if((n=n.parentNode)==e.dom)break;r=a=0}}o&&at(e,o,i)}(e)}function it(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function at(e,t,n){var r,o;3!=t.nodeType&&((o=function(e,t){for(;e&&t==e.childNodes.length&&!I(e);)t=E(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){var n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=o,n=0):(r=function(e,t){for(;e&&!t&&!I(e);)t=E(e),e=e.parentNode;for(;e&&t;){var n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=r,n=r.nodeValue.length));var i=e.domSelection();if(i){if(k(i)){var a=document.createRange();a.setEnd(t,n),a.setStart(t,n),i.removeAllRanges(),i.addRange(a)}else i.extend&&i.extend(t,n);e.domObserver.setCurSelection();var s=e.state;setTimeout(function(){e.state==s&&We(e)},50)}}function st(e,t){var n=e.state.doc.resolve(t);if(!z&&!K&&n.parent.inlineContent){var r=e.coordsAtPos(t);if(t>n.start()){var o=e.coordsAtPos(t-1),i=(o.top+o.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(o.left-r.left)>1)return o.left<r.left?"ltr":"rtl"}if(t<n.end()){var a=e.coordsAtPos(t+1),s=(a.top+a.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function lt(e,t,n){var r=e.state.selection;if(r instanceof g.TextSelection&&!r.empty||n.indexOf("s")>-1)return!1;if($&&n.indexOf("m")>-1)return!1;var o=r.$from,i=r.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var a=Ze(e.state,t);if(a&&a instanceof g.NodeSelection)return et(e,a)}if(!o.parent.inlineContent){var s=t<0?o:i,l=r instanceof g.AllSelection?g.Selection.near(s,t):g.Selection.findFrom(s,t);return!!l&&et(e,l)}return!1}function ut(e,t){if(!(e.state.selection instanceof g.TextSelection))return!0;var n=e.state.selection,r=n.$head,o=n.$anchor,i=n.empty;if(!r.sameParent(o))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var a=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(a&&!a.isText){var s=e.state.tr;return t<0?s.delete(r.pos-a.nodeSize,r.pos):s.delete(r.pos,r.pos+a.nodeSize),e.dispatch(s),!0}return!1}function ct(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function dt(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||$&&72==n&&"c"==r)return ut(e,-1)||ot(e,-1);if(46==n&&!t.shiftKey||$&&68==n&&"c"==r)return ut(e,1)||ot(e,1);if(13==n||27==n)return!0;if(37==n||$&&66==n&&"c"==r){var o=37==n?"ltr"==st(e,e.state.selection.from)?-1:1:-1;return tt(e,o,r)||ot(e,o)}if(39==n||$&&70==n&&"c"==r){var i=39==n?"ltr"==st(e,e.state.selection.from)?1:-1:1;return tt(e,i,r)||ot(e,i)}return 38==n||$&&80==n&&"c"==r?lt(e,-1,r)||ot(e,-1):40==n||$&&78==n&&"c"==r?function(e){if(!q||e.state.selection.$head.parentOffset>0)return!1;var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var o=n.firstChild;ct(e,o,"true"),setTimeout(function(){return ct(e,o,"false")},20)}return!1}(e)||lt(e,1,r)||ot(e,1):r==($?"m":"c")&&(66==n||73==n||89==n||90==n)}function ft(e,t){e.someProp("transformCopied",function(n){t=n(t,e)});for(var n=[],r=t,o=r.content,i=r.openStart,a=r.openEnd;i>1&&a>1&&1==o.childCount&&1==o.firstChild.childCount;){i--,a--;var s=o.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),o=s.content}var l=e.someProp("clipboardSerializer")||_.DOMSerializer.fromSchema(e.state.schema),u=xt(),c=u.createElement("div");c.appendChild(l.serializeFragment(o,{document:u}));for(var d,f=c.firstChild,p=0;f&&1==f.nodeType&&(d=bt[f.nodeName.toLowerCase()]);){for(var h=d.length-1;h>=0;h--){for(var m=u.createElement(d[h]);c.firstChild;)m.appendChild(c.firstChild);c.appendChild(m),p++}f=c.firstChild}return f&&1==f.nodeType&&f.setAttribute("data-pm-slice","".concat(i," ").concat(a).concat(p?" -".concat(p):""," ").concat(JSON.stringify(n))),{dom:c,text:e.someProp("clipboardTextSerializer",function(n){return n(t,e)})||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function pt(e,t,n,r,o){var i,a,s=o.parent.type.spec.code;if(!n&&!t)return null;var l=!!t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",function(n){t=n(t,s||r,e)}),s)return a=new _.Slice(_.Fragment.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",function(t){a=t(a,e,!0)}),a;var u=e.someProp("clipboardTextParser",function(n){return n(t,o,r,e)});if(u)a=u;else{var c=o.marks(),d=e.state.schema,f=_.DOMSerializer.fromSchema(d);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(function(e){var t=i.appendChild(document.createElement("p"));e&&t.appendChild(f.serializeNode(d.text(e,c)))})}}else e.someProp("transformPastedHTML",function(t){n=t(n,e)}),i=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=xt().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&bt[o[1].toLowerCase()])&&(e=n.map(function(e){return"<"+e+">"}).join("")+e+n.map(function(e){return"</"+e+">"}).reverse().join(""));if(r.innerHTML=function(e){var t=window.trustedTypes;if(!t)return e;Ct||(Ct=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:function(e){return e}}));return Ct.createHTML(e)}(e),n)for(var i=0;i<n.length;i++)r=r.querySelector(n[i])||r;return r}(n),X&&function(e){for(var t=e.querySelectorAll(z?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);var p=i&&i.querySelector("[data-pm-slice]"),h=p&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(p.getAttribute("data-pm-slice")||"");if(h&&h[3])for(var m=+h[3];m>0;m--){for(var v=i.firstChild;v&&1!=v.nodeType;)v=v.nextSibling;if(!v)break;i=v}if(!a){var y=e.someProp("clipboardParser")||e.someProp("domParser")||_.DOMParser.fromSchema(e.state.schema);a=y.parseSlice(i,{preserveWhitespace:!(!l&&!h),context:o,ruleFromNode:function(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||ht.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(h)a=function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var o=e.content,i=e.openStart,a=e.openEnd,s=n.length-2;s>=0;s-=2){var l=r.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;o=_.Fragment.from(l.create(n[s+1],o)),i++,a++}return new _.Slice(o,i,a)}(_t(a,+h[1],+h[2]),h[4]);else if(a=_.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n,r=function(){var n,r=t.node(o).contentMatchAt(t.index(o)),i=[];if(e.forEach(function(e){if(i){var t,o=r.findWrapping(e.type);if(!o)return i=null;if(t=i.length&&n.length&&vt(o,n,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=yt(i[i.length-1],n.length));var a=mt(e,o);i.push(a),r=r.matchType(a.type),n=o}}}),i)return{v:_.Fragment.from(i)}},o=t.depth;o>=0;o--)if(n=r())return n.v;return e}(a.content,o),!0),a.openStart||a.openEnd){for(var g=0,b=0,E=a.content.firstChild;g<a.openStart&&!E.type.spec.isolating;g++,E=E.firstChild);for(var x=a.content.lastChild;b<a.openEnd&&!x.type.spec.isolating;b++,x=x.lastChild);a=_t(a,g,b)}return e.someProp("transformPasted",function(t){a=t(a,e,l)}),a}var ht=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function mt(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.length-1;r>=n;r--)e=t[r].create(null,_.Fragment.from(e));return e}function vt(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var i=vt(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(_.Fragment.from(mt(n,e,o+1))))}}function yt(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,yt(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(_.Fragment.empty,!0);return e.copy(n.append(r))}function gt(e,t,n,r,o,i){var a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<r-1&&(s=gt(s,t,n,r,o+1,i)),o>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(_.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function _t(e,t,n){return t<e.openStart&&(e=new _.Slice(gt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new _.Slice(gt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var bt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Et=null;function xt(){return Et||(Et=document.implementation.createHTMLDocument("title"))}var Ct=null;var St={},wt={},Ot={touchstart:!0,touchmove:!0},Tt=v(function e(){h(this,e),this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null});function At(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function It(e){e.someProp("handleDOMEvents",function(t){for(var n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=function(t){return kt(e,t)})})}function kt(e,t){return e.someProp("handleDOMEvents",function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Nt(e){return{left:e.clientX,top:e.clientY}}function Pt(e,t,n,r,o){if(-1==r)return!1;for(var i,a=e.state.doc.resolve(r),s=function(r){if(e.someProp(t,function(t){return r>a.depth?t(e,n,a.nodeAfter,a.before(r),o,!0):t(e,n,a.node(r),a.before(r),o,!1)}))return{v:!0}},l=a.depth+1;l>0;l--)if(i=s(l))return i.v;return!1}function Mt(e,t,n){if(e.focused||e.focus(),!e.state.selection.eq(t)){var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}}function Lt(e,t,n,r,o){return Pt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",function(n){return n(e,t,r)})||(o?function(e,t){if(-1==t)return!1;var n,r,o=e.state.selection;o instanceof g.NodeSelection&&(n=o.node);for(var i=e.state.doc.resolve(t),a=i.depth+1;a>0;a--){var s=a>i.depth?i.nodeAfter:i.node(a);if(g.NodeSelection.isSelectable(s)){r=n&&o.$from.depth>0&&a>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(a);break}}return null!=r&&(Mt(e,g.NodeSelection.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&g.NodeSelection.isSelectable(r))&&(Mt(e,new g.NodeSelection(n),"pointer"),!0)}(e,n))}function Dt(e,t,n,r){return Pt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",function(n){return n(e,t,r)})}function Rt(e,t,n,r){return Pt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",function(n){return n(e,t,r)})||function(e,t,n){if(0!=n.button)return!1;var r=e.state.doc;if(-1==t)return!!r.inlineContent&&(Mt(e,g.TextSelection.create(r,0,r.content.size),"pointer"),!0);for(var o=r.resolve(t),i=o.depth+1;i>0;i--){var a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)Mt(e,g.TextSelection.create(r,s+1,s+1+a.content.size),"pointer");else{if(!g.NodeSelection.isSelectable(a))continue;Mt(e,g.NodeSelection.create(r,s),"pointer")}return!0}}(e,n,r)}function jt(e){return Ht(e)}wt.keydown=function(e,t){var n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!Ut(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!G||!z||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!H||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",function(t){return t(e,n)})||dt(e,n)?n.preventDefault():At(e,"key");else{var r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(function(){e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",function(t){return t(e,N(13,"Enter"))}),e.input.lastIOSEnter=0)},200)}},wt.keyup=function(e,t){16==t.keyCode&&(e.input.shiftKey=!1)},wt.keypress=function(e,t){var n=t;if(!(Ut(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||$&&n.metaKey))if(e.someProp("handleKeyPress",function(t){return t(e,n)}))n.preventDefault();else{var r=e.state.selection;if(!(r instanceof g.TextSelection&&r.$from.sameParent(r.$to))){var o=String.fromCharCode(n.charCode),i=function(){return e.state.tr.insertText(o).scrollIntoView()};/[\r\n]/.test(o)||e.someProp("handleTextInput",function(t){return t(e,r.$from.pos,r.$to.pos,o,i)})||e.dispatch(i()),n.preventDefault()}}};var Ft=$?"metaKey":"ctrlKey";St.mousedown=function(e,t){var n=t;e.input.shiftKey=n.shiftKey;var r=jt(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[Ft]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};var a=e.posAtCoords(Nt(n));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Bt(e,a,n,!!r)):("doubleClick"==i?Dt:Rt)(e,a.pos,a.inside,n)?n.preventDefault():At(e,"pointer"))};var Bt=function(){function e(t,n,r,o){var i,a,s=this;if(h(this,e),this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[Ft],this.allowDefault=r.shiftKey,n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{var l=t.state.doc.resolve(n.pos);i=l.parent,a=l.depth?l.before():0}var u=o?null:r.target,c=u?t.docView.nearestDesc(u,!0):null;this.target=c&&1==c.nodeDOM.nodeType?c.nodeDOM:null;var d=t.state.selection;(0==r.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||d instanceof g.NodeSelection&&d.from<=a&&d.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!U||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(function(){s.view.input.mouseDown==s&&s.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),At(t,"pointer")}return v(e,[{key:"done",value:function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(function(){return We(e.view)}),this.view.input.mouseDown=null}},{key:"up",value:function(e){if(this.done(),this.view.dom.contains(e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Nt(e))),this.updateAllowDefault(e),this.allowDefault||!t?At(this.view,"pointer"):Lt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||q&&this.mightDrag&&!this.mightDrag.node.isAtom||z&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Mt(this.view,g.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):At(this.view,"pointer")}}},{key:"move",value:function(e){this.updateAllowDefault(e),At(this.view,"pointer"),0==e.buttons&&this.done()}},{key:"updateAllowDefault",value:function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}]),e}();function Ut(e,t){return!!e.composing||!!(q&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}St.touchstart=function(e){e.input.lastTouch=Date.now(),jt(e),At(e,"pointer")},St.touchmove=function(e){e.input.lastTouch=Date.now(),At(e,"pointer")},St.contextmenu=function(e){return jt(e)};var Vt=G?5e3:-1;function zt(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(function(){return Ht(e)},t))}function Wt(e){var t;for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function qt(e){var t=e.domSelectionRange();if(!t.focusNode)return null;var n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=A(e=e.childNodes[t-1])}else{if(!e.parentNode||I(e))return null;t=E(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||I(e))return null;t=E(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){var o=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(e.input.compositionNode==r){var a=n.pmViewDesc;if(a&&a.isText(n.nodeValue))return r}}return n||r}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(G&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Wt(e),t||e.docView&&e.docView.dirty){var n=Ve(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}wt.compositionstart=wt.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$to;if(t.selection instanceof g.TextSelection&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(function(e){return!1===e.type.spec.inclusive})||z&&K&&function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n||1!=n.nodeType||r>=n.childNodes.length)return!1;var o=n.childNodes[r];return 1==o.nodeType&&"false"==o.contentEditable}(e)))e.markCursor=e.state.storedMarks||n.marks(),Ht(e,!0),e.markCursor=null;else if(Ht(e,!t.selection.empty),U&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.domSelectionRange(),o=r.focusNode,i=r.focusOffset;o&&1==o.nodeType&&0!=i;){var a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(3==a.nodeType){var s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}o=a,i=-1}e.input.composing=!0}zt(e,Vt)},wt.compositionend=function(e,t){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(function(){return e.domObserver.flush()}),e.input.compositionID++,zt(e,20))};var $t=F&&B<15||H&&Y<604;function Kt(e,t,n,r,o){var i=pt(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",function(t){return t(e,o,i||_.Slice.empty)}))return!0;if(!i)return!1;var a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Gt(e){var t=e.getData("text/plain")||e.getData("Text");if(t)return t;var n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}St.copy=wt.cut=function(e,t){var n=t,r=e.state.selection,o="cut"==n.type;if(!r.empty){var i=$t?null:n.clipboardData,a=ft(e,r.content()),s=a.dom,l=a.text;i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},wt.paste=function(e,t){var n=t;if(!e.composing||G){var r=$t?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&Kt(e,Gt(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();var o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Kt(e,r.value,null,o,t):Kt(e,r.textContent,r.innerHTML,o,t)},50)}}(e,n)}};var Xt=v(function e(t,n,r){h(this,e),this.slice=t,this.move=n,this.node=r}),Yt=$?"altKey":"ctrlKey";function Jt(e,t){var n=e.someProp("dragCopies",function(e){return!e(t)});return null!=n?n:!t[Yt]}for(var Qt in St.dragstart=function(e,t){var n=t,r=e.input.mouseDown;if(r&&r.done(),n.dataTransfer){var o,i=e.state.selection,a=i.empty?null:e.posAtCoords(Nt(n));if(a&&a.pos>=i.from&&a.pos<=(i instanceof g.NodeSelection?i.to-1:i.to));else if(r&&r.mightDrag)o=g.NodeSelection.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){var s=e.docView.nearestDesc(n.target,!0);s&&s.node.type.spec.draggable&&s!=e.docView&&(o=g.NodeSelection.create(e.state.doc,s.posBefore))}var l=ft(e,(o||e.state.selection).content()),u=l.dom,c=l.text,d=l.slice;(!n.dataTransfer.files.length||!z||W>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($t?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",$t||n.dataTransfer.setData("text/plain",c),e.dragging=new Xt(d,Jt(e,n),o)}},St.dragend=function(e){var t=e.dragging;window.setTimeout(function(){e.dragging==t&&(e.dragging=null)},50)},wt.dragover=wt.dragenter=function(e,t){return t.preventDefault()},wt.drop=function(e,t){try{!function(e,t,n){if(!t.dataTransfer)return;var r=e.posAtCoords(Nt(t));if(!r)return;var o=e.state.doc.resolve(r.pos),i=n&&n.slice;i?e.someProp("transformPasted",function(t){i=t(i,e,!1)}):i=pt(e,Gt(t.dataTransfer),$t?null:t.dataTransfer.getData("text/html"),!1,o);var a=!(!n||!Jt(e,t));if(e.someProp("handleDrop",function(n){return n(e,t,i||_.Slice.empty,a)}))return void t.preventDefault();if(!i)return;t.preventDefault();var s=i?b.dropPoint(e.state.doc,o.pos,i):o.pos;null==s&&(s=o.pos);var l=e.state.tr;if(a){var u=n.node;u?u.replace(l):l.deleteSelection()}var c=l.mapping.map(s),d=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,f=l.doc;d?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i);if(l.doc.eq(f))return;var p=l.doc.resolve(c);if(d&&g.NodeSelection.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new g.NodeSelection(p));else{var h=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach(function(e,t,n,r){return h=r}),l.setSelection(Ye(e,p,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},St.focus=function(e){e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&We(e)},20))},St.blur=function(e,t){var n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},St.beforeinput=function(e,t){if(z&&G&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.input.domChangeCount;setTimeout(function(){if(e.input.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",function(t){return t(e,N(8,"Backspace"))}))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}},50)}},wt)St[Qt]=wt[Qt];function Zt(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var en=function(){function e(t,n){h(this,e),this.toDOM=t,this.spec=n||an,this.side=this.spec.side||0}return v(e,[{key:"map",value:function(e,t,n,r){var o=e.mapResult(t.from+r,this.side<0?-1:1),i=o.pos;return o.deleted?null:new rn(i-n,i-n,this)}},{key:"valid",value:function(){return!0}},{key:"eq",value:function(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Zt(this.spec,t.spec))}},{key:"destroy",value:function(e){this.spec.destroy&&this.spec.destroy(e)}}]),e}(),tn=function(){function e(t,n){h(this,e),this.attrs=t,this.spec=n||an}return v(e,[{key:"map",value:function(e,t,n,r){var o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new rn(o,i,this)}},{key:"valid",value:function(e,t){return t.from<t.to}},{key:"eq",value:function(t){return this==t||t instanceof e&&Zt(this.attrs,t.attrs)&&Zt(this.spec,t.spec)}},{key:"destroy",value:function(){}}],[{key:"is",value:function(t){return t.type instanceof e}}]),e}(),nn=function(){function e(t,n){h(this,e),this.attrs=t,this.spec=n||an}return v(e,[{key:"map",value:function(e,t,n,r){var o=e.mapResult(t.from+r,1);if(o.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new rn(o.pos-n,i.pos-n,this)}},{key:"valid",value:function(e,t){var n,r=e.content.findIndex(t.from),o=r.index,i=r.offset;return i==t.from&&!(n=e.child(o)).isText&&i+n.nodeSize==t.to}},{key:"eq",value:function(t){return this==t||t instanceof e&&Zt(this.attrs,t.attrs)&&Zt(this.spec,t.spec)}},{key:"destroy",value:function(){}}]),e}(),rn=function(){function e(t,n,r){h(this,e),this.from=t,this.to=n,this.type=r}return v(e,[{key:"copy",value:function(t,n){return new e(t,n,this.type)}},{key:"eq",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}},{key:"map",value:function(e,t,n){return this.type.map(e,this,t,n)}},{key:"spec",get:function(){return this.type.spec}},{key:"inline",get:function(){return this.type instanceof tn}},{key:"widget",get:function(){return this.type instanceof en}}],[{key:"widget",value:function(t,n,r){return new e(t,t,new en(n,r))}},{key:"inline",value:function(t,n,r,o){return new e(t,n,new tn(r,o))}},{key:"node",value:function(t,n,r,o){return new e(t,n,new nn(r,o))}}]),e}(),on=[],an={},sn=function(){function e(t,n){h(this,e),this.local=t.length?t:on,this.children=n.length?n:on}return v(e,[{key:"find",value:function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}},{key:"findInner",value:function(e,t,n,r,o){for(var i=0;i<this.local.length;i++){var a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,o)}}},{key:"map",value:function(e,t,n){return this==ln||0==e.maps.length?this:this.mapInner(e,t,0,0,n||an)}},{key:"mapInner",value:function(t,n,r,o,i){for(var a,s=0;s<this.local.length;s++){var l=this.local[s].map(t,r,o);l&&l.type.valid(n,l)?(a||(a=[])).push(l):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?cn(this.children,a||[],t,n,r,o,i):a?new e(a.sort(mn),on):ln}},{key:"add",value:function(t,n){return n.length?this==ln?e.create(t,n):this.addInner(t,n,0):this}},{key:"addInner",value:function(t,n,r){var o,i=this,a=0;t.forEach(function(e,t){var s,l=t+r;if(s=fn(n,e,l)){for(o||(o=i.children.slice());a<o.length&&o[a]<t;)a+=3;o[a]==t?o[a+2]=o[a+2].addInner(e,s,l+1):o.splice(a,0,t,t+e.nodeSize,hn(s,e,l+1,an)),a+=3}});for(var s=dn(a?pn(n):n,-r),l=0;l<s.length;l++)s[l].type.valid(t,s[l])||s.splice(l--,1);return new e(s.length?this.local.concat(s).sort(mn):this.local,o||this.children)}},{key:"remove",value:function(e){return 0==e.length||this==ln?this:this.removeInner(e,0)}},{key:"removeInner",value:function(t,n){for(var r=this.children,o=this.local,i=0;i<r.length;i+=3){for(var a,s=void 0,l=r[i]+n,u=r[i+1]+n,c=0;c<t.length;c++)(a=t[c])&&a.from>l&&a.to<u&&(t[c]=null,(s||(s=[])).push(a));if(s){r==this.children&&(r=this.children.slice());var d=r[i+2].removeInner(s,l+1);d!=ln?r[i+2]=d:(r.splice(i,3),i-=3)}}if(o.length)for(var f,p=0;p<t.length;p++)if(f=t[p])for(var h=0;h<o.length;h++)o[h].eq(f,n)&&(o==this.local&&(o=this.local.slice()),o.splice(h--,1));return r==this.children&&o==this.local?this:o.length||r.length?new e(o,r):ln}},{key:"forChild",value:function(t,n){if(this==ln)return this;if(n.isLeaf)return e.empty;for(var r,o,i=0;i<this.children.length;i+=3)if(this.children[i]>=t){this.children[i]==t&&(r=this.children[i+2]);break}for(var a=t+1,s=a+n.content.size,l=0;l<this.local.length;l++){var u=this.local[l];if(u.from<s&&u.to>a&&u.type instanceof tn){var c=Math.max(a,u.from)-a,d=Math.min(s,u.to)-a;c<d&&(o||(o=[])).push(u.copy(c,d))}}if(o){var f=new e(o.sort(mn),on);return r?new un([f,r]):f}return r||ln}},{key:"eq",value:function(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(var n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(var r=0;r<this.children.length;r+=3)if(this.children[r]!=t.children[r]||this.children[r+1]!=t.children[r+1]||!this.children[r+2].eq(t.children[r+2]))return!1;return!0}},{key:"locals",value:function(e){return vn(this.localsInner(e))}},{key:"localsInner",value:function(e){if(this==ln)return on;if(e.inlineContent||!this.local.some(tn.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof tn||t.push(this.local[n]);return t}},{key:"forEachSet",value:function(e){e(this)}}],[{key:"create",value:function(e,t){return t.length?hn(t,e,0,an):ln}}]),e}();sn.empty=new sn([],[]),sn.removeOverlap=vn;var ln=sn.empty,un=function(){function e(t){h(this,e),this.members=t}return v(e,[{key:"map",value:function(t,n){var r=this.members.map(function(e){return e.map(t,n,an)});return e.from(r)}},{key:"forChild",value:function(t,n){if(n.isLeaf)return sn.empty;for(var r=[],o=0;o<this.members.length;o++){var i=this.members[o].forChild(t,n);i!=ln&&(i instanceof e?r=r.concat(i.members):r.push(i))}return e.from(r)}},{key:"eq",value:function(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(var n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}},{key:"locals",value:function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<o.length;i++)t.push(o[i])}else t=o}return t?vn(n?t:t.sort(mn)):on}},{key:"forEachSet",value:function(e){for(var t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}],[{key:"from",value:function(t){switch(t.length){case 0:return ln;case 1:return t[0];default:return new e(t.every(function(e){return e instanceof sn})?t:t.reduce(function(e,t){return e.concat(t instanceof sn?t:t.members)},[]))}}}]),e}();function cn(e,t,n,r,o,i,a){for(var s=e.slice(),l=function(e){var t=0;n.maps[u].forEach(function(n,r,o,i){for(var a=i-o-(r-n),l=0;l<s.length;l+=3){var u=s[l+1];if(!(u<0||n>u+e-t)){var c=s[l]+e-t;r>=c?s[l+1]=n<=c?-2:-1:n>=e&&a&&(s[l]+=a,s[l+1]+=a)}}t+=a}),e=n.maps[u].map(e,-1),c=e},u=0,c=i;u<n.maps.length;u++)l(c);for(var d=!1,f=0;f<s.length;f+=3)if(s[f+1]<0){if(-2==s[f+1]){d=!0,s[f+1]=-1;continue}var p=n.map(e[f]+i),h=p-o;if(h<0||h>=r.content.size){d=!0;continue}var m=n.map(e[f+1]+i,-1)-o,v=r.content.findIndex(h),y=v.index,g=v.offset,_=r.maybeChild(y);if(_&&g==h&&g+_.nodeSize==m){var b=s[f+2].mapInner(n,_,p+1,e[f]+i+1,a);b!=ln?(s[f]=h,s[f+1]=m,s[f+2]=b):(s[f+1]=-2,d=!0)}else d=!0}if(d){var E=function(e,t,n,r,o,i,a){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,o,t);l?n.push(l):a.onRemove&&a.onRemove(e.local[i].spec)}for(var u=0;u<e.children.length;u+=3)s(e.children[u+2],e.children[u]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t,n,o,i,a),x=hn(E,r,0,a);t=x.local;for(var C=0;C<s.length;C+=3)s[C+1]<0&&(s.splice(C,3),C-=3);for(var S=0,w=0;S<x.children.length;S+=3){for(var O=x.children[S];w<s.length&&s[w]<O;)w+=3;s.splice(w,0,x.children[S],x.children[S+1],x.children[S+2])}}return new sn(t.sort(mn),s)}function dn(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var o=e[r];n.push(new rn(o.from+t,o.to+t,o.type))}return n}function fn(e,t,n){if(t.isLeaf)return null;for(var r,o=n+t.nodeSize,i=null,a=0;a<e.length;a++)(r=e[a])&&r.from>n&&r.to<o&&((i||(i=[])).push(r),e[a]=null);return i}function pn(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function hn(e,t,n,r){var o=[],i=!1;t.forEach(function(t,a){var s=fn(e,t,a+n);if(s){i=!0;var l=hn(s,t,n+a+1,r);l!=ln&&o.push(a,a+t.nodeSize,l)}});for(var a=dn(i?pn(e):e,-n).sort(mn),s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||o.length?new sn(a,o):ln}function mn(e,t){return e.from-t.from||e.to-t.to}function vn(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var o=n+1;o<t.length;o++){var i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),yn(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),yn(t,o+1,i.copy(r.to,i.to)))}}return t}function yn(e,t,n){for(;t<e.length&&mn(n,e[t])>0;)t++;e.splice(t,0,n)}function gn(e){var t=[];return e.someProp("decorations",function(n){var r=n(e.state);r&&r!=ln&&t.push(r)}),e.cursorWrapper&&t.push(sn.create(e.state.doc,[e.cursorWrapper.deco])),un.from(t)}var _n={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},bn=F&&B<=11,En=function(){function e(){h(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return v(e,[{key:"set",value:function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}},{key:"clear",value:function(){this.anchorNode=this.focusNode=null}},{key:"eq",value:function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}]),e}(),xn=function(){function e(t,n){var r=this;h(this,e),this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new En,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(function(e){for(var n=0;n<e.length;n++)r.queue.push(e[n]);F&&B<=11&&e.some(function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length})?r.flushSoon():q&&t.composing&&e.some(function(e){return"childList"==e.type&&"TR"==e.target.nodeName})?(t.input.badSafariComposition=!0,r.flushSoon()):r.flush()}),bn&&(this.onCharData=function(e){r.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),r.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}return v(e,[{key:"flushSoon",value:function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(function(){e.flushingSoon=-1,e.flush()},20))}},{key:"forceFlush",value:function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}},{key:"start",value:function(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,_n)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}},{key:"stop",value:function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(function(){return e.flush()},20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}},{key:"connectSelection",value:function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}},{key:"disconnectSelection",value:function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"suppressSelectionUpdates",value:function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout(function(){return e.suppressingSelectionUpdates=!1},50)}},{key:"onSelectionChange",value:function(){if(Je(this.view)){if(this.suppressingSelectionUpdates)return We(this.view);if(F&&B<=11&&!this.view.state.selection.empty){var e=this.view.domSelectionRange();if(e.focusNode&&w(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}},{key:"setCurSelection",value:function(){this.currentSelection.set(this.view.domSelectionRange())}},{key:"ignoreSelectionChange",value:function(e){if(!e.focusNode)return!0;for(var t,n=new Set,r=e.focusNode;r;r=x(r))n.add(r);for(var o=e.anchorNode;o;o=x(o))if(n.has(o)){t=o;break}var i=t&&this.view.docView.nearestDesc(t);return i&&i.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}},{key:"pendingRecords",value:function(){if(this.observer){var e,t=o(this.observer.takeRecords());try{for(t.s();!(e=t.n()).done;){var n=e.value;this.queue.push(n)}}catch(e){t.e(e)}finally{t.f()}}return this.queue}},{key:"flush",value:function(){var e=this.view;if(e.docView&&!(this.flushingSoon>-1)){var t=this.pendingRecords();t.length&&(this.queue=[]);var n=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Je(e)&&!this.ignoreSelectionChange(n),a=-1,s=-1,l=!1,u=[];if(e.editable)for(var c=0;c<t.length;c++){var d=this.registerMutation(t[c],u);d&&(a=a<0?d.from:Math.min(d.from,a),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(l=!0))}if(U&&u.length){var f=u.filter(function(e){return"BR"==e.nodeName});if(2==f.length){var p=r(f,2),h=p[0],m=p[1];h.parentNode&&h.parentNode.parentNode==m.parentNode?m.remove():h.remove()}else{var v,y=this.currentSelection.focusNode,_=o(f);try{for(_.s();!(v=_.n()).done;){var b=v.value,E=b.parentNode;!E||"LI"!=E.nodeName||y&&On(e,y)==E||b.remove()}}catch(e){_.e(e)}finally{_.f()}}}else if((z||q)&&u.some(function(e){return"BR"==e.nodeName})&&(8==e.input.lastKeyCode||46==e.input.lastKeyCode)){var x,C=o(u);try{for(C.s();!(x=C.n()).done;){var S=x.value;if("BR"==S.nodeName&&S.parentNode){var w=S.nextSibling;w&&1==w.nodeType&&"false"==w.contentEditable&&S.parentNode.removeChild(S)}}}catch(e){C.e(e)}finally{C.f()}}var O=null;a<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&k(n)&&(O=Ve(e))&&O.eq(g.Selection.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,We(e),this.currentSelection.set(n),e.scrollToSelection()):(a>-1||i)&&(a>-1&&(e.docView.markDirty(a,s),function(e){if(Cn.has(e))return;if(Cn.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=U,Sn)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Sn=!0}}(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(e,t){var n,r,i=e.domSelectionRange(),a=i.focusNode,s=i.focusOffset,l=o(t);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("TR"==(null===(n=u.parentNode)||void 0===n?void 0:n.nodeName)){for(var c=u.nextSibling;c&&"TD"!=c.nodeName&&"TH"!=c.nodeName;)c=c.nextSibling;if(c){for(var d=c;;){var f=d.firstChild;if(!f||1!=f.nodeType||"false"==f.contentEditable||/^(BR|IMG)$/.test(f.nodeName))break;d=f}d.insertBefore(u,d.firstChild),a==u&&e.domSelection().collapse(u,s)}else u.parentNode.removeChild(u)}}}catch(e){l.e(e)}finally{l.f()}}(e,u)),this.handleDOMChange(a,s,l,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||We(e),this.currentSelection.set(n))}}},{key:"registerMutation",value:function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var r=0;r<e.addedNodes.length;r++){var o=e.addedNodes[r];t.push(o),3==o.nodeType&&(this.lastChangedTextNode=o)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var i=e.previousSibling,a=e.nextSibling;if(F&&B<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var l=e.addedNodes[s],u=l.previousSibling,c=l.nextSibling;(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(i=u),(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(a=c)}var d=i&&i.parentNode==e.target?E(i)+1:0,f=n.localPosFromDOM(e.target,d,-1),p=a&&a.parentNode==e.target?E(a):e.target.childNodes.length;return{from:f,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}]),e}(),Cn=new WeakMap,Sn=!1;function wn(e,t){var n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.domAtPos(e.state.selection.anchor);if(w(a.node,a.offset,o,i)){var s=[o,i,n,r];n=s[0],r=s[1],o=s[2],i=s[3]}return{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function On(e,t){for(var n=t.parentNode;n&&n!=e.dom;n=n.parentNode){var r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function Tn(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(q&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||q&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}var An=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function In(e,t,n,r,o){var i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){var a=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,s=Ve(e,a);if(s&&!e.state.selection.eq(s)){if(z&&G&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",function(t){return t(e,N(13,"Enter"))}))return;var l=e.state.tr.setSelection(s);"pointer"==a?l.setMeta("pointer",!0):"key"==a&&l.scrollIntoView(),i&&l.setMeta("composition",i),e.dispatch(l)}}else{var u=e.state.doc.resolve(t),c=u.sharedDepth(n);t=u.before(c+1),n=e.state.doc.resolve(n).after(c+1);var d,f,p=e.state.selection,h=function(e,t,n){var r,o=e.docView.parseRange(t,n),i=o.node,a=o.fromOffset,s=o.toOffset,l=o.from,u=o.to,c=e.domSelectionRange(),d=c.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:c.anchorOffset}],k(c)||r.push({node:c.focusNode,offset:c.focusOffset})),z&&8===e.input.lastKeyCode)for(var f=s;f>a;f--){var p=i.childNodes[f-1],h=p.pmViewDesc;if("BR"==p.nodeName&&!h){s=f;break}if(!h||h.size)break}var m=e.state.doc,v=e.someProp("domParser")||_.DOMParser.fromSchema(e.state.schema),y=m.resolve(l),g=null,b=v.parse(i,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=y.parent.type.whitespace||"full",findPositions:r,ruleFromNode:Tn,context:y});if(r&&null!=r[0].pos){var E=r[0].pos,x=r[1]&&r[1].pos;null==x&&(x=E),g={anchor:E+l,head:x+l}}return{doc:b,sel:g,from:l,to:u}}(e,t,n),m=e.state.doc,v=m.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(d=e.state.selection.to,f="end"):(d=e.state.selection.from,f="start"),e.input.lastKeyCode=null;var y=function(e,t,n,r,o){var i=e.findDiffStart(t,n);if(null==i)return null;var a=e.findDiffEnd(t,n+e.size,n+t.size),s=a.a,l=a.b;if("end"==o){r-=s+Math.max(0,i-Math.min(s,l))-i}if(s<i&&e.size<t.size){var u=r<=i&&r>=s?i-r:0;(i-=u)&&i<t.size&&Pn(t.textBetween(i-1,i+1))&&(i+=u?1:-1),l=i+(l-s),s=i}else if(l<i){var c=r<=i&&r>=l?i-r:0;(i-=c)&&i<e.size&&Pn(e.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}(v.content,h.doc.content,h.from,d,f);if(y&&e.input.domChangeCount++,(H&&e.input.lastIOSEnter>Date.now()-225||G)&&o.some(function(e){return 1==e.nodeType&&!An.test(e.nodeName)})&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",function(t){return t(e,N(13,"Enter"))}))e.input.lastIOSEnter=0;else{if(!y){if(!(r&&p instanceof g.TextSelection&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if(h.sel){var b=kn(e,e.state.doc,h.sel);if(b&&!b.eq(e.state.selection)){var E=e.state.tr.setSelection(b);i&&E.setMeta("composition",i),e.dispatch(E)}}return}y={start:p.from,endA:p.to,endB:p.to}}e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof g.TextSelection&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=h.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=h.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),F&&B<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>h.from&&"  "==h.doc.textBetween(y.start-h.from-1,y.start-h.from+1)&&(y.start--,y.endA--,y.endB--);var x=h.doc.resolveNoCache(y.start-h.from),C=h.doc.resolveNoCache(y.endB-h.from),S=m.resolve(y.start),w=x.sameParent(C)&&x.parent.inlineContent&&S.end()>=y.endA;if((H&&e.input.lastIOSEnter>Date.now()-225&&(!w||o.some(function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))||!w&&x.pos<h.doc.content.size&&(!x.sameParent(C)||!x.parent.inlineContent)&&x.pos<C.pos&&!/\S/.test(h.doc.textBetween(x.pos,C.pos,"","")))&&e.someProp("handleKeyDown",function(t){return t(e,N(13,"Enter"))}))e.input.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,r,o){if(n-t<=o.pos-r.pos||Nn(r,!0,!1)<o.pos)return!1;var i=e.resolve(t);if(!r.parent.isTextblock){var a=i.nodeAfter;return null!=a&&n==t+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var s=e.resolve(Nn(i,!0,!0));return!(!s.parent.isTextblock||s.pos>n||Nn(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(m,y.start,y.endA,x,C)&&e.someProp("handleKeyDown",function(t){return t(e,N(8,"Backspace"))}))G&&z&&e.domObserver.suppressSelectionUpdates();else{z&&y.endB==y.start&&(e.input.lastChromeDelete=Date.now()),G&&!w&&x.start()!=C.start()&&0==C.parentOffset&&x.depth==C.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==y.endA&&(y.endB-=2,C=h.doc.resolveNoCache(y.endB-h.from),setTimeout(function(){e.someProp("handleKeyDown",function(t){return t(e,N(13,"Enter"))})},20));var O,T=y.start,A=y.endA,I=function(t){var n=t||e.state.tr.replace(T,A,h.doc.slice(y.start-h.from,y.endB-h.from));if(h.sel){var r=kn(e,n.doc,h.sel);r&&!(z&&e.composing&&r.empty&&(y.start!=y.endB||e.input.lastChromeDelete<Date.now()-100)&&(r.head==T||r.head==n.mapping.map(A)-1)||F&&r.empty&&r.head==T)&&n.setSelection(r)}return i&&n.setMeta("composition",i),n.scrollIntoView()};if(w)if(x.pos==C.pos){F&&B<=11&&0==x.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(function(){return We(e)},20));var P=I(e.state.tr.delete(T,A)),M=m.resolve(y.start).marksAcross(m.resolve(y.endA));M&&P.ensureMarks(M),e.dispatch(P)}else if(y.endA==y.endB&&(O=function(e,t){for(var n,r,o,i=e.firstChild.marks,a=t.firstChild.marks,s=i,l=a,u=0;u<a.length;u++)s=a[u].removeFromSet(s);for(var c=0;c<i.length;c++)l=i[c].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",o=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",o=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var d=[],f=0;f<t.childCount;f++)d.push(o(t.child(f)));if(_.Fragment.from(d).eq(e))return{mark:r,type:n}}(x.parent.content.cut(x.parentOffset,C.parentOffset),S.parent.content.cut(S.parentOffset,y.endA-S.start())))){var L=I(e.state.tr);"add"==O.type?L.addMark(T,A,O.mark):L.removeMark(T,A,O.mark),e.dispatch(L)}else if(x.parent.child(x.index()).isText&&x.index()==C.index()-(C.textOffset?0:1)){var D=x.parent.textBetween(x.parentOffset,C.parentOffset),R=function(){return I(e.state.tr.insertText(D,T,A))};e.someProp("handleTextInput",function(t){return t(e,T,A,D,R)})||e.dispatch(R())}else e.dispatch(I());else e.dispatch(I())}}}}function kn(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Ye(e,t.resolve(n.anchor),t.resolve(n.head))}function Nn(e,t,n){for(var r=e.depth,o=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,o++;return o}function Pn(e){if(2!=e.length)return!1;var t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}var Mn=pt,Ln=Ht,Dn=function(){function e(t,n){var r=this;h(this,e),this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Tt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Un),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Fn(this),jn(this),this.nodeViews=Bn(this),this.docView=we(this.state.doc,Rn(this),gn(this),this.dom,this),this.domObserver=new xn(this,function(e,t,n,o){return In(r,e,t,n,o)}),this.domObserver.start(),function(e){var t=function(){var t=St[n];e.dom.addEventListener(n,e.input.eventHandlers[n]=function(n){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,n)||kt(e,n)||!e.editable&&n.type in wt||t(e,n)},Ot[n]?{passive:!0}:void 0)};for(var n in St)t();q&&e.dom.addEventListener("input",function(){return null}),It(e)}(this),this.updatePluginViews()}return v(e,[{key:"composing",get:function(){return this.input.composing}},{key:"props",get:function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}},{key:"update",value:function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&It(this);var t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Un),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}},{key:"setProps",value:function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)}},{key:"updateState",value:function(e){this.updateStateInner(e,this._props)}},{key:"updateStateInner",value:function(e,t){var n,r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(Wt(this),i=!0),this.state=e;var a=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){var s=Bn(this);(function(e,t){var n=0,r=0;for(var o in e){if(e[o]!=t[o])return!0;n++}for(var i in t)r++;return n!=r})(s,this.nodeViews)&&(this.nodeViews=s,o=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&It(this),this.editable=Fn(this),jn(this);var l=gn(this),u=Rn(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",d=o||!this.docView.matchesNode(e.doc,u,l);!d&&e.selection.eq(r.selection)||(i=!0);var f,p,h,m,v,y,g,_,b,E,x,C="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top),i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){var s=e.root.elementFromPoint(i,a);if(s&&s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=o-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:te(e.dom)}}(this);if(i){this.domObserver.stop();var S=d&&(F||z)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&(m=r.selection,v=e.selection,y=Math.min(m.$anchor.sharedDepth(m.head),v.$anchor.sharedDepth(v.head)),m.$anchor.start(y)!=v.$anchor.start(y));if(d){var O=z?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=qt(this)),!o&&this.docView.update(e.doc,u,l,this)||(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=we(e.doc,u,l,this.dom,this)),!O||this.trackWrites&&this.dom.contains(this.trackWrites)||(S=!0)}S||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(f=this,p=f.docView.domFromPos(f.state.selection.anchor,0),h=f.domSelectionRange(),w(p.node,p.offset,h.anchorNode,h.anchorOffset)))?We(this,S):(Ge(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():C&&(_=(g=C).refDOM,b=g.refTop,E=g.stack,x=_?_.getBoundingClientRect().top:0,ne(E,0==x?0:x-b))}},{key:"scrollToSelection",value:function(){var e=this,t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",function(t){return t(e)}));else if(this.state.selection instanceof g.NodeSelection){var n=this.docView.domAfterPos(this.state.selection.from);1==n.nodeType&&ee(this,n.getBoundingClientRect(),t)}else ee(this,this.coordsAtPos(this.state.selection.head,1),t);else;}},{key:"destroyPluginViews",value:function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()}},{key:"updatePluginViews",value:function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(var i=0;i<this.state.plugins.length;i++){var a=this.state.plugins[i];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}}},{key:"updateDraggedNode",value:function(e,t){var n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{var o=n.from+(this.state.doc.content.size-t.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==n.node&&(r=o)}this.dragging=new Xt(e.slice,e.move,r<0?void 0:g.NodeSelection.create(this.state.doc,r))}},{key:"someProp",value:function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(var o=0;o<this.directPlugins.length;o++){var i=this.directPlugins[o].props[e];if(null!=i&&(n=t?t(i):i))return n}var a=this.state.plugins;if(a)for(var s=0;s<a.length;s++){var l=a[s].props[e];if(null!=l&&(n=t?t(l):l))return n}}},{key:"hasFocus",value:function(){if(F){var e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}},{key:"focus",value:function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(re)return e.focus(re);var t=te(e);e.focus(null==re?{get preventScroll(){return re={preventScroll:!0},!0}}:void 0),re||(re=!1,ne(t,0))}(this.dom),We(this),this.domObserver.start()}},{key:"root",get:function(){var e=this,t=this._root;if(null==t)for(var n,r=function(t){if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return t.ownerDocument.getSelection()}),{v:e._root=t}},o=this.dom.parentNode;o;o=o.parentNode)if(n=r(o))return n.v;return t||document}},{key:"updateRoot",value:function(){this._root=null}},{key:"posAtCoords",value:function(e){return se(this,e)}},{key:"coordsAtPos",value:function(e){return de(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)}},{key:"domAtPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.domFromPos(e,t)}},{key:"nodeDOM",value:function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null}},{key:"posAtDOM",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}},{key:"endOfTextblock",value:function(e,t){return _e(this,t||this.state,e)}},{key:"pasteHTML",value:function(e,t){return Kt(this,"",e,!1,t||new ClipboardEvent("paste"))}},{key:"pasteText",value:function(e,t){return Kt(this,e,null,!0,t||new ClipboardEvent("paste"))}},{key:"serializeForClipboard",value:function(e){return ft(this,e)}},{key:"destroy",value:function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],gn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,C=null)}},{key:"isDestroyed",get:function(){return null==this.docView}},{key:"dispatchEvent",value:function(e){return function(e,t){kt(e,t)||!St[t.type]||!e.editable&&t.type in wt||St[t.type](e,t)}(this,e)}},{key:"domSelectionRange",value:function(){var e=this.domSelection();return e?q&&11===this.root.nodeType&&function(e){for(var t=e.activeElement;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){var n=t.getComposedRanges(e.root)[0];if(n)return wn(e,n)}var r;function o(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",o,!0),r?wn(e,r):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}},{key:"domSelection",value:function(){return this.root.getSelection()}}]),e}();function Rn(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:"style"==r?t.style=(t.style?t.style+";":"")+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[rn.node(0,e.state.doc.content.size,t)]}function jn(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:rn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Fn(e){return!e.someProp("editable",function(t){return!1===t(e.state)})}function Bn(e){var t=Object.create(null);function n(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Un(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}Dn.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},t.Decoration=rn,t.DecorationSet=sn,t.EditorView=Dn,t.__endComposition=Ln,t.__parseFromClipboard=Mn},function(e){var t=200,n=function(){};n.prototype.append=function(e){return e.length?(e=n.from(e),!this.length&&e||e.length<t&&this.leafAppend(e)||this.length<t&&e.leafPrepend(this)||this.appendInner(e)):this},n.prototype.prepend=function(e){return e.length?n.from(e).append(this):this},n.prototype.appendInner=function(e){return new o(this,e)},n.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?n.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},n.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},n.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},n.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},n.from=function(e){return e instanceof n?e:e&&e.length?new r(e):n.empty};var r=function(e){function n(t){e.call(this),this.values=t}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={length:{configurable:!0},depth:{configurable:!0}};return n.prototype.flatten=function(){return this.values},n.prototype.sliceInner=function(e,t){return 0==e&&t==this.length?this:new n(this.values.slice(e,t))},n.prototype.getInner=function(e){return this.values[e]},n.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},n.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},n.prototype.leafAppend=function(e){if(this.length+e.length<=t)return new n(this.values.concat(e.flatten()))},n.prototype.leafPrepend=function(e){if(this.length+e.length<=t)return new n(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(n.prototype,r),n}(n);n.empty=new r([]);var o=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(n);e.exports=n},function(e,t,n){n.d(t,{Y:function(){return r}});
399
399
  /**
400
400
  * @license
401
401
  * Copyright 2016 Google Inc.
@@ -418,7 +418,7 @@ var r={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},o={NOTCH_ELEMENT_PA
418
418
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
419
419
  * THE SOFTWARE.
420
420
  */
421
- var r={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},function(e,t,n){n.d(t,{C:function(){return a}});var r=n(2),o=n(4),i=n(89),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.transitionEndHandler=function(e){o.handleTransitionEnd(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},t.prototype.activate=function(){this.adapter.removeClass(i.Y.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(i.Y.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(i.Y.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(i.Y.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(i.Y.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(i.Y.LINE_RIPPLE_DEACTIVATING))},t}(o.I)},function(e,t,n){n.d(t,{Y:function(){return r}});
421
+ var r={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},function(e,t,n){n.d(t,{C:function(){return a}});var r=n(2),o=n(4),i=n(101),a=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.transitionEndHandler=function(e){o.handleTransitionEnd(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},t.prototype.activate=function(){this.adapter.removeClass(i.Y.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(i.Y.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(i.Y.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(i.Y.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(i.Y.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(i.Y.LINE_RIPPLE_DEACTIVATING))},t}(o.I)},function(e,t,n){n.d(t,{Y:function(){return r}});
422
422
  /**
423
423
  * @license
424
424
  * Copyright 2018 Google Inc.
@@ -441,7 +441,7 @@ var r={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-f
441
441
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
442
442
  * THE SOFTWARE.
443
443
  */
444
- var r={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},function(e,t,n){n.d(t,{z:function(){return a}});var r=n(2),o=n(4),i=n(73),a=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=i.nL.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(o.I)},function(e,t,n){n.d(t,{f:function(){return l}});var r=n(2),o=n(5),i=n(22),a=n(51),s=n(74),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledItemsFocusable",{set:function(e){this.foundation.setDisabledItemsFocusable(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=a.iP in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=a.$z:(0,i.cK)(this.root,a.P$.DEPRECATED_SELECTOR)?this.classNameMap=a.PY:this.classNameMap=Object.values(a.Y7).reduce(function(e,t){return e[t]=t,e},{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},t.prototype.layout=function(){var e=this.root.getAttribute(a.P$.ARIA_ORIENTATION);this.vertical=e!==a.P$.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+":not([tabindex])",n=a.P$.FOCUSABLE_CHILD_ELEMENTS,r=this.root.querySelectorAll(t);r.length&&Array.prototype.forEach.call(r,function(e){e.setAttribute("tabindex","-1")});var o=this.root.querySelectorAll(n);o.length&&Array.prototype.forEach.call(o,function(e){e.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t,n=e.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(t=null==n?void 0:n.textContent)&&void 0!==t?t:"";var r=e.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_TEXT_CLASS]);return r&&r.textContent||""},t.prototype.initializeListType=function(){var e=this;if(this.isInteractive=(0,i.cK)(this.root,a.P$.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(a.P$.SELECTED_ITEM_SELECTOR),function(t){return e.listElements.indexOf(t)});(0,i.cK)(this.root,a.P$.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:t.length>0&&(this.selectedIndex=t[0])}else{var n=this.root.querySelectorAll(a.P$.ARIA_ROLE_CHECKBOX_SELECTOR),r=this.root.querySelector(a.P$.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var o=this.root.querySelectorAll(a.P$.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(o,function(t){return e.listElements.indexOf(t)})}else r&&(this.selectedIndex=this.listElements.indexOf(r))}},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClassForElementIndex:function(t,n){var r=e.listElements[t];r&&r.classList.add(e.classNameMap[n])},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(a.P$.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(a.P$.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(a.P$.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(e.classNameMap[n])},notifyAction:function(t){e.emit(a.P$.ACTION_EVENT,{index:t},!0)},notifySelectionChange:function(t){e.emit(a.P$.SELECTION_CHANGE_EVENT,{changedIndices:t},!0)},removeClassForElementIndex:function(t,n){var r=e.listElements[t];r&&r.classList.remove(e.classNameMap[n])},setAttributeForElementIndex:function(t,n,r){var o=e.listElements[t];o&&o.setAttribute(n,r)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var r=e.listElements[t].querySelector(a.P$.CHECKBOX_RADIO_SELECTOR);r.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),r.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var r=e.listElements[t],o=a.P$.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(r.querySelectorAll(o),function(e){e.setAttribute("tabindex",n)})}};return new s.Y(t)},t.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex();-1!==e&&(this.listElements[e].tabIndex=0)}},t.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==a.nL.UNSET_INDEX)return this.selectedIndex;var e=this.root.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+":not(."+this.classNameMap[a.Y7.LIST_ITEM_DISABLED_CLASS]+")");return null===e?-1:this.getListItemIndex(e)},t.prototype.getListItemIndex=function(e){var t=(0,i.kp)(e,"."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+", ."+this.classNameMap[a.Y7.ROOT]);return t&&(0,i.cK)(t,"."+this.classNameMap[a.Y7.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(t)},t.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(t)},t.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(this.classNameMap[a.Y7.LIST_ITEM_CLASS]),t)},t.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target,r=!(0,i.cK)(n,a.P$.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,r,e)},t}(o.O)},function(e,t,n){n.d(t,{X:function(){return l}});var r=n(2),o=n(5),i=n(50),a=n(54),s=n(62),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(i.Y7.ANCHOR)?t:null,this.root.classList.contains(i.Y7.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(i.P$.OPENED_EVENT,this.registerBodyClickListener),this.listen(i.P$.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(i.P$.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(i.P$.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!1,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(i.Y7.FIXED):this.root.classList.remove(i.Y7.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(a.O.strings.CLOSED_EVENT,{})},notifyClosing:function(){e.emit(a.O.strings.CLOSING_EVENT,{})},notifyOpen:function(){return e.emit(a.O.strings.OPENED_EVENT,{})},notifyOpening:function(){return e.emit(a.O.strings.OPENING_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n=(0,s.getCorrectPropertyName)(window,"transform")+"-origin";e.root.style.setProperty(n,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}};return new a.O(t)},t}(o.O)},function(e,t,n){n.d(t,{C:function(){return p}});var r=n(2),o=n(5),i=n(22),a=n(91),s=n(51),l=n(74),u=n(92),c=n(54),d=n(55),f=n(94),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new u.X(e)}),void 0===t&&(t=function(e){return new a.f(e)}),this.menuSurfaceFactory=e,this.listFactory=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface=this.menuSurfaceFactory(this.root);var t=this.root.querySelector(d.P$.LIST_SELECTOR);t?(this.list=this.listFactory(t),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleItemAction=function(t){e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened=function(){e.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(c.O.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen(l.Y.strings.ACTION_EVENT,this.handleItemAction)},t.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(c.O.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten(l.Y.strings.ACTION_EVENT,this.handleItemAction),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(e){e?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(e){this.list&&(this.list.wrapFocus=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list&&(this.list.hasTypeahead=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list?this.list.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list&&(this.list.singleSelection=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:s.nL.UNSET_INDEX},set:function(e){this.list&&(this.list.selectedIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface.quickOpen=e},enumerable:!1,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list&&this.list.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this,t={addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,r){e.items[t].setAttribute(n,r)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},getAttributeFromElementAtIndex:function(t,n){return e.items[t].getAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){e.menuSurface.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){e.emit(d.P$.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){e.items[t].focus()},focusListRoot:function(){e.root.querySelector(d.P$.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!(0,i.kp)(e.items[t],"."+d.Y7.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=(0,i.kp)(e.items[t],"."+d.Y7.MENU_SELECTION_GROUP).querySelector("."+d.Y7.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}};return new f.d(t)},t}(o.O)},function(e,t,n){n.d(t,{d:function(){return l}});var r=n(2),o=n(4),i=n(51),a=n(54),s=n(55),l=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.closeAnimationEndTimerId=0,o.defaultFocusState=s.hf.LIST_ROOT,o.selectedIndex=-1,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);if(!(n<0)){this.adapter.notifySelected({index:n});var r="true"===this.adapter.getAttributeFromElementAtIndex(n,s.P$.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(r),this.closeAnimationEndTimerId=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},a.O.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case s.hf.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case s.hf.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case s.hf.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,s.P$.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,s.Y7.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,s.Y7.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,i.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,i.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},t}(o.I)},function(e,t,n){n.d(t,{_:function(){return r},l5:function(){return E}});
444
+ var r={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},function(e,t,n){n.d(t,{z:function(){return a}});var r=n(2),o=n(4),i=n(76),a=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return i.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return i.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return i.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=i.nL.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(o.I)},function(e,t,n){n.d(t,{f:function(){return l}});var r=n(2),o=n(5),i=n(22),a=n(53),s=n(77),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledItemsFocusable",{set:function(e){this.foundation.setDisabledItemsFocusable(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=a.iP in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=a.$z:(0,i.cK)(this.root,a.P$.DEPRECATED_SELECTOR)?this.classNameMap=a.PY:this.classNameMap=Object.values(a.Y7).reduce(function(e,t){return e[t]=t,e},{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},t.prototype.layout=function(){var e=this.root.getAttribute(a.P$.ARIA_ORIENTATION);this.vertical=e!==a.P$.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+":not([tabindex])",n=a.P$.FOCUSABLE_CHILD_ELEMENTS,r=this.root.querySelectorAll(t);r.length&&Array.prototype.forEach.call(r,function(e){e.setAttribute("tabindex","-1")});var o=this.root.querySelectorAll(n);o.length&&Array.prototype.forEach.call(o,function(e){e.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t,n=e.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(t=null==n?void 0:n.textContent)&&void 0!==t?t:"";var r=e.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_TEXT_CLASS]);return r&&r.textContent||""},t.prototype.initializeListType=function(){var e=this;if(this.isInteractive=(0,i.cK)(this.root,a.P$.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(a.P$.SELECTED_ITEM_SELECTOR),function(t){return e.listElements.indexOf(t)});(0,i.cK)(this.root,a.P$.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:t.length>0&&(this.selectedIndex=t[0])}else{var n=this.root.querySelectorAll(a.P$.ARIA_ROLE_CHECKBOX_SELECTOR),r=this.root.querySelector(a.P$.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var o=this.root.querySelectorAll(a.P$.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(o,function(t){return e.listElements.indexOf(t)})}else r&&(this.selectedIndex=this.listElements.indexOf(r))}},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClassForElementIndex:function(t,n){var r=e.listElements[t];r&&r.classList.add(e.classNameMap[n])},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(a.P$.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(a.P$.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(a.P$.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(e.classNameMap[n])},notifyAction:function(t){e.emit(a.P$.ACTION_EVENT,{index:t},!0)},notifySelectionChange:function(t){e.emit(a.P$.SELECTION_CHANGE_EVENT,{changedIndices:t},!0)},removeClassForElementIndex:function(t,n){var r=e.listElements[t];r&&r.classList.remove(e.classNameMap[n])},setAttributeForElementIndex:function(t,n,r){var o=e.listElements[t];o&&o.setAttribute(n,r)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var r=e.listElements[t].querySelector(a.P$.CHECKBOX_RADIO_SELECTOR);r.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),r.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var r=e.listElements[t],o=a.P$.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(r.querySelectorAll(o),function(e){e.setAttribute("tabindex",n)})}};return new s.Y(t)},t.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex();-1!==e&&(this.listElements[e].tabIndex=0)}},t.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==a.nL.UNSET_INDEX)return this.selectedIndex;var e=this.root.querySelector("."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+":not(."+this.classNameMap[a.Y7.LIST_ITEM_DISABLED_CLASS]+")");return null===e?-1:this.getListItemIndex(e)},t.prototype.getListItemIndex=function(e){var t=(0,i.kp)(e,"."+this.classNameMap[a.Y7.LIST_ITEM_CLASS]+", ."+this.classNameMap[a.Y7.ROOT]);return t&&(0,i.cK)(t,"."+this.classNameMap[a.Y7.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(t)},t.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(t)},t.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(this.classNameMap[a.Y7.LIST_ITEM_CLASS]),t)},t.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target,r=!(0,i.cK)(n,a.P$.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,r,e)},t}(o.O)},function(e,t,n){n.d(t,{X:function(){return l}});var r=n(2),o=n(5),i=n(52),a=n(57),s=n(65),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(i.Y7.ANCHOR)?t:null,this.root.classList.contains(i.Y7.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(i.P$.OPENED_EVENT,this.registerBodyClickListener),this.listen(i.P$.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(i.P$.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(i.P$.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!1,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(i.Y7.FIXED):this.root.classList.remove(i.Y7.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(a.O.strings.CLOSED_EVENT,{})},notifyClosing:function(){e.emit(a.O.strings.CLOSING_EVENT,{})},notifyOpen:function(){return e.emit(a.O.strings.OPENED_EVENT,{})},notifyOpening:function(){return e.emit(a.O.strings.OPENING_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n=(0,s.getCorrectPropertyName)(window,"transform")+"-origin";e.root.style.setProperty(n,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}};return new a.O(t)},t}(o.O)},function(e,t,n){n.d(t,{C:function(){return p}});var r=n(2),o=n(5),i=n(22),a=n(103),s=n(53),l=n(77),u=n(104),c=n(57),d=n(58),f=n(106),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new u.X(e)}),void 0===t&&(t=function(e){return new a.f(e)}),this.menuSurfaceFactory=e,this.listFactory=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface=this.menuSurfaceFactory(this.root);var t=this.root.querySelector(d.P$.LIST_SELECTOR);t?(this.list=this.listFactory(t),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleItemAction=function(t){e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened=function(){e.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(c.O.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen(l.Y.strings.ACTION_EVENT,this.handleItemAction)},t.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(c.O.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten(l.Y.strings.ACTION_EVENT,this.handleItemAction),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(e){e?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(e){this.list&&(this.list.wrapFocus=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list&&(this.list.hasTypeahead=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list?this.list.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list&&(this.list.singleSelection=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:s.nL.UNSET_INDEX},set:function(e){this.list&&(this.list.selectedIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface.quickOpen=e},enumerable:!1,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list&&this.list.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this,t={addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,r){e.items[t].setAttribute(n,r)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},getAttributeFromElementAtIndex:function(t,n){return e.items[t].getAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){e.menuSurface.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){e.emit(d.P$.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){e.items[t].focus()},focusListRoot:function(){e.root.querySelector(d.P$.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!(0,i.kp)(e.items[t],"."+d.Y7.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=(0,i.kp)(e.items[t],"."+d.Y7.MENU_SELECTION_GROUP).querySelector("."+d.Y7.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}};return new f.d(t)},t}(o.O)},function(e,t,n){n.d(t,{d:function(){return l}});var r=n(2),o=n(4),i=n(53),a=n(57),s=n(58),l=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.closeAnimationEndTimerId=0,o.defaultFocusState=s.hf.LIST_ROOT,o.selectedIndex=-1,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s.Y7},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s.P$},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s.nL},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);if(!(n<0)){this.adapter.notifySelected({index:n});var r="true"===this.adapter.getAttributeFromElementAtIndex(n,s.P$.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(r),this.closeAnimationEndTimerId=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},a.O.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case s.hf.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case s.hf.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case s.hf.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,s.P$.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,s.Y7.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,s.Y7.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,i.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,i.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.P$.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},t}(o.I)},function(e,t,n){n.d(t,{_:function(){return r},l5:function(){return E}});
445
445
  /**
446
446
  * @license
447
447
  * Copyright 2020 Google Inc.
@@ -464,7 +464,7 @@ var r={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"md
464
464
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
465
465
  * THE SOFTWARE.
466
466
  */
467
- var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},o=new Set;o.add(r.BACKSPACE),o.add(r.ENTER),o.add(r.SPACEBAR),o.add(r.PAGE_UP),o.add(r.PAGE_DOWN),o.add(r.END),o.add(r.HOME),o.add(r.ARROW_LEFT),o.add(r.ARROW_UP),o.add(r.ARROW_RIGHT),o.add(r.ARROW_DOWN),o.add(r.DELETE),o.add(r.ESCAPE),o.add(r.TAB);var i=8,a=13,s=32,l=33,u=34,c=35,d=36,f=37,p=38,h=39,m=40,_=46,v=27,g=9,y=new Map;y.set(i,r.BACKSPACE),y.set(a,r.ENTER),y.set(s,r.SPACEBAR),y.set(l,r.PAGE_UP),y.set(u,r.PAGE_DOWN),y.set(c,r.END),y.set(d,r.HOME),y.set(f,r.ARROW_LEFT),y.set(p,r.ARROW_UP),y.set(h,r.ARROW_RIGHT),y.set(m,r.ARROW_DOWN),y.set(_,r.DELETE),y.set(v,r.ESCAPE),y.set(g,r.TAB);var b=new Set;function E(e){var t=e.key;if(o.has(t))return t;var n=y.get(e.keyCode);return n||r.UNKNOWN}b.add(r.PAGE_UP),b.add(r.PAGE_DOWN),b.add(r.END),b.add(r.HOME),b.add(r.ARROW_LEFT),b.add(r.ARROW_UP),b.add(r.ARROW_RIGHT),b.add(r.ARROW_DOWN)},function(e,t,n){n.d(t,{K:function(){return r}});
467
+ var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},o=new Set;o.add(r.BACKSPACE),o.add(r.ENTER),o.add(r.SPACEBAR),o.add(r.PAGE_UP),o.add(r.PAGE_DOWN),o.add(r.END),o.add(r.HOME),o.add(r.ARROW_LEFT),o.add(r.ARROW_UP),o.add(r.ARROW_RIGHT),o.add(r.ARROW_DOWN),o.add(r.DELETE),o.add(r.ESCAPE),o.add(r.TAB);var i=8,a=13,s=32,l=33,u=34,c=35,d=36,f=37,p=38,h=39,m=40,v=46,y=27,g=9,_=new Map;_.set(i,r.BACKSPACE),_.set(a,r.ENTER),_.set(s,r.SPACEBAR),_.set(l,r.PAGE_UP),_.set(u,r.PAGE_DOWN),_.set(c,r.END),_.set(d,r.HOME),_.set(f,r.ARROW_LEFT),_.set(p,r.ARROW_UP),_.set(h,r.ARROW_RIGHT),_.set(m,r.ARROW_DOWN),_.set(v,r.DELETE),_.set(y,r.ESCAPE),_.set(g,r.TAB);var b=new Set;function E(e){var t=e.key;if(o.has(t))return t;var n=_.get(e.keyCode);return n||r.UNKNOWN}b.add(r.PAGE_UP),b.add(r.PAGE_DOWN),b.add(r.END),b.add(r.HOME),b.add(r.ARROW_LEFT),b.add(r.ARROW_UP),b.add(r.ARROW_RIGHT),b.add(r.ARROW_DOWN)},function(e,t,n){n.d(t,{K:function(){return r}});
468
468
  /**
469
469
  * @license
470
470
  * Copyright 2020 Google Inc.
@@ -487,4 +487,4 @@ var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar"
487
487
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
488
488
  * THE SOFTWARE.
489
489
  */
490
- var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame(function(r){n.rafIDs.delete(e),t(r)});this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach(function(t,n){e.cancel(n)})},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach(function(t,n){e.push(n)}),e},e}()},function(e,t,n){n.r(t),n.d(t,{MDCCircularProgress:function(){return u},MDCCircularProgressFoundation:function(){return l},cssClasses:function(){return a},strings:function(){return s}});var r=n(2),o=n(5),i=n(4),a={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},s={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},l=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},getDeterminateCircleAttribute:function(){return null},hasClass:function(){return!1},removeClass:function(){},removeAttribute:function(){},setAttribute:function(){},setDeterminateCircleAttribute:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.closed=this.adapter.hasClass(a.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(a.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(s.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(s.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(a.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(a.INDETERMINATE_CLASS),this.adapter.removeAttribute(s.ARIA_VALUENOW))},t.prototype.isDeterminate=function(){return this.determinate},t.prototype.setProgress=function(e){if(this.progress=e,this.determinate){var t=(1-this.progress)*(2*Math.PI*this.radius);this.adapter.setDeterminateCircleAttribute(s.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(s.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(a.CLOSED_CLASS),this.adapter.removeAttribute(s.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(a.CLOSED_CLASS),this.adapter.setAttribute(s.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(i.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(l.strings.DETERMINATE_CIRCLE_SELECTOR)},t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClosed",{get:function(){return this.foundation.isClosed()},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(){this.foundation.close()},t.prototype.getDefaultFoundation=function(){var e=this;return new l({addClass:function(t){e.root.classList.add(t)},getDeterminateCircleAttribute:function(t){return e.determinateCircle.getAttribute(t)},hasClass:function(t){return e.root.classList.contains(t)},removeClass:function(t){e.root.classList.remove(t)},removeAttribute:function(t){e.root.removeAttribute(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},setDeterminateCircleAttribute:function(t,n){e.determinateCircle.setAttribute(t,n)}})},t}(o.O)},function(e,t,n){n.r(t),n.d(t,{MDCRipple:function(){return o.N},MDCRippleFoundation:function(){return a.E},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$},util:function(){return r}});var r=n(52),o=n(27),i=n(63),a=n(25)},function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.r(t),n.d(t,{CSSTransition:function(){return f},ReplaceTransition:function(){return A},SwitchTransition:function(){return L},Transition:function(){return l.default},TransitionGroup:function(){return b},config:function(){return N.A}});var o=n(78),i=n(79);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),l=n(77),u=n(81),c=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=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r})},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.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&&(0,u.F)(e),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))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&c(e,r),o&&c(e,o),i&&c(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.A)(e,["classNames"]));return s.createElement(l.default,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d,p=n(7);var h=n(80);function m(e,t){var n=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)}),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,s.isValidElement)(a)){var l=i in t,u=i in r,c=t[i],d=(0,s.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,s.isValidElement)(c)&&(o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:_(a,"exit",e),enter:_(a,"enter",e)})):o[i]=(0,s.cloneElement)(a,{in:!1}):o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:_(a,"exit",e),enter:_(a,"enter",e)})}}),o}var g=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},y=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,m(n.children,function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})})):v(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=m(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=r({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.A)(e,["component","childFactory"]),i=this.state.contextValue,a=g(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s.createElement(h.A.Provider,{value:i},a):s.createElement(h.A.Provider,{value:i},s.createElement(t,r,a))},t}(s.Component);y.propTypes={},y.defaultProps={component:"div",childFactory:function(e){return e}};var b=y,E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,i.A)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=s.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:p.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,o.A)(e,["children","in"]),i=s.Children.toArray(t),a=i[0],l=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,s.createElement(b,r,n?s.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s.Component);E.propTypes={};var C,x,A=E;var I="out-in",O="in-out",T=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},S=((C={})[I]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:T(t,"onExited",function(){n(l.ENTERING,null)})})},C[O]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s.cloneElement(r,{in:!0,onEntered:T(r,"onEntered",function(){n(l.ENTERING)})})]},C),w=((x={})[I]=function(e){var t=e.children,n=e.changeState;return s.cloneElement(t,{in:!0,onEntered:T(t,"onEntered",function(){n(l.ENTERED,s.cloneElement(t,{in:!0}))})})},x[O]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s.cloneElement(t,{in:!1,onExited:T(t,"onExited",function(){r(l.ENTERED,s.cloneElement(n,{in:!0}))})}),s.cloneElement(n,{in:!0})]},x),P=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:l.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===l.ENTERING&&e.mode===O?{status:l.ENTERING}:!t.current||(n=t.current,r=e.children,n===r||s.isValidElement(n)&&s.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:s.cloneElement(e.children,{in:!0})}:{status:l.EXITING};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,u={children:n,current:a,changeState:this.changeState,status:i};switch(i){case l.ENTERING:e=w[r](u);break;case l.EXITING:e=S[r](u);break;case l.ENTERED:e=a}return s.createElement(h.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.Component);P.propTypes={},P.defaultProps={mode:I};var L=P,N=n(100)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return d},MDCIconButtonToggleFoundation:function(){return u},cssClasses:function(){return s},strings:function(){return l}});var r=n(2),o=n(5),i=n(27),a=n(4),s={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},l={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},u=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.hasToggledAriaLabel=!1,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(l.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(l.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(l.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(l.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(s.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(s.ICON_BUTTON_ON):this.adapter.removeClass(s.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(l.DATA_ARIA_LABEL_ON):this.adapter.getAttr(l.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(l.ARIA_LABEL,t||"")}else this.adapter.setAttr(l.ARIA_PRESSED,""+e)},t}(a.I),c=u.strings,d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new u({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(c.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!1,configurable:!0}),t.prototype.createRipple=function(){var e=new i.N(this.root);return e.unbounded=!0,e},t}(o.O)},function(e,t,n){n.r(t),n.d(t,{MDCList:function(){return r.f},MDCListFoundation:function(){return i.Y},cssClasses:function(){return o.Y7},deprecatedClassNameMap:function(){return o.PY},evolutionAttribute:function(){return o.iP},evolutionClassNameMap:function(){return o.$z},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(91),o=n(51),i=n(74)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return o.OK},CornerBit:function(){return o.Jv},MDCMenuSurface:function(){return r.X},MDCMenuSurfaceFoundation:function(){return i.O},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(92),o=n(50),i=n(54)},function(e,t,n){n.r(t),n.d(t,{AnimationFrame:function(){return o.K},getCorrectEventName:function(){return r.getCorrectEventName},getCorrectPropertyName:function(){return r.getCorrectPropertyName},util:function(){return r}});var r=n(62),o=n(96)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return r.OK},DefaultFocusState:function(){return i.hf},MDCMenu:function(){return o.C},MDCMenuFoundation:function(){return a.d},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(50),o=n(93),i=n(55),a=n(94)},function(e,t,n){n.r(t),n.d(t,{MDCFloatingLabel:function(){return r.$},MDCFloatingLabelFoundation:function(){return i.K},cssClasses:function(){return o.Y}});var r=n(69),o=n(87),i=n(70)},function(e,t,n){n.r(t),n.d(t,{MDCLineRipple:function(){return r.l},MDCLineRippleFoundation:function(){return i.C},cssClasses:function(){return o.Y}});var r=n(71),o=n(89),i=n(88)},function(e,t,n){n.r(t),n.d(t,{MDCNotchedOutline:function(){return r.i},MDCNotchedOutlineFoundation:function(){return i.z},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(72),o=n(73),i=n(90)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return T},MDCSelectFoundation:function(){return g},MDCSelectHelperText:function(){return C},MDCSelectHelperTextFoundation:function(){return E},MDCSelectIcon:function(){return O},MDCSelectIconFoundation:function(){return I},cssClasses:function(){return p},helperTextCssClasses:function(){return b},helperTextStrings:function(){return y},iconStrings:function(){return x},numbers:function(){return m},strings:function(){return h}});var r=n(2),o=n(5),i=n(69),a=n(71),s=n(50),l=n(93),u=n(55),c=n(72),d=n(27),f=n(25),p={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},h={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},m={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},_=n(4),v=n(95),g=function(e){function t(n,o){void 0===o&&(o={});var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.disabled=!1,i.isMenuOpen=!1,i.useDefaultValidation=!0,i.customValidity=!0,i.lastSelectedIndex=m.UNSET_INDEX,i.clickDebounceTimeout=0,i.recentlyClicked=!1,i.leadingIcon=o.leadingIcon,i.helperText=o.helperText,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===m.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==m.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(p.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(p.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(p.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(p.FOCUSED),n=e||t,r=this.adapter.hasClass(p.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(p.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(p.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(p.FOCUSED)){var t=(0,v.l5)(e)===v._.ENTER,n=(0,v.l5)(e)===v._.SPACEBAR,r=(0,v.l5)(e)===v._.ARROW_UP,o=(0,v.l5)(e)===v._.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress())){var i=n?" ":e.key,a=this.adapter.typeaheadMatchItem(i,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||r||o)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(p.FOCUSED);if(e){var n=m.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(p.INVALID),this.adapter.removeMenuClass(p.MENU_INVALID)):(this.adapter.addClass(p.INVALID),this.adapter.addMenuClass(p.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(p.REQUIRED)&&!this.adapter.hasClass(p.DISABLED)?this.getSelectedIndex()!==m.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(p.REQUIRED):this.adapter.removeClass(p.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(s.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(p.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(p.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(p.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(h.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(h.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},m.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(_.I),y={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},b={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},E=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(y.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(y.ROLE):this.adapter.setAttr(y.ROLE,"alert"));this.adapter.removeAttr(y.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(y.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(y.ARIA_HIDDEN,"true")},t}(_.I),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new E({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(o.O),x={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},A=["click","keydown"],I=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.savedTabIndex=null,o.interactionHandler=function(e){o.handleInteraction(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(A),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(A),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",x.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(_.I),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new I({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(I.strings.ICON_EVENT,{},!0)}})},t}(o.O),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,s){if(void 0===e&&(e=function(e){return new i.$(e)}),void 0===t&&(t=function(e){return new a.l(e)}),void 0===n&&(n=function(e){return new c.i(e)}),void 0===r&&(r=function(e){return new l.C(e)}),void 0===o&&(o=function(e){return new O(e)}),void 0===s&&(s=function(e){return new C(e)}),this.selectAnchor=this.root.querySelector(h.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(h.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(h.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+h.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(h.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(h.ARIA_CONTROLS));u&&(this.helperText=s(u))}this.menuSetup(r);var d=this.root.querySelector(h.LABEL_SELECTOR);this.label=d?e(d):null;var f=this.root.querySelector(h.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var m=this.root.querySelector(h.OUTLINE_SELECTOR);this.outline=m?n(m):null;var _=this.root.querySelector(h.LEADING_ICON_SELECTOR);_&&(this.leadingIcon=o(_)),this.root.classList.contains(p.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.handleMenuClosing=function(){e.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(s.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(s.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(s.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(s.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(s.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){void 0===t&&(t=!1),this.foundation.setValue(e,t)},Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!1,configurable:!0}),t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t=!1),this.foundation.setSelectedIndex(e,!0,t)},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!1,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(h.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new g(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(h.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(h.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},d.N.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new d.N(this.selectAnchor,new f.E(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(h.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){e.hiddenInput&&(e.hiddenInput.value=t);var n=e.selectedIndex;e.emit(h.CHANGE_EVENT,{value:t,index:n},!0)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return Boolean(e.touches)},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(o.O)},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(23),i=n(111),a=n(82),s=n(3),l=s.createComponent(function(e,t){const{outlined:n,...o}=e,i=s.useClassNames(e,["mdc-card",{"mdc-card--outlined":n}]);return r.jsx(s.Tag,{...o,ref:t,className:i})}),u=s.createComponent(function(e,t){const{square:n,sixteenByNine:o,...i}=e,a=s.useClassNames(e,["mdc-card__media",{"mdc-card__media--square":n,"mdc-card__media--16-9":o}]);return r.jsx(s.Tag,{tag:"section",...i,ref:t,className:a})}),c=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__media-content"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),d=o.withRipple({surface:!1})(s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__primary-action"]),{children:o,...i}=e;return r.jsxs(s.Tag,{...i,ref:t,className:n,children:[o,r.jsx("div",{className:"mdc-card__ripple"})]})})),f=s.createComponent(function(e,t){const{fullBleed:n,...o}=e,i=s.useClassNames(e,["mdc-card__actions",{"mdc-card__actions--full-bleed":n}]);return r.jsx(s.Tag,{tag:"div",...o,ref:t,className:i})}),p=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action-buttons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),h=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),m=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action","mdc-card__action--icon","mdc-icon-button--display-flex"]);return r.jsx(a.IconButton,{...e,ref:t,className:n})}),_=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action","mdc-card__action--button"]);return r.jsx(i.Button,{...e,ref:t,className:n})});t.Card=l,t.CardActionButton=_,t.CardActionButtons=p,t.CardActionIcon=m,t.CardActionIcons=h,t.CardActions=f,t.CardMedia=u,t.CardMediaContent=c,t.CardPrimaryAction=d},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(23),a=n(24),s=n(112),l=n(3),u=i.withRipple({surface:!1})(l.createComponent(function(e,t){const{dense:n,raised:o,unelevated:i,outlined:a,danger:u,icon:h,label:m,trailingIcon:_,children:v,touch:g,...y}=e,b=s.useIsWrappedTouchTarget(g),E=l.useClassNames(e,["mdc-button",{"mdc-button--dense":n,"mdc-button--raised":o,"mdc-button--unelevated":i,"mdc-button--outlined":a,"mdc-button--touch":b}]);if(u){const e=y.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};y.style={...t,...e}}return r.jsxs(l.Tag,{tag:"button",...y,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!h&&r.jsx(p,{icon:h}),r.jsxs("span",{className:"mdc-button__label",children:[m,v]}),!!_&&r.jsx(p,{icon:_})]})})),c=o.memo(function(){return r.jsx("div",{className:"mdc-button__touch"})}),d=o.memo(function(){return r.jsx("div",{className:"mdc-button__focus-ring"})}),f=o.memo(function(){return r.jsx("div",{className:"mdc-button__ripple"})}),p=l.createMemoComponent(function(e,t){const n=l.useClassNames(e,["mdc-button__icon"]);return r.jsx(a.Icon,{...e,className:n,ref:t})});t.Button=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(23),a=n(3),s=o.createContext(!1),l=i.withRipple({surface:!1})(a.createComponent(function(e,t){const{children:n,...o}=e,i=a.useClassNames(e,["mdc-touch-target-wrapper"]);return r.jsx(a.Tag,{tag:"div",...o,ref:t,className:i,children:r.jsx(s.Provider,{value:!0,children:n})})}));t.TouchTargetWrapper=l,t.useIsWrappedTouchTarget=e=>o.useContext(s)||e||!1},function(e){e.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&o)+t[1]-389564586|0)<<12|i>>>20)+n|0)&n|~i&r)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&n)+t[3]-1044525330|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&o)+t[5]+1200080426|0)<<12|i>>>20)+n|0)&n|~i&r)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&n)+t[7]-45705983|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&o)+t[9]-1958414417|0)<<12|i>>>20)+n|0)&n|~i&r)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&n)+t[11]-1990404162|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&o)+t[13]-40341101|0)<<12|i>>>20)+n|0)&n|~i&r)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&n)+t[15]+1236535329|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[1]-165796510|0)<<5|n>>>27)+r|0)&o|r&~o)+t[6]-1069501632|0)<<9|i>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|o>>>18)+i|0)&n|i&~n)+t[0]-373897302|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[5]-701558691|0)<<5|n>>>27)+r|0)&o|r&~o)+t[10]+38016083|0)<<9|i>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|o>>>18)+i|0)&n|i&~n)+t[4]-405537848|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[9]+568446438|0)<<5|n>>>27)+r|0)&o|r&~o)+t[14]-1019803690|0)<<9|i>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|o>>>18)+i|0)&n|i&~n)+t[8]+1163531501|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&o|r&~o)+t[2]-51403784|0)<<9|i>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&n|i&~n)+t[12]-1926607734|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^o)+t[8]-2022574463|0)<<11|i>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^n)+t[14]-35309556|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^o)+t[4]+1272893353|0)<<11|i>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^n)+t[10]-1094730640|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^o)+t[0]-358537222|0)<<11|i>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^n)+t[6]+76029189|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^o)+t[12]-421815835|0)<<11|i>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^n)+t[2]-995338651|0)<<23|r>>>9)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+o|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function o(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function i(e){var t,o,i,a,s,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,r(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(c,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(c,i),c}function a(e){var t,r,i,a,s,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,o(e.subarray(t-64,t)));for(r=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(c,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(c,i),c}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e,t){var n,r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o);for(n=0;n<r;n+=1)i[n]=e.charCodeAt(n);return t?i:o}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return l(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,i,a,s,l=this.byteLength,u=t(n,l),c=l;return r!==e&&(c=t(r,l)),u>c?new ArrayBuffer(0):(o=c-u,i=new ArrayBuffer(o),a=new Uint8Array(i),s=new Uint8Array(this,u,o),a.set(s),i)}}(),h.prototype.append=function(e){return this.appendBinary(u(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=p(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,o,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=o,e[15]=i,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(u(e),t)},h.hashBinary=function(e,t){var n=l(i(e));return t?p(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),i=r.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)n(this._hash,o(r.subarray(t-64,t)));return this._buff=t-64<i?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r[t]<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=p(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=d(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=l(a(new Uint8Array(e)));return t?p(n):n},h}()},,,,,,,,function(e,t,n){function r(e,t){return new Promise(function(n,r){var o=new Image;t&&(o.crossOrigin=t),o.onload=function(){n(o)},o.onerror=r,o.src=e})}function o(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,e.width,e.height),t}function i(e,t){e=e||[],"string"==typeof(t=t||{})&&(t={type:t});try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function a(e){return("undefined"!=typeof URL?URL:webkitURL).createObjectURL(e)}function s(e){return("undefined"!=typeof URL?URL:webkitURL).revokeObjectURL(e)}function l(e){return new Promise(function(t,n){var r=new FileReader,o="function"==typeof r.readAsBinaryString;r.onloadend=function(){var e=r.result||"";if(o)return t(e);t(y(e))},r.onerror=n,o?r.readAsBinaryString(e):r.readAsArrayBuffer(e)})}function u(e,t){var n=[b(atob(e))];return t?i(n,{type:t}):i(n)}function c(e,t){return u(btoa(e),t)}function d(e){return l(e).then(btoa)}function f(e){var t=e.match(/data:([^;]+)/)[1],n=e.replace(/^[^,]+,/,"");return i([b(atob(n))],{type:t})}function p(e){return d(e).then(function(t){return"data:"+e.type+";base64,"+t})}function h(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then(function(e){return e.toDataURL(t,i)})}function m(e,t,n){return"function"==typeof e.toBlob?new Promise(function(r){e.toBlob(r,t,n)}):Promise.resolve(f(e.toDataURL(t,n)))}function _(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then(function(e){return m(e,t,i)})}function v(e,t){return i([e],t)}function g(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e=r.result||new ArrayBuffer(0);t(e)},r.onerror=n,r.readAsArrayBuffer(e)})}function y(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=-1;++o<r;)t+=String.fromCharCode(n[o]);return t}function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=-1;++o<t;)r[o]=e.charCodeAt(o);return n}n.r(t),n.d(t,{arrayBufferToBinaryString:function(){return y},arrayBufferToBlob:function(){return v},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return b},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return g},blobToBase64String:function(){return d},blobToBinaryString:function(){return l},blobToDataURL:function(){return p},canvasToBlob:function(){return m},createBlob:function(){return i},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return _},imgSrcToDataURL:function(){return h},revokeObjectURL:function(){return s}})},,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",t;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;t=function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__23__,__WEBPACK_EXTERNAL_MODULE__24__,__WEBPACK_EXTERNAL_MODULE__25__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__56__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__37__,__WEBPACK_EXTERNAL_MODULE__57__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__38__,__WEBPACK_EXTERNAL_MODULE__39__,__WEBPACK_EXTERNAL_MODULE__40__,__WEBPACK_EXTERNAL_MODULE__41__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__58__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__14__,__WEBPACK_EXTERNAL_MODULE__15__,__WEBPACK_EXTERNAL_MODULE__16__,__WEBPACK_EXTERNAL_MODULE__17__){return function(){var __webpack_modules__=[function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__unused_webpack_exports,__nested_webpack_require_7433__){var __webpack_dirname__="/",e,t,r,n,o,i,s,a,l,p,c,u;if(module=__nested_webpack_require_7433__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__nested_webpack_require_7433__.g||null===__nested_webpack_require_7433__.g?{}:__nested_webpack_require_7433__.g;module.exports=(e=__nested_webpack_require_7433__(2),t=__nested_webpack_require_7433__(12),r=__nested_webpack_require_7433__(4),n=__nested_webpack_require_7433__(5),o=__nested_webpack_require_7433__(6),i=__nested_webpack_require_7433__(0),s=__nested_webpack_require_7433__(3),a=__nested_webpack_require_7433__(13),l=__nested_webpack_require_7433__(14),p=__nested_webpack_require_7433__(15),c=__nested_webpack_require_7433__(16),u=__nested_webpack_require_7433__(17),function(){var d=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=o},function(e,t,n){var r=n(0),o=n.n(r),i=n(1),a=n(2);t.default=function(e){return void 0===e&&(e={}),e=o()({readAttribute:!0,type:a.string},e),function(t,n){if("string"==typeof n){var r,a=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(a,"observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var s=(0,i.camelCaseToDelimited)(n);a.observedAttributes&&!a.observedAttributes.includes(s)&&a.observedAttributes.push(s)}e.type&&(Object.prototype.hasOwnProperty.call(a,"propertyTypes")||(a.propertyTypes=a.propertyTypes?o()({},a.propertyTypes):{}),!a.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(a,n)||(a.propertyTypes[n]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(a,"propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?(0,i.copy)(a.propertiesToReflectAsAttributes):[]),(e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(n)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(n)||"object"==typeof a.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(a.propertiesToReflectAsAttributes,n))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&a.propertyTypes&&Object.prototype.hasOwnProperty.call(a.propertyTypes,n)&&(r=a.propertyTypes[n]):r=e.writeAttribute,void 0!==r&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(n):a.normalizePropertyTypeList&&(a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes))),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(n,r),"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[n]=r)))),e.alias&&(Object.prototype.hasOwnProperty.call(a,"propertyAliases")||(a.propertyAliases=a.propertyAliases?o()({},a.propertyAliases):{}),!a.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(a,n)||(a.propertyAliases[n]=e.alias))}}}},function(e,t,n){n.d(t,{api:function(){return O}});var r,o,i,a,s=n(4),l=n.n(s),u=n(8),c=n.n(u),d=n(0),f=n.n(d),p=n(3),h=n.n(p),m=n(9),_=n.n(m),v=(n(10),n(5)),g=n.n(v),y=n(1),b=n(2),E=n(6);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.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)?x(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A="undefined"==typeof HTMLElement?function(){}:HTMLElement,I=(r=(0,E.default)({type:b.boolean,writeAttribute:!0}),a=function(e){function t(){var n;return(n=e.call(this)||this).batchAttributeUpdates=!0,n.batchPropertyUpdates=!0,n.batchUpdates=!0,n.batchedAttributeUpdateRunning=!0,n.batchedPropertyUpdateRunning=!0,n.batchedUpdateRunning=!0,n.parent=null,n.rootInstance=null,n.scope=f()({},y.UTILITY_SCOPE),n.domNodeEventBindings=new Map,n.domNodeTemplateCache=new Map,n.externalProperties={},n.ignoreAttributeUpdateObservations=!1,n.internalProperties={},n.outputEventNames=new Set,n.instance=null,c()(n,"isRoot",i,n),n.root=void 0,n.runDomConnectionAndRenderingInSameEventQueue=!1,n.self=t,n.slots={},n.self=n.constructor,n.self._propertiesToReflectAsAttributes||(n.self._propertiesToReflectAsAttributes=n.self.normalizePropertyTypeList(n.self.propertiesToReflectAsAttributes)),n.generateAliasIndex(),n.root=n,n.defineGetterAndSetterInterface(),n}h()(t,e);var n=t.prototype;return n.attributeChangedCallback=function(e,t,n){this.ignoreAttributeUpdateObservations||t===n||this.onUpdateAttribute(e,n)},n.onUpdateAttribute=function(e,t){var n=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)(function(){n.batchedAttributeUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("attributeChanged")})):this.render("attributeChanged")},n.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,y.timeout)(function(){e.render("connected")})},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=C(this.domNodeEventBindings.values());!(e=t()).done;)for(var n,r=C(e.value.values());!(n=r()).done;)(0,n.value)();this.slots={}},n.defineGetterAndSetterInterface=function(){for(var e,t=this,n=function(){var n=e.value;Object.prototype.hasOwnProperty.call(t,n)&&t.setPropertyValue(n,t[n]),Object.defineProperty(t,n,{configurable:!0,get:function(){return t.getPropertyValue(n)},set:function(e){t.setPropertyValue(n,e),t.triggerPropertySpecificRendering(n,e)}})},r=C((0,y.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[])));!(e=r()).done;)n()},n.getPropertyAlias=function(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},n.getPropertyValue=function(e){var n,r,o=null!=(n=this.instance)&&null!=(n=n.current)&&n.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(r=this.instance)&&null!=(r=r.current)&&r.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:o},n.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.externalProperties[n]=t)},n.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.internalProperties[n]=t)},n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=t,n)),this.setInternalPropertyValue(e,t)},n.triggerPropertySpecificRendering=function(e,t){var n=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)(function(){void 0!==t&&n.isStateProperty(e)?(n.render("preStatePropertyChanged"),(0,y.timeout)(function(){n.setInternalPropertyValue(e,void 0),n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("postStatePropertyChanged"),n.triggerOutputEvents()})):(n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("propertyChanged"),n.triggerOutputEvents())}));else{var r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},n.applyBinding=function(e,t){var n=this;if(e.getAttributeNames)for(var r,o=function(){var o=r.value,i="";if(o.startsWith("data-bind-")?i=o.substring(10):o.startsWith("bind-")&&(i=o.substring(5)),i){var a=e.getAttribute(o);if(null===a)return 0;if(i.startsWith("attribute-")||i.startsWith("property-")){var s=(0,y.evaluate)(a,t,!1,!0,e);if(s.error)return console.warn('Error occurred during processing given attribute binding "'+o+'" on node:',e,s.error),0;i.startsWith("attribute-")?e.setAttribute(i.substring(10),s.result):e[(0,y.delimitedToCamelCase)(i.substring(9))]=s.result}else if(i.startsWith("on-")){n.domNodeEventBindings.has(e)||n.domNodeEventBindings.set(e,new Map);var l=n.domNodeEventBindings.get(e);if(i=(0,y.delimitedToCamelCase)(i.substring(3)),null!=l&&l.has(i)){var u=l.get(i);u&&u()}t=f()({console:console,event:void 0,parameters:void 0},t);var c=(0,y.compile)(a,t,!0,!0,e);if(c.error)console.warn('Error occurred during compiling given event binding "'+o+'" on node:',e,c.error);else{var d=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.event=r[0],t.parameters=r;try{c.templateFunction.apply(c,c.originalScopeNames.map(function(e){return t[e]}))}catch(t){console.warn('Error occurred during processing given event binding "'+o+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+c.scopeNames.join('", "')+'": '+(0,y.represent)(t))}};e.addEventListener(i,d),null==l||l.set(i,function(){e.removeEventListener(i,d),l.delete(i),0===l.size&&n.domNodeEventBindings.delete(e)})}}}},i=C(e.getAttributeNames());!(r=i()).done;)o()},n.applyBindings=function(e,t,n){for(void 0===n&&(n=!0);e;){var r;null==(r=e.attributes)||!r.length||!n&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},n.compileDomNodeTemplate=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={}),n=f()({ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},n);var r=e.nodeName.toLowerCase();if(n.ignoreComponents&&r.includes("-"))return null;if(n.unsafe){var o=e.innerHTML;if(!o&&e.template&&(o=e.template),this.self.hasCode(o)){var i=(0,y.compile)("`"+o+"`",t);return{domNode:e,children:[],error:i.error,scopeNames:i.scopeNames,template:o,templateFunction:i.templateFunction}}return null}var a=null;if("#text"===r){var s=e.textContent;s&&this.self.hasCode(s)&&(a=s.replace(/&nbsp;/g," ").trim())}var l=[],u={children:l,domNode:e};if(a){var c=(0,y.compile)("`"+a+"`",t);u.error=c.error,u.scopeNames=c.scopeNames,u.template=a,u.templateFunction=c.templateFunction}for(var d=e.firstChild;d;){if(!n.filter||n.filter(d)){var p=this.compileDomNodeTemplate(d,t,f()({},n,{ignoreComponents:n.ignoreNestedComponents}));p&&l.push(p)}d=d.nextSibling}return u},n.evaluateCompiledDomNodeTemplate=function(e,t){var n=e.domNode,r=e.error,o=e.templateFunction,i=e.scopeNames;if(!o||!i)return null;if(r)return console.warn("Error occurred during compiling node content:",r),null;var a=null;try{a=o.apply(void 0,i.map(function(e){return t[e]}))}catch(r){console.warn('Error occurred when "'+this.self._name+'" is running','"'+String(o)+'": with bound','names "'+i.join('", "')+'":','"'+r+'". Rendering node:',n)}return a},n.evaluateDomNodeTemplate=function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n={});var o=(n=f()({domNodeTemplateCache:this.domNodeTemplateCache,ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},n)).domNodeTemplateCache;if(!o.has(e)){var i={filter:n.filter,ignoreComponents:n.ignoreComponents,ignoreNestedComponents:n.ignoreNestedComponents,unsafe:n.unsafe},a=this.compileDomNodeTemplate(e,t,i);a&&o.set(e,a)}if(o.has(e)){var s=o.get(e),l=this.evaluateCompiledDomNodeTemplate(s,t);if(null!==l&&(n.unsafe&&e.innerHTML?e.innerHTML=l:e.textContent=l),s.children.length){var u=function(e){for(var n,o=C(e);!(n=o()).done;){var i=n.value,a=r.evaluateCompiledDomNodeTemplate(i,t);null!==a&&(i.domNode.textContent=a),i.children.length&&u(i.children)}};u(s.children)}}n.applyBindings&&this.applyBindings(e,t)},t.replaceDomNodes=function(e,n){for(var r,o=C([].concat(n).reverse());!(r=o()).done;){var i,a=r.value;t.trimSlots&&a.nodeType===Node.TEXT_NODE&&""===(null==(i=a.nodeValue)?void 0:i.trim())||e.after(a)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,n=[];e.firstChild;)n.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),n},n.determineRootBinding=function(){for(var e=this.parentNode;e;)(e instanceof t||e.nodeName.includes("-")||null===e.parentNode&&"[object ShadowRoot]"===e.toString())&&(this.rootInstance===this?(this.parent=e,this.rootInstance=e,this.setPropertyValue("isRoot",!1)):this.rootInstance=e),e=e.parentNode},t.hasCode=function(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)},t.normalizePropertyTypeList=function(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){for(var n,r=e,o=new Map,i=C(r);!(n=i()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,a)&&o.set(a,t.propertyTypes[a])}return o}return(0,y.convertPlainObjectToMap)(e)},n.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},n.attachExplicitDefinedOutputEventHandler=function(){var e=this;if(!this.self.eventToPropertyMapping)return!1;for(var t=!1,n=function(){var n=o[r];Object.prototype.hasOwnProperty.call(e.internalProperties,n)||(t=!0,e.outputEventNames.add(n),e.setInternalPropertyValue(n,l()(g().mark(function t(){var r,o,i,a,s=arguments;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(r=s.length,o=new Array(r),i=0;i<r;i++)o[i]=s[i];return t.next=1,e.reflectEventToProperties(n,o);case 1:(a=t.sent)&&(o[0]=a),e.forwardEvent(n,o);case 2:case"end":return t.stop()}},t)}))))},r=0,o=Object.keys(this.self.eventToPropertyMapping);r<o.length;r++)n();return t},n.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var n=function(){var n=o[r],i=n[0],a=n[1];Object.prototype.hasOwnProperty.call(t.internalProperties,i)||![b.func,"function"].includes(a)||t.self.renderProperties.includes(i)||(t.outputEventNames.add(i),t.setInternalPropertyValue(i,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e&&t.reflectEventToProperties(i,r),t.forwardEvent(i,r)}))},r=0,o=Object.entries(this.self.propertyTypes);r<o.length;r++)n()},n.triggerOutputEvents=function(){for(var e,t=C(this.outputEventNames);!(e=t()).done;){var n=e.value;this.forwardEvent(n,[this.externalProperties])}},n.forwardEvent=function(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,y.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},n.applySlots=function(e,t){for(var n=this,r=0,o=Array.from(e.querySelectorAll("slot"));r<o.length;r++){var i=o[r],a=i.getAttribute("name");if(null===a||"default"===a)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var s,l=C(this.slots.default);!(s=l()).done;){var u=s.value;this.evaluateDomNodeTemplate(u,t)}this.self.replaceDomNodes(i,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(i).map(function(e){return n.grabSlotContent(e)});else this.slots[a]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[a],t),this.self.replaceDomNodes(i,this.slots[a])):this.slots[a]=this.grabSlotContent(this.self.unwrapDomNode(i).filter(function(e){return"#text"!==e.nodeName.toLowerCase()})[0])}},n.grabSlotContent=function(e){var t,n=b.node.firstElementChild?e:null;if(n&&"textarea"===(null==(t=n.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!n.firstElementChild.hasAttribute("data-no-template")||"false"===n.firstElementChild.getAttribute("data-no-template"))){var r=n.firstElementChild.value;n.classList.remove("web-component-template");var o=n.cloneNode();return n.classList.add("web-component-template"),o.innerHTML="",o.template=r,o}return this.self.cloneSlots?e.cloneNode(!0):e},n.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,n=Array.from(this.querySelectorAll("[slot]"));t<n.length;t++){for(var r,o=n[t],i=o.parentNode,a=!0;i;){if(i.nodeName.includes("-")){i===this&&(a=!1);break}i=i.parentNode}if(!a){var s=null==(r=o.getAttribute("slot"))?void 0:r.trim();this.slots[null!=s?s:o.nodeName.toLowerCase()]=this.grabSlotContent(o)}}this.slots.default?this.slots.default=[].concat(this.slots.default):this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map(function(t){return e.grabSlotContent(t)}):this.slots.default=[]},n.isStateProperty=function(e){var t;return Boolean((null==(t=this.instance)||null==(t=t.current)?void 0:t.state)&&(Object.prototype.hasOwnProperty.call(this.instance.current.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},n.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=f()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var n=t[e],r=n[0],o=n[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,o)||(this.self._propertyAliasIndex[o]=r)}}},n.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,n=Object.entries(e);t<n.length;t++){var r,o=n[t],i=o[0],a=o[1];if(this.setExternalPropertyValue(i,a),this.isConnected){var s=(0,y.camelCaseToDelimited)(i);if(null!=(r=this.self._propertiesToReflectAsAttributes)&&r.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case b.boolean:case"boolean":a?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case b.func:case"function":break;case"json":if(a){var l=JSON.stringify(a);if(l&&this.getAttribute(s)!==l){this.setAttribute(s,l);break}}this.hasAttribute(s)&&this.removeAttribute(s);break;case b.number:case"number":if("number"!=typeof a||isNaN(a))this.hasAttribute(s)&&this.removeAttribute(s);else{var u=String(a);this.getAttribute(s)!==u&&this.setAttribute(s,u)}break;case b.string:case"string":a?this.getAttribute(s)!==a&&this.setAttribute(s,a):this.hasAttribute(s)&&this.removeAttribute(s);break;case b.any:case b.array:case b.arrayOf:case b.element:case b.elementType:case b.instanceOf:case b.node:case b.object:case"object":case b.objectOf:case b.shape:case b.exact:case b.symbol:default:if(a){var c=(0,y.represent)(a);if(c&&this.getAttribute(s)!==c){this.setAttribute(s,c);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},n.reflectProperties=function(e){var t,n;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(t=t.current)&&t.state&&"object"==typeof this.instance.current.state)for(var r,o=C(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(this.internalProperties,i)&&this.setInternalPropertyValue(i,void 0)}null!=(n=this.internalProperties.model)&&n.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var a,s=C(this.self.controllableProperties);!(a=s()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(e,l)&&this.setInternalPropertyValue(l,e[l])}},n.reflectEventToProperties=function(){var e=l()(g().mark(function e(t,n){var r,o,i,a,s,l,u,c,d,p,h,m,_,v,b,E,x;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.batchUpdates,this.batchUpdates=!1,o=null,i=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&(0,y.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=4;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,n.concat([this])))&&"then"in s&&(0,y.isFunction)(s.then))){e.next=2;break}return e.next=1,s;case 1:x=e.sent,e.next=3;break;case 2:x=s;case 3:l=x,i=!0,Array.isArray(l)?(o=l[0],this.reflectProperties(o),(0,y.extend)(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(o=l,this.reflectProperties(l));case 4:if(!i&&n.length>0&&(0,y.isObject)(n[0])){if(c=n[0],"persist"in n[0]&&(0,y.isFunction)(n[0].persist))for(c={},d=0,p=Object.keys(this.self.propertyTypes);d<p.length;d++)for(h=p[d],m=C([h].concat(null!==(v=this.getPropertyAlias(h))&&void 0!==v?v:[]));!(_=m()).done;)b=_.value,(E=n[0].currentTarget&&Object.prototype.hasOwnProperty.call(n[0].currentTarget,b)?n[0].currentTarget[b]:this.getPropertyValue(b))!==this.externalProperties[b]&&(c[b]=E);else[null,void 0].includes(null==(u=c.detail)?void 0:u.value)||(c=f()({},c.detail));o=c,this.reflectProperties(c)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,e.abrupt("return",o);case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),n.evaluateStringOrNullAndSetAsProperty=function(e,t){var n=this,r=e.startsWith("-"),o=r?e.substring(1):e,i=(0,y.delimitedToCamelCase)(o),a=this.getPropertyAlias(i);if(a&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,a)&&(i=a),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,i)){var s=this.self.propertyTypes[i];if(r){if(t){var l=(0,y.evaluate)(t,f()({},y.UTILITY_SCOPE),!1,!0,this);l.error?(console.warn('Failed to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(i,void 0)):(this.setInternalPropertyValue(i,l.result),this.setExternalPropertyValue(i,l.result))}}else switch(s){case b.boolean:case"boolean":var u=![null,"false"].includes(t);this.setInternalPropertyValue(i,u),this.setExternalPropertyValue(i,u);break;case b.func:case"function":var c,d=null,p=["data","event","firstArgument","firstParameter","options","scope","parameters"].concat(y.UTILITY_SCOPE_NAMES);if(t){var h=(0,y.compile)(t,p);d=h.error,c=h.templateFunction,d&&console.warn('Failed to compile given handler "'+e+'": '+d+".")}this.setInternalPropertyValue(i,function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];n.outputEventNames.has(i)&&n.reflectEventToProperties(i,o);var s=void 0;if(!d)try{var l;s=null==(l=c)?void 0:l.call.apply(l,[n,o[0],o[0],o[0],o[0],o[0],o[0],o].concat(y.UTILITY_SCOPE_VALUES))}catch(n){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+p.join('", "')+'" set to "'+(0,y.represent)(o)+'": '+n+'. Set property to "undefined".')}return n.self.renderProperties.includes(i)||n.forwardEvent(i,o),s}),d||this.setExternalPropertyValue(i,c);break;case"json":if(t){var m;try{m=JSON.parse(t)}catch(d){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,y.represent)(d));break}this.setInternalPropertyValue(i,m),this.setExternalPropertyValue(i,(0,y.copy)(m,1))}else this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null);break;case b.number:case"number":if(null===t){this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break}var _=parseFloat(t);isNaN(_)&&(_=void 0),this.setInternalPropertyValue(i,_),this.setExternalPropertyValue(i,_);break;case b.string:case"string":this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break;case b.any:case b.array:case b.arrayOf:case b.element:case b.elementType:case b.instanceOf:case b.node:case b.object:case"object":case b.objectOf:case b.oneOf:case b.oneOfType:case b.shape:case b.exact:case b.symbol:default:if(t){var v=(0,y.evaluate)(t,{},!1,!0,this);if(v.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',v.error);break}this.setInternalPropertyValue(i,v.result),this.setExternalPropertyValue(i,(0,y.copy)(v.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(i,!0),this.setExternalPropertyValue(i,!0)):(this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null))}}},n.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,y.timeout)(function(){t.batchedUpdateRunning=!1,t.render(e)})):this.render(e)},n.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,y.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))},n.determineRenderScope=function(e){var t,n;void 0===e&&(e={}),this.scope=f()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((n={parent:this.parent,root:this.rootInstance,self:this})[(0,y.lowerCase)(this.self._name)||"instance"]=this,n),e),this.scope.scope=this.scope},n.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();var t=(0,y.evaluate)("`"+this.self.content+"`",this.scope);if(t.error)return console.warn("Failed to process template: "+t.error),Promise.resolve();this.applyShadowRootIfNotExisting();var n=document.createElement("div");return n.innerHTML=t.result,this.applySlots(n,f()({},this.scope,{parent:this})),this.root.innerHTML=n.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()},t}(A),a.applyRootBinding=!0,a.content="<slot>Please provide a template to transclude.</slot>",a.determineRootBinding=!0,a.shadowDOM=null,a.observedAttributes=[],a.controllableProperties=[],a.eventToPropertyMapping={},a.propertyAliases={},a.propertyTypes={onClick:b.func},a.propertiesToReflectAsAttributes=[],a.renderProperties=["children"],a.cloneSlots=!1,a.evaluateSlots=!1,a.renderSlots=!0,a.trimSlots=!0,a.renderUnsafe=!1,a._name="BaseWeb",a._propertyAliasIndex=void 0,a._propertiesToReflectAsAttributes=void 0,o=a,i=_()(o.prototype,"isRoot",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o),O={component:I,register:function(e){void 0===e&&(e=(0,y.camelCaseToDelimited)(I._name)),customElements.define(e,I)}};t.default=I},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=a},function(e){e.exports=l},function(e,t,n){n.d(t,{api:function(){return b}});var r=n(0),o=n.n(r),i=n(4),a=n.n(i),s=n(3),l=n.n(s),u=n(5),c=n.n(u),d=n(1),f=n(2),p=n(11),h=n.n(p),m=n(12),_=n(13);function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=function(e){function t(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=e.call.apply(e,[this].concat(o))||this).unmountOnDisconnect=!0,n.compiledSlots={},n.preparedSlots={},n.reactRoot=null,n.rootReactInstance=null,n.self=t,n.wrapMemorizingWrapper=null,n.isWrapped=!1,n.reflectInstanceProperties=function(){var e;null!=(e=n.instance)&&e.current&&n.instance.current.properties&&n.reflectProperties(n.instance.current.properties)},n}l()(t,e);var n=t.prototype;return n.connectedCallback=function(){this.applyComponentWrapper(),this.rootReactInstance=this,e.prototype.connectedCallback.call(this)},n.disconnectedCallback=function(){var t;this.unmountOnDisconnect&&(null==(t=this.reactRoot)||t.unmount()),e.prototype.disconnectedCallback.call(this)},n.reflectExternalProperties=function(t){this.isRoot&&e.prototype.reflectExternalProperties.call(this,t)},n.render=function(){var e=a()(c().mark(function e(t){var n,r,i,a,s,l=this;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:t,scope:this.scope}}))){e.next=1;break}return e.abrupt("return");case 1:if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(o()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(r=this.firstChild;r;)i=r.nextSibling,this.removeChild(r),r=i;return this.reactRoot||(a=this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name,s="","string"==typeof a&&(s=a),this.reactRoot=(0,_.createRoot)(this.root,{identifierPrefix:s})),e.next=2,new Promise(function(e){(0,m.flushSync)(function(){var t;null==(t=l.reactRoot)||t.render((0,p.createElement)(l.self.content,l.internalProperties)),e()})});case 2:if(null==(n=this.instance)||!n.current){e.next=3;break}this.reflectInstanceProperties(),e.next=4;break;case 3:return e.next=4,(0,d.timeout)(this.reflectInstanceProperties);case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=(0,d.copy)(t,1),n)),this.setInternalPropertyValue(e,(0,d.copy)(t,1))},n.setInternalPropertyValue=function(t,n){null===n?n=f.NullSymbol:void 0===n&&(n=f.UndefinedSymbol),e.prototype.setInternalPropertyValue.call(this,t,n)},n.preCompileDomNodes=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!1),1===(e=e.filter(function(e){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&""!==e.nodeValue.trim()})).length)return this.preCompileDomNode(e[0],t,n);for(var r,o=1,i=[],a=v(e);!(r=a()).done;){var s=r.value,l=this.preCompileDomNode(s,t,n,o.toString());i.push(l),o+=1}return n?function(e){return function(){for(var t,n=[],r=v(i);!(t=r()).done;){var o=(0,t.value)(e);"function"==typeof o&&n.push(o.apply(void 0,arguments))}return(0,p.createElement)(p.Fragment,{children:n})}}:i},n.preCompileDomNode=function(e,t,n,r){var i=this;if(void 0===t&&(t={}),void 0===n&&(n=!1),n){var a=this.preCompileDomNode(e,o()({},t,{data:void 0,firstArgument:void 0,firstParameter:void 0,options:void 0,scope:void 0,parameters:void 0}),!1,r);return function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length>0?n[0]:null;return a(o()({},e,{data:i,firstArgument:i,firstParameter:i,options:i,scope:i,parameters:n}))}}}if(e.nodeType===Node.TEXT_NODE){var s="string"==typeof e.nodeValue?e.nodeValue.trim():"",l=r&&s?(0,p.createElement)(p.Fragment,{children:s,key:r}):s||null;return function(){return l}}if(!e.getAttributeNames)return function(){return null};var u,c={},f=this.self.isReactComponent(e);f?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),r&&!Object.prototype.hasOwnProperty.call(c,"key")&&(c.key=r),u=e.constructor.content):(c.key=r,u=e.tagName.toLowerCase());for(var h,m=Object.keys(t),_={},g=function(){var n,r=h.value,o=e.getAttribute(r);if(null===o)return 0;var a=!1,s="";if(r.startsWith("data-bind-")?s=r.substring(10):r.startsWith("bind-")&&(s=r.substring(5)),s.startsWith("attribute-")||"attributes"===s||s.startsWith("property-")||"properties"===s){var l=(0,d.compile)(o,m),u=l.error,p=l.originalScopeNames,v=l.templateFunction;if(u)return console.warn('Error occurred during compiling given attribute binding "'+r+'" on node:',e,u),0;"attributes"===s||"properties"===s?a=!0:s=s.startsWith("attribute-")?s.substring(10):s.substring(9),o={originalScopeNames:p,templateFunction:v.bind(i)}}else if(s.startsWith("on-")){s=(0,d.delimitedToCamelCase)(s),Object.prototype.hasOwnProperty.call(t,"event")||(m=[].concat(m,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(m=[].concat(m,["parameters"]));var g=(0,d.compile)(o,m,!0),y=g.error,b=g.originalScopeNames,E=g.scopeNames,C=g.templateFunction;if(y)return console.warn('Error occurred during compiling given event binding "'+r+'" on node:',e,y),0;var x=C.bind(i);o=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.event=i[0],t.parameters=i;try{x.apply(void 0,b.map(function(e){return t[e]}))}catch(t){console.warn('Error occurred during processing given event binding "'+r+'" on node: ',e,'Given expression "'+o+'" could not be evaluated with given scope names "'+E.join('", "')+'": '+(0,d.represent)(t))}}}else s=r;var A={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(A,s)&&(s=A[s]),s=(0,d.delimitedToCamelCase)(s),null!=(n=o)&&n.originalScopeNames?_[a?"":s]=o:f||(c[s]=o)},y=v(e.getAttributeNames());!(h=y()).done;)g();if(!f){var b=Array.from(e.childNodes);b.length&&(c.children=this.preCompileDomNodes(b,t))}return function(n){(n=o()({},t,n)).scope=n;for(var r=o()({},c),a=0,s=Object.entries(_);a<s.length;a++){var l=s[a],d=l[0],h=l[1],m=h.originalScopeNames,v=h.templateFunction.apply(void 0,m.map(function(e){return n[e]}));""===d?r=o()({},r,v):r[d]=v}return Object.prototype.hasOwnProperty.call(r,"innerHTML")&&(r.dangerouslySetInnerHTML={__html:r.innerHTML},delete r.children,delete r.innerHTML),Object.prototype.hasOwnProperty.call(r,"textContent")?(r.children=r.textContent,delete r.textContent):f?(r=o()({},e.internalProperties,r),n=o()({},r,n,{parent:e}),e.evaluateSlots(n),e.prepareProperties(r)):r.children&&(r.children=i.evaluatePreCompiledDomNodes(r.children,n)),(0,p.createElement)(u,r)}},n.evaluatePreCompiledDomNodes=function(e,t){if(void 0===t&&(t={}),!Array.isArray(e))return e(t);if(1===e.length)return e[0](t);for(var n,r=[],o=v(e);!(n=o()).done;){var i=(0,n.value)(t);i&&r.push(i)}return r},n.preCompileSlots=function(){for(var e in this.slots)this.slots[e]&&"default"!==e&&(this.compiledSlots[e]=this.preCompileDomNode(this.slots[e],o()({},this.scope,{parent:this}),[f.func,"function"].includes(this.self.propertyTypes[e])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,o()({},this.scope,{parent:this}),[f.func,"function"].includes(this.self.propertyTypes.children)))},n.evaluateSlots=function(e){for(var t in this.preparedSlots={},this.compiledSlots)Object.prototype.hasOwnProperty.call(this.compiledSlots,t)&&("children"===t?this.preparedSlots.children=this.evaluatePreCompiledDomNodes(this.compiledSlots[t],e):this.preparedSlots[t]=this.compiledSlots[t](e))},t.isReactComponent=function(e){var t=e.constructor;return"object"==typeof t.content&&(!t.attachWebComponentAdapterIfNotExists||"react"===t.content.webComponentAdapterWrapped)},n.determineRootBinding=function(){e.prototype.determineRootBinding.call(this);for(var t=this.parentNode;t;){if(this.self.isReactComponent(t)){this.rootReactInstance=t;break}t=t.parentNode}},n.applyComponentWrapper=function(){if("string"!=typeof this.self.content&&!this.isWrapped){this.isWrapped=!0;var e=this.self.content.wrapped||this.self.content;this.self.content.webComponentAdapterWrapped?this.wrapMemorizingWrapper&&(this.self.content=(0,p.memo)(this.self.content),this.self.content.wrapped=e):this.self.attachWebComponentAdapterIfNotExists?(this.self.content.displayName||(this.self.content.displayName=this.self._name),this.self.content=(0,p.forwardRef)(function(t,n){return(0,p.useImperativeHandle)(n,function(){return{properties:t}}),(0,p.createElement)(e,t)}),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,p.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,p.memo)(this.self.content),this.self.content.wrapped=e)}},n.prepareProperties=function(e){(0,d.extend)(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,p.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var n,r=v(["isRoot","isTrusted","__composed"]);!(n=r()).done;){var o=n.value;Object.prototype.hasOwnProperty.call(t,o)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,o)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,o))&&delete t[o]}},t}(n(7).default);y.attachWebComponentAdapterIfNotExists=!0,y.content="div",y.react=h(),y._name="ReactWebComponent";var b={component:y,register:function(e){void 0===e&&(e=(0,d.camelCaseToDelimited)(y._name)),customElements.define(e,y)}};t.default=y}],f={};function h(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return d[e](n,n.exports,h),n.exports}h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};h.r(m),h.d(m,{ReactWeb:function(){return x},Web:function(){return O},reactWebAPI:function(){return A},webAPI:function(){return I},wrapAsWebComponent:function(){return T}});var _=h(0),v=h.n(_),g=h(3),y=h.n(g),b=h(1),E=h(14),C=h(7),x=E.default,A=E.api,I=C.api,O=C.default,T=function(e,t,n){var r,o,i;void 0===t&&(t="NoName"),void 0===n&&(n={});var a=e._name||(null==(r=e.___types)||null==(r=r.name)?void 0:r.name)||t.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");n.propTypes&&(e.propTypes=n.propTypes);var s=e.propTypes||{},l=n.propertyAliases||e.propertyAliases||{},u=(0,b.unique)(Object.keys(s).concat(Object.keys(l)).concat(Object.values(l))),c=n.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(x.propertiesToReflectAsAttributes)if(Array.isArray(c))c=[].concat(x.propertiesToReflectAsAttributes,c);else if(c instanceof Map)for(var d=0,f=x.propertiesToReflectAsAttributes;d<f.length;d++){var p=f[d];c.set(p,x.propertyTypes[p])}else if("object"==typeof c)for(var h=0,m=x.propertiesToReflectAsAttributes;h<m.length;h++){var _=m[h];c[_]=x.propertyTypes[_]}var g=u.map(function(e){return(0,b.camelCaseToDelimited)(e)}),E=function(t){function r(){for(var o,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(i=t.call.apply(t,[this].concat(s))||this).self=r,i.internalProperties=n.internalProperties?v()({},n.internalProperties):e.internalProperties?v()({},e.internalProperties):{},i.unmountOnDisconnect=null===(o=n.unmountOnDisconnect)||void 0===o||o,i}return y()(r,t),r}(x);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof n.attachWebComponentAdapterIfNotExists||n.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=x.observedAttributes.concat(g).concat(g.map(function(e){return"-"+e})),E.controllableProperties=e.controllableProperties||n.controllableProperties||[],E.eventToPropertyMapping=null===n.eventToPropertyMapping?n.eventToPropertyMapping:n.eventToPropertyMapping?v()({},n.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?v()({},e.eventToPropertyMapping):{},E.propertyAliases=v()({},x.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=v()({},x.propertyTypes,s),E.renderProperties=null!==(o=null!==(i=n.renderProperties)&&void 0!==i?i:e.renderProperties)&&void 0!==o?o:x.renderProperties,E._name=a,{component:E,register:function(e){void 0===e&&(e=(0,b.camelCaseToDelimited)(a)),customElements.define(e,E)}}};return m.default=T,m}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__15__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__16__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__17__},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__20__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__21__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__22__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__23__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__24__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__25__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__27__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__28__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__30__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__31__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__32__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__33__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__34__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__35__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__36__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__37__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__38__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__39__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__40__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__41__},function(module,__unused_webpack_exports,__nested_webpack_require_50921__){var __webpack_dirname__="/",e,t,n,r,i,o,a,l,u,s,d,c,m,p,f,v,g,h,y,b,x,S,I,T,w,j,C,N,P,E,O,A,k,q,M,_,B;if(module=__nested_webpack_require_50921__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__nested_webpack_require_50921__.g||null===__nested_webpack_require_50921__.g?{}:__nested_webpack_require_50921__.g;module.exports=(e=__nested_webpack_require_50921__(5),t=__nested_webpack_require_50921__(2),n=__nested_webpack_require_50921__(7),r=__nested_webpack_require_50921__(6),i=__nested_webpack_require_50921__(21),o=__nested_webpack_require_50921__(22),a=__nested_webpack_require_50921__(23),l=__nested_webpack_require_50921__(24),u=__nested_webpack_require_50921__(25),s=__nested_webpack_require_50921__(26),d=__nested_webpack_require_50921__(27),c=__nested_webpack_require_50921__(28),m=__nested_webpack_require_50921__(29),p=__nested_webpack_require_50921__(30),f=__nested_webpack_require_50921__(56),v=__nested_webpack_require_50921__(19),g=__nested_webpack_require_50921__(31),h=__nested_webpack_require_50921__(32),y=__nested_webpack_require_50921__(33),b=__nested_webpack_require_50921__(34),x=__nested_webpack_require_50921__(35),S=__nested_webpack_require_50921__(8),I=__nested_webpack_require_50921__(9),T=__nested_webpack_require_50921__(36),w=__nested_webpack_require_50921__(37),j=__nested_webpack_require_50921__(57),C=__nested_webpack_require_50921__(4),N=__nested_webpack_require_50921__(0),P=__nested_webpack_require_50921__(3),E=__nested_webpack_require_50921__(20),O=__nested_webpack_require_50921__(10),A=__nested_webpack_require_50921__(38),k=__nested_webpack_require_50921__(39),q=__nested_webpack_require_50921__(40),M=__nested_webpack_require_50921__(41),_=__nested_webpack_require_50921__(11),B=__nested_webpack_require_50921__(58),function(){var L=[function(e){e.exports=t},function(e){e.exports=_},function(e){e.exports=P},function(e){e.exports=N},function(e,t,n){n.d(t,{defaultModel:function(){return d},defaultModelState:function(){return c},defaultProperties:function(){return f},modelPropertyTypes:function(){return l},modelStatePropertyTypes:function(){return s},propertyTypes:function(){return u}});var r=n(0),o=n.n(r),i=n(3),a={name:i.string,declaration:i.string,description:i.string,default:i.any,selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string])),(0,i.arrayOf)((0,i.shape)({label:i.string,value:(0,i.oneOfType)([i.boolean,i.number,i.string])})),i.object]),type:i.string,value:i.any},s={dirty:(0,i.oneOfType)([i.boolean,i.symbol]),pristine:(0,i.oneOfType)([i.boolean,i.symbol]),touched:(0,i.oneOfType)([i.boolean,i.symbol]),untouched:(0,i.oneOfType)([i.boolean,i.symbol]),focused:(0,i.oneOfType)([i.boolean,i.symbol]),visited:(0,i.oneOfType)([i.boolean,i.symbol]),invalid:(0,i.oneOfType)([i.boolean,i.symbol]),invalidRequired:(0,i.oneOfType)([i.boolean,i.symbol]),valid:(0,i.oneOfType)([i.boolean,i.symbol])},l=o()({},a,{emptyEqualsNull:i.boolean,trim:i.boolean,invertedPattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),pattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),maximum:(0,i.oneOfType)([i.number,i.string]),minimum:(0,i.oneOfType)([i.number,i.string]),maximumLength:i.number,minimumLength:i.number,mutable:i.boolean,writable:i.boolean,state:(0,i.shape)(s)}),u=o()({},a,s,{className:(0,i.oneOfType)([(0,i.arrayOf)(i.string),i.string]),styles:i.object,themeConfiguration:i.object,disabled:i.boolean,enforceUncontrolled:i.boolean,initialValue:i.any,model:(0,i.shape)(l),selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string]))),(0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string])),(0,i.arrayOf)((0,i.shape)({label:i.string,value:(0,i.oneOfType)([i.boolean,i.number,i.string])})),i.object]),onChange:i.func,onChangeValue:i.func,onChangeShowDeclaration:i.func,onChangeState:i.func,onClick:i.func,onFocus:i.func,onTouch:i.func,required:i.boolean,requiredText:i.string,componentProperties:i.object,domNodeProperties:i.object,showDeclaration:(0,i.oneOfType)([i.boolean,i.symbol]),showInitialValidationState:i.boolean,showValidationState:i.boolean,tooltip:i.any}),c={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},d={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:1/0,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:o()({},c),trim:!0,type:"string"},f={className:[],styles:{},componentProperties:{},domNodeProperties:{},enforceUncontrolled:!1,model:o()({},d),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e){e.exports=C},function(e){e.exports=S},function(e,t,n){n.d(t,{defaultInputModel:function(){return d},defaultModelState:function(){return c},defaultProperties:function(){return f},propertyTypes:function(){return l},renderProperties:function(){return u}});var r=n(0),o=n.n(r),i=n(3),a=n(4),s=o()({},a.modelStatePropertyTypes,{invalidMaximum:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMinimum:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMaximumLength:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMinimumLength:(0,i.oneOfType)([i.boolean,i.symbol]),invalidInvertedPattern:(0,i.oneOfType)([i.boolean,i.symbol]),invalidPattern:(0,i.oneOfType)([i.boolean,i.symbol])}),l=o()({},a.propertyTypes,s,{align:i.string,children:i.func,cursor:(0,i.oneOfType)([(0,i.shape)({end:i.number.isRequired,start:i.number.isRequired}),i.symbol]),editor:i.string,editorIsActive:(0,i.oneOfType)([i.boolean,i.symbol]),editorIsInitiallyActive:i.boolean,hidden:(0,i.oneOfType)([i.boolean,i.symbol]),leadingIcon:(0,i.oneOfType)([i.string,i.object]),trailingIcon:(0,i.oneOfType)([i.string,i.object]),attributes:i.object,invertedPattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),invertedPatternText:i.string,labels:(0,i.oneOfType)([(0,i.arrayOf)((0,i.arrayOf)((0,i.oneOfType)([i.any,i.string]))),(0,i.arrayOf)(i.string),i.object]),maximum:(0,i.oneOfType)([i.number,i.string]),maximumLength:i.number,minimum:(0,i.oneOfType)([i.number,i.string]),minimumLength:i.number,maximumLengthText:i.string,minimumLengthText:i.string,maximumText:i.string,minimumText:i.string,onBlur:i.func,onChangeEditorIsActive:i.func,onKeyDown:i.func,onKeyUp:i.func,onSelect:i.func,onSelectionChange:i.func,pattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),patternText:i.string,placeholder:i.string,representation:(0,i.oneOfType)([i.string,i.symbol]),rows:i.number,searchSelection:i.boolean,selectableEditor:i.boolean,step:i.number,suggestionCreator:i.func,suggestSelection:i.boolean,transformer:i.object}),u=["children","suggestionCreator"],c=o()({},a.defaultModelState,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),d=o()({},a.defaultModel,{state:c}),f=o()({},a.defaultProperties,{cursor:{end:0,start:0},editor:"plain",selectableEditor:!1,rows:4,invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:o()({},d),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',searchSelection:!1,suggestSelection:!1,step:1})},function(e,t,n){n.d(t,{WrapTooltip:function(){return d},default:function(){return f}});var r=n(0),o=n.n(r),i=n(16),a=n(13),s=n(2),l=n(1),u=!i.Tooltip||Boolean(i.Tooltip.isDummy),c=(0,s.forwardRef)(function(e,t){return u?(0,l.jsx)("div",{className:"generic-tooltip",ref:t,title:e.value,children:e.children}):(0,l.jsx)(i.Tooltip,o()({overlay:(0,l.jsx)(a.Typography,{use:"caption",children:e.value}),ref:t},e.componentProperties,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:e.children})}))}),d=(!c||Boolean(c.isDummy),function(e){var t=e.children,n=e.value;return"string"==typeof n?(0,l.jsx)(c,{value:n,children:t}):(0,l.jsx)(l.Fragment,{children:t})}),f=d},function(e){e.exports=A},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(0),n(17),n(6),n(2);var r=n(14),o=n(15),i=n(8),a=n(1),s=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.WrapStrict,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{value:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return h},determineInitialValue:function(){return m},determineValidationState:function(){return _},formatValue:function(){return x},getConsolidatedProperties:function(){return g},getLabelAndValues:function(){return y},getValueFromSelection:function(){return b},mapPropertiesIntoModel:function(){return v},normalizeSelection:function(){return E},parseValue:function(){return C},renderMessage:function(){return d},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return f},wrapStateSetter:function(){return c}});var r=n(0),o=n.n(r),i=n(5),a=n(3);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e,t){e.model&&void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model&&(e.model.state?e.model.state=o()({},e.model.state):e.model.state={});for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var i,a=r[n],s=a[0],l=a[1];null!=(i=e.model)&&i.state&&void 0===e.model.state[s]&&(e.model.state[s]=l)}return e},c=function(e,t){return function(n){var r="function"==typeof n?n(t):n;(0,i.equals)(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},d=function(e,t){if("string"!=typeof e)return"";var n=(0,i.evaluate)("`"+e+"`",t);return n.error?(console.warn("Given message template could not be proceed:",n.error),""):n.result},f=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];t="on"+(0,i.capitalize)(t),e[t]&&(n?e[t].apply(e,o):(0,i.timeout)(function(){e[t].apply(e,o)}))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],s=o[0],l=o[1];l===a.UndefinedSymbol?t[s]=void 0:l===a.NullSymbol?t[s]=null:t[s]=(0,i.copy)(e[s])}return t};function h(e,t,n,r,a){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,u=function(e,t){if(t)for(var n,r=s(t);!(n=r()).done;){var o=n.value;if((0,i.equals)(null==o?void 0:o.value,e))return o.label||String(e)}return null}(n,a);return"string"==typeof u?u:x(o()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),n,r)}return""}var m=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?(0,i.copy)(e.initialValue):void 0!==e.default?(0,i.copy)(e.default):void 0!==(null==(o=e.model)?void 0:o.default)?(0,i.copy)(e.model.default):void 0!==t?t:null},_=function(e,t,n){void 0===n&&(n={});var r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state||(e.model.state={});for(var i=0,a=Object.entries(n);i<a.length;i++){var s=a[i],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some(function(t){return Boolean(e.model.state&&e.model.state[t])}),e.model.state.valid=!e.model.state.invalid),r},v=function(e,t){var n=(0,i.extend)(!0,{model:(0,i.copy)(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.pattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,o=s(Object.keys(n.model).concat("value"));!(r=o()).done;){var a=r.value;Object.prototype.hasOwnProperty.call(n,a)&&void 0!==n[a]&&(n.model[a]=n[a])}for(var l in n.model.state)Object.prototype.hasOwnProperty.call(n,l)&&void 0!==n[l]&&(n.model.state[l]=n[l]);return void 0===n.model.value&&(n.model.value=(0,i.copy)(n.model.default)),n},g=function(e){var t=o()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t};function y(e){if(Array.isArray(e)){for(var t,n=[],r=[],o=s(e);!(t=o()).done;){var i=t.value;"string"==typeof(null==i?void 0:i.label)&&(n.push(i.label),r.push(i.value))}return[n,r]}return[[],[]]}function b(e,t){if(Array.isArray(t))for(var n,r=s(t);!(n=r()).done;){var o=n.value;if("string"==typeof(null==o?void 0:o.label)&&o.label===e)return o.value;if(["number","string"].includes(typeof(null==o?void 0:o.value))&&String(o.value)===e)return o.value}return null}function E(e,t){if(e||(e=t,t=void 0),!e)return e;var n=(0,i.isObject)(t),r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var o=0,i=t;o<i.length;o++){var a=i[o],s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},a=!1;if(Array.isArray(e)){if(a=!0,e.length){var l=[],u=0;if(Array.isArray(e[0]))for(var c=0,d=e;c<d.length;c++){var f,p=d[c],h=p[0],m=p[1];l.push({label:null!==(f=r(h,u))&&void 0!==f?f:m,value:h}),u+=1}else if((0,i.isObject)(e[0]))for(var _,v=s(e);!(_=v()).done;){var g,y=_.value;l.push(o()({},y,{label:null!==(g=r(y.value,u))&&void 0!==g?g:y.label})),u+=1}else for(var b=0,E=e;b<E.length;b++){var C,x=E[b];l.push({label:null!==(C=r(x,u))&&void 0!==C?C:x,value:x}),u+=1}e=l}}else{for(var A=[],I=0,O=Object.keys(e);I<O.length;I++){var T,S=O[I];A.push({label:null!==(T=r(S))&&void 0!==T?T:e[S],value:S})}e=A}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var w=new Map,P=0,L=0,N=t;L<N.length;L++){var R=N[L][0];w.set(R,P),P+=1}e=e.sort(function(e,t){var n,r,o=e.value,i=t.value;return(null!==(n=w.get(o))&&void 0!==n?n:0)-(null!==(r=w.get(i))&&void 0!==r?r:0)})}else a||(e=e.sort(function(e,t){var n=e.label,r=t.label;return n.localeCompare(r)}));return e}var C=function(e,t,n,r){var o;if(void 0===r&&(r=!1),r&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;if(![null,void 0].includes(t)&&null!=(o=n[e.model.type])&&o.parse){var a,s=null==(a=n[e.model.type])?void 0:a.parse;i=s&&t?s(t,n,e):t}return"number"==typeof i&&isNaN(i)?null:i};function x(e,t,n,r){var o;void 0===r&&(r=!0);var i=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(o=n[e.type||e.model.type])?void 0:o.format;if(a){var s,l=(null==(s=a[i])?void 0:s.transform)||a.final.transform;if(l)return l(t,n,e)}return String(t)}},function(e,t,n){n.d(t,{TextInput:function(){return ve},default:function(){return ge}});var r=n(0),o=n.n(r),i=n(25),a=n(26),s=n(5),l=n(2),u=n(20),c=n.n(u),d=n(45),f=n(22),p=n(23),h=n(29),m=n(21),_=n(1),v=(0,l.memo)((0,l.forwardRef)(function(e,t){var n,r,o,i=(0,l.useRef)(null),a=(0,l.useRef)(null),s=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{surfaceAnchor:i,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}}),(0,_.jsx)(h.MenuSurfaceAnchor,{ref:i,onKeyDown:e.onKeyDown,children:e.pending?(0,_.jsx)(h.MenuSurface,{anchorCorner:"bottomLeft",className:(null!==(n=e.classNames)&&void 0!==n?n:[]).concat(null!==(r=e.pendingClassNames)&&void 0!==r?r:[]).join(" "),open:!0,children:(0,_.jsx)(m.A,{size:"large"})}):(0,_.jsx)(h.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){a.current=e},className:null==(o=e.classNames)?void 0:o.join(" "),focusOnOpen:!1,foundationRef:s,onFocus:e.onFocus,onSelect:e.onSelect,open:e.open,children:e.options.map(function(t,n){var r;return(0,_.jsx)(h.MenuItem,{className:null==(r=e.itemClassNames)?void 0:r.join(" "),children:t},n)})})})})),g=n(30),y=n(9),b=(0,l.memo)((0,l.forwardRef)(function(e,t){var n=(0,l.useRef)(null),r=(0,l.useRef)(null),i=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{base:n,foundation:r,input:i}}),(0,_.jsx)(g.Select,o()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,y.useMemorizedValue)(o()({name:e.name,onClick:e.onClick},e.domNodeProperties),e.name,e.onClick,e.domNodeProperties),enhanced:!0,ref:n,foundationRef:r,inputRef:i,onChange:e.onChange,onKeyDown:e.onKeyDown,options:e.options,value:String(e.value),label:e.label},e.componentProperties))})),E=n(31),C=(0,l.forwardRef)(function(e,t){var n,r=(0,l.useRef)(null),i=(0,l.useRef)(null),a=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{base:r,foundation:i,input:a}});var s="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0;return(0,_.jsx)("div",{className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles,children:(0,_.jsx)(E.TextField,o()({characterCount:e.characterCount&&s,disabled:e.disabled,invalid:e.invalid,label:e.label,name:e.name,placeholder:e.placeholder,helpText:e.helpText,maxLength:s?e.maximumLength:void 0,ref:r,foundationRef:i,inputRef:a,onChange:e.onChange,ripple:!0,rootProps:(0,y.useMemorizedValue)(o()({onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,_.jsx)(f.A,o()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,_.jsx)(f.A,o()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})});C.CSS_CLASS_NAMES={textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"};var x=C,A=n(10),I=n(8),O=n(11),T=n(32),S=n(33),w=n(34),P=n(35),L=n(36),N=n(37),R=n(38),D=n(39),M=(0,l.forwardRef)(function(e,t){var n,r,i,a,u,c=(0,l.useId)(),d=null!==(n=e.id)&&void 0!==n?n:c,f=null!==(r=e.classNamePrefix)&&void 0!==r?r:"text-area",p=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useRef)(null),v=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{foundation:v,input:p,label:m,materialTextField:h}}),(0,l.useEffect)(function(){if(m.current)return h.current=new D.MDCTextField(m.current),v.current=h.current.getDefaultFoundation(),"string"==typeof e.value&&(v.current.setValue(e.value),h.current.value=e.value),"boolean"==typeof e.disabled&&(v.current.setDisabled(e.disabled),h.current.disabled=e.disabled),"boolean"==typeof e.invalid&&(v.current.setValid(!e.invalid),h.current.valid=!e.invalid),"boolean"==typeof e.required&&(h.current.required=e.required),v.current.setUseNativeValidation(!1),function(){var e;null==(e=h.current)||e.destroy()}},[m.current,h.current,e.value,e.disabled,e.invalid,e.required,e.minimumLength,e.maximumLength]),(0,l.useEffect)(function(){var t,n,r=e.children?function(){setTimeout(function(){var e;null==(e=v.current)||e.autoCompleteFocus()})}:s.NOOP;null==(t=p.current)||t.addEventListener("input",r);var o=e.children?function(){setTimeout(function(){var e;null==(e=v.current)||e.activateFocus()})}:s.NOOP;return null==(n=p.current)||n.addEventListener("focus",o),function(){var e,t;null==(e=p.current)||e.removeEventListener("input",r),null==(t=p.current)||t.removeEventListener("focus",o)}},[v.current,p.current,e.children]);var g="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0,y=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("textarea",o()({ref:p,id:d,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?o()({visibility:"hidden",position:"absolute"},e.styles):e.styles,rows:e.rows,"aria-labelledby":d+"-label","aria-controls":d+"-helper","aria-describedby":d+"-helper",readOnly:Boolean(e.children),value:e.value,minLength:e.minimumLength,maxLength:e.maximumLength,onChange:e.onChange,onClick:e.onClick,onBlur:e.onBlur,onFocus:e.onFocus,onKeyUp:e.onKeyUp,onKeyDown:e.onKeyDown},e.domNodeProperties)),e.children,e.barContentSlot?(0,_.jsxs)("div",{className:f+"__bar",children:[e.barContentSlot,e.characterCount&&g?(0,_.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&g?(0,_.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),b="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("label",{ref:m,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[f,"mdc-text-field","mdc-text-field--textarea"].concat(""===e.value?"mdc-text-field--textarea":f+"--has-content").concat(e.disabled?"mdc-text-field--disabled":[]).concat("mdc-text-field--filled").concat(e.characterCount&&g?"mdc-text-field--with-internal-counter":[]).concat(e.invalid?"mdc-text-field--invalid":[]).join(" "),children:[!1===(null==(i=e.componentProperties)?void 0:i.ripple)||e.children?"":(0,_.jsx)("span",{className:"mdc-text-field__ripple"}),(0,_.jsx)("span",{className:"mdc-floating-label",id:d+"-label",children:e.label}),e.resizeable?(0,_.jsx)("span",{className:"mdc-text-field__resizer",children:y}):y,!1!==(null==(a=e.componentProperties)?void 0:a.ripple)?(0,_.jsx)("span",{className:"mdc-line-ripple"}):""]}),b.children?(0,_.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,_.jsx)("div",{className:["mdc-text-field-helper-text"].concat(b.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:d+"-helper",children:null!=(u=e.helpText)&&u.children?e.helpText.children:e.helpText})}):""]})});M.CSS_CLASS_NAMES={textInput:"text-input",codeEditor:"code-editor",mdcTextFieldDisabled:"mdc-text-field--disabled",cmEditor:"cm-editor",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter"};var k,j,F,B=M,U=(0,l.forwardRef)(function(e,t){var n=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{input:n,eventMapper:{blur:function(e){var t;if(null!=(t=n.current)&&t.input.current){var r=new Event("blur");r.detail=e,n.current.input.current.dispatchEvent(r)}},focus:function(e){var t;if(null!=(t=n.current)&&t.input.current){var r=new Event("focus");r.detail=e,n.current.input.current.dispatchEvent(r)}},input:function(e,t){var r;if(null!=(r=n.current)&&r.input.current){var o=new Event("input");o.detail=t,n.current.input.current.value=String(e),n.current.input.current.dispatchEvent(o)}}}}}),(0,_.jsx)(B,o()({ref:n},e,{children:e.children}))}),V={textInput:"text-input",textInputCodeEditorButton:"text-input__code-editor-button",textInputRichtextEditorButton:"text-input__richtext-editor-button",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark",codeEditor:"code-editor",cmContent:"cm-content",cmActiveLine:"cm-activeLine",cmGutters:"cm-gutters",cmActiveLineGutter:"cm-activeLineGutter",cmFocused:"cm-focused",codeEditorHasContent:"code-editor--has-content",codeEditorView:"code-editor__view",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",richtextEditorView:"richtext-editor__view",tiptap:"tiptap"},W=T.autocompletion?[].concat(T.closeBracketsKeymap,S.defaultKeymap,L.searchKeymap,S.historyKeymap,w.foldKeymap,T.completionKeymap,P.lintKeymap):[],q=R.EditorView?[(0,R.lineNumbers)(),(0,R.highlightActiveLineGutter)(),(0,R.highlightSpecialChars)(),(0,S.history)(),(0,w.foldGutter)(),(0,R.drawSelection)(),(0,R.dropCursor)(),N.EditorState.allowMultipleSelections.of(!0),(0,w.indentOnInput)(),(0,w.syntaxHighlighting)(w.defaultHighlightStyle,{fallback:!0}),(0,w.bracketMatching)(),(0,T.closeBrackets)(),(0,T.autocompletion)(),(0,R.rectangularSelection)(),(0,R.crosshairCursor)(),(0,R.highlightActiveLine)(),(0,L.highlightSelectionMatches)(),R.keymap.of(W)]:[],H=V,K=(0,l.forwardRef)(function(e,t){var n,r,i;if(!(T.autocompletion&&S.history&&w.syntaxHighlighting&&P.lintKeymap&&L.searchKeymap&&N.EditorState&&R.EditorView))throw Error("Missing codemirror dependencies.");var a=null!==(n=e.value)&&void 0!==n?n:"",s=(0,l.useRef)(null),u=(0,l.useRef)(null),c=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{input:s,editorView:u,editorViewReference:c}}),(0,l.useEffect)(function(){var t;if(c.current){var n=N.EditorState.create({doc:String(a),extensions:[q,R.EditorView.updateListener.of(function(t){t.startState.doc.toString()!==t.state.doc.toString()&&function(t){var n;if(!e.disabled){var r=t.state.doc.toString();null==(n=s.current)||n.eventMapper.input(r,t),e.onChange&&e.onChange(r)}}(t)}),null!=(t=e.editor)&&t.mode?e.editor.mode:[]]});return u.current=new R.EditorView({state:n,parent:c.current}),function(){u.current&&(u.current.destroy(),u.current=null)}}},[c.current,null==(r=e.editor)||null==(r=r.mode)?void 0:r.language.name]),(0,l.useEffect)(function(){u.current&&e.value!==u.current.state.doc.toString()&&u.current.state.update({changes:{from:0,insert:N.Text.empty}},{changes:{from:0,insert:String(e.value)}})},[u.current,e.value]);var d=null==(i=s.current)||null==(i=i.input)||null==(i=i.current)||null==(i=i.input)?void 0:i.current;return(0,l.useEffect)(function(){var e=new ResizeObserver(function(){var e=null==d?void 0:d.clientHeight;if(c.current&&e){var t=c.current.querySelector(".cm-scroller");if(t){var n=String(e)+"px";return c.current.style.height=n,void(t.style.height=n)}}});return d&&e.observe(d),function(){e.disconnect()}},[c.current,d]),(0,_.jsx)(U,o()({},e,{ref:s,value:a,classNamePrefix:H.codeEditor,onLabelClick:function(){var e;null==(e=c.current)||e.focus()},children:(0,_.jsx)("div",{ref:c,onBlur:function(t){var n;null==(n=s.current)||n.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var n;null==(n=s.current)||n.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},className:H.codeEditorView+" mdc-text-field__input"})}))}),z=n(40),$=n(41),G=n.n($),X=(0,l.createContext)(null),Y=function(e){var t,n=e.action,r=e.activeIndicator,o=e.checkedIconName,i=e.enabledIndicator,a=e.iconName,s=e.label,u=(0,l.useContext)(X);if(!u)return null;var c=!0;i?c=i(u.can().chain().focus()).run():null!==i&&(c=n(u.can().chain().focus()).run());var d=Boolean(r&&u.isActive(r)),f=null!==(t=null!=s?s:r)&&void 0!==t?t:a;return(0,_.jsx)(I.default,{value:f,children:(0,_.jsx)(p.A,{value:d,disabled:!c,classNames:d?["mdc-icon-button--checked"]:[],onClick:function(e){e.stopPropagation(),n(u.chain().focus()).run()},size:"extra-small",icon:a,onIcon:null!=o?o:a,domNodeProperties:{"aria-label":f}})})},Q=function(e){var t=e.editor;return t?(0,_.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,_.jsxs)(X.Provider,{value:t,children:[(0,_.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,_.jsx)(Y,{action:function(e){return e.undo()},iconName:"undo"}),(0,_.jsx)(Y,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,_.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,_.jsx)(Y,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,_.jsx)(Y,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,_.jsx)(Y,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,_.jsx)(Y,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,_.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,_.jsx)(Y,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,_.jsx)(Y,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,_.jsx)(Y,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,_.jsx)(Y,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,_.jsx)(Y,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,_.jsx)(Y,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},J=V,Z=(0,l.forwardRef)(function(e,t){var n,r,i,a,s;if(!z.useEditor||G().isDummy)throw Error("Missing tiptap dependencies.");var u=null!==(n=e.value)&&void 0!==n?n:"",c=(0,l.useRef)(null),d=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{input:c,editorViewReference:d}});var f=(null==(r=e.editor)?void 0:r.extensions)||[G().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})],p=(0,z.useEditor)(o()({extensions:f,editable:!e.disabled,content:String(u),onBlur:function(t){var n;null==(n=c.current)||n.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var n;null==(n=c.current)||n.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},onUpdate:function(t){var n,r=t.editor.getHTML();null==(n=c.current)||n.eventMapper.input("<p></p>"===r?"":r,t),e.onChange&&e.onChange(r,{contentTree:t.editor.getJSON()})}},(null==(a=e.editor)?void 0:a.options)||{})),h=p.getHTML(),m=null==(s=c.current)||null==(s=s.input)||null==(s=s.current)||null==(s=s.input)||null==(s=s.current)?void 0:s.clientHeight;return(0,l.useEffect)(function(){d.current&&m&&(d.current.style.height=String(m+8)+"px")},[d.current,m]),(0,_.jsx)(U,o()({},e,{ref:c,barContentSlot:(0,_.jsx)(Q,{editor:p}),value:"<p></p>"===h?"":h,classNamePrefix:J.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,_.jsx)(z.EditorContent,{className:J.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:d})}))}),ee=!(void 0===window),te=ee?null==(k=n(42))?void 0:k.default:null,ne=ee?null==(j=n(43))?void 0:j.default:null,re=ee?null==(F=n(44))?void 0:F.default:null,oe=V,ie={injectCSS:!0,enableContentCheck:!0},ae=function(e,t){return(0,O.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&void 0!==e.model.invertedPattern&&Boolean(e.model.invertedPattern)&&[].concat(e.model.invertedPattern).some(function(t){return new RegExp(t).test(e.model.value)})},invalidPattern:function(){return"string"==typeof e.model.value&&void 0!==e.model.pattern&&Boolean(e.model.pattern)&&[].concat(e.model.pattern).some(function(t){return!new RegExp(t).test(e.model.value)})}})};function se(e){"Enter"===e.code&&e.stopPropagation()}function le(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every(function(t){return e.includes(t)}))}var ue=n(7),ce=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},de=function(e){return new Date(Math.round(1e3*e)).toISOString()},fe=function(e){return e instanceof Date?e.getTime()/1e3:e},pe={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t){var n,r,i,a=t.currency.format,s=null!==(n=null==a||null==(r=a.final.options)?void 0:r.currency)&&void 0!==n?n:"USD";return e===1/0?"Infinity "+s:e===-1/0?"- Infinity "+s:isNaN(e)?"unknown":new Intl.NumberFormat(ve.locales,o()({style:"currency"},null!==(i=null==a?void 0:a.final.options)&&void 0!==i?i:{})).format(e)}}},parse:function(e,t,n){return t.float.parse?t.float.parse(e,t,n):NaN},type:"text"},datetime:{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Datetime formatting depends on it.");e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=ce(e);if("string"==typeof r)return r;var i=de(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=fe(e))){var r=Date.parse(e+":00.000Z"),o=isNaN(r);o&&(r=Date.parse(e+".000Z"),(o=isNaN(r))&&(r=Date.parse(e),e=isNaN(r)?parseFloat(e):r/1e3)),o||(e=r/1e3)}return isNaN(e)&&(e=0),n?de(e):e},type:"datetime-local"},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["datetime-local"].parse)throw new Error("Missing datetime local parse transformation configured. Datetime local formatting depends on.");e=t["datetime-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=ce(e);if("string"==typeof r)return r;var i=de(e-60*new Date(1e3*e).getTimezoneOffset());return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=fe(e))){var r=Date.parse(e+":00.000Z"),o=isNaN(r);o&&(r=Date.parse(e+".000Z"),(o=isNaN(r))&&(r=Date.parse(e),e=isNaN(r)?parseFloat(e):r/1e3)),o||(e=r/1e3+60*new Date(r).getTimezoneOffset())}return isNaN(e)&&(e=0),n?de(e):e}},date:{format:{final:{transform:function(e,t,n){var r;if(null==(r=t.datetime.format)||!r.final.transform)throw new Error("Missing datetime final format transformation configured. Date formatting depends on it.");var o=t.datetime.format.final.transform(e,t,n),i=o.indexOf("T");return-1===i?o:o.substring(0,i)}}},parse:function(e,t,n){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date parsing depends on it.");return t.datetime.parse(e,t,n)},useISOString:!0},"date-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["datetime-local"].parse)throw new Error("Missing datetime local parse transformation configured. Date local formatting depends on it.");e=t["datetime-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=ce(e);if("string"==typeof r)return r;e-=60*new Date(1e3*e).getTimezoneOffset();var i=de(e);return i.substring(0,i.lastIndexOf("T"))}}},parse:function(e,t,n){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date local parsing depends on.");return(e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?de(e):e},type:"date"},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Time formatting depends on it.");e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=ce(e);if("string"==typeof r)return r;var i=de(e),a=i.indexOf("T");return-1===a?i:(i=i.substring(a+1,i.length-1),n.step&&n.step>=60&&n.step%60==0?i.substring(0,i.lastIndexOf(":")):i)}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=fe(e))){var r=Date.parse(e);if(isNaN(r)){var o=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,function(e,t,n,r,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r&&void 0!==o?parseFloat(o):0))}));e=isNaN(o)?0:o}else e=r/1e3}return isNaN(e)&&(e=0),n?de(e):e}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["time-local"].parse)throw new Error("Missing time local parse transformation configured. Time local formatting depends on it.");e=t["time-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=ce(e);if("string"==typeof r)return r;var i=new Date(1e3*e),a=i.getHours(),s=i.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(n.step&&n.step>=60&&n.step%60==0)){var u=i.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=fe(e))){var r=Date.parse(e);if(isNaN(r)){var o=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,function(e,t,n,r,o){var i=new Date(0);return i.setHours(parseInt(t)),i.setMinutes(parseInt(n)),r&&void 0!==o&&i.setSeconds(parseInt(o)),String(i.getTime()/1e3)}));e=isNaN(o)?0:o}else e=r/1e3}return isNaN(e)&&(e=0),n?de(e):e},type:"time"},float:{format:{final:{transform:function(e,t){var n=t.float.format;return n?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(ve.locales,n.final.options||{}).format(e):String(e)}}},parse:function(e,t,n){var r=n.maximum,o=n.minimum;return"string"==typeof e&&(e=parseFloat("de-DE"===ve.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),("number"==typeof o&&o>=0&&e<0||"number"==typeof r&&r<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t){var n,r=t.integer.format;return new Intl.NumberFormat(ve.locales,o()({maximumFractionDigits:0},null!==(n=null==r?void 0:r.final.options)&&void 0!==n?n:{})).format(e)}}},parse:function(e,t,n){var r=n.maximum,o=n.minimum;return"string"==typeof e&&(e=parseInt("de-DE"===ve.locales[0]?e.replace(/[,.]/g,""):e)),("number"==typeof o&&o>=0&&e<0||"number"==typeof r&&r<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};function he(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return me(e,t);var n={}.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)?me(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _e=function(e,t){var n,r,u,h,m,g,y,E,C=(0,l.useId)(),T=null!==(n=e.id)&&void 0!==n?n:C;(0,l.useEffect)(function(){var e;if(null!=(e=F.current)&&null!=(e=e.input)&&e.current){var t,n,r,i,a=F.current.input.current;if(null!=(t=a.input)&&t.current&&null!=(r=(a=null==(n=a.input)?void 0:n.current).input)&&r.current&&(a=null==(i=a.input)?void 0:i.current),!a)return;var l=a,u={},c=[];Re.valid?(c.push("ariaErrormessage"),c.push("ariaInvalid")):(u.ariaErrormessage=T+"-error-message",u.ariaInvalid="true"),We?("search"!==l.getAttribute("type")&&(u.role="searchbox"),u.ariaAutocomplete=Re.searchSelection?"inline":"list"):(c.push("searchbox"),c.push("ariaAutocomplete")),Re.showDeclaration?u.ariaDescribedby=T+"-declaration":c.push("ariaDescribedby");for(var d=o()({},u,Re.attributes||{}),f=0,p=Object.entries(d);f<p.length;f++){var h=p[f],m=h[0],_=h[1],v=(0,s.camelCaseToDelimited)(m);"boolean"==typeof _?_?l.setAttribute(v,""):l.removeAttribute(v):l.setAttribute(v,String(_))}for(var g=0,y=c;g<y.length;g++){var b=y[g],E=(0,s.camelCaseToDelimited)(b);l.hasAttribute(E)&&l.removeAttribute(E)}}}),(0,l.useEffect)(function(){if(Ye){var e,t=null==(e=U.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){t.hasAttribute("aria-expanded")||t.setAttribute("aria-expanded","false");var n=t.querySelector(".mdc-select__dropdown-icon-active");n&&!n.hasAttribute("aria-hidden")&&n.setAttribute("aria-hidden","true");var r=t.querySelector(".mdc-select__dropdown-icon-inactive");r&&!r.hasAttribute("aria-hidden")&&r.setAttribute("aria-hidden","true")}}}),(0,l.useEffect)(function(){if(Ye){var e,t=null==(e=U.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var n=function(e){Re.disabled&&e.stopPropagation()};return t.addEventListener("keydown",n,!0),function(){t.removeEventListener("keydown",n,!0)}}}}),(0,l.useEffect)(function(){Re.triggerInitialPropertiesConsolidation&&N(new Event("genericInitialPropertiesConsolidation"))},[]);var S=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),R((0,O.parseValue)(Re,Re.default,ve.transformer,!Le&&Re.model.trim)))},n=(0,s.equals)(Re.value,Re.default);return{icon:(0,_.jsx)(c(),{in:!n,children:te&&!te.isDummy&&re?(0,_.jsx)(te,{animation:re,reverse:!0}):(0,_.jsx)(f.A,{icon:"clear"})}),componentProperties:{"aria-hidden":n?"true":"false","tab-index":n?-1:0},onClick:t,onKeyDown:t,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var r=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),J(function(t){return void 0===t&&(t=Re.hidden),Re.hidden=!t,N(e),Re.hidden}))};return{icon:te&&!te.isDummy&&ne?(0,_.jsx)(te,{animation:ne,reverse:!Re.hidden}):Re.hidden?"lock_open":"lock",onClick:r,onKeyDown:r,strategy:"component",tooltip:(Re.hidden?"Show":"Hide")+" password"}}var o;return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.domNodeProperties=null!==(o=e.domNodeProperties)&&void 0!==o?o:{},e.domNodeProperties["tab-index"]=-1,e.domNodeProperties["aria-hidden"]=!0)),e},w=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,_.jsx)(c(),{in:t,children:e}):t?e:"":n?(0,_.jsx)(c(),o()({},t,{children:e})):t.in?e:""},P=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=o()({},e)).tooltip;var n=o()({},e);e.strategy="component",e.icon=(0,_.jsx)(I.default,{value:t,children:(0,_.jsx)(f.A,o()({},n))})}return e},L=function(e){var t=(0,O.getConsolidatedProperties)(function(e){var t,n=(0,O.mapPropertiesIntoModel)(e,ve.defaultProperties.model);return n.model.value=(0,O.parseValue)(n,n.model.value,ye,!Le&&(null==(t=e.model)?void 0:t.trim)),ae(n,n.model.state),n}(e));return["plain","text"].includes(t.editor)&&(t.selectableEditor=!1),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,O.formatValue)(t,t.value,ye,!t.focused)),t},N=function(e){(0,s.extend)(!0,Re,L(Re)),(0,O.triggerCallbackIfExists)(Re,"change",Le,Re,e)},R=function(e,t){var n;if(void 0===t&&(t=-1),ce(!0),(0,s.isObject)(e)){var r=(n=e).target||n.detail;Re.value=r?void 0===r.value?null:r.value:e}else Re.value=e;var i=function(){Pe(function(e){if(!Ne&&e.representation===Re.representation&&!Re.suggestionCreator&&-1===t)return e;var r=o()({},e,{representation:Re.representation});if(!Le&&(0,s.equals)(e.value,Re.value))return r;r.value=Re.value;var i=!1;return e.modelState.pristine&&(Re.dirty=!0,Re.pristine=!1,i=!0),N(n),ae(Re,e.modelState)&&(i=!0),(0,O.triggerCallbackIfExists)(Re,"changeValue",Le,Re.value,n,Re),i&&Re.model.state&&(r.modelState=Re.model.state,(0,O.triggerCallbackIfExists)(Re,"changeState",Le,Re.model.state,n,Re)),(Ye||-1!==t)&&(0,O.triggerCallbackIfExists)(Re,"select",Le,n,Re),r})},a=!Le&&Re.model.trim;if(Re.representation=-1!==t?Ue[t]:"string"==typeof Re.value?Re.value:(0,O.formatValue)(Re,Re.value,ye),We)if(Re.suggestionCreator){var l=new AbortController,u=function(e){if(!l.signal.aborted){if(Ce(function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e}),-1===t){var n=(0,O.getValueFromSelection)(Re.representation,(0,O.normalizeSelection)(e));null!==n||Re.searchSelection?Re.value=n:Re.value=(0,O.parseValue)(Re,Re.representation,ye,a)}i()}},c=Re.suggestionCreator({abortController:l,properties:Re,query:Re.representation});null!=c&&c.then?(Ce(function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l}),Pe(function(e){return o()({},e,{representation:Re.representation})}),c.then(u,function(){})):u(c)}else{if(-1===t){var d=(0,O.getValueFromSelection)(Re.representation,Ae);null!==d||Re.searchSelection?Re.value=d:Re.value=(0,O.parseValue)(Re,Re.representation,ye,a)}i()}else Re.value=(0,O.parseValue)(Re,Re.value,ye,a),i()},D=function(e){k(e),(0,O.triggerCallbackIfExists)(Re,"click",Le,e,Re),j(e)},M=function(e){(0,O.triggerCallbackIfExists)(Re,"focus",Le,e,Re),j(e)},k=function(e){(0,O.triggerCallbackIfExists)(Re,"selectionChange",Le,e,Re)},j=function(e){Pe(function(t){var n=!1;t.modelState.focused||(Re.focused=!0,n=!0),t.modelState.untouched&&(Re.touched=!0,Re.untouched=!1,n=!0);var r=t;return n&&(N(e),r=o()({},t,{modelState:Re.model.state}),(0,O.triggerCallbackIfExists)(Re,"changeState",Le,Re.model.state,e,Re)),(0,O.triggerCallbackIfExists)(Re,"touch",Le,e,Re),r})},F=(0,l.useRef)(null),U=(0,l.useRef)(null),V=(0,l.useRef)(null),W=(0,O.translateKnownSymbols)(e),q=(0,l.useState)({end:0,start:0}),H=q[0],z=q[1],$=(0,l.useState)({editorIsActive:W.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),G=$[0],X=$[1],Y=(0,l.useState)(),Q=Y[0],J=Y[1],ee=(0,l.useState)(!1),ue=ee[0],ce=ee[1],de=(0,l.useState)(!1),fe=de[0],pe=de[1],me=(0,O.determineInitialValue)(W,ve.defaultProperties.model.default);me instanceof Date&&(me=me.getTime()/1e3);var _e=(0,s.extend)(!0,(0,s.copy)(ve.defaultProperties),W),ge=_e.type||(null==(r=_e.model)?void 0:r.type)||"string",ye=_e.transformer?o()({},ve.transformer,((u={})[ge]=(0,s.extend)(!0,(0,s.copy)(ve.transformer[ge])||{},_e.transformer),u)):ve.transformer,be=(0,l.useState)(),Ee=be[0],Ce=be[1];(_e.selection||null!=(h=_e.model)&&h.selection)&&(Ee=_e.selection||(null==(m=_e.model)?void 0:m.selection)),Ee||"boolean"!==(_e.type||(null==(g=_e.model)?void 0:g.type))||(Ee=[{label:"No",value:!1},{label:"Yes",value:!0}]);var xe,Ae=Ee instanceof AbortController?[]:(0,O.normalizeSelection)(Ee,_e.labels),Ie=Ee instanceof AbortController?[[],[]]:(0,O.getLabelAndValues)(Ae),Oe=Ie[0],Te=Ie[1],Se=(0,l.useState)(function(){return{modelState:o()({},ve.defaultModelState),representation:(0,O.determineInitialRepresentation)(_e,ve.defaultProperties,me,ye,Ae),value:me}}),we=Se[0],Pe=Se[1],Le=!_e.enforceUncontrolled&&(void 0!==(null==(y=W.model)?void 0:y.value)||void 0!==W.value)&&Boolean(W.onChange||W.onChangeValue),Ne=Le&&void 0!==W.representation;null!==_e.cursor&&"object"==typeof _e.cursor||(_e.cursor={}),void 0===_e.cursor.end&&(_e.cursor.end=H.end),void 0===_e.cursor.start&&(_e.cursor.start=H.start),void 0===_e.editorIsActive&&(_e.editorIsActive=G.editorIsActive),void 0===_e.hidden&&(_e.hidden=Q),void 0===_e.representation&&(_e.representation=we.representation),void 0===_e.showDeclaration&&(_e.showDeclaration=fe),(0,O.deriveMissingPropertiesFromState)(_e,we),void 0===_e.value?void 0===_e.representation&&void 0===(null==(xe=_e.model)?void 0:xe.value)&&(_e.representation=we.representation):Ne||_e.value===we.value||(_e.representation=void 0);var Re=L(_e);void 0===Re.hidden&&(Re.hidden=Re.name.startsWith("password")),Re.cursor&&!(0,s.equals)(Re.cursor,H)&&z(Re.cursor),Re.editorIsActive!==G.editorIsActive&&X(o()({},G,{editorIsActive:Re.editorIsActive})),Re.hidden!==Q&&J(Re.hidden),Re.showDeclaration!==fe&&pe(Re.showDeclaration);var De={modelState:Re.model.state,representation:Re.representation,value:null!==(E=Re.value)&&void 0!==E?E:null};(Le||(0,s.equals)(Re.value,we.value)&&Re.representation===we.representation)&&(0,s.equals)(Re.model.state,we.modelState)||Pe(De),Le&&(Pe=(0,O.wrapStateSetter)(Pe,De)),(0,l.useImperativeHandle)(t,function(){for(var e,t={modelState:Re.model.state},n=he(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r,o=e.value;Object.prototype.hasOwnProperty.call(W,o)||(t[o]=null!==(r=Re[o])&&void 0!==r&&r)}return Ne||(t.representation=Re.representation),Le||(t.value=Re.value),{properties:Re,references:{input:F,menu:V,wrapper:U},state:t}});var Me={ref:F,id:T,componentProperties:Re.componentProperties,domNodeProperties:Re.domNodeProperties,onClick:D,onFocus:function(e){ce(!0),M(e)},disabled:Re.disabled,invalid:Re.invalid&&Re.showValidationState&&(Re.showInitialValidationState||Re.visited),helpText:{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c(),{in:Re.selectableEditor&&"string"===Re.type&&"plain"!==Re.editor,children:(0,_.jsx)(p.A,{classNames:[Re.editor.startsWith("code")?oe.textInputCodeEditorButton:oe.textInputRichtextEditorButton],domNodeProperties:{"aria-label":Re.editorIsActive?"plain":Re.editor.startsWith("code")?"code":"richtext"},icon:Re.editorIsActive?"subject":Re.editor.startsWith("code")?"code":"text_format",onClick:function(e){e.preventDefault(),e.stopPropagation(),X(function(t){var n=t.editorIsActive;return Re.editorIsActive=!n,N(e),(0,O.triggerCallbackIfExists)(Re,"changeEditorIsActive",Le,Re.editorIsActive,e,Re),{editorIsActive:Re.editorIsActive,selectionIsUnstable:!0}})}})}),(0,_.jsx)(c(),{in:Boolean(Re.declaration),children:(0,_.jsx)(p.A,{"aria-expanded":Re.showDeclaration?"true":"false","aria-label":"declaration",value:Re.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:function(e){pe(function(t){return Re.showDeclaration=!t,N(e),(0,O.triggerCallbackIfExists)(Re,"changeShowDeclaration",Le,Re.showDeclaration,e,Re),Re.showDeclaration})}})}),(0,_.jsx)(c(),{id:T+"-declaration",in:Re.showDeclaration,children:Re.declaration}),(0,_.jsx)(c(),{in:!Re.showDeclaration&&Re.invalid&&Re.showValidationState&&(Re.showInitialValidationState||Re.visited),children:(0,_.jsx)(d.A,{applyToChildren:!0,children:(0,_.jsx)("span",{id:T+"-error-message",children:(0,O.renderMessage)(Re.invalidMaximum&&Re.maximumText||Re.invalidMaximumLength&&Re.maximumLengthText||Re.invalidMinimum&&Re.minimumText||Re.invalidMinimumLength&&Re.minimumLengthText||Re.invalidInvertedPattern&&Re.invertedPatternText||Re.invalidPattern&&Re.patternText||Re.invalidRequired&&Re.requiredText,o()({formatValue:function(e){return(0,O.formatValue)(Re,e,ye)}},Re))})})})]}),persistent:!0},name:Re.name||Re.description,label:Re.description||Re.name},ke={placeholder:Re.placeholder,characterCount:"number"==typeof Re.maximumLength&&!isNaN(Re.maximumLength)&&Re.maximumLength>=0,value:Re.representation,domNodeProperties:o()({"tab-index":Re.disabled?"0":"-1"},Re.domNodeProperties),onKeyUp:function(e){e.code&&(k(e),(0,O.triggerCallbackIfExists)(Re,"keyUp",Le,e,Re))}},je=!Re.selection&&"string"===Re.type&&Re.editorIsActive&&("code"===Re.editor||Re.editor.startsWith("code(")&&Re.editor.endsWith(")")||"richtext"===Re.editor||Re.editor.startsWith("richtext(")&&Re.editor.endsWith(")")),Fe=je&&Re.editor.startsWith("code"),Be=[],Ue=[],Ve=[],We=Boolean(Re.suggestionCreator||Oe.length&&(Re.searchSelection||Re.suggestSelection));if(We&&Oe.length){Re.suggestSelection=!Re.searchSelection;for(var qe,He=0,Ke=he(Oe);!(qe=Ke()).done;){var ze=qe.value;if((0,s.isFunction)(Re.children)){var $e=Re.children({index:He,normalizedSelection:Ae,properties:Re,query:Re.representation,suggestion:ze,value:Te[He]});$e&&(Be.push($e),Ue.push(ze),Ve.push(Te[He]))}else if(!Re.representation||Re.suggestionCreator||le(ze,Re.representation)){var Ge,Xe=(0,s.mark)(ze,(null==(Ge=Re.representation)?void 0:Ge.split(" "))||"",{marker:function(e){return[e]},skipTagDelimitedParts:null}).map(function(e,t){return Array.isArray(e)?(0,_.jsx)("span",{className:oe.textInputSuggestionsSuggestionMark,children:e[0]},t):(0,_.jsx)("span",{children:e},t)});Be.push(Xe),Ue.push(ze),Ve.push(Te[He])}He+=1}}var Ye=(Boolean(Ae)||Boolean(Re.labels))&&!We,Qe={};"number"===Re.type?(Qe.step=Re.step,Re.maximum!==1/0&&(Qe.max=Re.maximum),Re.minimum!==-1/0&&(Qe.min=Re.minimum)):"string"===Re.type?(Re.maximumLength>=0&&Re.maximumLength!==1/0&&(Qe.maximumLength=Re.maximumLength),Re.minimumLength>0&&(Qe.minimumLength=Re.minimumLength),"plain"!==Re.editor&&(Qe.rows=Re.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(Re.type)&&(Qe.step=Re.step,Re.maximum!==1/0&&(Qe.max=(0,O.formatValue)(Re,Re.maximum,ye)),Re.minimum!==-1/0&&(Qe.min=(0,O.formatValue)(Re,Re.minimum,ye)));var Je={};if(je)if(Re.editor.startsWith("code(")&&Re.editor.endsWith(")")){var Ze=Re.editor.substring(5,Re.editor.length-1);Ze&&(Je.editor={},i.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(Ze.toLowerCase())?Je.editor.mode=(0,i.javascript)({jsx:!0,typescript:!0}):a.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(Ze.toLowerCase())&&(Je.editor.mode=(0,a.css)()))}else Je.editor=ie;return(0,_.jsx)(A.default,{strict:ve.strict,themeConfiguration:Re.themeConfiguration,tooltip:Re.tooltip,children:(0,_.jsxs)("div",o()({ref:U,className:[oe.textInput].concat(Re.className).join(" "),style:Re.styles,onBlur:function(e){Pe(function(t){var n;if(e.relatedTarget&&null!=(n=U.current)&&n.contains(e.relatedTarget))return t;ce(!1);var r=!1,o=!1;if(t.modelState.focused&&(Re.focused=!1,r=!0,o=!0),t.modelState.visited||(Re.visited=!0,r=!0,o=!0),!We||Re.suggestSelection){var i=(0,O.getValueFromSelection)(Re.representation,Ae);null===i?(Re.value=(0,O.parseValue)(Re,Re.value,ye,Re.model.trim),Re.representation=(0,O.formatValue)(Re,Re.value,ye)):Re.value=i}return(0,s.equals)(t.value,Re.value)&&t.representation===Re.representation||(r=!0),r&&N(e),(0,s.equals)(t.value,Re.value)||(0,O.triggerCallbackIfExists)(Re,"changeValue",Le,Re.value,e,Re),o&&(0,O.triggerCallbackIfExists)(Re,"changeState",Le,Re.model.state,e,Re),(0,O.triggerCallbackIfExists)(Re,"blur",Le,e,Re),r?{modelState:Re.model.state,representation:Re.representation,value:Re.value}:t})},onKeyDown:function(e){var t,n;!Re.disabled&&We&&"ArrowDown"===e.code&&e.target===(null==(t=F.current)||null==(t=t.input)?void 0:t.current)&&(null==(n=V.current)||n.focusItem(0)),(Ye||"string"===Re.type&&"plain"!==Re.editor)&&se(e),(0,O.triggerCallbackIfExists)(Re,"keyDown",Le,e,Re)}},We?{role:"search"}:{},{children:[w((0,_.jsx)(b,o()({},Me,{name:Re.name,onChange:R,onClick:D,onKeyDown:function(e){Re.disabled||"Tab"===e.code||e.preventDefault()},options:Ae,value:Re.value})),Ye),je?Fe?w((0,_.jsx)(K,o()({},Me,ke,Qe,{onChange:R},Je,{ref:F})),je):(0,_.jsx)(Z,o()({},Me,ke,Qe,{onChange:R},Je,{ref:F})):"",w((0,_.jsxs)("div",{children:[We?(0,_.jsx)(v,{ref:V,onKeyDown:se,pending:Ee instanceof AbortController,classNames:[oe.textInputSuggestions],itemClassNames:[oe.textInputSuggestionsSuggestion],pendingClassNames:[oe.textInputSuggestionsPending],onFocus:M,onSelect:function(e){R(Ve[e.detail.index],e.detail.index),ce(!1)},open:Boolean(Ue.length)&&ue&&!(1===Ue.length&&Ue[0]===Re.representation),options:Be}):"","string"===Re.type&&"plain"!==Re.editor?(0,_.jsx)(B,o()({},Me,ke,Qe,{ref:F,onChange:R})):(0,_.jsx)(x,o()({},Me,ke,Qe,{onChange:R,leadingIcon:P(S(Re.leadingIcon)),trailingIcon:P(S(Re.trailingIcon)),type:function(e){var t,n;return"string"===e.type?e.hidden?"password":We?"search":"text":null!==(t=null==(n=ye[e.type])?void 0:n.type)&&void 0!==t?t:e.type}(Re)}))]}),!(je||Ye),Re.editor.startsWith("code"))]}))})};_e.displayName="TextInput";var ve=(0,l.memo)((0,l.forwardRef)(_e));ve.wrapped=_e,ve.webComponentAdapterWrapped="react",ve.defaultModelState=ue.defaultModelState,ve.defaultProperties=o()({},ue.defaultProperties,{cursor:void 0,model:o()({},ue.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),ve.locales=s.LOCALES,ve.propTypes=ue.propertyTypes,ve.renderProperties=ue.renderProperties,ve.strict=!1,ve.transformer=pe;var ge=ve},function(e){e.exports=I},function(e,t,n){n.d(t,{WrapStrict:function(){return i}});var r=n(2),o=n(1),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(6),o=n(1),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=O},function(e){e.exports=n},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=E},function(e,t,n){var r=n(0),o=n.n(r),i=n(24),a=n(2),s=n(1),l=(0,a.forwardRef)(function(e,t){var n=e.componentProperties,r=e.size;return(0,s.jsx)(i.CircularProgress,o()({ref:t,size:null==r?void 0:r.replace("extra-small","xsmall").replace("extra-large","xlarge")},n))});t.A=l},function(e,t,n){var r=n(0),o=n.n(r),i=n(27),a=n(2),s=n(9),l=n(1),u=(0,a.forwardRef)(function(e,t){var n,r,a,u=(0,s.useMemorizedValue)({});return(0,l.jsx)(i.Icon,o()({className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles},null!==(r=e.componentProperties)&&void 0!==r?r:u,{onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onFocus:e.onFocus,onBlur:e.onBlur,icon:(0,s.useMemorizedValue)({icon:e.icon,size:null==(a=e.size)?void 0:a.replace("extra-small","xsmall").replace("extra-large","xlarge"),strategy:e.strategy},e.icon,e.size,e.strategy),ref:t}))});t.A=u},function(e,t,n){var r=n(0),o=n.n(r),i=n(28),a=n(2),s=n(9),l=n(1),u=(0,a.forwardRef)(function(e,t){var n,r,u,c=(0,a.useRef)(null),d=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,function(){return{base:c,foundation:d}});var f=null==(n=e.size)?void 0:n.replace("extra-small","xsmall").replace("extra-large","xlarge"),p=(0,s.useMemorizedValue)({});return(0,l.jsx)(i.IconButton,o()({checked:e.value,disabled:e.disabled,className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,icon:(0,s.useMemorizedValue)({icon:e.icon,size:f,strategy:e.strategy},e.icon,f,e.strategy),onIcon:(0,s.useMemorizedValue)({icon:e.onIcon||e.icon,size:f,strategy:e.strategy},e.onIcon,e.icon,f,e.strategy),onClick:e.onClick,onChange:e.onChange,ref:c,foundationRef:d},null!==(u=e.componentProperties)&&void 0!==u?u:p))});t.A=u},function(e){e.exports=v},function(e){e.exports=l},function(e){e.exports=a},function(e){e.exports=g},function(e){e.exports=h},function(e){e.exports=y},function(e){e.exports=b},function(e){e.exports=x},function(e){e.exports=i},function(e){e.exports=o},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=d},function(e){e.exports=c},function(e){e.exports=m},function(e){e.exports=p},function(e){e.exports=T},function(e){e.exports=w},function(e){e.exports=k},function(e){e.exports=q},function(e){e.exports=M},function(e,t,n){var r=n(6),o=n(2),i=n(1),a=(0,o.forwardRef)(function(e,t){var n=e.children,o=e.applyToChildren;return(0,i.jsx)(r.Theme,{ref:t,use:"error",wrap:o,children:n})});t.A=a},,function(e,t,n){n.d(t,{RepresentationType:function(){return u},defaultFileNameInputProperties:function(){return v},defaultModelState:function(){return m},defaultProperties:function(){return g},propertyTypes:function(){return h},renderProperties:function(){return c}});var r=n(0),o=n.n(r),i=n(5),a=n(3),s=n(7),l=n(4),u=function(e){return e.BINARY="binary",e.IMAGE="image",e.EMBEDABLE_TEXT="embedableText",e.TEXT="text",e.VIDEO="video",e}({}),c=["children","generateFileNameInputProperties"],d={contentTypePattern:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),invertedContentTypePattern:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),maximumSize:a.number,minimumSize:a.number},f=o()({},l.modelPropertyTypes,d,{fileName:(0,a.shape)(s.propertyTypes)}),p=o()({},l.modelStatePropertyTypes,{invalidContentTypePattern:(0,a.oneOfType)([a.boolean,a.symbol]),invalidInvertedContentTypePattern:(0,a.oneOfType)([a.boolean,a.symbol]),invalidMaximumSize:(0,a.oneOfType)([a.boolean,a.symbol]),invalidMinimumSize:(0,a.oneOfType)([a.boolean,a.symbol]),invalidName:(0,a.oneOfType)([a.boolean,a.symbol])}),h=o()({},l.propertyTypes,d,p,{children:a.func,contentTypePatternText:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),invertedContentTypePatternText:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),maximumSizeText:a.string,minimumSizeText:a.string,model:(0,a.shape)(f),deleteButton:(0,a.oneOfType)([a.object,a.string]),downloadButton:(0,a.oneOfType)([a.object,a.string]),editButton:(0,a.oneOfType)([a.object,a.string]),newButton:(0,a.oneOfType)([a.object,a.string]),encoding:a.string,generateFileNameInputProperties:a.func,onBlur:a.func,outlined:a.boolean}),m=o()({},l.defaultModelState,{invalidContentTypePattern:!1,invalidInvertedContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),_=o()({},l.defaultModel,{contentTypePattern:/^.+\/.+$/,invertedContentTypePattern:void 0,fileName:o()({},s.defaultInputModel,{maximumLength:1024,name:"Name",pattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:m}),v=o()({},s.defaultProperties,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',required:!0});delete v.model;var g=o()({},l.defaultProperties,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: "${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: "${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",requiredText:"Please select a file.",deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:i.identity,model:o()({},_),sourceToBlobOptions:{endings:"transparent",type:"text/plain"},hashingConfiguration:{binaryString:!1,prefix:"",readChunkSizeInByte:2097152}})},,,,function(e){e.exports=j},,,,function(e){e.exports=B},function(e){e.exports=f}],R={};function D(e){var t=R[e];if(void 0!==t)return t.exports;var n=R[e]={exports:{}};return L[e](n,n.exports,D),n.exports}D.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return D.d(t,{a:t}),t},D.d=function(e,t){for(var n in t)D.o(t,n)&&!D.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},D.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},D.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var F={};D.r(F),D.d(F,{CSS_CLASS_NAMES:function(){return de},EMBEDABLE_TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return he},FileInput:function(){return Ce},FileInputInner:function(){return Ee},IMAGE_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return fe},TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return pe},VIDEO_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return me},default:function(){return xe},deriveBase64String:function(){return ye},determineRepresentationType:function(){return ve},determineValidationState:function(){return ge},preserveStaticFileBaseNameInputGenerator:function(){return _e},readBinaryDataIntoText:function(){return be}});var U=D(18),V=D.n(U),W=D(0),H=D.n(W),K=D(19),z=D.n(K),$=D(51),G=D(5),X=D(2),Y=D(55),Q=D(13),J=D(6),Z=D(56),ee=D(20),te=D.n(ee),ne=function(e){return e.IMAGE="image",e.IFRAME="iframe",e.TEXT="text",e.VIDEO="video",e.PENDING="pending",e}({}),re=D(21),oe=D(1),ie={fileInput:"file-input",mdcTypographyHeadline6:"mdc-typography--headline6",mdcTypographySubtitle2:"mdc-typography--subtitle2",fileInputInfo:"file-input__info",fileInputInfoBody:"file-input__info__body",fileInputDownload:"file-input__download",textInput:"text-input",mdcTextField:"mdc-text-field",fileInputIframeWrapper:"file-input__iframe-wrapper",fileInputTextRepresentation:"file-input__text-representation",fileInputIframeWrapperPadding:"file-input__iframe-wrapper--padding"},ae=(0,X.memo)((0,X.forwardRef)(function(e,t){var n,r,o,i,a,s=(0,X.useId)(),l=null!==(n=e.id)&&void 0!==n?n:s,u=(0,X.useRef)(null),c=(0,X.useRef)(null),d=(0,X.useRef)(null),f=(0,X.useRef)(null),p=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,function(){return{card:u,iFrame:c,deleteButton:d,downloadLink:f,uploadButton:p}});var h,m,_,v=e.description?e.description:e.name;return(0,oe.jsxs)(Z.Card,{ref:u,className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,onBlur:e.onBlur,onClick:e.onClick,onFocus:e.onFocus,children:[(0,oe.jsxs)(Z.CardPrimaryAction,{children:[e.type===ne.PENDING?(0,oe.jsx)(re.A,{size:"large"}):e.type===ne.IMAGE&&e.url?(0,oe.jsx)(Z.CardMedia,{sixteenByNine:!0,className:null==(h=e.imageClassNames)?void 0:h.join(" "),style:{backgroundImage:"url("+e.url+")"}}):e.type===ne.VIDEO?(0,oe.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,oe.jsx)("source",{src:e.url,type:e.contentType})}):e.type===ne.IFRAME?(0,oe.jsx)("div",{className:[ie.fileInputIframeWrapper].concat(["text/html","text/plain"].includes(e.contentType)?ie.fileInputIframeWrapperPadding:[]).concat(null!==(m=e.iframeWrapperClassNames)&&void 0!==m?m:[]).join(" "),children:(0,oe.jsx)("iframe",{ref:c,style:{border:0,overflow:"hidden"},src:e.url})}):e.type===ne.TEXT?(0,oe.jsx)("pre",{className:[ie.fileInputTextRepresentation].concat(null!==(_=e.textRepresentationClassNames)&&void 0!==_?_:[]).join(" "),children:e.content}):"",(0,oe.jsxs)("div",{className:[ie.fileInputInfo].concat(null!==(o=e.infoClassNames)&&void 0!==o?o:[]).join(" "),children:[(0,oe.jsx)(Q.Typography,{tag:"h2",use:"headline6",children:e.invalid?(0,oe.jsx)(J.Theme,{use:"error",children:v}):v}),(0,oe.jsx)(te(),{in:e.invalid||Boolean(e.declaration),children:(0,oe.jsxs)("div",{className:[ie.fileInputInfoBody].concat(null!==(i=e.infoBodyClassNames)&&void 0!==i?i:[]).join(" "),children:[e.declaration?(0,oe.jsx)(Q.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:e.invalid?(0,oe.jsx)(J.Theme,{use:"error",children:e.declaration}):e.declaration}):"",(0,oe.jsx)(J.Theme,{use:"error",wrap:!0,children:(0,oe.jsx)("span",{id:l+"-error-message",children:e.errorMessage})})]})}),e.children]})]}),!e.disabled&&(e.empty?e.newButton:e.editButton)||!e.empty&&(!e.disabled&&e.deleteButton||e.url&&e.downloadButton)?(0,oe.jsx)(Z.CardActions,{children:(0,oe.jsxs)(Z.CardActionButtons,{children:[!e.disabled&&(e.empty?e.newButton:e.editButton)?(0,oe.jsx)(Z.CardActionButton,{onClick:e.onClickAddOrEdit,ref:p,children:e.empty?e.newButton:e.editButton}):"",e.empty?"":(0,oe.jsxs)(oe.Fragment,{children:[!e.disabled&&e.deleteButton?(0,oe.jsx)(Z.CardActionButton,{onClick:function(){e.onChange&&e.onChange()},ref:d,children:e.deleteButton}):"",e.url&&e.downloadButton?(0,oe.jsx)(Z.CardActionButton,{onClick:function(){var e;null==(e=f.current)||e.click()},children:(0,oe.jsx)("a",H()({className:[ie.fileInputDownload].concat(null!==(a=e.downloadLinkClassNames)&&void 0!==a?a:[]).join(" "),download:e.fileName,href:e.url,ref:f,target:"_blank"},e.contentType?{type:e.contentType}:{},{children:e.downloadButton}))}):""]})]})}):""]})})),se=D(12),le=D(10),ue=D(11),ce=D(47),de={fileInput:"file-input",fileInputNative:"file-input__native"},fe=/^image\/(?:p?jpe?g|png|svg(?:\+xml)?|vnd\.microsoft\.icon|gif|tiff|webp|vnd\.wap\.wbmp|x-(?:icon|jng|ms-bmp))$/i,pe=/^(?:application\/(?:json|xml))|(?:text\/(?:plain|x-ndpb[wy]html|javascript|x?html?|xml|(?:(?:x-)?(?:csv|python-script))))$/i,he=/^text\/plain$/i,me=/^video\/(?:(?:x-)?(?:x-)?webm|3gpp|mp2t|mp4|mpeg|quicktime|(?:x-)?flv|(?:x-)?m4v|(?:x-)mng|x-ms-as|x-ms-wmv|x-msvideo)|(?:application\/(?:x-)?shockwave-flash)$/i,_e=function(e,t){var n,r=t.name,o=t.value;return H()({},e,{disabled:!0,value:r+(null!=o&&null!=(n=o.name)&&n.includes(".")?o.name.substring(o.name.lastIndexOf(".")).toLowerCase():"")})},ve=function(e){return e=e.replace(/; *charset=.+$/,""),pe.test(e)?ce.RepresentationType.TEXT:he.test(e)?ce.RepresentationType.EMBEDABLE_TEXT:fe.test(e)?ce.RepresentationType.IMAGE:me.test(e)?ce.RepresentationType.VIDEO:ce.RepresentationType.BINARY},ge=function(e,t,n){return(0,ue.determineValidationState)(e,n,{invalidMaximumSize:function(){var t;return"number"==typeof e.model.maximumSize&&e.model.maximumSize<((null==(t=e.model.value)||null==(t=t.blob)?void 0:t.size)||0)},invalidMinimumSize:function(){var t;return"number"==typeof e.model.minimumSize&&e.model.minimumSize>((null==(t=e.model.value)||null==(t=t.blob)?void 0:t.size)||0)},invalidName:function(){return t},invalidContentTypePattern:function(){var t,n;return Boolean(e.model.contentTypePattern)&&"string"==typeof(null==(t=e.model.value)||null==(t=t.blob)?void 0:t.type)&&[].concat(null!==(n=e.model.contentTypePattern)&&void 0!==n?n:[]).some(function(t){var n,r;return"string"==typeof t&&!new RegExp(t).test((null==(n=e.model.value)?void 0:n.blob).type)||"object"==typeof t&&!t.test((null==(r=e.model.value)?void 0:r.blob).type)})},invalidInvertedContentTypePattern:function(){var t,n;return Boolean(e.model.invertedContentTypePattern)&&"string"==typeof(null==(t=e.model.value)||null==(t=t.blob)?void 0:t.type)&&[].concat(null!==(n=e.model.invertedContentTypePattern)&&void 0!==n?n:[]).some(function(t){var n,r;return"string"==typeof t&&new RegExp(t).test((null==(n=e.model.value)?void 0:n.blob).type)||"object"==typeof t&&t.test((null==(r=e.model.value)?void 0:r.blob).type)})}})},ye=function(e){return e.blob?(0,$.blobToBase64String)(e.blob):e.source?Promise.resolve(Buffer.from(e.source).toString("base64")):Promise.reject(new Error("Base 64 string could not be determined."))},be=function(e,t){return void 0===t&&(t="utf-8"),new Promise(function(n,r){var o=new FileReader;o.onload=function(e){var r=e.target.result;r.length&&t.endsWith("-sig")&&65279===r.charCodeAt(0)&&(r=r.slice(1)),r=r.replace(/\r\n/g,"\n"),n(r)},o.onabort=function(){r(new Error("abort"))},o.onerror=function(){r(new Error)},o.readAsText(e,t.endsWith("-sig")?t.substring(0,t.length-4):t)})},Ee=function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h=function(e){var t=(0,ue.mapPropertiesIntoModel)(e,Ce.defaultProperties.model);return ge(t,!1,t.model.state),(0,ue.getConsolidatedProperties)(t)},m=(0,X.useRef)(null),_=(0,X.useRef)(null),v=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,function(){return{properties:P,references:{fileInput:m,mediaCard:_,nameInput:v},state:H()({modelState:P.model.state},w?{}:{value:P.value})}});var g=function(e){var t;null!=(t=v.current)&&t.properties&&(P.model.fileName=v.current.properties.model);var n=h(P);delete P.model.value,delete P.value,P.styles=(0,G.copy)(P.styles),(0,G.extend)(!0,P,n),(0,ue.triggerCallbackIfExists)(P,"change",w,P,e)},y=function(e,t,n,r){if(void 0===r&&(r=!1),P.model.mutable&&P.model.writable){if(e&&m.current&&e.target===m.current){var o;if(null==(o=(t=e).target.files)||!o.length)return;var i,a=t.target.files[0];P.value={blob:a,name:a.name},P.value.name=(null==(i=P.generateFileNameInputProperties(H()({disabled:P.disabled,value:a.name},ce.defaultFileNameInputProperties,{model:P.model.fileName,onChangeValue:y,default:P.value.name}),P))?void 0:i.value)||a.name}S(function(n){var o;if(void 0===e?P.value=null:"string"==typeof e?P.value=H()({},n.value,{name:e}):"string"!=typeof e.source&&"string"!=typeof e.url||(P.value=r?H()({},n.value,e):e),(0,G.equals)(n.value,P.value))return n;var i=!1,a=H()({},n,{value:P.value});return n.modelState.pristine&&(P.dirty=!0,P.pristine=!1,i=!0),g(t),ge(P,(null==(o=v.current)||null==(o=o.properties)?void 0:o.invalid)||!1,n.modelState)&&(i=!0),(0,ue.triggerCallbackIfExists)(P,"changeValue",w,P.value,t,P),i&&(a.modelState=P.model.state,(0,ue.triggerCallbackIfExists)(P,"changeState",w,P.model.state,t,P)),r&&(a.attachBlobProperty=!0),a})}},b=function(e){S(function(t){var n=!1;t.modelState.focused||(P.focused=!0,n=!0),t.modelState.untouched&&(P.touched=!0,P.untouched=!1,n=!0);var r=t;return n&&(g(e),r=H()({},t,{modelState:P.model.state}),(0,ue.triggerCallbackIfExists)(P,"changeState",w,P.model.state,e,P)),(0,ue.triggerCallbackIfExists)(P,"touch",w,e,P),r})},E=(0,ue.translateKnownSymbols)(e),C=E.default||(null==(n=E.model)?void 0:n.default),x=C&&Object.keys(C).length?Object.keys(C)[0]:null,A=(0,ue.determineInitialValue)(H()({},E,{default:C&&x?C[x]:null}),Ce.defaultProperties.model.default&&Object.keys(Ce.defaultProperties.model.default).length?Object.values(Ce.defaultProperties.model.default)[0]:void 0),I=(0,G.extend)(!0,(0,G.copy)(Ce.defaultProperties),E);x&&null!=(r=I.model)&&r.fileName&&!I.model.fileName.default&&(I.model.fileName.default=x);var O=(0,X.useState)({attachBlobProperty:!1,modelState:H()({},Ce.defaultModelState),value:A}),T=O[0],S=O[1],w=!I.enforceUncontrolled&&(void 0!==(null==(o=E.model)?void 0:o.value)||void 0!==E.value)&&Boolean(E.onChange||E.onChangeValue);(0,ue.deriveMissingPropertiesFromState)(I,T);var P=h(I);T.attachBlobProperty&&T.value&&P.value&&(P.value=(0,G.extend)(!0,T.value,P.value));var L={attachBlobProperty:!1,modelState:P.model.state,value:P.value};!T.attachBlobProperty&&(w||(0,G.equals)(P.value,T.value))&&(0,G.equals)(P.model.state,T.modelState)||S(L),w&&(S=(0,ue.wrapStateSetter)(S,L));var N=(0,X.useId)(),R=null!==(i=P.id)&&void 0!==i?i:N;(0,X.useEffect)(function(){V()(z().mark(function e(){var t,n,r,o,i,a,s,l,u,c,d,f,p,h,m,_;return z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},null==(t=P.value)||!t.source){e.next=4;break}if(P.value.blob){e.next=1;break}null!=(r=P.value.url)&&r.startsWith("data:")?n.blob=(0,$.dataURLToBlob)(P.value.url):P.sourceToBlobOptions&&(n.blob=new Blob([P.value.source],P.sourceToBlobOptions)),e.next=3;break;case 1:if(P.value.url){e.next=3;break}return h="data:"+(D||"text/plain")+";charset="+P.encoding+";base64,",e.next=2,ye(P.value);case 2:m=e.sent,n.url=h+m;case 3:P.value.hash||(n.hash=P.hashingConfiguration.prefix+(0,Y.hash)(P.value.source)),e.next=14;break;case 4:if(!(null!=(o=P.value)&&o.blob&&P.value.blob instanceof Blob)){e.next=6;break}return s=P.value.blob,e.next=5,M===ce.RepresentationType.TEXT?be(s,P.encoding):ye(P.value);case 5:n.source=e.sent,e.next=12;break;case 6:if(null==(i=P.value)||!i.url){e.next=12;break}if(!P.value.url.startsWith("data:")){e.next=7;break}_=(0,$.dataURLToBlob)(P.value.url),e.next=9;break;case 7:return e.next=8,fetch(P.value.url);case 8:_=e.sent.blob();case 9:return e.next=10,_;case 10:if(s=e.sent,M!==ce.RepresentationType.TEXT){e.next=12;break}return e.next=11,be(s,P.encoding);case 11:n.source=e.sent;case 12:if(null!=(a=P.value)&&a.hash||!s){e.next=14;break}return l=0,u=P.hashingConfiguration.readChunkSizeInByte,c=Math.ceil(s.size/u),d=new Y.ArrayBuffer,f=new FileReader,e.next=13,new Promise(function(e,t){f.onload=function(t){var r;console.debug("Read chunk "+String(l+1)+" of "+String(c)+"."),d.append(null==(r=t.target)?void 0:r.result),++l<c?n():e(d.end(P.hashingConfiguration.binaryString))},f.onerror=t;var n=function(){var e=l*u,t=e+u>=s.size?s.size:e+u;f.readAsArrayBuffer(s.slice(e,t))};n()});case 13:p=e.sent,n.hash=P.hashingConfiguration.prefix+p;case 14:Object.keys(n).length>0&&y(n,void 0,void 0,!0);case 15:case"end":return e.stop()}},e)}))().catch(function(e){console.warn(e)})}),(0,X.useEffect)(function(){P.triggerInitialPropertiesConsolidation&&g()},[]);var D=null!==(a=function(e){if(e.value){var t,n;if(null!=(t=e.value.blob)&&t.type)return e.value.blob.type;if(null!=(n=e.value.url)&&n.startsWith("data:")){var r=e.value.url.match(/^data:([^/]+\/[^;]+).*$/);if(r)return r[1]}}return null}(P))&&void 0!==a?a:"application/binary",M=D?ve(D):ce.RepresentationType.BINARY,k=P.invalid&&P.showValidationState&&(P.showInitialValidationState||P.visited),j=P.triggerInitialPropertiesConsolidation;return(0,oe.jsx)(le.WrapConfigurations,{strict:Ce.strict,themeConfiguration:P.themeConfiguration,tooltip:P.tooltip,children:(0,oe.jsxs)(ae,{ref:_,id:e.id,classNames:[de.fileInput].concat(P.className),imageClassNames:P.imageClassNames,styles:P.styles,deleteButton:P.deleteButton,downloadButton:P.downloadButton,editButton:P.editButton,newButton:P.newButton,fileName:null==(s=P.value)?void 0:s.name,type:null!=(l=P.value)&&l.url?M===ce.RepresentationType.IMAGE?ne.IMAGE:M===ce.RepresentationType.VIDEO?ne.VIDEO:M===ce.RepresentationType.EMBEDABLE_TEXT?ne.IFRAME:M===ce.RepresentationType.TEXT?ne.TEXT:void 0:null!=(u=P.value)&&u.blob&&P.value.blob instanceof Blob?ne.PENDING:void 0,disabled:P.disabled,invalid:k,empty:!P.value,description:P.description,name:P.name,errorMessage:(0,ue.renderMessage)(P.invalidContentTypePattern&&P.contentTypePatternText||P.invalidInvertedContentTypePattern&&P.invertedContentTypePatternText||P.invalidMaximumSize&&P.maximumSizeText||P.invalidMinimumSize&&P.minimumSizeText||P.invalidRequired&&P.requiredText,P),url:null==(c=P.value)?void 0:c.url,contentType:D,content:null==(d=P.value)?void 0:d.source,onBlur:function(e){S(function(t){var n=!1;return t.modelState.focused&&(P.focused=!1,n=!0),t.modelState.visited||(P.visited=!0,n=!0),n&&(g(e),(0,ue.triggerCallbackIfExists)(P,"changeState",w,P.model.state,e,P)),(0,ue.triggerCallbackIfExists)(P,"blur",w,e,P),n?H()({},t,{modelState:P.model.state}):t})},onClick:function(e){(0,ue.triggerCallbackIfExists)(P,"click",w,e,P),b(e)},onClickAddOrEdit:function(){var e;null==(e=m.current)||e.click()},onChange:y,onFocus:function(e){(0,ue.triggerCallbackIfExists)(P,"focus",w,e,P),b(e)},children:[(0,oe.jsx)("input",{disabled:P.disabled,className:[de.fileInputNative].concat(null!==(f=P.fileInputClassNames)&&void 0!==f?f:[]).join(" "),id:R,name:P.name,onChange:y,ref:m,type:"file"}),P.value?(0,oe.jsx)(se.default,H()({ref:v},P.generateFileNameInputProperties(H()({disabled:P.disabled,value:null==(p=P.value)?void 0:p.name},(0,G.mask)(ce.defaultFileNameInputProperties,{exclude:Object.keys(P.model.fileName)}),{default:P.value.name,model:P.model.fileName,onChangeValue:y,triggerInitialPropertiesConsolidation:j}),P))):"",P.children?P.children({declaration:P.declaration,invalid:k,properties:P,value:P.value}):""]})})};Ee.displayName="FileInput";var Ce=(0,X.memo)((0,X.forwardRef)(Ee));Ce.wrapped=Ee,Ce.webComponentAdapterWrapped="react",Ce.defaultModelState=ce.defaultModelState,Ce.defaultProperties=H()({},ce.defaultProperties,{model:H()({},ce.defaultProperties.model,{state:void 0,value:void 0}),value:void 0}),Ce.propTypes=ce.propertyTypes,Ce.renderProperties=ce.renderProperties,Ce.strict=!1;var xe=Ce;return F}())},,,,,,,,,,,,,,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__56__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__57__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__58__}],__webpack_module_cache__={};function __nested_webpack_require_133217__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_133217__),n.loaded=!0,n.exports}__nested_webpack_require_133217__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_133217__.d(t,{a:t}),t},__nested_webpack_require_133217__.d=function(e,t){for(var n in t)__nested_webpack_require_133217__.o(t,n)&&!__nested_webpack_require_133217__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_133217__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_133217__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_133217__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_133217__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __nested_webpack_exports__={};__nested_webpack_require_133217__.r(__nested_webpack_exports__),__nested_webpack_require_133217__.d(__nested_webpack_exports__,{FileInput:function(){return _FileInput}});var clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_133217__(0),clientnode_property_types__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_133217__.n(clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_133217__(42),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_133217__.n(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_133217__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default=__nested_webpack_require_133217__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__),_FileInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default()(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1___default(),"FileInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumSize:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumSize:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidContentTypePattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidInvertedContentTypePattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidName:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.string},unmountOnDisconnect:!1});return __nested_webpack_exports__.default=_FileInput,__nested_webpack_exports__}()},module.exports=t(__webpack_require__(20),__webpack_require__(15),__webpack_require__(6),__webpack_require__(26),__webpack_require__(19),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(84),__webpack_require__(110),__webpack_require__(76),__webpack_require__(24),__webpack_require__(82),__webpack_require__(64),__webpack_require__(85),__webpack_require__(86),__webpack_require__(48),__webpack_require__(49),__webpack_require__(47),__webpack_require__(47),__webpack_require__(121),__webpack_require__(11),__webpack_require__(0),__webpack_require__(75),__webpack_require__(47),__webpack_require__(83),__webpack_require__(47),__webpack_require__(47),__webpack_require__(47),__webpack_require__(1),__webpack_require__(113),__webpack_require__(10),__webpack_require__(7),__webpack_require__(61),__webpack_require__(40),__webpack_require__(41),__webpack_require__(42))}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__=__webpack_require__(129);return __webpack_exports__}()});
490
+ var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame(function(r){n.rafIDs.delete(e),t(r)});this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach(function(t,n){e.cancel(n)})},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach(function(t,n){e.push(n)}),e},e}()},function(e,t,n){n.r(t),n.d(t,{MDCCircularProgress:function(){return u},MDCCircularProgressFoundation:function(){return l},cssClasses:function(){return a},strings:function(){return s}});var r=n(2),o=n(5),i=n(4),a={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},s={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},l=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},getDeterminateCircleAttribute:function(){return null},hasClass:function(){return!1},removeClass:function(){},removeAttribute:function(){},setAttribute:function(){},setDeterminateCircleAttribute:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.closed=this.adapter.hasClass(a.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(a.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(s.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(s.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(a.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(a.INDETERMINATE_CLASS),this.adapter.removeAttribute(s.ARIA_VALUENOW))},t.prototype.isDeterminate=function(){return this.determinate},t.prototype.setProgress=function(e){if(this.progress=e,this.determinate){var t=(1-this.progress)*(2*Math.PI*this.radius);this.adapter.setDeterminateCircleAttribute(s.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(s.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(a.CLOSED_CLASS),this.adapter.removeAttribute(s.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(a.CLOSED_CLASS),this.adapter.setAttribute(s.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(i.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(l.strings.DETERMINATE_CIRCLE_SELECTOR)},t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClosed",{get:function(){return this.foundation.isClosed()},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(){this.foundation.close()},t.prototype.getDefaultFoundation=function(){var e=this;return new l({addClass:function(t){e.root.classList.add(t)},getDeterminateCircleAttribute:function(t){return e.determinateCircle.getAttribute(t)},hasClass:function(t){return e.root.classList.contains(t)},removeClass:function(t){e.root.classList.remove(t)},removeAttribute:function(t){e.root.removeAttribute(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},setDeterminateCircleAttribute:function(t,n){e.determinateCircle.setAttribute(t,n)}})},t}(o.O)},function(e,t,n){n.r(t),n.d(t,{MDCRipple:function(){return o.N},MDCRippleFoundation:function(){return a.E},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$},util:function(){return r}});var r=n(54),o=n(29),i=n(66),a=n(25)},function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.r(t),n.d(t,{CSSTransition:function(){return f},ReplaceTransition:function(){return S},SwitchTransition:function(){return N},Transition:function(){return l.default},TransitionGroup:function(){return b},config:function(){return P.A}});var o=n(81),i=n(82);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),l=n(80),u=n(84),c=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=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r})},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.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&&(0,u.F)(e),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))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&c(e,r),o&&c(e,o),i&&c(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.A)(e,["classNames"]));return s.createElement(l.default,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d,p=n(7);var h=n(83);function m(e,t){var n=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)}),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function y(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,s.isValidElement)(a)){var l=i in t,u=i in r,c=t[i],d=(0,s.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,s.isValidElement)(c)&&(o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:v(a,"exit",e),enter:v(a,"enter",e)})):o[i]=(0,s.cloneElement)(a,{in:!1}):o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:v(a,"exit",e),enter:v(a,"enter",e)})}}),o}var g=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},_=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,m(n.children,function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:v(e,"appear",n),enter:v(e,"enter",n),exit:v(e,"exit",n)})})):y(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=m(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=r({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.A)(e,["component","childFactory"]),i=this.state.contextValue,a=g(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s.createElement(h.A.Provider,{value:i},a):s.createElement(h.A.Provider,{value:i},s.createElement(t,r,a))},t}(s.Component);_.propTypes={},_.defaultProps={component:"div",childFactory:function(e){return e}};var b=_,E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,i.A)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=s.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:p.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,o.A)(e,["children","in"]),i=s.Children.toArray(t),a=i[0],l=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,s.createElement(b,r,n?s.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s.Component);E.propTypes={};var x,C,S=E;var w="out-in",O="in-out",T=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},A=((x={})[w]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:T(t,"onExited",function(){n(l.ENTERING,null)})})},x[O]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s.cloneElement(r,{in:!0,onEntered:T(r,"onEntered",function(){n(l.ENTERING)})})]},x),I=((C={})[w]=function(e){var t=e.children,n=e.changeState;return s.cloneElement(t,{in:!0,onEntered:T(t,"onEntered",function(){n(l.ENTERED,s.cloneElement(t,{in:!0}))})})},C[O]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s.cloneElement(t,{in:!1,onExited:T(t,"onExited",function(){r(l.ENTERED,s.cloneElement(n,{in:!0}))})}),s.cloneElement(n,{in:!0})]},C),k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:l.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===l.ENTERING&&e.mode===O?{status:l.ENTERING}:!t.current||(n=t.current,r=e.children,n===r||s.isValidElement(n)&&s.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:s.cloneElement(e.children,{in:!0})}:{status:l.EXITING};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,u={children:n,current:a,changeState:this.changeState,status:i};switch(i){case l.ENTERING:e=I[r](u);break;case l.EXITING:e=A[r](u);break;case l.ENTERED:e=a}return s.createElement(h.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.Component);k.propTypes={},k.defaultProps={mode:w};var N=k,P=n(112)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return d},MDCIconButtonToggleFoundation:function(){return u},cssClasses:function(){return s},strings:function(){return l}});var r=n(2),o=n(5),i=n(29),a=n(4),s={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},l={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},u=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.hasToggledAriaLabel=!1,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(l.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(l.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(l.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(l.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(s.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(s.ICON_BUTTON_ON):this.adapter.removeClass(s.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(l.DATA_ARIA_LABEL_ON):this.adapter.getAttr(l.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(l.ARIA_LABEL,t||"")}else this.adapter.setAttr(l.ARIA_PRESSED,""+e)},t}(a.I),c=u.strings,d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new u({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(c.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!1,configurable:!0}),t.prototype.createRipple=function(){var e=new i.N(this.root);return e.unbounded=!0,e},t}(o.O)},function(e,t,n){n.r(t),n.d(t,{MDCList:function(){return r.f},MDCListFoundation:function(){return i.Y},cssClasses:function(){return o.Y7},deprecatedClassNameMap:function(){return o.PY},evolutionAttribute:function(){return o.iP},evolutionClassNameMap:function(){return o.$z},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(103),o=n(53),i=n(77)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return o.OK},CornerBit:function(){return o.Jv},MDCMenuSurface:function(){return r.X},MDCMenuSurfaceFoundation:function(){return i.O},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(104),o=n(52),i=n(57)},function(e,t,n){n.r(t),n.d(t,{AnimationFrame:function(){return o.K},getCorrectEventName:function(){return r.getCorrectEventName},getCorrectPropertyName:function(){return r.getCorrectPropertyName},util:function(){return r}});var r=n(65),o=n(108)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return r.OK},DefaultFocusState:function(){return i.hf},MDCMenu:function(){return o.C},MDCMenuFoundation:function(){return a.d},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(52),o=n(105),i=n(58),a=n(106)},function(e,t,n){n.r(t),n.d(t,{MDCFloatingLabel:function(){return r.$},MDCFloatingLabelFoundation:function(){return i.K},cssClasses:function(){return o.Y}});var r=n(72),o=n(99),i=n(73)},function(e,t,n){n.r(t),n.d(t,{MDCLineRipple:function(){return r.l},MDCLineRippleFoundation:function(){return i.C},cssClasses:function(){return o.Y}});var r=n(74),o=n(101),i=n(100)},function(e,t,n){n.r(t),n.d(t,{MDCNotchedOutline:function(){return r.i},MDCNotchedOutlineFoundation:function(){return i.z},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(75),o=n(76),i=n(102)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return T},MDCSelectFoundation:function(){return g},MDCSelectHelperText:function(){return x},MDCSelectHelperTextFoundation:function(){return E},MDCSelectIcon:function(){return O},MDCSelectIconFoundation:function(){return w},cssClasses:function(){return p},helperTextCssClasses:function(){return b},helperTextStrings:function(){return _},iconStrings:function(){return C},numbers:function(){return m},strings:function(){return h}});var r=n(2),o=n(5),i=n(72),a=n(74),s=n(52),l=n(105),u=n(58),c=n(75),d=n(29),f=n(25),p={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},h={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},m={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},v=n(4),y=n(107),g=function(e){function t(n,o){void 0===o&&(o={});var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.disabled=!1,i.isMenuOpen=!1,i.useDefaultValidation=!0,i.customValidity=!0,i.lastSelectedIndex=m.UNSET_INDEX,i.clickDebounceTimeout=0,i.recentlyClicked=!1,i.leadingIcon=o.leadingIcon,i.helperText=o.helperText,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===m.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==m.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(p.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(p.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(p.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(p.FOCUSED),n=e||t,r=this.adapter.hasClass(p.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(p.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(p.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(p.FOCUSED)){var t=(0,y.l5)(e)===y._.ENTER,n=(0,y.l5)(e)===y._.SPACEBAR,r=(0,y.l5)(e)===y._.ARROW_UP,o=(0,y.l5)(e)===y._.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress())){var i=n?" ":e.key,a=this.adapter.typeaheadMatchItem(i,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||r||o)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(p.FOCUSED);if(e){var n=m.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(p.INVALID),this.adapter.removeMenuClass(p.MENU_INVALID)):(this.adapter.addClass(p.INVALID),this.adapter.addMenuClass(p.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(p.REQUIRED)&&!this.adapter.hasClass(p.DISABLED)?this.getSelectedIndex()!==m.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(p.REQUIRED):this.adapter.removeClass(p.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(s.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(p.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(p.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(p.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(h.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(h.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},m.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(v.I),_={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},b={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},E=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(_.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(_.ROLE):this.adapter.setAttr(_.ROLE,"alert"));this.adapter.removeAttr(_.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(_.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(_.ARIA_HIDDEN,"true")},t}(v.I),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new E({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(o.O),C={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},S=["click","keydown"],w=function(e){function t(n){var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.savedTabIndex=null,o.interactionHandler=function(e){o.handleInteraction(e)},o}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(S),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(S),o=n.next();!o.done;o=n.next()){var i=o.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",C.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(v.I),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new w({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(w.strings.ICON_EVENT,{},!0)}})},t}(o.O),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,s){if(void 0===e&&(e=function(e){return new i.$(e)}),void 0===t&&(t=function(e){return new a.l(e)}),void 0===n&&(n=function(e){return new c.i(e)}),void 0===r&&(r=function(e){return new l.C(e)}),void 0===o&&(o=function(e){return new O(e)}),void 0===s&&(s=function(e){return new x(e)}),this.selectAnchor=this.root.querySelector(h.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(h.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(h.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+h.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(h.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(h.ARIA_CONTROLS));u&&(this.helperText=s(u))}this.menuSetup(r);var d=this.root.querySelector(h.LABEL_SELECTOR);this.label=d?e(d):null;var f=this.root.querySelector(h.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var m=this.root.querySelector(h.OUTLINE_SELECTOR);this.outline=m?n(m):null;var v=this.root.querySelector(h.LEADING_ICON_SELECTOR);v&&(this.leadingIcon=o(v)),this.root.classList.contains(p.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.handleMenuClosing=function(){e.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(s.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(s.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(s.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(s.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(s.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){void 0===t&&(t=!1),this.foundation.setValue(e,t)},Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!1,configurable:!0}),t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t=!1),this.foundation.setSelectedIndex(e,!0,t)},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!1,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(h.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new g(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(h.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(h.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},d.N.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new d.N(this.selectAnchor,new f.E(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(h.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){e.hiddenInput&&(e.hiddenInput.value=t);var n=e.selectedIndex;e.emit(h.CHANGE_EVENT,{value:t,index:n},!0)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return Boolean(e.touches)},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(o.O)},function(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)}function o(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,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}var a=n(28),s=n(49);var l=function(){function e(t,n){var r,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=n.width)&&void 0!==r?r:1,this.color=!1===n.color?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(function(e){var n=function(t){o[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}})}var t,n,r;return t=e,(n=[{key:"destroy",value:function(){var e=this;this.handlers.forEach(function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)})}},{key:"update",value:function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}},{key:"setCursor",value:function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}},{key:"updateOverlay",value:function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,a=o.height/r.offsetHeight;if(n){var s=t.nodeBefore,l=t.nodeAfter;if(s||l){var u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){var c=u.getBoundingClientRect(),d=s?c.bottom:c.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);var f=this.width/2*a;e={left:c.left,right:c.right,top:d-f,bottom:d+f}}}}if(!e){var p=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*i;e={left:p.left-h,right:p.left+h,top:p.top,bottom:p.bottom}}var m,v,y=this.editorView.dom.offsetParent;if(this.element||(this.element=y.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!y||y==document.body&&"static"==getComputedStyle(y).position)m=-pageXOffset,v=-pageYOffset;else{var g=y.getBoundingClientRect(),_=g.width/y.offsetWidth,b=g.height/y.offsetHeight;m=g.left-y.scrollLeft*_,v=g.top-y.scrollTop*b}this.element.style.left=(e.left-m)/i+"px",this.element.style.top=(e.top-v)/a+"px",this.element.style.width=(e.right-e.left)/i+"px",this.element.style.height=(e.bottom-e.top)/a+"px"}},{key:"scheduleRemoval",value:function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout(function(){return t.setCursor(null)},e)}},{key:"dragover",value:function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){var i=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){var a=s.dropPoint(this.editorView.state.doc,i,this.editorView.dragging.slice);null!=a&&(i=a)}this.setCursor(i),this.scheduleRemoval(5e3)}}}},{key:"dragend",value:function(){this.scheduleRemoval(20)}},{key:"drop",value:function(){this.scheduleRemoval(20)}},{key:"dragleave",value:function(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.dropCursor=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a.Plugin({view:function(t){return new l(t,e)}})}},function(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)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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,s(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(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,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d=n(124),f=n(28),p=n(56),h=n(97),m=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&&l(e,t)}(n,e);var t=u(n);function n(e){return o(this,n),t.call(this,e,e)}return a(n,[{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));return n.valid(r)?new n(r):f.Selection.near(r)}},{key:"content",value:function(){return p.Slice.empty}},{key:"eq",value:function(e){return e instanceof n&&e.head==this.head}},{key:"toJSON",value:function(){return{type:"gapcursor",pos:this.head}}},{key:"getBookmark",value:function(){return new v(this.anchor)}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new n(e.resolve(t.pos))}},{key:"valid",value:function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),r=e.node(t);if(0!=n)for(var o=r.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||y(o.type))return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var o=r.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||y(o.type))return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}},{key:"findGapCursorFrom",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e:for(;;){if(!r&&n.valid(e))return e;for(var o=e.pos,i=null,a=e.depth;;a--){var s=e.node(a);if(t>0?e.indexAfter(a)<s.childCount:e.index(a)>0){i=s.child(t>0?e.indexAfter(a):e.index(a)-1);break}if(0==a)return null;o+=t;var l=e.doc.resolve(o);if(n.valid(l))return l}for(;;){var u=t>0?i.firstChild:i.lastChild;if(!u){if(i.isAtom&&!i.isText&&!f.NodeSelection.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*t),r=!1;continue e}break}i=u,o+=t;var c=e.doc.resolve(o);if(n.valid(c))return c}return null}}}]),n}(f.Selection);m.prototype.visible=!1,m.findFrom=m.findGapCursorFrom,f.Selection.jsonID("gapcursor",m);var v=function(){function e(t){o(this,e),this.pos=t}return a(e,[{key:"map",value:function(t){return new e(t.map(this.pos))}},{key:"resolve",value:function(e){var t=e.resolve(this.pos);return m.valid(t)?new m(t):f.Selection.near(t)}}]),e}();function y(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}var g=d.keydownHandler({ArrowLeft:_("horiz",-1),ArrowRight:_("horiz",1),ArrowUp:_("vert",-1),ArrowDown:_("vert",1)});function _(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){var i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof f.TextSelection){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}var l=m.findGapCursorFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new m(l))),!0)}}function b(e,t,n){if(!e||!e.editable)return!1;var r=e.state.doc.resolve(t);if(!m.valid(r))return!1;var o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&f.NodeSelection.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new m(r))),!0)}function E(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof m))return!1;var n=e.state.selection.$from,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;for(var o=p.Fragment.empty,i=r.length-1;i>=0;i--)o=p.Fragment.from(r[i].createAndFill(null,o));var a=e.state.tr.replace(n.pos,n.pos,new p.Slice(o,0,0));return a.setSelection(f.TextSelection.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function x(e){if(!(e.selection instanceof m))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",h.DecorationSet.create(e.doc,[h.Decoration.widget(e.selection.head,t,{key:"gapcursor"})])}t.GapCursor=m,t.gapCursor=function(){return new f.Plugin({props:{decorations:x,createSelectionBetween:function(e,t,n){return t.pos==n.pos&&m.valid(n)?new m(n):null},handleClick:b,handleKeyDown:g,handleDOMEvents:{beforeinput:E}}})}},function(e,t,n){var r=n(125),o=n(28),i="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),a="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function s(e){var t,n,r,o,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(var l=0;l<a.length-1;l++){var u=a[l];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))t=!0;else if(/^(c|ctrl|control)$/i.test(u))n=!0;else if(/^s(hift)?$/i.test(u))r=!0;else{if(!/^mod$/i.test(u))throw new Error("Unrecognized modifier name: "+u);i?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function l(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function u(e){var t=function(e){var t=Object.create(null);for(var n in e)t[s(n)]=e[n];return t}(e);return function(e,n){var o,i=r.keyName(n),s=t[l(i,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(n.shiftKey){var u=t[l(i,n,!1)];if(u&&u(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(a&&n.ctrlKey&&n.altKey)&&(o=r.base[n.keyCode])&&o!=i){var c=t[l(o,n)];if(c&&c(e.state,e.dispatch,e))return!0}}return!1}}t.keydownHandler=u,t.keymap=function(e){return new o.Plugin({props:{handleKeyDown:u(e)}})}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),i="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)n[48+a]=n[96+a]=String(a);for(a=1;a<=24;a++)n[a+111]="F"+a;for(a=65;a<=90;a++)n[a]=String.fromCharCode(a+32),r[a]=String.fromCharCode(a);for(var s in n)r.hasOwnProperty(s)||(r[s]=n[s]);t.base=n,t.keyName=function(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||i&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?r:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t},t.shift=r},function(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)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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,s(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}var l=n(98),u=n(49),c=n(28),d=function(){function e(t,n){o(this,e),this.items=t,this.eventCount=n}return a(e,[{key:"popEvent",value:function(t,n){var r=this;if(0==this.eventCount)return null;for(var o,i,a=this.items.length;;a--){if(this.items.get(a-1).selection){--a;break}}n&&(o=this.remapping(a,this.items.length),i=o.maps.length);var s,l,u=t.tr,c=[],d=[];return this.items.forEach(function(t,n){if(!t.step)return o||(o=r.remapping(a,n+1),i=o.maps.length),i--,void d.push(t);if(o){d.push(new f(t.map));var p,h=t.step.map(o.slice(i));h&&u.maybeStep(h).doc&&(p=u.mapping.maps[u.mapping.maps.length-1],c.push(new f(p,void 0,void 0,c.length+d.length))),i--,p&&o.appendMap(p,i)}else u.maybeStep(t.step);return t.selection?(s=o?t.selection.map(o.slice(i)):t.selection,l=new e(r.items.slice(0,a).append(d.reverse().concat(c)),r.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:u,selection:s}}},{key:"addTransform",value:function(t,n,r,o){for(var i=[],a=this.eventCount,s=this.items,l=!o&&s.length?s.get(s.length-1):null,u=0;u<t.steps.length;u++){var c,d=t.steps[u].invert(t.docs[u]),p=new f(t.mapping.maps[u],d,n);(c=l&&l.merge(p))&&(p=c,u?i.pop():s=s.slice(0,s.length-1)),i.push(p),n&&(a++,n=void 0),o||(l=p)}var m,v,y,g=a-r.depth;return g>h&&(v=g,(m=s).forEach(function(e,t){if(e.selection&&0==v--)return y=t,!1}),s=m.slice(y),a-=g),new e(s.append(i),a)}},{key:"remapping",value:function(e,t){var n=new u.Mapping;return this.items.forEach(function(t,r){var o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)},e,t),n}},{key:"addMaps",value:function(t){return 0==this.eventCount?this:new e(this.items.append(t.map(function(e){return new f(e)})),this.eventCount)}},{key:"rebased",value:function(t,n){if(!this.eventCount)return this;var r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(function(e){e.selection&&s--},o);var l=n;this.items.forEach(function(e){var n=i.getMirror(--l);if(null!=n){a=Math.min(a,n);var o=i.maps[n];if(e.step){var u=t.steps[n].invert(t.docs[n]),c=e.selection&&e.selection.map(i.slice(l+1,n));c&&s++,r.push(new f(o,u,c))}else r.push(new f(o))}},o);for(var u=[],c=n;c<a;c++)u.push(new f(i.maps[c]));var d=new e(this.items.slice(0,o).append(u).append(r),s);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-r.length)),d}},{key:"emptyItemCount",value:function(){var e=0;return this.items.forEach(function(t){t.step||e++}),e}},{key:"compress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach(function(e,a){if(a>=t)o.push(e),e.selection&&i++;else if(e.step){var s=e.step.map(n.slice(r)),l=s&&s.getMap();if(r--,l&&n.appendMap(l,r),s){var u=e.selection&&e.selection.map(n.slice(r));u&&i++;var c,d=new f(l.invert(),s,u),p=o.length-1;(c=o.length&&o[p].merge(d))?o[p]=c:o.push(d)}}else e.map&&r--},this.items.length,0),new e(l.from(o.reverse()),i)}}]),e}();d.empty=new d(l.empty,0);var f=function(){function e(t,n,r,i){o(this,e),this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}return a(e,[{key:"merge",value:function(t){if(this.step&&t.step&&!t.selection){var n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}}]),e}(),p=a(function e(t,n,r,i,a){o(this,e),this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=a}),h=20;function m(e){for(var t=[],n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach(function(e,n,r,o){return t.push(r,o)});return t}function v(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}var y=!1,g=null;function _(e){var t=e.plugins;if(g!=t){y=!1,g=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){y=!0;break}}return y}var b=new c.PluginKey("history"),E=new c.PluginKey("closeHistory");function x(e,t){return function(n,r){var o=b.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){var i=function(e,t,n){var r=_(t),o=b.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;var a=i.selection.resolve(i.transform.doc),s=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new p(n?s:i.remaining,n?i.remaining:s,null,0,-1);return i.transform.setSelection(a).setMeta(b,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}var C=x(!1,!0),S=x(!0,!0),w=x(!1,!1),O=x(!0,!1);t.closeHistory=function(e){return e.setMeta(E,!0)},t.history=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new c.Plugin({key:b,state:{init:function(){return new p(d.empty,d.empty,null,0,-1)},apply:function(t,n,r){return function(e,t,n,r){var o,i=n.getMeta(b);if(i)return i.historyState;n.getMeta(E)&&(e=new p(e.done,e.undone,null,0,-1));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(b))return a.getMeta(b).redo?new p(e.done.addTransform(n,void 0,r,_(t)),e.undone,m(n.mapping.maps),e.prevTime,e.prevComposition):new p(e.done,e.undone.addTransform(n,void 0,r,_(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new p(e.done.rebased(n,o),e.undone.rebased(n,o),v(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new p(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),v(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);var s=n.getMeta("composition"),l=0==e.prevTime||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach(function(e,r){for(var o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),u=a?v(e.prevRanges,n.mapping):m(n.mapping.maps);return new p(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,_(t)),d.empty,u,n.time,null==s?e.prevComposition:s)}(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n=t.inputType,r="historyUndo"==n?C:"historyRedo"==n?S:null;return!(!r||!e.editable)&&(t.preventDefault(),r(e.state,e.dispatch))}}}})},t.isHistoryTransaction=function(e){return null!=e.getMeta(b)},t.redo=S,t.redoDepth=function(e){var t=b.getState(e);return t?t.undone.eventCount:0},t.redoNoScroll=O,t.undo=C,t.undoDepth=function(e){var t=b.getState(e);return t?t.done.eventCount:0},t.undoNoScroll=w},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(23),i=n(128),a=n(85),s=n(3),l=s.createComponent(function(e,t){const{outlined:n,...o}=e,i=s.useClassNames(e,["mdc-card",{"mdc-card--outlined":n}]);return r.jsx(s.Tag,{...o,ref:t,className:i})}),u=s.createComponent(function(e,t){const{square:n,sixteenByNine:o,...i}=e,a=s.useClassNames(e,["mdc-card__media",{"mdc-card__media--square":n,"mdc-card__media--16-9":o}]);return r.jsx(s.Tag,{tag:"section",...i,ref:t,className:a})}),c=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__media-content"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),d=o.withRipple({surface:!1})(s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__primary-action"]),{children:o,...i}=e;return r.jsxs(s.Tag,{...i,ref:t,className:n,children:[o,r.jsx("div",{className:"mdc-card__ripple"})]})})),f=s.createComponent(function(e,t){const{fullBleed:n,...o}=e,i=s.useClassNames(e,["mdc-card__actions",{"mdc-card__actions--full-bleed":n}]);return r.jsx(s.Tag,{tag:"div",...o,ref:t,className:i})}),p=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action-buttons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),h=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})}),m=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action","mdc-card__action--icon","mdc-icon-button--display-flex"]);return r.jsx(a.IconButton,{...e,ref:t,className:n})}),v=s.createComponent(function(e,t){const n=s.useClassNames(e,["mdc-card__action","mdc-card__action--button"]);return r.jsx(i.Button,{...e,ref:t,className:n})});t.Card=l,t.CardActionButton=v,t.CardActionButtons=p,t.CardActionIcon=m,t.CardActionIcons=h,t.CardActions=f,t.CardMedia=u,t.CardMediaContent=c,t.CardPrimaryAction=d},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(23),a=n(24),s=n(129),l=n(3),u=i.withRipple({surface:!1})(l.createComponent(function(e,t){const{dense:n,raised:o,unelevated:i,outlined:a,danger:u,icon:h,label:m,trailingIcon:v,children:y,touch:g,..._}=e,b=s.useIsWrappedTouchTarget(g),E=l.useClassNames(e,["mdc-button",{"mdc-button--dense":n,"mdc-button--raised":o,"mdc-button--unelevated":i,"mdc-button--outlined":a,"mdc-button--touch":b}]);if(u){const e=_.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};_.style={...t,...e}}return r.jsxs(l.Tag,{tag:"button",..._,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!h&&r.jsx(p,{icon:h}),r.jsxs("span",{className:"mdc-button__label",children:[m,y]}),!!v&&r.jsx(p,{icon:v})]})})),c=o.memo(function(){return r.jsx("div",{className:"mdc-button__touch"})}),d=o.memo(function(){return r.jsx("div",{className:"mdc-button__focus-ring"})}),f=o.memo(function(){return r.jsx("div",{className:"mdc-button__ripple"})}),p=l.createMemoComponent(function(e,t){const n=l.useClassNames(e,["mdc-button__icon"]);return r.jsx(a.Icon,{...e,className:n,ref:t})});t.Button=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(23),a=n(3),s=o.createContext(!1),l=i.withRipple({surface:!1})(a.createComponent(function(e,t){const{children:n,...o}=e,i=a.useClassNames(e,["mdc-touch-target-wrapper"]);return r.jsx(a.Tag,{tag:"div",...o,ref:t,className:i,children:r.jsx(s.Provider,{value:!0,children:n})})}));t.TouchTargetWrapper=l,t.useIsWrappedTouchTarget=e=>o.useContext(s)||e||!1},function(e){e.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&o)+t[1]-389564586|0)<<12|i>>>20)+n|0)&n|~i&r)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&n)+t[3]-1044525330|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&o)+t[5]+1200080426|0)<<12|i>>>20)+n|0)&n|~i&r)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&n)+t[7]-45705983|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&o)+t[9]-1958414417|0)<<12|i>>>20)+n|0)&n|~i&r)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&n)+t[11]-1990404162|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&o)+t[13]-40341101|0)<<12|i>>>20)+n|0)&n|~i&r)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&n)+t[15]+1236535329|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[1]-165796510|0)<<5|n>>>27)+r|0)&o|r&~o)+t[6]-1069501632|0)<<9|i>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|o>>>18)+i|0)&n|i&~n)+t[0]-373897302|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[5]-701558691|0)<<5|n>>>27)+r|0)&o|r&~o)+t[10]+38016083|0)<<9|i>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|o>>>18)+i|0)&n|i&~n)+t[4]-405537848|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[9]+568446438|0)<<5|n>>>27)+r|0)&o|r&~o)+t[14]-1019803690|0)<<9|i>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|o>>>18)+i|0)&n|i&~n)+t[8]+1163531501|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&o|r&~o)+t[2]-51403784|0)<<9|i>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&n|i&~n)+t[12]-1926607734|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^o)+t[8]-2022574463|0)<<11|i>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^n)+t[14]-35309556|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^o)+t[4]+1272893353|0)<<11|i>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^n)+t[10]-1094730640|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^o)+t[0]-358537222|0)<<11|i>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^n)+t[6]+76029189|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^o)+t[12]-421815835|0)<<11|i>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^n)+t[2]-995338651|0)<<23|r>>>9)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+o|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function o(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function i(e){var t,o,i,a,s,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,r(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(c,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(c,i),c}function a(e){var t,r,i,a,s,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,o(e.subarray(t-64,t)));for(r=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(c,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(c,i),c}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e,t){var n,r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o);for(n=0;n<r;n+=1)i[n]=e.charCodeAt(n);return t?i:o}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return l(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,i,a,s,l=this.byteLength,u=t(n,l),c=l;return r!==e&&(c=t(r,l)),u>c?new ArrayBuffer(0):(o=c-u,i=new ArrayBuffer(o),a=new Uint8Array(i),s=new Uint8Array(this,u,o),a.set(s),i)}}(),h.prototype.append=function(e){return this.appendBinary(u(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=p(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,o,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=o,e[15]=i,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(u(e),t)},h.hashBinary=function(e,t){var n=l(i(e));return t?p(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),i=r.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)n(this._hash,o(r.subarray(t-64,t)));return this._buff=t-64<i?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r[t]<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=p(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=d(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=l(a(new Uint8Array(e)));return t?p(n):n},h}()},,,,,,,,function(e,t,n){function r(e,t){return new Promise(function(n,r){var o=new Image;t&&(o.crossOrigin=t),o.onload=function(){n(o)},o.onerror=r,o.src=e})}function o(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,e.width,e.height),t}function i(e,t){e=e||[],"string"==typeof(t=t||{})&&(t={type:t});try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function a(e){return("undefined"!=typeof URL?URL:webkitURL).createObjectURL(e)}function s(e){return("undefined"!=typeof URL?URL:webkitURL).revokeObjectURL(e)}function l(e){return new Promise(function(t,n){var r=new FileReader,o="function"==typeof r.readAsBinaryString;r.onloadend=function(){var e=r.result||"";if(o)return t(e);t(_(e))},r.onerror=n,o?r.readAsBinaryString(e):r.readAsArrayBuffer(e)})}function u(e,t){var n=[b(atob(e))];return t?i(n,{type:t}):i(n)}function c(e,t){return u(btoa(e),t)}function d(e){return l(e).then(btoa)}function f(e){var t=e.match(/data:([^;]+)/)[1],n=e.replace(/^[^,]+,/,"");return i([b(atob(n))],{type:t})}function p(e){return d(e).then(function(t){return"data:"+e.type+";base64,"+t})}function h(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then(function(e){return e.toDataURL(t,i)})}function m(e,t,n){return"function"==typeof e.toBlob?new Promise(function(r){e.toBlob(r,t,n)}):Promise.resolve(f(e.toDataURL(t,n)))}function v(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then(function(e){return m(e,t,i)})}function y(e,t){return i([e],t)}function g(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){var e=r.result||new ArrayBuffer(0);t(e)},r.onerror=n,r.readAsArrayBuffer(e)})}function _(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=-1;++o<r;)t+=String.fromCharCode(n[o]);return t}function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=-1;++o<t;)r[o]=e.charCodeAt(o);return n}n.r(t),n.d(t,{arrayBufferToBinaryString:function(){return _},arrayBufferToBlob:function(){return y},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return b},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return g},blobToBase64String:function(){return d},blobToBinaryString:function(){return l},blobToDataURL:function(){return p},canvasToBlob:function(){return m},createBlob:function(){return i},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return v},imgSrcToDataURL:function(){return h},revokeObjectURL:function(){return s}})},,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",t;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;t=function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__23__,__WEBPACK_EXTERNAL_MODULE__24__,__WEBPACK_EXTERNAL_MODULE__25__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__57__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__37__,__WEBPACK_EXTERNAL_MODULE__38__,__WEBPACK_EXTERNAL_MODULE__58__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__39__,__WEBPACK_EXTERNAL_MODULE__40__,__WEBPACK_EXTERNAL_MODULE__41__,__WEBPACK_EXTERNAL_MODULE__42__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__59__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__14__,__WEBPACK_EXTERNAL_MODULE__15__,__WEBPACK_EXTERNAL_MODULE__16__,__WEBPACK_EXTERNAL_MODULE__17__){return function(){var __webpack_modules__=[function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__unused_webpack_exports,__nested_webpack_require_7570__){var __webpack_dirname__="/",e,t,r,n,o,i,s,a,l,p,c,u;if(module=__nested_webpack_require_7570__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__nested_webpack_require_7570__.g||null===__nested_webpack_require_7570__.g?{}:__nested_webpack_require_7570__.g;module.exports=(e=__nested_webpack_require_7570__(2),t=__nested_webpack_require_7570__(12),r=__nested_webpack_require_7570__(4),n=__nested_webpack_require_7570__(5),o=__nested_webpack_require_7570__(6),i=__nested_webpack_require_7570__(0),s=__nested_webpack_require_7570__(3),a=__nested_webpack_require_7570__(13),l=__nested_webpack_require_7570__(14),p=__nested_webpack_require_7570__(15),c=__nested_webpack_require_7570__(16),u=__nested_webpack_require_7570__(17),function(){var d=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=o},function(e,t,n){var r=n(0),o=n.n(r),i=n(1),a=n(2);t.default=function(e){return void 0===e&&(e={}),e=o()({readAttribute:!0,type:a.string},e),function(t,n){if("string"==typeof n){var r,a=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(a,"observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var s=(0,i.camelCaseToDelimited)(n);a.observedAttributes&&!a.observedAttributes.includes(s)&&a.observedAttributes.push(s)}e.type&&(Object.prototype.hasOwnProperty.call(a,"propertyTypes")||(a.propertyTypes=a.propertyTypes?o()({},a.propertyTypes):{}),!a.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(a,n)||(a.propertyTypes[n]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(a,"propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?(0,i.copy)(a.propertiesToReflectAsAttributes):[]),(e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(n)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(n)||"object"==typeof a.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(a.propertiesToReflectAsAttributes,n))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&a.propertyTypes&&Object.prototype.hasOwnProperty.call(a.propertyTypes,n)&&(r=a.propertyTypes[n]):r=e.writeAttribute,void 0!==r&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(n):a.normalizePropertyTypeList&&(a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes))),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(n,r),"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[n]=r)))),e.alias&&(Object.prototype.hasOwnProperty.call(a,"propertyAliases")||(a.propertyAliases=a.propertyAliases?o()({},a.propertyAliases):{}),!a.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(a,n)||(a.propertyAliases[n]=e.alias))}}}},function(e,t,n){n.d(t,{api:function(){return O}});var r,o,i,a,s=n(4),l=n.n(s),u=n(8),c=n.n(u),d=n(0),f=n.n(d),p=n(3),h=n.n(p),m=n(9),v=n.n(m),y=(n(10),n(5)),g=n.n(y),_=n(1),b=n(2),E=n(6);function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.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)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S="undefined"==typeof HTMLElement?function(){}:HTMLElement,w=(r=(0,E.default)({type:b.boolean,writeAttribute:!0}),a=function(e){function t(){var n;return(n=e.call(this)||this).batchAttributeUpdates=!0,n.batchPropertyUpdates=!0,n.batchUpdates=!0,n.batchedAttributeUpdateRunning=!0,n.batchedPropertyUpdateRunning=!0,n.batchedUpdateRunning=!0,n.parent=null,n.rootInstance=null,n.scope=f()({},_.UTILITY_SCOPE),n.domNodeEventBindings=new Map,n.domNodeTemplateCache=new Map,n.externalProperties={},n.ignoreAttributeUpdateObservations=!1,n.internalProperties={},n.outputEventNames=new Set,n.instance=null,c()(n,"isRoot",i,n),n.root=void 0,n.runDomConnectionAndRenderingInSameEventQueue=!1,n.self=t,n.slots={},n.self=n.constructor,n.self._propertiesToReflectAsAttributes||(n.self._propertiesToReflectAsAttributes=n.self.normalizePropertyTypeList(n.self.propertiesToReflectAsAttributes)),n.generateAliasIndex(),n.root=n,n.defineGetterAndSetterInterface(),n}h()(t,e);var n=t.prototype;return n.attributeChangedCallback=function(e,t,n){this.ignoreAttributeUpdateObservations||t===n||this.onUpdateAttribute(e,n)},n.onUpdateAttribute=function(e,t){var n=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,_.timeout)(function(){n.batchedAttributeUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("attributeChanged")})):this.render("attributeChanged")},n.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,_.timeout)(function(){e.render("connected")})},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=x(this.domNodeEventBindings.values());!(e=t()).done;)for(var n,r=x(e.value.values());!(n=r()).done;)(0,n.value)();this.slots={}},n.defineGetterAndSetterInterface=function(){for(var e,t=this,n=function(){var n=e.value;Object.prototype.hasOwnProperty.call(t,n)&&t.setPropertyValue(n,t[n]),Object.defineProperty(t,n,{configurable:!0,get:function(){return t.getPropertyValue(n)},set:function(e){t.setPropertyValue(n,e),t.triggerPropertySpecificRendering(n,e)}})},r=x((0,_.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[])));!(e=r()).done;)n()},n.getPropertyAlias=function(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},n.getPropertyValue=function(e){var n,r,o=null!=(n=this.instance)&&null!=(n=n.current)&&n.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(r=this.instance)&&null!=(r=r.current)&&r.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:o},n.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.externalProperties[n]=t)},n.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var n=this.getPropertyAlias(e);n&&(this.internalProperties[n]=t)},n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=t,n)),this.setInternalPropertyValue(e,t)},n.triggerPropertySpecificRendering=function(e,t){var n=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,_.timeout)(function(){void 0!==t&&n.isStateProperty(e)?(n.render("preStatePropertyChanged"),(0,_.timeout)(function(){n.setInternalPropertyValue(e,void 0),n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("postStatePropertyChanged"),n.triggerOutputEvents()})):(n.batchedPropertyUpdateRunning=!1,n.batchedUpdateRunning=!1,n.render("propertyChanged"),n.triggerOutputEvents())}));else{var r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},n.applyBinding=function(e,t){var n=this;if(e.getAttributeNames)for(var r,o=function(){var o=r.value,i="";if(o.startsWith("data-bind-")?i=o.substring(10):o.startsWith("bind-")&&(i=o.substring(5)),i){var a=e.getAttribute(o);if(null===a)return 0;if(i.startsWith("attribute-")||i.startsWith("property-")){var s=(0,_.evaluate)(a,t,!1,!0,e);if(s.error)return console.warn('Error occurred during processing given attribute binding "'+o+'" on node:',e,s.error),0;i.startsWith("attribute-")?e.setAttribute(i.substring(10),s.result):e[(0,_.delimitedToCamelCase)(i.substring(9))]=s.result}else if(i.startsWith("on-")){n.domNodeEventBindings.has(e)||n.domNodeEventBindings.set(e,new Map);var l=n.domNodeEventBindings.get(e);if(i=(0,_.delimitedToCamelCase)(i.substring(3)),null!=l&&l.has(i)){var u=l.get(i);u&&u()}t=f()({console:console,event:void 0,parameters:void 0},t);var c=(0,_.compile)(a,t,!0,!0,e);if(c.error)console.warn('Error occurred during compiling given event binding "'+o+'" on node:',e,c.error);else{var d=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.event=r[0],t.parameters=r;try{c.templateFunction.apply(c,c.originalScopeNames.map(function(e){return t[e]}))}catch(t){console.warn('Error occurred during processing given event binding "'+o+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+c.scopeNames.join('", "')+'": '+(0,_.represent)(t))}};e.addEventListener(i,d),null==l||l.set(i,function(){e.removeEventListener(i,d),l.delete(i),0===l.size&&n.domNodeEventBindings.delete(e)})}}}},i=x(e.getAttributeNames());!(r=i()).done;)o()},n.applyBindings=function(e,t,n){for(void 0===n&&(n=!0);e;){var r;null==(r=e.attributes)||!r.length||!n&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},n.compileDomNodeTemplate=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={}),n=f()({ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},n);var r=e.nodeName.toLowerCase();if(n.ignoreComponents&&r.includes("-"))return null;if(n.unsafe){var o=e.innerHTML;if(!o&&e.template&&(o=e.template),this.self.hasCode(o)){var i=(0,_.compile)("`"+o+"`",t);return{domNode:e,children:[],error:i.error,scopeNames:i.scopeNames,template:o,templateFunction:i.templateFunction}}return null}var a=null;if("#text"===r){var s=e.textContent;s&&this.self.hasCode(s)&&(a=s.replace(/&nbsp;/g," ").trim())}var l=[],u={children:l,domNode:e};if(a){var c=(0,_.compile)("`"+a+"`",t);u.error=c.error,u.scopeNames=c.scopeNames,u.template=a,u.templateFunction=c.templateFunction}for(var d=e.firstChild;d;){if(!n.filter||n.filter(d)){var p=this.compileDomNodeTemplate(d,t,f()({},n,{ignoreComponents:n.ignoreNestedComponents}));p&&l.push(p)}d=d.nextSibling}return u},n.evaluateCompiledDomNodeTemplate=function(e,t){var n=e.domNode,r=e.error,o=e.templateFunction,i=e.scopeNames;if(!o||!i)return null;if(r)return console.warn("Error occurred during compiling node content:",r),null;var a=null;try{a=o.apply(void 0,i.map(function(e){return t[e]}))}catch(r){console.warn('Error occurred when "'+this.self._name+'" is running','"'+String(o)+'": with bound','names "'+i.join('", "')+'":','"'+r+'". Rendering node:',n)}return a},n.evaluateDomNodeTemplate=function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n={});var o=(n=f()({domNodeTemplateCache:this.domNodeTemplateCache,ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},n)).domNodeTemplateCache;if(!o.has(e)){var i={filter:n.filter,ignoreComponents:n.ignoreComponents,ignoreNestedComponents:n.ignoreNestedComponents,unsafe:n.unsafe},a=this.compileDomNodeTemplate(e,t,i);a&&o.set(e,a)}if(o.has(e)){var s=o.get(e),l=this.evaluateCompiledDomNodeTemplate(s,t);if(null!==l&&(n.unsafe&&e.innerHTML?e.innerHTML=l:e.textContent=l),s.children.length){var u=function(e){for(var n,o=x(e);!(n=o()).done;){var i=n.value,a=r.evaluateCompiledDomNodeTemplate(i,t);null!==a&&(i.domNode.textContent=a),i.children.length&&u(i.children)}};u(s.children)}}n.applyBindings&&this.applyBindings(e,t)},t.replaceDomNodes=function(e,n){for(var r,o=x([].concat(n).reverse());!(r=o()).done;){var i,a=r.value;t.trimSlots&&a.nodeType===Node.TEXT_NODE&&""===(null==(i=a.nodeValue)?void 0:i.trim())||e.after(a)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,n=[];e.firstChild;)n.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),n},n.determineRootBinding=function(){for(var e=this.parentNode;e;)(e instanceof t||e.nodeName.includes("-")||null===e.parentNode&&"[object ShadowRoot]"===e.toString())&&(this.rootInstance===this?(this.parent=e,this.rootInstance=e,this.setPropertyValue("isRoot",!1)):this.rootInstance=e),e=e.parentNode},t.hasCode=function(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)},t.normalizePropertyTypeList=function(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){for(var n,r=e,o=new Map,i=x(r);!(n=i()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,a)&&o.set(a,t.propertyTypes[a])}return o}return(0,_.convertPlainObjectToMap)(e)},n.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},n.attachExplicitDefinedOutputEventHandler=function(){var e=this;if(!this.self.eventToPropertyMapping)return!1;for(var t=!1,n=function(){var n=o[r];Object.prototype.hasOwnProperty.call(e.internalProperties,n)||(t=!0,e.outputEventNames.add(n),e.setInternalPropertyValue(n,l()(g().mark(function t(){var r,o,i,a,s=arguments;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(r=s.length,o=new Array(r),i=0;i<r;i++)o[i]=s[i];return t.next=1,e.reflectEventToProperties(n,o);case 1:(a=t.sent)&&(o[0]=a),e.forwardEvent(n,o);case 2:case"end":return t.stop()}},t)}))))},r=0,o=Object.keys(this.self.eventToPropertyMapping);r<o.length;r++)n();return t},n.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var n=function(){var n=o[r],i=n[0],a=n[1];Object.prototype.hasOwnProperty.call(t.internalProperties,i)||![b.func,"function"].includes(a)||t.self.renderProperties.includes(i)||(t.outputEventNames.add(i),t.setInternalPropertyValue(i,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e&&t.reflectEventToProperties(i,r),t.forwardEvent(i,r)}))},r=0,o=Object.entries(this.self.propertyTypes);r<o.length;r++)n()},n.triggerOutputEvents=function(){for(var e,t=x(this.outputEventNames);!(e=t()).done;){var n=e.value;this.forwardEvent(n,[this.externalProperties])}},n.forwardEvent=function(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,_.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},n.applySlots=function(e,t){for(var n=this,r=0,o=Array.from(e.querySelectorAll("slot"));r<o.length;r++){var i=o[r],a=i.getAttribute("name");if(null===a||"default"===a)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var s,l=x(this.slots.default);!(s=l()).done;){var u=s.value;this.evaluateDomNodeTemplate(u,t)}this.self.replaceDomNodes(i,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(i).map(function(e){return n.grabSlotContent(e)});else this.slots[a]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[a],t),this.self.replaceDomNodes(i,this.slots[a])):this.slots[a]=this.grabSlotContent(this.self.unwrapDomNode(i).filter(function(e){return"#text"!==e.nodeName.toLowerCase()})[0])}},n.grabSlotContent=function(e){var t,n=b.node.firstElementChild?e:null;if(n&&"textarea"===(null==(t=n.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!n.firstElementChild.hasAttribute("data-no-template")||"false"===n.firstElementChild.getAttribute("data-no-template"))){var r=n.firstElementChild.value;n.classList.remove("web-component-template");var o=n.cloneNode();return n.classList.add("web-component-template"),o.innerHTML="",o.template=r,o}return this.self.cloneSlots?e.cloneNode(!0):e},n.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,n=Array.from(this.querySelectorAll("[slot]"));t<n.length;t++){for(var r,o=n[t],i=o.parentNode,a=!0;i;){if(i.nodeName.includes("-")){i===this&&(a=!1);break}i=i.parentNode}if(!a){var s=null==(r=o.getAttribute("slot"))?void 0:r.trim();this.slots[null!=s?s:o.nodeName.toLowerCase()]=this.grabSlotContent(o)}}this.slots.default?this.slots.default=[].concat(this.slots.default):this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map(function(t){return e.grabSlotContent(t)}):this.slots.default=[]},n.isStateProperty=function(e){var t;return Boolean((null==(t=this.instance)||null==(t=t.current)?void 0:t.state)&&(Object.prototype.hasOwnProperty.call(this.instance.current.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},n.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=f()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var n=t[e],r=n[0],o=n[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,o)||(this.self._propertyAliasIndex[o]=r)}}},n.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,n=Object.entries(e);t<n.length;t++){var r,o=n[t],i=o[0],a=o[1];if(this.setExternalPropertyValue(i,a),this.isConnected){var s=(0,_.camelCaseToDelimited)(i);if(null!=(r=this.self._propertiesToReflectAsAttributes)&&r.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case b.boolean:case"boolean":a?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case b.func:case"function":break;case"json":if(a){var l=JSON.stringify(a);if(l&&this.getAttribute(s)!==l){this.setAttribute(s,l);break}}this.hasAttribute(s)&&this.removeAttribute(s);break;case b.number:case"number":if("number"!=typeof a||isNaN(a))this.hasAttribute(s)&&this.removeAttribute(s);else{var u=String(a);this.getAttribute(s)!==u&&this.setAttribute(s,u)}break;case b.string:case"string":a?this.getAttribute(s)!==a&&this.setAttribute(s,a):this.hasAttribute(s)&&this.removeAttribute(s);break;case b.any:case b.array:case b.arrayOf:case b.element:case b.elementType:case b.instanceOf:case b.node:case b.object:case"object":case b.objectOf:case b.shape:case b.exact:case b.symbol:default:if(a){var c=(0,_.represent)(a);if(c&&this.getAttribute(s)!==c){this.setAttribute(s,c);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},n.reflectProperties=function(e){var t,n;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(t=t.current)&&t.state&&"object"==typeof this.instance.current.state)for(var r,o=x(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(r=o()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(this.internalProperties,i)&&this.setInternalPropertyValue(i,void 0)}null!=(n=this.internalProperties.model)&&n.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var a,s=x(this.self.controllableProperties);!(a=s()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(e,l)&&this.setInternalPropertyValue(l,e[l])}},n.reflectEventToProperties=function(){var e=l()(g().mark(function e(t,n){var r,o,i,a,s,l,u,c,d,p,h,m,v,y,b,E,C;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.batchUpdates,this.batchUpdates=!1,o=null,i=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&(0,_.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=4;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,n.concat([this])))&&"then"in s&&(0,_.isFunction)(s.then))){e.next=2;break}return e.next=1,s;case 1:C=e.sent,e.next=3;break;case 2:C=s;case 3:l=C,i=!0,Array.isArray(l)?(o=l[0],this.reflectProperties(o),(0,_.extend)(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(o=l,this.reflectProperties(l));case 4:if(!i&&n.length>0&&(0,_.isObject)(n[0])){if(c=n[0],"persist"in n[0]&&(0,_.isFunction)(n[0].persist))for(c={},d=0,p=Object.keys(this.self.propertyTypes);d<p.length;d++)for(h=p[d],m=x([h].concat(null!==(y=this.getPropertyAlias(h))&&void 0!==y?y:[]));!(v=m()).done;)b=v.value,(E=n[0].currentTarget&&Object.prototype.hasOwnProperty.call(n[0].currentTarget,b)?n[0].currentTarget[b]:this.getPropertyValue(b))!==this.externalProperties[b]&&(c[b]=E);else[null,void 0].includes(null==(u=c.detail)?void 0:u.value)||(c=f()({},c.detail));o=c,this.reflectProperties(c)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,e.abrupt("return",o);case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),n.evaluateStringOrNullAndSetAsProperty=function(e,t){var n=this,r=e.startsWith("-"),o=r?e.substring(1):e,i=(0,_.delimitedToCamelCase)(o),a=this.getPropertyAlias(i);if(a&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,a)&&(i=a),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,i)){var s=this.self.propertyTypes[i];if(r){if(t){var l=(0,_.evaluate)(t,f()({},_.UTILITY_SCOPE),!1,!0,this);l.error?(console.warn('Failed to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(i,void 0)):(this.setInternalPropertyValue(i,l.result),this.setExternalPropertyValue(i,l.result))}}else switch(s){case b.boolean:case"boolean":var u=![null,"false"].includes(t);this.setInternalPropertyValue(i,u),this.setExternalPropertyValue(i,u);break;case b.func:case"function":var c,d=null,p=["data","event","firstArgument","firstParameter","options","scope","parameters"].concat(_.UTILITY_SCOPE_NAMES);if(t){var h=(0,_.compile)(t,p);d=h.error,c=h.templateFunction,d&&console.warn('Failed to compile given handler "'+e+'": '+d+".")}this.setInternalPropertyValue(i,function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];n.outputEventNames.has(i)&&n.reflectEventToProperties(i,o);var s=void 0;if(!d)try{var l;s=null==(l=c)?void 0:l.call.apply(l,[n,o[0],o[0],o[0],o[0],o[0],o[0],o].concat(_.UTILITY_SCOPE_VALUES))}catch(n){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+p.join('", "')+'" set to "'+(0,_.represent)(o)+'": '+n+'. Set property to "undefined".')}return n.self.renderProperties.includes(i)||n.forwardEvent(i,o),s}),d||this.setExternalPropertyValue(i,c);break;case"json":if(t){var m;try{m=JSON.parse(t)}catch(d){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,_.represent)(d));break}this.setInternalPropertyValue(i,m),this.setExternalPropertyValue(i,(0,_.copy)(m,1))}else this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null);break;case b.number:case"number":if(null===t){this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break}var v=parseFloat(t);isNaN(v)&&(v=void 0),this.setInternalPropertyValue(i,v),this.setExternalPropertyValue(i,v);break;case b.string:case"string":this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break;case b.any:case b.array:case b.arrayOf:case b.element:case b.elementType:case b.instanceOf:case b.node:case b.object:case"object":case b.objectOf:case b.oneOf:case b.oneOfType:case b.shape:case b.exact:case b.symbol:default:if(t){var y=(0,_.evaluate)(t,{},!1,!0,this);if(y.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',y.error);break}this.setInternalPropertyValue(i,y.result),this.setExternalPropertyValue(i,(0,_.copy)(y.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(i,!0),this.setExternalPropertyValue(i,!0)):(this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null))}}},n.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,_.timeout)(function(){t.batchedUpdateRunning=!1,t.render(e)})):this.render(e)},n.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,_.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))},n.determineRenderScope=function(e){var t,n;void 0===e&&(e={}),this.scope=f()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((n={parent:this.parent,root:this.rootInstance,self:this})[(0,_.lowerCase)(this.self._name)||"instance"]=this,n),e),this.scope.scope=this.scope},n.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();var t=(0,_.evaluate)("`"+this.self.content+"`",this.scope);if(t.error)return console.warn("Failed to process template: "+t.error),Promise.resolve();this.applyShadowRootIfNotExisting();var n=document.createElement("div");return n.innerHTML=t.result,this.applySlots(n,f()({},this.scope,{parent:this})),this.root.innerHTML=n.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()},t}(S),a.applyRootBinding=!0,a.content="<slot>Please provide a template to transclude.</slot>",a.determineRootBinding=!0,a.shadowDOM=null,a.observedAttributes=[],a.controllableProperties=[],a.eventToPropertyMapping={},a.propertyAliases={},a.propertyTypes={onClick:b.func},a.propertiesToReflectAsAttributes=[],a.renderProperties=["children"],a.cloneSlots=!1,a.evaluateSlots=!1,a.renderSlots=!0,a.trimSlots=!0,a.renderUnsafe=!1,a._name="BaseWeb",a._propertyAliasIndex=void 0,a._propertiesToReflectAsAttributes=void 0,o=a,i=v()(o.prototype,"isRoot",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o),O={component:w,register:function(e){void 0===e&&(e=(0,_.camelCaseToDelimited)(w._name)),customElements.define(e,w)}};t.default=w},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=a},function(e){e.exports=l},function(e,t,n){n.d(t,{api:function(){return b}});var r=n(0),o=n.n(r),i=n(4),a=n.n(i),s=n(3),l=n.n(s),u=n(5),c=n.n(u),d=n(1),f=n(2),p=n(11),h=n.n(p),m=n(12),v=n(13);function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _=function(e){function t(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=e.call.apply(e,[this].concat(o))||this).unmountOnDisconnect=!0,n.compiledSlots={},n.preparedSlots={},n.reactRoot=null,n.rootReactInstance=null,n.self=t,n.wrapMemorizingWrapper=null,n.isWrapped=!1,n.reflectInstanceProperties=function(){var e;null!=(e=n.instance)&&e.current&&n.instance.current.properties&&n.reflectProperties(n.instance.current.properties)},n}l()(t,e);var n=t.prototype;return n.connectedCallback=function(){this.applyComponentWrapper(),this.rootReactInstance=this,e.prototype.connectedCallback.call(this)},n.disconnectedCallback=function(){var t;this.unmountOnDisconnect&&(null==(t=this.reactRoot)||t.unmount()),e.prototype.disconnectedCallback.call(this)},n.reflectExternalProperties=function(t){this.isRoot&&e.prototype.reflectExternalProperties.call(this,t)},n.render=function(){var e=a()(c().mark(function e(t){var n,r,i,a,s,l=this;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:t,scope:this.scope}}))){e.next=1;break}return e.abrupt("return");case 1:if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(o()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(r=this.firstChild;r;)i=r.nextSibling,this.removeChild(r),r=i;return this.reactRoot||(a=this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name,s="","string"==typeof a&&(s=a),this.reactRoot=(0,v.createRoot)(this.root,{identifierPrefix:s})),e.next=2,new Promise(function(e){(0,m.flushSync)(function(){var t;null==(t=l.reactRoot)||t.render((0,p.createElement)(l.self.content,l.internalProperties)),e()})});case 2:if(null==(n=this.instance)||!n.current){e.next=3;break}this.reflectInstanceProperties(),e.next=4;break;case 3:return e.next=4,(0,d.timeout)(this.reflectInstanceProperties);case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),n.setPropertyValue=function(e,t){var n;this.reflectProperties(((n={})[e]=(0,d.copy)(t,1),n)),this.setInternalPropertyValue(e,(0,d.copy)(t,1))},n.setInternalPropertyValue=function(t,n){null===n?n=f.NullSymbol:void 0===n&&(n=f.UndefinedSymbol),e.prototype.setInternalPropertyValue.call(this,t,n)},n.preCompileDomNodes=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!1),1===(e=e.filter(function(e){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&""!==e.nodeValue.trim()})).length)return this.preCompileDomNode(e[0],t,n);for(var r,o=1,i=[],a=y(e);!(r=a()).done;){var s=r.value,l=this.preCompileDomNode(s,t,n,o.toString());i.push(l),o+=1}return n?function(e){return function(){for(var t,n=[],r=y(i);!(t=r()).done;){var o=(0,t.value)(e);"function"==typeof o&&n.push(o.apply(void 0,arguments))}return(0,p.createElement)(p.Fragment,{children:n})}}:i},n.preCompileDomNode=function(e,t,n,r){var i=this;if(void 0===t&&(t={}),void 0===n&&(n=!1),n){var a=this.preCompileDomNode(e,o()({},t,{data:void 0,firstArgument:void 0,firstParameter:void 0,options:void 0,scope:void 0,parameters:void 0}),!1,r);return function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length>0?n[0]:null;return a(o()({},e,{data:i,firstArgument:i,firstParameter:i,options:i,scope:i,parameters:n}))}}}if(e.nodeType===Node.TEXT_NODE){var s="string"==typeof e.nodeValue?e.nodeValue.trim():"",l=r&&s?(0,p.createElement)(p.Fragment,{children:s,key:r}):s||null;return function(){return l}}if(!e.getAttributeNames)return function(){return null};var u,c={},f=this.self.isReactComponent(e);f?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),r&&!Object.prototype.hasOwnProperty.call(c,"key")&&(c.key=r),u=e.constructor.content):(c.key=r,u=e.tagName.toLowerCase());for(var h,m=Object.keys(t),v={},g=function(){var n,r=h.value,o=e.getAttribute(r);if(null===o)return 0;var a=!1,s="";if(r.startsWith("data-bind-")?s=r.substring(10):r.startsWith("bind-")&&(s=r.substring(5)),s.startsWith("attribute-")||"attributes"===s||s.startsWith("property-")||"properties"===s){var l=(0,d.compile)(o,m),u=l.error,p=l.originalScopeNames,y=l.templateFunction;if(u)return console.warn('Error occurred during compiling given attribute binding "'+r+'" on node:',e,u),0;"attributes"===s||"properties"===s?a=!0:s=s.startsWith("attribute-")?s.substring(10):s.substring(9),o={originalScopeNames:p,templateFunction:y.bind(i)}}else if(s.startsWith("on-")){s=(0,d.delimitedToCamelCase)(s),Object.prototype.hasOwnProperty.call(t,"event")||(m=[].concat(m,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(m=[].concat(m,["parameters"]));var g=(0,d.compile)(o,m,!0),_=g.error,b=g.originalScopeNames,E=g.scopeNames,x=g.templateFunction;if(_)return console.warn('Error occurred during compiling given event binding "'+r+'" on node:',e,_),0;var C=x.bind(i);o=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.event=i[0],t.parameters=i;try{C.apply(void 0,b.map(function(e){return t[e]}))}catch(t){console.warn('Error occurred during processing given event binding "'+r+'" on node: ',e,'Given expression "'+o+'" could not be evaluated with given scope names "'+E.join('", "')+'": '+(0,d.represent)(t))}}}else s=r;var S={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(S,s)&&(s=S[s]),s=(0,d.delimitedToCamelCase)(s),null!=(n=o)&&n.originalScopeNames?v[a?"":s]=o:f||(c[s]=o)},_=y(e.getAttributeNames());!(h=_()).done;)g();if(!f){var b=Array.from(e.childNodes);b.length&&(c.children=this.preCompileDomNodes(b,t))}return function(n){(n=o()({},t,n)).scope=n;for(var r=o()({},c),a=0,s=Object.entries(v);a<s.length;a++){var l=s[a],d=l[0],h=l[1],m=h.originalScopeNames,y=h.templateFunction.apply(void 0,m.map(function(e){return n[e]}));""===d?r=o()({},r,y):r[d]=y}return Object.prototype.hasOwnProperty.call(r,"innerHTML")&&(r.dangerouslySetInnerHTML={__html:r.innerHTML},delete r.children,delete r.innerHTML),Object.prototype.hasOwnProperty.call(r,"textContent")?(r.children=r.textContent,delete r.textContent):f?(r=o()({},e.internalProperties,r),n=o()({},r,n,{parent:e}),e.evaluateSlots(n),e.prepareProperties(r)):r.children&&(r.children=i.evaluatePreCompiledDomNodes(r.children,n)),(0,p.createElement)(u,r)}},n.evaluatePreCompiledDomNodes=function(e,t){if(void 0===t&&(t={}),!Array.isArray(e))return e(t);if(1===e.length)return e[0](t);for(var n,r=[],o=y(e);!(n=o()).done;){var i=(0,n.value)(t);i&&r.push(i)}return r},n.preCompileSlots=function(){for(var e in this.slots)this.slots[e]&&"default"!==e&&(this.compiledSlots[e]=this.preCompileDomNode(this.slots[e],o()({},this.scope,{parent:this}),[f.func,"function"].includes(this.self.propertyTypes[e])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,o()({},this.scope,{parent:this}),[f.func,"function"].includes(this.self.propertyTypes.children)))},n.evaluateSlots=function(e){for(var t in this.preparedSlots={},this.compiledSlots)Object.prototype.hasOwnProperty.call(this.compiledSlots,t)&&("children"===t?this.preparedSlots.children=this.evaluatePreCompiledDomNodes(this.compiledSlots[t],e):this.preparedSlots[t]=this.compiledSlots[t](e))},t.isReactComponent=function(e){var t=e.constructor;return"object"==typeof t.content&&(!t.attachWebComponentAdapterIfNotExists||"react"===t.content.webComponentAdapterWrapped)},n.determineRootBinding=function(){e.prototype.determineRootBinding.call(this);for(var t=this.parentNode;t;){if(this.self.isReactComponent(t)){this.rootReactInstance=t;break}t=t.parentNode}},n.applyComponentWrapper=function(){if("string"!=typeof this.self.content&&!this.isWrapped){this.isWrapped=!0;var e=this.self.content.wrapped||this.self.content;this.self.content.webComponentAdapterWrapped?this.wrapMemorizingWrapper&&(this.self.content=(0,p.memo)(this.self.content),this.self.content.wrapped=e):this.self.attachWebComponentAdapterIfNotExists?(this.self.content.displayName||(this.self.content.displayName=this.self._name),this.self.content=(0,p.forwardRef)(function(t,n){return(0,p.useImperativeHandle)(n,function(){return{properties:t}}),(0,p.createElement)(e,t)}),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,p.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,p.memo)(this.self.content),this.self.content.wrapped=e)}},n.prepareProperties=function(e){(0,d.extend)(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,p.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var n,r=y(["isRoot","isTrusted","__composed"]);!(n=r()).done;){var o=n.value;Object.prototype.hasOwnProperty.call(t,o)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,o)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,o))&&delete t[o]}},t}(n(7).default);_.attachWebComponentAdapterIfNotExists=!0,_.content="div",_.react=h(),_._name="ReactWebComponent";var b={component:_,register:function(e){void 0===e&&(e=(0,d.camelCaseToDelimited)(_._name)),customElements.define(e,_)}};t.default=_}],f={};function h(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return d[e](n,n.exports,h),n.exports}h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};h.r(m),h.d(m,{ReactWeb:function(){return C},Web:function(){return O},reactWebAPI:function(){return S},webAPI:function(){return w},wrapAsWebComponent:function(){return T}});var v=h(0),y=h.n(v),g=h(3),_=h.n(g),b=h(1),E=h(14),x=h(7),C=E.default,S=E.api,w=x.api,O=x.default,T=function(e,t,n){var r,o,i;void 0===t&&(t="NoName"),void 0===n&&(n={});var a=e._name||(null==(r=e.___types)||null==(r=r.name)?void 0:r.name)||t.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");n.propTypes&&(e.propTypes=n.propTypes);var s=e.propTypes||{},l=n.propertyAliases||e.propertyAliases||{},u=(0,b.unique)(Object.keys(s).concat(Object.keys(l)).concat(Object.values(l))),c=n.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(C.propertiesToReflectAsAttributes)if(Array.isArray(c))c=[].concat(C.propertiesToReflectAsAttributes,c);else if(c instanceof Map)for(var d=0,f=C.propertiesToReflectAsAttributes;d<f.length;d++){var p=f[d];c.set(p,C.propertyTypes[p])}else if("object"==typeof c)for(var h=0,m=C.propertiesToReflectAsAttributes;h<m.length;h++){var v=m[h];c[v]=C.propertyTypes[v]}var g=u.map(function(e){return(0,b.camelCaseToDelimited)(e)}),E=function(t){function r(){for(var o,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(i=t.call.apply(t,[this].concat(s))||this).self=r,i.internalProperties=n.internalProperties?y()({},n.internalProperties):e.internalProperties?y()({},e.internalProperties):{},i.unmountOnDisconnect=null===(o=n.unmountOnDisconnect)||void 0===o||o,i}return _()(r,t),r}(C);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof n.attachWebComponentAdapterIfNotExists||n.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=C.observedAttributes.concat(g).concat(g.map(function(e){return"-"+e})),E.controllableProperties=e.controllableProperties||n.controllableProperties||[],E.eventToPropertyMapping=null===n.eventToPropertyMapping?n.eventToPropertyMapping:n.eventToPropertyMapping?y()({},n.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?y()({},e.eventToPropertyMapping):{},E.propertyAliases=y()({},C.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=y()({},C.propertyTypes,s),E.renderProperties=null!==(o=null!==(i=n.renderProperties)&&void 0!==i?i:e.renderProperties)&&void 0!==o?o:C.renderProperties,E._name=a,{component:E,register:function(e){void 0===e&&(e=(0,b.camelCaseToDelimited)(a)),customElements.define(e,E)}}};return m.default=T,m}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__15__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__16__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__17__},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__20__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__21__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__22__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__23__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__24__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__25__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__27__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__28__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__30__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__31__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__32__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__33__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__34__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__35__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__36__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__37__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__38__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__39__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__40__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__41__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__42__},function(module,__unused_webpack_exports,__nested_webpack_require_51113__){var __webpack_dirname__="/",e,t,n,r,i,o,a,l,u,s,d,c,m,p,f,v,g,h,y,b,x,S,I,T,w,j,C,N,P,E,O,A,k,q,M,_,B,R;if(module=__nested_webpack_require_51113__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__nested_webpack_require_51113__.g||null===__nested_webpack_require_51113__.g?{}:__nested_webpack_require_51113__.g;module.exports=(e=__nested_webpack_require_51113__(5),t=__nested_webpack_require_51113__(2),n=__nested_webpack_require_51113__(7),r=__nested_webpack_require_51113__(6),i=__nested_webpack_require_51113__(21),o=__nested_webpack_require_51113__(22),a=__nested_webpack_require_51113__(23),l=__nested_webpack_require_51113__(24),u=__nested_webpack_require_51113__(25),s=__nested_webpack_require_51113__(26),d=__nested_webpack_require_51113__(27),c=__nested_webpack_require_51113__(28),m=__nested_webpack_require_51113__(29),p=__nested_webpack_require_51113__(30),f=__nested_webpack_require_51113__(57),v=__nested_webpack_require_51113__(19),g=__nested_webpack_require_51113__(31),h=__nested_webpack_require_51113__(32),y=__nested_webpack_require_51113__(33),b=__nested_webpack_require_51113__(34),x=__nested_webpack_require_51113__(35),S=__nested_webpack_require_51113__(8),I=__nested_webpack_require_51113__(9),T=__nested_webpack_require_51113__(36),w=__nested_webpack_require_51113__(37),j=__nested_webpack_require_51113__(38),C=__nested_webpack_require_51113__(58),N=__nested_webpack_require_51113__(4),P=__nested_webpack_require_51113__(0),E=__nested_webpack_require_51113__(3),O=__nested_webpack_require_51113__(20),A=__nested_webpack_require_51113__(10),k=__nested_webpack_require_51113__(39),q=__nested_webpack_require_51113__(40),M=__nested_webpack_require_51113__(41),_=__nested_webpack_require_51113__(42),B=__nested_webpack_require_51113__(11),R=__nested_webpack_require_51113__(59),function(){var L=[function(e){e.exports=t},function(e){e.exports=B},function(e){e.exports=E},function(e){e.exports=P},function(e,t,n){n.d(t,{defaultModel:function(){return d},defaultModelState:function(){return c},defaultProperties:function(){return f},modelPropertyTypes:function(){return l},modelStatePropertyTypes:function(){return s},propertyTypes:function(){return u}});var r=n(0),o=n.n(r),i=n(3),a={name:i.string,declaration:i.string,description:i.string,default:i.any,selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string])),(0,i.arrayOf)((0,i.shape)({label:i.string,value:(0,i.oneOfType)([i.boolean,i.number,i.string])})),i.object]),type:i.string,value:i.any},s={dirty:(0,i.oneOfType)([i.boolean,i.symbol]),pristine:(0,i.oneOfType)([i.boolean,i.symbol]),touched:(0,i.oneOfType)([i.boolean,i.symbol]),untouched:(0,i.oneOfType)([i.boolean,i.symbol]),focused:(0,i.oneOfType)([i.boolean,i.symbol]),visited:(0,i.oneOfType)([i.boolean,i.symbol]),invalid:(0,i.oneOfType)([i.boolean,i.symbol]),invalidRequired:(0,i.oneOfType)([i.boolean,i.symbol]),valid:(0,i.oneOfType)([i.boolean,i.symbol])},l=o()({},a,{emptyEqualsNull:i.boolean,trim:i.boolean,invertedPattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),pattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),maximum:(0,i.oneOfType)([i.number,i.string]),minimum:(0,i.oneOfType)([i.number,i.string]),maximumLength:i.number,minimumLength:i.number,mutable:i.boolean,writable:i.boolean,state:(0,i.shape)(s)}),u=o()({},a,s,{className:(0,i.oneOfType)([(0,i.arrayOf)(i.string),i.string]),styles:i.object,themeConfiguration:i.object,disabled:i.boolean,enforceUncontrolled:i.boolean,initialValue:i.any,model:(0,i.shape)(l),selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string]))),(0,i.arrayOf)((0,i.oneOfType)([i.boolean,i.number,i.string])),(0,i.arrayOf)((0,i.shape)({label:i.string,value:(0,i.oneOfType)([i.boolean,i.number,i.string])})),i.object]),onChange:i.func,onChangeValue:i.func,onChangeShowDeclaration:i.func,onChangeState:i.func,onClick:i.func,onFocus:i.func,onTouch:i.func,required:i.boolean,requiredText:i.string,componentProperties:i.object,domNodeProperties:i.object,showDeclaration:(0,i.oneOfType)([i.boolean,i.symbol]),showInitialValidationState:i.boolean,showValidationState:i.boolean,tooltip:i.any}),c={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},d={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:1/0,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:o()({},c),trim:!0,type:"string"},f={className:[],styles:{},componentProperties:{},domNodeProperties:{},enforceUncontrolled:!1,model:o()({},d),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e){e.exports=N},function(e){e.exports=S},function(e,t,n){n.d(t,{defaultInputModel:function(){return d},defaultModelState:function(){return c},defaultProperties:function(){return f},propertyTypes:function(){return l},renderProperties:function(){return u}});var r=n(0),o=n.n(r),i=n(3),a=n(4),s=o()({},a.modelStatePropertyTypes,{invalidMaximum:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMinimum:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMaximumLength:(0,i.oneOfType)([i.boolean,i.symbol]),invalidMinimumLength:(0,i.oneOfType)([i.boolean,i.symbol]),invalidInvertedPattern:(0,i.oneOfType)([i.boolean,i.symbol]),invalidPattern:(0,i.oneOfType)([i.boolean,i.symbol])}),l=o()({},a.propertyTypes,s,{align:i.string,children:i.func,cursor:(0,i.oneOfType)([(0,i.shape)({end:i.number.isRequired,start:i.number.isRequired}),i.symbol]),editor:i.string,editorIsActive:(0,i.oneOfType)([i.boolean,i.symbol]),editorIsInitiallyActive:i.boolean,hidden:(0,i.oneOfType)([i.boolean,i.symbol]),leadingIcon:(0,i.oneOfType)([i.string,i.object]),trailingIcon:(0,i.oneOfType)([i.string,i.object]),attributes:i.object,invertedPattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),invertedPatternText:i.string,labels:(0,i.oneOfType)([(0,i.arrayOf)((0,i.arrayOf)((0,i.oneOfType)([i.any,i.string]))),(0,i.arrayOf)(i.string),i.object]),maximum:(0,i.oneOfType)([i.number,i.string]),maximumLength:i.number,minimum:(0,i.oneOfType)([i.number,i.string]),minimumLength:i.number,maximumLengthText:i.string,minimumLengthText:i.string,maximumText:i.string,minimumText:i.string,onBlur:i.func,onChangeEditorIsActive:i.func,onKeyDown:i.func,onKeyUp:i.func,onSelect:i.func,onSelectionChange:i.func,pattern:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.object,i.string])),i.object,i.string]),patternText:i.string,placeholder:i.string,representation:(0,i.oneOfType)([i.string,i.symbol]),rows:i.number,searchSelection:i.boolean,selectableEditor:i.boolean,step:i.number,suggestionCreator:i.func,suggestSelection:i.boolean,transformer:i.object}),u=["children","suggestionCreator"],c=o()({},a.defaultModelState,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),d=o()({},a.defaultModel,{state:c}),f=o()({},a.defaultProperties,{cursor:{end:0,start:0},editor:"plain",selectableEditor:!1,rows:4,invertedPatternText:'Your string should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',maximumLengthText:"Please type less or equal than ${maximumLength} symbols.",minimumLengthText:"Please type at least or equal ${minimumLength} symbols.",maximumText:"Please type less or equal than ${formatValue(maximum)}.",minimumText:"Please type at least or equal ${formatValue(minimum)}.",model:o()({},d),patternText:'Your string have to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',searchSelection:!1,suggestSelection:!1,step:1})},function(e,t,n){n.d(t,{WrapTooltip:function(){return d},default:function(){return f}});var r=n(0),o=n.n(r),i=n(16),a=n(13),s=n(2),l=n(1),u=!i.Tooltip||Boolean(i.Tooltip.isDummy),c=(0,s.forwardRef)(function(e,t){return u?(0,l.jsx)("div",{className:"generic-tooltip",ref:t,title:e.value,children:e.children}):(0,l.jsx)(i.Tooltip,o()({overlay:(0,l.jsx)(a.Typography,{use:"caption",children:e.value}),ref:t},e.componentProperties,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:e.children})}))}),d=(!c||Boolean(c.isDummy),function(e){var t=e.children,n=e.value;return"string"==typeof n?(0,l.jsx)(c,{value:n,children:t}):(0,l.jsx)(l.Fragment,{children:t})}),f=d},function(e){e.exports=k},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(0),n(17),n(6),n(2);var r=n(14),o=n(15),i=n(8),a=n(1),s=function(e){var t=e.children,n=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(r.WrapStrict,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{value:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return h},determineInitialValue:function(){return m},determineValidationState:function(){return v},formatValue:function(){return C},getConsolidatedProperties:function(){return g},getLabelAndValues:function(){return _},getValueFromSelection:function(){return b},mapPropertiesIntoModel:function(){return y},normalizeSelection:function(){return E},parseValue:function(){return x},renderMessage:function(){return d},translateKnownSymbols:function(){return p},triggerCallbackIfExists:function(){return f},wrapStateSetter:function(){return c}});var r=n(0),o=n.n(r),i=n(5),a=n(3);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e,t){e.model&&void 0!==e.model.value&&void 0===e.value&&(e.value=e.model.value),void 0===e.value&&(e.value=t.value),e.model&&(e.model.state?e.model.state=o()({},e.model.state):e.model.state={});for(var n=0,r=Object.entries(t.modelState);n<r.length;n++){var i,a=r[n],s=a[0],l=a[1];null!=(i=e.model)&&i.state&&void 0===e.model.state[s]&&(e.model.state[s]=l)}return e},c=function(e,t){return function(n){var r="function"==typeof n?n(t):n;(0,i.equals)(null==r?void 0:r.modelState,null==t?void 0:t.modelState)||e(r)}},d=function(e,t){if("string"!=typeof e)return"";var n=(0,i.evaluate)("`"+e+"`",t);return n.error?(console.warn("Given message template could not be proceed:",n.error),""):n.result},f=function(e,t,n){void 0===n&&(n=!0);for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];t="on"+(0,i.capitalize)(t),e[t]&&(n?e[t].apply(e,o):(0,i.timeout)(function(){e[t].apply(e,o)}))},p=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],s=o[0],l=o[1];l===a.UndefinedSymbol?t[s]=void 0:l===a.NullSymbol?t[s]=null:t[s]=(0,i.copy)(e[s])}return t};function h(e,t,n,r,a){if("string"==typeof e.representation)return e.representation;if(null!==n){var l,u=function(e,t){if(t)for(var n,r=s(t);!(n=r()).done;){var o=n.value;if((0,i.equals)(null==o?void 0:o.value,e))return o.label||String(e)}return null}(n,a);return"string"==typeof u?u:C(o()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),n,r)}return""}var m=function(e,t,n){var r,o;return void 0!==n?n:void 0!==e.value?e.value:void 0!==(null==(r=e.model)?void 0:r.value)?e.model.value:void 0!==e.initialValue?(0,i.copy)(e.initialValue):void 0!==e.default?(0,i.copy)(e.default):void 0!==(null==(o=e.model)?void 0:o.default)?(0,i.copy)(e.model.default):void 0!==t?t:null},v=function(e,t,n){void 0===n&&(n={});var r=!1;n=o()({invalidRequired:function(){return!1===e.model.nullable&&"boolean"!==e.model.type&&!e.model.value&&0!==e.model.value||"boolean"===e.model.type&&!("boolean"==typeof e.model.value||["false","true"].includes(e.model.value))}},n),e.model.state||(e.model.state={});for(var i=0,a=Object.entries(n);i<a.length;i++){var s=a[i],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),r=r||c!==t[l]}return r&&(e.model.state.invalid=Object.keys(n).some(function(t){return Boolean(e.model.state&&e.model.state[t])}),e.model.state.valid=!e.model.state.invalid),r},y=function(e,t){var n=(0,i.extend)(!0,{model:(0,i.copy)(t)},e);n.disabled&&(n.model.mutable=!1,delete n.disabled),n.invertedPattern&&(n.model.invertedPattern=n.invertedPattern,delete n.invertedPattern),n.pattern&&(n.model.pattern=n.pattern,delete n.pattern),n.required&&(n.model.nullable=!1,delete n.required),"text"===n.type&&(n.type="string");for(var r,o=s(Object.keys(n.model).concat("value"));!(r=o()).done;){var a=r.value;Object.prototype.hasOwnProperty.call(n,a)&&void 0!==n[a]&&(n.model[a]=n[a])}for(var l in n.model.state)Object.prototype.hasOwnProperty.call(n,l)&&void 0!==n[l]&&(n.model.state[l]=n[l]);return void 0===n.model.value&&(n.model.value=(0,i.copy)(n.model.default)),n},g=function(e){var t=o()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t};function _(e){if(Array.isArray(e)){for(var t,n=[],r=[],o=s(e);!(t=o()).done;){var i=t.value;"string"==typeof(null==i?void 0:i.label)&&(n.push(i.label),r.push(i.value))}return[n,r]}return[[],[]]}function b(e,t){if(Array.isArray(t))for(var n,r=s(t);!(n=r()).done;){var o=n.value;if("string"==typeof(null==o?void 0:o.label)&&o.label===e)return o.value;if(["number","string"].includes(typeof(null==o?void 0:o.value))&&String(o.value)===e)return o.value}return null}function E(e,t){if(e||(e=t,t=void 0),!e)return e;var n=(0,i.isObject)(t),r=function(e,r){if(n)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var o=0,i=t;o<i.length;o++){var a=i[o],s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof r&&r<t.length)return t[r]}else{if(!0===e&&t.true)return t.true;if(!1===e&&t.false)return t.false;if("string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}return null},a=!1;if(Array.isArray(e)){if(a=!0,e.length){var l=[],u=0;if(Array.isArray(e[0]))for(var c=0,d=e;c<d.length;c++){var f,p=d[c],h=p[0],m=p[1];l.push({label:null!==(f=r(h,u))&&void 0!==f?f:m,value:h}),u+=1}else if((0,i.isObject)(e[0]))for(var v,y=s(e);!(v=y()).done;){var g,_=v.value;l.push(o()({},_,{label:null!==(g=r(_.value,u))&&void 0!==g?g:_.label})),u+=1}else for(var b=0,E=e;b<E.length;b++){var x,C=E[b];l.push({label:null!==(x=r(C,u))&&void 0!==x?x:C,value:C}),u+=1}e=l}}else{for(var S=[],w=0,O=Object.keys(e);w<O.length;w++){var T,A=O[w];S.push({label:null!==(T=r(A))&&void 0!==T?T:e[A],value:A})}e=S}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var I=new Map,k=0,N=0,P=t;N<P.length;N++){var M=P[N][0];I.set(M,k),k+=1}e=e.sort(function(e,t){var n,r,o=e.value,i=t.value;return(null!==(n=I.get(o))&&void 0!==n?n:0)-(null!==(r=I.get(i))&&void 0!==r?r:0)})}else a||(e=e.sort(function(e,t){var n=e.label,r=t.label;return n.localeCompare(r)}));return e}var x=function(e,t,n,r){var o;if(void 0===r&&(r=!1),r&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var i=t;if(![null,void 0].includes(t)&&null!=(o=n[e.model.type])&&o.parse){var a,s=null==(a=n[e.model.type])?void 0:a.parse;i=s&&t?s(t,n,e):t}return"number"==typeof i&&isNaN(i)?null:i};function C(e,t,n,r){var o;void 0===r&&(r=!0);var i=r?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(o=n[e.type||e.model.type])?void 0:o.format;if(a){var s,l=(null==(s=a[i])?void 0:s.transform)||a.final.transform;if(l)return l(t,n,e)}return String(t)}},function(e,t,n){n.d(t,{TextInput:function(){return ge},default:function(){return _e}});var r=n(0),o=n.n(r),i=n(25),a=n(26),s=n(5),l=n(2),u=n(20),c=n.n(u),d=n(46),f=n(22),p=n(23),h=n(29),m=n(21),v=n(1),y=(0,l.memo)((0,l.forwardRef)(function(e,t){var n,r,o,i=(0,l.useRef)(null),a=(0,l.useRef)(null),s=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{surfaceAnchor:i,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}}),(0,v.jsx)(h.MenuSurfaceAnchor,{ref:i,onKeyDown:e.onKeyDown,children:e.pending?(0,v.jsx)(h.MenuSurface,{anchorCorner:"bottomLeft",className:(null!==(n=e.classNames)&&void 0!==n?n:[]).concat(null!==(r=e.pendingClassNames)&&void 0!==r?r:[]).join(" "),open:!0,children:(0,v.jsx)(m.A,{size:"large"})}):(0,v.jsx)(h.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){a.current=e},className:null==(o=e.classNames)?void 0:o.join(" "),focusOnOpen:!1,foundationRef:s,onFocus:e.onFocus,onSelect:e.onSelect,open:e.open,children:e.options.map(function(t,n){var r;return(0,v.jsx)(h.MenuItem,{className:null==(r=e.itemClassNames)?void 0:r.join(" "),children:t},n)})})})})),g=n(30),_=n(9),b=(0,l.memo)((0,l.forwardRef)(function(e,t){var n=(0,l.useRef)(null),r=(0,l.useRef)(null),i=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{base:n,foundation:r,input:i}}),(0,v.jsx)(g.Select,o()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,_.useMemorizedValue)(o()({name:e.name,onClick:e.onClick},e.domNodeProperties),e.name,e.onClick,e.domNodeProperties),enhanced:!0,ref:n,foundationRef:r,inputRef:i,onChange:e.onChange,onKeyDown:e.onKeyDown,options:e.options,value:String(e.value),label:e.label},e.componentProperties))})),E=n(31),x=(0,l.forwardRef)(function(e,t){var n,r=(0,l.useRef)(null),i=(0,l.useRef)(null),a=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{base:r,foundation:i,input:a}});var s="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0;return(0,v.jsx)("div",{className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles,children:(0,v.jsx)(E.TextField,o()({characterCount:e.characterCount&&s,disabled:e.disabled,invalid:e.invalid,label:e.label,name:e.name,placeholder:e.placeholder,helpText:e.helpText,maxLength:s?e.maximumLength:void 0,ref:r,foundationRef:i,inputRef:a,onChange:e.onChange,ripple:!0,rootProps:(0,_.useMemorizedValue)(o()({onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,v.jsx)(f.A,o()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,v.jsx)(f.A,o()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})});x.CSS_CLASS_NAMES={textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"};var C=x,S=n(10),w=n(8),O=n(11),T=n(32),A=n(33),I=n(34),k=n(35),N=n(36),P=n(37),M=n(38),L=n(39),D=(0,l.forwardRef)(function(e,t){var n,r,i,a,u,c=(0,l.useId)(),d=null!==(n=e.id)&&void 0!==n?n:c,f=null!==(r=e.classNamePrefix)&&void 0!==r?r:"text-area",p=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useRef)(null),y=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{foundation:y,input:p,label:m,materialTextField:h}}),(0,l.useEffect)(function(){if(m.current)return h.current=new L.MDCTextField(m.current),y.current=h.current.getDefaultFoundation(),"string"==typeof e.value&&(y.current.setValue(e.value),h.current.value=e.value),"boolean"==typeof e.disabled&&(y.current.setDisabled(e.disabled),h.current.disabled=e.disabled),"boolean"==typeof e.invalid&&(y.current.setValid(!e.invalid),h.current.valid=!e.invalid),"boolean"==typeof e.required&&(h.current.required=e.required),y.current.setUseNativeValidation(!1),function(){var e;null==(e=h.current)||e.destroy()}},[m.current,h.current,e.value,e.disabled,e.invalid,e.required,e.minimumLength,e.maximumLength]),(0,l.useEffect)(function(){var t,n,r=e.children?function(){setTimeout(function(){var e;null==(e=y.current)||e.autoCompleteFocus()})}:s.NOOP;null==(t=p.current)||t.addEventListener("input",r);var o=e.children?function(){setTimeout(function(){var e;null==(e=y.current)||e.activateFocus()})}:s.NOOP;return null==(n=p.current)||n.addEventListener("focus",o),function(){var e,t;null==(e=p.current)||e.removeEventListener("input",r),null==(t=p.current)||t.removeEventListener("focus",o)}},[y.current,p.current,e.children]);var g="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0,_=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("textarea",o()({ref:p,id:d,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?o()({visibility:"hidden",position:"absolute"},e.styles):e.styles,rows:e.rows,"aria-labelledby":d+"-label","aria-controls":d+"-helper","aria-describedby":d+"-helper",readOnly:Boolean(e.children),value:e.value,minLength:e.minimumLength,maxLength:e.maximumLength,onChange:e.onChange,onClick:e.onClick,onBlur:e.onBlur,onFocus:e.onFocus,onKeyUp:e.onKeyUp,onKeyDown:e.onKeyDown},e.domNodeProperties)),e.children,e.barContentSlot?(0,v.jsxs)("div",{className:f+"__bar",children:[e.barContentSlot,e.characterCount&&g?(0,v.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&g?(0,v.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),b="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("label",{ref:m,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[f,"mdc-text-field","mdc-text-field--textarea"].concat(""===e.value?"mdc-text-field--textarea":f+"--has-content").concat(e.disabled?"mdc-text-field--disabled":[]).concat("mdc-text-field--filled").concat(e.characterCount&&g?"mdc-text-field--with-internal-counter":[]).concat(e.invalid?"mdc-text-field--invalid":[]).join(" "),children:[!1===(null==(i=e.componentProperties)?void 0:i.ripple)||e.children?"":(0,v.jsx)("span",{className:"mdc-text-field__ripple"}),(0,v.jsx)("span",{className:"mdc-floating-label",id:d+"-label",children:e.label}),e.resizeable?(0,v.jsx)("span",{className:"mdc-text-field__resizer",children:_}):_,!1!==(null==(a=e.componentProperties)?void 0:a.ripple)?(0,v.jsx)("span",{className:"mdc-line-ripple"}):""]}),b.children?(0,v.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,v.jsx)("div",{className:["mdc-text-field-helper-text"].concat(b.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:d+"-helper",children:null!=(u=e.helpText)&&u.children?e.helpText.children:e.helpText})}):""]})});D.CSS_CLASS_NAMES={textInput:"text-input",codeEditor:"code-editor",mdcTextFieldDisabled:"mdc-text-field--disabled",cmEditor:"cm-editor",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter"};var R,j,F,B=D,U=(0,l.forwardRef)(function(e,t){var n=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,function(){return{input:n,eventMapper:{blur:function(e){var t;if(null!=(t=n.current)&&t.input.current){var r=new Event("blur");r.detail=e,n.current.input.current.dispatchEvent(r)}},focus:function(e){var t;if(null!=(t=n.current)&&t.input.current){var r=new Event("focus");r.detail=e,n.current.input.current.dispatchEvent(r)}},input:function(e,t){var r;if(null!=(r=n.current)&&r.input.current){var o=new Event("input");o.detail=t,n.current.input.current.value=String(e),n.current.input.current.dispatchEvent(o)}}}}}),(0,v.jsx)(B,o()({ref:n},e,{children:e.children}))}),V={textInput:"text-input",textInputCodeEditorButton:"text-input__code-editor-button",textInputRichtextEditorButton:"text-input__richtext-editor-button",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark",codeEditor:"code-editor",cmContent:"cm-content",cmActiveLine:"cm-activeLine",cmGutters:"cm-gutters",cmActiveLineGutter:"cm-activeLineGutter",cmFocused:"cm-focused",codeEditorHasContent:"code-editor--has-content",codeEditorView:"code-editor__view",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",richtextEditorView:"richtext-editor__view",tiptap:"tiptap"},z=T.autocompletion?[].concat(T.closeBracketsKeymap,A.defaultKeymap,N.searchKeymap,A.historyKeymap,I.foldKeymap,T.completionKeymap,k.lintKeymap):[],W=M.EditorView?[(0,M.lineNumbers)(),(0,M.highlightActiveLineGutter)(),(0,M.highlightSpecialChars)(),(0,A.history)(),(0,I.foldGutter)(),(0,M.drawSelection)(),(0,M.dropCursor)(),P.EditorState.allowMultipleSelections.of(!0),(0,I.indentOnInput)(),(0,I.syntaxHighlighting)(I.defaultHighlightStyle,{fallback:!0}),(0,I.bracketMatching)(),(0,T.closeBrackets)(),(0,T.autocompletion)(),(0,M.rectangularSelection)(),(0,M.crosshairCursor)(),(0,M.highlightActiveLine)(),(0,N.highlightSelectionMatches)(),M.keymap.of(z)]:[],q=V,H=(0,l.forwardRef)(function(e,t){var n,r,i;if(!(T.autocompletion&&A.history&&I.syntaxHighlighting&&k.lintKeymap&&N.searchKeymap&&P.EditorState&&M.EditorView))throw Error("Missing codemirror dependencies.");var a=null!==(n=e.value)&&void 0!==n?n:"",s=(0,l.useRef)(null),u=(0,l.useRef)(null),c=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{input:s,editorView:u,editorViewReference:c}}),(0,l.useEffect)(function(){var t;if(c.current){var n=P.EditorState.create({doc:String(a),extensions:[W,P.EditorState.changeFilter.of(function(t){var n=t.state.doc.toString();if(t.startState.doc.toString()!==n){if(void 0!==e.maximumLength&&n.length>e.maximumLength)return!1;!function(t){var n;if(!e.disabled){var r=t.state.doc.toString();null==(n=s.current)||n.eventMapper.input(r,t),e.onChange&&e.onChange(r)}}(t)}return!0}),null!=(t=e.editor)&&t.mode?e.editor.mode:[]]});return u.current=new M.EditorView({state:n,parent:c.current}),function(){u.current&&(u.current.destroy(),u.current=null)}}},[c.current,null==(r=e.editor)||null==(r=r.mode)?void 0:r.language.name]),(0,l.useEffect)(function(){u.current&&e.value!==u.current.state.doc.toString()&&u.current.state.update({changes:{from:0,insert:P.Text.empty}},{changes:{from:0,insert:String(e.value)}})},[u.current,e.value]);var d=null==(i=s.current)||null==(i=i.input)||null==(i=i.current)||null==(i=i.input)?void 0:i.current;return(0,l.useEffect)(function(){var e=new ResizeObserver(function(){var e=null==d?void 0:d.clientHeight;if(c.current&&e){var t=c.current.querySelector(".cm-scroller");if(t){var n=String(e)+"px";return c.current.style.height=n,void(t.style.height=n)}}});return d&&e.observe(d),function(){e.disconnect()}},[c.current,d]),(0,v.jsx)(U,o()({},e,{ref:s,value:a,classNamePrefix:q.codeEditor,onLabelClick:function(){var e;null==(e=c.current)||e.focus()},children:(0,v.jsx)("div",{ref:c,onBlur:function(t){var n;null==(n=s.current)||n.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var n;null==(n=s.current)||n.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},className:q.codeEditorView+" mdc-text-field__input"})}))}),$=n(40),K=n(41),G=n(42),X=n.n(G),Y=(0,l.createContext)(null),J=function(e){var t,n=e.action,r=e.activeIndicator,o=e.checkedIconName,i=e.enabledIndicator,a=e.iconName,s=e.label,u=(0,l.useContext)(Y);if(!u)return null;var c=!0;i?c=i(u.can().chain().focus()).run():null!==i&&(c=n(u.can().chain().focus()).run());var d=Boolean(r&&u.isActive(r)),f=null!==(t=null!=s?s:r)&&void 0!==t?t:a;return(0,v.jsx)(w.default,{value:f,children:(0,v.jsx)(p.A,{value:d,disabled:!c,classNames:d?["mdc-icon-button--checked"]:[],onClick:function(e){e.stopPropagation(),n(u.chain().focus()).run()},size:"extra-small",icon:a,onIcon:null!=o?o:a,domNodeProperties:{"aria-label":f}})})},Q=function(e){var t=e.editor;return t?(0,v.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,v.jsxs)(Y.Provider,{value:t,children:[(0,v.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,v.jsx)(J,{action:function(e){return e.undo()},iconName:"undo"}),(0,v.jsx)(J,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,v.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,v.jsx)(J,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,v.jsx)(J,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,v.jsx)(J,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,v.jsx)(J,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,v.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,v.jsx)(J,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,v.jsx)(J,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,v.jsx)(J,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,v.jsx)(J,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,v.jsx)(J,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,v.jsx)(J,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},Z=V,ee=(0,l.forwardRef)(function(e,t){var n,r,i,a,s;if(!K.useEditor||X().isDummy)throw Error("Missing tiptap dependencies.");var u=null!==(n=e.value)&&void 0!==n?n:"",c=(0,l.useRef)(null),d=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return{input:c,editorViewReference:d}});var f=(null==(r=e.editor)?void 0:r.extensions)||[].concat(void 0===e.maximumLength?[]:[$.CharacterCount.configure({limit:e.maximumLength})],[X().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})]),p=(0,K.useEditor)(o()({extensions:f,editable:!e.disabled,content:String(u),onBlur:function(t){var n;null==(n=c.current)||n.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var n;null==(n=c.current)||n.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},onUpdate:function(t){var n,r=t.editor.getHTML();null==(n=c.current)||n.eventMapper.input("<p></p>"===r?"":r,t),e.onChange&&e.onChange(r,{contentTree:t.editor.getJSON()})}},(null==(a=e.editor)?void 0:a.options)||{})),h=p.getHTML(),m=null==(s=c.current)||null==(s=s.input)||null==(s=s.current)||null==(s=s.input)||null==(s=s.current)?void 0:s.clientHeight;return(0,l.useEffect)(function(){d.current&&m&&(d.current.style.height=String(m+8)+"px")},[d.current,m]),(0,v.jsx)(U,o()({},e,{ref:c,barContentSlot:(0,v.jsx)(Q,{editor:p}),value:"<p></p>"===h?"":h,classNamePrefix:Z.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,v.jsx)(K.EditorContent,{className:Z.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:d})}))}),te=!(void 0===window),ne=te?null==(R=n(43))?void 0:R.default:null,re=te?null==(j=n(44))?void 0:j.default:null,oe=te?null==(F=n(45))?void 0:F.default:null,ie=V,ae={injectCSS:!0,enableContentCheck:!0},se=function(e,t){return(0,O.determineValidationState)(e,t,{invalidMaximum:function(){return"number"==typeof e.model.maximum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.maximum>=0&&e.model.maximum<e.model.value},invalidMinimum:function(){return"number"==typeof e.model.minimum&&"number"==typeof e.model.value&&!isNaN(e.model.value)&&e.model.value<e.model.minimum},invalidMaximumLength:function(){return"number"==typeof e.model.maximumLength&&"string"==typeof e.model.value&&e.model.maximumLength>=0&&e.model.maximumLength<e.model.value.length},invalidMinimumLength:function(){return"number"==typeof e.model.minimumLength&&"string"==typeof e.model.value&&e.model.value.length<e.model.minimumLength},invalidInvertedPattern:function(){return"string"==typeof e.model.value&&void 0!==e.model.invertedPattern&&Boolean(e.model.invertedPattern)&&[].concat(e.model.invertedPattern).some(function(t){return new RegExp(t).test(e.model.value)})},invalidPattern:function(){return"string"==typeof e.model.value&&void 0!==e.model.pattern&&Boolean(e.model.pattern)&&[].concat(e.model.pattern).some(function(t){return!new RegExp(t).test(e.model.value)})}})};function le(e){"Enter"===e.code&&e.stopPropagation()}function ue(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every(function(t){return e.includes(t)}))}var ce=n(7),de=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},fe=function(e){return new Date(Math.round(1e3*e)).toISOString()},pe=function(e){return e instanceof Date?e.getTime()/1e3:e},he={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t){var n,r,i,a=t.currency.format,s=null!==(n=null==a||null==(r=a.final.options)?void 0:r.currency)&&void 0!==n?n:"USD";return e===1/0?"Infinity "+s:e===-1/0?"- Infinity "+s:isNaN(e)?"unknown":new Intl.NumberFormat(ge.locales,o()({style:"currency"},null!==(i=null==a?void 0:a.final.options)&&void 0!==i?i:{})).format(e)}}},parse:function(e,t,n){return t.float.parse?t.float.parse(e,t,n):NaN},type:"text"},datetime:{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Datetime formatting depends on it.");e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=de(e);if("string"==typeof r)return r;var i=fe(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=pe(e))){var r=Date.parse(e+":00.000Z"),o=isNaN(r);o&&(r=Date.parse(e+".000Z"),(o=isNaN(r))&&(r=Date.parse(e),e=isNaN(r)?parseFloat(e):r/1e3)),o||(e=r/1e3)}return isNaN(e)&&(e=0),n?fe(e):e},type:"datetime-local"},"datetime-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["datetime-local"].parse)throw new Error("Missing datetime local parse transformation configured. Datetime local formatting depends on.");e=t["datetime-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=de(e);if("string"==typeof r)return r;var i=fe(e-60*new Date(1e3*e).getTimezoneOffset());return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=pe(e))){var r=Date.parse(e+":00.000Z"),o=isNaN(r);o&&(r=Date.parse(e+".000Z"),(o=isNaN(r))&&(r=Date.parse(e),e=isNaN(r)?parseFloat(e):r/1e3)),o||(e=r/1e3+60*new Date(r).getTimezoneOffset())}return isNaN(e)&&(e=0),n?fe(e):e}},date:{format:{final:{transform:function(e,t,n){var r;if(null==(r=t.datetime.format)||!r.final.transform)throw new Error("Missing datetime final format transformation configured. Date formatting depends on it.");var o=t.datetime.format.final.transform(e,t,n),i=o.indexOf("T");return-1===i?o:o.substring(0,i)}}},parse:function(e,t,n){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date parsing depends on it.");return t.datetime.parse(e,t,n)},useISOString:!0},"date-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["datetime-local"].parse)throw new Error("Missing datetime local parse transformation configured. Date local formatting depends on it.");e=t["datetime-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=de(e);if("string"==typeof r)return r;e-=60*new Date(1e3*e).getTimezoneOffset();var i=fe(e);return i.substring(0,i.lastIndexOf("T"))}}},parse:function(e,t,n){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date local parsing depends on.");return(e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?fe(e):e},type:"date"},time:{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Time formatting depends on it.");e=t.datetime.parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=de(e);if("string"==typeof r)return r;var i=fe(e),a=i.indexOf("T");return-1===a?i:(i=i.substring(a+1,i.length-1),n.step&&n.step>=60&&n.step%60==0?i.substring(0,i.lastIndexOf(":")):i)}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=pe(e))){var r=Date.parse(e);if(isNaN(r)){var o=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,function(e,t,n,r,o){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(n)+(r&&void 0!==o?parseFloat(o):0))}));e=isNaN(o)?0:o}else e=r/1e3}return isNaN(e)&&(e=0),n?fe(e):e}},"time-local":{format:{final:{transform:function(e,t,n){if("number"!=typeof e){if(!t["time-local"].parse)throw new Error("Missing time local parse transformation configured. Time local formatting depends on it.");e=t["time-local"].parse(e,o()({},t,{date:o()({},t.date,{useISOString:!1})}),n)}var r=de(e);if("string"==typeof r)return r;var i=new Date(1e3*e),a=i.getHours(),s=i.getMinutes(),l=(a<10?"0":"")+String(a)+":"+(s<10?"0":"")+String(s);if(!(n.step&&n.step>=60&&n.step%60==0)){var u=i.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=pe(e))){var r=Date.parse(e);if(isNaN(r)){var o=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,function(e,t,n,r,o){var i=new Date(0);return i.setHours(parseInt(t)),i.setMinutes(parseInt(n)),r&&void 0!==o&&i.setSeconds(parseInt(o)),String(i.getTime()/1e3)}));e=isNaN(o)?0:o}else e=r/1e3}return isNaN(e)&&(e=0),n?fe(e):e},type:"time"},float:{format:{final:{transform:function(e,t){var n=t.float.format;return n?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(ge.locales,n.final.options||{}).format(e):String(e)}}},parse:function(e,t,n){var r=n.maximum,o=n.minimum;return"string"==typeof e&&(e=parseFloat("de-DE"===ge.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),("number"==typeof o&&o>=0&&e<0||"number"==typeof r&&r<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t){var n,r=t.integer.format;return r?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(ge.locales,o()({maximumFractionDigits:0},null!==(n=r.final.options)&&void 0!==n?n:{})).format(e):String(e)}}},parse:function(e,t,n){var r=n.maximum,o=n.minimum;return"string"==typeof e&&(e=parseInt("de-DE"===ge.locales[0]?e.replace(/[,.]/g,""):e)),("number"==typeof o&&o>=0&&e<0||"number"==typeof r&&r<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};function me(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n={}.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)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ye=function(e,t){var n,r,u,h,m,g,_,E,x=(0,l.useId)(),T=null!==(n=e.id)&&void 0!==n?n:x;(0,l.useEffect)(function(){var e;if(null!=(e=F.current)&&null!=(e=e.input)&&e.current){var t,n,r,i,a=F.current.input.current;if(null!=(t=a.input)&&t.current&&null!=(r=(a=null==(n=a.input)?void 0:n.current).input)&&r.current&&(a=null==(i=a.input)?void 0:i.current),!a)return;var l=a,u={},c=[];Me.valid?(c.push("ariaErrormessage"),c.push("ariaInvalid")):(u.ariaErrormessage=T+"-error-message",u.ariaInvalid="true"),ze?("search"!==l.getAttribute("type")&&(u.role="searchbox"),u.ariaAutocomplete=Me.searchSelection?"inline":"list"):(c.push("searchbox"),c.push("ariaAutocomplete")),Me.showDeclaration?u.ariaDescribedby=T+"-declaration":c.push("ariaDescribedby");for(var d=o()({},u,Me.attributes||{}),f=0,p=Object.entries(d);f<p.length;f++){var h=p[f],m=h[0],v=h[1],y=(0,s.camelCaseToDelimited)(m);"boolean"==typeof v?v?l.setAttribute(y,""):l.removeAttribute(y):l.setAttribute(y,String(v))}for(var g=0,_=c;g<_.length;g++){var b=_[g],E=(0,s.camelCaseToDelimited)(b);l.hasAttribute(E)&&l.removeAttribute(E)}}}),(0,l.useEffect)(function(){if(Ye){var e,t=null==(e=U.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){t.hasAttribute("aria-expanded")||t.setAttribute("aria-expanded","false");var n=t.querySelector(".mdc-select__dropdown-icon-active");n&&!n.hasAttribute("aria-hidden")&&n.setAttribute("aria-hidden","true");var r=t.querySelector(".mdc-select__dropdown-icon-inactive");r&&!r.hasAttribute("aria-hidden")&&r.setAttribute("aria-hidden","true")}}}),(0,l.useEffect)(function(){if(Ye){var e,t=null==(e=U.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var n=function(e){Me.disabled&&e.stopPropagation()};return t.addEventListener("keydown",n,!0),function(){t.removeEventListener("keydown",n,!0)}}}}),(0,l.useEffect)(function(){Me.triggerInitialPropertiesConsolidation&&P(new Event("genericInitialPropertiesConsolidation"))},[]);var A=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),M((0,O.parseValue)(Me,Me.default,ge.transformer,!Ne&&Me.model.trim)))},n=(0,s.equals)(Me.value,Me.default);return{icon:(0,v.jsx)(c(),{in:!n,children:ne&&!ne.isDummy&&oe?(0,v.jsx)(ne,{animation:oe,reverse:!0}):(0,v.jsx)(f.A,{icon:"clear"})}),componentProperties:{"aria-hidden":n?"true":"false","tab-index":n?-1:0},onClick:t,onKeyDown:t,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var r=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),Q(function(t){return void 0===t&&(t=Me.hidden),Me.hidden=!t,P(e),Me.hidden}))};return{icon:ne&&!ne.isDummy&&re?(0,v.jsx)(ne,{animation:re,reverse:!Me.hidden}):Me.hidden?"lock_open":"lock",onClick:r,onKeyDown:r,strategy:"component",tooltip:(Me.hidden?"Show":"Hide")+" password"}}var o;return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.domNodeProperties=null!==(o=e.domNodeProperties)&&void 0!==o?o:{},e.domNodeProperties["tab-index"]=-1,e.domNodeProperties["aria-hidden"]=!0)),e},I=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,v.jsx)(c(),{in:t,children:e}):t?e:"":n?(0,v.jsx)(c(),o()({},t,{children:e})):t.in?e:""},k=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=o()({},e)).tooltip;var n=o()({},e);e.strategy="component",e.icon=(0,v.jsx)(w.default,{value:t,children:(0,v.jsx)(f.A,o()({},n))})}return e},N=function(e){var t=(0,O.getConsolidatedProperties)(function(e){var t,n=(0,O.mapPropertiesIntoModel)(e,ge.defaultProperties.model);return n.model.value=(0,O.parseValue)(n,n.model.value,_e,!Ne&&(null==(t=e.model)?void 0:t.trim)),se(n,n.model.state),n}(e));return["plain","text"].includes(t.editor)&&(t.selectableEditor=!1),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,O.formatValue)(t,t.value,_e,!t.focused)),t},P=function(e){(0,s.extend)(!0,Me,N(Me)),(0,O.triggerCallbackIfExists)(Me,"change",Ne,Me,e)},M=function(e,t){var n;if(void 0===t&&(t=-1),ce(!0),(0,s.isObject)(e)){var r=(n=e).target||n.detail;Me.value=r?void 0===r.value?null:r.value:e}else Me.value=e;var i=function(){ke(function(e){if(!Pe&&e.representation===Me.representation&&!Me.suggestionCreator&&-1===t)return e;var r=o()({},e,{representation:Me.representation});if(!Ne&&(0,s.equals)(e.value,Me.value))return r;r.value=Me.value;var i=!1;return e.modelState.pristine&&(Me.dirty=!0,Me.pristine=!1,i=!0),P(n),se(Me,e.modelState)&&(i=!0),(0,O.triggerCallbackIfExists)(Me,"changeValue",Ne,Me.value,n,Me),i&&Me.model.state&&(r.modelState=Me.model.state,(0,O.triggerCallbackIfExists)(Me,"changeState",Ne,Me.model.state,n,Me)),(Ye||-1!==t)&&(0,O.triggerCallbackIfExists)(Me,"select",Ne,n,Me),r})},a=!Ne&&Me.model.trim;if(Me.representation=-1!==t?Ue[t]:"string"==typeof Me.value?Me.value:(0,O.formatValue)(Me,Me.value,_e),ze)if(Me.suggestionCreator){var l=new AbortController,u=function(e){if(!l.signal.aborted){if(xe(function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e}),-1===t){var n=(0,O.getValueFromSelection)(Me.representation,(0,O.normalizeSelection)(e));null!==n||Me.searchSelection?Me.value=n:Me.value=(0,O.parseValue)(Me,Me.representation,_e,a)}i()}},c=Me.suggestionCreator({abortController:l,properties:Me,query:Me.representation});null!=c&&c.then?(xe(function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),l}),ke(function(e){return o()({},e,{representation:Me.representation})}),c.then(u,function(){})):u(c)}else{if(-1===t){var d=(0,O.getValueFromSelection)(Me.representation,Se);null!==d||Me.searchSelection?Me.value=d:Me.value=(0,O.parseValue)(Me,Me.representation,_e,a)}i()}else Me.value=(0,O.parseValue)(Me,Me.value,_e,a),i()},L=function(e){R(e),(0,O.triggerCallbackIfExists)(Me,"click",Ne,e,Me),j(e)},D=function(e){(0,O.triggerCallbackIfExists)(Me,"focus",Ne,e,Me),j(e)},R=function(e){(0,O.triggerCallbackIfExists)(Me,"selectionChange",Ne,e,Me)},j=function(e){ke(function(t){var n=!1;t.modelState.focused||(Me.focused=!0,n=!0),t.modelState.untouched&&(Me.touched=!0,Me.untouched=!1,n=!0);var r=t;return n&&(P(e),r=o()({},t,{modelState:Me.model.state}),(0,O.triggerCallbackIfExists)(Me,"changeState",Ne,Me.model.state,e,Me)),(0,O.triggerCallbackIfExists)(Me,"touch",Ne,e,Me),r})},F=(0,l.useRef)(null),U=(0,l.useRef)(null),V=(0,l.useRef)(null),z=(0,O.translateKnownSymbols)(e),W=(0,l.useState)({end:0,start:0}),q=W[0],$=W[1],K=(0,l.useState)({editorIsActive:z.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),G=K[0],X=K[1],Y=(0,l.useState)(),J=Y[0],Q=Y[1],Z=(0,l.useState)(!1),te=Z[0],ce=Z[1],de=(0,l.useState)(!1),fe=de[0],pe=de[1],he=(0,O.determineInitialValue)(z,ge.defaultProperties.model.default);he instanceof Date&&(he=he.getTime()/1e3);var ve=(0,s.extend)(!0,(0,s.copy)(ge.defaultProperties),z),ye=ve.type||(null==(r=ve.model)?void 0:r.type)||"string",_e=ve.transformer?o()({},ge.transformer,((u={})[ye]=(0,s.extend)(!0,(0,s.copy)(ge.transformer[ye])||{},ve.transformer),u)):ge.transformer,be=(0,l.useState)(),Ee=be[0],xe=be[1];(ve.selection||null!=(h=ve.model)&&h.selection)&&(Ee=ve.selection||(null==(m=ve.model)?void 0:m.selection)),Ee||"boolean"!==(ve.type||(null==(g=ve.model)?void 0:g.type))||(Ee=[{label:"No",value:!1},{label:"Yes",value:!0}]);var Ce,Se=Ee instanceof AbortController?[]:(0,O.normalizeSelection)(Ee,ve.labels),we=Ee instanceof AbortController?[[],[]]:(0,O.getLabelAndValues)(Se),Oe=we[0],Te=we[1],Ae=(0,l.useState)(function(){return{modelState:o()({},ge.defaultModelState),representation:(0,O.determineInitialRepresentation)(ve,ge.defaultProperties,he,_e,Se),value:he}}),Ie=Ae[0],ke=Ae[1],Ne=!ve.enforceUncontrolled&&(void 0!==(null==(_=z.model)?void 0:_.value)||void 0!==z.value)&&Boolean(z.onChange||z.onChangeValue),Pe=Ne&&void 0!==z.representation;null!==ve.cursor&&"object"==typeof ve.cursor||(ve.cursor={}),void 0===ve.cursor.end&&(ve.cursor.end=q.end),void 0===ve.cursor.start&&(ve.cursor.start=q.start),void 0===ve.editorIsActive&&(ve.editorIsActive=G.editorIsActive),void 0===ve.hidden&&(ve.hidden=J),void 0===ve.representation&&(ve.representation=Ie.representation),void 0===ve.showDeclaration&&(ve.showDeclaration=fe),(0,O.deriveMissingPropertiesFromState)(ve,Ie),void 0===ve.value?void 0===ve.representation&&void 0===(null==(Ce=ve.model)?void 0:Ce.value)&&(ve.representation=Ie.representation):Pe||ve.value===Ie.value||(ve.representation=void 0);var Me=N(ve);void 0===Me.hidden&&(Me.hidden=Me.name.startsWith("password")),Me.cursor&&!(0,s.equals)(Me.cursor,q)&&$(Me.cursor),Me.editorIsActive!==G.editorIsActive&&X(o()({},G,{editorIsActive:Me.editorIsActive})),Me.hidden!==J&&Q(Me.hidden),Me.showDeclaration!==fe&&pe(Me.showDeclaration);var Le={modelState:Me.model.state,representation:Me.representation,value:null!==(E=Me.value)&&void 0!==E?E:null};(Ne||(0,s.equals)(Me.value,Ie.value)&&Me.representation===Ie.representation)&&(0,s.equals)(Me.model.state,Ie.modelState)||ke(Le),Ne&&(ke=(0,O.wrapStateSetter)(ke,Le)),(0,l.useImperativeHandle)(t,function(){for(var e,t={modelState:Me.model.state},n=me(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r,o=e.value;Object.prototype.hasOwnProperty.call(z,o)||(t[o]=null!==(r=Me[o])&&void 0!==r&&r)}return Pe||(t.representation=Me.representation),Ne||(t.value=Me.value),{properties:Me,references:{input:F,menu:V,wrapper:U},state:t}});var De={ref:F,id:T,componentProperties:Me.componentProperties,domNodeProperties:Me.domNodeProperties,onClick:L,onFocus:function(e){ce(!0),D(e)},disabled:Me.disabled,invalid:Me.invalid&&Me.showValidationState&&(Me.showInitialValidationState||Me.visited),helpText:{children:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c(),{in:Me.selectableEditor&&"string"===Me.type&&"plain"!==Me.editor,children:(0,v.jsx)(p.A,{classNames:[Me.editor.startsWith("code")?ie.textInputCodeEditorButton:ie.textInputRichtextEditorButton],domNodeProperties:{"aria-label":Me.editorIsActive?"plain":Me.editor.startsWith("code")?"code":"richtext"},icon:Me.editorIsActive?"subject":Me.editor.startsWith("code")?"code":"text_format",onClick:function(e){e.preventDefault(),e.stopPropagation(),X(function(t){var n=t.editorIsActive;return Me.editorIsActive=!n,P(e),(0,O.triggerCallbackIfExists)(Me,"changeEditorIsActive",Ne,Me.editorIsActive,e,Me),{editorIsActive:Me.editorIsActive,selectionIsUnstable:!0}})}})}),(0,v.jsx)(c(),{in:Boolean(Me.declaration),children:(0,v.jsx)(p.A,{"aria-expanded":Me.showDeclaration?"true":"false","aria-label":"declaration",value:Me.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:function(e){pe(function(t){return Me.showDeclaration=!t,P(e),(0,O.triggerCallbackIfExists)(Me,"changeShowDeclaration",Ne,Me.showDeclaration,e,Me),Me.showDeclaration})}})}),(0,v.jsx)(c(),{id:T+"-declaration",in:Me.showDeclaration,children:Me.declaration}),(0,v.jsx)(c(),{in:!Me.showDeclaration&&Me.invalid&&Me.showValidationState&&(Me.showInitialValidationState||Me.visited),children:(0,v.jsx)(d.A,{applyToChildren:!0,children:(0,v.jsx)("span",{id:T+"-error-message",children:(0,O.renderMessage)(Me.invalidMaximum&&Me.maximumText||Me.invalidMaximumLength&&Me.maximumLengthText||Me.invalidMinimum&&Me.minimumText||Me.invalidMinimumLength&&Me.minimumLengthText||Me.invalidInvertedPattern&&Me.invertedPatternText||Me.invalidPattern&&Me.patternText||Me.invalidRequired&&Me.requiredText,o()({formatValue:function(e){return(0,O.formatValue)(Me,e,_e)}},Me))})})})]}),persistent:!0},name:Me.name||Me.description,label:Me.description||Me.name},Re={placeholder:Me.placeholder,characterCount:"number"==typeof Me.maximumLength&&!isNaN(Me.maximumLength)&&Me.maximumLength>=0,value:Me.representation,domNodeProperties:o()({"tab-index":Me.disabled?"0":"-1"},Me.domNodeProperties),onKeyUp:function(e){e.code&&(R(e),(0,O.triggerCallbackIfExists)(Me,"keyUp",Ne,e,Me))}},je=!Me.selection&&"string"===Me.type&&Me.editorIsActive&&("code"===Me.editor||Me.editor.startsWith("code(")&&Me.editor.endsWith(")")||"richtext"===Me.editor||Me.editor.startsWith("richtext(")&&Me.editor.endsWith(")")),Fe=je&&Me.editor.startsWith("code"),Be=[],Ue=[],Ve=[],ze=Boolean(Me.suggestionCreator||Oe.length&&(Me.searchSelection||Me.suggestSelection));if(ze&&Oe.length){Me.suggestSelection=!Me.searchSelection;for(var We,qe=0,He=me(Oe);!(We=He()).done;){var $e=We.value;if((0,s.isFunction)(Me.children)){var Ke=Me.children({index:qe,normalizedSelection:Se,properties:Me,query:Me.representation,suggestion:$e,value:Te[qe]});Ke&&(Be.push(Ke),Ue.push($e),Ve.push(Te[qe]))}else if(!Me.representation||Me.suggestionCreator||ue($e,Me.representation)){var Ge,Xe=(0,s.mark)($e,(null==(Ge=Me.representation)?void 0:Ge.split(" "))||"",{marker:function(e){return[e]},skipTagDelimitedParts:null}).map(function(e,t){return Array.isArray(e)?(0,v.jsx)("span",{className:ie.textInputSuggestionsSuggestionMark,children:e[0]},t):(0,v.jsx)("span",{children:e},t)});Be.push(Xe),Ue.push($e),Ve.push(Te[qe])}qe+=1}}var Ye=(Boolean(Se)||Boolean(Me.labels))&&!ze,Je={};"number"===Me.type?(Je.step=Me.step,Me.maximum!==1/0&&(Je.max=Me.maximum),Me.minimum!==-1/0&&(Je.min=Me.minimum)):"string"===Me.type?(Me.maximumLength>=0&&Me.maximumLength!==1/0&&(Je.maximumLength=Me.maximumLength),Me.minimumLength>0&&(Je.minimumLength=Me.minimumLength),"plain"!==Me.editor&&(Je.rows=Me.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(Me.type)&&(Je.step=Me.step,Me.maximum!==1/0&&(Je.max=(0,O.formatValue)(Me,Me.maximum,_e)),Me.minimum!==-1/0&&(Je.min=(0,O.formatValue)(Me,Me.minimum,_e)));var Qe={};if(je)if(Me.editor.startsWith("code(")&&Me.editor.endsWith(")")){var Ze=Me.editor.substring(5,Me.editor.length-1);Ze&&(Qe.editor={},i.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(Ze.toLowerCase())?Qe.editor.mode=(0,i.javascript)({jsx:!0,typescript:!0}):a.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(Ze.toLowerCase())&&(Qe.editor.mode=(0,a.css)()))}else Qe.editor=ae;return(0,v.jsx)(S.default,{strict:ge.strict,themeConfiguration:Me.themeConfiguration,tooltip:Me.tooltip,children:(0,v.jsxs)("div",o()({ref:U,className:[ie.textInput].concat(Me.className).join(" "),style:Me.styles,onBlur:function(e){ke(function(t){var n;if(e.relatedTarget&&null!=(n=U.current)&&n.contains(e.relatedTarget))return t;ce(!1);var r=!1,o=!1;if(t.modelState.focused&&(Me.focused=!1,r=!0,o=!0),t.modelState.visited||(Me.visited=!0,r=!0,o=!0),!ze||Me.suggestSelection){var i=(0,O.getValueFromSelection)(Me.representation,Se);null===i?(Me.value=(0,O.parseValue)(Me,Me.value,_e,Me.model.trim),Me.representation=(0,O.formatValue)(Me,Me.value,_e)):Me.value=i}return(0,s.equals)(t.value,Me.value)&&t.representation===Me.representation||(r=!0),r&&P(e),(0,s.equals)(t.value,Me.value)||(0,O.triggerCallbackIfExists)(Me,"changeValue",Ne,Me.value,e,Me),o&&(0,O.triggerCallbackIfExists)(Me,"changeState",Ne,Me.model.state,e,Me),(0,O.triggerCallbackIfExists)(Me,"blur",Ne,e,Me),r?{modelState:Me.model.state,representation:Me.representation,value:Me.value}:t})},onKeyDown:function(e){var t,n;!Me.disabled&&ze&&"ArrowDown"===e.code&&e.target===(null==(t=F.current)||null==(t=t.input)?void 0:t.current)&&(null==(n=V.current)||n.focusItem(0)),(Ye||"string"===Me.type&&"plain"!==Me.editor)&&le(e),(0,O.triggerCallbackIfExists)(Me,"keyDown",Ne,e,Me)}},ze?{role:"search"}:{},{children:[I((0,v.jsx)(b,o()({},De,{name:Me.name,onChange:M,onClick:L,onKeyDown:function(e){Me.disabled||"Tab"===e.code||e.preventDefault()},options:Se,value:Me.value})),Ye),je?Fe?I((0,v.jsx)(H,o()({},De,Re,Je,{onChange:M},Qe,{ref:F})),je):(0,v.jsx)(ee,o()({},De,Re,Je,{onChange:M},Qe,{ref:F})):"",I((0,v.jsxs)("div",{children:[ze?(0,v.jsx)(y,{ref:V,onKeyDown:le,pending:Ee instanceof AbortController,classNames:[ie.textInputSuggestions],itemClassNames:[ie.textInputSuggestionsSuggestion],pendingClassNames:[ie.textInputSuggestionsPending],onFocus:D,onSelect:function(e){M(Ve[e.detail.index],e.detail.index),ce(!1)},open:Boolean(Ue.length)&&te&&!(1===Ue.length&&Ue[0]===Me.representation),options:Be}):"","string"===Me.type&&"plain"!==Me.editor?(0,v.jsx)(B,o()({},De,Re,Je,{ref:F,onChange:M})):(0,v.jsx)(C,o()({},De,Re,Je,{onChange:M,leadingIcon:k(A(Me.leadingIcon)),trailingIcon:k(A(Me.trailingIcon)),type:function(e){var t,n;return"string"===e.type?e.hidden?"password":ze?"search":"text":null!==(t=null==(n=_e[e.type])?void 0:n.type)&&void 0!==t?t:e.type}(Me)}))]}),!(je||Ye),Me.editor.startsWith("code"))]}))})};ye.displayName="TextInput";var ge=(0,l.memo)((0,l.forwardRef)(ye));ge.wrapped=ye,ge.webComponentAdapterWrapped="react",ge.defaultModelState=ce.defaultModelState,ge.defaultProperties=o()({},ce.defaultProperties,{cursor:void 0,model:o()({},ce.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),ge.locales=s.LOCALES,ge.propTypes=ce.propertyTypes,ge.renderProperties=ce.renderProperties,ge.strict=!1,ge.transformer=he;var _e=ge},function(e){e.exports=I},function(e,t,n){n.d(t,{WrapStrict:function(){return i}});var r=n(2),o=n(1),i=function(e){var t=e.children;return e.strict?(0,o.jsx)(r.StrictMode,{children:t}):(0,o.jsx)(o.Fragment,{children:t})}},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(6),o=n(1),i=function(e){var t=e.children,n=e.configuration,i=e.wrap;return n?(0,o.jsx)(r.ThemeProvider,{options:n,wrap:!1!==i,children:t}):t}},function(e){e.exports=A},function(e){e.exports=n},function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=O},function(e,t,n){var r=n(0),o=n.n(r),i=n(24),a=n(2),s=n(1),l=(0,a.forwardRef)(function(e,t){var n=e.componentProperties,r=e.size;return(0,s.jsx)(i.CircularProgress,o()({ref:t,size:null==r?void 0:r.replace("extra-small","xsmall").replace("extra-large","xlarge")},n))});t.A=l},function(e,t,n){var r=n(0),o=n.n(r),i=n(27),a=n(2),s=n(9),l=n(1),u=(0,a.forwardRef)(function(e,t){var n,r,a,u=(0,s.useMemorizedValue)({});return(0,l.jsx)(i.Icon,o()({className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles},null!==(r=e.componentProperties)&&void 0!==r?r:u,{onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onFocus:e.onFocus,onBlur:e.onBlur,icon:(0,s.useMemorizedValue)({icon:e.icon,size:null==(a=e.size)?void 0:a.replace("extra-small","xsmall").replace("extra-large","xlarge"),strategy:e.strategy},e.icon,e.size,e.strategy),ref:t}))});t.A=u},function(e,t,n){var r=n(0),o=n.n(r),i=n(28),a=n(2),s=n(9),l=n(1),u=(0,a.forwardRef)(function(e,t){var n,r,u,c=(0,a.useRef)(null),d=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,function(){return{base:c,foundation:d}});var f=null==(n=e.size)?void 0:n.replace("extra-small","xsmall").replace("extra-large","xlarge"),p=(0,s.useMemorizedValue)({});return(0,l.jsx)(i.IconButton,o()({checked:e.value,disabled:e.disabled,className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,icon:(0,s.useMemorizedValue)({icon:e.icon,size:f,strategy:e.strategy},e.icon,f,e.strategy),onIcon:(0,s.useMemorizedValue)({icon:e.onIcon||e.icon,size:f,strategy:e.strategy},e.onIcon,e.icon,f,e.strategy),onClick:e.onClick,onChange:e.onChange,ref:c,foundationRef:d},null!==(u=e.componentProperties)&&void 0!==u?u:p))});t.A=u},function(e){e.exports=v},function(e){e.exports=l},function(e){e.exports=a},function(e){e.exports=g},function(e){e.exports=h},function(e){e.exports=y},function(e){e.exports=b},function(e){e.exports=x},function(e){e.exports=i},function(e){e.exports=o},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=d},function(e){e.exports=c},function(e){e.exports=m},function(e){e.exports=p},function(e){e.exports=T},function(e){e.exports=w},function(e){e.exports=j},function(e){e.exports=q},function(e){e.exports=M},function(e){e.exports=_},function(e,t,n){var r=n(6),o=n(2),i=n(1),a=(0,o.forwardRef)(function(e,t){var n=e.children,o=e.applyToChildren;return(0,i.jsx)(r.Theme,{ref:t,use:"error",wrap:o,children:n})});t.A=a},,function(e,t,n){n.d(t,{RepresentationType:function(){return u},defaultFileNameInputProperties:function(){return y},defaultModelState:function(){return m},defaultProperties:function(){return g},propertyTypes:function(){return h},renderProperties:function(){return c}});var r=n(0),o=n.n(r),i=n(5),a=n(3),s=n(7),l=n(4),u=function(e){return e.BINARY="binary",e.IMAGE="image",e.EMBEDABLE_TEXT="embedableText",e.TEXT="text",e.VIDEO="video",e}({}),c=["children","generateFileNameInputProperties"],d={contentTypePattern:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),invertedContentTypePattern:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),maximumSize:a.number,minimumSize:a.number},f=o()({},l.modelPropertyTypes,d,{fileName:(0,a.shape)(s.propertyTypes)}),p=o()({},l.modelStatePropertyTypes,{invalidContentTypePattern:(0,a.oneOfType)([a.boolean,a.symbol]),invalidInvertedContentTypePattern:(0,a.oneOfType)([a.boolean,a.symbol]),invalidMaximumSize:(0,a.oneOfType)([a.boolean,a.symbol]),invalidMinimumSize:(0,a.oneOfType)([a.boolean,a.symbol]),invalidName:(0,a.oneOfType)([a.boolean,a.symbol])}),h=o()({},l.propertyTypes,d,p,{children:a.func,contentTypePatternText:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),invertedContentTypePatternText:(0,a.oneOfType)([(0,a.arrayOf)((0,a.oneOfType)([a.object,a.string])),a.object,a.string]),maximumSizeText:a.string,minimumSizeText:a.string,model:(0,a.shape)(f),deleteButton:(0,a.oneOfType)([a.object,a.string]),downloadButton:(0,a.oneOfType)([a.object,a.string]),editButton:(0,a.oneOfType)([a.object,a.string]),newButton:(0,a.oneOfType)([a.object,a.string]),encoding:a.string,generateFileNameInputProperties:a.func,onBlur:a.func,outlined:a.boolean}),m=o()({},l.defaultModelState,{invalidContentTypePattern:!1,invalidInvertedContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),v=o()({},l.defaultModel,{contentTypePattern:/^.+\/.+$/,invertedContentTypePattern:void 0,fileName:o()({},s.defaultInputModel,{maximumLength:1024,name:"Name",pattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:m}),y=o()({},s.defaultProperties,{emptyEqualsNull:!1,invertedPatternText:'Your file\'s name should not match the regular expression${[].concat(invertedPattern).length > 1 ? "s" : ""}: "${[].concat(invertedPattern).join("\\", \\"")}".',patternText:'Your file\'s name has to match the regular expression${[].concat(pattern).length > 1 ? "s" : ""}: "${[].concat(pattern).join("\\", \\"")}".',required:!0});delete y.model;var g=o()({},l.defaultProperties,{contentTypePatternText:'Your file\'s mime-type has to match the regular expression${[].concat(contentTypePattern).length > 1 ? "s" : ""}: "${[].concat(contentTypePattern).join("\\", \\"")}".',invertedContentTypePatternText:'Your file\'s mime-type should not match the regular expression${[].concat(invertedContentTypePattern).length > 1 ? "s" : ""}: "${[].concat(invertedContentTypePattern).join("\\", \\"")}".',maximumSizeText:"Please provide a file with less or equal size than ${maximumSize} byte.",minimumSizeText:"Please provide a file with more or equal size than ${maximumSize} byte.",requiredText:"Please select a file.",deleteButton:"delete",downloadButton:"download",editButton:"edit",newButton:"new",encoding:"utf-8",generateFileNameInputProperties:i.identity,model:o()({},v),sourceToBlobOptions:{endings:"transparent",type:"text/plain"},hashingConfiguration:{binaryString:!1,prefix:"",readChunkSizeInByte:2097152}})},,,,function(e){e.exports=C},,,,function(e){e.exports=R},function(e){e.exports=f}],D={};function F(e){var t=D[e];if(void 0!==t)return t.exports;var n=D[e]={exports:{}};return L[e](n,n.exports,F),n.exports}F.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return F.d(t,{a:t}),t},F.d=function(e,t){for(var n in t)F.o(t,n)&&!F.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},F.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},F.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var U={};F.r(U),F.d(U,{CSS_CLASS_NAMES:function(){return fe},EMBEDABLE_TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return me},FileInput:function(){return Ce},FileInputInner:function(){return xe},IMAGE_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return pe},TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return he},VIDEO_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return ve},default:function(){return Se},deriveBase64String:function(){return be},determineRepresentationType:function(){return ge},determineValidationState:function(){return _e},preserveStaticFileBaseNameInputGenerator:function(){return ye},readBinaryDataIntoText:function(){return Ee}});var V=F(18),z=F.n(V),W=F(0),H=F.n(W),$=F(19),K=F.n($),G=F(52),X=F(5),Y=F(2),J=F(56),Q=F(13),Z=F(6),ee=F(57),te=F(20),ne=F.n(te),re=function(e){return e.IMAGE="image",e.IFRAME="iframe",e.TEXT="text",e.VIDEO="video",e.PENDING="pending",e}({}),oe=F(21),ie=F(1),ae={fileInput:"file-input",mdcTypographyHeadline6:"mdc-typography--headline6",mdcTypographySubtitle2:"mdc-typography--subtitle2",fileInputInfo:"file-input__info",fileInputInfoBody:"file-input__info__body",fileInputDownload:"file-input__download",textInput:"text-input",mdcTextField:"mdc-text-field",fileInputIframeWrapper:"file-input__iframe-wrapper",fileInputTextRepresentation:"file-input__text-representation",fileInputIframeWrapperPadding:"file-input__iframe-wrapper--padding"},se=(0,Y.memo)((0,Y.forwardRef)(function(e,t){var n,r,o,i,a,s=(0,Y.useId)(),l=null!==(n=e.id)&&void 0!==n?n:s,u=(0,Y.useRef)(null),c=(0,Y.useRef)(null),d=(0,Y.useRef)(null),f=(0,Y.useRef)(null),p=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(t,function(){return{card:u,iFrame:c,deleteButton:d,downloadLink:f,uploadButton:p}});var h,m,v,y=e.description?e.description:e.name;return(0,ie.jsxs)(ee.Card,{ref:u,className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,onBlur:e.onBlur,onClick:e.onClick,onFocus:e.onFocus,children:[(0,ie.jsxs)(ee.CardPrimaryAction,{children:[e.type===re.PENDING?(0,ie.jsx)(oe.A,{size:"large"}):e.type===re.IMAGE&&e.url?(0,ie.jsx)(ee.CardMedia,{sixteenByNine:!0,className:null==(h=e.imageClassNames)?void 0:h.join(" "),style:{backgroundImage:"url("+e.url+")"}}):e.type===re.VIDEO?(0,ie.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,ie.jsx)("source",{src:e.url,type:e.contentType})}):e.type===re.IFRAME?(0,ie.jsx)("div",{className:[ae.fileInputIframeWrapper].concat(["text/html","text/plain"].includes(e.contentType)?ae.fileInputIframeWrapperPadding:[]).concat(null!==(m=e.iframeWrapperClassNames)&&void 0!==m?m:[]).join(" "),children:(0,ie.jsx)("iframe",{ref:c,style:{border:0,overflow:"hidden"},src:e.url})}):e.type===re.TEXT?(0,ie.jsx)("pre",{className:[ae.fileInputTextRepresentation].concat(null!==(v=e.textRepresentationClassNames)&&void 0!==v?v:[]).join(" "),children:e.content}):"",(0,ie.jsxs)("div",{className:[ae.fileInputInfo].concat(null!==(o=e.infoClassNames)&&void 0!==o?o:[]).join(" "),children:[(0,ie.jsx)(Q.Typography,{tag:"h2",use:"headline6",children:e.invalid?(0,ie.jsx)(Z.Theme,{use:"error",children:y}):y}),(0,ie.jsx)(ne(),{in:e.invalid||Boolean(e.declaration),children:(0,ie.jsxs)("div",{className:[ae.fileInputInfoBody].concat(null!==(i=e.infoBodyClassNames)&&void 0!==i?i:[]).join(" "),children:[e.declaration?(0,ie.jsx)(Q.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:e.invalid?(0,ie.jsx)(Z.Theme,{use:"error",children:e.declaration}):e.declaration}):"",(0,ie.jsx)(Z.Theme,{use:"error",wrap:!0,children:(0,ie.jsx)("span",{id:l+"-error-message",children:e.errorMessage})})]})}),e.children]})]}),!e.disabled&&(e.empty?e.newButton:e.editButton)||!e.empty&&(!e.disabled&&e.deleteButton||e.url&&e.downloadButton)?(0,ie.jsx)(ee.CardActions,{children:(0,ie.jsxs)(ee.CardActionButtons,{children:[!e.disabled&&(e.empty?e.newButton:e.editButton)?(0,ie.jsx)(ee.CardActionButton,{onClick:e.onClickAddOrEdit,ref:p,children:e.empty?e.newButton:e.editButton}):"",e.empty?"":(0,ie.jsxs)(ie.Fragment,{children:[!e.disabled&&e.deleteButton?(0,ie.jsx)(ee.CardActionButton,{onClick:function(){e.onChange&&e.onChange()},ref:d,children:e.deleteButton}):"",e.url&&e.downloadButton?(0,ie.jsx)(ee.CardActionButton,{onClick:function(){var e;null==(e=f.current)||e.click()},children:(0,ie.jsx)("a",H()({className:[ae.fileInputDownload].concat(null!==(a=e.downloadLinkClassNames)&&void 0!==a?a:[]).join(" "),download:e.fileName,href:e.url,ref:f,target:"_blank"},e.contentType?{type:e.contentType}:{},{children:e.downloadButton}))}):""]})]})}):""]})})),le=F(12),ue=F(10),ce=F(11),de=F(48),fe={fileInput:"file-input",fileInputNative:"file-input__native"},pe=/^image\/(?:p?jpe?g|png|svg(?:\+xml)?|vnd\.microsoft\.icon|gif|tiff|webp|vnd\.wap\.wbmp|x-(?:icon|jng|ms-bmp))$/i,he=/^(?:application\/(?:json|xml))|(?:text\/(?:plain|x-ndpb[wy]html|javascript|x?html?|xml|(?:(?:x-)?(?:csv|python-script))))$/i,me=/^text\/plain$/i,ve=/^video\/(?:(?:x-)?(?:x-)?webm|3gpp|mp2t|mp4|mpeg|quicktime|(?:x-)?flv|(?:x-)?m4v|(?:x-)mng|x-ms-as|x-ms-wmv|x-msvideo)|(?:application\/(?:x-)?shockwave-flash)$/i,ye=function(e,t){var n,r=t.name,o=t.value;return H()({},e,{disabled:!0,value:r+(null!=o&&null!=(n=o.name)&&n.includes(".")?o.name.substring(o.name.lastIndexOf(".")).toLowerCase():"")})},ge=function(e){return e=e.replace(/; *charset=.+$/,""),he.test(e)?de.RepresentationType.TEXT:me.test(e)?de.RepresentationType.EMBEDABLE_TEXT:pe.test(e)?de.RepresentationType.IMAGE:ve.test(e)?de.RepresentationType.VIDEO:de.RepresentationType.BINARY},_e=function(e,t,n){return(0,ce.determineValidationState)(e,n,{invalidMaximumSize:function(){var t;return"number"==typeof e.model.maximumSize&&e.model.maximumSize<((null==(t=e.model.value)||null==(t=t.blob)?void 0:t.size)||0)},invalidMinimumSize:function(){var t;return"number"==typeof e.model.minimumSize&&e.model.minimumSize>((null==(t=e.model.value)||null==(t=t.blob)?void 0:t.size)||0)},invalidName:function(){return t},invalidContentTypePattern:function(){var t,n;return Boolean(e.model.contentTypePattern)&&"string"==typeof(null==(t=e.model.value)||null==(t=t.blob)?void 0:t.type)&&[].concat(null!==(n=e.model.contentTypePattern)&&void 0!==n?n:[]).some(function(t){var n,r;return"string"==typeof t&&!new RegExp(t).test((null==(n=e.model.value)?void 0:n.blob).type)||"object"==typeof t&&!t.test((null==(r=e.model.value)?void 0:r.blob).type)})},invalidInvertedContentTypePattern:function(){var t,n;return Boolean(e.model.invertedContentTypePattern)&&"string"==typeof(null==(t=e.model.value)||null==(t=t.blob)?void 0:t.type)&&[].concat(null!==(n=e.model.invertedContentTypePattern)&&void 0!==n?n:[]).some(function(t){var n,r;return"string"==typeof t&&new RegExp(t).test((null==(n=e.model.value)?void 0:n.blob).type)||"object"==typeof t&&t.test((null==(r=e.model.value)?void 0:r.blob).type)})}})},be=function(e){return e.blob?(0,G.blobToBase64String)(e.blob):e.source?Promise.resolve(Buffer.from(e.source).toString("base64")):Promise.reject(new Error("Base 64 string could not be determined."))},Ee=function(e,t){return void 0===t&&(t="utf-8"),new Promise(function(n,r){var o=new FileReader;o.onload=function(e){var r=e.target.result;r.length&&t.endsWith("-sig")&&65279===r.charCodeAt(0)&&(r=r.slice(1)),r=r.replace(/\r\n/g,"\n"),n(r)},o.onabort=function(){r(new Error("abort"))},o.onerror=function(){r(new Error)},o.readAsText(e,t.endsWith("-sig")?t.substring(0,t.length-4):t)})},xe=function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,m=function(e){var t,n,r,o,i,a=(0,ce.mapPropertiesIntoModel)(e,Ce.defaultProperties.model);return _e(a,Boolean(null!==(t=null!==(n=null==(r=g.current)||null==(r=r.properties)?void 0:r.invalid)&&void 0!==n?n:null==(o=a.model.fileName.state)?void 0:o.invalid)&&void 0!==t?t:null==(i=a.model.state)?void 0:i.invalidName),a.model.state),(0,ce.getConsolidatedProperties)(a)},v=(0,Y.useRef)(null),y=(0,Y.useRef)(null),g=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(t,function(){return{properties:N,references:{fileInput:v,mediaCard:y,nameInput:g},state:H()({modelState:N.model.state},k?{}:{value:N.value})}});var _=function(e){var t;null!=(t=g.current)&&t.properties&&(N.model.fileName=g.current.properties.model);var n=m(N);delete N.model.value,delete N.value,N.styles=(0,X.copy)(N.styles),(0,X.extend)(!0,N,n),(0,ce.triggerCallbackIfExists)(N,"change",k,N,e)},b=function(e,t,n,r){if(void 0===r&&(r=!1),N.model.mutable&&N.model.writable){if(e&&v.current&&e.target===v.current){var o;if(null==(o=(t=e).target.files)||!o.length)return;var i,a=t.target.files[0];N.value={blob:a,name:a.name},N.value.name=(null==(i=N.generateFileNameInputProperties(H()({disabled:N.disabled,value:a.name},de.defaultFileNameInputProperties,{model:N.model.fileName,onChangeValue:b,default:N.value.name}),N))?void 0:i.value)||a.name}I(function(n){var o;if(void 0===e?N.value=null:"string"==typeof e?N.value=H()({},n.value,{name:e}):!e||"string"!=typeof e.source&&"string"!=typeof e.url||(N.value=r?H()({},n.value,e):e),(0,X.equals)(n.value,N.value))return n;var i=!1,a=H()({},n,{value:N.value});return n.modelState.pristine&&(N.dirty=!0,N.pristine=!1,i=!0),_(t),_e(N,(null==(o=g.current)||null==(o=o.properties)?void 0:o.invalid)||!1,n.modelState)&&(i=!0),(0,ce.triggerCallbackIfExists)(N,"changeValue",k,N.value,t,N),i&&(a.modelState=N.model.state,(0,ce.triggerCallbackIfExists)(N,"changeState",k,N.model.state,t,N)),r&&(a.attachBlobProperty=!0),a})}},E=function(e){I(function(t){var n=!1;t.modelState.focused||(N.focused=!0,n=!0),t.modelState.untouched&&(N.touched=!0,N.untouched=!1,n=!0);var r=t;return n&&(_(e),r=H()({},t,{modelState:N.model.state}),(0,ce.triggerCallbackIfExists)(N,"changeState",k,N.model.state,e,N)),(0,ce.triggerCallbackIfExists)(N,"touch",k,e,N),r})},x=(0,ce.translateKnownSymbols)(e),C=x.default||(null==(n=x.model)?void 0:n.default),S=C&&Object.keys(C).length?Object.keys(C)[0]:null,w=(0,ce.determineInitialValue)(H()({},x,{default:C&&S?C[S]:null}),Ce.defaultProperties.model.default&&Object.keys(Ce.defaultProperties.model.default).length?Object.values(Ce.defaultProperties.model.default)[0]:void 0),O=(0,X.extend)(!0,(0,X.copy)(Ce.defaultProperties),x);S&&null!=(r=O.model)&&r.fileName&&!O.model.fileName.default&&(O.model.fileName.default=S);var T=(0,Y.useState)({attachBlobProperty:!1,modelState:H()({},Ce.defaultModelState),value:w}),A=T[0],I=T[1],k=!O.enforceUncontrolled&&(void 0!==(null==(o=x.model)?void 0:o.value)||void 0!==x.value)&&Boolean(x.onChange||x.onChangeValue);(0,ce.deriveMissingPropertiesFromState)(O,A);var N=m(O);A.attachBlobProperty&&A.value&&N.value&&(N.value=(0,X.extend)(!0,A.value,N.value));var P={attachBlobProperty:!1,modelState:N.model.state,value:N.value};!A.attachBlobProperty&&(k||(0,X.equals)(N.value,A.value))&&(0,X.equals)(N.model.state,A.modelState)||I(P),k&&(I=(0,ce.wrapStateSetter)(I,P));var M=(0,Y.useId)(),L=null!==(i=N.id)&&void 0!==i?i:M;(0,Y.useEffect)(function(){z()(K().mark(function e(){var t,n,r,o,i,a,s,l,u,c,d,f,p,h,m,v;return K().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},null==(t=N.value)||!t.source){e.next=4;break}if(N.value.blob){e.next=1;break}null!=(r=N.value.url)&&r.startsWith("data:")?n.blob=(0,G.dataURLToBlob)(N.value.url):N.sourceToBlobOptions&&(n.blob=new Blob([N.value.source],N.sourceToBlobOptions)),e.next=3;break;case 1:if(N.value.url){e.next=3;break}return h="data:"+(D||"text/plain")+";charset="+N.encoding+";base64,",e.next=2,be(N.value);case 2:m=e.sent,n.url=h+m;case 3:N.value.hash||(n.hash=N.hashingConfiguration.prefix+(0,J.hash)(N.value.source)),e.next=14;break;case 4:if(!(null!=(o=N.value)&&o.blob&&N.value.blob instanceof Blob)){e.next=6;break}return s=N.value.blob,e.next=5,R===de.RepresentationType.TEXT?Ee(s,N.encoding):be(N.value);case 5:n.source=e.sent,e.next=12;break;case 6:if(null==(i=N.value)||!i.url){e.next=12;break}if(!N.value.url.startsWith("data:")){e.next=7;break}v=(0,G.dataURLToBlob)(N.value.url),e.next=9;break;case 7:return e.next=8,fetch(N.value.url);case 8:v=e.sent.blob();case 9:return e.next=10,v;case 10:if(s=e.sent,R!==de.RepresentationType.TEXT){e.next=12;break}return e.next=11,Ee(s,N.encoding);case 11:n.source=e.sent;case 12:if(null!=(a=N.value)&&a.hash||!s){e.next=14;break}return l=0,u=N.hashingConfiguration.readChunkSizeInByte,c=Math.ceil(s.size/u),d=new J.ArrayBuffer,f=new FileReader,e.next=13,new Promise(function(e,t){f.onload=function(t){var r;console.debug("Read chunk "+String(l+1)+" of "+String(c)+"."),d.append(null==(r=t.target)?void 0:r.result),++l<c?n():e(d.end(N.hashingConfiguration.binaryString))},f.onerror=t;var n=function(){var e=l*u,t=e+u>=s.size?s.size:e+u;f.readAsArrayBuffer(s.slice(e,t))};n()});case 13:p=e.sent,n.hash=N.hashingConfiguration.prefix+p;case 14:Object.keys(n).length>0&&b(n,void 0,void 0,!0);case 15:case"end":return e.stop()}},e)}))().catch(function(e){console.warn(e)})}),(0,Y.useEffect)(function(){N.triggerInitialPropertiesConsolidation&&_()},[]);var D=null!==(a=function(e){if(e.value){var t,n;if(null!=(t=e.value.blob)&&t.type)return e.value.blob.type;if(null!=(n=e.value.url)&&n.startsWith("data:")){var r=e.value.url.match(/^data:([^/]+\/[^;]+).*$/);if(r)return r[1]}}return null}(N))&&void 0!==a?a:"application/binary",R=D?ge(D):de.RepresentationType.BINARY,j=N.invalid&&N.showValidationState&&(N.showInitialValidationState||N.visited),F=N.triggerInitialPropertiesConsolidation;return(0,ie.jsx)(ue.WrapConfigurations,{strict:Ce.strict,themeConfiguration:N.themeConfiguration,tooltip:N.tooltip,children:(0,ie.jsxs)(se,{ref:y,id:e.id,classNames:[fe.fileInput].concat(N.className),imageClassNames:N.imageClassNames,styles:N.styles,deleteButton:N.deleteButton,downloadButton:N.downloadButton,editButton:N.editButton,newButton:N.newButton,fileName:null==(s=N.value)?void 0:s.name,type:null!=(l=N.value)&&l.url?R===de.RepresentationType.IMAGE?re.IMAGE:R===de.RepresentationType.VIDEO?re.VIDEO:R===de.RepresentationType.EMBEDABLE_TEXT?re.IFRAME:R===de.RepresentationType.TEXT?re.TEXT:void 0:null!=(u=N.value)&&u.blob&&N.value.blob instanceof Blob?re.PENDING:void 0,disabled:N.disabled,invalid:j,empty:!N.value,description:N.description,name:N.name,errorMessage:(0,ce.renderMessage)(N.invalidContentTypePattern&&N.contentTypePatternText||N.invalidInvertedContentTypePattern&&N.invertedContentTypePatternText||N.invalidMaximumSize&&N.maximumSizeText||N.invalidMinimumSize&&N.minimumSizeText||N.invalidRequired&&N.requiredText,N),url:null==(c=N.value)?void 0:c.url,contentType:D,content:null==(d=N.value)?void 0:d.source,onBlur:function(e){I(function(t){var n=!1;return t.modelState.focused&&(N.focused=!1,n=!0),t.modelState.visited||(N.visited=!0,n=!0),n&&(_(e),(0,ce.triggerCallbackIfExists)(N,"changeState",k,N.model.state,e,N)),(0,ce.triggerCallbackIfExists)(N,"blur",k,e,N),n?H()({},t,{modelState:N.model.state}):t})},onClick:function(e){(0,ce.triggerCallbackIfExists)(N,"click",k,e,N),E(e)},onClickAddOrEdit:function(){var e;null==(e=v.current)||e.click()},onChange:b,onFocus:function(e){(0,ce.triggerCallbackIfExists)(N,"focus",k,e,N),E(e)},children:[(0,ie.jsx)("input",{accept:[].concat(null!==(f=N.acceptedContentTypes)&&void 0!==f?f:[]).join(", "),disabled:N.disabled,className:[fe.fileInputNative].concat(null!==(p=N.fileInputClassNames)&&void 0!==p?p:[]).join(" "),id:L,name:N.name,onChange:b,ref:v,type:"file"}),N.value?(0,ie.jsx)(le.default,H()({ref:g},N.generateFileNameInputProperties(H()({disabled:N.disabled,value:null==(h=N.value)?void 0:h.name},(0,X.mask)(de.defaultFileNameInputProperties,{exclude:Object.keys(N.model.fileName)}),{default:N.value.name,model:N.model.fileName,onChangeValue:b,triggerInitialPropertiesConsolidation:F}),N))):"",N.children?N.children({declaration:N.declaration,invalid:j,properties:N,value:N.value}):""]})})};xe.displayName="FileInput";var Ce=(0,Y.memo)((0,Y.forwardRef)(xe));Ce.wrapped=xe,Ce.webComponentAdapterWrapped="react",Ce.defaultModelState=de.defaultModelState,Ce.defaultProperties=H()({},de.defaultProperties,{model:H()({},de.defaultProperties.model,{state:void 0,value:void 0}),value:void 0}),Ce.propTypes=de.propertyTypes,Ce.renderProperties=de.renderProperties,Ce.strict=!1;var Se=Ce;return U}())},,,,,,,,,,,,,,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__57__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__58__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__59__}],__webpack_module_cache__={};function __nested_webpack_require_134004__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_134004__),n.loaded=!0,n.exports}__nested_webpack_require_134004__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_134004__.d(t,{a:t}),t},__nested_webpack_require_134004__.d=function(e,t){for(var n in t)__nested_webpack_require_134004__.o(t,n)&&!__nested_webpack_require_134004__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_134004__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_134004__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_134004__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_134004__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __nested_webpack_exports__={};__nested_webpack_require_134004__.r(__nested_webpack_exports__),__nested_webpack_require_134004__.d(__nested_webpack_exports__,{FileInput:function(){return _FileInput}});var clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_134004__(0),clientnode_property_types__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_134004__.n(clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_134004__(43),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_134004__.n(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_134004__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default=__nested_webpack_require_134004__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__),_FileInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default()(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_1___default(),"FileInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumSize:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumSize:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidContentTypePattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidInvertedContentTypePattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidName:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.string},unmountOnDisconnect:!1});return __nested_webpack_exports__.default=_FileInput,__nested_webpack_exports__}()},module.exports=t(__webpack_require__(20),__webpack_require__(15),__webpack_require__(6),__webpack_require__(27),__webpack_require__(19),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(92),__webpack_require__(127),__webpack_require__(79),__webpack_require__(24),__webpack_require__(85),__webpack_require__(67),__webpack_require__(93),__webpack_require__(94),__webpack_require__(50),__webpack_require__(51),__webpack_require__(95),__webpack_require__(26),__webpack_require__(26),__webpack_require__(138),__webpack_require__(11),__webpack_require__(0),__webpack_require__(78),__webpack_require__(26),__webpack_require__(86),__webpack_require__(26),__webpack_require__(26),__webpack_require__(26),__webpack_require__(1),__webpack_require__(130),__webpack_require__(10),__webpack_require__(7),__webpack_require__(64),__webpack_require__(42),__webpack_require__(43),__webpack_require__(44))}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__=__webpack_require__(146);return __webpack_exports__}()});