web-input-material 0.0.475 → 0.0.477

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("clientnode/property-types"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@codemirror/autocomplete"),require("@codemirror/commands"),require("@codemirror/lang-css"),require("@codemirror/lang-javascript"),require("@codemirror/language"),require("@codemirror/lint"),require("@codemirror/search"),require("@codemirror/state"),require("@codemirror/view"),require("@material/textfield"),require("@rmwc/circular-progress"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/typography"),require("@tiptap/react"),require("@tiptap/starter-kit"),require("clientnode"),require("react"),require("react-generic-animate"),require("react-generic-dummy"),require("react-generic-tools"),require("react-useanimations"),require("react-useanimations/lib/lock"),require("react-useanimations/lib/plusToX"),require("react/jsx-runtime"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"));else if("function"==typeof define&&define.amd)define(["clientnode/property-types","@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@codemirror/autocomplete","@codemirror/commands","@codemirror/lang-css","@codemirror/lang-javascript","@codemirror/language","@codemirror/lint","@codemirror/search","@codemirror/state","@codemirror/view","@material/textfield","@rmwc/circular-progress","@rmwc/icon","@rmwc/icon-button","@rmwc/menu","@rmwc/select","@rmwc/textfield","@rmwc/theme","@rmwc/typography","@tiptap/react","@tiptap/starter-kit","clientnode","react","react-generic-animate","react-generic-dummy","react-generic-tools","react-useanimations","react-useanimations/lib/lock","react-useanimations/lib/plusToX","react/jsx-runtime","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator","react-dom","react-dom/client","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper"],t);else{var r="object"==typeof exports?t(require("clientnode/property-types"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@codemirror/autocomplete"),require("@codemirror/commands"),require("@codemirror/lang-css"),require("@codemirror/lang-javascript"),require("@codemirror/language"),require("@codemirror/lint"),require("@codemirror/search"),require("@codemirror/state"),require("@codemirror/view"),require("@material/textfield"),require("@rmwc/circular-progress"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/typography"),require("@tiptap/react"),require("@tiptap/starter-kit"),require("clientnode"),require("react"),require("react-generic-animate"),require("react-generic-dummy"),require("react-generic-tools"),require("react-useanimations"),require("react-useanimations/lib/lock"),require("react-useanimations/lib/plusToX"),require("react/jsx-runtime"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper")):t(e["clientnode/property-types"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@codemirror/autocomplete"],e["@codemirror/commands"],e["@codemirror/lang-css"],e["@codemirror/lang-javascript"],e["@codemirror/language"],e["@codemirror/lint"],e["@codemirror/search"],e["@codemirror/state"],e["@codemirror/view"],e["@material/textfield"],e["@rmwc/circular-progress"],e["@rmwc/icon"],e["@rmwc/icon-button"],e["@rmwc/menu"],e["@rmwc/select"],e["@rmwc/textfield"],e["@rmwc/theme"],e["@rmwc/typography"],e["@tiptap/react"],e["@tiptap/starter-kit"],e.clientnode,e.react,e["react-generic-animate"],e["react-generic-dummy"],e["react-generic-tools"],e["react-useanimations"],e["react-useanimations/lib/lock"],e["react-useanimations/lib/plusToX"],e["react/jsx-runtime"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/regenerator"],e["react-dom"],e["react-dom/client"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__23__,__WEBPACK_EXTERNAL_MODULE__24__,__WEBPACK_EXTERNAL_MODULE__25__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__37__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__38__,__WEBPACK_EXTERNAL_MODULE__39__,__WEBPACK_EXTERNAL_MODULE__40__,__WEBPACK_EXTERNAL_MODULE__41__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__6__,__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,__webpack_require__){var __dirname="/",e,t,r,n,i,o,s,a,l,p,c,u;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;module.exports=(e=__webpack_require__(2),t=__webpack_require__(12),r=__webpack_require__(4),n=__webpack_require__(5),i=__webpack_require__(6),o=__webpack_require__(0),s=__webpack_require__(3),a=__webpack_require__(13),l=__webpack_require__(14),p=__webpack_require__(15),c=__webpack_require__(16),u=__webpack_require__(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,r){var n=r(0),i=r.n(n),o=r(1),a=r(2);t.default=function(e){return void 0===e&&(e={}),e=i()({readAttribute:!0,type:a.string},e),function(t,r){if("string"==typeof r){var n,a=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(a,"observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var s=(0,o.camelCaseToDelimited)(r);a.observedAttributes&&!a.observedAttributes.includes(s)&&a.observedAttributes.push(s)}e.type&&(Object.prototype.hasOwnProperty.call(a,"propertyTypes")||(a.propertyTypes=a.propertyTypes?i()({},a.propertyTypes):{}),!a.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(a,r)||(a.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(a,"propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?(0,o.copy)(a.propertiesToReflectAsAttributes):[]),(e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(r)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(r)||"object"==typeof a.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(a.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&a.propertyTypes&&Object.prototype.hasOwnProperty.call(a.propertyTypes,r)&&(n=a.propertyTypes[r]):n=e.writeAttribute,void 0!==n&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(r):a.normalizePropertyTypeList&&(a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes))),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(r,n),"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[r]=n)))),e.alias&&(Object.prototype.hasOwnProperty.call(a,"propertyAliases")||(a.propertyAliases=a.propertyAliases?i()({},a.propertyAliases):{}),!a.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(a,r)||(a.propertyAliases[r]=e.alias))}}}},function(e,t,r){r.d(t,{api:function(){return T}});var n,i,o,a,s=r(4),l=r.n(s),u=r(8),c=r.n(u),p=r(0),d=r.n(p),f=r(3),m=r.n(f),_=r(9),h=r.n(_),v=(r(10),r(5)),b=r.n(v),y=r(1),g=r(2),E=r(6);function x(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var P="undefined"==typeof HTMLElement?function(){}:HTMLElement,w=(n=(0,E.default)({type:g.boolean,writeAttribute:!0}),a=function(e){function t(){var r;return(r=e.call(this)||this).batchAttributeUpdates=!0,r.batchPropertyUpdates=!0,r.batchUpdates=!0,r.batchedAttributeUpdateRunning=!0,r.batchedPropertyUpdateRunning=!0,r.batchedUpdateRunning=!0,r.parent=null,r.rootInstance=null,r.scope=d()({},y.UTILITY_SCOPE),r.domNodeEventBindings=new Map,r.domNodeTemplateCache=new Map,r.externalProperties={},r.ignoreAttributeUpdateObservations=!1,r.internalProperties={},r.outputEventNames=new Set,r.instance=null,c()(r,"isRoot",o,r),r.root=void 0,r.runDomConnectionAndRenderingInSameEventQueue=!1,r.self=t,r.slots={},r.self=r.constructor,r.self._propertiesToReflectAsAttributes||(r.self._propertiesToReflectAsAttributes=r.self.normalizePropertyTypeList(r.self.propertiesToReflectAsAttributes)),r.generateAliasIndex(),r.root=r,r.defineGetterAndSetterInterface(),r}m()(t,e);var r=t.prototype;return r.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.onUpdateAttribute(e,r)},r.onUpdateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)((function(){r.batchedAttributeUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("attributeChanged")}))):this.render("attributeChanged")},r.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,y.timeout)((function(){e.render("connected")}))},r.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=x(this.domNodeEventBindings.values());!(e=t()).done;)for(var r,n=x(e.value.values());!(r=n()).done;)(0,r.value)();this.slots={}},r.defineGetterAndSetterInterface=function(){for(var e,t=this,r=function(){var r=e.value;Object.prototype.hasOwnProperty.call(t,r)&&t.setPropertyValue(r,t[r]),Object.defineProperty(t,r,{configurable:!0,get:function(){return t.getPropertyValue(r)},set:function(e){t.setPropertyValue(r,e),t.triggerPropertySpecificRendering(r,e)}})},n=x((0,y.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[])));!(e=n()).done;)r()},r.getPropertyAlias=function(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},r.getPropertyValue=function(e){var r,n,i=null!=(r=this.instance)&&null!=(r=r.current)&&r.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!=(n=this.instance)&&null!=(n=n.current)&&n.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:i},r.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)},r.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)},r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=t,r)),this.setInternalPropertyValue(e,t)},r.triggerPropertySpecificRendering=function(e,t){var r=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),(0,y.timeout)((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOutputEvents()}))):(r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("propertyChanged"),r.triggerOutputEvents())})));else{var n=this.isStateProperty(e);this.render(n?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&n&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},r.applyBinding=function(e,t){var r=this;if(e.getAttributeNames)for(var n,i=function(){var i=n.value,o="";if(i.startsWith("data-bind-")?o=i.substring(10):i.startsWith("bind-")&&(o=i.substring(5)),o){var a=e.getAttribute(i);if(null===a)return 0;if(o.startsWith("attribute-")||o.startsWith("property-")){var s=(0,y.evaluate)(a,t,!1,!0,e);if(s.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,s.error),0;o.startsWith("attribute-")?e.setAttribute(o.substring(10),s.result):e[(0,y.delimitedToCamelCase)(o.substring(9))]=s.result}else if(o.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var l=r.domNodeEventBindings.get(e);if(o=(0,y.delimitedToCamelCase)(o.substring(3)),null!=l&&l.has(o)){var u=l.get(o);u&&u()}t=d()({console:console,event:void 0,parameters:void 0},t);var c=(0,y.compile)(a,t,!0,!0,e);if(c.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,c.error);else{var p=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.event=n[0],t.parameters=n;try{c.templateFunction.apply(c,c.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+c.scopeNames.join('", "')+'": '+(0,y.represent)(t))}};e.addEventListener(o,p),null==l||l.set(o,(function(){e.removeEventListener(o,p),l.delete(o),0===l.size&&r.domNodeEventBindings.delete(e)}))}}}},o=x(e.getAttributeNames());!(n=o()).done;)i()},r.applyBindings=function(e,t,r){for(void 0===r&&(r=!0);e;){var n;null==(n=e.attributes)||!n.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},r.compileDomNodeTemplate=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r={}),(r=d()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return r.map;if(r.unsafe){var n=e.innerHTML;if(!n&&e.template&&(n=e.template),this.self.hasCode(n)){var i,o=(0,y.compile)("`"+n+"`",t);null==(i=r.map)||i.set(e,{children:[],error:o.error,scopeNames:o.scopeNames,template:n,templateFunction:o.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,p=(0,y.compile)("`"+a+"`",t);null==(c=r.map)||c.set(e,{children:u,error:p.error,scopeNames:p.scopeNames,template:a,templateFunction:p.templateFunction})}for(var f=e.firstChild;f;)r.filter&&!r.filter(f)||u.push(this.compileDomNodeTemplate(f,t,d()({},r,{ignoreComponents:r.ignoreNestedComponents}))),f=f.nextSibling}return r.map},r.evaluateDomNodeTemplate=function(e,t,r){var n,i;if(void 0===t&&(t={}),void 0===r&&(r={}),null!=(n=(r=d()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map)&&n.has(e)||this.compileDomNodeTemplate(e,t,r),null!=(i=r.map)&&i.has(e)){var o=r.map.get(e),a=o.error,s=o.scopeNames,l=o.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&&(r.unsafe?e.innerHTML=u:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",u):e.textContent=u)}}if(!(r.unsafe||r.ignoreComponents&&e.nodeName.toLowerCase().includes("-")))for(var c=e.firstChild;c;)r.filter&&!r.filter(c)||this.evaluateDomNodeTemplate(c,t,d()({},r,{applyBindings:!1,ignoreComponents:r.ignoreNestedComponents})),c=c.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,i=x([].concat(r).reverse());!(n=i()).done;){var o,a=n.value;t.trimSlots&&a.nodeType===Node.TEXT_NODE&&""===(null==(o=a.nodeValue)?void 0:o.trim())||e.after(a)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,r=[];e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r},r.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 r,n=e,i=new Map,o=x(n);!(r=o()).done;){var a=r.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,a)&&i.set(a,t.propertyTypes[a])}return i}return(0,y.convertPlainObjectToMap)(e)},r.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},r.attachExplicitDefinedOutputEventHandler=function(){var e=this;if(!this.self.eventToPropertyMapping)return!1;for(var t=!1,r=function(){var r=i[n];Object.prototype.hasOwnProperty.call(e.internalProperties,r)||(t=!0,e.outputEventNames.add(r),e.setInternalPropertyValue(r,l()(b().mark((function t(){var n,i,o,a,s=arguments;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return t.next=1,e.reflectEventToProperties(r,i);case 1:(a=t.sent)&&(i[0]=a),e.forwardEvent(r,i);case 2:case"end":return t.stop()}}),t)})))))},n=0,i=Object.keys(this.self.eventToPropertyMapping);n<i.length;n++)r();return t},r.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var r=function(){var r=i[n],o=r[0],a=r[1];Object.prototype.hasOwnProperty.call(t.internalProperties,o)||![g.func,"function"].includes(a)||t.self.renderProperties.includes(o)||(t.outputEventNames.add(o),t.setInternalPropertyValue(o,(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e&&t.reflectEventToProperties(o,n),t.forwardEvent(o,n)})))},n=0,i=Object.entries(this.self.propertyTypes);n<i.length;n++)r()},r.triggerOutputEvents=function(){for(var e,t=x(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},r.forwardEvent=function(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,y.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},r.applySlots=function(e,t){for(var r=this,n=0,i=Array.from(e.querySelectorAll("slot"));n<i.length;n++){var o=i[n],a=o.getAttribute("name");if(null===a||"default"===a)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var s,l=x(this.slots.default);!(s=l()).done;){var u=s.value;this.evaluateDomNodeTemplate(u,t)}this.self.replaceDomNodes(o,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(o).map((function(e){return r.grabSlotContent(e)}));else this.slots[a]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[a],t),this.self.replaceDomNodes(o,this.slots[a])):this.slots[a]=this.grabSlotContent(this.self.unwrapDomNode(o).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},r.grabSlotContent=function(e){var t,r,n;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(null==(r=e.firstElementChild)||!r.hasAttribute("data-no-template")||"false"===(null==(n=e.firstElementChild)?void 0:n.getAttribute("data-no-template")))){var i,o,a=e.firstElementChild.value;null==(i=e.classList)||i.remove("web-component-template");var s=e.cloneNode();return null==(o=e.classList)||o.add("web-component-template"),s.innerHTML="",s.template=a,s}return this.self.cloneSlots?e.cloneNode(!0):e},r.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,r=Array.from(this.querySelectorAll("[slot]"));t<r.length;t++){for(var n,i=r[t],o=i.parentNode,a=!0;o;){if(o.nodeName.includes("-")){o===this&&(a=!1);break}o=o.parentNode}if(!a){var s=null==(n=i.getAttribute("slot"))?void 0:n.trim();this.slots[null!=s?s:i.nodeName.toLowerCase()]=this.grabSlotContent(i)}}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=[]},r.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)))},r.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=d()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var r=t[e],n=r[0],i=r[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,i)||(this.self._propertyAliasIndex[i]=n)}}},r.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,r=Object.entries(e);t<r.length;t++){var n,i=r[t],o=i[0],a=i[1];if(this.setExternalPropertyValue(o,a),this.isConnected){var s=(0,y.camelCaseToDelimited)(o);if(null!=(n=this.self._propertiesToReflectAsAttributes)&&n.has(o))switch(this.self._propertiesToReflectAsAttributes.get(o)){case g.boolean:case"boolean":a?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case g.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 g.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 g.string:case"string":a?this.getAttribute(s)!==a&&this.setAttribute(s,a):this.hasAttribute(s)&&this.removeAttribute(s);break;case g.any:case g.array:case g.arrayOf:case g.element:case g.elementType:case g.instanceOf:case g.node:case g.object:case"object":case g.objectOf:case g.shape:case g.exact:case g.symbol:default:if(a){var c=(0,y.represent)(a);if(c&&this.getAttribute(s)!==c){this.setAttribute(s,c);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},r.reflectProperties=function(e){var t,r;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(t=t.current)&&t.state&&"object"==typeof this.instance.current.state)for(var n,i=x(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(n=i()).done;){var o=n.value;Object.prototype.hasOwnProperty.call(this.internalProperties,o)&&this.setInternalPropertyValue(o,void 0)}null!=(r=this.internalProperties.model)&&r.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var a,s=x(this.self.controllableProperties);!(a=s()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(e,l)&&this.setInternalPropertyValue(l,e[l])}},r.reflectEventToProperties=function(){var e=l()(b().mark((function e(t,r){var n,i,o,a,s,l,u,c,p,f,m,_,h,v,g,E,A;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.batchUpdates,this.batchUpdates=!1,i=null,o=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&(0,y.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=4;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,r.concat([this])))&&"then"in s&&(0,y.isFunction)(s.then))){e.next=2;break}return e.next=1,s;case 1:A=e.sent,e.next=3;break;case 2:A=s;case 3:l=A,o=!0,Array.isArray(l)?(i=l[0],this.reflectProperties(i),(0,y.extend)(!0,this.internalProperties,l[1])):null===l?o=!1:"object"==typeof l&&(i=l,this.reflectProperties(l));case 4:if(!o&&r.length>0&&(0,y.isObject)(r[0])){if(c=r[0],"persist"in r[0]&&(0,y.isFunction)(r[0].persist))for(c={},p=0,f=Object.keys(this.self.propertyTypes);p<f.length;p++)for(m=f[p],_=x([m].concat(null!==(v=this.getPropertyAlias(m))&&void 0!==v?v:[]));!(h=_()).done;)g=h.value,(E=r[0].currentTarget&&Object.prototype.hasOwnProperty.call(r[0].currentTarget,g)?r[0].currentTarget[g]:this.getPropertyValue(g))!==this.externalProperties[g]&&(c[g]=E);else[null,void 0].includes(null==(u=c.detail)?void 0:u.value)||(c=d()({},c.detail));i=c,this.reflectProperties(c)}return this.triggerRender("propertyReflected"),this.batchUpdates=n,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),r.evaluateStringOrNullAndSetAsProperty=function(e,t){var r=this,n=e.startsWith("-"),i=n?e.substring(1):e,o=(0,y.delimitedToCamelCase)(i),a=this.getPropertyAlias(o);if(a&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,a)&&(o=a),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)){var s=this.self.propertyTypes[o];if(n){if(t){var l=(0,y.evaluate)(t,d()({},y.UTILITY_SCOPE),!1,!0,this);l.error?(console.warn('Failed to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(o,void 0)):(this.setInternalPropertyValue(o,l.result),this.setExternalPropertyValue(o,l.result))}}else switch(s){case g.boolean:case"boolean":var u=![null,"false"].includes(t);this.setInternalPropertyValue(o,u),this.setExternalPropertyValue(o,u);break;case g.func:case"function":var c,p=null,f=["data","event","firstArgument","firstParameter","options","scope","parameters"].concat(y.UTILITY_SCOPE_NAMES);if(t){var m=(0,y.compile)(t,f);p=m.error,c=m.templateFunction,p&&console.warn('Failed to compile given handler "'+e+'": '+p+".")}this.setInternalPropertyValue(o,(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.outputEventNames.has(o)&&r.reflectEventToProperties(o,i);var s=void 0;if(!p)try{var l;s=null==(l=c)?void 0:l.call.apply(l,[r,i[0],i[0],i[0],i[0],i[0],i[0],i].concat(y.UTILITY_SCOPE_VALUES))}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+f.join('", "')+'" set to "'+(0,y.represent)(i)+'": '+r+'. Set property to "undefined".')}return r.self.renderProperties.includes(o)||r.forwardEvent(o,i),s})),p||this.setExternalPropertyValue(o,c);break;case"json":if(t){var _;try{_=JSON.parse(t)}catch(p){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,y.represent)(p));break}this.setInternalPropertyValue(o,_),this.setExternalPropertyValue(o,(0,y.copy)(_,1))}else this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null);break;case g.number:case"number":if(null===t){this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break}var h=parseFloat(t);isNaN(h)&&(h=void 0),this.setInternalPropertyValue(o,h),this.setExternalPropertyValue(o,h);break;case g.string:case"string":this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break;case g.any:case g.array:case g.arrayOf:case g.element:case g.elementType:case g.instanceOf:case g.node:case g.object:case"object":case g.objectOf:case g.oneOf:case g.oneOfType:case g.shape:case g.exact:case g.symbol:default:if(t){var v=(0,y.evaluate)(t,{},!1,!0,this);if(v.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',v.error);break}this.setInternalPropertyValue(o,v.result),this.setExternalPropertyValue(o,(0,y.copy)(v.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(o,!0),this.setExternalPropertyValue(o,!0)):(this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null))}}},r.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,y.timeout)((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},r.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,y.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))},r.determineRenderScope=function(e){var t,r;void 0===e&&(e={}),this.scope=d()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((r={parent:this.parent,root:this.rootInstance,self:this})[(0,y.lowerCase)(this.self._name)||"instance"]=this,r),e),this.scope.scope=this.scope},r.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();var t=(0,y.evaluate)("`"+this.self.content+"`",this.scope);if(t.error)return console.warn("Failed to process template: "+t.error),Promise.resolve();this.applyShadowRootIfNotExisting();var r=document.createElement("div");return r.innerHTML=t.result,this.applySlots(r,d()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()},t}(P),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:g.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,i=a,o=h()(i.prototype,"isRoot",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i),T={component:w,register:function(e){void 0===e&&(e=(0,y.camelCaseToDelimited)(w._name)),customElements.define(e,w)}};t.default=w},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=a},function(e){e.exports=l},function(e,t,r){r.d(t,{api:function(){return g}});var n=r(0),i=r.n(n),o=r(4),a=r.n(o),s=r(3),l=r.n(s),u=r(5),c=r.n(u),p=r(1),d=r(2),f=r(11),m=r.n(f),_=r(12),h=r(13);function v(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){function t(){for(var r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(r=e.call.apply(e,[this].concat(i))||this).compiledSlots={},r.preparedSlots={},r.reactRoot=null,r.rootReactInstance=null,r.self=t,r.wrapMemorizingWrapper=null,r.isWrapped=!1,r.reflectInstanceProperties=function(){var e;null!=(e=r.instance)&&e.current&&r.instance.current.properties&&r.reflectProperties(r.instance.current.properties)},r}l()(t,e);var r=t.prototype;return r.connectedCallback=function(){this.applyComponentWrapper(),this.rootReactInstance=this,e.prototype.connectedCallback.call(this)},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this)},r.reflectExternalProperties=function(t){this.isRoot&&e.prototype.reflectExternalProperties.call(this,t)},r.render=function(){var e=a()(c().mark((function e(t){var r,n,o,a,s,l=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:t,scope:this.scope}}))){e.next=1;break}return e.abrupt("return");case 1:if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(i()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(n=this.firstChild;n;)o=n.nextSibling,this.removeChild(n),n=o;return this.reactRoot||(a=this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name,s="","string"==typeof a&&(s=a),this.reactRoot=(0,h.createRoot)(this.root,{identifierPrefix:s})),e.next=2,new Promise((function(e){(0,_.flushSync)((function(){var t;null==(t=l.reactRoot)||t.render((0,f.createElement)(l.self.content,l.internalProperties)),e()}))}));case 2:if(null==(r=this.instance)||!r.current){e.next=3;break}this.reflectInstanceProperties(),e.next=4;break;case 3:return e.next=4,(0,p.timeout)(this.reflectInstanceProperties);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=(0,p.copy)(t,1),r)),this.setInternalPropertyValue(e,(0,p.copy)(t,1))},r.setInternalPropertyValue=function(t,r){null===r?r=d.NullSymbol:void 0===r&&(r=d.UndefinedSymbol),e.prototype.setInternalPropertyValue.call(this,t,r)},r.preCompileDomNodes=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r=!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,r);for(var n,i=1,o=[],a=v(e);!(n=a()).done;){var s=n.value,l=this.preCompileDomNode(s,t,r,i.toString());o.push(l),i+=1}return r?function(e){return function(){for(var t,r=[],n=v(o);!(t=n()).done;){var i=(0,t.value)(e);"function"==typeof i&&r.push(i.apply(void 0,arguments))}return(0,f.createElement)(f.Fragment,{children:r})}}:o},r.preCompileDomNode=function(e,t,r,n){var o=this;if(void 0===t&&(t={}),void 0===r&&(r=!1),r){var a=this.preCompileDomNode(e,i()({},t,{data:void 0,firstArgument:void 0,firstParameter:void 0,options:void 0,scope:void 0,parameters:void 0}),!1,n);return function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.length>0?r[0]:null;return a(i()({},e,{data:o,firstArgument:o,firstParameter:o,options:o,scope:o,parameters:r}))}}}if(e.nodeType===Node.TEXT_NODE){var s="string"==typeof e.nodeValue?e.nodeValue.trim():"",l=n&&s?(0,f.createElement)(f.Fragment,{children:s,key:n}):s||null;return function(){return l}}if(!e.getAttributeNames)return function(){return null};var u,c={},d=this.self.isReactComponent(e);d?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),n&&!Object.prototype.hasOwnProperty.call(c,"key")&&(c.key=n),u=e.constructor.content):(c.key=n,u=e.tagName.toLowerCase());for(var m,_=Object.keys(t),h={},b=function(){var r,n=m.value,i=e.getAttribute(n);if(null===i)return 0;var a=!1,s="";if(n.startsWith("data-bind-")?s=n.substring(10):n.startsWith("bind-")&&(s=n.substring(5)),s.startsWith("attribute-")||"attributes"===s||s.startsWith("property-")||"properties"===s){var l=(0,p.compile)(i,_),u=l.error,f=l.originalScopeNames,v=l.templateFunction;if(u)return console.warn('Error occurred during compiling given attribute binding "'+n+'" on node:',e,u),0;"attributes"===s||"properties"===s?a=!0:s=s.startsWith("attribute-")?s.substring(10):s.substring(9),i={originalScopeNames:f,templateFunction:v.bind(o)}}else if(s.startsWith("on-")){s=(0,p.delimitedToCamelCase)(s),Object.prototype.hasOwnProperty.call(t,"event")||(_=[].concat(_,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(_=[].concat(_,["parameters"]));var b=(0,p.compile)(i,_,!0),y=b.error,g=b.originalScopeNames,E=b.scopeNames,x=b.templateFunction;if(y)return console.warn('Error occurred during compiling given event binding "'+n+'" on node:',e,y),0;var A=x.bind(o);i=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.event=o[0],t.parameters=o;try{A.apply(void 0,g.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+n+'" on node: ',e,'Given expression "'+i+'" could not be evaluated with given scope names "'+E.join('", "')+'": '+(0,p.represent)(t))}}}else s=n;var P={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(P,s)&&(s=P[s]),s=(0,p.delimitedToCamelCase)(s),null!=(r=i)&&r.originalScopeNames?h[a?"":s]=i:d||(c[s]=i)},y=v(e.getAttributeNames());!(m=y()).done;)b();if(!d){var g=Array.from(e.childNodes);g.length&&(c.children=this.preCompileDomNodes(g,t))}return function(r){(r=i()({},t,r)).scope=r;for(var n=i()({},c),a=0,s=Object.entries(h);a<s.length;a++){var l=s[a],p=l[0],m=l[1],_=m.originalScopeNames,v=m.templateFunction.apply(void 0,_.map((function(e){return r[e]})));""===p?n=i()({},n,v):n[p]=v}return Object.prototype.hasOwnProperty.call(n,"innerHTML")&&(n.dangerouslySetInnerHTML={__html:n.innerHTML},delete n.children,delete n.innerHTML),Object.prototype.hasOwnProperty.call(n,"textContent")?(n.children=n.textContent,delete n.textContent):d?(n=i()({},e.internalProperties,n),r=i()({},n,r,{parent:e}),e.evaluateSlots(r),e.prepareProperties(n)):n.children&&(n.children=o.evaluatePreCompiledDomNodes(n.children,r)),(0,f.createElement)(u,n)}},r.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 r,n=[],i=v(e);!(r=i()).done;){var o=(0,r.value)(t);o&&n.push(o)}return n},r.preCompileSlots=function(){for(var e in this.slots)this.slots[e]&&"default"!==e&&(this.compiledSlots[e]=this.preCompileDomNode(this.slots[e],i()({},this.scope,{parent:this}),[d.func,"function"].includes(this.self.propertyTypes[e])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,i()({},this.scope,{parent:this}),[d.func,"function"].includes(this.self.propertyTypes.children)))},r.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)},r.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}},r.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,f.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,f.forwardRef)((function(t,r){return(0,f.useImperativeHandle)(r,(function(){return{properties:t}})),(0,f.createElement)(e,t)})),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,f.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,f.memo)(this.self.content),this.self.content.wrapped=e)}},r.prepareProperties=function(e){(0,p.extend)(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,f.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var r,n=v(["isRoot","isTrusted","__composed"]);!(r=n()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(t,i)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,i)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,i))&&delete t[i]}},t}(r(7).default);y.attachWebComponentAdapterIfNotExists=!0,y.content="div",y.react=m(),y._name="ReactWebComponent";var g={component:y,register:function(e){void 0===e&&(e=(0,p.camelCaseToDelimited)(y._name)),customElements.define(e,y)}};t.default=y}],f={};function m(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},m.d=function(e,t){for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var _={};m.r(_),m.d(_,{ReactWeb:function(){return A},Web:function(){return T},reactWebAPI:function(){return P},webAPI:function(){return w},wrapAsWebComponent:function(){return O}});var h=m(0),v=m.n(h),b=m(3),y=m.n(b),g=m(1),E=m(14),x=m(7),A=E.default,P=E.api,w=x.api,T=x.default,O=function(e,t,r){var n,i,o;void 0===t&&(t="NoName"),void 0===r&&(r={});var a=e._name||(null==(n=e.___types)||null==(n=n.name)?void 0:n.name)||t.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");r.propTypes&&(e.propTypes=r.propTypes);var s=e.propTypes||{},l=r.propertyAliases||e.propertyAliases||{},u=(0,g.unique)(Object.keys(s).concat(Object.keys(l)).concat(Object.values(l))),c=r.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(A.propertiesToReflectAsAttributes)if(Array.isArray(c))c=[].concat(A.propertiesToReflectAsAttributes,c);else if(c instanceof Map)for(var p=0,d=A.propertiesToReflectAsAttributes;p<d.length;p++){var f=d[p];c.set(f,A.propertyTypes[f])}else if("object"==typeof c)for(var m=0,_=A.propertiesToReflectAsAttributes;m<_.length;m++){var h=_[m];c[h]=A.propertyTypes[h]}var b=u.map((function(e){return(0,g.camelCaseToDelimited)(e)})),E=function(t){function n(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=t.call.apply(t,[this].concat(a))||this).self=n,i.internalProperties=r.internalProperties?v()({},r.internalProperties):e.internalProperties?v()({},e.internalProperties):{},i}return y()(n,t),n}(A);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof r.attachWebComponentAdapterIfNotExists||r.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=A.observedAttributes.concat(b).concat(b.map((function(e){return"-"+e}))),E.controllableProperties=e.controllableProperties||r.controllableProperties||[],E.eventToPropertyMapping=null===r.eventToPropertyMapping?r.eventToPropertyMapping:r.eventToPropertyMapping?v()({},r.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?v()({},e.eventToPropertyMapping):{},E.propertyAliases=v()({},A.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=v()({},A.propertyTypes,s),E.renderProperties=null!==(i=null!==(o=r.renderProperties)&&void 0!==o?o:e.renderProperties)&&void 0!==i?i:A.renderProperties,E._name=a,{component:E,register:function(e){void 0===e&&(e=(0,g.camelCaseToDelimited)(a)),customElements.define(e,E)}}};return _.default=O,_}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__15__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__16__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__17__},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__20__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__21__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__22__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__23__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__24__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__25__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__27__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__28__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__30__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__31__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__32__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__33__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__34__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__35__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__36__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__37__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__38__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__39__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__40__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__41__},,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r,n,i,o,a,l,u,s,c,d,m,f,p,v,g,h,y,b,x,w,S,I,j,N,C,T,O,P,q,A;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;module.exports=(e=__webpack_require__(2),t=__webpack_require__(7),r=__webpack_require__(21),n=__webpack_require__(22),i=__webpack_require__(23),o=__webpack_require__(24),a=__webpack_require__(25),l=__webpack_require__(26),u=__webpack_require__(27),s=__webpack_require__(28),c=__webpack_require__(29),d=__webpack_require__(30),m=__webpack_require__(19),f=__webpack_require__(31),p=__webpack_require__(32),v=__webpack_require__(33),g=__webpack_require__(34),h=__webpack_require__(35),y=__webpack_require__(8),b=__webpack_require__(9),x=__webpack_require__(36),w=__webpack_require__(37),S=__webpack_require__(4),I=__webpack_require__(0),j=__webpack_require__(3),N=__webpack_require__(20),C=__webpack_require__(10),T=__webpack_require__(38),O=__webpack_require__(39),P=__webpack_require__(40),q=__webpack_require__(41),A=__webpack_require__(11),function(){var _=[function(t){t.exports=e},function(e){e.exports=A},function(e){e.exports=j},function(e){e.exports=I},function(e,t,r){r.d(t,{defaultModel:function(){return p},defaultModelState:function(){return c},defaultProperties:function(){return d},modelStatePropertyTypes:function(){return s},propertyTypes:function(){return u}});var n=r(0),i=r.n(n),o=r(3),a={name:o.string,declaration:o.string,description:o.string,default:o.any,selection:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.number,o.string])),o.number,(0,o.objectOf)((0,o.oneOfType)([o.number,o.string])),o.string])),(0,o.objectOf)((0,o.oneOfType)([o.number,o.string]))]),type:o.string,value:o.any},s={dirty:(0,o.oneOfType)([o.boolean,o.symbol]),pristine:(0,o.oneOfType)([o.boolean,o.symbol]),touched:(0,o.oneOfType)([o.boolean,o.symbol]),untouched:(0,o.oneOfType)([o.boolean,o.symbol]),focused:(0,o.oneOfType)([o.boolean,o.symbol]),visited:(0,o.oneOfType)([o.boolean,o.symbol]),invalid:(0,o.oneOfType)([o.boolean,o.symbol]),invalidRequired:(0,o.oneOfType)([o.boolean,o.symbol]),valid:(0,o.oneOfType)([o.boolean,o.symbol])},l=i()({},a,{emptyEqualsNull:o.boolean,trim:o.boolean,invertedPattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),pattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),maximum:(0,o.oneOfType)([o.number,o.string]),minimum:(0,o.oneOfType)([o.number,o.string]),maximumLength:o.number,minimumLength:o.number,mutable:o.boolean,writable:o.boolean,state:(0,o.shape)(s)}),u=i()({},a,s,{className:(0,o.oneOfType)([(0,o.arrayOf)(o.string),o.string]),styles:o.object,themeConfiguration:o.object,disabled:o.boolean,enforceUncontrolled:o.boolean,initialValue:o.any,model:(0,o.shape)(l),onChange:o.func,onChangeValue:o.func,onChangeShowDeclaration:o.func,onChangeState:o.func,onClick:o.func,onFocus:o.func,onTouch:o.func,required:o.boolean,requiredText:o.string,componentProperties:o.object,domNodeProperties:o.object,showDeclaration:(0,o.oneOfType)([o.boolean,o.symbol]),showInitialValidationState:o.boolean,showValidationState:o.boolean,tooltip:o.any}),c={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},p={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:1/0,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:i()({},c),trim:!0,type:"string"},d={className:[],styles:{},componentProperties:{},domNodeProperties:{},enforceUncontrolled:!1,model:i()({},p),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e){e.exports=y},function(e){e.exports=S},function(e,t,r){r.d(t,{defaultModelState:function(){return c},defaultProperties:function(){return d},propertyTypes:function(){return l},renderProperties:function(){return u}});var n=r(0),i=r.n(n),o=r(3),a=r(4),s=i()({},a.modelStatePropertyTypes,{invalidMaximum:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMinimum:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMaximumLength:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMinimumLength:(0,o.oneOfType)([o.boolean,o.symbol]),invalidInvertedPattern:(0,o.oneOfType)([o.boolean,o.symbol]),invalidPattern:(0,o.oneOfType)([o.boolean,o.symbol])}),l=i()({},a.propertyTypes,s,{align:o.string,children:o.func,cursor:(0,o.oneOfType)([(0,o.shape)({end:o.number.isRequired,start:o.number.isRequired}),o.symbol]),editor:o.string,editorIsActive:(0,o.oneOfType)([o.boolean,o.symbol]),editorIsInitiallyActive:o.boolean,hidden:(0,o.oneOfType)([o.boolean,o.symbol]),leadingIcon:(0,o.oneOfType)([o.string,o.object]),trailingIcon:(0,o.oneOfType)([o.string,o.object]),attributes:o.object,invertedPattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),invertedPatternText:o.string,labels:(0,o.oneOfType)([(0,o.arrayOf)((0,o.arrayOf)(o.string)),(0,o.arrayOf)(o.string),o.object]),maximum:(0,o.oneOfType)([o.number,o.string]),maximumLength:o.number,minimum:(0,o.oneOfType)([o.number,o.string]),minimumLength:o.number,maximumLengthText:o.string,minimumLengthText:o.string,maximumText:o.string,minimumText:o.string,onBlur:o.func,onChangeEditorIsActive:o.func,onKeyDown:o.func,onKeyUp:o.func,onSelect:o.func,onSelectionChange:o.func,pattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),patternText:o.string,placeholder:o.string,representation:(0,o.oneOfType)([o.string,o.symbol]),rows:o.number,searchSelection:o.boolean,selectableEditor:o.boolean,step:o.number,suggestionCreator:o.func,suggestSelection:o.boolean,transformer:o.object}),u=["children","suggestionCreator"],c=i()({},a.defaultModelState,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),p=i()({},a.defaultModel,{state:c}),d=i()({},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:i()({},p),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,r){r.d(t,{WrapTooltip:function(){return p},default:function(){return d}});var n=r(0),i=r.n(n),o=r(16),a=r(13),s=r(2),l=r(1),u=!o.Tooltip||Boolean(o.Tooltip.isDummy),c=(0,s.forwardRef)((function(e,t){return u?(0,l.jsx)("div",{className:"generic-tooltip",ref:t,title:e.value,children:e.children}):(0,l.jsx)(o.Tooltip,i()({overlay:(0,l.jsx)(a.Typography,{use:"caption",children:e.value}),ref:t},e.componentProperties,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:e.children})}))})),p=(!c||Boolean(c.isDummy),function(e){var t=e.children,r=e.value;return"string"==typeof r?(0,l.jsx)(c,{value:r,children:t}):(0,l.jsx)(l.Fragment,{children:t})}),d=p},function(e){e.exports=T},function(e,t,r){r(0),r(17),r(2),r(5);var n=r(14),i=r(15),o=r(8),a=r(1),s=function(e){var t=e.children,r=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(n.WrapStrict,{strict:Boolean(r),children:(0,a.jsx)(o.WrapTooltip,{value:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},function(e,t,r){r.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return m},determineInitialValue:function(){return _},determineValidationState:function(){return h},formatValue:function(){return A},getConsolidatedProperties:function(){return b},getLabelAndValues:function(){return y},getValueFromSelection:function(){return g},mapPropertiesIntoModel:function(){return v},normalizeSelection:function(){return E},parseValue:function(){return x},renderMessage:function(){return p},translateKnownSymbols:function(){return f},triggerCallbackIfExists:function(){return d},wrapStateSetter:function(){return c}});var n=r(0),i=r.n(n),o=r(6),a=r(3);function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}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=i()({},e.model.state):e.model.state={});for(var r=0,n=Object.entries(t.modelState);r<n.length;r++){var o,a=n[r],s=a[0],l=a[1];null!=(o=e.model)&&o.state&&void 0===e.model.state[s]&&(e.model.state[s]=l)}return e},c=function(e,t){return function(r){var n="function"==typeof r?r(t):r;(0,o.equals)(null==n?void 0:n.modelState,null==t?void 0:t.modelState)||e(n)}},p=function(e,t){if("string"!=typeof e)return"";var r=(0,o.evaluate)("`"+e+"`",t);return r.error?(console.warn("Given message template could not be proceed:",r.error),""):r.result},d=function(e,t,r){void 0===r&&(r=!0);for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];t="on"+(0,o.capitalize)(t),e[t]&&(r?e[t].apply(e,i):(0,o.timeout)((function(){e[t].apply(e,i)})))},f=function(e){for(var t={},r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],s=i[0],l=i[1];l===a.UndefinedSymbol?t[s]=void 0:l===a.NullSymbol?t[s]=null:t[s]=(0,o.copy)(e[s])}return t};function m(e,t,r,n,a){if("string"==typeof e.representation)return e.representation;if(null!==r){var l,u=function(e,t){if(t)for(var r,n=s(t);!(r=n()).done;){var i=r.value;if((0,o.equals)(null==i?void 0:i.value,e))return i.label||String(e)}return null}(r,a);return"string"==typeof u?u:A(i()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),r,n)}return""}var _=function(e,t,r){var n,i;return void 0!==r?r:void 0!==e.value?e.value:void 0!==(null==(n=e.model)?void 0:n.value)?e.model.value:void 0!==e.initialValue?(0,o.copy)(e.initialValue):void 0!==e.default?(0,o.copy)(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?(0,o.copy)(e.model.default):void 0!==t?t:null},h=function(e,t,r){void 0===r&&(r={});var n=!1;r=i()({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))}},r),e.model.state||(e.model.state={});for(var o=0,a=Object.entries(r);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),n=n||c!==t[l]}return n&&(e.model.state.invalid=Object.keys(r).some((function(t){return Boolean(e.model.state&&e.model.state[t])})),e.model.state.valid=!e.model.state.invalid),n},v=function(e,t){var r=(0,o.extend)(!0,{model:(0,o.copy)(t)},e);r.disabled&&(r.model.mutable=!1,delete r.disabled),r.invertedPattern&&(r.model.invertedPattern=r.invertedPattern,delete r.invertedPattern),r.pattern&&(r.model.pattern=r.pattern,delete r.pattern),r.required&&(r.model.nullable=!1,delete r.required),"text"===r.type&&(r.type="string");for(var n,i=s(Object.keys(r.model).concat("value"));!(n=i()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(r,a)&&void 0!==r[a]&&(r.model[a]=r[a])}for(var l in r.model.state)Object.prototype.hasOwnProperty.call(r,l)&&void 0!==r[l]&&(r.model.state[l]=r[l]);return void 0===r.model.value&&(r.model.value=(0,o.copy)(r.model.default)),r},b=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t};function y(e){if(Array.isArray(e)){for(var t,r=[],n=[],i=s(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(r.push(o.label),n.push(o.value))}return[r,n]}return[[],[]]}function g(e,t){if(Array.isArray(t))for(var r,n=s(t);!(r=n()).done;){var i=r.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&String(i.value)===e)return i.value}return null}function E(e,t){if(e||(e=t,t=void 0),!e)return e;var r=(0,o.isObject)(t),n=function(e,n){if(r)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i,o=s(t);!(i=o()).done;){var a=i.value,l=a[0],u=a[1];if(l===e)return u}else if("number"==typeof n&&n<t.length)return t[n]}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,p=e;c<p.length;c++){var d,f=p[c],m=f[0],_=f[1];l.push({label:null!==(d=n(m,u))&&void 0!==d?d:_,value:m}),u+=1}else if((0,o.isObject)(e[0]))for(var h,v=s(e);!(h=v()).done;){var b,y=h.value;l.push(i()({},y,{label:null!==(b=n(y.value,u))&&void 0!==b?b:y.label})),u+=1}else for(var g=0,E=e;g<E.length;g++){var x,A=E[g];l.push({label:null!==(x=n(A,u))&&void 0!==x?x:A,value:A}),u+=1}e=l}}else{for(var P=[],w=0,T=Object.keys(e);w<T.length;w++){var O,C=T[w];P.push({label:null!==(O=n(C))&&void 0!==O?O:e[C],value:C})}e=P}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var N,S=new Map,L=0,I=s(t);!(N=I()).done;){var M=N.value[0];S.set(M,L),L+=1}e=e.sort((function(e,t){var r,n,i=e.value,o=t.value;return(null!==(r=S.get(i))&&void 0!==r?r:0)-(null!==(n=S.get(o))&&void 0!==n?n:0)}))}else a||(e=e.sort((function(e,t){var r=e.label,n=t.label;return r.localeCompare(n)})));return e}var x=function(e,t,r,n){var i;if(void 0===n&&(n=!1),n&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var o=t;if(![null,void 0].includes(t)&&null!=(i=r[e.model.type])&&i.parse){var a,s=null==(a=r[e.model.type])?void 0:a.parse;o=s&&t?s(t,r,e):t}return"number"==typeof o&&isNaN(o)?null:o};function A(e,t,r,n){var i;void 0===n&&(n=!0);var o=n?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=r[e.type||e.model.type])?void 0:i.format;if(a){var s,l=(null==(s=a[o])?void 0:s.transform)||a.final.transform;if(l)return l(t,r,e)}return String(t)}},,function(e){e.exports=b},function(e,t,r){r.d(t,{WrapStrict:function(){return o}});var n=r(2),i=r(1),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(n.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e,t,r){r.d(t,{WrapThemeProvider:function(){return o}});var n=r(5),i=r(1),o=function(e){var t=e.children,r=e.configuration,o=e.wrap;return r?(0,i.jsx)(n.ThemeProvider,{options:r,wrap:!1!==o,children:t}):t}},function(e){e.exports=C},function(e){e.exports=t},function(e){e.exports=N},function(e,t,r){var n=r(0),i=r.n(n),o=r(22),a=r(2),s=r(1),l=(0,a.forwardRef)((function(e,t){var r=e.componentProperties,n=e.size;return(0,s.jsx)(o.CircularProgress,i()({ref:t,size:null==n?void 0:n.replace("extra-small","xsmall").replace("extra-large","xlarge")},r))}));t.A=l},function(e,t,r){var n=r(0),i=r.n(n),o=r(25),a=r(2),s=r(9),l=r(1),u=(0,a.forwardRef)((function(e,t){var r,n,a,u=(0,s.useMemorizedValue)({});return(0,l.jsx)(o.Icon,i()({className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles},null!==(n=e.componentProperties)&&void 0!==n?n:u,{onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onFocus:e.onFocus,onBlur:e.onBlur,icon:(0,s.useMemorizedValue)({icon:e.icon,size:null==(a=e.size)?void 0:a.replace("extra-small","xsmall").replace("extra-large","xlarge"),strategy:e.strategy},e.icon,e.size,e.strategy),ref:t}))}));t.A=u},function(e,t,r){var n=r(0),i=r.n(n),o=r(26),a=r(2),s=r(9),l=r(1),u=(0,a.forwardRef)((function(e,t){var r,n,u,c=(0,a.useRef)(null),p=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(function(){return{base:c,foundation:p}}));var d=null==(r=e.size)?void 0:r.replace("extra-small","xsmall").replace("extra-large","xlarge"),f=(0,s.useMemorizedValue)({});return(0,l.jsx)(o.IconButton,i()({checked:e.value,disabled:e.disabled,className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles,icon:(0,s.useMemorizedValue)({icon:e.icon,size:d,strategy:e.strategy},e.icon,d,e.strategy),onIcon:(0,s.useMemorizedValue)({icon:e.onIcon||e.icon,size:d,strategy:e.strategy},e.onIcon,e.icon,d,e.strategy),onClick:e.onClick,onChange:e.onChange,ref:c,foundationRef:p},null!==(u=e.componentProperties)&&void 0!==u?u:f))}));t.A=u},function(e){e.exports=m},function(e){e.exports=o},function(e){e.exports=i},function(e){e.exports=f},function(e){e.exports=p},function(e){e.exports=v},function(e){e.exports=g},function(e){e.exports=h},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=x},function(e){e.exports=w},function(e){e.exports=O},function(e){e.exports=P},function(e){e.exports=q},function(e,t,r){var n=r(5),i=r(2),o=r(1),a=(0,i.forwardRef)((function(e,t){var r=e.children,i=e.applyToChildren;return(0,o.jsx)(n.Theme,{ref:t,use:"error",wrap:i,children:r})}));t.A=a}],E={};function L(e){var t=E[e];if(void 0!==t)return t.exports;var r=E[e]={exports:{}};return _[e](r,r.exports,L),r.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 r in t)L.o(t,r)&&!L.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 M={};L.r(M),L.d(M,{CODE_EDITOR_OPTIONS:function(){return ke},CSS_CLASS_NAMES:function(){return qe},INPUT_TRANSFORMER:function(){return Ye},TIPTAP_DEFAULT_OPTIONS:function(){return Ue},TextInput:function(){return Je},TextInputInner:function(){return Ze},default:function(){return Qe},determineValidationState:function(){return We},preventEnterKeyPropagation:function(){return Be},suggestionMatches:function(){return Ke}});var D,R,k,U=L(0),W=L.n(U),B=L(23),K=L(24),V=L(6),X=L(2),F=L(18),z=L.n(F),H=L(43),G=L(20),$=L(21),Y=L(27),Z=L(19),J=L(1),Q=function(e,t){var r,n,i,o=(0,X.useRef)(null),a=(0,X.useRef)(null),s=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{surfaceAnchor:o,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}})),(0,J.jsx)(Y.MenuSurfaceAnchor,{ref:o,onKeyDown:e.onKeyDown,children:e.pending?(0,J.jsx)(Y.MenuSurface,{anchorCorner:"bottomLeft",className:(null!==(r=e.classNames)&&void 0!==r?r:[]).concat(null!==(n=e.pendingClassNames)&&void 0!==n?n:[]).join(" "),open:!0,children:(0,J.jsx)(Z.A,{size:"large"})}):(0,J.jsx)(Y.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){a.current=e},className:null==(i=e.classNames)?void 0:i.join(" "),focusOnOpen:!1,foundationRef:s,onFocus:e.onFocus,onSelect:e.onSelect,open:e.open,children:e.options.map((function(t,r){var n;return(0,J.jsx)(Y.MenuItem,{className:null==(n=e.itemClassNames)?void 0:n.join(" "),children:t},r)}))})})},ee=(0,X.memo)((0,X.forwardRef)(Q)),te=L(28),re=L(9),ne=function(e,t){var r=(0,X.useRef)(null),n=(0,X.useRef)(null),i=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{base:r,foundation:n,input:i}})),(0,J.jsx)(te.Select,W()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,re.useMemorizedValue)(W()({name:e.name,onClick:e.onClick},e.domNodeProperties),e.name,e.onClick,e.domNodeProperties),enhanced:!0,ref:r,foundationRef:n,inputRef:i,onChange:e.onChange,onKeyDown:e.onKeyDown,options:e.options,value:String(e.value),label:e.label},e.componentProperties))},ie=(0,X.memo)((0,X.forwardRef)(ne)),oe=L(29),ae=(0,X.forwardRef)((function(e,t){var r,n=(0,X.useRef)(null),i=(0,X.useRef)(null),o=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{base:n,foundation:i,input:o}}));var a="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0;return(0,J.jsx)("div",{className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,children:(0,J.jsx)(oe.TextField,W()({characterCount:e.characterCount&&a,disabled:e.disabled,invalid:e.invalid,label:e.label,name:e.name,placeholder:e.placeholder,helpText:e.helpText,maxLength:a?e.maximumLength:void 0,ref:n,foundationRef:i,inputRef:o,onChange:e.onChange,ripple:!0,rootProps:(0,re.useMemorizedValue)(W()({name:e.name,onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,J.jsx)(G.A,W()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,J.jsx)(G.A,W()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})})),se=L(10),le=L(8),ue=L(11),ce=L(30),pe=L(31),de=L(32),fe=L(33),me=L(34),_e=L(35),he=L(36),ve=L(37),be=(0,X.forwardRef)((function(e,t){var r,n,i,o,a,s=(0,X.useId)(),l=null!==(r=e.id)&&void 0!==r?r:s,u=null!==(n=e.classNamePrefix)&&void 0!==n?n:"text-area",c=(0,X.useRef)(null),p=(0,X.useRef)(null),d=(0,X.useRef)(null),f=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{foundation:f,input:c,label:d,materialTextField:p}})),(0,X.useEffect)((function(){if(d.current)return p.current=new ve.MDCTextField(d.current),f.current=p.current.getDefaultFoundation(),"string"==typeof e.value&&(f.current.setValue(e.value),p.current.value=e.value),"boolean"==typeof e.disabled&&(f.current.setDisabled(e.disabled),p.current.disabled=e.disabled),"boolean"==typeof e.invalid&&(f.current.setValid(!e.invalid),p.current.valid=!e.invalid),"boolean"==typeof e.required&&(p.current.required=e.required),f.current.setUseNativeValidation(!1),function(){var e;null==(e=p.current)||e.destroy()}}),[d.current,p.current,e.value,e.disabled,e.invalid,e.required,e.minimumLength,e.maximumLength]),(0,X.useEffect)((function(){var t,r,n=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.autoCompleteFocus()}))}:V.NOOP;null==(t=c.current)||t.addEventListener("input",n);var i=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.activateFocus()}))}:V.NOOP;return null==(r=c.current)||r.addEventListener("focus",i),function(){var e,t;null==(e=c.current)||e.removeEventListener("input",n),null==(t=c.current)||t.removeEventListener("focus",i)}}),[f.current,c.current,e.children]);var m="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0,_=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("textarea",W()({ref:c,id:l,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?W()({visibility:"hidden",position:"absolute"},e.styles):e.styles,rows:e.rows,"aria-labelledby":l+"-label","aria-controls":l+"-helper","aria-describedby":l+"-helper",readOnly:Boolean(e.children),value:e.value,minLength:e.minimumLength,maxLength:e.maximumLength,onChange:e.onChange,onClick:e.onClick,onBlur:e.onBlur,onFocus:e.onFocus,onKeyUp:e.onKeyUp,onKeyDown:e.onKeyDown},e.domNodeProperties)),e.children,e.barContentSlot?(0,J.jsxs)("div",{className:u+"__bar",children:[e.barContentSlot,e.characterCount&&m?(0,J.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&m?(0,J.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),h="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("label",{ref:d,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[u,"mdc-text-field","mdc-text-field--textarea"].concat(""===e.value?"mdc-text-field--textarea":u+"--has-content").concat(e.disabled?"mdc-text-field--disabled":[]).concat("mdc-text-field--filled").concat(e.characterCount&&m?"mdc-text-field--with-internal-counter":[]).concat(e.invalid?"mdc-text-field--invalid":[]).join(" "),children:[!1===(null==(i=e.componentProperties)?void 0:i.ripple)||e.children?"":(0,J.jsx)("span",{className:"mdc-text-field__ripple"}),(0,J.jsx)("span",{className:"mdc-floating-label",id:l+"-label",children:e.label}),e.resizeable?(0,J.jsx)("span",{className:"mdc-text-field__resizer",children:_}):_,!1!==(null==(o=e.componentProperties)?void 0:o.ripple)?(0,J.jsx)("span",{className:"mdc-line-ripple"}):""]}),h.children?(0,J.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,J.jsx)("div",{className:["mdc-text-field-helper-text"].concat(h.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:l+"-helper",children:null!=(a=e.helpText)&&a.children?e.helpText.children:e.helpText})}):""]})})),ye=(0,X.forwardRef)((function(e,t){var r=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{input:r,eventMapper:{blur:function(e){var t;if(null!=(t=r.current)&&t.input.current){var n=new Event("blur");n.detail=e,r.current.input.current.dispatchEvent(n)}},focus:function(e){var t;if(null!=(t=r.current)&&t.input.current){var n=new Event("focus");n.detail=e,r.current.input.current.dispatchEvent(n)}},input:function(e,t){var n;if(null!=(n=r.current)&&n.input.current){var i=new Event("input");i.detail=t,r.current.input.current.value=String(e),r.current.input.current.dispatchEvent(i)}}}}})),(0,J.jsx)(be,W()({ref:r},e,{children:e.children}))})),ge={textInput:"text-input",codeEditor:"code-editor",cmContent:"cm-content",cmActiveLine:"cm-activeLine",cmGutters:"cm-gutters",cmActiveLineGutter:"cm-activeLineGutter",cmFocused:"cm-focused",codeEditorHasContent:"code-editor--has-content",codeEditorView:"code-editor__view",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",richtextEditorView:"richtext-editor__view",tiptap:"tiptap",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},Ee=ce.autocompletion?[].concat(ce.closeBracketsKeymap,pe.defaultKeymap,me.searchKeymap,pe.historyKeymap,de.foldKeymap,ce.completionKeymap,fe.lintKeymap):[],xe=he.EditorView?[(0,he.lineNumbers)(),(0,he.highlightActiveLineGutter)(),(0,he.highlightSpecialChars)(),(0,pe.history)(),(0,de.foldGutter)(),(0,he.drawSelection)(),(0,he.dropCursor)(),_e.EditorState.allowMultipleSelections.of(!0),(0,de.indentOnInput)(),(0,de.syntaxHighlighting)(de.defaultHighlightStyle,{fallback:!0}),(0,de.bracketMatching)(),(0,ce.closeBrackets)(),(0,ce.autocompletion)(),(0,he.rectangularSelection)(),(0,he.crosshairCursor)(),(0,he.highlightActiveLine)(),(0,me.highlightSelectionMatches)(),he.keymap.of(Ee)]:[],Ae=ge,Pe=(0,X.forwardRef)((function(e,t){var r,n,i;if(!(ce.autocompletion&&pe.history&&de.syntaxHighlighting&&fe.lintKeymap&&me.searchKeymap&&_e.EditorState&&he.EditorView))throw Error("Missing codemirror dependencies.");var o=null!==(r=e.value)&&void 0!==r?r:"",a=(0,X.useRef)(null),s=(0,X.useRef)(null),l=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{input:a,editorView:s,editorViewReference:l}})),(0,X.useEffect)((function(){var t;if(l.current){var r=_e.EditorState.create({doc:String(o),extensions:[xe,he.EditorView.updateListener.of((function(t){t.startState.doc.toString()!==t.state.doc.toString()&&function(t){var r;if(!e.disabled){var n=t.state.doc.toString();null==(r=a.current)||r.eventMapper.input(n,t),e.onChange&&e.onChange(n)}}(t)})),null!=(t=e.editor)&&t.mode?e.editor.mode:[]]});return s.current=new he.EditorView({state:r,parent:l.current}),function(){s.current&&(s.current.destroy(),s.current=null)}}}),[l.current,null==(n=e.editor)||null==(n=n.mode)?void 0:n.language.name]),(0,X.useEffect)((function(){s.current&&e.value!==s.current.state.doc.toString()&&s.current.state.update({changes:{from:0,insert:_e.Text.empty}},{changes:{from:0,insert:String(e.value)}})}),[s.current,e.value]);var u=null==(i=a.current)||null==(i=i.input)||null==(i=i.current)||null==(i=i.input)?void 0:i.current;return(0,X.useEffect)((function(){var e=new ResizeObserver((function(){var e=null==u?void 0:u.clientHeight;if(l.current&&e){var t=l.current.querySelector(".cm-scroller");if(t){var r=String(e)+"px";return l.current.style.height=r,void(t.style.height=r)}}}));return u&&e.observe(u),function(){e.disconnect()}}),[l.current,u]),(0,J.jsx)(ye,W()({},e,{ref:a,value:o,classNamePrefix:Ae.codeEditor,onLabelClick:function(){var e;null==(e=l.current)||e.focus()},children:(0,J.jsx)("div",{ref:l,onBlur:function(t){var r;null==(r=a.current)||r.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var r;null==(r=a.current)||r.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},className:Ae.codeEditorView+" mdc-text-field__input"})}))})),we=L(38),Te=L(39),Oe=L.n(Te),Ce=(0,X.createContext)(null),Ne=function(e){var t,r=e.action,n=e.activeIndicator,i=e.checkedIconName,o=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,X.useContext)(Ce);if(!l)return null;var u=!0;o?u=o(l.can().chain().focus()).run():null!==o&&(u=r(l.can().chain().focus()).run());var c=Boolean(n&&l.isActive(n)),p=null!==(t=null!=s?s:n)&&void 0!==t?t:a;return(0,J.jsx)(le.default,{value:p,children:(0,J.jsx)($.A,{value:c,disabled:!u,classNames:c?["mdc-icon-button--checked"]:[],onClick:function(e){e.stopPropagation(),r(l.chain().focus()).run()},size:"extra-small",icon:a,onIcon:null!=i?i:a,domNodeProperties:{"aria-label":p}})})},Se=function(e){var t=e.editor;return t?(0,J.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,J.jsxs)(Ce.Provider,{value:t,children:[(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,J.jsx)(Ne,{action:function(e){return e.undo()},iconName:"undo"}),(0,J.jsx)(Ne,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,J.jsx)(Ne,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,J.jsx)(Ne,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,J.jsx)(Ne,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,J.jsx)(Ne,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},Le=ge,Ie=(0,X.forwardRef)((function(e,t){var r,n,i,o,a;if(!we.useEditor||Oe().isDummy)throw Error("Missing tiptap dependencies.");var s=null!==(r=e.value)&&void 0!==r?r:"",l=(0,X.useRef)(null),u=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{input:l,editorViewReference:u}}));var c=(null==(n=e.editor)?void 0:n.extensions)||[Oe().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})],p=(0,we.useEditor)(W()({extensions:c,editable:!e.disabled,content:String(s),onBlur:function(t){var r;null==(r=l.current)||r.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var r;null==(r=l.current)||r.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},onUpdate:function(t){var r,n=t.editor.getHTML();null==(r=l.current)||r.eventMapper.input("<p></p>"===n?"":n,t),e.onChange&&e.onChange(n,{contentTree:t.editor.getJSON()})}},(null==(o=e.editor)?void 0:o.options)||{})),d=p.getHTML(),f=null==(a=l.current)||null==(a=a.input)||null==(a=a.current)||null==(a=a.input)||null==(a=a.current)?void 0:a.clientHeight;return(0,X.useEffect)((function(){u.current&&f&&(u.current.style.height=String(f+8)+"px")}),[u.current,f]),(0,J.jsx)(ye,W()({},e,{ref:l,barContentSlot:(0,J.jsx)(Se,{editor:p}),value:"<p></p>"===d?"":d,classNamePrefix:Le.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,J.jsx)(we.EditorContent,{className:Le.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:u})}))})),Me=!(void 0===window),De=Me?null==(D=L(40))?void 0:D.default:null,Re=Me?null==(R=L(41))?void 0:R.default:null,je=Me?null==(k=L(42))?void 0:k.default:null,qe=ge,ke={},Ue={injectCSS:!0,enableContentCheck:!0},We=function(e,t){return(0,ue.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 Be(e){"Enter"===e.code&&e.stopPropagation()}function Ke(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var Ve=L(7),Xe=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},Fe=function(e){return new Date(Math.round(1e3*e)).toISOString()},ze=function(e){return e instanceof Date?e.getTime()/1e3:e},He={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t){var r,n,i,o=t.currency.format,a=null!==(r=null==o||null==(n=o.final.options)?void 0:n.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+a:e===-1/0?"- Infinity "+a:isNaN(e)?"unknown":new Intl.NumberFormat(Je.locales,W()({style:"currency"},null!==(i=null==o?void 0:o.final.options)&&void 0!==i?i:{})).format(e)}}},parse:function(e,t,r){return t.float.parse?t.float.parse(e,t,r):NaN},type:"text"},datetime:{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e+":00.000Z"),i=isNaN(n);i&&(n=Date.parse(e+".000Z"),(i=isNaN(n))&&(n=Date.parse(e),e=isNaN(n)?parseFloat(e):n/1e3)),i||(e=n/1e3)}return isNaN(e)&&(e=0),r?Fe(e):e},type:"datetime-local"},"datetime-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e-60*new Date(1e3*e).getTimezoneOffset());return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e+":00.000Z"),i=isNaN(n);i&&(n=Date.parse(e+".000Z"),(i=isNaN(n))&&(n=Date.parse(e),e=isNaN(n)?parseFloat(e):n/1e3)),i||(e=n/1e3+60*new Date(n).getTimezoneOffset())}return isNaN(e)&&(e=0),r?Fe(e):e}},date:{format:{final:{transform:function(e,t,r){var n;if(null==(n=t.datetime.format)||!n.final.transform)throw new Error("Missing datetime final format transformation configured. Date formatting depends on it.");var i=t.datetime.format.final.transform(e,t,r),o=i.indexOf("T");return-1===o?i:i.substring(0,o)}}},parse:function(e,t,r){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date parsing depends on it.");return t.datetime.parse(e,t,r)},useISOString:!0},"date-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;e-=60*new Date(1e3*e).getTimezoneOffset();var i=Fe(e);return i.substring(0,i.lastIndexOf("T"))}}},parse:function(e,t,r){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date local parsing depends on.");return(e=t.datetime.parse(e,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?Fe(e):e},type:"date"},time:{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e),o=i.indexOf("T");return-1===o?i:(i=i.substring(o+1,i.length-1),r.step&&r.step>=60&&r.step%60==0?i.substring(0,i.lastIndexOf(":")):i)}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e);if(isNaN(n)){var i=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,r,n,i){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(r)+(n&&void 0!==i?parseFloat(i):0))})));e=isNaN(i)?0:i}else e=n/1e3}return isNaN(e)&&(e=0),r?Fe(e):e}},"time-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=new Date(1e3*e),o=i.getHours(),a=i.getMinutes(),s=(o<10?"0":"")+String(o)+":"+(a<10?"0":"")+String(a);if(!(r.step&&r.step>=60&&r.step%60==0)){var l=i.getSeconds();return s+":"+(l<10?"0":"")+String(l)}return s}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e);if(isNaN(n)){var i=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,r,n,i){var o=new Date(0);return o.setHours(parseInt(t)),o.setMinutes(parseInt(r)),n&&void 0!==i&&o.setSeconds(parseInt(i)),String(o.getTime()/1e3)})));e=isNaN(i)?0:i}else e=n/1e3}return isNaN(e)&&(e=0),r?Fe(e):e},type:"time"},float:{format:{final:{transform:function(e,t){var r=t.float.format;return r?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(Je.locales,r.final.options||{}).format(e):String(e)}}},parse:function(e,t,r){var n=r.maximum,i=r.minimum;return"string"==typeof e&&(e=parseFloat("de-DE"===Je.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),("number"==typeof i&&i>=0&&e<0||"number"==typeof n&&n<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t){var r,n=t.integer.format;return new Intl.NumberFormat(Je.locales,W()({maximumFractionDigits:0},null!==(r=null==n?void 0:n.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t,r){var n=r.maximum,i=r.minimum;return"string"==typeof e&&(e=parseInt("de-DE"===Je.locales[0]?e.replace(/[,.]/g,""):e)),("number"==typeof i&&i>=0&&e<0||"number"==typeof n&&n<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};function Ge(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $e(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ye=He,Ze=function(e,t){var r,n,i,o,a,s,l=(0,X.useId)(),u=null!==(r=e.id)&&void 0!==r?r:l;(0,X.useEffect)((function(){var e;if(null!=(e=x.current)&&null!=(e=e.input)&&e.current){var t,r,n,i,o=x.current.input.current;if(null!=(t=o.input)&&t.current&&null!=(n=(o=null==(r=o.input)?void 0:r.current).input)&&n.current&&(o=null==(i=o.input)?void 0:i.current),!o)return;var a=o,s={},l=[];Ee.valid?(l.push("ariaErrormessage"),l.push("ariaInvalid")):(s.ariaErrormessage=u+"-error-message",s.ariaInvalid="true"),Le?("search"!==a.getAttribute("type")&&(s.role="searchbox"),s.ariaAutocomplete=Ee.searchSelection?"inline":"list"):(l.push("searchbox"),l.push("ariaAutocomplete")),Ee.showDeclaration?s.ariaDescribedby=u+"-declaration":l.push("ariaDescribedby");for(var c=W()({},s,Ee.attributes||{}),p=0,d=Object.entries(c);p<d.length;p++){var f=d[p],m=f[0],_=f[1],h=(0,V.camelCaseToDelimited)(m);"boolean"==typeof _?_?a.setAttribute(h,""):a.removeAttribute(h):a.setAttribute(h,String(_))}for(var v=0,b=l;v<b.length;v++){var y=b[v],g=(0,V.camelCaseToDelimited)(y);a.hasAttribute(g)&&a.removeAttribute(g)}}})),(0,X.useEffect)((function(){if($e){var e,t=null==(e=A.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){t.hasAttribute("aria-expanded")||t.setAttribute("aria-expanded","false");var r=t.querySelector(".mdc-select__dropdown-icon-active");r&&!r.hasAttribute("aria-hidden")&&r.setAttribute("aria-hidden","true");var n=t.querySelector(".mdc-select__dropdown-icon-inactive");n&&!n.hasAttribute("aria-hidden")&&n.setAttribute("aria-hidden","true")}}})),(0,X.useEffect)((function(){if($e){var e,t=null==(e=A.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var r=function(e){Ee.disabled&&e.stopPropagation()};return t.addEventListener("keydown",r,!0),function(){t.removeEventListener("keydown",r,!0)}}}})),(0,X.useEffect)((function(){Ee.triggerInitialPropertiesConsolidation&&m(new Event("genericInitialPropertiesConsolidation"))}),[]);var c=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),v((0,ue.parseValue)(Ee,Ee.default,Je.transformer,!ye&&Ee.model.trim)))},r=(0,V.equals)(Ee.value,Ee.default);return{icon:(0,J.jsx)(z(),{in:!r,children:De&&!De.isDummy&&je?(0,J.jsx)(De,{animation:je,reverse:!0}):(0,J.jsx)(G.A,{icon:"clear"})}),componentProperties:{"aria-hidden":r?"true":"false","tab-index":r?-1:0},onClick:t,onKeyDown:t,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),D((function(t){return void 0===t&&(t=Ee.hidden),Ee.hidden=!t,m(e),Ee.hidden})))};return{icon:De&&!De.isDummy&&Re?(0,J.jsx)(De,{animation:Re,reverse:!Ee.hidden}):Ee.hidden?"lock_open":"lock",onClick:n,onKeyDown:n,strategy:"component",tooltip:(Ee.hidden?"Show":"Hide")+" password"}}var i;return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.domNodeProperties=null!==(i=e.domNodeProperties)&&void 0!==i?i:{},e.domNodeProperties["tab-index"]=-1,e.domNodeProperties["aria-hidden"]=!0)),e},p=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=!0),"boolean"==typeof t?r?(0,J.jsx)(z(),{in:t,children:e}):t?e:"":r?(0,J.jsx)(z(),W()({},t,{children:e})):t.in?e:""},d=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=W()({},e)).tooltip;var r=W()({},e);e.strategy="component",e.icon=(0,J.jsx)(le.default,{value:t,children:(0,J.jsx)(G.A,W()({},r))})}return e},f=function(e){var t=(0,ue.getConsolidatedProperties)(function(e){var t,r=(0,ue.mapPropertiesIntoModel)(e,Je.defaultProperties.model);return r.model.value=(0,ue.parseValue)(r,r.model.value,te,!ye&&(null==(t=e.model)?void 0:t.trim)),We(r,r.model.state),r}(e));return t.selection||"boolean"!==t.type||(t.selection=[{label:"No",value:!1},{label:"Yes",value:!0}]),["plain","text"].includes(t.editor)&&(t.selectableEditor=!1),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,ue.formatValue)(t,t.value,te,!t.focused)),t},m=function(e){(0,V.extend)(!0,Ee,f(Ee)),(0,ue.triggerCallbackIfExists)(Ee,"change",ye,Ee,e)},_=function(e){e.preventDefault(),e.stopPropagation(),L((function(t){var r=t.editorIsActive;return Ee.editorIsActive=!r,m(e),(0,ue.triggerCallbackIfExists)(Ee,"changeEditorIsActive",ye,Ee.editorIsActive,e,Ee),{editorIsActive:Ee.editorIsActive,selectionIsUnstable:!0}}))},h=function(e){F((function(t){return Ee.showDeclaration=!t,m(e),(0,ue.triggerCallbackIfExists)(Ee,"changeShowDeclaration",ye,Ee.showDeclaration,e,Ee),Ee.showDeclaration}))},v=function(e,t){var r;if(void 0===t&&(t=-1),q(!0),(0,V.isObject)(e)){var n=(r=e).target||r.detail;Ee.value=n?void 0===n.value?null:n.value:e}else Ee.value=e;var i=function(){ve((function(e){if(!ge&&e.representation===Ee.representation&&!Ee.suggestionCreator&&-1===t)return e;var n=W()({},e,{representation:Ee.representation});if(!ye&&(0,V.equals)(e.value,Ee.value))return n;n.value=Ee.value;var i=!1;return e.modelState.pristine&&(Ee.dirty=!0,Ee.pristine=!1,i=!0),m(r),We(Ee,e.modelState)&&(i=!0),(0,ue.triggerCallbackIfExists)(Ee,"changeValue",ye,Ee.value,r,Ee),i&&Ee.model.state&&(n.modelState=Ee.model.state,(0,ue.triggerCallbackIfExists)(Ee,"changeState",ye,Ee.model.state,r,Ee)),($e||-1!==t)&&(0,ue.triggerCallbackIfExists)(Ee,"select",ye,r,Ee),n}))},o=!ye&&Ee.model.trim;if(Ee.representation=-1!==t?Ne[t]:"string"==typeof Ee.value?Ee.value:(0,ue.formatValue)(Ee,Ee.value,te),Le)if(Ee.suggestionCreator){var a=new AbortController,s=function(e){if(!a.signal.aborted){if(oe((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===t){var r=(0,ue.getValueFromSelection)(Ee.representation,(0,ue.normalizeSelection)(e));null!==r||Ee.searchSelection?Ee.value=r:Ee.value=(0,ue.parseValue)(Ee,Ee.representation,te,o)}i()}},l=Ee.suggestionCreator({abortController:a,properties:Ee,query:Ee.representation});null!=l&&l.then?(oe((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a})),ve((function(e){return W()({},e,{representation:Ee.representation})})),l.then(s,(function(){}))):s(l)}else{if(-1===t){var u=(0,ue.getValueFromSelection)(Ee.representation,pe);null!==u||Ee.searchSelection?Ee.value=u:Ee.value=(0,ue.parseValue)(Ee,Ee.representation,te,o)}i()}else Ee.value=(0,ue.parseValue)(Ee,Ee.value,te,o),i()},b=function(e){g(e),(0,ue.triggerCallbackIfExists)(Ee,"click",ye,e,Ee),E(e)},y=function(e){(0,ue.triggerCallbackIfExists)(Ee,"focus",ye,e,Ee),E(e)},g=function(e){(0,ue.triggerCallbackIfExists)(Ee,"selectionChange",ye,e,Ee)},E=function(e){ve((function(t){var r=!1;t.modelState.focused||(Ee.focused=!0,r=!0),t.modelState.untouched&&(Ee.touched=!0,Ee.untouched=!1,r=!0);var n=t;return r&&(m(e),n=W()({},t,{modelState:Ee.model.state}),(0,ue.triggerCallbackIfExists)(Ee,"changeState",ye,Ee.model.state,e,Ee)),(0,ue.triggerCallbackIfExists)(Ee,"touch",ye,e,Ee),n}))},x=(0,X.useRef)(null),A=(0,X.useRef)(null),P=(0,X.useRef)(null),w=(0,ue.translateKnownSymbols)(e),T=(0,X.useState)({end:0,start:0}),O=T[0],C=T[1],N=(0,X.useState)({editorIsActive:w.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),S=N[0],L=N[1],I=(0,X.useState)(),M=I[0],D=I[1],R=(0,X.useState)(!1),j=R[0],q=R[1],k=(0,X.useState)(!1),U=k[0],F=k[1],Y=(0,ue.determineInitialValue)(w,Je.defaultProperties.model.default);Y instanceof Date&&(Y=Y.getTime()/1e3);var Z=(0,V.extend)(!0,(0,V.copy)(Je.defaultProperties),w),Q=Z.type||(null==(n=Z.model)?void 0:n.type)||"string",te=Z.transformer?W()({},Je.transformer,((i={})[Q]=(0,V.extend)(!0,(0,V.copy)(Je.transformer[Q])||{},Z.transformer),i)):Je.transformer,re=(0,X.useState)(),ne=re[0],oe=re[1];(Z.selection||null!=(o=Z.model)&&o.selection)&&(ne=Z.selection||(null==(a=Z.model)?void 0:a.selection));var ce,pe=ne instanceof AbortController?[]:(0,ue.normalizeSelection)(ne,Z.labels),de=ne instanceof AbortController?[[],[]]:(0,ue.getLabelAndValues)(pe),fe=de[0],me=de[1],_e=(0,X.useState)((function(){return{modelState:W()({},Je.defaultModelState),representation:(0,ue.determineInitialRepresentation)(Z,Je.defaultProperties,Y,te,pe),value:Y}})),he=_e[0],ve=_e[1],ye=!Z.enforceUncontrolled&&(void 0!==(null==(s=w.model)?void 0:s.value)||void 0!==w.value)&&Boolean(w.onChange||w.onChangeValue),ge=ye&&void 0!==w.representation;null!==Z.cursor&&"object"==typeof Z.cursor||(Z.cursor={}),void 0===Z.cursor.end&&(Z.cursor.end=O.end),void 0===Z.cursor.start&&(Z.cursor.start=O.start),void 0===Z.editorIsActive&&(Z.editorIsActive=S.editorIsActive),void 0===Z.hidden&&(Z.hidden=M),void 0===Z.representation&&(Z.representation=he.representation),void 0===Z.showDeclaration&&(Z.showDeclaration=U),(0,ue.deriveMissingPropertiesFromState)(Z,he),void 0===Z.value?void 0===Z.representation&&void 0===(null==(ce=Z.model)?void 0:ce.value)&&(Z.representation=he.representation):ge||Z.value===he.value||(Z.representation=void 0);var Ee=f(Z);void 0===Ee.hidden&&(Ee.hidden=Ee.name.startsWith("password")),Ee.cursor&&!(0,V.equals)(Ee.cursor,O)&&C(Ee.cursor),Ee.editorIsActive!==S.editorIsActive&&L(W()({},S,{editorIsActive:Ee.editorIsActive})),Ee.hidden!==M&&D(Ee.hidden),Ee.showDeclaration!==U&&F(Ee.showDeclaration);var xe={modelState:Ee.model.state,representation:Ee.representation,value:Ee.value||null};(ye||(0,V.equals)(Ee.value,he.value)&&Ee.representation===he.representation)&&(0,V.equals)(Ee.model.state,he.modelState)||ve(xe),ye&&(ve=(0,ue.wrapStateSetter)(ve,xe)),(0,X.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ee.model.state},r=Ge(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=r()).done;){var n,i=e.value;Object.prototype.hasOwnProperty.call(w,i)||(t[i]=null!==(n=Ee[i])&&void 0!==n&&n)}return ge||(t.representation=Ee.representation),ye||(t.value=Ee.value),{properties:Ee,references:{input:x,menu:P,wrapper:A},state:t}}));var Ae={ref:x,id:u,componentProperties:Ee.componentProperties,domNodeProperties:Ee.domNodeProperties,onClick:b,onFocus:function(e){q(!0),y(e)},disabled:Ee.disabled,invalid:Ee.invalid&&Ee.showValidationState&&(Ee.showInitialValidationState||Ee.visited),helpText:{children:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(z(),{in:Ee.selectableEditor&&"string"===Ee.type&&"plain"!==Ee.editor,children:(0,J.jsx)($.A,{domNodeProperties:{"aria-label":Ee.editorIsActive?"plain":Ee.editor.startsWith("code")?"code":"richtext"},icon:Ee.editorIsActive?"subject":Ee.editor.startsWith("code")?"code":"text_format",onClick:_})}),(0,J.jsx)(z(),{in:Boolean(Ee.declaration),children:(0,J.jsx)($.A,{"aria-expanded":Ee.showDeclaration?"true":"false","aria-label":"declaration",value:Ee.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:h})}),(0,J.jsx)(z(),{id:u+"-declaration",in:Ee.showDeclaration,children:Ee.declaration}),(0,J.jsx)(z(),{in:!Ee.showDeclaration&&Ee.invalid&&Ee.showValidationState&&(Ee.showInitialValidationState||Ee.visited),children:(0,J.jsx)(H.A,{applyToChildren:!0,children:(0,J.jsx)("span",{id:u+"-error-message",children:(0,ue.renderMessage)(Ee.invalidMaximum&&Ee.maximumText||Ee.invalidMaximumLength&&Ee.maximumLengthText||Ee.invalidMinimum&&Ee.minimumText||Ee.invalidMinimumLength&&Ee.minimumLengthText||Ee.invalidInvertedPattern&&Ee.invertedPatternText||Ee.invalidPattern&&Ee.patternText||Ee.invalidRequired&&Ee.requiredText,W()({formatValue:function(e){return(0,ue.formatValue)(Ee,e,te)}},Ee))})})})]}),persistent:!0},name:Ee.name||Ee.description,label:Ee.description||Ee.name},we={placeholder:Ee.placeholder,characterCount:"number"==typeof Ee.maximumLength&&!isNaN(Ee.maximumLength)&&Ee.maximumLength>=0,value:Ee.representation,domNodeProperties:W()({"tab-index":Ee.disabled?"0":"-1"},Ee.domNodeProperties),onKeyUp:function(e){e.code&&(g(e),(0,ue.triggerCallbackIfExists)(Ee,"keyUp",ye,e,Ee))}},Te=!Ee.selection&&"string"===Ee.type&&Ee.editorIsActive&&("code"===Ee.editor||Ee.editor.startsWith("code(")&&Ee.editor.endsWith(")")||"richtext"===Ee.editor||Ee.editor.startsWith("richtext(")&&Ee.editor.endsWith(")")),Oe=Te&&Ee.editor.startsWith("code"),Ce=[],Ne=[],Se=[],Le=Boolean(Ee.suggestionCreator||fe.length&&(Ee.searchSelection||Ee.suggestSelection));if(Le&&fe.length){Ee.suggestSelection=!Ee.searchSelection;for(var Me,ke=0,Ve=Ge(fe);!(Me=Ve()).done;){var Xe=Me.value;if((0,V.isFunction)(Ee.children)){var Fe=Ee.children({index:ke,normalizedSelection:pe,properties:Ee,query:Ee.representation,suggestion:Xe,value:me[ke]});Fe&&(Ce.push(Fe),Ne.push(Xe),Se.push(me[ke]))}else if(!Ee.representation||Ee.suggestionCreator||Ke(Xe,Ee.representation)){var ze,He=(0,V.mark)(Xe,(null==(ze=Ee.representation)?void 0:ze.split(" "))||"",{marker:function(e){return(0,J.jsx)("span",{className:qe.textInputSuggestionsSuggestionMark,children:e})},normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,J.jsx)("span",{children:e},t)}));Ce.push(He),Ne.push(Xe),Se.push(me[ke])}ke+=1}}var $e=(Boolean(pe)||Boolean(Ee.labels))&&!Le,Ye={};"number"===Ee.type?(Ye.step=Ee.step,Ee.maximum!==1/0&&(Ye.max=Ee.maximum),Ee.minimum!==-1/0&&(Ye.min=Ee.minimum)):"string"===Ee.type?(Ee.maximumLength>=0&&Ee.maximumLength!==1/0&&(Ye.maximumLength=Ee.maximumLength),Ee.minimumLength>0&&(Ye.minimumLength=Ee.minimumLength),"plain"!==Ee.editor&&(Ye.rows=Ee.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(Ee.type)&&(Ye.step=Ee.step,Ee.maximum!==1/0&&(Ye.max=(0,ue.formatValue)(Ee,Ee.maximum,te)),Ee.minimum!==-1/0&&(Ye.min=(0,ue.formatValue)(Ee,Ee.minimum,te)));var Ze={};if(Te)if(Ee.editor.startsWith("code(")&&Ee.editor.endsWith(")")){var Qe=Ee.editor.substring(5,Ee.editor.length-1);Qe&&(Ze.editor={},B.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(Qe.toLowerCase())?Ze.editor.mode=(0,B.javascript)({jsx:!0,typescript:!0}):K.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(Qe.toLowerCase())&&(Ze.editor.mode=(0,K.css)()))}else Ze.editor=Ue;return(0,J.jsx)(se.default,{strict:Je.strict,themeConfiguration:Ee.themeConfiguration,tooltip:Ee.tooltip,children:(0,J.jsxs)("div",W()({ref:A,className:[qe.textInput].concat(Ee.className).join(" "),style:Ee.styles,onBlur:function(e){ve((function(t){var r;if(e.relatedTarget&&null!=(r=A.current)&&r.contains(e.relatedTarget))return t;q(!1);var n=!1,i=!1;if(t.modelState.focused&&(Ee.focused=!1,n=!0,i=!0),t.modelState.visited||(Ee.visited=!0,n=!0,i=!0),!Le||Ee.suggestSelection){var o=(0,ue.getValueFromSelection)(Ee.representation,pe);null===o?(Ee.value=(0,ue.parseValue)(Ee,Ee.value,te,Ee.model.trim),Ee.representation=(0,ue.formatValue)(Ee,Ee.value,te)):Ee.value=o}return(0,V.equals)(t.value,Ee.value)&&t.representation===Ee.representation||(n=!0),n&&m(e),(0,V.equals)(t.value,Ee.value)||(0,ue.triggerCallbackIfExists)(Ee,"changeValue",ye,Ee.value,e,Ee),i&&(0,ue.triggerCallbackIfExists)(Ee,"changeState",ye,Ee.model.state,e,Ee),(0,ue.triggerCallbackIfExists)(Ee,"blur",ye,e,Ee),n?{modelState:Ee.model.state,representation:Ee.representation,value:Ee.value}:t}))},onKeyDown:function(e){var t,r;!Ee.disabled&&Le&&"ArrowDown"===e.code&&e.target===(null==(t=x.current)||null==(t=t.input)?void 0:t.current)&&(null==(r=P.current)||r.focusItem(0)),($e||"string"===Ee.type&&"plain"!==Ee.editor)&&Be(e),(0,ue.triggerCallbackIfExists)(Ee,"keyDown",ye,e,Ee)}},Le?{role:"search"}:{},{children:[p((0,J.jsx)(ie,W()({},Ae,{name:Ee.name,onChange:v,onClick:b,onKeyDown:function(e){Ee.disabled||"Tab"===e.code||e.preventDefault()},options:pe,value:Ee.value})),$e),Te?Oe?p((0,J.jsx)(Pe,W()({},Ae,we,Ye,{onChange:v},Ze,{ref:x})),Te):(0,J.jsx)(Ie,W()({},Ae,we,Ye,{onChange:v},Ze,{ref:x})):"",p((0,J.jsxs)("div",{children:[Le?(0,J.jsx)(ee,{ref:P,onKeyDown:Be,pending:ne instanceof AbortController,classNames:[qe.textInputSuggestions],itemClassNames:[qe.textInputSuggestionsSuggestion],pendingClassNames:[qe.textInputSuggestionsPending],onFocus:y,onSelect:function(e){v(Se[e.detail.index],e.detail.index),q(!1)},open:Boolean(Ne.length)&&j&&!(1===Ne.length&&Ne[0]===Ee.representation),options:Ce}):"","string"===Ee.type&&"plain"!==Ee.editor?(0,J.jsx)(be,W()({},Ae,we,Ye,{ref:x,onChange:v})):(0,J.jsx)(ae,W()({},Ae,we,Ye,{onChange:v,leadingIcon:d(c(Ee.leadingIcon)),trailingIcon:d(c(Ee.trailingIcon)),type:function(e){var t,r;return"string"===e.type?e.hidden?"password":Le?"search":"text":null!==(t=null==(r=te[e.type])?void 0:r.type)&&void 0!==t?t:e.type}(Ee)}))]}),!(Te||$e),Ee.editor.startsWith("code"))]}))})};Ze.displayName="TextInput";var Je=(0,X.memo)((0,X.forwardRef)(Ze));Je.wrapped=Ze,Je.webComponentAdapterWrapped="react",Je.defaultModelState=Ve.defaultModelState,Je.defaultProperties=W()({},Ve.defaultProperties,{cursor:void 0,model:W()({},Ve.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),Je.locales=V.LOCALES,Je.propTypes=Ve.propertyTypes,Je.renderProperties=Ve.renderProperties,Je.strict=!1,Je.transformer=He;var Qe=Je;return M}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__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__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TextInput:function(){return TextInput}});var clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),clientnode_property_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(43),react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__),TextInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default()(react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1___default(),"TextInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximum:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumLength:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimum:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumLength:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidPattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.string}});return __webpack_exports__.default=TextInput,__webpack_exports__}()}));
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("clientnode/property-types"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@codemirror/autocomplete"),require("@codemirror/commands"),require("@codemirror/lang-css"),require("@codemirror/lang-javascript"),require("@codemirror/language"),require("@codemirror/lint"),require("@codemirror/search"),require("@codemirror/state"),require("@codemirror/view"),require("@material/textfield"),require("@rmwc/circular-progress"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/typography"),require("@tiptap/react"),require("@tiptap/starter-kit"),require("clientnode"),require("react"),require("react-generic-animate"),require("react-generic-dummy"),require("react-generic-tools"),require("react-useanimations"),require("react-useanimations/lib/lock"),require("react-useanimations/lib/plusToX"),require("react/jsx-runtime"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"));else if("function"==typeof define&&define.amd)define(["clientnode/property-types","@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@codemirror/autocomplete","@codemirror/commands","@codemirror/lang-css","@codemirror/lang-javascript","@codemirror/language","@codemirror/lint","@codemirror/search","@codemirror/state","@codemirror/view","@material/textfield","@rmwc/circular-progress","@rmwc/icon","@rmwc/icon-button","@rmwc/menu","@rmwc/select","@rmwc/textfield","@rmwc/theme","@rmwc/typography","@tiptap/react","@tiptap/starter-kit","clientnode","react","react-generic-animate","react-generic-dummy","react-generic-tools","react-useanimations","react-useanimations/lib/lock","react-useanimations/lib/plusToX","react/jsx-runtime","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator","react-dom","react-dom/client","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper"],t);else{var r="object"==typeof exports?t(require("clientnode/property-types"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@codemirror/autocomplete"),require("@codemirror/commands"),require("@codemirror/lang-css"),require("@codemirror/lang-javascript"),require("@codemirror/language"),require("@codemirror/lint"),require("@codemirror/search"),require("@codemirror/state"),require("@codemirror/view"),require("@material/textfield"),require("@rmwc/circular-progress"),require("@rmwc/icon"),require("@rmwc/icon-button"),require("@rmwc/menu"),require("@rmwc/select"),require("@rmwc/textfield"),require("@rmwc/theme"),require("@rmwc/typography"),require("@tiptap/react"),require("@tiptap/starter-kit"),require("clientnode"),require("react"),require("react-generic-animate"),require("react-generic-dummy"),require("react-generic-tools"),require("react-useanimations"),require("react-useanimations/lib/lock"),require("react-useanimations/lib/plusToX"),require("react/jsx-runtime"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper")):t(e["clientnode/property-types"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@codemirror/autocomplete"],e["@codemirror/commands"],e["@codemirror/lang-css"],e["@codemirror/lang-javascript"],e["@codemirror/language"],e["@codemirror/lint"],e["@codemirror/search"],e["@codemirror/state"],e["@codemirror/view"],e["@material/textfield"],e["@rmwc/circular-progress"],e["@rmwc/icon"],e["@rmwc/icon-button"],e["@rmwc/menu"],e["@rmwc/select"],e["@rmwc/textfield"],e["@rmwc/theme"],e["@rmwc/typography"],e["@tiptap/react"],e["@tiptap/starter-kit"],e.clientnode,e.react,e["react-generic-animate"],e["react-generic-dummy"],e["react-generic-tools"],e["react-useanimations"],e["react-useanimations/lib/lock"],e["react-useanimations/lib/plusToX"],e["react/jsx-runtime"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/regenerator"],e["react-dom"],e["react-dom/client"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__23__,__WEBPACK_EXTERNAL_MODULE__24__,__WEBPACK_EXTERNAL_MODULE__25__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__27__,__WEBPACK_EXTERNAL_MODULE__28__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__30__,__WEBPACK_EXTERNAL_MODULE__19__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__32__,__WEBPACK_EXTERNAL_MODULE__33__,__WEBPACK_EXTERNAL_MODULE__34__,__WEBPACK_EXTERNAL_MODULE__35__,__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__36__,__WEBPACK_EXTERNAL_MODULE__37__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__38__,__WEBPACK_EXTERNAL_MODULE__39__,__WEBPACK_EXTERNAL_MODULE__40__,__WEBPACK_EXTERNAL_MODULE__41__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__6__,__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,__webpack_require__){var __dirname="/",e,t,r,n,i,o,s,a,l,p,c,u;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;module.exports=(e=__webpack_require__(2),t=__webpack_require__(12),r=__webpack_require__(4),n=__webpack_require__(5),i=__webpack_require__(6),o=__webpack_require__(0),s=__webpack_require__(3),a=__webpack_require__(13),l=__webpack_require__(14),p=__webpack_require__(15),c=__webpack_require__(16),u=__webpack_require__(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,r){var n=r(0),i=r.n(n),o=r(1),a=r(2);t.default=function(e){return void 0===e&&(e={}),e=i()({readAttribute:!0,type:a.string},e),function(t,r){if("string"==typeof r){var n,a=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(a,"observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var s=(0,o.camelCaseToDelimited)(r);a.observedAttributes&&!a.observedAttributes.includes(s)&&a.observedAttributes.push(s)}e.type&&(Object.prototype.hasOwnProperty.call(a,"propertyTypes")||(a.propertyTypes=a.propertyTypes?i()({},a.propertyTypes):{}),!a.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(a,r)||(a.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(a,"propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?(0,o.copy)(a.propertiesToReflectAsAttributes):[]),(e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(r)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(r)||"object"==typeof a.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(a.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&a.propertyTypes&&Object.prototype.hasOwnProperty.call(a.propertyTypes,r)&&(n=a.propertyTypes[r]):n=e.writeAttribute,void 0!==n&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(r):a.normalizePropertyTypeList&&(a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes))),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(r,n),"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[r]=n)))),e.alias&&(Object.prototype.hasOwnProperty.call(a,"propertyAliases")||(a.propertyAliases=a.propertyAliases?i()({},a.propertyAliases):{}),!a.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(a,r)||(a.propertyAliases[r]=e.alias))}}}},function(e,t,r){r.d(t,{api:function(){return T}});var n,i,o,a,s=r(4),l=r.n(s),u=r(8),c=r.n(u),p=r(0),d=r.n(p),f=r(3),m=r.n(f),_=r(9),h=r.n(_),v=(r(10),r(5)),b=r.n(v),y=r(1),g=r(2),E=r(6);function x(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var P="undefined"==typeof HTMLElement?function(){}:HTMLElement,w=(n=(0,E.default)({type:g.boolean,writeAttribute:!0}),a=function(e){function t(){var r;return(r=e.call(this)||this).batchAttributeUpdates=!0,r.batchPropertyUpdates=!0,r.batchUpdates=!0,r.batchedAttributeUpdateRunning=!0,r.batchedPropertyUpdateRunning=!0,r.batchedUpdateRunning=!0,r.parent=null,r.rootInstance=null,r.scope=d()({},y.UTILITY_SCOPE),r.domNodeEventBindings=new Map,r.domNodeTemplateCache=new Map,r.externalProperties={},r.ignoreAttributeUpdateObservations=!1,r.internalProperties={},r.outputEventNames=new Set,r.instance=null,c()(r,"isRoot",o,r),r.root=void 0,r.runDomConnectionAndRenderingInSameEventQueue=!1,r.self=t,r.slots={},r.self=r.constructor,r.self._propertiesToReflectAsAttributes||(r.self._propertiesToReflectAsAttributes=r.self.normalizePropertyTypeList(r.self.propertiesToReflectAsAttributes)),r.generateAliasIndex(),r.root=r,r.defineGetterAndSetterInterface(),r}m()(t,e);var r=t.prototype;return r.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.onUpdateAttribute(e,r)},r.onUpdateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)((function(){r.batchedAttributeUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("attributeChanged")}))):this.render("attributeChanged")},r.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,y.timeout)((function(){e.render("connected")}))},r.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=x(this.domNodeEventBindings.values());!(e=t()).done;)for(var r,n=x(e.value.values());!(r=n()).done;)(0,r.value)();this.slots={}},r.defineGetterAndSetterInterface=function(){for(var e,t=this,r=function(){var r=e.value;Object.prototype.hasOwnProperty.call(t,r)&&t.setPropertyValue(r,t[r]),Object.defineProperty(t,r,{configurable:!0,get:function(){return t.getPropertyValue(r)},set:function(e){t.setPropertyValue(r,e),t.triggerPropertySpecificRendering(r,e)}})},n=x((0,y.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[])));!(e=n()).done;)r()},r.getPropertyAlias=function(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},r.getPropertyValue=function(e){var r,n,i=null!=(r=this.instance)&&null!=(r=r.current)&&r.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!=(n=this.instance)&&null!=(n=n.current)&&n.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:i},r.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)},r.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)},r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=t,r)),this.setInternalPropertyValue(e,t)},r.triggerPropertySpecificRendering=function(e,t){var r=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,y.timeout)((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),(0,y.timeout)((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOutputEvents()}))):(r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("propertyChanged"),r.triggerOutputEvents())})));else{var n=this.isStateProperty(e);this.render(n?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&n&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},r.applyBinding=function(e,t){var r=this;if(e.getAttributeNames)for(var n,i=function(){var i=n.value,o="";if(i.startsWith("data-bind-")?o=i.substring(10):i.startsWith("bind-")&&(o=i.substring(5)),o){var a=e.getAttribute(i);if(null===a)return 0;if(o.startsWith("attribute-")||o.startsWith("property-")){var s=(0,y.evaluate)(a,t,!1,!0,e);if(s.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,s.error),0;o.startsWith("attribute-")?e.setAttribute(o.substring(10),s.result):e[(0,y.delimitedToCamelCase)(o.substring(9))]=s.result}else if(o.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var l=r.domNodeEventBindings.get(e);if(o=(0,y.delimitedToCamelCase)(o.substring(3)),null!=l&&l.has(o)){var u=l.get(o);u&&u()}t=d()({console:console,event:void 0,parameters:void 0},t);var c=(0,y.compile)(a,t,!0,!0,e);if(c.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,c.error);else{var p=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.event=n[0],t.parameters=n;try{c.templateFunction.apply(c,c.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+c.scopeNames.join('", "')+'": '+(0,y.represent)(t))}};e.addEventListener(o,p),null==l||l.set(o,(function(){e.removeEventListener(o,p),l.delete(o),0===l.size&&r.domNodeEventBindings.delete(e)}))}}}},o=x(e.getAttributeNames());!(n=o()).done;)i()},r.applyBindings=function(e,t,r){for(void 0===r&&(r=!0);e;){var n;null==(n=e.attributes)||!n.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},r.compileDomNodeTemplate=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r={}),(r=d()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return r.map;if(r.unsafe){var n=e.innerHTML;if(!n&&e.template&&(n=e.template),this.self.hasCode(n)){var i,o=(0,y.compile)("`"+n+"`",t);null==(i=r.map)||i.set(e,{children:[],error:o.error,scopeNames:o.scopeNames,template:n,templateFunction:o.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,p=(0,y.compile)("`"+a+"`",t);null==(c=r.map)||c.set(e,{children:u,error:p.error,scopeNames:p.scopeNames,template:a,templateFunction:p.templateFunction})}for(var f=e.firstChild;f;)r.filter&&!r.filter(f)||u.push(this.compileDomNodeTemplate(f,t,d()({},r,{ignoreComponents:r.ignoreNestedComponents}))),f=f.nextSibling}return r.map},r.evaluateDomNodeTemplate=function(e,t,r){var n,i;if(void 0===t&&(t={}),void 0===r&&(r={}),null!=(n=(r=d()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map)&&n.has(e)||this.compileDomNodeTemplate(e,t,r),null!=(i=r.map)&&i.has(e)){var o=r.map.get(e),a=o.error,s=o.scopeNames,l=o.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&&(r.unsafe?e.innerHTML=u:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",u):e.textContent=u)}}if(!(r.unsafe||r.ignoreComponents&&e.nodeName.toLowerCase().includes("-")))for(var c=e.firstChild;c;)r.filter&&!r.filter(c)||this.evaluateDomNodeTemplate(c,t,d()({},r,{applyBindings:!1,ignoreComponents:r.ignoreNestedComponents})),c=c.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,i=x([].concat(r).reverse());!(n=i()).done;){var o,a=n.value;t.trimSlots&&a.nodeType===Node.TEXT_NODE&&""===(null==(o=a.nodeValue)?void 0:o.trim())||e.after(a)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,r=[];e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r},r.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 r,n=e,i=new Map,o=x(n);!(r=o()).done;){var a=r.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,a)&&i.set(a,t.propertyTypes[a])}return i}return(0,y.convertPlainObjectToMap)(e)},r.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},r.attachExplicitDefinedOutputEventHandler=function(){var e=this;if(!this.self.eventToPropertyMapping)return!1;for(var t=!1,r=function(){var r=i[n];Object.prototype.hasOwnProperty.call(e.internalProperties,r)||(t=!0,e.outputEventNames.add(r),e.setInternalPropertyValue(r,l()(b().mark((function t(){var n,i,o,a,s=arguments;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return t.next=1,e.reflectEventToProperties(r,i);case 1:(a=t.sent)&&(i[0]=a),e.forwardEvent(r,i);case 2:case"end":return t.stop()}}),t)})))))},n=0,i=Object.keys(this.self.eventToPropertyMapping);n<i.length;n++)r();return t},r.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var r=function(){var r=i[n],o=r[0],a=r[1];Object.prototype.hasOwnProperty.call(t.internalProperties,o)||![g.func,"function"].includes(a)||t.self.renderProperties.includes(o)||(t.outputEventNames.add(o),t.setInternalPropertyValue(o,(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e&&t.reflectEventToProperties(o,n),t.forwardEvent(o,n)})))},n=0,i=Object.entries(this.self.propertyTypes);n<i.length;n++)r()},r.triggerOutputEvents=function(){for(var e,t=x(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},r.forwardEvent=function(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,y.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},r.applySlots=function(e,t){for(var r=this,n=0,i=Array.from(e.querySelectorAll("slot"));n<i.length;n++){var o=i[n],a=o.getAttribute("name");if(null===a||"default"===a)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var s,l=x(this.slots.default);!(s=l()).done;){var u=s.value;this.evaluateDomNodeTemplate(u,t)}this.self.replaceDomNodes(o,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(o).map((function(e){return r.grabSlotContent(e)}));else this.slots[a]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[a],t),this.self.replaceDomNodes(o,this.slots[a])):this.slots[a]=this.grabSlotContent(this.self.unwrapDomNode(o).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},r.grabSlotContent=function(e){var t,r,n;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(null==(r=e.firstElementChild)||!r.hasAttribute("data-no-template")||"false"===(null==(n=e.firstElementChild)?void 0:n.getAttribute("data-no-template")))){var i,o,a=e.firstElementChild.value;null==(i=e.classList)||i.remove("web-component-template");var s=e.cloneNode();return null==(o=e.classList)||o.add("web-component-template"),s.innerHTML="",s.template=a,s}return this.self.cloneSlots?e.cloneNode(!0):e},r.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,r=Array.from(this.querySelectorAll("[slot]"));t<r.length;t++){for(var n,i=r[t],o=i.parentNode,a=!0;o;){if(o.nodeName.includes("-")){o===this&&(a=!1);break}o=o.parentNode}if(!a){var s=null==(n=i.getAttribute("slot"))?void 0:n.trim();this.slots[null!=s?s:i.nodeName.toLowerCase()]=this.grabSlotContent(i)}}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=[]},r.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)))},r.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=d()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var r=t[e],n=r[0],i=r[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,i)||(this.self._propertyAliasIndex[i]=n)}}},r.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,r=Object.entries(e);t<r.length;t++){var n,i=r[t],o=i[0],a=i[1];if(this.setExternalPropertyValue(o,a),this.isConnected){var s=(0,y.camelCaseToDelimited)(o);if(null!=(n=this.self._propertiesToReflectAsAttributes)&&n.has(o))switch(this.self._propertiesToReflectAsAttributes.get(o)){case g.boolean:case"boolean":a?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case g.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 g.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 g.string:case"string":a?this.getAttribute(s)!==a&&this.setAttribute(s,a):this.hasAttribute(s)&&this.removeAttribute(s);break;case g.any:case g.array:case g.arrayOf:case g.element:case g.elementType:case g.instanceOf:case g.node:case g.object:case"object":case g.objectOf:case g.shape:case g.exact:case g.symbol:default:if(a){var c=(0,y.represent)(a);if(c&&this.getAttribute(s)!==c){this.setAttribute(s,c);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},r.reflectProperties=function(e){var t,r;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(t=t.current)&&t.state&&"object"==typeof this.instance.current.state)for(var n,i=x(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(n=i()).done;){var o=n.value;Object.prototype.hasOwnProperty.call(this.internalProperties,o)&&this.setInternalPropertyValue(o,void 0)}null!=(r=this.internalProperties.model)&&r.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var a,s=x(this.self.controllableProperties);!(a=s()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(e,l)&&this.setInternalPropertyValue(l,e[l])}},r.reflectEventToProperties=function(){var e=l()(b().mark((function e(t,r){var n,i,o,a,s,l,u,c,p,f,m,_,h,v,g,E,A;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.batchUpdates,this.batchUpdates=!1,i=null,o=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&(0,y.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=4;break}if(!((s=(a=this.self.eventToPropertyMapping)[t].apply(a,r.concat([this])))&&"then"in s&&(0,y.isFunction)(s.then))){e.next=2;break}return e.next=1,s;case 1:A=e.sent,e.next=3;break;case 2:A=s;case 3:l=A,o=!0,Array.isArray(l)?(i=l[0],this.reflectProperties(i),(0,y.extend)(!0,this.internalProperties,l[1])):null===l?o=!1:"object"==typeof l&&(i=l,this.reflectProperties(l));case 4:if(!o&&r.length>0&&(0,y.isObject)(r[0])){if(c=r[0],"persist"in r[0]&&(0,y.isFunction)(r[0].persist))for(c={},p=0,f=Object.keys(this.self.propertyTypes);p<f.length;p++)for(m=f[p],_=x([m].concat(null!==(v=this.getPropertyAlias(m))&&void 0!==v?v:[]));!(h=_()).done;)g=h.value,(E=r[0].currentTarget&&Object.prototype.hasOwnProperty.call(r[0].currentTarget,g)?r[0].currentTarget[g]:this.getPropertyValue(g))!==this.externalProperties[g]&&(c[g]=E);else[null,void 0].includes(null==(u=c.detail)?void 0:u.value)||(c=d()({},c.detail));i=c,this.reflectProperties(c)}return this.triggerRender("propertyReflected"),this.batchUpdates=n,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),r.evaluateStringOrNullAndSetAsProperty=function(e,t){var r=this,n=e.startsWith("-"),i=n?e.substring(1):e,o=(0,y.delimitedToCamelCase)(i),a=this.getPropertyAlias(o);if(a&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,a)&&(o=a),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)){var s=this.self.propertyTypes[o];if(n){if(t){var l=(0,y.evaluate)(t,d()({},y.UTILITY_SCOPE),!1,!0,this);l.error?(console.warn('Failed to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(o,void 0)):(this.setInternalPropertyValue(o,l.result),this.setExternalPropertyValue(o,l.result))}}else switch(s){case g.boolean:case"boolean":var u=![null,"false"].includes(t);this.setInternalPropertyValue(o,u),this.setExternalPropertyValue(o,u);break;case g.func:case"function":var c,p=null,f=["data","event","firstArgument","firstParameter","options","scope","parameters"].concat(y.UTILITY_SCOPE_NAMES);if(t){var m=(0,y.compile)(t,f);p=m.error,c=m.templateFunction,p&&console.warn('Failed to compile given handler "'+e+'": '+p+".")}this.setInternalPropertyValue(o,(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.outputEventNames.has(o)&&r.reflectEventToProperties(o,i);var s=void 0;if(!p)try{var l;s=null==(l=c)?void 0:l.call.apply(l,[r,i[0],i[0],i[0],i[0],i[0],i[0],i].concat(y.UTILITY_SCOPE_VALUES))}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+f.join('", "')+'" set to "'+(0,y.represent)(i)+'": '+r+'. Set property to "undefined".')}return r.self.renderProperties.includes(o)||r.forwardEvent(o,i),s})),p||this.setExternalPropertyValue(o,c);break;case"json":if(t){var _;try{_=JSON.parse(t)}catch(p){console.warn('Error occurred during parsing given json attribute "'+e+'": '+(0,y.represent)(p));break}this.setInternalPropertyValue(o,_),this.setExternalPropertyValue(o,(0,y.copy)(_,1))}else this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null);break;case g.number:case"number":if(null===t){this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break}var h=parseFloat(t);isNaN(h)&&(h=void 0),this.setInternalPropertyValue(o,h),this.setExternalPropertyValue(o,h);break;case g.string:case"string":this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break;case g.any:case g.array:case g.arrayOf:case g.element:case g.elementType:case g.instanceOf:case g.node:case g.object:case"object":case g.objectOf:case g.oneOf:case g.oneOfType:case g.shape:case g.exact:case g.symbol:default:if(t){var v=(0,y.evaluate)(t,{},!1,!0,this);if(v.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',v.error);break}this.setInternalPropertyValue(o,v.result),this.setExternalPropertyValue(o,(0,y.copy)(v.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(o,!0),this.setExternalPropertyValue(o,!0)):(this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null))}}},r.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,y.timeout)((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},r.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,y.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))},r.determineRenderScope=function(e){var t,r;void 0===e&&(e={}),this.scope=d()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((r={parent:this.parent,root:this.rootInstance,self:this})[(0,y.lowerCase)(this.self._name)||"instance"]=this,r),e),this.scope.scope=this.scope},r.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();var t=(0,y.evaluate)("`"+this.self.content+"`",this.scope);if(t.error)return console.warn("Failed to process template: "+t.error),Promise.resolve();this.applyShadowRootIfNotExisting();var r=document.createElement("div");return r.innerHTML=t.result,this.applySlots(r,d()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()},t}(P),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:g.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,i=a,o=h()(i.prototype,"isRoot",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i),T={component:w,register:function(e){void 0===e&&(e=(0,y.camelCaseToDelimited)(w._name)),customElements.define(e,w)}};t.default=w},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=a},function(e){e.exports=l},function(e,t,r){r.d(t,{api:function(){return g}});var n=r(0),i=r.n(n),o=r(4),a=r.n(o),s=r(3),l=r.n(s),u=r(5),c=r.n(u),p=r(1),d=r(2),f=r(11),m=r.n(f),_=r(12),h=r(13);function v(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){function t(){for(var r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(r=e.call.apply(e,[this].concat(i))||this).compiledSlots={},r.preparedSlots={},r.reactRoot=null,r.rootReactInstance=null,r.self=t,r.wrapMemorizingWrapper=null,r.isWrapped=!1,r.reflectInstanceProperties=function(){var e;null!=(e=r.instance)&&e.current&&r.instance.current.properties&&r.reflectProperties(r.instance.current.properties)},r}l()(t,e);var r=t.prototype;return r.connectedCallback=function(){this.applyComponentWrapper(),this.rootReactInstance=this,e.prototype.connectedCallback.call(this)},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this)},r.reflectExternalProperties=function(t){this.isRoot&&e.prototype.reflectExternalProperties.call(this,t)},r.render=function(){var e=a()(c().mark((function e(t){var r,n,o,a,s,l=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:t,scope:this.scope}}))){e.next=1;break}return e.abrupt("return");case 1:if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(i()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(n=this.firstChild;n;)o=n.nextSibling,this.removeChild(n),n=o;return this.reactRoot||(a=this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name,s="","string"==typeof a&&(s=a),this.reactRoot=(0,h.createRoot)(this.root,{identifierPrefix:s})),e.next=2,new Promise((function(e){(0,_.flushSync)((function(){var t;null==(t=l.reactRoot)||t.render((0,f.createElement)(l.self.content,l.internalProperties)),e()}))}));case 2:if(null==(r=this.instance)||!r.current){e.next=3;break}this.reflectInstanceProperties(),e.next=4;break;case 3:return e.next=4,(0,p.timeout)(this.reflectInstanceProperties);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=(0,p.copy)(t,1),r)),this.setInternalPropertyValue(e,(0,p.copy)(t,1))},r.setInternalPropertyValue=function(t,r){null===r?r=d.NullSymbol:void 0===r&&(r=d.UndefinedSymbol),e.prototype.setInternalPropertyValue.call(this,t,r)},r.preCompileDomNodes=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r=!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,r);for(var n,i=1,o=[],a=v(e);!(n=a()).done;){var s=n.value,l=this.preCompileDomNode(s,t,r,i.toString());o.push(l),i+=1}return r?function(e){return function(){for(var t,r=[],n=v(o);!(t=n()).done;){var i=(0,t.value)(e);"function"==typeof i&&r.push(i.apply(void 0,arguments))}return(0,f.createElement)(f.Fragment,{children:r})}}:o},r.preCompileDomNode=function(e,t,r,n){var o=this;if(void 0===t&&(t={}),void 0===r&&(r=!1),r){var a=this.preCompileDomNode(e,i()({},t,{data:void 0,firstArgument:void 0,firstParameter:void 0,options:void 0,scope:void 0,parameters:void 0}),!1,n);return function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.length>0?r[0]:null;return a(i()({},e,{data:o,firstArgument:o,firstParameter:o,options:o,scope:o,parameters:r}))}}}if(e.nodeType===Node.TEXT_NODE){var s="string"==typeof e.nodeValue?e.nodeValue.trim():"",l=n&&s?(0,f.createElement)(f.Fragment,{children:s,key:n}):s||null;return function(){return l}}if(!e.getAttributeNames)return function(){return null};var u,c={},d=this.self.isReactComponent(e);d?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),n&&!Object.prototype.hasOwnProperty.call(c,"key")&&(c.key=n),u=e.constructor.content):(c.key=n,u=e.tagName.toLowerCase());for(var m,_=Object.keys(t),h={},b=function(){var r,n=m.value,i=e.getAttribute(n);if(null===i)return 0;var a=!1,s="";if(n.startsWith("data-bind-")?s=n.substring(10):n.startsWith("bind-")&&(s=n.substring(5)),s.startsWith("attribute-")||"attributes"===s||s.startsWith("property-")||"properties"===s){var l=(0,p.compile)(i,_),u=l.error,f=l.originalScopeNames,v=l.templateFunction;if(u)return console.warn('Error occurred during compiling given attribute binding "'+n+'" on node:',e,u),0;"attributes"===s||"properties"===s?a=!0:s=s.startsWith("attribute-")?s.substring(10):s.substring(9),i={originalScopeNames:f,templateFunction:v.bind(o)}}else if(s.startsWith("on-")){s=(0,p.delimitedToCamelCase)(s),Object.prototype.hasOwnProperty.call(t,"event")||(_=[].concat(_,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(_=[].concat(_,["parameters"]));var b=(0,p.compile)(i,_,!0),y=b.error,g=b.originalScopeNames,E=b.scopeNames,x=b.templateFunction;if(y)return console.warn('Error occurred during compiling given event binding "'+n+'" on node:',e,y),0;var A=x.bind(o);i=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.event=o[0],t.parameters=o;try{A.apply(void 0,g.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+n+'" on node: ',e,'Given expression "'+i+'" could not be evaluated with given scope names "'+E.join('", "')+'": '+(0,p.represent)(t))}}}else s=n;var P={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(P,s)&&(s=P[s]),s=(0,p.delimitedToCamelCase)(s),null!=(r=i)&&r.originalScopeNames?h[a?"":s]=i:d||(c[s]=i)},y=v(e.getAttributeNames());!(m=y()).done;)b();if(!d){var g=Array.from(e.childNodes);g.length&&(c.children=this.preCompileDomNodes(g,t))}return function(r){(r=i()({},t,r)).scope=r;for(var n=i()({},c),a=0,s=Object.entries(h);a<s.length;a++){var l=s[a],p=l[0],m=l[1],_=m.originalScopeNames,v=m.templateFunction.apply(void 0,_.map((function(e){return r[e]})));""===p?n=i()({},n,v):n[p]=v}return Object.prototype.hasOwnProperty.call(n,"innerHTML")&&(n.dangerouslySetInnerHTML={__html:n.innerHTML},delete n.children,delete n.innerHTML),Object.prototype.hasOwnProperty.call(n,"textContent")?(n.children=n.textContent,delete n.textContent):d?(n=i()({},e.internalProperties,n),r=i()({},n,r,{parent:e}),e.evaluateSlots(r),e.prepareProperties(n)):n.children&&(n.children=o.evaluatePreCompiledDomNodes(n.children,r)),(0,f.createElement)(u,n)}},r.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 r,n=[],i=v(e);!(r=i()).done;){var o=(0,r.value)(t);o&&n.push(o)}return n},r.preCompileSlots=function(){for(var e in this.slots)this.slots[e]&&"default"!==e&&(this.compiledSlots[e]=this.preCompileDomNode(this.slots[e],i()({},this.scope,{parent:this}),[d.func,"function"].includes(this.self.propertyTypes[e])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,i()({},this.scope,{parent:this}),[d.func,"function"].includes(this.self.propertyTypes.children)))},r.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)},r.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}},r.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,f.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,f.forwardRef)((function(t,r){return(0,f.useImperativeHandle)(r,(function(){return{properties:t}})),(0,f.createElement)(e,t)})),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,f.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,f.memo)(this.self.content),this.self.content.wrapped=e)}},r.prepareProperties=function(e){(0,p.extend)(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,f.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var r,n=v(["isRoot","isTrusted","__composed"]);!(r=n()).done;){var i=r.value;Object.prototype.hasOwnProperty.call(t,i)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,i)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,i))&&delete t[i]}},t}(r(7).default);y.attachWebComponentAdapterIfNotExists=!0,y.content="div",y.react=m(),y._name="ReactWebComponent";var g={component:y,register:function(e){void 0===e&&(e=(0,p.camelCaseToDelimited)(y._name)),customElements.define(e,y)}};t.default=y}],f={};function m(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},m.d=function(e,t){for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var _={};m.r(_),m.d(_,{ReactWeb:function(){return A},Web:function(){return T},reactWebAPI:function(){return P},webAPI:function(){return w},wrapAsWebComponent:function(){return O}});var h=m(0),v=m.n(h),b=m(3),y=m.n(b),g=m(1),E=m(14),x=m(7),A=E.default,P=E.api,w=x.api,T=x.default,O=function(e,t,r){var n,i,o;void 0===t&&(t="NoName"),void 0===r&&(r={});var a=e._name||(null==(n=e.___types)||null==(n=n.name)?void 0:n.name)||t.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");r.propTypes&&(e.propTypes=r.propTypes);var s=e.propTypes||{},l=r.propertyAliases||e.propertyAliases||{},u=(0,g.unique)(Object.keys(s).concat(Object.keys(l)).concat(Object.values(l))),c=r.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(A.propertiesToReflectAsAttributes)if(Array.isArray(c))c=[].concat(A.propertiesToReflectAsAttributes,c);else if(c instanceof Map)for(var p=0,d=A.propertiesToReflectAsAttributes;p<d.length;p++){var f=d[p];c.set(f,A.propertyTypes[f])}else if("object"==typeof c)for(var m=0,_=A.propertiesToReflectAsAttributes;m<_.length;m++){var h=_[m];c[h]=A.propertyTypes[h]}var b=u.map((function(e){return(0,g.camelCaseToDelimited)(e)})),E=function(t){function n(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=t.call.apply(t,[this].concat(a))||this).self=n,i.internalProperties=r.internalProperties?v()({},r.internalProperties):e.internalProperties?v()({},e.internalProperties):{},i}return y()(n,t),n}(A);return E.attachWebComponentAdapterIfNotExists="boolean"!=typeof r.attachWebComponentAdapterIfNotExists||r.attachWebComponentAdapterIfNotExists,E.content=e,E.observedAttributes=A.observedAttributes.concat(b).concat(b.map((function(e){return"-"+e}))),E.controllableProperties=e.controllableProperties||r.controllableProperties||[],E.eventToPropertyMapping=null===r.eventToPropertyMapping?r.eventToPropertyMapping:r.eventToPropertyMapping?v()({},r.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?v()({},e.eventToPropertyMapping):{},E.propertyAliases=v()({},A.propertyAliases,l),E.propertiesToReflectAsAttributes=c,E.propertyTypes=v()({},A.propertyTypes,s),E.renderProperties=null!==(i=null!==(o=r.renderProperties)&&void 0!==o?o:e.renderProperties)&&void 0!==i?i:A.renderProperties,E._name=a,{component:E,register:function(e){void 0===e&&(e=(0,g.camelCaseToDelimited)(a)),customElements.define(e,E)}}};return _.default=O,_}())},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__14__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__15__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__16__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__17__},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__19__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__20__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__21__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__22__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__23__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__24__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__25__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__27__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__28__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__30__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__31__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__32__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__33__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__34__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__35__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__36__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__37__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__38__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__39__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__40__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__41__},,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r,n,i,o,a,l,u,s,c,d,m,f,p,v,g,h,y,b,x,w,S,I,j,N,T,C,O,P,q,A;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;module.exports=(e=__webpack_require__(2),t=__webpack_require__(7),r=__webpack_require__(21),n=__webpack_require__(22),i=__webpack_require__(23),o=__webpack_require__(24),a=__webpack_require__(25),l=__webpack_require__(26),u=__webpack_require__(27),s=__webpack_require__(28),c=__webpack_require__(29),d=__webpack_require__(30),m=__webpack_require__(19),f=__webpack_require__(31),p=__webpack_require__(32),v=__webpack_require__(33),g=__webpack_require__(34),h=__webpack_require__(35),y=__webpack_require__(8),b=__webpack_require__(9),x=__webpack_require__(36),w=__webpack_require__(37),S=__webpack_require__(4),I=__webpack_require__(0),j=__webpack_require__(3),N=__webpack_require__(20),T=__webpack_require__(10),C=__webpack_require__(38),O=__webpack_require__(39),P=__webpack_require__(40),q=__webpack_require__(41),A=__webpack_require__(11),function(){var _=[function(t){t.exports=e},function(e){e.exports=A},function(e){e.exports=j},function(e){e.exports=I},function(e,t,r){r.d(t,{defaultModel:function(){return p},defaultModelState:function(){return c},defaultProperties:function(){return d},modelStatePropertyTypes:function(){return s},propertyTypes:function(){return u}});var n=r(0),i=r.n(n),o=r(3),a={name:o.string,declaration:o.string,description:o.string,default:o.any,selection:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.boolean,o.number,o.string])),(0,o.arrayOf)((0,o.shape)({label:o.string,value:(0,o.oneOfType)([o.boolean,o.number,o.string])}))]),type:o.string,value:o.any},s={dirty:(0,o.oneOfType)([o.boolean,o.symbol]),pristine:(0,o.oneOfType)([o.boolean,o.symbol]),touched:(0,o.oneOfType)([o.boolean,o.symbol]),untouched:(0,o.oneOfType)([o.boolean,o.symbol]),focused:(0,o.oneOfType)([o.boolean,o.symbol]),visited:(0,o.oneOfType)([o.boolean,o.symbol]),invalid:(0,o.oneOfType)([o.boolean,o.symbol]),invalidRequired:(0,o.oneOfType)([o.boolean,o.symbol]),valid:(0,o.oneOfType)([o.boolean,o.symbol])},l=i()({},a,{emptyEqualsNull:o.boolean,trim:o.boolean,invertedPattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),pattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),maximum:(0,o.oneOfType)([o.number,o.string]),minimum:(0,o.oneOfType)([o.number,o.string]),maximumLength:o.number,minimumLength:o.number,mutable:o.boolean,writable:o.boolean,state:(0,o.shape)(s)}),u=i()({},a,s,{className:(0,o.oneOfType)([(0,o.arrayOf)(o.string),o.string]),styles:o.object,themeConfiguration:o.object,disabled:o.boolean,enforceUncontrolled:o.boolean,initialValue:o.any,model:(0,o.shape)(l),selection:(0,o.oneOfType)([(0,o.arrayOf)((0,o.arrayOf)((0,o.oneOfType)([o.boolean,o.number,o.string]))),o.object,(0,o.arrayOf)((0,o.oneOfType)([o.boolean,o.number,o.string])),(0,o.arrayOf)((0,o.shape)({label:o.string,value:(0,o.oneOfType)([o.boolean,o.number,o.string])}))]),onChange:o.func,onChangeValue:o.func,onChangeShowDeclaration:o.func,onChangeState:o.func,onClick:o.func,onFocus:o.func,onTouch:o.func,required:o.boolean,requiredText:o.string,componentProperties:o.object,domNodeProperties:o.object,showDeclaration:(0,o.oneOfType)([o.boolean,o.symbol]),showInitialValidationState:o.boolean,showValidationState:o.boolean,tooltip:o.any}),c={dirty:!1,pristine:!0,focused:!1,visited:!1,invalid:!1,invalidRequired:!1,valid:!0,touched:!1,untouched:!0},p={declaration:"",description:"",name:"NO_NAME_DEFINED",emptyEqualsNull:!0,pattern:void 0,invertedPattern:void 0,maximum:1/0,minimum:-1/0,maximumLength:1/0,minimumLength:0,mutable:!0,writable:!0,nullable:!0,state:i()({},c),trim:!0,type:"string"},d={className:[],styles:{},componentProperties:{},domNodeProperties:{},enforceUncontrolled:!1,model:i()({},p),triggerInitialPropertiesConsolidation:!1,showDeclaration:void 0,showInitialValidationState:!1,showValidationState:!0,requiredText:"Please fill this field."}},function(e){e.exports=y},function(e){e.exports=S},function(e,t,r){r.d(t,{defaultModelState:function(){return c},defaultProperties:function(){return d},propertyTypes:function(){return l},renderProperties:function(){return u}});var n=r(0),i=r.n(n),o=r(3),a=r(4),s=i()({},a.modelStatePropertyTypes,{invalidMaximum:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMinimum:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMaximumLength:(0,o.oneOfType)([o.boolean,o.symbol]),invalidMinimumLength:(0,o.oneOfType)([o.boolean,o.symbol]),invalidInvertedPattern:(0,o.oneOfType)([o.boolean,o.symbol]),invalidPattern:(0,o.oneOfType)([o.boolean,o.symbol])}),l=i()({},a.propertyTypes,s,{align:o.string,children:o.func,cursor:(0,o.oneOfType)([(0,o.shape)({end:o.number.isRequired,start:o.number.isRequired}),o.symbol]),editor:o.string,editorIsActive:(0,o.oneOfType)([o.boolean,o.symbol]),editorIsInitiallyActive:o.boolean,hidden:(0,o.oneOfType)([o.boolean,o.symbol]),leadingIcon:(0,o.oneOfType)([o.string,o.object]),trailingIcon:(0,o.oneOfType)([o.string,o.object]),attributes:o.object,invertedPattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),invertedPatternText:o.string,labels:(0,o.oneOfType)([(0,o.arrayOf)((0,o.arrayOf)((0,o.oneOfType)([o.any,o.string]))),(0,o.arrayOf)(o.string),o.object]),maximum:(0,o.oneOfType)([o.number,o.string]),maximumLength:o.number,minimum:(0,o.oneOfType)([o.number,o.string]),minimumLength:o.number,maximumLengthText:o.string,minimumLengthText:o.string,maximumText:o.string,minimumText:o.string,onBlur:o.func,onChangeEditorIsActive:o.func,onKeyDown:o.func,onKeyUp:o.func,onSelect:o.func,onSelectionChange:o.func,pattern:(0,o.oneOfType)([(0,o.arrayOf)((0,o.oneOfType)([o.object,o.string])),o.object,o.string]),patternText:o.string,placeholder:o.string,representation:(0,o.oneOfType)([o.string,o.symbol]),rows:o.number,searchSelection:o.boolean,selectableEditor:o.boolean,step:o.number,suggestionCreator:o.func,suggestSelection:o.boolean,transformer:o.object}),u=["children","suggestionCreator"],c=i()({},a.defaultModelState,{invalidMaximum:!1,invalidMinimum:!1,invalidMaximumLength:!1,invalidMinimumLength:!1,invalidInvertedPattern:!1,invalidPattern:!1}),p=i()({},a.defaultModel,{state:c}),d=i()({},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:i()({},p),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,r){r.d(t,{WrapTooltip:function(){return p},default:function(){return d}});var n=r(0),i=r.n(n),o=r(16),a=r(13),s=r(2),l=r(1),u=!o.Tooltip||Boolean(o.Tooltip.isDummy),c=(0,s.forwardRef)((function(e,t){return u?(0,l.jsx)("div",{className:"generic-tooltip",ref:t,title:e.value,children:e.children}):(0,l.jsx)(o.Tooltip,i()({overlay:(0,l.jsx)(a.Typography,{use:"caption",children:e.value}),ref:t},e.componentProperties,{children:(0,l.jsx)("div",{className:"generic-tooltip",children:e.children})}))})),p=(!c||Boolean(c.isDummy),function(e){var t=e.children,r=e.value;return"string"==typeof r?(0,l.jsx)(c,{value:r,children:t}):(0,l.jsx)(l.Fragment,{children:t})}),d=p},function(e){e.exports=C},function(e,t,r){r(0),r(17),r(2),r(5);var n=r(14),i=r(15),o=r(8),a=r(1),s=function(e){var t=e.children,r=e.strict,s=e.themeConfiguration,l=e.tooltip,u=e.wrap;return(0,a.jsx)(n.WrapStrict,{strict:Boolean(r),children:(0,a.jsx)(o.WrapTooltip,{value:l,children:(0,a.jsx)(i.WrapThemeProvider,{configuration:s,wrap:u,children:t})})})};t.default=s},function(e,t,r){r.d(t,{deriveMissingPropertiesFromState:function(){return u},determineInitialRepresentation:function(){return m},determineInitialValue:function(){return _},determineValidationState:function(){return h},formatValue:function(){return A},getConsolidatedProperties:function(){return b},getLabelAndValues:function(){return y},getValueFromSelection:function(){return g},mapPropertiesIntoModel:function(){return v},normalizeSelection:function(){return E},parseValue:function(){return x},renderMessage:function(){return p},translateKnownSymbols:function(){return f},triggerCallbackIfExists:function(){return d},wrapStateSetter:function(){return c}});var n=r(0),i=r.n(n),o=r(6),a=r(3);function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}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=i()({},e.model.state):e.model.state={});for(var r=0,n=Object.entries(t.modelState);r<n.length;r++){var o,a=n[r],s=a[0],l=a[1];null!=(o=e.model)&&o.state&&void 0===e.model.state[s]&&(e.model.state[s]=l)}return e},c=function(e,t){return function(r){var n="function"==typeof r?r(t):r;(0,o.equals)(null==n?void 0:n.modelState,null==t?void 0:t.modelState)||e(n)}},p=function(e,t){if("string"!=typeof e)return"";var r=(0,o.evaluate)("`"+e+"`",t);return r.error?(console.warn("Given message template could not be proceed:",r.error),""):r.result},d=function(e,t,r){void 0===r&&(r=!0);for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];t="on"+(0,o.capitalize)(t),e[t]&&(r?e[t].apply(e,i):(0,o.timeout)((function(){e[t].apply(e,i)})))},f=function(e){for(var t={},r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],s=i[0],l=i[1];l===a.UndefinedSymbol?t[s]=void 0:l===a.NullSymbol?t[s]=null:t[s]=(0,o.copy)(e[s])}return t};function m(e,t,r,n,a){if("string"==typeof e.representation)return e.representation;if(null!==r){var l,u=function(e,t){if(t)for(var r,n=s(t);!(r=n()).done;){var i=r.value;if((0,o.equals)(null==i?void 0:i.value,e))return i.label||String(e)}return null}(r,a);return"string"==typeof u?u:A(i()({},e,{type:e.type||(null==(l=e.model)?void 0:l.type)||t.model.type}),r,n)}return""}var _=function(e,t,r){var n,i;return void 0!==r?r:void 0!==e.value?e.value:void 0!==(null==(n=e.model)?void 0:n.value)?e.model.value:void 0!==e.initialValue?(0,o.copy)(e.initialValue):void 0!==e.default?(0,o.copy)(e.default):void 0!==(null==(i=e.model)?void 0:i.default)?(0,o.copy)(e.model.default):void 0!==t?t:null},h=function(e,t,r){void 0===r&&(r={});var n=!1;r=i()({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))}},r),e.model.state||(e.model.state={});for(var o=0,a=Object.entries(r);o<a.length;o++){var s=a[o],l=s[0],u=s[1],c=t[l];e.model.state[l]=u(),n=n||c!==t[l]}return n&&(e.model.state.invalid=Object.keys(r).some((function(t){return Boolean(e.model.state&&e.model.state[t])})),e.model.state.valid=!e.model.state.invalid),n},v=function(e,t){var r=(0,o.extend)(!0,{model:(0,o.copy)(t)},e);r.disabled&&(r.model.mutable=!1,delete r.disabled),r.invertedPattern&&(r.model.invertedPattern=r.invertedPattern,delete r.invertedPattern),r.pattern&&(r.model.pattern=r.pattern,delete r.pattern),r.required&&(r.model.nullable=!1,delete r.required),"text"===r.type&&(r.type="string");for(var n,i=s(Object.keys(r.model).concat("value"));!(n=i()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(r,a)&&void 0!==r[a]&&(r.model[a]=r[a])}for(var l in r.model.state)Object.prototype.hasOwnProperty.call(r,l)&&void 0!==r[l]&&(r.model.state[l]=r[l]);return void 0===r.model.value&&(r.model.value=(0,o.copy)(r.model.default)),r},b=function(e){var t=i()({},e,e.model||{},(e.model||{}).state||{});return t.disabled=!(t.mutable&&t.writable),delete t.mutable,delete t.writable,delete t.state,t.required=!t.nullable,delete t.nullable,t};function y(e){if(Array.isArray(e)){for(var t,r=[],n=[],i=s(e);!(t=i()).done;){var o=t.value;"string"==typeof(null==o?void 0:o.label)&&(r.push(o.label),n.push(o.value))}return[r,n]}return[[],[]]}function g(e,t){if(Array.isArray(t))for(var r,n=s(t);!(r=n()).done;){var i=r.value;if("string"==typeof(null==i?void 0:i.label)&&i.label===e)return i.value;if(["number","string"].includes(typeof(null==i?void 0:i.value))&&String(i.value)===e)return i.value}return null}function E(e,t){if(e||(e=t,t=void 0),!e)return e;var r=(0,o.isObject)(t),n=function(e,n){if(r)if(Array.isArray(t)){if(t.length)if(Array.isArray(t[0]))for(var i=0,o=t;i<o.length;i++){var a=o[i],s=a[0],l=a[1];if(s===e)return l}else if("number"==typeof n&&n<t.length)return t[n]}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,p=e;c<p.length;c++){var d,f=p[c],m=f[0],_=f[1];l.push({label:null!==(d=n(m,u))&&void 0!==d?d:_,value:m}),u+=1}else if((0,o.isObject)(e[0]))for(var h,v=s(e);!(h=v()).done;){var b,y=h.value;l.push(i()({},y,{label:null!==(b=n(y.value,u))&&void 0!==b?b:y.label})),u+=1}else for(var g=0,E=e;g<E.length;g++){var x,A=E[g];l.push({label:null!==(x=n(A,u))&&void 0!==x?x:A,value:A}),u+=1}e=l}}else{for(var P=[],w=0,T=Object.keys(e);w<T.length;w++){var O,C=T[w];P.push({label:null!==(O=n(C))&&void 0!==O?O:e[C],value:C})}e=P}if(Array.isArray(t)&&t.length&&Array.isArray(t[0])){for(var N=new Map,S=0,L=0,I=t;L<I.length;L++){var M=I[L][0];N.set(M,S),S+=1}e=e.sort((function(e,t){var r,n,i=e.value,o=t.value;return(null!==(r=N.get(i))&&void 0!==r?r:0)-(null!==(n=N.get(o))&&void 0!==n?n:0)}))}else a||(e=e.sort((function(e,t){var r=e.label,n=t.label;return r.localeCompare(n)})));return e}var x=function(e,t,r,n){var i;if(void 0===n&&(n=!1),n&&"string"==typeof t&&(t=t.trim().replace(/ +\n/g,"\\n")),e.model.emptyEqualsNull&&""===t)return null;var o=t;if(![null,void 0].includes(t)&&null!=(i=r[e.model.type])&&i.parse){var a,s=null==(a=r[e.model.type])?void 0:a.parse;o=s&&t?s(t,r,e):t}return"number"==typeof o&&isNaN(o)?null:o};function A(e,t,r,n){var i;void 0===n&&(n=!0);var o=n?"final":"intermediate";if([null,void 0].includes(t)||"number"==typeof t&&isNaN(t))return"";var a=null==(i=r[e.type||e.model.type])?void 0:i.format;if(a){var s,l=(null==(s=a[o])?void 0:s.transform)||a.final.transform;if(l)return l(t,r,e)}return String(t)}},,function(e){e.exports=b},function(e,t,r){r.d(t,{WrapStrict:function(){return o}});var n=r(2),i=r(1),o=function(e){var t=e.children;return e.strict?(0,i.jsx)(n.StrictMode,{children:t}):(0,i.jsx)(i.Fragment,{children:t})}},function(e,t,r){r.d(t,{WrapThemeProvider:function(){return o}});var n=r(5),i=r(1),o=function(e){var t=e.children,r=e.configuration,o=e.wrap;return r?(0,i.jsx)(n.ThemeProvider,{options:r,wrap:!1!==o,children:t}):t}},function(e){e.exports=T},function(e){e.exports=t},function(e){e.exports=N},function(e,t,r){var n=r(0),i=r.n(n),o=r(22),a=r(2),s=r(1),l=(0,a.forwardRef)((function(e,t){var r=e.componentProperties,n=e.size;return(0,s.jsx)(o.CircularProgress,i()({ref:t,size:null==n?void 0:n.replace("extra-small","xsmall").replace("extra-large","xlarge")},r))}));t.A=l},function(e,t,r){var n=r(0),i=r.n(n),o=r(25),a=r(2),s=r(9),l=r(1),u=(0,a.forwardRef)((function(e,t){var r,n,a,u=(0,s.useMemorizedValue)({});return(0,l.jsx)(o.Icon,i()({className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles},null!==(n=e.componentProperties)&&void 0!==n?n:u,{onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onFocus:e.onFocus,onBlur:e.onBlur,icon:(0,s.useMemorizedValue)({icon:e.icon,size:null==(a=e.size)?void 0:a.replace("extra-small","xsmall").replace("extra-large","xlarge"),strategy:e.strategy},e.icon,e.size,e.strategy),ref:t}))}));t.A=u},function(e,t,r){var n=r(0),i=r.n(n),o=r(26),a=r(2),s=r(9),l=r(1),u=(0,a.forwardRef)((function(e,t){var r,n,u,c=(0,a.useRef)(null),p=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(function(){return{base:c,foundation:p}}));var d=null==(r=e.size)?void 0:r.replace("extra-small","xsmall").replace("extra-large","xlarge"),f=(0,s.useMemorizedValue)({});return(0,l.jsx)(o.IconButton,i()({checked:e.value,disabled:e.disabled,className:null==(n=e.classNames)?void 0:n.join(" "),style:e.styles,icon:(0,s.useMemorizedValue)({icon:e.icon,size:d,strategy:e.strategy},e.icon,d,e.strategy),onIcon:(0,s.useMemorizedValue)({icon:e.onIcon||e.icon,size:d,strategy:e.strategy},e.onIcon,e.icon,d,e.strategy),onClick:e.onClick,onChange:e.onChange,ref:c,foundationRef:p},null!==(u=e.componentProperties)&&void 0!==u?u:f))}));t.A=u},function(e){e.exports=m},function(e){e.exports=o},function(e){e.exports=i},function(e){e.exports=f},function(e){e.exports=p},function(e){e.exports=v},function(e){e.exports=g},function(e){e.exports=h},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=u},function(e){e.exports=s},function(e){e.exports=c},function(e){e.exports=d},function(e){e.exports=x},function(e){e.exports=w},function(e){e.exports=O},function(e){e.exports=P},function(e){e.exports=q},function(e,t,r){var n=r(5),i=r(2),o=r(1),a=(0,i.forwardRef)((function(e,t){var r=e.children,i=e.applyToChildren;return(0,o.jsx)(n.Theme,{ref:t,use:"error",wrap:i,children:r})}));t.A=a}],E={};function L(e){var t=E[e];if(void 0!==t)return t.exports;var r=E[e]={exports:{}};return _[e](r,r.exports,L),r.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 r in t)L.o(t,r)&&!L.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 M={};L.r(M),L.d(M,{CODE_EDITOR_OPTIONS:function(){return ke},CSS_CLASS_NAMES:function(){return qe},INPUT_TRANSFORMER:function(){return Ye},TIPTAP_DEFAULT_OPTIONS:function(){return Ue},TextInput:function(){return Je},TextInputInner:function(){return Ze},default:function(){return Qe},determineValidationState:function(){return We},preventEnterKeyPropagation:function(){return Be},suggestionMatches:function(){return Ke}});var D,R,k,U=L(0),W=L.n(U),B=L(23),K=L(24),V=L(6),X=L(2),F=L(18),z=L.n(F),H=L(43),G=L(20),$=L(21),Y=L(27),Z=L(19),J=L(1),Q=function(e,t){var r,n,i,o=(0,X.useRef)(null),a=(0,X.useRef)(null),s=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{surfaceAnchor:o,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}})),(0,J.jsx)(Y.MenuSurfaceAnchor,{ref:o,onKeyDown:e.onKeyDown,children:e.pending?(0,J.jsx)(Y.MenuSurface,{anchorCorner:"bottomLeft",className:(null!==(r=e.classNames)&&void 0!==r?r:[]).concat(null!==(n=e.pendingClassNames)&&void 0!==n?n:[]).join(" "),open:!0,children:(0,J.jsx)(Z.A,{size:"large"})}):(0,J.jsx)(Y.Menu,{anchorCorner:"bottomLeft",apiRef:function(e){a.current=e},className:null==(i=e.classNames)?void 0:i.join(" "),focusOnOpen:!1,foundationRef:s,onFocus:e.onFocus,onSelect:e.onSelect,open:e.open,children:e.options.map((function(t,r){var n;return(0,J.jsx)(Y.MenuItem,{className:null==(n=e.itemClassNames)?void 0:n.join(" "),children:t},r)}))})})},ee=(0,X.memo)((0,X.forwardRef)(Q)),te=L(28),re=L(9),ne=function(e,t){var r=(0,X.useRef)(null),n=(0,X.useRef)(null),i=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{base:r,foundation:n,input:i}})),(0,J.jsx)(te.Select,W()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,re.useMemorizedValue)(W()({name:e.name,onClick:e.onClick},e.domNodeProperties),e.name,e.onClick,e.domNodeProperties),enhanced:!0,ref:r,foundationRef:n,inputRef:i,onChange:e.onChange,onKeyDown:e.onKeyDown,options:e.options,value:String(e.value),label:e.label},e.componentProperties))},ie=(0,X.memo)((0,X.forwardRef)(ne)),oe=L(29),ae=(0,X.forwardRef)((function(e,t){var r,n=(0,X.useRef)(null),i=(0,X.useRef)(null),o=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{base:n,foundation:i,input:o}}));var a="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0;return(0,J.jsx)("div",{className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,children:(0,J.jsx)(oe.TextField,W()({characterCount:e.characterCount&&a,disabled:e.disabled,invalid:e.invalid,label:e.label,name:e.name,placeholder:e.placeholder,helpText:e.helpText,maxLength:a?e.maximumLength:void 0,ref:n,foundationRef:i,inputRef:o,onChange:e.onChange,ripple:!0,rootProps:(0,re.useMemorizedValue)(W()({name:e.name,onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,J.jsx)(G.A,W()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,J.jsx)(G.A,W()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})})),se=L(10),le=L(8),ue=L(11),ce=L(30),pe=L(31),de=L(32),fe=L(33),me=L(34),_e=L(35),he=L(36),ve=L(37),be=(0,X.forwardRef)((function(e,t){var r,n,i,o,a,s=(0,X.useId)(),l=null!==(r=e.id)&&void 0!==r?r:s,u=null!==(n=e.classNamePrefix)&&void 0!==n?n:"text-area",c=(0,X.useRef)(null),p=(0,X.useRef)(null),d=(0,X.useRef)(null),f=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{foundation:f,input:c,label:d,materialTextField:p}})),(0,X.useEffect)((function(){if(d.current)return p.current=new ve.MDCTextField(d.current),f.current=p.current.getDefaultFoundation(),"string"==typeof e.value&&(f.current.setValue(e.value),p.current.value=e.value),"boolean"==typeof e.disabled&&(f.current.setDisabled(e.disabled),p.current.disabled=e.disabled),"boolean"==typeof e.invalid&&(f.current.setValid(!e.invalid),p.current.valid=!e.invalid),"boolean"==typeof e.required&&(p.current.required=e.required),f.current.setUseNativeValidation(!1),function(){var e;null==(e=p.current)||e.destroy()}}),[d.current,p.current,e.value,e.disabled,e.invalid,e.required,e.minimumLength,e.maximumLength]),(0,X.useEffect)((function(){var t,r,n=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.autoCompleteFocus()}))}:V.NOOP;null==(t=c.current)||t.addEventListener("input",n);var i=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.activateFocus()}))}:V.NOOP;return null==(r=c.current)||r.addEventListener("focus",i),function(){var e,t;null==(e=c.current)||e.removeEventListener("input",n),null==(t=c.current)||t.removeEventListener("focus",i)}}),[f.current,c.current,e.children]);var m="number"==typeof e.maximumLength&&!isNaN(e.maximumLength)&&e.maximumLength!==1/0&&e.maximumLength>=0,_=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("textarea",W()({ref:c,id:l,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?W()({visibility:"hidden",position:"absolute"},e.styles):e.styles,rows:e.rows,"aria-labelledby":l+"-label","aria-controls":l+"-helper","aria-describedby":l+"-helper",readOnly:Boolean(e.children),value:e.value,minLength:e.minimumLength,maxLength:e.maximumLength,onChange:e.onChange,onClick:e.onClick,onBlur:e.onBlur,onFocus:e.onFocus,onKeyUp:e.onKeyUp,onKeyDown:e.onKeyDown},e.domNodeProperties)),e.children,e.barContentSlot?(0,J.jsxs)("div",{className:u+"__bar",children:[e.barContentSlot,e.characterCount&&m?(0,J.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&m?(0,J.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),h="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("label",{ref:d,onClick:function(t){e.onLabelClick&&e.onLabelClick(t)},className:[u,"mdc-text-field","mdc-text-field--textarea"].concat(""===e.value?"mdc-text-field--textarea":u+"--has-content").concat(e.disabled?"mdc-text-field--disabled":[]).concat("mdc-text-field--filled").concat(e.characterCount&&m?"mdc-text-field--with-internal-counter":[]).concat(e.invalid?"mdc-text-field--invalid":[]).join(" "),children:[!1===(null==(i=e.componentProperties)?void 0:i.ripple)||e.children?"":(0,J.jsx)("span",{className:"mdc-text-field__ripple"}),(0,J.jsx)("span",{className:"mdc-floating-label",id:l+"-label",children:e.label}),e.resizeable?(0,J.jsx)("span",{className:"mdc-text-field__resizer",children:_}):_,!1!==(null==(o=e.componentProperties)?void 0:o.ripple)?(0,J.jsx)("span",{className:"mdc-line-ripple"}):""]}),h.children?(0,J.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,J.jsx)("div",{className:["mdc-text-field-helper-text"].concat(h.persistent?"mdc-text-field-helper-text--persistent":[]).join(" "),id:l+"-helper",children:null!=(a=e.helpText)&&a.children?e.helpText.children:e.helpText})}):""]})})),ye=(0,X.forwardRef)((function(e,t){var r=(0,X.useRef)(null);return(0,X.useImperativeHandle)(t,(function(){return{input:r,eventMapper:{blur:function(e){var t;if(null!=(t=r.current)&&t.input.current){var n=new Event("blur");n.detail=e,r.current.input.current.dispatchEvent(n)}},focus:function(e){var t;if(null!=(t=r.current)&&t.input.current){var n=new Event("focus");n.detail=e,r.current.input.current.dispatchEvent(n)}},input:function(e,t){var n;if(null!=(n=r.current)&&n.input.current){var i=new Event("input");i.detail=t,r.current.input.current.value=String(e),r.current.input.current.dispatchEvent(i)}}}}})),(0,J.jsx)(be,W()({ref:r},e,{children:e.children}))})),ge={textInput:"text-input",codeEditor:"code-editor",cmContent:"cm-content",cmActiveLine:"cm-activeLine",cmGutters:"cm-gutters",cmActiveLineGutter:"cm-activeLineGutter",cmFocused:"cm-focused",codeEditorHasContent:"code-editor--has-content",codeEditorView:"code-editor__view",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",richtextEditorView:"richtext-editor__view",tiptap:"tiptap",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},Ee=ce.autocompletion?[].concat(ce.closeBracketsKeymap,pe.defaultKeymap,me.searchKeymap,pe.historyKeymap,de.foldKeymap,ce.completionKeymap,fe.lintKeymap):[],xe=he.EditorView?[(0,he.lineNumbers)(),(0,he.highlightActiveLineGutter)(),(0,he.highlightSpecialChars)(),(0,pe.history)(),(0,de.foldGutter)(),(0,he.drawSelection)(),(0,he.dropCursor)(),_e.EditorState.allowMultipleSelections.of(!0),(0,de.indentOnInput)(),(0,de.syntaxHighlighting)(de.defaultHighlightStyle,{fallback:!0}),(0,de.bracketMatching)(),(0,ce.closeBrackets)(),(0,ce.autocompletion)(),(0,he.rectangularSelection)(),(0,he.crosshairCursor)(),(0,he.highlightActiveLine)(),(0,me.highlightSelectionMatches)(),he.keymap.of(Ee)]:[],Ae=ge,Pe=(0,X.forwardRef)((function(e,t){var r,n,i;if(!(ce.autocompletion&&pe.history&&de.syntaxHighlighting&&fe.lintKeymap&&me.searchKeymap&&_e.EditorState&&he.EditorView))throw Error("Missing codemirror dependencies.");var o=null!==(r=e.value)&&void 0!==r?r:"",a=(0,X.useRef)(null),s=(0,X.useRef)(null),l=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{input:a,editorView:s,editorViewReference:l}})),(0,X.useEffect)((function(){var t;if(l.current){var r=_e.EditorState.create({doc:String(o),extensions:[xe,he.EditorView.updateListener.of((function(t){t.startState.doc.toString()!==t.state.doc.toString()&&function(t){var r;if(!e.disabled){var n=t.state.doc.toString();null==(r=a.current)||r.eventMapper.input(n,t),e.onChange&&e.onChange(n)}}(t)})),null!=(t=e.editor)&&t.mode?e.editor.mode:[]]});return s.current=new he.EditorView({state:r,parent:l.current}),function(){s.current&&(s.current.destroy(),s.current=null)}}}),[l.current,null==(n=e.editor)||null==(n=n.mode)?void 0:n.language.name]),(0,X.useEffect)((function(){s.current&&e.value!==s.current.state.doc.toString()&&s.current.state.update({changes:{from:0,insert:_e.Text.empty}},{changes:{from:0,insert:String(e.value)}})}),[s.current,e.value]);var u=null==(i=a.current)||null==(i=i.input)||null==(i=i.current)||null==(i=i.input)?void 0:i.current;return(0,X.useEffect)((function(){var e=new ResizeObserver((function(){var e=null==u?void 0:u.clientHeight;if(l.current&&e){var t=l.current.querySelector(".cm-scroller");if(t){var r=String(e)+"px";return l.current.style.height=r,void(t.style.height=r)}}}));return u&&e.observe(u),function(){e.disconnect()}}),[l.current,u]),(0,J.jsx)(ye,W()({},e,{ref:a,value:o,classNamePrefix:Ae.codeEditor,onLabelClick:function(){var e;null==(e=l.current)||e.focus()},children:(0,J.jsx)("div",{ref:l,onBlur:function(t){var r;null==(r=a.current)||r.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var r;null==(r=a.current)||r.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},className:Ae.codeEditorView+" mdc-text-field__input"})}))})),we=L(38),Te=L(39),Oe=L.n(Te),Ce=(0,X.createContext)(null),Ne=function(e){var t,r=e.action,n=e.activeIndicator,i=e.checkedIconName,o=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,X.useContext)(Ce);if(!l)return null;var u=!0;o?u=o(l.can().chain().focus()).run():null!==o&&(u=r(l.can().chain().focus()).run());var c=Boolean(n&&l.isActive(n)),p=null!==(t=null!=s?s:n)&&void 0!==t?t:a;return(0,J.jsx)(le.default,{value:p,children:(0,J.jsx)($.A,{value:c,disabled:!u,classNames:c?["mdc-icon-button--checked"]:[],onClick:function(e){e.stopPropagation(),r(l.chain().focus()).run()},size:"extra-small",icon:a,onIcon:null!=i?i:a,domNodeProperties:{"aria-label":p}})})},Se=function(e){var t=e.editor;return t?(0,J.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,J.jsxs)(Ce.Provider,{value:t,children:[(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,J.jsx)(Ne,{action:function(e){return e.undo()},iconName:"undo"}),(0,J.jsx)(Ne,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,J.jsx)(Ne,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,J.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,J.jsx)(Ne,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,J.jsx)(Ne,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,J.jsx)(Ne,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,J.jsx)(Ne,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},Le=ge,Ie=(0,X.forwardRef)((function(e,t){var r,n,i,o,a;if(!we.useEditor||Oe().isDummy)throw Error("Missing tiptap dependencies.");var s=null!==(r=e.value)&&void 0!==r?r:"",l=(0,X.useRef)(null),u=(0,X.useRef)(null);(0,X.useImperativeHandle)(t,(function(){return{input:l,editorViewReference:u}}));var c=(null==(n=e.editor)?void 0:n.extensions)||[Oe().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})],p=(0,we.useEditor)(W()({extensions:c,editable:!e.disabled,content:String(s),onBlur:function(t){var r;null==(r=l.current)||r.eventMapper.blur(t),e.onBlur&&e.onBlur(t)},onFocus:function(t){var r;null==(r=l.current)||r.eventMapper.focus(t),e.onFocus&&e.onFocus(t)},onUpdate:function(t){var r,n=t.editor.getHTML();null==(r=l.current)||r.eventMapper.input("<p></p>"===n?"":n,t),e.onChange&&e.onChange(n,{contentTree:t.editor.getJSON()})}},(null==(o=e.editor)?void 0:o.options)||{})),d=p.getHTML(),f=null==(a=l.current)||null==(a=a.input)||null==(a=a.current)||null==(a=a.input)||null==(a=a.current)?void 0:a.clientHeight;return(0,X.useEffect)((function(){u.current&&f&&(u.current.style.height=String(f+8)+"px")}),[u.current,f]),(0,J.jsx)(ye,W()({},e,{ref:l,barContentSlot:(0,J.jsx)(Se,{editor:p}),value:"<p></p>"===d?"":d,classNamePrefix:Le.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,J.jsx)(we.EditorContent,{className:Le.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:u})}))})),Me=!(void 0===window),De=Me?null==(D=L(40))?void 0:D.default:null,Re=Me?null==(R=L(41))?void 0:R.default:null,je=Me?null==(k=L(42))?void 0:k.default:null,qe=ge,ke={},Ue={injectCSS:!0,enableContentCheck:!0},We=function(e,t){return(0,ue.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 Be(e){"Enter"===e.code&&e.stopPropagation()}function Ke(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var Ve=L(7),Xe=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},Fe=function(e){return new Date(Math.round(1e3*e)).toISOString()},ze=function(e){return e instanceof Date?e.getTime()/1e3:e},He={boolean:{parse:function(e){var t;return"boolean"==typeof e?e:null===(t=new Map([["false",!1],["true",!0],[0,!1],[1,!0]]).get(e))||void 0===t||t},type:"text"},currency:{format:{final:{options:{currency:"USD"},transform:function(e,t){var r,n,i,o=t.currency.format,a=null!==(r=null==o||null==(n=o.final.options)?void 0:n.currency)&&void 0!==r?r:"USD";return e===1/0?"Infinity "+a:e===-1/0?"- Infinity "+a:isNaN(e)?"unknown":new Intl.NumberFormat(Je.locales,W()({style:"currency"},null!==(i=null==o?void 0:o.final.options)&&void 0!==i?i:{})).format(e)}}},parse:function(e,t,r){return t.float.parse?t.float.parse(e,t,r):NaN},type:"text"},datetime:{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e+":00.000Z"),i=isNaN(n);i&&(n=Date.parse(e+".000Z"),(i=isNaN(n))&&(n=Date.parse(e),e=isNaN(n)?parseFloat(e):n/1e3)),i||(e=n/1e3)}return isNaN(e)&&(e=0),r?Fe(e):e},type:"datetime-local"},"datetime-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e-60*new Date(1e3*e).getTimezoneOffset());return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e+":00.000Z"),i=isNaN(n);i&&(n=Date.parse(e+".000Z"),(i=isNaN(n))&&(n=Date.parse(e),e=isNaN(n)?parseFloat(e):n/1e3)),i||(e=n/1e3+60*new Date(n).getTimezoneOffset())}return isNaN(e)&&(e=0),r?Fe(e):e}},date:{format:{final:{transform:function(e,t,r){var n;if(null==(n=t.datetime.format)||!n.final.transform)throw new Error("Missing datetime final format transformation configured. Date formatting depends on it.");var i=t.datetime.format.final.transform(e,t,r),o=i.indexOf("T");return-1===o?i:i.substring(0,o)}}},parse:function(e,t,r){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date parsing depends on it.");return t.datetime.parse(e,t,r)},useISOString:!0},"date-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;e-=60*new Date(1e3*e).getTimezoneOffset();var i=Fe(e);return i.substring(0,i.lastIndexOf("T"))}}},parse:function(e,t,r){if(!t.datetime.parse)throw new Error("Missing datetime parse transformation configured. Date local parsing depends on.");return(e=t.datetime.parse(e,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?Fe(e):e},type:"date"},time:{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=Fe(e),o=i.indexOf("T");return-1===o?i:(i=i.substring(o+1,i.length-1),r.step&&r.step>=60&&r.step%60==0?i.substring(0,i.lastIndexOf(":")):i)}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e);if(isNaN(n)){var i=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,r,n,i){return String(parseInt(t)*Math.pow(60,2)+60*parseInt(r)+(n&&void 0!==i?parseFloat(i):0))})));e=isNaN(i)?0:i}else e=n/1e3}return isNaN(e)&&(e=0),r?Fe(e):e}},"time-local":{format:{final:{transform:function(e,t,r){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,W()({},t,{date:W()({},t.date,{useISOString:!1})}),r)}var n=Xe(e);if("string"==typeof n)return n;var i=new Date(1e3*e),o=i.getHours(),a=i.getMinutes(),s=(o<10?"0":"")+String(o)+":"+(a<10?"0":"")+String(a);if(!(r.step&&r.step>=60&&r.step%60==0)){var l=i.getSeconds();return s+":"+(l<10?"0":"")+String(l)}return s}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=ze(e))){var n=Date.parse(e);if(isNaN(n)){var i=parseFloat(e.replace(/^([0-9]{2}):([0-9]{2})(:([0-9]{2}(\.[0-9]+)?))?$/,(function(e,t,r,n,i){var o=new Date(0);return o.setHours(parseInt(t)),o.setMinutes(parseInt(r)),n&&void 0!==i&&o.setSeconds(parseInt(i)),String(o.getTime()/1e3)})));e=isNaN(i)?0:i}else e=n/1e3}return isNaN(e)&&(e=0),r?Fe(e):e},type:"time"},float:{format:{final:{transform:function(e,t){var r=t.float.format;return r?e===1/0?"Infinity":e===-1/0?"- Infinity":new Intl.NumberFormat(Je.locales,r.final.options||{}).format(e):String(e)}}},parse:function(e,t,r){var n=r.maximum,i=r.minimum;return"string"==typeof e&&(e=parseFloat("de-DE"===Je.locales[0]?e.replace(/\./g,"").replace(/,/g,"."):e)),("number"==typeof i&&i>=0&&e<0||"number"==typeof n&&n<=0&&e>0)&&(e*=-1),e},type:"text"},integer:{format:{final:{transform:function(e,t){var r,n=t.integer.format;return new Intl.NumberFormat(Je.locales,W()({maximumFractionDigits:0},null!==(r=null==n?void 0:n.final.options)&&void 0!==r?r:{})).format(e)}}},parse:function(e,t,r){var n=r.maximum,i=r.minimum;return"string"==typeof e&&(e=parseInt("de-DE"===Je.locales[0]?e.replace(/[,.]/g,""):e)),("number"==typeof i&&i>=0&&e<0||"number"==typeof n&&n<=0&&e>0)&&(e*=-1),e},type:"text"},number:{parse:function(e){return"number"==typeof e?e:parseInt(e)}}};function Ge(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $e(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ye=He,Ze=function(e,t){var r,n,i,o,a,s,l,u=(0,X.useId)(),c=null!==(r=e.id)&&void 0!==r?r:u;(0,X.useEffect)((function(){var e;if(null!=(e=A.current)&&null!=(e=e.input)&&e.current){var t,r,n,i,o=A.current.input.current;if(null!=(t=o.input)&&t.current&&null!=(n=(o=null==(r=o.input)?void 0:r.current).input)&&n.current&&(o=null==(i=o.input)?void 0:i.current),!o)return;var a=o,s={},l=[];xe.valid?(l.push("ariaErrormessage"),l.push("ariaInvalid")):(s.ariaErrormessage=c+"-error-message",s.ariaInvalid="true"),Me?("search"!==a.getAttribute("type")&&(s.role="searchbox"),s.ariaAutocomplete=xe.searchSelection?"inline":"list"):(l.push("searchbox"),l.push("ariaAutocomplete")),xe.showDeclaration?s.ariaDescribedby=c+"-declaration":l.push("ariaDescribedby");for(var u=W()({},s,xe.attributes||{}),p=0,d=Object.entries(u);p<d.length;p++){var f=d[p],m=f[0],_=f[1],h=(0,V.camelCaseToDelimited)(m);"boolean"==typeof _?_?a.setAttribute(h,""):a.removeAttribute(h):a.setAttribute(h,String(_))}for(var v=0,b=l;v<b.length;v++){var y=b[v],g=(0,V.camelCaseToDelimited)(y);a.hasAttribute(g)&&a.removeAttribute(g)}}})),(0,X.useEffect)((function(){if(Ye){var e,t=null==(e=P.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){t.hasAttribute("aria-expanded")||t.setAttribute("aria-expanded","false");var r=t.querySelector(".mdc-select__dropdown-icon-active");r&&!r.hasAttribute("aria-hidden")&&r.setAttribute("aria-hidden","true");var n=t.querySelector(".mdc-select__dropdown-icon-inactive");n&&!n.hasAttribute("aria-hidden")&&n.setAttribute("aria-hidden","true")}}})),(0,X.useEffect)((function(){if(Ye){var e,t=null==(e=P.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var r=function(e){xe.disabled&&e.stopPropagation()};return t.addEventListener("keydown",r,!0),function(){t.removeEventListener("keydown",r,!0)}}}})),(0,X.useEffect)((function(){xe.triggerInitialPropertiesConsolidation&&_(new Event("genericInitialPropertiesConsolidation"))}),[]);var p=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),b((0,ue.parseValue)(xe,xe.default,Je.transformer,!ge&&xe.model.trim)))},r=(0,V.equals)(xe.value,xe.default);return{icon:(0,J.jsx)(z(),{in:!r,children:De&&!De.isDummy&&je?(0,J.jsx)(De,{animation:je,reverse:!0}):(0,J.jsx)(G.A,{icon:"clear"})}),componentProperties:{"aria-hidden":r?"true":"false","tab-index":r?-1:0},onClick:t,onKeyDown:t,strategy:"component",tooltip:"Clear input"}}if("password_preset"===e){var n=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),R((function(t){return void 0===t&&(t=xe.hidden),xe.hidden=!t,_(e),xe.hidden})))};return{icon:De&&!De.isDummy&&Re?(0,J.jsx)(De,{animation:Re,reverse:!xe.hidden}):xe.hidden?"lock_open":"lock",onClick:n,onKeyDown:n,strategy:"component",tooltip:(xe.hidden?"Show":"Hide")+" password"}}var i;return e&&("string"==typeof e&&(e={icon:e}),Object.prototype.hasOwnProperty.call(e,"onClick")||(e.domNodeProperties=null!==(i=e.domNodeProperties)&&void 0!==i?i:{},e.domNodeProperties["tab-index"]=-1,e.domNodeProperties["aria-hidden"]=!0)),e},d=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=!0),"boolean"==typeof t?r?(0,J.jsx)(z(),{in:t,children:e}):t?e:"":r?(0,J.jsx)(z(),W()({},t,{children:e})):t.in?e:""},f=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=W()({},e)).tooltip;var r=W()({},e);e.strategy="component",e.icon=(0,J.jsx)(le.default,{value:t,children:(0,J.jsx)(G.A,W()({},r))})}return e},m=function(e){var t=(0,ue.getConsolidatedProperties)(function(e){var t,r=(0,ue.mapPropertiesIntoModel)(e,Je.defaultProperties.model);return r.model.value=(0,ue.parseValue)(r,r.model.value,re,!ge&&(null==(t=e.model)?void 0:t.trim)),We(r,r.model.state),r}(e));return["plain","text"].includes(t.editor)&&(t.selectableEditor=!1),t.selectableEditor||"plain"===t.editor||(t.editorIsActive=!0),"string"!=typeof t.representation&&(t.representation=(0,ue.formatValue)(t,t.value,re,!t.focused)),t},_=function(e){(0,V.extend)(!0,xe,m(xe)),(0,ue.triggerCallbackIfExists)(xe,"change",ge,xe,e)},h=function(e){e.preventDefault(),e.stopPropagation(),I((function(t){var r=t.editorIsActive;return xe.editorIsActive=!r,_(e),(0,ue.triggerCallbackIfExists)(xe,"changeEditorIsActive",ge,xe.editorIsActive,e,xe),{editorIsActive:xe.editorIsActive,selectionIsUnstable:!0}}))},v=function(e){Y((function(t){return xe.showDeclaration=!t,_(e),(0,ue.triggerCallbackIfExists)(xe,"changeShowDeclaration",ge,xe.showDeclaration,e,xe),xe.showDeclaration}))},b=function(e,t){var r;if(void 0===t&&(t=-1),k(!0),(0,V.isObject)(e)){var n=(r=e).target||r.detail;xe.value=n?void 0===n.value?null:n.value:e}else xe.value=e;var i=function(){ye((function(e){if(!Ee&&e.representation===xe.representation&&!xe.suggestionCreator&&-1===t)return e;var n=W()({},e,{representation:xe.representation});if(!ge&&(0,V.equals)(e.value,xe.value))return n;n.value=xe.value;var i=!1;return e.modelState.pristine&&(xe.dirty=!0,xe.pristine=!1,i=!0),_(r),We(xe,e.modelState)&&(i=!0),(0,ue.triggerCallbackIfExists)(xe,"changeValue",ge,xe.value,r,xe),i&&xe.model.state&&(n.modelState=xe.model.state,(0,ue.triggerCallbackIfExists)(xe,"changeState",ge,xe.model.state,r,xe)),(Ye||-1!==t)&&(0,ue.triggerCallbackIfExists)(xe,"select",ge,r,xe),n}))},o=!ge&&xe.model.trim;if(xe.representation=-1!==t?Se[t]:"string"==typeof xe.value?xe.value:(0,ue.formatValue)(xe,xe.value,re),Me)if(xe.suggestionCreator){var a=new AbortController,s=function(e){if(!a.signal.aborted){if(ce((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===t){var r=(0,ue.getValueFromSelection)(xe.representation,(0,ue.normalizeSelection)(e));null!==r||xe.searchSelection?xe.value=r:xe.value=(0,ue.parseValue)(xe,xe.representation,re,o)}i()}},l=xe.suggestionCreator({abortController:a,properties:xe,query:xe.representation});null!=l&&l.then?(ce((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a})),ye((function(e){return W()({},e,{representation:xe.representation})})),l.then(s,(function(){}))):s(l)}else{if(-1===t){var u=(0,ue.getValueFromSelection)(xe.representation,de);null!==u||xe.searchSelection?xe.value=u:xe.value=(0,ue.parseValue)(xe,xe.representation,re,o)}i()}else xe.value=(0,ue.parseValue)(xe,xe.value,re,o),i()},y=function(e){E(e),(0,ue.triggerCallbackIfExists)(xe,"click",ge,e,xe),x(e)},g=function(e){(0,ue.triggerCallbackIfExists)(xe,"focus",ge,e,xe),x(e)},E=function(e){(0,ue.triggerCallbackIfExists)(xe,"selectionChange",ge,e,xe)},x=function(e){ye((function(t){var r=!1;t.modelState.focused||(xe.focused=!0,r=!0),t.modelState.untouched&&(xe.touched=!0,xe.untouched=!1,r=!0);var n=t;return r&&(_(e),n=W()({},t,{modelState:xe.model.state}),(0,ue.triggerCallbackIfExists)(xe,"changeState",ge,xe.model.state,e,xe)),(0,ue.triggerCallbackIfExists)(xe,"touch",ge,e,xe),n}))},A=(0,X.useRef)(null),P=(0,X.useRef)(null),w=(0,X.useRef)(null),T=(0,ue.translateKnownSymbols)(e),O=(0,X.useState)({end:0,start:0}),C=O[0],N=O[1],S=(0,X.useState)({editorIsActive:T.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),L=S[0],I=S[1],M=(0,X.useState)(),D=M[0],R=M[1],j=(0,X.useState)(!1),q=j[0],k=j[1],U=(0,X.useState)(!1),F=U[0],Y=U[1],Z=(0,ue.determineInitialValue)(T,Je.defaultProperties.model.default);Z instanceof Date&&(Z=Z.getTime()/1e3);var Q=(0,V.extend)(!0,(0,V.copy)(Je.defaultProperties),T),te=Q.type||(null==(n=Q.model)?void 0:n.type)||"string",re=Q.transformer?W()({},Je.transformer,((i={})[te]=(0,V.extend)(!0,(0,V.copy)(Je.transformer[te])||{},Q.transformer),i)):Je.transformer,ne=(0,X.useState)(),oe=ne[0],ce=ne[1];(Q.selection||null!=(o=Q.model)&&o.selection)&&(oe=Q.selection||(null==(a=Q.model)?void 0:a.selection)),oe||"boolean"!==(Q.type||(null==(s=Q.model)?void 0:s.type))||(oe=[{label:"No",value:!1},{label:"Yes",value:!0}]);var pe,de=oe instanceof AbortController?[]:(0,ue.normalizeSelection)(oe,Q.labels),fe=oe instanceof AbortController?[[],[]]:(0,ue.getLabelAndValues)(de),me=fe[0],_e=fe[1],he=(0,X.useState)((function(){return{modelState:W()({},Je.defaultModelState),representation:(0,ue.determineInitialRepresentation)(Q,Je.defaultProperties,Z,re,de),value:Z}})),ve=he[0],ye=he[1],ge=!Q.enforceUncontrolled&&(void 0!==(null==(l=T.model)?void 0:l.value)||void 0!==T.value)&&Boolean(T.onChange||T.onChangeValue),Ee=ge&&void 0!==T.representation;null!==Q.cursor&&"object"==typeof Q.cursor||(Q.cursor={}),void 0===Q.cursor.end&&(Q.cursor.end=C.end),void 0===Q.cursor.start&&(Q.cursor.start=C.start),void 0===Q.editorIsActive&&(Q.editorIsActive=L.editorIsActive),void 0===Q.hidden&&(Q.hidden=D),void 0===Q.representation&&(Q.representation=ve.representation),void 0===Q.showDeclaration&&(Q.showDeclaration=F),(0,ue.deriveMissingPropertiesFromState)(Q,ve),void 0===Q.value?void 0===Q.representation&&void 0===(null==(pe=Q.model)?void 0:pe.value)&&(Q.representation=ve.representation):Ee||Q.value===ve.value||(Q.representation=void 0);var xe=m(Q);void 0===xe.hidden&&(xe.hidden=xe.name.startsWith("password")),xe.cursor&&!(0,V.equals)(xe.cursor,C)&&N(xe.cursor),xe.editorIsActive!==L.editorIsActive&&I(W()({},L,{editorIsActive:xe.editorIsActive})),xe.hidden!==D&&R(xe.hidden),xe.showDeclaration!==F&&Y(xe.showDeclaration);var Ae={modelState:xe.model.state,representation:xe.representation,value:xe.value||null};(ge||(0,V.equals)(xe.value,ve.value)&&xe.representation===ve.representation)&&(0,V.equals)(xe.model.state,ve.modelState)||ye(Ae),ge&&(ye=(0,ue.wrapStateSetter)(ye,Ae)),(0,X.useImperativeHandle)(t,(function(){for(var e,t={modelState:xe.model.state},r=Ge(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=r()).done;){var n,i=e.value;Object.prototype.hasOwnProperty.call(T,i)||(t[i]=null!==(n=xe[i])&&void 0!==n&&n)}return Ee||(t.representation=xe.representation),ge||(t.value=xe.value),{properties:xe,references:{input:A,menu:w,wrapper:P},state:t}}));var we={ref:A,id:c,componentProperties:xe.componentProperties,domNodeProperties:xe.domNodeProperties,onClick:y,onFocus:function(e){k(!0),g(e)},disabled:xe.disabled,invalid:xe.invalid&&xe.showValidationState&&(xe.showInitialValidationState||xe.visited),helpText:{children:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(z(),{in:xe.selectableEditor&&"string"===xe.type&&"plain"!==xe.editor,children:(0,J.jsx)($.A,{domNodeProperties:{"aria-label":xe.editorIsActive?"plain":xe.editor.startsWith("code")?"code":"richtext"},icon:xe.editorIsActive?"subject":xe.editor.startsWith("code")?"code":"text_format",onClick:h})}),(0,J.jsx)(z(),{in:Boolean(xe.declaration),children:(0,J.jsx)($.A,{"aria-expanded":xe.showDeclaration?"true":"false","aria-label":"declaration",value:xe.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:v})}),(0,J.jsx)(z(),{id:c+"-declaration",in:xe.showDeclaration,children:xe.declaration}),(0,J.jsx)(z(),{in:!xe.showDeclaration&&xe.invalid&&xe.showValidationState&&(xe.showInitialValidationState||xe.visited),children:(0,J.jsx)(H.A,{applyToChildren:!0,children:(0,J.jsx)("span",{id:c+"-error-message",children:(0,ue.renderMessage)(xe.invalidMaximum&&xe.maximumText||xe.invalidMaximumLength&&xe.maximumLengthText||xe.invalidMinimum&&xe.minimumText||xe.invalidMinimumLength&&xe.minimumLengthText||xe.invalidInvertedPattern&&xe.invertedPatternText||xe.invalidPattern&&xe.patternText||xe.invalidRequired&&xe.requiredText,W()({formatValue:function(e){return(0,ue.formatValue)(xe,e,re)}},xe))})})})]}),persistent:!0},name:xe.name||xe.description,label:xe.description||xe.name},Te={placeholder:xe.placeholder,characterCount:"number"==typeof xe.maximumLength&&!isNaN(xe.maximumLength)&&xe.maximumLength>=0,value:xe.representation,domNodeProperties:W()({"tab-index":xe.disabled?"0":"-1"},xe.domNodeProperties),onKeyUp:function(e){e.code&&(E(e),(0,ue.triggerCallbackIfExists)(xe,"keyUp",ge,e,xe))}},Oe=!xe.selection&&"string"===xe.type&&xe.editorIsActive&&("code"===xe.editor||xe.editor.startsWith("code(")&&xe.editor.endsWith(")")||"richtext"===xe.editor||xe.editor.startsWith("richtext(")&&xe.editor.endsWith(")")),Ce=Oe&&xe.editor.startsWith("code"),Ne=[],Se=[],Le=[],Me=Boolean(xe.suggestionCreator||me.length&&(xe.searchSelection||xe.suggestSelection));if(Me&&me.length){xe.suggestSelection=!xe.searchSelection;for(var ke,Ve=0,Xe=Ge(me);!(ke=Xe()).done;){var Fe=ke.value;if((0,V.isFunction)(xe.children)){var ze=xe.children({index:Ve,normalizedSelection:de,properties:xe,query:xe.representation,suggestion:Fe,value:_e[Ve]});ze&&(Ne.push(ze),Se.push(Fe),Le.push(_e[Ve]))}else if(!xe.representation||xe.suggestionCreator||Ke(Fe,xe.representation)){var He,$e=(0,V.mark)(Fe,(null==(He=xe.representation)?void 0:He.split(" "))||"",{marker:function(e){return(0,J.jsx)("span",{className:qe.textInputSuggestionsSuggestionMark,children:e})},normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:null}).map((function(e,t){return(0,J.jsx)("span",{children:e},t)}));Ne.push($e),Se.push(Fe),Le.push(_e[Ve])}Ve+=1}}var Ye=(Boolean(de)||Boolean(xe.labels))&&!Me,Ze={};"number"===xe.type?(Ze.step=xe.step,xe.maximum!==1/0&&(Ze.max=xe.maximum),xe.minimum!==-1/0&&(Ze.min=xe.minimum)):"string"===xe.type?(xe.maximumLength>=0&&xe.maximumLength!==1/0&&(Ze.maximumLength=xe.maximumLength),xe.minimumLength>0&&(Ze.minimumLength=xe.minimumLength),"plain"!==xe.editor&&(Ze.rows=xe.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(xe.type)&&(Ze.step=xe.step,xe.maximum!==1/0&&(Ze.max=(0,ue.formatValue)(xe,xe.maximum,re)),xe.minimum!==-1/0&&(Ze.min=(0,ue.formatValue)(xe,xe.minimum,re)));var Qe={};if(Oe)if(xe.editor.startsWith("code(")&&xe.editor.endsWith(")")){var et=xe.editor.substring(5,xe.editor.length-1);et&&(Qe.editor={},B.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(et.toLowerCase())?Qe.editor.mode=(0,B.javascript)({jsx:!0,typescript:!0}):K.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(et.toLowerCase())&&(Qe.editor.mode=(0,K.css)()))}else Qe.editor=Ue;return(0,J.jsx)(se.default,{strict:Je.strict,themeConfiguration:xe.themeConfiguration,tooltip:xe.tooltip,children:(0,J.jsxs)("div",W()({ref:P,className:[qe.textInput].concat(xe.className).join(" "),style:xe.styles,onBlur:function(e){ye((function(t){var r;if(e.relatedTarget&&null!=(r=P.current)&&r.contains(e.relatedTarget))return t;k(!1);var n=!1,i=!1;if(t.modelState.focused&&(xe.focused=!1,n=!0,i=!0),t.modelState.visited||(xe.visited=!0,n=!0,i=!0),!Me||xe.suggestSelection){var o=(0,ue.getValueFromSelection)(xe.representation,de);null===o?(xe.value=(0,ue.parseValue)(xe,xe.value,re,xe.model.trim),xe.representation=(0,ue.formatValue)(xe,xe.value,re)):xe.value=o}return(0,V.equals)(t.value,xe.value)&&t.representation===xe.representation||(n=!0),n&&_(e),(0,V.equals)(t.value,xe.value)||(0,ue.triggerCallbackIfExists)(xe,"changeValue",ge,xe.value,e,xe),i&&(0,ue.triggerCallbackIfExists)(xe,"changeState",ge,xe.model.state,e,xe),(0,ue.triggerCallbackIfExists)(xe,"blur",ge,e,xe),n?{modelState:xe.model.state,representation:xe.representation,value:xe.value}:t}))},onKeyDown:function(e){var t,r;!xe.disabled&&Me&&"ArrowDown"===e.code&&e.target===(null==(t=A.current)||null==(t=t.input)?void 0:t.current)&&(null==(r=w.current)||r.focusItem(0)),(Ye||"string"===xe.type&&"plain"!==xe.editor)&&Be(e),(0,ue.triggerCallbackIfExists)(xe,"keyDown",ge,e,xe)}},Me?{role:"search"}:{},{children:[d((0,J.jsx)(ie,W()({},we,{name:xe.name,onChange:b,onClick:y,onKeyDown:function(e){xe.disabled||"Tab"===e.code||e.preventDefault()},options:de,value:xe.value})),Ye),Oe?Ce?d((0,J.jsx)(Pe,W()({},we,Te,Ze,{onChange:b},Qe,{ref:A})),Oe):(0,J.jsx)(Ie,W()({},we,Te,Ze,{onChange:b},Qe,{ref:A})):"",d((0,J.jsxs)("div",{children:[Me?(0,J.jsx)(ee,{ref:w,onKeyDown:Be,pending:oe instanceof AbortController,classNames:[qe.textInputSuggestions],itemClassNames:[qe.textInputSuggestionsSuggestion],pendingClassNames:[qe.textInputSuggestionsPending],onFocus:g,onSelect:function(e){b(Le[e.detail.index],e.detail.index),k(!1)},open:Boolean(Se.length)&&q&&!(1===Se.length&&Se[0]===xe.representation),options:Ne}):"","string"===xe.type&&"plain"!==xe.editor?(0,J.jsx)(be,W()({},we,Te,Ze,{ref:A,onChange:b})):(0,J.jsx)(ae,W()({},we,Te,Ze,{onChange:b,leadingIcon:f(p(xe.leadingIcon)),trailingIcon:f(p(xe.trailingIcon)),type:function(e){var t,r;return"string"===e.type?e.hidden?"password":Me?"search":"text":null!==(t=null==(r=re[e.type])?void 0:r.type)&&void 0!==t?t:e.type}(xe)}))]}),!(Oe||Ye),xe.editor.startsWith("code"))]}))})};Ze.displayName="TextInput";var Je=(0,X.memo)((0,X.forwardRef)(Ze));Je.wrapped=Ze,Je.webComponentAdapterWrapped="react",Je.defaultModelState=Ve.defaultModelState,Je.defaultProperties=W()({},Ve.defaultProperties,{cursor:void 0,model:W()({},Ve.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),Je.locales=V.LOCALES,Je.propTypes=Ve.propertyTypes,Je.renderProperties=Ve.renderProperties,Je.strict=!1,Je.transformer=He;var Qe=Je;return M}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__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__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TextInput:function(){return TextInput}});var clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),clientnode_property_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__),react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(43),react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1__),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1),web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(web_component_wrapper__WEBPACK_IMPORTED_MODULE_2__),TextInput=web_component_wrapper__WEBPACK_IMPORTED_MODULE_2___default()(react_input_material_dist_components_TextInput__WEBPACK_IMPORTED_MODULE_1___default(),"TextInput",{eventToPropertyMapping:{onChange:!0},internalProperties:{enforceUncontrolled:!0},propertiesToReflectAsAttributes:{dirty:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,focused:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,pristine:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,touched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,untouched:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,visited:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximum:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMaximumLength:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimum:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidMinimumLength:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidPattern:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,invalidRequired:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,valid:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.boolean,name:clientnode_property_types__WEBPACK_IMPORTED_MODULE_0__.string}});return __webpack_exports__.default=TextInput,__webpack_exports__}()}));