web-input-material 0.0.452 → 0.0.453

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.
@@ -486,4 +486,4 @@ var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar"
486
486
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
487
487
  * THE SOFTWARE.
488
488
  */
489
- 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 d},MDCCircularProgressFoundation:function(){return c},cssClasses:function(){return l},strings:function(){return u}});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;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a=n(4),s=n(3),l={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},u={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},c=function(e){function t(n){return e.call(this,i(i({},t.defaultAdapter),n))||this}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},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(l.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(l.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(u.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(u.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(l.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(l.INDETERMINATE_CLASS),this.adapter.removeAttribute(u.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(u.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(u.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(l.CLOSED_CLASS),this.adapter.removeAttribute(u.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(l.CLOSED_CLASS),this.adapter.setAttribute(u.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(s.I),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(c.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 c({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}(a.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(43),o=n(20),i=n(55),a=n(19)},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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,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 D.A}});var o=n(70),i=n(71);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(69),u=n(73),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(5);var _=n(72);function h(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 m(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=h(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:m(a,"exit",e),enter:m(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:m(a,"exit",e),enter:m(a,"enter",e)})}})),o}var y=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},g=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,h(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:m(e,"appear",n),enter:m(e,"enter",n),exit:m(e,"exit",n)})}))):v(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=h(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=y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s.createElement(_.A.Provider,{value:i},a):s.createElement(_.A.Provider,{value:i},s.createElement(t,r,a))},t}(s.Component);g.propTypes={},g.defaultProps={component:"div",childFactory:function(e){return e}};var b=g,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 O,C,A=E;var x="out-in",I="in-out",T=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},S=((O={})[x]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:T(t,"onExited",(function(){n(l.ENTERING,null)}))})},O[I]=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)}))})]},O),P=((C={})[x]=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[I]=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),w=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===I?{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=P[r](u);break;case l.EXITING:e=S[r](u);break;case l.ENTERED:e=a}return s.createElement(_.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.Component);w.propTypes={},w.defaultProps={mode:x};var L=w,D=n(96)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return p},MDCIconButtonToggleFoundation:function(){return d},cssClasses:function(){return u},strings:function(){return c}});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;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a=n(4),s=n(20),l=n(3),u={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},c={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"},d=function(e){function t(n){var r=e.call(this,i(i({},t.defaultAdapter),n))||this;return r.hasToggledAriaLabel=!1,r}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return c},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(c.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(c.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(c.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(u.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(u.ICON_BUTTON_ON):this.adapter.removeClass(u.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(c.DATA_ARIA_LABEL_ON):this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(c.ARIA_LABEL,t||"")}else this.adapter.setAttr(c.ARIA_PRESSED,""+e)},t}(l.I),f=d.strings,p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return o(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 d({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(f.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 s.N(this.root);return e.unbounded=!0,e},t}(a.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(82),o=n(42),i=n(66)},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(83),o=n(41),i=n(45)},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(53),o=n(92)},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(41),o=n(84),i=n(46),a=n(85)},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(61),o=n(78),i=n(62)},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(63),o=n(80),i=n(79)},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(64),o=n(65),i=n(81)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return w},MDCSelectFoundation:function(){return E},MDCSelectHelperText:function(){return x},MDCSelectHelperTextFoundation:function(){return A},MDCSelectIcon:function(){return P},MDCSelectIconFoundation:function(){return S},cssClasses:function(){return m},helperTextCssClasses:function(){return C},helperTextStrings:function(){return O},iconStrings:function(){return I},numbers:function(){return y},strings:function(){return v}});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.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var s=n(4),l=n(61),u=n(63),c=n(41),d=n(84),f=n(46),p=n(64),_=n(20),h=n(19),m={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"},v={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"},y={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},g=n(3),b=n(89),E=function(e){function t(n,r){void 0===r&&(r={});var o=e.call(this,i(i({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=y.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=r.leadingIcon,o.helperText=r.helperText,o}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},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===y.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!==y.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(m.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(m.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(m.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(m.FOCUSED),n=e||t,r=this.adapter.hasClass(m.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(m.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(m.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(m.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(m.FOCUSED)){var t=(0,b.l5)(e)===b._.ENTER,n=(0,b.l5)(e)===b._.SPACEBAR,r=(0,b.l5)(e)===b._.ARROW_UP,o=(0,b.l5)(e)===b._.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(m.FOCUSED);if(e){var n=y.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(m.INVALID),this.adapter.removeMenuClass(m.MENU_INVALID)):(this.adapter.addClass(m.INVALID),this.adapter.addMenuClass(m.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(m.REQUIRED)&&!this.adapter.hasClass(m.DISABLED)?this.getSelectedIndex()!==y.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(m.REQUIRED):this.adapter.removeClass(m.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(c.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(m.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(m.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(m.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(m.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(v.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(v.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),y.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(g.I),O={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},C={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},A=function(e){function t(n){return e.call(this,i(i({},t.defaultAdapter),n))||this}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return C},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},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(O.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(C.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(C.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(O.ROLE):this.adapter.setAttr(O.ROLE,"alert"));this.adapter.removeAttr(O.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(O.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(O.ARIA_HIDDEN,"true")},t}(g.I),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 A({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}(s.O),I={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},T=["click","keydown"],S=function(e){function t(n){var r=e.call(this,i(i({},t.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(e){r.handleInteraction(e)},r}return o(t,e),Object.defineProperty(t,"strings",{get:function(){return I},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=a(T),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=a(T),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.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)&&this.adapter.notifyIconAction()},t}(g.I),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 S({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(S.strings.ICON_EVENT,{},!0)}})},t}(s.O),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,i){if(void 0===e&&(e=function(e){return new l.$(e)}),void 0===t&&(t=function(e){return new u.l(e)}),void 0===n&&(n=function(e){return new p.i(e)}),void 0===r&&(r=function(e){return new d.C(e)}),void 0===o&&(o=function(e){return new P(e)}),void 0===i&&(i=function(e){return new x(e)}),this.selectAnchor=this.root.querySelector(v.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(v.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(v.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+v.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(v.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(v.ARIA_CONTROLS));a&&(this.helperText=i(a))}this.menuSetup(r);var s=this.root.querySelector(v.LABEL_SELECTOR);this.label=s?e(s):null;var c=this.root.querySelector(v.LINE_RIPPLE_SELECTOR);this.lineRipple=c?t(c):null;var f=this.root.querySelector(v.OUTLINE_SELECTOR);this.outline=f?n(f):null;var _=this.root.querySelector(v.LEADING_ICON_SELECTOR);_&&(this.leadingIcon=o(_)),this.root.classList.contains(m.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(c.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(c.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(c.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(f.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(c.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(c.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(f.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(v.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=i(i(i(i({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new E(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(v.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(v.VALUE_ATTR)||""}))},t.prototype.createRipple=function(){var e=this,t=i(i({},_.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 _.N(this.selectAnchor,new h.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(v.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(v.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}(s.O)},function(e,t,n){n.d(t,{C6:function(){return o},Cl:function(){return i},fX:function(){return s},zs:function(){return a}});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,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 s(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(17),i=n(108),a=n(74),s=n(2),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})})),_=s.createComponent((function(e,t){const n=s.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})})),h=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})})),m=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=m,t.CardActionButtons=p,t.CardActionIcon=h,t.CardActionIcons=_,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(17),a=n(18),s=n(109),l=n(2),u=i.withRipple({surface:!1})(l.createComponent((function(e,t){const{dense:n,raised:o,unelevated:i,outlined:a,danger:u,icon:_,label:h,trailingIcon:m,children:v,touch:y,...g}=e,b=s.useIsWrappedTouchTarget(y),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=g.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};g.style={...t,...e}}return r.jsxs(l.Tag,{tag:"button",...g,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!_&&r.jsx(p,{icon:_}),r.jsxs("span",{className:"mdc-button__label",children:[h,v]}),!!m&&r.jsx(p,{icon:m})]})}))),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(17),a=n(2),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 _(){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)}}(),_.prototype.append=function(e){return this.appendBinary(u(e)),this},_.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},_.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},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.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)},_.hash=function(e,t){return _.hashBinary(u(e),t)},_.hashBinary=function(e,t){var n=l(i(e));return t?p(n):n},_.ArrayBuffer=function(){this.reset()},_.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},_.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},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var e=_.prototype.getState.call(this);return e.buff=d(e.buff),e},_.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),_.prototype.setState.call(this,e)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(e,t){var n=l(a(new Uint8Array(e)));return t?p(n):n},_}()},,,,,,,,,,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(g(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 _(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then((function(e){return e.toDataURL(t,i)}))}function h(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 m(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then((function(e){return h(e,t,i)}))}function v(e,t){return i([e],t)}function y(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 g(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 g},arrayBufferToBlob:function(){return v},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return b},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return y},blobToBase64String:function(){return d},blobToBinaryString:function(){return l},blobToDataURL:function(){return p},canvasToBlob:function(){return h},createBlob:function(){return i},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return m},imgSrcToDataURL:function(){return _},revokeObjectURL:function(){return s}})},,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __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!=__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__51__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__52__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__53__,__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_6697__){var __dirname="/",e,t,r,n,i,o,s,a,l,p,c,u;if(module=__nested_webpack_require_6697__.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!=__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_6697__.g||null===__nested_webpack_require_6697__.g?{}:__nested_webpack_require_6697__.g;module.exports=(e=__nested_webpack_require_6697__(2),t=__nested_webpack_require_6697__(12),r=__nested_webpack_require_6697__(3),n=__nested_webpack_require_6697__(5),i=__nested_webpack_require_6697__(6),o=__nested_webpack_require_6697__(0),s=__nested_webpack_require_6697__(4),a=__nested_webpack_require_6697__(13),l=__nested_webpack_require_6697__(14),p=__nested_webpack_require_6697__(15),c=__nested_webpack_require_6697__(16),u=__nested_webpack_require_6697__(17),function(){var d=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=i},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 I}});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),_=n.n(p),h=n(9),m=n.n(h),v=(n(10),n(5)),y=n.n(v),g=n(1),b=n(2),E=n(6);function O(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 A="undefined"==typeof HTMLElement?function(){}:HTMLElement,x=(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()({},g.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}_()(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,g.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,g.timeout)((function(){e.render("connected")}))},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=O(this.domNodeEventBindings.values());!(e=t()).done;)for(var n,r=O(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=O((0,g.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,g.timeout)((function(){void 0!==t&&n.isStateProperty(e)?(n.render("preStatePropertyChanged"),(0,g.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,g.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,g.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,g.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,g.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,g.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=O(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){if(void 0===t&&(t=[]),void 0===n&&(n={}),(n=f()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return n.map;if(n.unsafe){var r=e.innerHTML;if(!r&&e.template&&(r=e.template),this.self.hasCode(r)){var o,i=(0,g.compile)("`"+r+"`",t);null==(o=n.map)||o.set(e,{children:[],error:i.error,scopeNames:i.scopeNames,template:r,templateFunction:i.templateFunction})}}else{var a,s=e.nodeName.toLowerCase();if(["a","#text"].includes(s)){var l="a"===s?e.getAttribute("href"):e.textContent;l&&this.self.hasCode(l)&&(a=l.replace(/&nbsp;/g," ").trim())}var u=[];if(a){var c,d=(0,g.compile)("`"+a+"`",t);null==(c=n.map)||c.set(e,{children:u,error:d.error,scopeNames:d.scopeNames,template:a,templateFunction:d.templateFunction})}for(var p=e.firstChild;p;)n.filter&&!n.filter(p)||u.push(this.compileDomNodeTemplate(p,t,f()({},n,{ignoreComponents:n.ignoreNestedComponents}))),p=p.nextSibling}return n.map},n.evaluateDomNodeTemplate=function(e,t,n){var r,o;if(void 0===t&&(t={}),void 0===n&&(n={}),null!=(r=(n=f()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).map)&&r.has(e)||this.compileDomNodeTemplate(e,t,n),null!=(o=n.map)&&o.has(e)){var i=n.map.get(e),a=i.error,s=i.scopeNames,l=i.templateFunction;if(a)console.warn("Error occurred during compiling node content: "+a);else{var u=null;try{u=l.apply(void 0,s.map((function(e){return t[e]})))}catch(a){console.warn('Error occurred when "'+this.self._name+'" is running "'+l+'": with bound names "'+s.join('", "')+'": "'+a+'". Rendering node:',e)}null!==u&&(n.unsafe?e.innerHTML=u:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",u):e.textContent=u)}}if(!(n.unsafe||n.ignoreComponents&&e.nodeName.toLowerCase().includes("-")))for(var c=e.firstChild;c;)n.filter&&!n.filter(c)||this.evaluateDomNodeTemplate(c,t,f()({},n,{applyBindings:!1,ignoreComponents:n.ignoreNestedComponents})),c=c.nextSibling;return n.applyBindings&&this.applyBindings(e,t),n.map},t.replaceDomNodes=function(e,n){for(var r,o=O([].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=O(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,g.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()(y().mark((function t(){var r,o,i,a,s=arguments;return y().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=3,e.reflectEventToProperties(n,o);case 3:(a=t.sent)&&(o[0]=a),e.forwardEvent(n,o);case 6: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=O(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,g.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=O(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,r;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(null==(n=e.firstElementChild)||!n.hasAttribute("data-no-template")||"false"===(null==(r=e.firstElementChild)?void 0:r.getAttribute("data-no-template")))){var o,i,a=e.firstElementChild.value;null==(o=e.classList)||o.remove("web-component-template");var s=e.cloneNode();return null==(i=e.classList)||i.add("web-component-template"),s.innerHTML="",s.template=a,s}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=[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,g.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,g.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=O(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=O(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()(y().mark((function e(t,n){var r,o,i,a,s,l,u,c,d,p,_,h,m,v,b,E;return y().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,g.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=16;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,n.concat([this])))&&"then"in s&&(0,g.isFunction)(s.then))){e.next=12;break}return e.next=9,s;case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=s;case 13:l=e.t0,i=!0,Array.isArray(l)?(o=l[0],this.reflectProperties(o),(0,g.extend)(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(o=l,this.reflectProperties(l));case 16:if(!i&&n.length>0&&(0,g.isObject)(n[0])){if(c=n[0],"persist"in n[0]&&(0,g.isFunction)(n[0].persist))for(c={},d=0,p=Object.keys(this.self.propertyTypes);d<p.length;d++)for(_=p[d],h=O([_].concat(null!==(v=this.getPropertyAlias(_))&&void 0!==v?v:[]));!(m=h()).done;)b=m.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 20: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,g.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,g.evaluate)(t,f()({},g.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(g.UTILITY_SCOPE_NAMES);if(t){var _=(0,g.compile)(t,p);d=_.error,c=_.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(g.UTILITY_SCOPE_VALUES))}catch(n){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+p.join('", "')+'" set to "'+(0,g.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 h;try{h=JSON.parse(t)}catch(d){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,g.represent)(d));break}this.setInternalPropertyValue(i,h),this.setExternalPropertyValue(i,(0,g.copy)(h,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 m=parseFloat(t);isNaN(m)&&(m=void 0),this.setInternalPropertyValue(i,m),this.setExternalPropertyValue(i,m);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,g.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,g.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,g.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,g.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,g.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,g.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=m()(o.prototype,"isRoot",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o),I={component:x,register:function(e){void 0===e&&(e=(0,g.camelCaseToDelimited)(x._name)),customElements.define(e,x)}};t.default=x},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),_=n.n(p),h=n(12),m=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 y(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)?y(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 y(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 g=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).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(){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=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=3;break}return e.abrupt("return");case 3: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||(this.reactRoot=(0,m.createRoot)(this.root,{identifierPrefix:String(this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name)})),e.next=12,new Promise((function(e){(0,h.flushSync)((function(){var t;null==(t=a.reactRoot)||t.render((0,p.createElement)(a.self.content,a.internalProperties)),e()}))}));case 12:if(null==(n=this.instance)||!n.current){e.next=16;break}this.reflectInstanceProperties(),e.next=18;break;case 16:return e.next=18,(0,d.timeout)(this.reflectInstanceProperties);case 18: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=Object.keys(t),m={},y=function(){var n,r=_.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,h),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")||(h=[].concat(h,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(h=[].concat(h,["parameters"]));var y=(0,d.compile)(o,h,!0),g=y.error,b=y.originalScopeNames,E=y.scopeNames,O=y.templateFunction;if(g)return console.warn('Error occurred during compiling given event binding "'+r+'" on node:',e,g),0;var C=O.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 A={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(A,s)&&(s=A[s]),s=(0,d.delimitedToCamelCase)(s),null!=(n=o)&&n.originalScopeNames?m[a?"":s]=o:f||(c[s]=o)},g=v(e.getAttributeNames());!(_=g()).done;)y();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(m);a<s.length;a++){var l=s[a],d=l[0],_=l[1],h=_.originalScopeNames,v=_.templateFunction.apply(void 0,h.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);g.attachWebComponentAdapterIfNotExists=!0,g.content="div",g.react=_(),g._name="ReactWebComponent";var b={component:g,register:function(e){void 0===e&&(e=(0,d.camelCaseToDelimited)(g._name)),customElements.define(e,g)}};t.default=g}],f={};function _(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return d[e](n,n.exports,_),n.exports}_.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(t,{a:t}),t},_.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};_.r(h),_.d(h,{ReactWeb:function(){return C},Web:function(){return I},reactWebAPI:function(){return A},webAPI:function(){return x},wrapAsWebComponent:function(){return T}});var m=_(0),v=_.n(m),y=_(3),g=_.n(y),b=_(1),E=_(14),O=_(7),C=E.default,A=E.api,x=O.api,I=O.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 _=0,h=C.propertiesToReflectAsAttributes;_<h.length;_++){var m=h[_];c[m]=C.propertyTypes[m]}var y=u.map((function(e){return(0,b.camelCaseToDelimited)(e)})),E=function(t){function r(){for(var o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(o=t.call.apply(t,[this].concat(a))||this).self=r,o.internalProperties=n.internalProperties?v()({},n.internalProperties):e.internalProperties?v()({},e.internalProperties):{},o}return g()(r,t),r}(C);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof n.attachWebComponentAdapterIfNotExists||n.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=C.observedAttributes.concat(y).concat(y.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()({},C.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=v()({},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 h.default=T,h}())},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(module,__unused_webpack_exports,__nested_webpack_require_49611__){var __dirname="/",e,t,n,r,i,a,o,l,u,s,c,d,m,f,p,v,g,b,h,y,x,S,w,I,T,j,C,P,N,O,E,q;if(module=__nested_webpack_require_49611__.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!=__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_49611__.g||null===__nested_webpack_require_49611__.g?{}:__nested_webpack_require_49611__.g;module.exports=(e=__nested_webpack_require_49611__(5),t=__nested_webpack_require_49611__(2),n=__nested_webpack_require_49611__(7),r=__nested_webpack_require_49611__(6),i=__nested_webpack_require_49611__(21),a=__nested_webpack_require_49611__(22),o=__nested_webpack_require_49611__(23),l=__nested_webpack_require_49611__(24),u=__nested_webpack_require_49611__(25),s=__nested_webpack_require_49611__(51),c=__nested_webpack_require_49611__(19),d=__nested_webpack_require_49611__(26),m=__nested_webpack_require_49611__(27),f=__nested_webpack_require_49611__(28),p=__nested_webpack_require_49611__(29),v=__nested_webpack_require_49611__(30),g=__nested_webpack_require_49611__(8),b=__nested_webpack_require_49611__(9),h=__nested_webpack_require_49611__(31),y=__nested_webpack_require_49611__(32),x=__nested_webpack_require_49611__(52),S=__nested_webpack_require_49611__(3),w=__nested_webpack_require_49611__(0),I=__nested_webpack_require_49611__(33),T=__nested_webpack_require_49611__(4),j=__nested_webpack_require_49611__(20),C=__nested_webpack_require_49611__(10),P=__nested_webpack_require_49611__(34),N=__nested_webpack_require_49611__(35),O=__nested_webpack_require_49611__(36),E=__nested_webpack_require_49611__(11),q=__nested_webpack_require_49611__(53),function(){var _=[function(e){e.exports=t},function(e){e.exports=E},function(e){e.exports=S},function(e){e.exports=T},function(e){e.exports=w},function(e){e.exports=g},function(e,t,n){n.d(t,{WrapTooltip:function(){return c}});var r=n(0),o=n.n(r),i=n(2),a=n(11),s=n(13),l=n(1),u=!s.Tooltip||Boolean(s.Tooltip.isDummy),c=function(e){var t=e.children,n=e.options;if("string"==typeof n)return u?(0,l.jsx)("div",{className:"generic-tooltip",title:n,children:t}):(0,l.jsx)(s.Tooltip,{overlay:(0,l.jsx)(a.Typography,{use:"caption",children:n}),children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})});if((0,i.isObject)(n)){if("string"==typeof n.overlay){if(u)return(0,l.jsx)("div",{className:"generic-tooltip",title:n.overlay,children:t});n=o()({},n,{overlay:(0,l.jsx)(a.Typography,{use:"caption",children:n.overlay})})}return u?(0,l.jsx)("div",{className:"generic-tooltip",children:t}):(0,l.jsx)(s.Tooltip,o()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))}return(0,l.jsx)(l.Fragment,{children:t})};t.default=c},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(0),n(16),n(3),n(5);var r=n(15),o=n(12),i=n(6),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.g,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},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(4),a={name:i.string,declaration:i.string,description:i.string,default:i.any,selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.number,i.string])),i.number,(0,i.objectOf)((0,i.oneOfType)([i.number,i.string])),i.string])),(0,i.objectOf)((0,i.oneOfType)([i.number,i.string]))]),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,inputProperties:i.object,model:(0,i.shape)(l),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,ripple:(0,i.oneOfType)([i.boolean,i.object]),rootProps: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,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:o()({},c),trim:!0,type:"string"},f={className:[],styles:{},enforceUncontrolled:!1,model:o()({},d),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return _},determineInitialValue:function(){return h},determineValidationState:function(){return m},formatValue:function(){return C},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return g},getValueFromSelection:function(){return b},mapPropertiesIntoModel:function(){return v},normalizeSelection:function(){return E},parseValue:function(){return O},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(2),a=n(4);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 _(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 h=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},m=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},y=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 g(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,i=s(t);!(o=i()).done;){var a=o.value,l=a[0],u=a[1];if(l===e)return u}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],_=p[0],h=p[1];l.push({label:null!==(f=r(_,u))&&void 0!==f?f:h,value:_}),u+=1}else if((0,i.isObject)(e[0]))for(var m,v=s(e);!(m=v()).done;){var y,g=m.value;l.push(o()({},g,{label:null!==(y=r(g.value,u))&&void 0!==y?y:g.label})),u+=1}else for(var b=0,E=e;b<E.length;b++){var O,C=E[b];l.push({label:null!==(O=r(C,u))&&void 0!==O?O:C,value:C}),u+=1}e=l}}else{for(var A=[],x=0,I=Object.keys(e);x<I.length;x++){var T,S=I[x];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 P,w=new Map,L=0,D=s(t);!(P=D()).done;){var M=P.value[0];w.set(M,L),L+=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 O=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 oe},default:function(){return ie}});var r,o,i,a=n(0),s=n.n(a),l=n(21),u=n(22),c=n(19),d=n(20),f=n(17),p=n(23),_=n(24),h=n(25),m=n(5),v=n(2),y=n(3),g=n(18),b=n.n(g),E=n(7),O=n(6),C=n(9),A=n(26),x=n(27),I=n(28),T=n(29),S=n(1),P=function(e){var t,n,r,o=(0,y.useId)(),i=null!==(t=e.id)&&void 0!==t?t:o,a=(0,y.useRef)(null);(0,y.useEffect)((function(){if(a.current){var t=new T.MDCTextField(a.current);return e.foundationRef&&(e.foundationRef.current=t.getDefaultFoundation()),"string"==typeof e.value&&(t.value=e.value),"boolean"==typeof e.disabled&&(t.disabled=e.disabled),"boolean"==typeof e.invalid&&(t.valid=!e.invalid),"boolean"==typeof e.required&&(t.required=e.required),"number"==typeof e.minLength&&(t.minLength=e.minLength),"number"==typeof e.maxLength&&(t.maxLength=e.maxLength),t.useNativeValidation=!1,function(){t.destroy()}}}),[a.current,e.foundationRef,e.value,e.disabled,e.invalid,e.required,e.minLength,e.maxLength]),(0,y.useEffect)((function(){e.editorViewReference.current&&e.textareaReference.current&&(e.editorViewReference.current.style.height=String(e.textareaReference.current.clientHeight+(e.viewContentOffsetInPX||0))+"px")}),[e.editorViewReference.current,null==(n=e.textareaReference.current)?void 0:n.clientHeight]);var s=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("textarea",{ref:e.textareaReference,className:"mdc-text-field__input",style:{visibility:"hidden",position:"absolute"},rows:e.rows,"aria-labelledby":i+"-label","aria-controls":i+"-helper","aria-describedby":i+"-helper",readOnly:!0,value:e.value,minLength:e.minLength,maxLength:e.maxLength}),e.children,e.barContentSlot?(0,S.jsxs)("div",{className:e.classNamePrefix+"__bar",children:[e.barContentSlot,e.characterCount?(0,S.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount?(0,S.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),l="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("label",{ref:a,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[e.classNamePrefix,"mdc-text-field","mdc-text-field--textarea"].concat(e.value?e.classNamePrefix+"--has-content":"mdc-text-field--textarea").concat(e.disabled?"mdc-text-field--disabled":[]).concat(e.outlined?"mdc-text-field--outlined":"mdc-text-field--filled").concat(e.characterCount?"mdc-text-field--with-internal-counter":[]).join(" "),children:[e.ripple?(0,S.jsx)("span",{className:"mdc-text-field__ripple"}):"",(0,S.jsx)("span",{className:"mdc-floating-label",id:i+"-label",children:e.label}),e.resizeable?(0,S.jsx)("span",{className:"mdc-text-field__resizer",children:s}):s,e.ripple?(0,S.jsx)("span",{className:"mdc-line-ripple"}):""]}),l.children?(0,S.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,S.jsx)("div",{className:["mdc-text-field-helper-text"].concat(l.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:i+"-helper",children:null!=(r=e.helpText)&&r.children?e.helpText.children:e.helpText})}):""]})},w={textInput:"text-input",mdcTextFieldHelperText:"mdc-text-field-helper-text",codeEditorHasContent:"code-editor--has-content",cmContent:"cm-content",cmGutters:"cm-gutters",codeEditor:"code-editor",cmFocused:"cm-focused",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor-bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldDisabled:"mdc-text-field--disabled",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter",tiptap:"tiptap",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},L=w,D=function(e){if(!(I.basicSetup&&l.javascript&&A.EditorState&&x.EditorView))throw Error("Missing codemirror dependencies.");var t=(0,y.useState)(String(e.value)||""),n=t[0],r=t[1],o=(0,y.useRef)(null),i=(0,y.useRef)(null);return(0,y.useEffect)((function(){var t,a;if(o.current){var s=A.EditorState.create({doc:n,extensions:[x.EditorView.updateListener.of((function(t){r((function(n){var r=t.state.doc.toString();if(n!==r){var o=new Event("input");return o.detail=t,i.current&&(i.current.value=r,i.current.dispatchEvent(o)),e.onChange&&e.onChange(r),r}return n}))})),I.basicSetup,null!==(t=null==(a=e.editor)?void 0:a.mode)&&void 0!==t?t:(0,l.javascript)()]}),u=new x.EditorView({state:s,parent:o.current});return function(){u.destroy()}}}),[o.current]),(0,S.jsx)(P,s()({editorViewReference:o,textareaReference:i,value:n,classNamePrefix:L.codeEditor,onLabelClick:function(){var e;null==(e=o.current)||e.focus()}},e,{children:(0,S.jsx)("div",{ref:o,onBlur:function(t){if(i.current){var n=new Event("blur");n.detail=t,i.current.dispatchEvent(n)}e.onBlur&&e.onBlur(t)},onFocus:function(t){if(i.current){var n=new Event("focus");n.detail=t,i.current.dispatchEvent(n)}e.onFocus&&e.onFocus(t)},className:L.codeEditorView+" mdc-text-field__input"})}))},M=!(void 0===window),R=M?null==(r=n(30))?void 0:r.default:null,N=M?null==(o=n(31))?void 0:o.default:null,k=M?null==(i=n(32))?void 0:i.default:null,j=w,B={injectCSS:!0,enableContentCheck:!0},F=function(e,t){return(0,C.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 U(e){"Enter"===e.code&&e.stopPropagation()}function W(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var K=n(33),V=n(34),q=n.n(V),H=(0,y.createContext)(null),z=function(e){var t,n=e.action,r=e.activeIndicator,o=e.checkedIconName,i=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,y.useContext)(H);if(!l)return null;var u=!0;i?u=i(l.can().chain().focus()).run():null!==i&&(u=n(l.can().chain().focus()).run());var c=Boolean(r&&l.isActive(r)),d=null!==(t=null!=s?s:r)&&void 0!==t?t:a;return(0,S.jsx)(O.default,{options:d,children:(0,S.jsx)(f.IconButton,{checked:c,className:c?"mdc-icon-button--checked":"",disabled:!u,onClick:function(e){e.stopPropagation(),n(l.chain().focus()).run()},icon:{icon:a,size:"xsmall"},onIcon:{icon:null!=o?o:a,size:"xsmall"},label:d})})},$=function(e){var t=e.editor;return t?(0,S.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,S.jsxs)(H.Provider,{value:t,children:[(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,S.jsx)(z,{action:function(e){return e.undo()},iconName:"undo"}),(0,S.jsx)(z,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,S.jsx)(z,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,S.jsx)(z,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,S.jsx)(z,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,S.jsx)(z,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,S.jsx)(z,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,S.jsx)(z,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,S.jsx)(z,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,S.jsx)(z,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,S.jsx)(z,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,S.jsx)(z,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},G=w,X=function(e){var t,n,r;if(!K.useEditor||q().isDummy)throw Error("Missing tiptap dependencies.");var o=e.value||"",i=(0,y.useRef)(null),a=(0,y.useRef)(null),l=(null==(t=e.editor)?void 0:t.extensions)||[q().configure((null==(n=e.editor)?void 0:n.starterKitOptions)||{})],u=(0,K.useEditor)(s()({extensions:l,editable:!e.disabled,content:String(o),onFocus:function(t){if(a.current){var n=new Event("focus");n.detail=t,a.current.dispatchEvent(n)}e.onFocus&&e.onFocus(t)},onBlur:function(t){if(a.current){var n=new Event("blur");n.detail=t,a.current.dispatchEvent(n)}e.onBlur&&e.onBlur(t)},onUpdate:function(t){var n=new Event("input");n.detail=t;var r=t.editor.getHTML();a.current&&(a.current.value="<p></p>"===r?"":r,a.current.dispatchEvent(n)),e.onChange&&e.onChange(r)}},(null==(r=e.editor)?void 0:r.options)||{})),c=null==u?void 0:u.getHTML();return(0,S.jsx)(P,s()({editorViewReference:i,textareaReference:a,barContentSlot:(0,S.jsx)($,{editor:u}),value:"<p></p>"===c?"":c,classNamePrefix:G.richtextEditor,viewContentOffsetInPX:8,onLabelClick:function(){null==u||u.chain().focus().run()}},e,{children:(0,S.jsx)(K.EditorContent,{className:"mdc-text-field__input",editor:u,innerRef:i})}))},Y=n(14),Q=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},J=function(e){return new Date(Math.round(1e3*e)).toISOString()},Z=function(e){return e instanceof Date?e.getTime()/1e3:e},ee={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,o,i=t.currency.format,a=null!==(n=null==i||null==(r=i.final.options)?void 0:r.currency)&&void 0!==n?n:"USD";return e===1/0?"Infinity "+a:e===-1/0?"- Infinity "+a:isNaN(e)?"unknown":new Intl.NumberFormat(oe.locales,s()({style:"currency"},null!==(o=null==i?void 0:i.final.options)&&void 0!==o?o:{})).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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e);return o.substring(0,o.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e-60*new Date(1e3*e).getTimezoneOffset());return o.substring(0,o.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;e-=60*new Date(1e3*e).getTimezoneOffset();var o=J(e);return o.substring(0,o.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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e),i=o.indexOf("T");return-1===i?o:(o=o.substring(i+1,o.length-1),n.step&&n.step>=60&&n.step%60==0?o.substring(0,o.lastIndexOf(":")):o)}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=new Date(1e3*e),i=o.getHours(),a=o.getMinutes(),l=(i<10?"0":"")+String(i)+":"+(a<10?"0":"")+String(a);if(!(n.step&&n.step>=60&&n.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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(oe.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"===oe.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(oe.locales,s()({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"===oe.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 te(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 ne(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)?ne(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 ne(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 re=function(e,t){var n,r,o,i,a,g,A=(0,y.useId)(),x=null!==(n=e.id)&&void 0!==n?n:A;(0,y.useEffect)((function(){if(Y.current){var e={},t=[];Ne.valid?(t.push("ariaErrormessage"),t.push("ariaInvalid")):(e.ariaErrormessage=x+"-error-message",e.ariaInvalid="true"),Ve?("search"!==Y.current.getAttribute("type")&&(e.role="searchbox"),e.ariaAutocomplete=Ne.searchSelection?"inline":"list"):(t.push("searchbox"),t.push("ariaAutocomplete")),Ne.showDeclaration?e.ariaDescribedby=x+"-declaration":t.push("ariaDescribedby");for(var n=s()({},e,Ne.inputProps||{}),r=0,o=Object.entries(n);r<o.length;r++){var i=o[r],a=i[0],l=i[1],u=(0,v.camelCaseToDelimited)(a);"boolean"==typeof l?l?Y.current.setAttribute(u,""):Y.current.removeAttribute(u):Y.current.setAttribute(u,String(l))}for(var c=0,d=t;c<d.length;c++){var f=d[c],p=(0,v.camelCaseToDelimited)(f);Y.current.hasAttribute(p)&&Y.current.removeAttribute(p)}}})),(0,y.useEffect)((function(){if(Ye){var e,t=null==(e=Z.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,y.useEffect)((function(){if(Ye){var e,t=null==(e=Z.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var n=function(e){Ne.disabled&&e.stopPropagation()};return t.addEventListener("keydown",n,!0),function(){t.removeEventListener("keydown",n,!0)}}}})),(0,y.useEffect)((function(){Ne.triggerInitialPropertiesConsolidation&&M(new Event("genericInitialPropertiesConsolidation"))}),[]);var I=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),K((0,C.parseValue)(Ne,Ne.default,oe.transformer,!Me&&Ne.model.trim)))},n=(0,v.equals)(Ne.value,Ne.default);return{icon:(0,S.jsx)(b(),{in:!n,children:R&&!R.isDummy&&k?(0,S.jsx)(R,{animation:k,reverse:!0}):(0,S.jsx)(d.Icon,{icon:"clear"})}),"aria-hidden":n?"true":"false",onClick:t,onKeyDown:t,tabIndex:n?-1:0,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var r=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),de((function(t){return void 0===t&&(t=Ne.hidden),Ne.hidden=!t,M(e),Ne.hidden})))};return{icon:R&&!R.isDummy&&N?(0,S.jsx)(R,{animation:N,reverse:!Ne.hidden}):Ne.hidden?"lock_open":"lock",onClick:r,onKeyDown:r,strategy:"component",tooltip:(Ne.hidden?"Show":"Hide")+" password"}}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1,e["aria-hidden"]=!0)),e},T=function(e){var t,n;return"string"===e.type?e.hidden?"password":Ve?"search":"text":null!==(t=null==(n=Ee[e.type])?void 0:n.type)&&void 0!==t?t:e.type},P=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,S.jsx)(b(),{in:t,children:e}):t?e:"":n?(0,S.jsx)(b(),s()({},t,{children:e})):t.in?e:""},w=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=s()({},e)).tooltip;var n=s()({},e);e.strategy="component",e.icon=(0,S.jsx)(O.default,{options:t,children:(0,S.jsx)(d.Icon,{icon:n})})}return e},L=function(e){var t=(0,C.getConsolidatedProperties)(function(e){var t,n=(0,C.mapPropertiesIntoModel)(e,oe.defaultProperties.model);return n.model.value=(0,C.parseValue)(n,n.model.value,Ee,!Me&&(null==(t=e.model)?void 0:t.trim)),F(n,n.model.state),n}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,C.formatValue)(t,t.value,Ee,!t.focused)),t},M=function(e){(0,v.extend)(!0,Ne,L(Ne)),(0,C.triggerCallbackIfExists)(Ne,"change",Me,Ne,e)},K=function(e,t){var n;if(void 0===t&&(t=-1),_e(!0),(0,v.isObject)(e)){var r=e.target||e.detail;Ne.value=r?void 0===r.value?null:r.value:e}else Ne.value=e;var o=function(){De((function(e){if(!Re&&e.representation===Ne.representation&&!Ne.suggestionCreator&&-1===t)return e;var r=s()({},e,{representation:Ne.representation});if(!Me&&(0,v.equals)(e.value,Ne.value))return r;r.value=Ne.value;var o=!1;return e.modelState.pristine&&(Ne.dirty=!0,Ne.pristine=!1,o=!0),M(n),F(Ne,e.modelState)&&(o=!0),(0,C.triggerCallbackIfExists)(Ne,"changeValue",Me,Ne.value,n,Ne),o&&Ne.model.state&&(r.modelState=Ne.model.state,(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,n,Ne)),(Ye||-1!==t)&&(0,C.triggerCallbackIfExists)(Ne,"select",Me,n,Ne),r}))},i=!Me&&Ne.model.trim;if(Ne.representation=-1!==t?We[t]:"string"==typeof Ne.value?Ne.value:(0,C.formatValue)(Ne,Ne.value,Ee),Ve)if(Ne.suggestionCreator){var a=new AbortController,l=function(e){if(!a.signal.aborted){if(Ae((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===t){var n=(0,C.getValueFromSelection)(Ne.representation,(0,C.normalizeSelection)(e));null!==n||Ne.searchSelection?Ne.value=n:Ne.value=(0,C.parseValue)(Ne,Ne.representation,Ee,i)}o()}},u=Ne.suggestionCreator({abortController:a,properties:Ne,query:Ne.representation});null!=u&&u.then?(Ae((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a})),De((function(e){return s()({},e,{representation:Ne.representation})})),u.then(l,(function(){}))):l(u)}else{if(-1===t){var c=(0,C.getValueFromSelection)(Ne.representation,Ie);null!==c||Ne.searchSelection?Ne.value=c:Ne.value=(0,C.parseValue)(Ne,Ne.representation,Ee,i)}o()}else Ne.value=(0,C.parseValue)(Ne,Ne.value,Ee,i),o()},V=function(e){z(e),(0,C.triggerCallbackIfExists)(Ne,"click",Me,e,Ne),$(e)},q=function(e){(0,C.triggerCallbackIfExists)(Ne,"focus",Me,e,Ne),$(e)},H=function(e){e.code&&(z(e),(0,C.triggerCallbackIfExists)(Ne,"keyUp",Me,e,Ne))},z=function(e){(0,C.triggerCallbackIfExists)(Ne,"selectionChange",Me,e,Ne)},$=function(e){De((function(t){var n=!1;t.modelState.focused||(Ne.focused=!0,n=!0),t.modelState.untouched&&(Ne.touched=!0,Ne.untouched=!1,n=!0);var r=t;return n&&(M(e),r=s()({},t,{modelState:Ne.model.state}),(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,e,Ne)),(0,C.triggerCallbackIfExists)(Ne,"touch",Me,e,Ne),r}))},G=(0,y.useRef)(null),Y=(0,y.useRef)(null),Q=(0,y.useRef)(null),J=(0,y.useRef)(null),Z=(0,y.useRef)(null),ee=(0,C.translateKnownSymbols)(e),ne=(0,y.useState)({end:0,start:0}),re=ne[0],ie=ne[1],ae=(0,y.useState)({editorIsActive:ee.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),se=ae[0],le=ae[1],ue=(0,y.useState)(),ce=ue[0],de=ue[1],fe=(0,y.useState)(!1),pe=fe[0],_e=fe[1],he=(0,y.useState)(!1),me=he[0],ve=he[1],ye=(0,C.determineInitialValue)(ee,oe.defaultProperties.model.default);ye instanceof Date&&(ye=ye.getTime()/1e3);var ge=(0,v.extend)(!0,(0,v.copy)(oe.defaultProperties),ee),be=ge.type||(null==(r=ge.model)?void 0:r.type)||"string",Ee=ge.transformer?s()({},oe.transformer,((o={})[be]=(0,v.extend)(!0,(0,v.copy)(oe.transformer[be])||{},ge.transformer),o)):oe.transformer,Oe=(0,y.useState)(),Ce=Oe[0],Ae=Oe[1];(ge.selection||null!=(i=ge.model)&&i.selection)&&(Ce=ge.selection||(null==(a=ge.model)?void 0:a.selection));var xe,Ie=Ce instanceof AbortController?[]:(0,C.normalizeSelection)(Ce,ge.labels),Te=Ce instanceof AbortController?[[],[]]:(0,C.getLabelAndValues)(Ie),Se=Te[0],Pe=Te[1],we=(0,y.useState)((function(){return{modelState:s()({},oe.defaultModelState),representation:(0,C.determineInitialRepresentation)(ge,oe.defaultProperties,ye,Ee,Ie),value:ye}})),Le=we[0],De=we[1],Me=!ge.enforceUncontrolled&&(void 0!==(null==(g=ee.model)?void 0:g.value)||void 0!==ee.value)&&Boolean(ee.onChange||ee.onChangeValue),Re=Me&&void 0!==ee.representation;null!==ge.cursor&&"object"==typeof ge.cursor||(ge.cursor={}),void 0===ge.cursor.end&&(ge.cursor.end=re.end),void 0===ge.cursor.start&&(ge.cursor.start=re.start),void 0===ge.editorIsActive&&(ge.editorIsActive=se.editorIsActive),void 0===ge.hidden&&(ge.hidden=ce),void 0===ge.representation&&(ge.representation=Le.representation),void 0===ge.showDeclaration&&(ge.showDeclaration=me),(0,C.deriveMissingPropertiesFromState)(ge,Le),void 0===ge.value?void 0===ge.representation&&void 0===(null==(xe=ge.model)?void 0:xe.value)&&(ge.representation=Le.representation):Re||ge.value===Le.value||(ge.representation=void 0);var Ne=L(ge);void 0===Ne.hidden&&(Ne.hidden=Ne.name.startsWith("password")),Ne.cursor&&!(0,v.equals)(Ne.cursor,re)&&ie(Ne.cursor),Ne.editorIsActive!==se.editorIsActive&&le(s()({},se,{editorIsActive:Ne.editorIsActive})),Ne.hidden!==ce&&de(Ne.hidden),Ne.showDeclaration!==me&&ve(Ne.showDeclaration);var ke={modelState:Ne.model.state,representation:Ne.representation,value:Ne.value||null};(Me||(0,v.equals)(Ne.value,Le.value)&&Ne.representation===Le.representation)&&(0,v.equals)(Ne.model.state,Le.modelState)||De(ke),Me&&(De=(0,C.wrapStateSetter)(De,ke)),(0,y.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ne.model.state},n=te(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r,o=e.value;Object.prototype.hasOwnProperty.call(ee,o)||(t[o]=null!==(r=Ne[o])&&void 0!==r&&r)}return Re||(t.representation=Ne.representation),Me||(t.value=Ne.value),{properties:Ne,references:{foundationReference:G,inputReference:Y,suggestionMenuAPIReference:Q,suggestionMenuFoundationReference:J,wrapperReference:Z},state:t}}));var je={id:x,onFocus:function(e){_e(!0),q(e)},placeholder:Ne.placeholder},Be={disabled:Ne.disabled,helpText:{children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b(),{in:Ne.selectableEditor&&"string"===Ne.type&&"plain"!==Ne.editor,children:(0,S.jsx)(f.IconButton,{icon:{"aria-label":Ne.editorIsActive?"plain":Ne.editor.startsWith("code")?"code":"richtext",icon:Ne.editorIsActive?"subject":Ne.editor.startsWith("code")?"code":"text_format",onClick:function(e){e.preventDefault(),e.stopPropagation(),le((function(t){var n=t.editorIsActive;return Ne.editorIsActive=!n,M(e),(0,C.triggerCallbackIfExists)(Ne,"changeEditorIsActive",Me,Ne.editorIsActive,e,Ne),{editorIsActive:Ne.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,S.jsx)(b(),{in:Boolean(Ne.declaration),children:(0,S.jsx)(f.IconButton,{"aria-expanded":Ne.showDeclaration?"true":"false","aria-label":"declaration",checked:Ne.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:function(e){ve((function(t){return Ne.showDeclaration=!t,M(e),(0,C.triggerCallbackIfExists)(Ne,"changeShowDeclaration",Me,Ne.showDeclaration,e,Ne),Ne.showDeclaration}))}})}),(0,S.jsx)(b(),{id:x+"-declaration",in:Ne.showDeclaration,children:Ne.declaration}),(0,S.jsx)(b(),{in:!Ne.showDeclaration&&Ne.invalid&&Ne.showValidationState&&(Ne.showInitialValidationState||Ne.visited),children:(0,S.jsx)(m.Theme,{use:"error",wrap:!0,children:(0,S.jsx)("span",{id:x+"-error-message",children:(0,C.renderMessage)(Ne.invalidMaximum&&Ne.maximumText||Ne.invalidMaximumLength&&Ne.maximumLengthText||Ne.invalidMinimum&&Ne.minimumText||Ne.invalidMinimumLength&&Ne.minimumLengthText||Ne.invalidInvertedPattern&&Ne.invertedPatternText||Ne.invalidPattern&&Ne.patternText||Ne.invalidRequired&&Ne.requiredText,s()({formatValue:function(e){return(0,C.formatValue)(Ne,e,Ee)}},Ne))})})})]}),persistent:Boolean(Ne.declaration)},invalid:Ne.invalid&&Ne.showValidationState&&(Ne.showInitialValidationState||Ne.visited),label:Ne.description||Ne.name,outlined:Ne.outlined};Ne.icon&&(Be.icon=w(I(Ne.icon)));var Fe=!Ne.selection&&"string"===Ne.type&&Ne.editorIsActive&&(Ne.editor.startsWith("code")||Ne.editor.startsWith("richtext(")),Ue=[],We=[],Ke=[],Ve=Boolean(Ne.suggestionCreator||Se.length&&(Ne.searchSelection||Ne.suggestSelection));if(Ve&&Se.length){Ne.suggestSelection=!Ne.searchSelection;for(var qe,He=0,ze=te(Se);!(qe=ze()).done;){var $e=qe.value;if((0,v.isFunction)(Ne.children)){var Ge=Ne.children({index:He,normalizedSelection:Ie,properties:Ne,query:Ne.representation,suggestion:$e,value:Pe[He]});Ge&&(Ue.push((0,S.jsx)(p.MenuItem,{className:j.textInputSuggestionsSuggestion,children:Ge},He)),We.push($e),Ke.push(Pe[He]))}else if(!Ne.representation||Ne.suggestionCreator||W($e,Ne.representation)){var Xe;Ue.push((0,S.jsx)(p.MenuItem,{className:j.textInputSuggestionsSuggestion,children:(0,v.mark)($e,(null==(Xe=Ne.representation)?void 0:Xe.split(" "))||"",{marker:function(e){return(0,S.jsx)("span",{className:j.textInputSuggestionsSuggestionMark,children:e})},normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,S.jsx)("span",{children:e},t)}))},He)),We.push($e),Ke.push(Pe[He])}He+=1}}var Ye=(Boolean(Ie)||Boolean(Ne.labels))&&!Ve,Qe={};"number"===Ne.type?(Qe.step=Ne.step,Ne.maximum!==1/0&&(Qe.max=Ne.maximum),Ne.minimum!==-1/0&&(Qe.min=Ne.minimum)):"string"===Ne.type?(Ne.maximumLength>=0&&Ne.maximumLength!==1/0&&(Qe.maxLength=Ne.maximumLength),Ne.minimumLength>0&&(Qe.minLength=Ne.minimumLength),"plain"!==Ne.editor&&(Qe.rows=Ne.rows)):["date","date-local","datetime","datetime-local","time","time-local"].includes(Ne.type)&&(Qe.step=Ne.step,Ne.maximum!==1/0&&(Qe.max=(0,C.formatValue)(Ne,Ne.maximum,Ee)),Ne.minimum!==-1/0&&(Qe.min=(0,C.formatValue)(Ne,Ne.minimum,Ee)));var Je=Ne.editor.startsWith("code")?D:X,Ze={};if(Fe)if(Ne.editor.startsWith("code(")&&Ne.editor.endsWith(")")){var et=Ne.editor.substring(5,Ne.editor.length-1);et&&(Ze.editor={},l.javascript&&["js","script","javascript"].includes(et.toLowerCase())?Ze.editor.mode=(0,l.javascript)():u.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(et.toLowerCase())&&(Ze.editor.mode=(0,u.css)()))}else Ze.editor=B;return(0,S.jsx)(E.default,{strict:oe.strict,themeConfiguration:Ne.themeConfiguration,tooltip:Ne.tooltip,children:(0,S.jsxs)("div",s()({className:[j.textInput].concat(Ne.className).join(" "),onBlur:function(e){De((function(t){var n;if(e.relatedTarget&&null!=(n=Z.current)&&n.contains(e.relatedTarget))return t;_e(!1);var r=!1,o=!1;if(t.modelState.focused&&(Ne.focused=!1,r=!0,o=!0),t.modelState.visited||(Ne.visited=!0,r=!0,o=!0),!Ve||Ne.suggestSelection){var i=(0,C.getValueFromSelection)(Ne.representation,Ie);null===i?(Ne.value=(0,C.parseValue)(Ne,Ne.value,Ee,Ne.model.trim),Ne.representation=(0,C.formatValue)(Ne,Ne.value,Ee)):Ne.value=i}return(0,v.equals)(t.value,Ne.value)&&t.representation===Ne.representation||(r=!0),r&&M(e),(0,v.equals)(t.value,Ne.value)||(0,C.triggerCallbackIfExists)(Ne,"changeValue",Me,Ne.value,e,Ne),o&&(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,e,Ne),(0,C.triggerCallbackIfExists)(Ne,"blur",Me,e,Ne),r?{modelState:Ne.model.state,representation:Ne.representation,value:Ne.value}:t}))},onKeyDown:function(e){var t;!Ne.disabled&&Ve&&"ArrowDown"===e.code&&e.target===Y.current&&(null==(t=Q.current)||t.focusItemAtIndex(0)),(Ye||"string"===Ne.type&&"plain"!==Ne.editor)&&U(e),(0,C.triggerCallbackIfExists)(Ne,"keyDown",Me,e,Ne)},ref:Z,style:Ne.styles},Ve?{role:"search"}:{},{children:[P((0,S.jsx)(_.Select,s()({},je,Be,{enhanced:!0,foundationRef:G,inputRef:Y,onChange:K,onKeyDown:function(e){Ne.disabled||"Tab"===e.code||e.preventDefault()},options:Ie,rootProps:s()({name:Ne.name,onClick:V},Ne.rootProps),value:String(Ne.value)},Ne.inputProperties)),Ye),P((0,S.jsx)(Je,s()({},je,Be,Qe,{align:Ne.align,characterCount:"number"==typeof Ne.maximumLength&&!isNaN(Ne.maximumLength)&&Ne.maximumLength>=0,foundationRef:G,inputRef:Y,onChange:K,ripple:Ne.ripple,rootProps:s()({name:Ne.name,onClick:V,onKeyUp:H,tabIndex:Ne.disabled?"0":"-1"},Ne.rootProps),trailingIcon:w(I(Ne.trailingIcon)),type:T(Ne),value:Ne.representation},Ze,Ne.inputProperties)),Fe,Ne.editor.startsWith("code")),P((0,S.jsxs)("div",{children:[Ve?(0,S.jsx)(p.MenuSurfaceAnchor,{onKeyDown:U,children:Ce instanceof AbortController?(0,S.jsx)(p.MenuSurface,{anchorCorner:"bottomLeft",className:j.textInputSuggestions+" "+j.textInputSuggestionsPending,open:!0,children:(0,S.jsx)(c.CircularProgress,{size:"large"})}):(0,S.jsx)(p.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){Q.current=e},className:j.textInputSuggestions,focusOnOpen:!1,foundationRef:J,onFocus:q,onSelect:function(e){K(Ke[e.detail.index],e.detail.index),_e(!1)},open:Boolean(We.length)&&pe&&!(1===We.length&&We[0]===Ne.representation),children:Ue})}):"",(0,S.jsx)(h.TextField,s()({},je,Be,Qe,{align:Ne.align,characterCount:"number"==typeof Ne.maximumLength&&!isNaN(Ne.maximumLength)&&Ne.maximumLength>=0,foundationRef:G,inputRef:Y,onChange:K,ripple:Ne.ripple,rootProps:s()({name:Ne.name,onClick:V,onKeyUp:H,tabIndex:Ne.disabled?"0":"-1"},Ne.rootProps),textarea:"string"===Ne.type&&"plain"!==Ne.editor,trailingIcon:w(I(Ne.trailingIcon)),type:T(Ne),value:Ne.representation},Ne.inputProperties))]}),!(Fe||Ye),Ne.editor.startsWith("code"))]}))})};re.displayName="TextInput";var oe=(0,y.memo)((0,y.forwardRef)(re));oe.wrapped=re,oe.webComponentAdapterWrapped="react",oe.defaultModelState=Y._I,oe.defaultProperties=s()({},Y.ld,{cursor:void 0,model:s()({},Y.ld.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),oe.locales=v.LOCALES,oe.propTypes=Y.t5,oe.renderProperties=Y.pF,oe.strict=!1,oe.transformer=ee;var ie=oe},function(e){e.exports=b},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(5),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=C},function(e,t,n){n.d(t,{_I:function(){return c},ld:function(){return f},pF:function(){return u},t5:function(){return l},v8:function(){return d}});var r=n(0),o=n.n(r),i=n(4),a=n(8),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]),hidden:(0,i.oneOfType)([i.boolean,i.symbol]),icon:(0,i.oneOfType)([i.string,i.object]),inputProps: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)(i.string)),(0,i.arrayOf)(i.string),i.object]),maximum:(0,i.oneOfType)([i.number,i.string]),maximumLengthText:i.string,maximumText:i.string,minimum:(0,i.oneOfType)([i.number,i.string]),minimumLengthText:i.string,minimumText:i.string,onBlur:i.func,onChangeEditorIsActive:i.func,onKeyDown:i.func,onKeyUp:i.func,onSelect:i.func,onSelectionChange:i.func,outlined:i.boolean,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,trailingIcon:i.any,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,{g:function(){return i}});var r=n(3),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){e.exports=n},function(e){e.exports=m},function(e){e.exports=j},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=a},function(e){e.exports=i},function(e){e.exports=f},function(e){e.exports=p},function(e){e.exports=v},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=I},function(e){e.exports=u},function(e){e.exports=P},function(e){e.exports=N},function(e){e.exports=O},function(e){e.exports=h},function(e){e.exports=y},function(e){e.exports=x},,function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=q},function(e){e.exports=s}],A={};function L(e){var t=A[e];if(void 0!==t)return t.exports;var n=A[e]={exports:{}};return _[e](n,n.exports,L),n.exports}L.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return L.d(t,{a:t}),t},L.d=function(e,t){for(var n in t)L.o(t,n)&&!L.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},L.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},L.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var D={};L.r(D),L.d(D,{CSS_CLASS_NAMES:function(){return fe},EMBEDABLE_TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return he},FileInput:function(){return Ae},FileInputInner:function(){return Ce},IMAGE_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return pe},TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return _e},VIDEO_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return me},default:function(){return xe},deriveBase64String:function(){return be},determineRepresentationType:function(){return ye},determineValidationState:function(){return ge},preserveStaticFileBaseNameInputGenerator:function(){return ve},readBinaryDataIntoText:function(){return Ee}});var M=L(37),R=L.n(M),k=L(0),B=L.n(k),F=L(38),U=L.n(F),W=L(35),K=L(2),V=L(3),H=L(18),z=L.n(H),$=L(39),G=L(40),X=L(19),Y=L(5),Q=L(11),J=L(10),Z=L(7),ee=L(9),te=L(4),ne=L(14),re=L(8),oe={contentTypePattern:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),invertedContentTypePattern:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),maximumSize:te.number,minimumSize:te.number},ie=B()({},re.modelPropertyTypes,oe,{fileName:(0,te.shape)(ne.t5)}),ae=B()({},re.modelStatePropertyTypes,{invalidContentTypePattern:(0,te.oneOfType)([te.boolean,te.symbol]),invalidInvertedContentTypePattern:(0,te.oneOfType)([te.boolean,te.symbol]),invalidMaximumSize:(0,te.oneOfType)([te.boolean,te.symbol]),invalidMinimumSize:(0,te.oneOfType)([te.boolean,te.symbol]),invalidName:(0,te.oneOfType)([te.boolean,te.symbol])}),se=B()({},re.propertyTypes,oe,ae,{children:te.func,contentTypePatternText:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),invertedContentTypePatternText:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),maximumSizeText:te.string,minimumSizeText:te.string,model:(0,te.shape)(ie),deleteButton:(0,te.oneOfType)([te.object,te.string]),downloadButton:(0,te.oneOfType)([te.object,te.string]),editButton:(0,te.oneOfType)([te.object,te.string]),newButton:(0,te.oneOfType)([te.object,te.string]),encoding:te.string,generateFileNameInputProperties:te.func,onBlur:te.func,outlined:te.boolean}),le=B()({},re.defaultModelState,{invalidContentTypePattern:!1,invalidInvertedContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),ue=B()({},re.defaultModel,{contentTypePattern:/^.+\/.+$/,invertedContentTypePattern:void 0,fileName:B()({},ne.v8,{maximumLength:1024,name:"Name",pattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:le}),ce=B()({},ne.ld,{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 ce.model;var de=B()({},re.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:K.identity,media:{sixteenByNine:!0},model:B()({},ue),sourceToBlobOptions:{endings:"transparent",type:"text/plain"},hashingConfiguration:{binaryString:!1,prefix:"",readChunkSizeInByte:2097152}}),fe={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",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,_e=/^(?: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,ve=function(e,t){var n,r=t.name,o=t.value;return B()({},e,{disabled:!0,value:r+(null!=o&&null!=(n=o.name)&&n.includes(".")?o.name.substring(o.name.lastIndexOf(".")).toLowerCase():"")})},ye=function(e){return e=e.replace(/; *charset=.+$/,""),_e.test(e)?"text":he.test(e)?"embedableText":pe.test(e)?"image":me.test(e)?"video":"binary"},ge=function(e,t,n){return(0,ee.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,W.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)}))},Oe=L(1),Ce=function(e,t){var n,r,o,i,a,s,l,u=(0,V.useId)(),c=null!==(n=e.id)&&void 0!==n?n:u,d=function(e){var t=(0,ee.mapPropertiesIntoModel)(e,Ae.defaultProperties.model);return ge(t,!1,t.model.state),(0,ee.getConsolidatedProperties)(t)},f=function(e){var t;null!=(t=y.current)&&t.properties&&(S.model.fileName=y.current.properties.model);var n=d(S);delete S.model.value,delete S.value,S.styles=(0,K.copy)(S.styles),(0,K.extend)(!0,S,n),(0,ee.triggerCallbackIfExists)(S,"change",T,S,e)},p=function(e,t,n,r){if(void 0===r&&(r=!1),S.model.mutable&&S.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];S.value={blob:a,name:a.name},S.value.name=(null==(i=S.generateFileNameInputProperties(B()({disabled:S.disabled,value:a.name},ce,{model:S.model.fileName,onChangeValue:p,default:S.value.name}),S))?void 0:i.value)||a.name}I((function(n){var o;if(void 0===e?S.value=null:"string"==typeof e?S.value=B()({},n.value,{name:e}):"string"!=typeof e.source&&"string"!=typeof e.url||(S.value=r?B()({},n.value,e):e),(0,K.equals)(n.value,S.value))return n;var i=!1,a=B()({},n,{value:S.value});return n.modelState.pristine&&(S.dirty=!0,S.pristine=!1,i=!0),f(t),ge(S,(null==(o=y.current)||null==(o=o.properties)?void 0:o.invalid)||!1,n.modelState)&&(i=!0),(0,ee.triggerCallbackIfExists)(S,"changeValue",T,S.value,t,S),i&&(a.modelState=S.model.state,(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,t,S)),r&&(a.attachBlobProperty=!0),a}))}},_=function(e){I((function(t){var n=!1;t.modelState.focused||(S.focused=!0,n=!0),t.modelState.untouched&&(S.touched=!0,S.untouched=!1,n=!0);var r=t;return n&&(f(e),r=B()({},t,{modelState:S.model.state}),(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,e,S)),(0,ee.triggerCallbackIfExists)(S,"touch",T,e,S),r}))},h=(0,V.useRef)(null),m=(0,V.useRef)(null),v=(0,V.useRef)(null),y=(0,V.useRef)(null),g=(0,V.useRef)(null),b=(0,V.useRef)(null),E=(0,ee.translateKnownSymbols)(e),O=(0,ee.determineInitialValue)(E,Ae.defaultProperties.model.default),C=(0,K.extend)(!0,(0,K.copy)(Ae.defaultProperties),E),A=(0,V.useState)({attachBlobProperty:!1,modelState:B()({},Ae.defaultModelState),value:O}),x=A[0],I=A[1],T=!C.enforceUncontrolled&&(void 0!==(null==(r=E.model)?void 0:r.value)||void 0!==E.value)&&Boolean(E.onChange||E.onChangeValue);(0,ee.deriveMissingPropertiesFromState)(C,x);var S=d(C);x.attachBlobProperty&&x.value&&S.value&&(S.value=(0,K.extend)(!0,x.value,S.value));var P={attachBlobProperty:!1,modelState:S.model.state,value:S.value};!x.attachBlobProperty&&(T||(0,K.equals)(S.value,x.value))&&(0,K.equals)(S.model.state,x.modelState)||I(P),T&&(I=(0,ee.wrapStateSetter)(I,P)),(0,V.useImperativeHandle)(t,(function(){return{properties:S,references:{deleteButtonReference:h,downloadLinkReference:m,fileInputReference:v,iFrameReference:b,nameInputReference:y,uploadButtonReference:g},state:B()({modelState:S.model.state},T?{}:{value:S.value})}})),(0,V.useEffect)((function(){R()(U().mark((function e(){var t,n,r,o,i,a,s,l,u,c,d,f,_,h;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},null==(t=S.value)||!t.source){e.next=16;break}if(S.value.blob){e.next=6;break}null!=(r=S.value.url)&&r.startsWith("data:")?n.blob=(0,W.dataURLToBlob)(S.value.url):S.sourceToBlobOptions&&(n.blob=new Blob([S.value.source],S.sourceToBlobOptions)),e.next=13;break;case 6:if(S.value.url){e.next=13;break}return o=w||"text/plain",e.t0="data:"+o+";charset="+S.encoding+";base64,",e.next=11,be(S.value);case 11:e.t1=e.sent,n.url=e.t0+e.t1;case 13:S.value.hash||(n.hash=S.hashingConfiguration.prefix+(0,$.hash)(S.value.source)),e.next=48;break;case 16:if(!(null!=(i=S.value)&&i.blob&&S.value.blob instanceof Blob)){e.next=23;break}return l=S.value.blob,e.next=20,"text"===L?Ee(l,S.encoding):be(S.value);case 20:n.source=e.sent,e.next=38;break;case 23:if(null==(a=S.value)||!a.url){e.next=38;break}if(!S.value.url.startsWith("data:")){e.next=28;break}e.t2=(0,W.dataURLToBlob)(S.value.url),e.next=31;break;case 28:return e.next=30,fetch(S.value.url);case 30:e.t2=e.sent.blob();case 31:return e.next=33,e.t2;case 33:if(l=e.sent,"text"!==L){e.next=38;break}return e.next=37,Ee(l,S.encoding);case 37:n.source=e.sent;case 38:if(null!=(s=S.value)&&s.hash||!l){e.next=48;break}return u=0,c=S.hashingConfiguration.readChunkSizeInByte,d=Math.ceil(l.size/c),f=new $.ArrayBuffer,_=new FileReader,e.next=46,new Promise((function(e,t){_.onload=function(t){var r;console.debug("Read chunk "+String(u+1)+" of "+String(d)+"."),f.append(null==(r=t.target)?void 0:r.result),++u<d?n():e(f.end(S.hashingConfiguration.binaryString))},_.onerror=t;var n=function(){var e=u*c,t=e+c>=l.size?l.size:e+c;_.readAsArrayBuffer(l.slice(e,t))};n()}));case 46:h=e.sent,n.hash=S.hashingConfiguration.prefix+h;case 48:Object.keys(n).length>0&&p(n,void 0,void 0,!0);case 49:case"end":return e.stop()}}),e)})))().catch((function(e){console.warn(e)}))})),(0,V.useEffect)((function(){S.triggerInitialPropertiesConsolidation&&f()}),[]);var w=null!==(o=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}(S))&&void 0!==o?o:"application/binary",L=w?ye(w):"binary",D=S.invalid&&S.showValidationState&&(S.showInitialValidationState||S.visited),M=S.triggerInitialPropertiesConsolidation;return(0,Oe.jsx)(Z.WrapConfigurations,{strict:Ae.strict,themeConfiguration:S.themeConfiguration,tooltip:S.tooltip,children:(0,Oe.jsxs)(G.Card,{className:[fe.fileInput].concat(S.className).join(" "),onBlur:function(e){I((function(t){var n=!1;return t.modelState.focused&&(S.focused=!1,n=!0),t.modelState.visited||(S.visited=!0,n=!0),n&&(f(e),(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,e,S)),(0,ee.triggerCallbackIfExists)(S,"blur",T,e,S),n?B()({},t,{modelState:S.model.state}):t}))},onClick:function(e){(0,ee.triggerCallbackIfExists)(S,"click",T,e,S),_(e)},onFocus:function(e){(0,ee.triggerCallbackIfExists)(S,"focus",T,e,S),_(e)},style:S.styles,children:[(0,Oe.jsxs)(G.CardPrimaryAction,{children:[null!=(i=S.value)&&i.url?"image"===L?(0,Oe.jsx)(G.CardMedia,B()({},S.media,{style:{backgroundImage:"url("+S.value.url+")"}})):"video"===L?(0,Oe.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,Oe.jsx)("source",{src:S.value.url,type:w})}):"embedableText"===L?(0,Oe.jsx)("div",{className:[fe.fileInputIframeWrapper].concat(["text/html","text/plain"].includes(w)?fe.fileInputIframeWrapperPadding:[]).join(" "),children:(0,Oe.jsx)("iframe",{ref:b,style:{border:0,overflow:"hidden"},frameBorder:"0",scrolling:"no",src:S.value.url})}):null!=(a=S.value)&&a.source&&"text"===L?(0,Oe.jsx)("pre",{className:fe.fileInputTextRepresentation,children:S.value.source}):"":null!=(s=S.value)&&s.blob&&S.value.blob instanceof Blob?(0,Oe.jsx)(X.CircularProgress,{size:"large"}):"",(0,Oe.jsxs)("div",{className:fe.fileInputInfo,children:[(0,Oe.jsx)(Q.Typography,{tag:"h2",use:"headline6",children:D?(0,Oe.jsx)(Y.Theme,{use:"error",children:S.description?S.description:S.name}):S.description?S.description:S.name}),(0,Oe.jsx)(z(),{in:D||Boolean(S.declaration),children:(0,Oe.jsxs)("div",{className:fe.fileInputInfoBody,children:[S.declaration?(0,Oe.jsx)(Q.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:D?(0,Oe.jsx)(Y.Theme,{use:"error",children:S.declaration}):S.declaration}):"",(0,Oe.jsx)(Y.Theme,{use:"error",wrap:!0,children:(0,Oe.jsx)("span",{id:c+"-error-message",children:(0,ee.renderMessage)(S.invalidContentTypePattern&&S.contentTypePatternText||S.invalidInvertedContentTypePattern&&S.invertedContentTypePatternText||S.invalidMaximumSize&&S.maximumSizeText||S.invalidMinimumSize&&S.minimumSizeText||S.invalidRequired&&S.requiredText,S)})})]})}),S.value?(0,Oe.jsx)(J.default,B()({ref:y},S.generateFileNameInputProperties(B()({disabled:S.disabled,value:null==(l=S.value)?void 0:l.name},(0,K.mask)(ce,{exclude:Object.keys(S.model.fileName)}),{default:S.value.name,model:S.model.fileName,onChangeValue:p,triggerInitialPropertiesConsolidation:M}),S))):"",S.children?S.children({declaration:S.declaration,invalid:D,properties:S,value:S.value}):""]}),(0,Oe.jsx)("input",{disabled:S.disabled,className:fe.fileInputNative,id:c,name:S.name,onChange:p,ref:v,type:"file"})]}),!S.disabled||S.value?(0,Oe.jsx)(G.CardActions,{children:(0,Oe.jsxs)(G.CardActionButtons,{children:[S.disabled?"":(0,Oe.jsx)(G.CardActionButton,{onClick:function(){var e;null==(e=v.current)||e.click()},ref:g,ripple:S.ripple,children:S.value?S.editButton:S.newButton}),S.value?(0,Oe.jsxs)(Oe.Fragment,{children:[S.disabled?"":(0,Oe.jsx)(G.CardActionButton,{onClick:function(){p()},ref:h,ripple:S.ripple,children:S.deleteButton}),S.value.url?(0,Oe.jsx)(G.CardActionButton,{onClick:function(){var e;null==(e=m.current)||e.click()},ripple:S.ripple,children:(0,Oe.jsx)("a",B()({className:fe.fileInputDownload,download:S.value.name,href:S.value.url,ref:m,target:"_blank"},w?{type:w}:{},{children:S.downloadButton}))}):""]}):""]})}):""]})})};Ce.displayName="FileInput";var Ae=(0,V.memo)((0,V.forwardRef)(Ce));Ae.wrapped=Ce,Ae.webComponentAdapterWrapped="react",Ae.defaultModelState=le,Ae.defaultProperties=B()({},de,{model:B()({},de.model,{state:void 0,value:void 0}),value:void 0}),Ae.propTypes=se,Ae.renderProperties=["children","generateFileNameInputProperties"],Ae.strict=!1;var xe=Ae;return D}())},,,,,,,,,,,,,,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__51__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__52__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__53__}],__webpack_module_cache__={};function __nested_webpack_require_120187__(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_120187__),n.loaded=!0,n.exports}__nested_webpack_require_120187__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_120187__.d(t,{a:t}),t},__nested_webpack_require_120187__.d=function(e,t){for(var n in t)__nested_webpack_require_120187__.o(t,n)&&!__nested_webpack_require_120187__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_120187__.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_120187__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_120187__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_120187__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __nested_webpack_exports__={};__nested_webpack_require_120187__.r(__nested_webpack_exports__),__nested_webpack_require_120187__.d(__nested_webpack_exports__,{FileInput:function(){return _FileInput}});var clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_120187__(0),clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_120187__.n(clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_120187__(37),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2___default=__nested_webpack_require_120187__.n(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_120187__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_120187__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_1__),_FileInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_1___default()(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2___default(),"FileInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumSize:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumSize:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidContentTypePattern:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidInvertedContentTypePattern:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidName:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.string}});return __nested_webpack_exports__.default=_FileInput,__nested_webpack_exports__}()},module.exports=t(__webpack_require__(14),__webpack_require__(11),__webpack_require__(9),__webpack_require__(38),__webpack_require__(12),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(75),__webpack_require__(107),__webpack_require__(68),__webpack_require__(18),__webpack_require__(74),__webpack_require__(56),__webpack_require__(76),__webpack_require__(77),__webpack_require__(39),__webpack_require__(40),__webpack_require__(37),__webpack_require__(37),__webpack_require__(120),__webpack_require__(13),__webpack_require__(37),__webpack_require__(0),__webpack_require__(67),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(1),__webpack_require__(110),__webpack_require__(8),__webpack_require__(5),__webpack_require__(52),__webpack_require__(30),__webpack_require__(31),__webpack_require__(32))}],__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__(128);return __webpack_exports__}()}));
489
+ 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 d},MDCCircularProgressFoundation:function(){return c},cssClasses:function(){return l},strings:function(){return u}});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;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a=n(4),s=n(3),l={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},u={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},c=function(e){function t(n){return e.call(this,i(i({},t.defaultAdapter),n))||this}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},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(l.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(l.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(u.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(u.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(l.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(l.INDETERMINATE_CLASS),this.adapter.removeAttribute(u.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(u.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(u.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(l.CLOSED_CLASS),this.adapter.removeAttribute(u.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(l.CLOSED_CLASS),this.adapter.setAttribute(u.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(s.I),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(c.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 c({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}(a.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(43),o=n(20),i=n(55),a=n(19)},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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,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 D.A}});var o=n(70),i=n(71);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(69),u=n(73),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(5);var _=n(72);function h(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 m(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=h(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:m(a,"exit",e),enter:m(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:m(a,"exit",e),enter:m(a,"enter",e)})}})),o}var y=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},g=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,h(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:m(e,"appear",n),enter:m(e,"enter",n),exit:m(e,"exit",n)})}))):v(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=h(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=y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s.createElement(_.A.Provider,{value:i},a):s.createElement(_.A.Provider,{value:i},s.createElement(t,r,a))},t}(s.Component);g.propTypes={},g.defaultProps={component:"div",childFactory:function(e){return e}};var b=g,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 O,C,A=E;var x="out-in",I="in-out",T=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},S=((O={})[x]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:T(t,"onExited",(function(){n(l.ENTERING,null)}))})},O[I]=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)}))})]},O),P=((C={})[x]=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[I]=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),w=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===I?{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=P[r](u);break;case l.EXITING:e=S[r](u);break;case l.ENTERED:e=a}return s.createElement(_.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.Component);w.propTypes={},w.defaultProps={mode:x};var L=w,D=n(96)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return p},MDCIconButtonToggleFoundation:function(){return d},cssClasses:function(){return u},strings:function(){return c}});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;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a=n(4),s=n(20),l=n(3),u={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},c={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"},d=function(e){function t(n){var r=e.call(this,i(i({},t.defaultAdapter),n))||this;return r.hasToggledAriaLabel=!1,r}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return c},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(c.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(c.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(c.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(u.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(u.ICON_BUTTON_ON):this.adapter.removeClass(u.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(c.DATA_ARIA_LABEL_ON):this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(c.ARIA_LABEL,t||"")}else this.adapter.setAttr(c.ARIA_PRESSED,""+e)},t}(l.I),f=d.strings,p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return o(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 d({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(f.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 s.N(this.root);return e.unbounded=!0,e},t}(a.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(82),o=n(42),i=n(66)},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(83),o=n(41),i=n(45)},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(53),o=n(92)},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(41),o=n(84),i=n(46),a=n(85)},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(61),o=n(78),i=n(62)},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(63),o=n(80),i=n(79)},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(64),o=n(65),i=n(81)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return w},MDCSelectFoundation:function(){return E},MDCSelectHelperText:function(){return x},MDCSelectHelperTextFoundation:function(){return A},MDCSelectIcon:function(){return P},MDCSelectIconFoundation:function(){return S},cssClasses:function(){return m},helperTextCssClasses:function(){return C},helperTextStrings:function(){return O},iconStrings:function(){return I},numbers:function(){return y},strings:function(){return v}});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.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var s=n(4),l=n(61),u=n(63),c=n(41),d=n(84),f=n(46),p=n(64),_=n(20),h=n(19),m={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"},v={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"},y={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},g=n(3),b=n(89),E=function(e){function t(n,r){void 0===r&&(r={});var o=e.call(this,i(i({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=y.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=r.leadingIcon,o.helperText=r.helperText,o}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},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===y.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!==y.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(m.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(m.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(m.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(m.FOCUSED),n=e||t,r=this.adapter.hasClass(m.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(m.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(m.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(m.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(m.FOCUSED)){var t=(0,b.l5)(e)===b._.ENTER,n=(0,b.l5)(e)===b._.SPACEBAR,r=(0,b.l5)(e)===b._.ARROW_UP,o=(0,b.l5)(e)===b._.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(m.FOCUSED);if(e){var n=y.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(m.INVALID),this.adapter.removeMenuClass(m.MENU_INVALID)):(this.adapter.addClass(m.INVALID),this.adapter.addMenuClass(m.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(m.REQUIRED)&&!this.adapter.hasClass(m.DISABLED)?this.getSelectedIndex()!==y.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(m.REQUIRED):this.adapter.removeClass(m.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(c.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(m.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(m.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(m.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(m.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(v.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(v.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),y.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(g.I),O={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},C={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},A=function(e){function t(n){return e.call(this,i(i({},t.defaultAdapter),n))||this}return o(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return C},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},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(O.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(C.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(C.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(C.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(O.ROLE):this.adapter.setAttr(O.ROLE,"alert"));this.adapter.removeAttr(O.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(O.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(O.ARIA_HIDDEN,"true")},t}(g.I),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 A({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}(s.O),I={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},T=["click","keydown"],S=function(e){function t(n){var r=e.call(this,i(i({},t.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(e){r.handleInteraction(e)},r}return o(t,e),Object.defineProperty(t,"strings",{get:function(){return I},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=a(T),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=a(T),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.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)&&this.adapter.notifyIconAction()},t}(g.I),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 S({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(S.strings.ICON_EVENT,{},!0)}})},t}(s.O),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,o,i){if(void 0===e&&(e=function(e){return new l.$(e)}),void 0===t&&(t=function(e){return new u.l(e)}),void 0===n&&(n=function(e){return new p.i(e)}),void 0===r&&(r=function(e){return new d.C(e)}),void 0===o&&(o=function(e){return new P(e)}),void 0===i&&(i=function(e){return new x(e)}),this.selectAnchor=this.root.querySelector(v.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(v.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(v.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+v.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(v.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(v.ARIA_CONTROLS));a&&(this.helperText=i(a))}this.menuSetup(r);var s=this.root.querySelector(v.LABEL_SELECTOR);this.label=s?e(s):null;var c=this.root.querySelector(v.LINE_RIPPLE_SELECTOR);this.lineRipple=c?t(c):null;var f=this.root.querySelector(v.OUTLINE_SELECTOR);this.outline=f?n(f):null;var _=this.root.querySelector(v.LEADING_ICON_SELECTOR);_&&(this.leadingIcon=o(_)),this.root.classList.contains(m.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(c.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(c.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(c.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(f.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(c.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(c.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(f.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(v.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=i(i(i(i({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new E(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(v.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(v.VALUE_ATTR)||""}))},t.prototype.createRipple=function(){var e=this,t=i(i({},_.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 _.N(this.selectAnchor,new h.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(v.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(v.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}(s.O)},function(e,t,n){n.d(t,{C6:function(){return o},Cl:function(){return i},fX:function(){return s},zs:function(){return a}});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,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 s(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(17),i=n(108),a=n(74),s=n(2),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})})),_=s.createComponent((function(e,t){const n=s.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(s.Tag,{...e,ref:t,className:n})})),h=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})})),m=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=m,t.CardActionButtons=p,t.CardActionIcon=h,t.CardActionIcons=_,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(17),a=n(18),s=n(109),l=n(2),u=i.withRipple({surface:!1})(l.createComponent((function(e,t){const{dense:n,raised:o,unelevated:i,outlined:a,danger:u,icon:_,label:h,trailingIcon:m,children:v,touch:y,...g}=e,b=s.useIsWrappedTouchTarget(y),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=g.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};g.style={...t,...e}}return r.jsxs(l.Tag,{tag:"button",...g,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!_&&r.jsx(p,{icon:_}),r.jsxs("span",{className:"mdc-button__label",children:[h,v]}),!!m&&r.jsx(p,{icon:m})]})}))),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(17),a=n(2),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 _(){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)}}(),_.prototype.append=function(e){return this.appendBinary(u(e)),this},_.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},_.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},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.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)},_.hash=function(e,t){return _.hashBinary(u(e),t)},_.hashBinary=function(e,t){var n=l(i(e));return t?p(n):n},_.ArrayBuffer=function(){this.reset()},_.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},_.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},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var e=_.prototype.getState.call(this);return e.buff=d(e.buff),e},_.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),_.prototype.setState.call(this,e)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(e,t){var n=l(a(new Uint8Array(e)));return t?p(n):n},_}()},,,,,,,,,,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(g(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 _(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then((function(e){return e.toDataURL(t,i)}))}function h(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 m(e,t,n,i){return t=t||"image/png",r(e,n).then(o).then((function(e){return h(e,t,i)}))}function v(e,t){return i([e],t)}function y(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 g(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 g},arrayBufferToBlob:function(){return v},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return b},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return y},blobToBase64String:function(){return d},blobToBinaryString:function(){return l},blobToDataURL:function(){return p},canvasToBlob:function(){return h},createBlob:function(){return i},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return m},imgSrcToDataURL:function(){return _},revokeObjectURL:function(){return s}})},,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __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!=__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__51__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__52__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__53__,__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_6697__){var __dirname="/",e,t,r,n,i,o,s,a,l,p,c,u;if(module=__nested_webpack_require_6697__.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!=__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_6697__.g||null===__nested_webpack_require_6697__.g?{}:__nested_webpack_require_6697__.g;module.exports=(e=__nested_webpack_require_6697__(2),t=__nested_webpack_require_6697__(12),r=__nested_webpack_require_6697__(3),n=__nested_webpack_require_6697__(5),i=__nested_webpack_require_6697__(6),o=__nested_webpack_require_6697__(0),s=__nested_webpack_require_6697__(4),a=__nested_webpack_require_6697__(13),l=__nested_webpack_require_6697__(14),p=__nested_webpack_require_6697__(15),c=__nested_webpack_require_6697__(16),u=__nested_webpack_require_6697__(17),function(){var d=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=o},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=i},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 I}});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),_=n.n(p),h=n(9),m=n.n(h),v=(n(10),n(5)),y=n.n(v),g=n(1),b=n(2),E=n(6);function O(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 A="undefined"==typeof HTMLElement?function(){}:HTMLElement,x=(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()({},g.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}_()(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,g.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,g.timeout)((function(){e.render("connected")}))},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=O(this.domNodeEventBindings.values());!(e=t()).done;)for(var n,r=O(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=O((0,g.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,g.timeout)((function(){void 0!==t&&n.isStateProperty(e)?(n.render("preStatePropertyChanged"),(0,g.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,g.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,g.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,g.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,g.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,g.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=O(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){if(void 0===t&&(t=[]),void 0===n&&(n={}),(n=f()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return n.map;if(n.unsafe){var r=e.innerHTML;if(!r&&e.template&&(r=e.template),this.self.hasCode(r)){var o,i=(0,g.compile)("`"+r+"`",t);null==(o=n.map)||o.set(e,{children:[],error:i.error,scopeNames:i.scopeNames,template:r,templateFunction:i.templateFunction})}}else{var a,s=e.nodeName.toLowerCase();if(["a","#text"].includes(s)){var l="a"===s?e.getAttribute("href"):e.textContent;l&&this.self.hasCode(l)&&(a=l.replace(/&nbsp;/g," ").trim())}var u=[];if(a){var c,d=(0,g.compile)("`"+a+"`",t);null==(c=n.map)||c.set(e,{children:u,error:d.error,scopeNames:d.scopeNames,template:a,templateFunction:d.templateFunction})}for(var p=e.firstChild;p;)n.filter&&!n.filter(p)||u.push(this.compileDomNodeTemplate(p,t,f()({},n,{ignoreComponents:n.ignoreNestedComponents}))),p=p.nextSibling}return n.map},n.evaluateDomNodeTemplate=function(e,t,n){var r,o;if(void 0===t&&(t={}),void 0===n&&(n={}),null!=(r=(n=f()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n)).map)&&r.has(e)||this.compileDomNodeTemplate(e,t,n),null!=(o=n.map)&&o.has(e)){var i=n.map.get(e),a=i.error,s=i.scopeNames,l=i.templateFunction;if(a)console.warn("Error occurred during compiling node content: "+a);else{var u=null;try{u=l.apply(void 0,s.map((function(e){return t[e]})))}catch(a){console.warn('Error occurred when "'+this.self._name+'" is running "'+l+'": with bound names "'+s.join('", "')+'": "'+a+'". Rendering node:',e)}null!==u&&(n.unsafe?e.innerHTML=u:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",u):e.textContent=u)}}if(!(n.unsafe||n.ignoreComponents&&e.nodeName.toLowerCase().includes("-")))for(var c=e.firstChild;c;)n.filter&&!n.filter(c)||this.evaluateDomNodeTemplate(c,t,f()({},n,{applyBindings:!1,ignoreComponents:n.ignoreNestedComponents})),c=c.nextSibling;return n.applyBindings&&this.applyBindings(e,t),n.map},t.replaceDomNodes=function(e,n){for(var r,o=O([].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=O(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,g.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()(y().mark((function t(){var r,o,i,a,s=arguments;return y().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=3,e.reflectEventToProperties(n,o);case 3:(a=t.sent)&&(o[0]=a),e.forwardEvent(n,o);case 6: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=O(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,g.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=O(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,r;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(null==(n=e.firstElementChild)||!n.hasAttribute("data-no-template")||"false"===(null==(r=e.firstElementChild)?void 0:r.getAttribute("data-no-template")))){var o,i,a=e.firstElementChild.value;null==(o=e.classList)||o.remove("web-component-template");var s=e.cloneNode();return null==(i=e.classList)||i.add("web-component-template"),s.innerHTML="",s.template=a,s}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=[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,g.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,g.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=O(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=O(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()(y().mark((function e(t,n){var r,o,i,a,s,l,u,c,d,p,_,h,m,v,b,E;return y().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,g.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=16;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,n.concat([this])))&&"then"in s&&(0,g.isFunction)(s.then))){e.next=12;break}return e.next=9,s;case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=s;case 13:l=e.t0,i=!0,Array.isArray(l)?(o=l[0],this.reflectProperties(o),(0,g.extend)(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(o=l,this.reflectProperties(l));case 16:if(!i&&n.length>0&&(0,g.isObject)(n[0])){if(c=n[0],"persist"in n[0]&&(0,g.isFunction)(n[0].persist))for(c={},d=0,p=Object.keys(this.self.propertyTypes);d<p.length;d++)for(_=p[d],h=O([_].concat(null!==(v=this.getPropertyAlias(_))&&void 0!==v?v:[]));!(m=h()).done;)b=m.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 20: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,g.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,g.evaluate)(t,f()({},g.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(g.UTILITY_SCOPE_NAMES);if(t){var _=(0,g.compile)(t,p);d=_.error,c=_.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(g.UTILITY_SCOPE_VALUES))}catch(n){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+p.join('", "')+'" set to "'+(0,g.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 h;try{h=JSON.parse(t)}catch(d){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,g.represent)(d));break}this.setInternalPropertyValue(i,h),this.setExternalPropertyValue(i,(0,g.copy)(h,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 m=parseFloat(t);isNaN(m)&&(m=void 0),this.setInternalPropertyValue(i,m),this.setExternalPropertyValue(i,m);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,g.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,g.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,g.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,g.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,g.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,g.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=m()(o.prototype,"isRoot",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o),I={component:x,register:function(e){void 0===e&&(e=(0,g.camelCaseToDelimited)(x._name)),customElements.define(e,x)}};t.default=x},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),_=n.n(p),h=n(12),m=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 y(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)?y(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 y(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 g=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).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(){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=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=3;break}return e.abrupt("return");case 3: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||(this.reactRoot=(0,m.createRoot)(this.root,{identifierPrefix:String(this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name)})),e.next=12,new Promise((function(e){(0,h.flushSync)((function(){var t;null==(t=a.reactRoot)||t.render((0,p.createElement)(a.self.content,a.internalProperties)),e()}))}));case 12:if(null==(n=this.instance)||!n.current){e.next=16;break}this.reflectInstanceProperties(),e.next=18;break;case 16:return e.next=18,(0,d.timeout)(this.reflectInstanceProperties);case 18: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=Object.keys(t),m={},y=function(){var n,r=_.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,h),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")||(h=[].concat(h,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(h=[].concat(h,["parameters"]));var y=(0,d.compile)(o,h,!0),g=y.error,b=y.originalScopeNames,E=y.scopeNames,O=y.templateFunction;if(g)return console.warn('Error occurred during compiling given event binding "'+r+'" on node:',e,g),0;var C=O.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 A={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(A,s)&&(s=A[s]),s=(0,d.delimitedToCamelCase)(s),null!=(n=o)&&n.originalScopeNames?m[a?"":s]=o:f||(c[s]=o)},g=v(e.getAttributeNames());!(_=g()).done;)y();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(m);a<s.length;a++){var l=s[a],d=l[0],_=l[1],h=_.originalScopeNames,v=_.templateFunction.apply(void 0,h.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);g.attachWebComponentAdapterIfNotExists=!0,g.content="div",g.react=_(),g._name="ReactWebComponent";var b={component:g,register:function(e){void 0===e&&(e=(0,d.camelCaseToDelimited)(g._name)),customElements.define(e,g)}};t.default=g}],f={};function _(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return d[e](n,n.exports,_),n.exports}_.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(t,{a:t}),t},_.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};_.r(h),_.d(h,{ReactWeb:function(){return C},Web:function(){return I},reactWebAPI:function(){return A},webAPI:function(){return x},wrapAsWebComponent:function(){return T}});var m=_(0),v=_.n(m),y=_(3),g=_.n(y),b=_(1),E=_(14),O=_(7),C=E.default,A=E.api,x=O.api,I=O.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 _=0,h=C.propertiesToReflectAsAttributes;_<h.length;_++){var m=h[_];c[m]=C.propertyTypes[m]}var y=u.map((function(e){return(0,b.camelCaseToDelimited)(e)})),E=function(t){function r(){for(var o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(o=t.call.apply(t,[this].concat(a))||this).self=r,o.internalProperties=n.internalProperties?v()({},n.internalProperties):e.internalProperties?v()({},e.internalProperties):{},o}return g()(r,t),r}(C);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof n.attachWebComponentAdapterIfNotExists||n.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=C.observedAttributes.concat(y).concat(y.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()({},C.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=v()({},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 h.default=T,h}())},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(module,__unused_webpack_exports,__nested_webpack_require_49611__){var __dirname="/",e,t,n,r,i,a,o,l,u,s,c,d,m,f,p,v,g,b,h,y,x,S,w,I,T,j,C,P,N,O,E,q;if(module=__nested_webpack_require_49611__.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!=__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_49611__.g||null===__nested_webpack_require_49611__.g?{}:__nested_webpack_require_49611__.g;module.exports=(e=__nested_webpack_require_49611__(5),t=__nested_webpack_require_49611__(2),n=__nested_webpack_require_49611__(7),r=__nested_webpack_require_49611__(6),i=__nested_webpack_require_49611__(21),a=__nested_webpack_require_49611__(22),o=__nested_webpack_require_49611__(23),l=__nested_webpack_require_49611__(24),u=__nested_webpack_require_49611__(25),s=__nested_webpack_require_49611__(51),c=__nested_webpack_require_49611__(19),d=__nested_webpack_require_49611__(26),m=__nested_webpack_require_49611__(27),f=__nested_webpack_require_49611__(28),p=__nested_webpack_require_49611__(29),v=__nested_webpack_require_49611__(30),g=__nested_webpack_require_49611__(8),b=__nested_webpack_require_49611__(9),h=__nested_webpack_require_49611__(31),y=__nested_webpack_require_49611__(32),x=__nested_webpack_require_49611__(52),S=__nested_webpack_require_49611__(3),w=__nested_webpack_require_49611__(0),I=__nested_webpack_require_49611__(33),T=__nested_webpack_require_49611__(4),j=__nested_webpack_require_49611__(20),C=__nested_webpack_require_49611__(10),P=__nested_webpack_require_49611__(34),N=__nested_webpack_require_49611__(35),O=__nested_webpack_require_49611__(36),E=__nested_webpack_require_49611__(11),q=__nested_webpack_require_49611__(53),function(){var _=[function(e){e.exports=t},function(e){e.exports=E},function(e){e.exports=S},function(e){e.exports=T},function(e){e.exports=w},function(e){e.exports=g},function(e,t,n){n.d(t,{WrapTooltip:function(){return c}});var r=n(0),o=n.n(r),i=n(2),a=n(11),s=n(13),l=n(1),u=!s.Tooltip||Boolean(s.Tooltip.isDummy),c=function(e){var t=e.children,n=e.options;if("string"==typeof n)return u?(0,l.jsx)("div",{className:"generic-tooltip",title:n,children:t}):(0,l.jsx)(s.Tooltip,{overlay:(0,l.jsx)(a.Typography,{use:"caption",children:n}),children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})});if((0,i.isObject)(n)){if("string"==typeof n.overlay){if(u)return(0,l.jsx)("div",{className:"generic-tooltip",title:n.overlay,children:t});n=o()({},n,{overlay:(0,l.jsx)(a.Typography,{use:"caption",children:n.overlay})})}return u?(0,l.jsx)("div",{className:"generic-tooltip",children:t}):(0,l.jsx)(s.Tooltip,o()({},n,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:t})}))}return(0,l.jsx)(l.Fragment,{children:t})};t.default=c},function(e,t,n){n.d(t,{WrapConfigurations:function(){return s}}),n(0),n(16),n(3),n(5);var r=n(15),o=n(12),i=n(6),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.g,{strict:Boolean(n),children:(0,a.jsx)(i.WrapTooltip,{options:l,children:(0,a.jsx)(o.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},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(4),a={name:i.string,declaration:i.string,description:i.string,default:i.any,selection:(0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([(0,i.arrayOf)((0,i.oneOfType)([i.number,i.string])),i.number,(0,i.objectOf)((0,i.oneOfType)([i.number,i.string])),i.string])),(0,i.objectOf)((0,i.oneOfType)([i.number,i.string]))]),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,inputProperties:i.object,model:(0,i.shape)(l),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,ripple:(0,i.oneOfType)([i.boolean,i.object]),rootProps: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,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:o()({},c),trim:!0,type:"string"},f={className:[],styles:{},enforceUncontrolled:!1,model:o()({},d),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e,t,n){n.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return _},determineInitialValue:function(){return h},determineValidationState:function(){return m},formatValue:function(){return C},getConsolidatedProperties:function(){return y},getLabelAndValues:function(){return g},getValueFromSelection:function(){return b},mapPropertiesIntoModel:function(){return v},normalizeSelection:function(){return E},parseValue:function(){return O},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(2),a=n(4);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 _(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 h=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},m=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},y=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 g(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,i=s(t);!(o=i()).done;){var a=o.value,l=a[0],u=a[1];if(l===e)return u}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],_=p[0],h=p[1];l.push({label:null!==(f=r(_,u))&&void 0!==f?f:h,value:_}),u+=1}else if((0,i.isObject)(e[0]))for(var m,v=s(e);!(m=v()).done;){var y,g=m.value;l.push(o()({},g,{label:null!==(y=r(g.value,u))&&void 0!==y?y:g.label})),u+=1}else for(var b=0,E=e;b<E.length;b++){var O,C=E[b];l.push({label:null!==(O=r(C,u))&&void 0!==O?O:C,value:C}),u+=1}e=l}}else{for(var A=[],x=0,I=Object.keys(e);x<I.length;x++){var T,S=I[x];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 P,w=new Map,L=0,D=s(t);!(P=D()).done;){var M=P.value[0];w.set(M,L),L+=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 O=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 oe},default:function(){return ie}});var r,o,i,a=n(0),s=n.n(a),l=n(21),u=n(22),c=n(19),d=n(20),f=n(17),p=n(23),_=n(24),h=n(25),m=n(5),v=n(2),y=n(3),g=n(18),b=n.n(g),E=n(7),O=n(6),C=n(9),A=n(26),x=n(27),I=n(28),T=n(29),S=n(1),P=function(e){var t,n,r,o=(0,y.useId)(),i=null!==(t=e.id)&&void 0!==t?t:o,a=(0,y.useRef)(null);(0,y.useEffect)((function(){if(a.current){var t=new T.MDCTextField(a.current);return e.foundationRef&&(e.foundationRef.current=t.getDefaultFoundation()),"string"==typeof e.value&&(t.value=e.value),"boolean"==typeof e.disabled&&(t.disabled=e.disabled),"boolean"==typeof e.invalid&&(t.valid=!e.invalid),"boolean"==typeof e.required&&(t.required=e.required),"number"==typeof e.minLength&&(t.minLength=e.minLength),"number"==typeof e.maxLength&&(t.maxLength=e.maxLength),t.useNativeValidation=!1,function(){t.destroy()}}}),[a.current,e.foundationRef,e.value,e.disabled,e.invalid,e.required,e.minLength,e.maxLength]),(0,y.useEffect)((function(){e.editorViewReference.current&&e.textareaReference.current&&(e.editorViewReference.current.style.height=String(e.textareaReference.current.clientHeight+(e.viewContentOffsetInPX||0))+"px")}),[e.editorViewReference.current,null==(n=e.textareaReference.current)?void 0:n.clientHeight]);var s=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("textarea",{ref:e.textareaReference,className:"mdc-text-field__input",style:{visibility:"hidden",position:"absolute"},rows:e.rows,"aria-labelledby":i+"-label","aria-controls":i+"-helper","aria-describedby":i+"-helper",readOnly:!0,value:e.value,minLength:e.minLength,maxLength:e.maxLength}),e.children,e.barContentSlot?(0,S.jsxs)("div",{className:e.classNamePrefix+"__bar",children:[e.barContentSlot,e.characterCount?(0,S.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount?(0,S.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),l="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("label",{ref:a,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[e.classNamePrefix,"mdc-text-field","mdc-text-field--textarea"].concat(e.value?e.classNamePrefix+"--has-content":"mdc-text-field--textarea").concat(e.disabled?"mdc-text-field--disabled":[]).concat(e.outlined?"mdc-text-field--outlined":"mdc-text-field--filled").concat(e.characterCount?"mdc-text-field--with-internal-counter":[]).join(" "),children:[e.ripple?(0,S.jsx)("span",{className:"mdc-text-field__ripple"}):"",(0,S.jsx)("span",{className:"mdc-floating-label",id:i+"-label",children:e.label}),e.resizeable?(0,S.jsx)("span",{className:"mdc-text-field__resizer",children:s}):s,e.ripple?(0,S.jsx)("span",{className:"mdc-line-ripple"}):""]}),l.children?(0,S.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,S.jsx)("div",{className:["mdc-text-field-helper-text"].concat(l.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:i+"-helper",children:null!=(r=e.helpText)&&r.children?e.helpText.children:e.helpText})}):""]})},w={textInput:"text-input",mdcTextFieldHelperText:"mdc-text-field-helper-text",codeEditorHasContent:"code-editor--has-content",cmContent:"cm-content",cmGutters:"cm-gutters",codeEditor:"code-editor",cmFocused:"cm-focused",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor-bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldDisabled:"mdc-text-field--disabled",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter",tiptap:"tiptap",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},L=w,D=function(e){if(!(I.basicSetup&&l.javascript&&A.EditorState&&x.EditorView))throw Error("Missing codemirror dependencies.");var t=(0,y.useState)(String(e.value)||""),n=t[0],r=t[1],o=(0,y.useRef)(null),i=(0,y.useRef)(null);return(0,y.useEffect)((function(){var t,a;if(o.current){var s=A.EditorState.create({doc:n,extensions:[x.EditorView.updateListener.of((function(t){r((function(n){var r=t.state.doc.toString();if(n!==r){var o=new Event("input");return o.detail=t,i.current&&(i.current.value=r,i.current.dispatchEvent(o)),e.onChange&&e.onChange(r),r}return n}))})),I.basicSetup,null!==(t=null==(a=e.editor)?void 0:a.mode)&&void 0!==t?t:(0,l.javascript)()]}),u=new x.EditorView({state:s,parent:o.current});return function(){u.destroy()}}}),[o.current]),(0,S.jsx)(P,s()({editorViewReference:o,textareaReference:i,value:n,classNamePrefix:L.codeEditor,onLabelClick:function(){var e;null==(e=o.current)||e.focus()}},e,{children:(0,S.jsx)("div",{ref:o,onBlur:function(t){if(i.current){var n=new Event("blur");n.detail=t,i.current.dispatchEvent(n)}e.onBlur&&e.onBlur(t)},onFocus:function(t){if(i.current){var n=new Event("focus");n.detail=t,i.current.dispatchEvent(n)}e.onFocus&&e.onFocus(t)},className:L.codeEditorView+" mdc-text-field__input"})}))},M=!(void 0===window),R=M?null==(r=n(30))?void 0:r.default:null,N=M?null==(o=n(31))?void 0:o.default:null,k=M?null==(i=n(32))?void 0:i.default:null,j=w,B={injectCSS:!0,enableContentCheck:!0},F=function(e,t){return(0,C.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 U(e){"Enter"===e.code&&e.stopPropagation()}function W(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var K=n(33),V=n(34),q=n.n(V),H=(0,y.createContext)(null),z=function(e){var t,n=e.action,r=e.activeIndicator,o=e.checkedIconName,i=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,y.useContext)(H);if(!l)return null;var u=!0;i?u=i(l.can().chain().focus()).run():null!==i&&(u=n(l.can().chain().focus()).run());var c=Boolean(r&&l.isActive(r)),d=null!==(t=null!=s?s:r)&&void 0!==t?t:a;return(0,S.jsx)(O.default,{options:d,children:(0,S.jsx)(f.IconButton,{checked:c,className:c?"mdc-icon-button--checked":"",disabled:!u,onClick:function(e){e.stopPropagation(),n(l.chain().focus()).run()},icon:{icon:a,size:"xsmall"},onIcon:{icon:null!=o?o:a,size:"xsmall"},label:d})})},$=function(e){var t=e.editor;return t?(0,S.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,S.jsxs)(H.Provider,{value:t,children:[(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,S.jsx)(z,{action:function(e){return e.undo()},iconName:"undo"}),(0,S.jsx)(z,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,S.jsx)(z,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,S.jsx)(z,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,S.jsx)(z,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,S.jsx)(z,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,S.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,S.jsx)(z,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,S.jsx)(z,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,S.jsx)(z,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,S.jsx)(z,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,S.jsx)(z,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,S.jsx)(z,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},G=w,X=function(e){var t,n,r;if(!K.useEditor||q().isDummy)throw Error("Missing tiptap dependencies.");var o=e.value||"",i=(0,y.useRef)(null),a=(0,y.useRef)(null),l=(null==(t=e.editor)?void 0:t.extensions)||[q().configure((null==(n=e.editor)?void 0:n.starterKitOptions)||{})],u=(0,K.useEditor)(s()({extensions:l,editable:!e.disabled,content:String(o),onFocus:function(t){if(a.current){var n=new Event("focus");n.detail=t,a.current.dispatchEvent(n)}e.onFocus&&e.onFocus(t)},onBlur:function(t){if(a.current){var n=new Event("blur");n.detail=t,a.current.dispatchEvent(n)}e.onBlur&&e.onBlur(t)},onUpdate:function(t){var n=new Event("input");n.detail=t;var r=t.editor.getHTML(),o=t.editor.getJSON();a.current&&(a.current.value="<p></p>"===r?"":r,a.current.dispatchEvent(n)),e.onChange&&e.onChange(r,{contentTree:o})}},(null==(r=e.editor)?void 0:r.options)||{})),c=null==u?void 0:u.getHTML();return(0,S.jsx)(P,s()({editorViewReference:i,textareaReference:a,barContentSlot:(0,S.jsx)($,{editor:u}),value:"<p></p>"===c?"":c,classNamePrefix:G.richtextEditor,viewContentOffsetInPX:8,onLabelClick:function(){null==u||u.chain().focus().run()}},e,{children:(0,S.jsx)(K.EditorContent,{className:"mdc-text-field__input",editor:u,innerRef:i})}))},Y=n(14),Q=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},J=function(e){return new Date(Math.round(1e3*e)).toISOString()},Z=function(e){return e instanceof Date?e.getTime()/1e3:e},ee={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,o,i=t.currency.format,a=null!==(n=null==i||null==(r=i.final.options)?void 0:r.currency)&&void 0!==n?n:"USD";return e===1/0?"Infinity "+a:e===-1/0?"- Infinity "+a:isNaN(e)?"unknown":new Intl.NumberFormat(oe.locales,s()({style:"currency"},null!==(o=null==i?void 0:i.final.options)&&void 0!==o?o:{})).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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e);return o.substring(0,o.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e-60*new Date(1e3*e).getTimezoneOffset());return o.substring(0,o.lastIndexOf("."))}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;e-=60*new Date(1e3*e).getTimezoneOffset();var o=J(e);return o.substring(0,o.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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=J(e),i=o.indexOf("T");return-1===i?o:(o=o.substring(i+1,o.length-1),n.step&&n.step>=60&&n.step%60==0?o.substring(0,o.lastIndexOf(":")):o)}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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,s()({},t,{date:s()({},t.date,{useISOString:!1})}),n)}var r=Q(e);if("string"==typeof r)return r;var o=new Date(1e3*e),i=o.getHours(),a=o.getMinutes(),l=(i<10?"0":"")+String(i)+":"+(a<10?"0":"")+String(a);if(!(n.step&&n.step>=60&&n.step%60==0)){var u=o.getSeconds();return l+":"+(u<10?"0":"")+String(u)}return l}}},parse:function(e,t){var n=t.date.useISOString;if("string"==typeof(e=Z(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?J(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(oe.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"===oe.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(oe.locales,s()({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"===oe.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 te(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 ne(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)?ne(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 ne(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 re=function(e,t){var n,r,o,i,a,g,A=(0,y.useId)(),x=null!==(n=e.id)&&void 0!==n?n:A;(0,y.useEffect)((function(){if(Y.current){var e={},t=[];Ne.valid?(t.push("ariaErrormessage"),t.push("ariaInvalid")):(e.ariaErrormessage=x+"-error-message",e.ariaInvalid="true"),Ve?("search"!==Y.current.getAttribute("type")&&(e.role="searchbox"),e.ariaAutocomplete=Ne.searchSelection?"inline":"list"):(t.push("searchbox"),t.push("ariaAutocomplete")),Ne.showDeclaration?e.ariaDescribedby=x+"-declaration":t.push("ariaDescribedby");for(var n=s()({},e,Ne.inputProps||{}),r=0,o=Object.entries(n);r<o.length;r++){var i=o[r],a=i[0],l=i[1],u=(0,v.camelCaseToDelimited)(a);"boolean"==typeof l?l?Y.current.setAttribute(u,""):Y.current.removeAttribute(u):Y.current.setAttribute(u,String(l))}for(var c=0,d=t;c<d.length;c++){var f=d[c],p=(0,v.camelCaseToDelimited)(f);Y.current.hasAttribute(p)&&Y.current.removeAttribute(p)}}})),(0,y.useEffect)((function(){if(Ye){var e,t=null==(e=Z.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,y.useEffect)((function(){if(Ye){var e,t=null==(e=Z.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var n=function(e){Ne.disabled&&e.stopPropagation()};return t.addEventListener("keydown",n,!0),function(){t.removeEventListener("keydown",n,!0)}}}})),(0,y.useEffect)((function(){Ne.triggerInitialPropertiesConsolidation&&M(new Event("genericInitialPropertiesConsolidation"))}),[]);var I=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),K((0,C.parseValue)(Ne,Ne.default,oe.transformer,!Me&&Ne.model.trim)))},n=(0,v.equals)(Ne.value,Ne.default);return{icon:(0,S.jsx)(b(),{in:!n,children:R&&!R.isDummy&&k?(0,S.jsx)(R,{animation:k,reverse:!0}):(0,S.jsx)(d.Icon,{icon:"clear"})}),"aria-hidden":n?"true":"false",onClick:t,onKeyDown:t,tabIndex:n?-1:0,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var r=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),de((function(t){return void 0===t&&(t=Ne.hidden),Ne.hidden=!t,M(e),Ne.hidden})))};return{icon:R&&!R.isDummy&&N?(0,S.jsx)(R,{animation:N,reverse:!Ne.hidden}):Ne.hidden?"lock_open":"lock",onClick:r,onKeyDown:r,strategy:"component",tooltip:(Ne.hidden?"Show":"Hide")+" password"}}return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.tabIndex=-1,e["aria-hidden"]=!0)),e},T=function(e){var t,n;return"string"===e.type?e.hidden?"password":Ve?"search":"text":null!==(t=null==(n=Ee[e.type])?void 0:n.type)&&void 0!==t?t:e.type},P=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),"boolean"==typeof t?n?(0,S.jsx)(b(),{in:t,children:e}):t?e:"":n?(0,S.jsx)(b(),s()({},t,{children:e})):t.in?e:""},w=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=s()({},e)).tooltip;var n=s()({},e);e.strategy="component",e.icon=(0,S.jsx)(O.default,{options:t,children:(0,S.jsx)(d.Icon,{icon:n})})}return e},L=function(e){var t=(0,C.getConsolidatedProperties)(function(e){var t,n=(0,C.mapPropertiesIntoModel)(e,oe.defaultProperties.model);return n.model.value=(0,C.parseValue)(n,n.model.value,Ee,!Me&&(null==(t=e.model)?void 0:t.trim)),F(n,n.model.state),n}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,C.formatValue)(t,t.value,Ee,!t.focused)),t},M=function(e){(0,v.extend)(!0,Ne,L(Ne)),(0,C.triggerCallbackIfExists)(Ne,"change",Me,Ne,e)},K=function(e,t){var n;if(void 0===t&&(t=-1),_e(!0),(0,v.isObject)(e)){var r=e.target||e.detail;Ne.value=r?void 0===r.value?null:r.value:e}else Ne.value=e;var o=function(){De((function(e){if(!Re&&e.representation===Ne.representation&&!Ne.suggestionCreator&&-1===t)return e;var r=s()({},e,{representation:Ne.representation});if(!Me&&(0,v.equals)(e.value,Ne.value))return r;r.value=Ne.value;var o=!1;return e.modelState.pristine&&(Ne.dirty=!0,Ne.pristine=!1,o=!0),M(n),F(Ne,e.modelState)&&(o=!0),(0,C.triggerCallbackIfExists)(Ne,"changeValue",Me,Ne.value,n,Ne),o&&Ne.model.state&&(r.modelState=Ne.model.state,(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,n,Ne)),(Ye||-1!==t)&&(0,C.triggerCallbackIfExists)(Ne,"select",Me,n,Ne),r}))},i=!Me&&Ne.model.trim;if(Ne.representation=-1!==t?We[t]:"string"==typeof Ne.value?Ne.value:(0,C.formatValue)(Ne,Ne.value,Ee),Ve)if(Ne.suggestionCreator){var a=new AbortController,l=function(e){if(!a.signal.aborted){if(Ae((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===t){var n=(0,C.getValueFromSelection)(Ne.representation,(0,C.normalizeSelection)(e));null!==n||Ne.searchSelection?Ne.value=n:Ne.value=(0,C.parseValue)(Ne,Ne.representation,Ee,i)}o()}},u=Ne.suggestionCreator({abortController:a,properties:Ne,query:Ne.representation});null!=u&&u.then?(Ae((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a})),De((function(e){return s()({},e,{representation:Ne.representation})})),u.then(l,(function(){}))):l(u)}else{if(-1===t){var c=(0,C.getValueFromSelection)(Ne.representation,Ie);null!==c||Ne.searchSelection?Ne.value=c:Ne.value=(0,C.parseValue)(Ne,Ne.representation,Ee,i)}o()}else Ne.value=(0,C.parseValue)(Ne,Ne.value,Ee,i),o()},V=function(e){z(e),(0,C.triggerCallbackIfExists)(Ne,"click",Me,e,Ne),$(e)},q=function(e){(0,C.triggerCallbackIfExists)(Ne,"focus",Me,e,Ne),$(e)},H=function(e){e.code&&(z(e),(0,C.triggerCallbackIfExists)(Ne,"keyUp",Me,e,Ne))},z=function(e){(0,C.triggerCallbackIfExists)(Ne,"selectionChange",Me,e,Ne)},$=function(e){De((function(t){var n=!1;t.modelState.focused||(Ne.focused=!0,n=!0),t.modelState.untouched&&(Ne.touched=!0,Ne.untouched=!1,n=!0);var r=t;return n&&(M(e),r=s()({},t,{modelState:Ne.model.state}),(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,e,Ne)),(0,C.triggerCallbackIfExists)(Ne,"touch",Me,e,Ne),r}))},G=(0,y.useRef)(null),Y=(0,y.useRef)(null),Q=(0,y.useRef)(null),J=(0,y.useRef)(null),Z=(0,y.useRef)(null),ee=(0,C.translateKnownSymbols)(e),ne=(0,y.useState)({end:0,start:0}),re=ne[0],ie=ne[1],ae=(0,y.useState)({editorIsActive:ee.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),se=ae[0],le=ae[1],ue=(0,y.useState)(),ce=ue[0],de=ue[1],fe=(0,y.useState)(!1),pe=fe[0],_e=fe[1],he=(0,y.useState)(!1),me=he[0],ve=he[1],ye=(0,C.determineInitialValue)(ee,oe.defaultProperties.model.default);ye instanceof Date&&(ye=ye.getTime()/1e3);var ge=(0,v.extend)(!0,(0,v.copy)(oe.defaultProperties),ee),be=ge.type||(null==(r=ge.model)?void 0:r.type)||"string",Ee=ge.transformer?s()({},oe.transformer,((o={})[be]=(0,v.extend)(!0,(0,v.copy)(oe.transformer[be])||{},ge.transformer),o)):oe.transformer,Oe=(0,y.useState)(),Ce=Oe[0],Ae=Oe[1];(ge.selection||null!=(i=ge.model)&&i.selection)&&(Ce=ge.selection||(null==(a=ge.model)?void 0:a.selection));var xe,Ie=Ce instanceof AbortController?[]:(0,C.normalizeSelection)(Ce,ge.labels),Te=Ce instanceof AbortController?[[],[]]:(0,C.getLabelAndValues)(Ie),Se=Te[0],Pe=Te[1],we=(0,y.useState)((function(){return{modelState:s()({},oe.defaultModelState),representation:(0,C.determineInitialRepresentation)(ge,oe.defaultProperties,ye,Ee,Ie),value:ye}})),Le=we[0],De=we[1],Me=!ge.enforceUncontrolled&&(void 0!==(null==(g=ee.model)?void 0:g.value)||void 0!==ee.value)&&Boolean(ee.onChange||ee.onChangeValue),Re=Me&&void 0!==ee.representation;null!==ge.cursor&&"object"==typeof ge.cursor||(ge.cursor={}),void 0===ge.cursor.end&&(ge.cursor.end=re.end),void 0===ge.cursor.start&&(ge.cursor.start=re.start),void 0===ge.editorIsActive&&(ge.editorIsActive=se.editorIsActive),void 0===ge.hidden&&(ge.hidden=ce),void 0===ge.representation&&(ge.representation=Le.representation),void 0===ge.showDeclaration&&(ge.showDeclaration=me),(0,C.deriveMissingPropertiesFromState)(ge,Le),void 0===ge.value?void 0===ge.representation&&void 0===(null==(xe=ge.model)?void 0:xe.value)&&(ge.representation=Le.representation):Re||ge.value===Le.value||(ge.representation=void 0);var Ne=L(ge);void 0===Ne.hidden&&(Ne.hidden=Ne.name.startsWith("password")),Ne.cursor&&!(0,v.equals)(Ne.cursor,re)&&ie(Ne.cursor),Ne.editorIsActive!==se.editorIsActive&&le(s()({},se,{editorIsActive:Ne.editorIsActive})),Ne.hidden!==ce&&de(Ne.hidden),Ne.showDeclaration!==me&&ve(Ne.showDeclaration);var ke={modelState:Ne.model.state,representation:Ne.representation,value:Ne.value||null};(Me||(0,v.equals)(Ne.value,Le.value)&&Ne.representation===Le.representation)&&(0,v.equals)(Ne.model.state,Le.modelState)||De(ke),Me&&(De=(0,C.wrapStateSetter)(De,ke)),(0,y.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ne.model.state},n=te(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=n()).done;){var r,o=e.value;Object.prototype.hasOwnProperty.call(ee,o)||(t[o]=null!==(r=Ne[o])&&void 0!==r&&r)}return Re||(t.representation=Ne.representation),Me||(t.value=Ne.value),{properties:Ne,references:{foundationReference:G,inputReference:Y,suggestionMenuAPIReference:Q,suggestionMenuFoundationReference:J,wrapperReference:Z},state:t}}));var je={id:x,onFocus:function(e){_e(!0),q(e)},placeholder:Ne.placeholder},Be={disabled:Ne.disabled,helpText:{children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b(),{in:Ne.selectableEditor&&"string"===Ne.type&&"plain"!==Ne.editor,children:(0,S.jsx)(f.IconButton,{icon:{"aria-label":Ne.editorIsActive?"plain":Ne.editor.startsWith("code")?"code":"richtext",icon:Ne.editorIsActive?"subject":Ne.editor.startsWith("code")?"code":"text_format",onClick:function(e){e.preventDefault(),e.stopPropagation(),le((function(t){var n=t.editorIsActive;return Ne.editorIsActive=!n,M(e),(0,C.triggerCallbackIfExists)(Ne,"changeEditorIsActive",Me,Ne.editorIsActive,e,Ne),{editorIsActive:Ne.editorIsActive,selectionIsUnstable:!0}}))}}})}),(0,S.jsx)(b(),{in:Boolean(Ne.declaration),children:(0,S.jsx)(f.IconButton,{"aria-expanded":Ne.showDeclaration?"true":"false","aria-label":"declaration",checked:Ne.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:function(e){ve((function(t){return Ne.showDeclaration=!t,M(e),(0,C.triggerCallbackIfExists)(Ne,"changeShowDeclaration",Me,Ne.showDeclaration,e,Ne),Ne.showDeclaration}))}})}),(0,S.jsx)(b(),{id:x+"-declaration",in:Ne.showDeclaration,children:Ne.declaration}),(0,S.jsx)(b(),{in:!Ne.showDeclaration&&Ne.invalid&&Ne.showValidationState&&(Ne.showInitialValidationState||Ne.visited),children:(0,S.jsx)(m.Theme,{use:"error",wrap:!0,children:(0,S.jsx)("span",{id:x+"-error-message",children:(0,C.renderMessage)(Ne.invalidMaximum&&Ne.maximumText||Ne.invalidMaximumLength&&Ne.maximumLengthText||Ne.invalidMinimum&&Ne.minimumText||Ne.invalidMinimumLength&&Ne.minimumLengthText||Ne.invalidInvertedPattern&&Ne.invertedPatternText||Ne.invalidPattern&&Ne.patternText||Ne.invalidRequired&&Ne.requiredText,s()({formatValue:function(e){return(0,C.formatValue)(Ne,e,Ee)}},Ne))})})})]}),persistent:Boolean(Ne.declaration)},invalid:Ne.invalid&&Ne.showValidationState&&(Ne.showInitialValidationState||Ne.visited),label:Ne.description||Ne.name,outlined:Ne.outlined};Ne.icon&&(Be.icon=w(I(Ne.icon)));var Fe=!Ne.selection&&"string"===Ne.type&&Ne.editorIsActive&&(Ne.editor.startsWith("code")||Ne.editor.startsWith("richtext(")),Ue=[],We=[],Ke=[],Ve=Boolean(Ne.suggestionCreator||Se.length&&(Ne.searchSelection||Ne.suggestSelection));if(Ve&&Se.length){Ne.suggestSelection=!Ne.searchSelection;for(var qe,He=0,ze=te(Se);!(qe=ze()).done;){var $e=qe.value;if((0,v.isFunction)(Ne.children)){var Ge=Ne.children({index:He,normalizedSelection:Ie,properties:Ne,query:Ne.representation,suggestion:$e,value:Pe[He]});Ge&&(Ue.push((0,S.jsx)(p.MenuItem,{className:j.textInputSuggestionsSuggestion,children:Ge},He)),We.push($e),Ke.push(Pe[He]))}else if(!Ne.representation||Ne.suggestionCreator||W($e,Ne.representation)){var Xe;Ue.push((0,S.jsx)(p.MenuItem,{className:j.textInputSuggestionsSuggestion,children:(0,v.mark)($e,(null==(Xe=Ne.representation)?void 0:Xe.split(" "))||"",{marker:function(e){return(0,S.jsx)("span",{className:j.textInputSuggestionsSuggestionMark,children:e})},normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,S.jsx)("span",{children:e},t)}))},He)),We.push($e),Ke.push(Pe[He])}He+=1}}var Ye=(Boolean(Ie)||Boolean(Ne.labels))&&!Ve,Qe={};"number"===Ne.type?(Qe.step=Ne.step,Ne.maximum!==1/0&&(Qe.max=Ne.maximum),Ne.minimum!==-1/0&&(Qe.min=Ne.minimum)):"string"===Ne.type?(Ne.maximumLength>=0&&Ne.maximumLength!==1/0&&(Qe.maxLength=Ne.maximumLength),Ne.minimumLength>0&&(Qe.minLength=Ne.minimumLength),"plain"!==Ne.editor&&(Qe.rows=Ne.rows)):["date","date-local","datetime","datetime-local","time","time-local"].includes(Ne.type)&&(Qe.step=Ne.step,Ne.maximum!==1/0&&(Qe.max=(0,C.formatValue)(Ne,Ne.maximum,Ee)),Ne.minimum!==-1/0&&(Qe.min=(0,C.formatValue)(Ne,Ne.minimum,Ee)));var Je=Ne.editor.startsWith("code")?D:X,Ze={};if(Fe)if(Ne.editor.startsWith("code(")&&Ne.editor.endsWith(")")){var et=Ne.editor.substring(5,Ne.editor.length-1);et&&(Ze.editor={},l.javascript&&["js","script","javascript"].includes(et.toLowerCase())?Ze.editor.mode=(0,l.javascript)():u.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(et.toLowerCase())&&(Ze.editor.mode=(0,u.css)()))}else Ze.editor=B;return(0,S.jsx)(E.default,{strict:oe.strict,themeConfiguration:Ne.themeConfiguration,tooltip:Ne.tooltip,children:(0,S.jsxs)("div",s()({className:[j.textInput].concat(Ne.className).join(" "),onBlur:function(e){De((function(t){var n;if(e.relatedTarget&&null!=(n=Z.current)&&n.contains(e.relatedTarget))return t;_e(!1);var r=!1,o=!1;if(t.modelState.focused&&(Ne.focused=!1,r=!0,o=!0),t.modelState.visited||(Ne.visited=!0,r=!0,o=!0),!Ve||Ne.suggestSelection){var i=(0,C.getValueFromSelection)(Ne.representation,Ie);null===i?(Ne.value=(0,C.parseValue)(Ne,Ne.value,Ee,Ne.model.trim),Ne.representation=(0,C.formatValue)(Ne,Ne.value,Ee)):Ne.value=i}return(0,v.equals)(t.value,Ne.value)&&t.representation===Ne.representation||(r=!0),r&&M(e),(0,v.equals)(t.value,Ne.value)||(0,C.triggerCallbackIfExists)(Ne,"changeValue",Me,Ne.value,e,Ne),o&&(0,C.triggerCallbackIfExists)(Ne,"changeState",Me,Ne.model.state,e,Ne),(0,C.triggerCallbackIfExists)(Ne,"blur",Me,e,Ne),r?{modelState:Ne.model.state,representation:Ne.representation,value:Ne.value}:t}))},onKeyDown:function(e){var t;!Ne.disabled&&Ve&&"ArrowDown"===e.code&&e.target===Y.current&&(null==(t=Q.current)||t.focusItemAtIndex(0)),(Ye||"string"===Ne.type&&"plain"!==Ne.editor)&&U(e),(0,C.triggerCallbackIfExists)(Ne,"keyDown",Me,e,Ne)},ref:Z,style:Ne.styles},Ve?{role:"search"}:{},{children:[P((0,S.jsx)(_.Select,s()({},je,Be,{enhanced:!0,foundationRef:G,inputRef:Y,onChange:K,onKeyDown:function(e){Ne.disabled||"Tab"===e.code||e.preventDefault()},options:Ie,rootProps:s()({name:Ne.name,onClick:V},Ne.rootProps),value:String(Ne.value)},Ne.inputProperties)),Ye),P((0,S.jsx)(Je,s()({},je,Be,Qe,{align:Ne.align,characterCount:"number"==typeof Ne.maximumLength&&!isNaN(Ne.maximumLength)&&Ne.maximumLength>=0,foundationRef:G,inputRef:Y,onChange:K,ripple:Ne.ripple,rootProps:s()({name:Ne.name,onClick:V,onKeyUp:H,tabIndex:Ne.disabled?"0":"-1"},Ne.rootProps),trailingIcon:w(I(Ne.trailingIcon)),type:T(Ne),value:Ne.representation},Ze,Ne.inputProperties)),Fe,Ne.editor.startsWith("code")),P((0,S.jsxs)("div",{children:[Ve?(0,S.jsx)(p.MenuSurfaceAnchor,{onKeyDown:U,children:Ce instanceof AbortController?(0,S.jsx)(p.MenuSurface,{anchorCorner:"bottomLeft",className:j.textInputSuggestions+" "+j.textInputSuggestionsPending,open:!0,children:(0,S.jsx)(c.CircularProgress,{size:"large"})}):(0,S.jsx)(p.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){Q.current=e},className:j.textInputSuggestions,focusOnOpen:!1,foundationRef:J,onFocus:q,onSelect:function(e){K(Ke[e.detail.index],e.detail.index),_e(!1)},open:Boolean(We.length)&&pe&&!(1===We.length&&We[0]===Ne.representation),children:Ue})}):"",(0,S.jsx)(h.TextField,s()({},je,Be,Qe,{align:Ne.align,characterCount:"number"==typeof Ne.maximumLength&&!isNaN(Ne.maximumLength)&&Ne.maximumLength>=0,foundationRef:G,inputRef:Y,onChange:K,ripple:Ne.ripple,rootProps:s()({name:Ne.name,onClick:V,onKeyUp:H,tabIndex:Ne.disabled?"0":"-1"},Ne.rootProps),textarea:"string"===Ne.type&&"plain"!==Ne.editor,trailingIcon:w(I(Ne.trailingIcon)),type:T(Ne),value:Ne.representation},Ne.inputProperties))]}),!(Fe||Ye),Ne.editor.startsWith("code"))]}))})};re.displayName="TextInput";var oe=(0,y.memo)((0,y.forwardRef)(re));oe.wrapped=re,oe.webComponentAdapterWrapped="react",oe.defaultModelState=Y._I,oe.defaultProperties=s()({},Y.ld,{cursor:void 0,model:s()({},Y.ld.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),oe.locales=v.LOCALES,oe.propTypes=Y.t5,oe.renderProperties=Y.pF,oe.strict=!1,oe.transformer=ee;var ie=oe},function(e){e.exports=b},function(e,t,n){n.d(t,{WrapThemeProvider:function(){return i}});var r=n(5),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=C},function(e,t,n){n.d(t,{_I:function(){return c},ld:function(){return f},pF:function(){return u},t5:function(){return l},v8:function(){return d}});var r=n(0),o=n.n(r),i=n(4),a=n(8),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]),hidden:(0,i.oneOfType)([i.boolean,i.symbol]),icon:(0,i.oneOfType)([i.string,i.object]),inputProps: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)(i.string)),(0,i.arrayOf)(i.string),i.object]),maximum:(0,i.oneOfType)([i.number,i.string]),maximumLengthText:i.string,maximumText:i.string,minimum:(0,i.oneOfType)([i.number,i.string]),minimumLengthText:i.string,minimumText:i.string,onBlur:i.func,onChangeEditorIsActive:i.func,onKeyDown:i.func,onKeyUp:i.func,onSelect:i.func,onSelectionChange:i.func,outlined:i.boolean,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,trailingIcon:i.any,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,{g:function(){return i}});var r=n(3),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){e.exports=n},function(e){e.exports=m},function(e){e.exports=j},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=a},function(e){e.exports=i},function(e){e.exports=f},function(e){e.exports=p},function(e){e.exports=v},function(e){e.exports=o},function(e){e.exports=l},function(e){e.exports=I},function(e){e.exports=u},function(e){e.exports=P},function(e){e.exports=N},function(e){e.exports=O},function(e){e.exports=h},function(e){e.exports=y},function(e){e.exports=x},,function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=q},function(e){e.exports=s}],A={};function L(e){var t=A[e];if(void 0!==t)return t.exports;var n=A[e]={exports:{}};return _[e](n,n.exports,L),n.exports}L.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return L.d(t,{a:t}),t},L.d=function(e,t){for(var n in t)L.o(t,n)&&!L.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},L.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},L.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var D={};L.r(D),L.d(D,{CSS_CLASS_NAMES:function(){return fe},EMBEDABLE_TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return he},FileInput:function(){return Ae},FileInputInner:function(){return Ce},IMAGE_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return pe},TEXT_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return _e},VIDEO_CONTENT_TYPE_REGULAR_EXPRESSION:function(){return me},default:function(){return xe},deriveBase64String:function(){return be},determineRepresentationType:function(){return ye},determineValidationState:function(){return ge},preserveStaticFileBaseNameInputGenerator:function(){return ve},readBinaryDataIntoText:function(){return Ee}});var M=L(37),R=L.n(M),k=L(0),B=L.n(k),F=L(38),U=L.n(F),W=L(35),K=L(2),V=L(3),H=L(18),z=L.n(H),$=L(39),G=L(40),X=L(19),Y=L(5),Q=L(11),J=L(10),Z=L(7),ee=L(9),te=L(4),ne=L(14),re=L(8),oe={contentTypePattern:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),invertedContentTypePattern:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),maximumSize:te.number,minimumSize:te.number},ie=B()({},re.modelPropertyTypes,oe,{fileName:(0,te.shape)(ne.t5)}),ae=B()({},re.modelStatePropertyTypes,{invalidContentTypePattern:(0,te.oneOfType)([te.boolean,te.symbol]),invalidInvertedContentTypePattern:(0,te.oneOfType)([te.boolean,te.symbol]),invalidMaximumSize:(0,te.oneOfType)([te.boolean,te.symbol]),invalidMinimumSize:(0,te.oneOfType)([te.boolean,te.symbol]),invalidName:(0,te.oneOfType)([te.boolean,te.symbol])}),se=B()({},re.propertyTypes,oe,ae,{children:te.func,contentTypePatternText:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),invertedContentTypePatternText:(0,te.oneOfType)([(0,te.arrayOf)((0,te.oneOfType)([te.object,te.string])),te.object,te.string]),maximumSizeText:te.string,minimumSizeText:te.string,model:(0,te.shape)(ie),deleteButton:(0,te.oneOfType)([te.object,te.string]),downloadButton:(0,te.oneOfType)([te.object,te.string]),editButton:(0,te.oneOfType)([te.object,te.string]),newButton:(0,te.oneOfType)([te.object,te.string]),encoding:te.string,generateFileNameInputProperties:te.func,onBlur:te.func,outlined:te.boolean}),le=B()({},re.defaultModelState,{invalidContentTypePattern:!1,invalidInvertedContentTypePattern:!1,invalidMaximumSize:!1,invalidMinimumSize:!1,invalidName:!1}),ue=B()({},re.defaultModel,{contentTypePattern:/^.+\/.+$/,invertedContentTypePattern:void 0,fileName:B()({},ne.v8,{maximumLength:1024,name:"Name",pattern:/^[^/]+$/}),maximumSize:1/0,minimumSize:0,state:le}),ce=B()({},ne.ld,{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 ce.model;var de=B()({},re.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:K.identity,media:{sixteenByNine:!0},model:B()({},ue),sourceToBlobOptions:{endings:"transparent",type:"text/plain"},hashingConfiguration:{binaryString:!1,prefix:"",readChunkSizeInByte:2097152}}),fe={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",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,_e=/^(?: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,ve=function(e,t){var n,r=t.name,o=t.value;return B()({},e,{disabled:!0,value:r+(null!=o&&null!=(n=o.name)&&n.includes(".")?o.name.substring(o.name.lastIndexOf(".")).toLowerCase():"")})},ye=function(e){return e=e.replace(/; *charset=.+$/,""),_e.test(e)?"text":he.test(e)?"embedableText":pe.test(e)?"image":me.test(e)?"video":"binary"},ge=function(e,t,n){return(0,ee.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,W.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)}))},Oe=L(1),Ce=function(e,t){var n,r,o,i,a,s,l,u=(0,V.useId)(),c=null!==(n=e.id)&&void 0!==n?n:u,d=function(e){var t=(0,ee.mapPropertiesIntoModel)(e,Ae.defaultProperties.model);return ge(t,!1,t.model.state),(0,ee.getConsolidatedProperties)(t)},f=function(e){var t;null!=(t=y.current)&&t.properties&&(S.model.fileName=y.current.properties.model);var n=d(S);delete S.model.value,delete S.value,S.styles=(0,K.copy)(S.styles),(0,K.extend)(!0,S,n),(0,ee.triggerCallbackIfExists)(S,"change",T,S,e)},p=function(e,t,n,r){if(void 0===r&&(r=!1),S.model.mutable&&S.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];S.value={blob:a,name:a.name},S.value.name=(null==(i=S.generateFileNameInputProperties(B()({disabled:S.disabled,value:a.name},ce,{model:S.model.fileName,onChangeValue:p,default:S.value.name}),S))?void 0:i.value)||a.name}I((function(n){var o;if(void 0===e?S.value=null:"string"==typeof e?S.value=B()({},n.value,{name:e}):"string"!=typeof e.source&&"string"!=typeof e.url||(S.value=r?B()({},n.value,e):e),(0,K.equals)(n.value,S.value))return n;var i=!1,a=B()({},n,{value:S.value});return n.modelState.pristine&&(S.dirty=!0,S.pristine=!1,i=!0),f(t),ge(S,(null==(o=y.current)||null==(o=o.properties)?void 0:o.invalid)||!1,n.modelState)&&(i=!0),(0,ee.triggerCallbackIfExists)(S,"changeValue",T,S.value,t,S),i&&(a.modelState=S.model.state,(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,t,S)),r&&(a.attachBlobProperty=!0),a}))}},_=function(e){I((function(t){var n=!1;t.modelState.focused||(S.focused=!0,n=!0),t.modelState.untouched&&(S.touched=!0,S.untouched=!1,n=!0);var r=t;return n&&(f(e),r=B()({},t,{modelState:S.model.state}),(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,e,S)),(0,ee.triggerCallbackIfExists)(S,"touch",T,e,S),r}))},h=(0,V.useRef)(null),m=(0,V.useRef)(null),v=(0,V.useRef)(null),y=(0,V.useRef)(null),g=(0,V.useRef)(null),b=(0,V.useRef)(null),E=(0,ee.translateKnownSymbols)(e),O=(0,ee.determineInitialValue)(E,Ae.defaultProperties.model.default),C=(0,K.extend)(!0,(0,K.copy)(Ae.defaultProperties),E),A=(0,V.useState)({attachBlobProperty:!1,modelState:B()({},Ae.defaultModelState),value:O}),x=A[0],I=A[1],T=!C.enforceUncontrolled&&(void 0!==(null==(r=E.model)?void 0:r.value)||void 0!==E.value)&&Boolean(E.onChange||E.onChangeValue);(0,ee.deriveMissingPropertiesFromState)(C,x);var S=d(C);x.attachBlobProperty&&x.value&&S.value&&(S.value=(0,K.extend)(!0,x.value,S.value));var P={attachBlobProperty:!1,modelState:S.model.state,value:S.value};!x.attachBlobProperty&&(T||(0,K.equals)(S.value,x.value))&&(0,K.equals)(S.model.state,x.modelState)||I(P),T&&(I=(0,ee.wrapStateSetter)(I,P)),(0,V.useImperativeHandle)(t,(function(){return{properties:S,references:{deleteButtonReference:h,downloadLinkReference:m,fileInputReference:v,iFrameReference:b,nameInputReference:y,uploadButtonReference:g},state:B()({modelState:S.model.state},T?{}:{value:S.value})}})),(0,V.useEffect)((function(){R()(U().mark((function e(){var t,n,r,o,i,a,s,l,u,c,d,f,_,h;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},null==(t=S.value)||!t.source){e.next=16;break}if(S.value.blob){e.next=6;break}null!=(r=S.value.url)&&r.startsWith("data:")?n.blob=(0,W.dataURLToBlob)(S.value.url):S.sourceToBlobOptions&&(n.blob=new Blob([S.value.source],S.sourceToBlobOptions)),e.next=13;break;case 6:if(S.value.url){e.next=13;break}return o=w||"text/plain",e.t0="data:"+o+";charset="+S.encoding+";base64,",e.next=11,be(S.value);case 11:e.t1=e.sent,n.url=e.t0+e.t1;case 13:S.value.hash||(n.hash=S.hashingConfiguration.prefix+(0,$.hash)(S.value.source)),e.next=48;break;case 16:if(!(null!=(i=S.value)&&i.blob&&S.value.blob instanceof Blob)){e.next=23;break}return l=S.value.blob,e.next=20,"text"===L?Ee(l,S.encoding):be(S.value);case 20:n.source=e.sent,e.next=38;break;case 23:if(null==(a=S.value)||!a.url){e.next=38;break}if(!S.value.url.startsWith("data:")){e.next=28;break}e.t2=(0,W.dataURLToBlob)(S.value.url),e.next=31;break;case 28:return e.next=30,fetch(S.value.url);case 30:e.t2=e.sent.blob();case 31:return e.next=33,e.t2;case 33:if(l=e.sent,"text"!==L){e.next=38;break}return e.next=37,Ee(l,S.encoding);case 37:n.source=e.sent;case 38:if(null!=(s=S.value)&&s.hash||!l){e.next=48;break}return u=0,c=S.hashingConfiguration.readChunkSizeInByte,d=Math.ceil(l.size/c),f=new $.ArrayBuffer,_=new FileReader,e.next=46,new Promise((function(e,t){_.onload=function(t){var r;console.debug("Read chunk "+String(u+1)+" of "+String(d)+"."),f.append(null==(r=t.target)?void 0:r.result),++u<d?n():e(f.end(S.hashingConfiguration.binaryString))},_.onerror=t;var n=function(){var e=u*c,t=e+c>=l.size?l.size:e+c;_.readAsArrayBuffer(l.slice(e,t))};n()}));case 46:h=e.sent,n.hash=S.hashingConfiguration.prefix+h;case 48:Object.keys(n).length>0&&p(n,void 0,void 0,!0);case 49:case"end":return e.stop()}}),e)})))().catch((function(e){console.warn(e)}))})),(0,V.useEffect)((function(){S.triggerInitialPropertiesConsolidation&&f()}),[]);var w=null!==(o=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}(S))&&void 0!==o?o:"application/binary",L=w?ye(w):"binary",D=S.invalid&&S.showValidationState&&(S.showInitialValidationState||S.visited),M=S.triggerInitialPropertiesConsolidation;return(0,Oe.jsx)(Z.WrapConfigurations,{strict:Ae.strict,themeConfiguration:S.themeConfiguration,tooltip:S.tooltip,children:(0,Oe.jsxs)(G.Card,{className:[fe.fileInput].concat(S.className).join(" "),onBlur:function(e){I((function(t){var n=!1;return t.modelState.focused&&(S.focused=!1,n=!0),t.modelState.visited||(S.visited=!0,n=!0),n&&(f(e),(0,ee.triggerCallbackIfExists)(S,"changeState",T,S.model.state,e,S)),(0,ee.triggerCallbackIfExists)(S,"blur",T,e,S),n?B()({},t,{modelState:S.model.state}):t}))},onClick:function(e){(0,ee.triggerCallbackIfExists)(S,"click",T,e,S),_(e)},onFocus:function(e){(0,ee.triggerCallbackIfExists)(S,"focus",T,e,S),_(e)},style:S.styles,children:[(0,Oe.jsxs)(G.CardPrimaryAction,{children:[null!=(i=S.value)&&i.url?"image"===L?(0,Oe.jsx)(G.CardMedia,B()({},S.media,{style:{backgroundImage:"url("+S.value.url+")"}})):"video"===L?(0,Oe.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,children:(0,Oe.jsx)("source",{src:S.value.url,type:w})}):"embedableText"===L?(0,Oe.jsx)("div",{className:[fe.fileInputIframeWrapper].concat(["text/html","text/plain"].includes(w)?fe.fileInputIframeWrapperPadding:[]).join(" "),children:(0,Oe.jsx)("iframe",{ref:b,style:{border:0,overflow:"hidden"},frameBorder:"0",scrolling:"no",src:S.value.url})}):null!=(a=S.value)&&a.source&&"text"===L?(0,Oe.jsx)("pre",{className:fe.fileInputTextRepresentation,children:S.value.source}):"":null!=(s=S.value)&&s.blob&&S.value.blob instanceof Blob?(0,Oe.jsx)(X.CircularProgress,{size:"large"}):"",(0,Oe.jsxs)("div",{className:fe.fileInputInfo,children:[(0,Oe.jsx)(Q.Typography,{tag:"h2",use:"headline6",children:D?(0,Oe.jsx)(Y.Theme,{use:"error",children:S.description?S.description:S.name}):S.description?S.description:S.name}),(0,Oe.jsx)(z(),{in:D||Boolean(S.declaration),children:(0,Oe.jsxs)("div",{className:fe.fileInputInfoBody,children:[S.declaration?(0,Oe.jsx)(Q.Typography,{style:{marginTop:"-1rem"},tag:"h3",theme:"textSecondaryOnBackground",use:"subtitle2",children:D?(0,Oe.jsx)(Y.Theme,{use:"error",children:S.declaration}):S.declaration}):"",(0,Oe.jsx)(Y.Theme,{use:"error",wrap:!0,children:(0,Oe.jsx)("span",{id:c+"-error-message",children:(0,ee.renderMessage)(S.invalidContentTypePattern&&S.contentTypePatternText||S.invalidInvertedContentTypePattern&&S.invertedContentTypePatternText||S.invalidMaximumSize&&S.maximumSizeText||S.invalidMinimumSize&&S.minimumSizeText||S.invalidRequired&&S.requiredText,S)})})]})}),S.value?(0,Oe.jsx)(J.default,B()({ref:y},S.generateFileNameInputProperties(B()({disabled:S.disabled,value:null==(l=S.value)?void 0:l.name},(0,K.mask)(ce,{exclude:Object.keys(S.model.fileName)}),{default:S.value.name,model:S.model.fileName,onChangeValue:p,triggerInitialPropertiesConsolidation:M}),S))):"",S.children?S.children({declaration:S.declaration,invalid:D,properties:S,value:S.value}):""]}),(0,Oe.jsx)("input",{disabled:S.disabled,className:fe.fileInputNative,id:c,name:S.name,onChange:p,ref:v,type:"file"})]}),!S.disabled||S.value?(0,Oe.jsx)(G.CardActions,{children:(0,Oe.jsxs)(G.CardActionButtons,{children:[S.disabled?"":(0,Oe.jsx)(G.CardActionButton,{onClick:function(){var e;null==(e=v.current)||e.click()},ref:g,ripple:S.ripple,children:S.value?S.editButton:S.newButton}),S.value?(0,Oe.jsxs)(Oe.Fragment,{children:[S.disabled?"":(0,Oe.jsx)(G.CardActionButton,{onClick:function(){p()},ref:h,ripple:S.ripple,children:S.deleteButton}),S.value.url?(0,Oe.jsx)(G.CardActionButton,{onClick:function(){var e;null==(e=m.current)||e.click()},ripple:S.ripple,children:(0,Oe.jsx)("a",B()({className:fe.fileInputDownload,download:S.value.name,href:S.value.url,ref:m,target:"_blank"},w?{type:w}:{},{children:S.downloadButton}))}):""]}):""]})}):""]})})};Ce.displayName="FileInput";var Ae=(0,V.memo)((0,V.forwardRef)(Ce));Ae.wrapped=Ce,Ae.webComponentAdapterWrapped="react",Ae.defaultModelState=le,Ae.defaultProperties=B()({},de,{model:B()({},de.model,{state:void 0,value:void 0}),value:void 0}),Ae.propTypes=se,Ae.renderProperties=["children","generateFileNameInputProperties"],Ae.strict=!1;var xe=Ae;return D}())},,,,,,,,,,,,,,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__51__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__52__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__53__}],__webpack_module_cache__={};function __nested_webpack_require_120224__(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_120224__),n.loaded=!0,n.exports}__nested_webpack_require_120224__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_120224__.d(t,{a:t}),t},__nested_webpack_require_120224__.d=function(e,t){for(var n in t)__nested_webpack_require_120224__.o(t,n)&&!__nested_webpack_require_120224__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_120224__.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_120224__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_120224__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_120224__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __nested_webpack_exports__={};__nested_webpack_require_120224__.r(__nested_webpack_exports__),__nested_webpack_require_120224__.d(__nested_webpack_exports__,{FileInput:function(){return _FileInput}});var clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_120224__(0),clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_120224__.n(clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_120224__(37),react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2___default=__nested_webpack_require_120224__.n(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_120224__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_120224__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_1__),_FileInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_1___default()(react_input_material_dist_components_FileInput__WEBPACK_IMPORTED_MODULE_2___default(),"FileInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumSize:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumSize:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidContentTypePattern:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidInvertedContentTypePattern:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidName:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_dist_property_types__WEBPACK_IMPORTED_MODULE_0__.string}});return __nested_webpack_exports__.default=_FileInput,__nested_webpack_exports__}()},module.exports=t(__webpack_require__(14),__webpack_require__(11),__webpack_require__(9),__webpack_require__(38),__webpack_require__(12),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(75),__webpack_require__(107),__webpack_require__(68),__webpack_require__(18),__webpack_require__(74),__webpack_require__(56),__webpack_require__(76),__webpack_require__(77),__webpack_require__(39),__webpack_require__(40),__webpack_require__(37),__webpack_require__(37),__webpack_require__(120),__webpack_require__(13),__webpack_require__(37),__webpack_require__(0),__webpack_require__(67),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(37),__webpack_require__(1),__webpack_require__(110),__webpack_require__(8),__webpack_require__(5),__webpack_require__(52),__webpack_require__(30),__webpack_require__(31),__webpack_require__(32))}],__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__(128);return __webpack_exports__}()}));