web-input-material 0.0.488 → 0.0.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CheckboxInput.bundle.js +10 -10
- package/components/CheckboxInput.js +1 -1
- package/components/CheckboxInput.ts +10 -1
- package/components/CircularSpinner.bundle.js +9 -9
- package/components/CircularSpinner.js +1 -1
- package/components/CircularSpinner.ts +12 -10
- package/components/FileInput.bundle.js +15 -15
- package/components/FileInput.js +1 -1
- package/components/FileInput.ts +10 -1
- package/components/GenericAnimate.bundle.js +5 -5
- package/components/GenericAnimate.js +1 -1
- package/components/GenericInputs.bundle.js +15 -15
- package/components/GenericInputs.js +1 -1
- package/components/SliderInput.bundle.js +11 -11
- package/components/SliderInput.js +1 -1
- package/components/TabItem.ts +5 -3
- package/components/Tabs.bundle.js +12 -12
- package/components/Tabs.js +1 -1
- package/components/TextInput.bundle.js +15 -15
- package/components/TextInput.js +1 -1
- package/index.bundle.js +18 -18
- package/index.js +1 -1
- package/package.json +26 -29
package/components/TextInput.js
CHANGED
|
@@ -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 __webpack_dirname__="/",e,t,r,n,o,i,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!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(12),r=__webpack_require__(4),n=__webpack_require__(5),o=__webpack_require__(6),i=__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=i},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=o},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){void 0===t&&(t=[]),void 0===r&&(r={}),r=d()({ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r);var n=e.nodeName.toLowerCase();if(r.ignoreComponents&&n.includes("-"))return null;if(r.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var o=(0,y.compile)("`"+i+"`",t);return{domNode:e,children:[],error:o.error,scopeNames:o.scopeNames,template:i,templateFunction:o.templateFunction}}return null}var a=null;if("#text"===n){var s=e.textContent;s&&this.self.hasCode(s)&&(a=s.replace(/ /g," ").trim())}var l=[],u={children:l,domNode:e};if(a){var c=(0,y.compile)("`"+a+"`",t);u.error=c.error,u.scopeNames=c.scopeNames,u.template=a,u.templateFunction=c.templateFunction}for(var p=e.firstChild;p;){if(!r.filter||r.filter(p)){var f=this.compileDomNodeTemplate(p,t,d()({},r,{ignoreComponents:r.ignoreNestedComponents}));f&&l.push(f)}p=p.nextSibling}return u},r.evaluateCompiledDomNodeTemplate=function(e,t){var r=e.domNode,n=e.error,i=e.templateFunction,o=e.scopeNames;if(!i||!o)return null;if(n)return console.warn("Error occurred during compiling node content:",n),null;var a=null;try{a=i.apply(void 0,o.map((function(e){return t[e]})))}catch(n){console.warn('Error occurred when "'+this.self._name+'" is running','"'+String(i)+'": with bound','names "'+o.join('", "')+'":','"'+n+'". Rendering node:',r)}return a},r.evaluateDomNodeTemplate=function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r={});var i=(r=d()({domNodeTemplateCache:this.domNodeTemplateCache,ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r)).domNodeTemplateCache;if(!i.has(e)){var o={filter:r.filter,ignoreComponents:r.ignoreComponents,ignoreNestedComponents:r.ignoreNestedComponents,unsafe:r.unsafe},a=this.compileDomNodeTemplate(e,t,o);a&&i.set(e,a)}if(i.has(e)){var s=i.get(e),l=this.evaluateCompiledDomNodeTemplate(s,t);if(null!==l&&(r.unsafe&&e.innerHTML?e.innerHTML=l:e.textContent=l),s.children.length){var u=function(e){for(var r,i=x(e);!(r=i()).done;){var o=r.value,a=n.evaluateCompiledDomNodeTemplate(o,t);null!==a&&(o.domNode.textContent=a),o.children.length&&u(o.children)}};u(s.children)}}r.applyBindings&&this.applyBindings(e,t)},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=g.node.firstElementChild?e:null;if(r&&"textarea"===(null==(t=r.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!r.firstElementChild.hasAttribute("data-no-template")||"false"===r.firstElementChild.getAttribute("data-no-template"))){var n=r.firstElementChild.value;r.classList.remove("web-component-template");var i=r.cloneNode();return r.classList.add("web-component-template"),i.innerHTML="",i.template=n,i}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=[].concat(this.slots.default):this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((function(t){return e.grabSlotContent(t)})):this.slots.default=[]},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 __webpack_dirname__="/",e,t,r,n,i,o,a,l,u,s,c,d,m,f,p,v,g,h,y,b,x,S,w,I,j,N,C,T,O,P,A,q;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(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),S=__webpack_require__(37),w=__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),A=__webpack_require__(41),q=__webpack_require__(11),function(){var _=[function(t){t.exports=e},function(e){e.exports=q},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])})),o.object]),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]))),(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])})),o.object]),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=w},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=T},function(e,t,r){r(0),r(17),r(5),r(2);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=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=S},function(e){e.exports=O},function(e){e.exports=P},function(e){e.exports=A},,,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 Be},INPUT_TRANSFORMER:function(){return et},TIPTAP_DEFAULT_OPTIONS:function(){return Ve},TextInput:function(){return rt},TextInputInner:function(){return tt},default:function(){return nt},determineValidationState:function(){return Xe},preventEnterKeyPropagation:function(){return Fe},suggestionMatches:function(){return ze}});var D=L(0),R=L.n(D),k=L(23),U=L(24),W=L(6),B=L(2),K=L(18),V=L.n(K),X=L(45),F=L(20),z=L(21),H=L(27),G=L(19),$=L(1),Y=function(e,t){var r,n,i,o=(0,B.useRef)(null),a=(0,B.useRef)(null),s=(0,B.useRef)(null);return(0,B.useImperativeHandle)(t,(function(){return{surfaceAnchor:o,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}})),(0,$.jsx)(H.MenuSurfaceAnchor,{ref:o,onKeyDown:e.onKeyDown,children:e.pending?(0,$.jsx)(H.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,$.jsx)(G.A,{size:"large"})}):(0,$.jsx)(H.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,$.jsx)(H.MenuItem,{className:null==(n=e.itemClassNames)?void 0:n.join(" "),children:t},r)}))})})},Z=(0,B.memo)((0,B.forwardRef)(Y)),J=L(28),Q=L(9),ee=function(e,t){var r=(0,B.useRef)(null),n=(0,B.useRef)(null),i=(0,B.useRef)(null);return(0,B.useImperativeHandle)(t,(function(){return{base:r,foundation:n,input:i}})),(0,$.jsx)(J.Select,R()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,Q.useMemorizedValue)(R()({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))},te=(0,B.memo)((0,B.forwardRef)(ee)),re=L(29),ne={textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},ie=(0,B.forwardRef)((function(e,t){var r,n=(0,B.useRef)(null),i=(0,B.useRef)(null),o=(0,B.useRef)(null);(0,B.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,$.jsx)("div",{className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,children:(0,$.jsx)(re.TextField,R()({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,Q.useMemorizedValue)(R()({onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,$.jsx)(F.A,R()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,$.jsx)(F.A,R()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})}));ie.CSS_CLASS_NAMES=ne;var oe=ie,ae=L(10),se=L(8),le=L(11),ue=L(30),ce=L(31),pe=L(32),de=L(33),fe=L(34),me=L(35),_e=L(36),he=L(37),ve={textInput:"text-input",codeEditor:"code-editor",mdcTextFieldDisabled:"mdc-text-field--disabled",cmEditor:"cm-editor",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter"},be=(0,B.forwardRef)((function(e,t){var r,n,i,o,a,s=(0,B.useId)(),l=null!==(r=e.id)&&void 0!==r?r:s,u=null!==(n=e.classNamePrefix)&&void 0!==n?n:"text-area",c=(0,B.useRef)(null),p=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,(function(){return{foundation:f,input:c,label:d,materialTextField:p}})),(0,B.useEffect)((function(){if(d.current)return p.current=new he.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,B.useEffect)((function(){var t,r,n=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.autoCompleteFocus()}))}:W.NOOP;null==(t=c.current)||t.addEventListener("input",n);var i=e.children?function(){setTimeout((function(){var e;null==(e=f.current)||e.activateFocus()}))}:W.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,$.jsxs)($.Fragment,{children:[(0,$.jsx)("textarea",R()({ref:c,id:l,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?R()({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,$.jsxs)("div",{className:u+"__bar",children:[e.barContentSlot,e.characterCount&&m?(0,$.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&m?(0,$.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),h="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,$.jsxs)($.Fragment,{children:[(0,$.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,$.jsx)("span",{className:"mdc-text-field__ripple"}),(0,$.jsx)("span",{className:"mdc-floating-label",id:l+"-label",children:e.label}),e.resizeable?(0,$.jsx)("span",{className:"mdc-text-field__resizer",children:_}):_,!1!==(null==(o=e.componentProperties)?void 0:o.ripple)?(0,$.jsx)("span",{className:"mdc-line-ripple"}):""]}),h.children?(0,$.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,$.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})}):""]})}));be.CSS_CLASS_NAMES=ve;var ye,ge,Ee,xe=be,Ae=(0,B.forwardRef)((function(e,t){var r=(0,B.useRef)(null);return(0,B.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,$.jsx)(xe,R()({ref:r},e,{children:e.children}))})),Pe={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"},we=ue.autocompletion?[].concat(ue.closeBracketsKeymap,ce.defaultKeymap,fe.searchKeymap,ce.historyKeymap,pe.foldKeymap,ue.completionKeymap,de.lintKeymap):[],Te=_e.EditorView?[(0,_e.lineNumbers)(),(0,_e.highlightActiveLineGutter)(),(0,_e.highlightSpecialChars)(),(0,ce.history)(),(0,pe.foldGutter)(),(0,_e.drawSelection)(),(0,_e.dropCursor)(),me.EditorState.allowMultipleSelections.of(!0),(0,pe.indentOnInput)(),(0,pe.syntaxHighlighting)(pe.defaultHighlightStyle,{fallback:!0}),(0,pe.bracketMatching)(),(0,ue.closeBrackets)(),(0,ue.autocompletion)(),(0,_e.rectangularSelection)(),(0,_e.crosshairCursor)(),(0,_e.highlightActiveLine)(),(0,fe.highlightSelectionMatches)(),_e.keymap.of(we)]:[],Oe=Pe,Ce=(0,B.forwardRef)((function(e,t){var r,n,i;if(!(ue.autocompletion&&ce.history&&pe.syntaxHighlighting&&de.lintKeymap&&fe.searchKeymap&&me.EditorState&&_e.EditorView))throw Error("Missing codemirror dependencies.");var o=null!==(r=e.value)&&void 0!==r?r:"",a=(0,B.useRef)(null),s=(0,B.useRef)(null),l=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,(function(){return{input:a,editorView:s,editorViewReference:l}})),(0,B.useEffect)((function(){var t;if(l.current){var r=me.EditorState.create({doc:String(o),extensions:[Te,_e.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 _e.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,B.useEffect)((function(){s.current&&e.value!==s.current.state.doc.toString()&&s.current.state.update({changes:{from:0,insert:me.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,B.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,$.jsx)(Ae,R()({},e,{ref:a,value:o,classNamePrefix:Oe.codeEditor,onLabelClick:function(){var e;null==(e=l.current)||e.focus()},children:(0,$.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:Oe.codeEditorView+" mdc-text-field__input"})}))})),Ne=L(38),Se=L(39),Le=L.n(Se),Ie=(0,B.createContext)(null),Me=function(e){var t,r=e.action,n=e.activeIndicator,i=e.checkedIconName,o=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,B.useContext)(Ie);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,$.jsx)(se.default,{value:p,children:(0,$.jsx)(z.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}})})},De=function(e){var t=e.editor;return t?(0,$.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,$.jsxs)(Ie.Provider,{value:t,children:[(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,$.jsx)(Me,{action:function(e){return e.undo()},iconName:"undo"}),(0,$.jsx)(Me,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,$.jsx)(Me,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,$.jsx)(Me,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,$.jsx)(Me,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,$.jsx)(Me,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,$.jsx)(Me,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,$.jsx)(Me,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,$.jsx)(Me,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,$.jsx)(Me,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,$.jsx)(Me,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,$.jsx)(Me,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},Re=Pe,je=(0,B.forwardRef)((function(e,t){var r,n,i,o,a;if(!Ne.useEditor||Le().isDummy)throw Error("Missing tiptap dependencies.");var s=null!==(r=e.value)&&void 0!==r?r:"",l=(0,B.useRef)(null),u=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,(function(){return{input:l,editorViewReference:u}}));var c=(null==(n=e.editor)?void 0:n.extensions)||[Le().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})],p=(0,Ne.useEditor)(R()({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,B.useEffect)((function(){u.current&&f&&(u.current.style.height=String(f+8)+"px")}),[u.current,f]),(0,$.jsx)(Ae,R()({},e,{ref:l,barContentSlot:(0,$.jsx)(De,{editor:p}),value:"<p></p>"===d?"":d,classNamePrefix:Re.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,$.jsx)(Ne.EditorContent,{className:Re.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:u})}))})),ke=!(void 0===window),qe=ke?null==(ye=L(40))?void 0:ye.default:null,Ue=ke?null==(ge=L(41))?void 0:ge.default:null,We=ke?null==(Ee=L(42))?void 0:Ee.default:null,Be=Pe,Ke={},Ve={injectCSS:!0,enableContentCheck:!0},Xe=function(e,t){return(0,le.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 Fe(e){"Enter"===e.code&&e.stopPropagation()}function ze(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every((function(t){return e.includes(t)})))}var He=L(7),Ge=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},$e=function(e){return new Date(Math.round(1e3*e)).toISOString()},Ye=function(e){return e instanceof Date?e.getTime()/1e3:e},Ze={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(rt.locales,R()({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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=Ye(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?$e(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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(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=Ye(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?$e(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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;e-=60*new Date(1e3*e).getTimezoneOffset();var i=$e(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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?$e(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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(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=Ye(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?$e(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,R()({},t,{date:R()({},t.date,{useISOString:!1})}),r)}var n=Ge(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=Ye(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?$e(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(rt.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"===rt.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(rt.locales,R()({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"===rt.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 Je(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 Qe(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)?Qe(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 Qe(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 et=Ze,tt=function(e,t){var r,n,i,o,a,s,l,u,c=(0,B.useId)(),p=null!==(r=e.id)&&void 0!==r?r:c;(0,B.useEffect)((function(){var e;if(null!=(e=P.current)&&null!=(e=e.input)&&e.current){var t,r,n,i,o=P.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=[];Ae.valid?(l.push("ariaErrormessage"),l.push("ariaInvalid")):(s.ariaErrormessage=p+"-error-message",s.ariaInvalid="true"),Me?("search"!==a.getAttribute("type")&&(s.role="searchbox"),s.ariaAutocomplete=Ae.searchSelection?"inline":"list"):(l.push("searchbox"),l.push("ariaAutocomplete")),Ae.showDeclaration?s.ariaDescribedby=p+"-declaration":l.push("ariaDescribedby");for(var u=R()({},s,Ae.attributes||{}),c=0,d=Object.entries(u);c<d.length;c++){var f=d[c],m=f[0],_=f[1],h=(0,W.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,W.camelCaseToDelimited)(y);a.hasAttribute(g)&&a.removeAttribute(g)}}})),(0,B.useEffect)((function(){if(Ye){var e,t=null==(e=w.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,B.useEffect)((function(){if(Ye){var e,t=null==(e=w.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var r=function(e){Ae.disabled&&e.stopPropagation()};return t.addEventListener("keydown",r,!0),function(){t.removeEventListener("keydown",r,!0)}}}})),(0,B.useEffect)((function(){Ae.triggerInitialPropertiesConsolidation&&h(new Event("genericInitialPropertiesConsolidation"))}),[]);var d=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),y((0,le.parseValue)(Ae,Ae.default,rt.transformer,!ge&&Ae.model.trim)))},r=(0,W.equals)(Ae.value,Ae.default);return{icon:(0,$.jsx)(V(),{in:!r,children:qe&&!qe.isDummy&&We?(0,$.jsx)(qe,{animation:We,reverse:!0}):(0,$.jsx)(F.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(),q((function(t){return void 0===t&&(t=Ae.hidden),Ae.hidden=!t,h(e),Ae.hidden})))};return{icon:qe&&!qe.isDummy&&Ue?(0,$.jsx)(qe,{animation:Ue,reverse:!Ae.hidden}):Ae.hidden?"lock_open":"lock",onClick:n,onKeyDown:n,strategy:"component",tooltip:(Ae.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},f=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=!0),"boolean"==typeof t?r?(0,$.jsx)(V(),{in:t,children:e}):t?e:"":r?(0,$.jsx)(V(),R()({},t,{children:e})):t.in?e:""},m=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=R()({},e)).tooltip;var r=R()({},e);e.strategy="component",e.icon=(0,$.jsx)(se.default,{value:t,children:(0,$.jsx)(F.A,R()({},r))})}return e},_=function(e){var t=(0,le.getConsolidatedProperties)(function(e){var t,r=(0,le.mapPropertiesIntoModel)(e,rt.defaultProperties.model);return r.model.value=(0,le.parseValue)(r,r.model.value,ie,!ge&&(null==(t=e.model)?void 0:t.trim)),Xe(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,le.formatValue)(t,t.value,ie,!t.focused)),t},h=function(e){(0,W.extend)(!0,Ae,_(Ae)),(0,le.triggerCallbackIfExists)(Ae,"change",ge,Ae,e)},v=function(e){e.preventDefault(),e.stopPropagation(),M((function(t){var r=t.editorIsActive;return Ae.editorIsActive=!r,h(e),(0,le.triggerCallbackIfExists)(Ae,"changeEditorIsActive",ge,Ae.editorIsActive,e,Ae),{editorIsActive:Ae.editorIsActive,selectionIsUnstable:!0}}))},b=function(e){Q((function(t){return Ae.showDeclaration=!t,h(e),(0,le.triggerCallbackIfExists)(Ae,"changeShowDeclaration",ge,Ae.showDeclaration,e,Ae),Ae.showDeclaration}))},y=function(e,t){var r;if(void 0===t&&(t=-1),G(!0),(0,W.isObject)(e)){var n=(r=e).target||r.detail;Ae.value=n?void 0===n.value?null:n.value:e}else Ae.value=e;var i=function(){ye((function(e){if(!Ee&&e.representation===Ae.representation&&!Ae.suggestionCreator&&-1===t)return e;var n=R()({},e,{representation:Ae.representation});if(!ge&&(0,W.equals)(e.value,Ae.value))return n;n.value=Ae.value;var i=!1;return e.modelState.pristine&&(Ae.dirty=!0,Ae.pristine=!1,i=!0),h(r),Xe(Ae,e.modelState)&&(i=!0),(0,le.triggerCallbackIfExists)(Ae,"changeValue",ge,Ae.value,r,Ae),i&&Ae.model.state&&(n.modelState=Ae.model.state,(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,r,Ae)),(Ye||-1!==t)&&(0,le.triggerCallbackIfExists)(Ae,"select",ge,r,Ae),n}))},o=!ge&&Ae.model.trim;if(Ae.representation=-1!==t?Le[t]:"string"==typeof Ae.value?Ae.value:(0,le.formatValue)(Ae,Ae.value,ie),Me)if(Ae.suggestionCreator){var a=new AbortController,s=function(e){if(!a.signal.aborted){if(pe((function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e})),-1===t){var r=(0,le.getValueFromSelection)(Ae.representation,(0,le.normalizeSelection)(e));null!==r||Ae.searchSelection?Ae.value=r:Ae.value=(0,le.parseValue)(Ae,Ae.representation,ie,o)}i()}},l=Ae.suggestionCreator({abortController:a,properties:Ae,query:Ae.representation});null!=l&&l.then?(pe((function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a})),ye((function(e){return R()({},e,{representation:Ae.representation})})),l.then(s,(function(){}))):s(l)}else{if(-1===t){var u=(0,le.getValueFromSelection)(Ae.representation,fe);null!==u||Ae.searchSelection?Ae.value=u:Ae.value=(0,le.parseValue)(Ae,Ae.representation,ie,o)}i()}else Ae.value=(0,le.parseValue)(Ae,Ae.value,ie,o),i()},g=function(e){x(e),(0,le.triggerCallbackIfExists)(Ae,"click",ge,e,Ae),A(e)},E=function(e){(0,le.triggerCallbackIfExists)(Ae,"focus",ge,e,Ae),A(e)},x=function(e){(0,le.triggerCallbackIfExists)(Ae,"selectionChange",ge,e,Ae)},A=function(e){ye((function(t){var r=!1;t.modelState.focused||(Ae.focused=!0,r=!0),t.modelState.untouched&&(Ae.touched=!0,Ae.untouched=!1,r=!0);var n=t;return r&&(h(e),n=R()({},t,{modelState:Ae.model.state}),(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,e,Ae)),(0,le.triggerCallbackIfExists)(Ae,"touch",ge,e,Ae),n}))},P=(0,B.useRef)(null),w=(0,B.useRef)(null),T=(0,B.useRef)(null),O=(0,le.translateKnownSymbols)(e),C=(0,B.useState)({end:0,start:0}),N=C[0],S=C[1],L=(0,B.useState)({editorIsActive:O.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),I=L[0],M=L[1],D=(0,B.useState)(),j=D[0],q=D[1],K=(0,B.useState)(!1),H=K[0],G=K[1],Y=(0,B.useState)(!1),J=Y[0],Q=Y[1],ee=(0,le.determineInitialValue)(O,rt.defaultProperties.model.default);ee instanceof Date&&(ee=ee.getTime()/1e3);var re=(0,W.extend)(!0,(0,W.copy)(rt.defaultProperties),O),ne=re.type||(null==(n=re.model)?void 0:n.type)||"string",ie=re.transformer?R()({},rt.transformer,((i={})[ne]=(0,W.extend)(!0,(0,W.copy)(rt.transformer[ne])||{},re.transformer),i)):rt.transformer,ue=(0,B.useState)(),ce=ue[0],pe=ue[1];(re.selection||null!=(o=re.model)&&o.selection)&&(ce=re.selection||(null==(a=re.model)?void 0:a.selection)),ce||"boolean"!==(re.type||(null==(s=re.model)?void 0:s.type))||(ce=[{label:"No",value:!1},{label:"Yes",value:!0}]);var de,fe=ce instanceof AbortController?[]:(0,le.normalizeSelection)(ce,re.labels),me=ce instanceof AbortController?[[],[]]:(0,le.getLabelAndValues)(fe),_e=me[0],he=me[1],ve=(0,B.useState)((function(){return{modelState:R()({},rt.defaultModelState),representation:(0,le.determineInitialRepresentation)(re,rt.defaultProperties,ee,ie,fe),value:ee}})),be=ve[0],ye=ve[1],ge=!re.enforceUncontrolled&&(void 0!==(null==(l=O.model)?void 0:l.value)||void 0!==O.value)&&Boolean(O.onChange||O.onChangeValue),Ee=ge&&void 0!==O.representation;null!==re.cursor&&"object"==typeof re.cursor||(re.cursor={}),void 0===re.cursor.end&&(re.cursor.end=N.end),void 0===re.cursor.start&&(re.cursor.start=N.start),void 0===re.editorIsActive&&(re.editorIsActive=I.editorIsActive),void 0===re.hidden&&(re.hidden=j),void 0===re.representation&&(re.representation=be.representation),void 0===re.showDeclaration&&(re.showDeclaration=J),(0,le.deriveMissingPropertiesFromState)(re,be),void 0===re.value?void 0===re.representation&&void 0===(null==(de=re.model)?void 0:de.value)&&(re.representation=be.representation):Ee||re.value===be.value||(re.representation=void 0);var Ae=_(re);void 0===Ae.hidden&&(Ae.hidden=Ae.name.startsWith("password")),Ae.cursor&&!(0,W.equals)(Ae.cursor,N)&&S(Ae.cursor),Ae.editorIsActive!==I.editorIsActive&&M(R()({},I,{editorIsActive:Ae.editorIsActive})),Ae.hidden!==j&&q(Ae.hidden),Ae.showDeclaration!==J&&Q(Ae.showDeclaration);var Pe={modelState:Ae.model.state,representation:Ae.representation,value:null!==(u=Ae.value)&&void 0!==u?u:null};(ge||(0,W.equals)(Ae.value,be.value)&&Ae.representation===be.representation)&&(0,W.equals)(Ae.model.state,be.modelState)||ye(Pe),ge&&(ye=(0,le.wrapStateSetter)(ye,Pe)),(0,B.useImperativeHandle)(t,(function(){for(var e,t={modelState:Ae.model.state},r=Je(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=r()).done;){var n,i=e.value;Object.prototype.hasOwnProperty.call(O,i)||(t[i]=null!==(n=Ae[i])&&void 0!==n&&n)}return Ee||(t.representation=Ae.representation),ge||(t.value=Ae.value),{properties:Ae,references:{input:P,menu:T,wrapper:w},state:t}}));var we={ref:P,id:p,componentProperties:Ae.componentProperties,domNodeProperties:Ae.domNodeProperties,onClick:g,onFocus:function(e){G(!0),E(e)},disabled:Ae.disabled,invalid:Ae.invalid&&Ae.showValidationState&&(Ae.showInitialValidationState||Ae.visited),helpText:{children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(V(),{in:Ae.selectableEditor&&"string"===Ae.type&&"plain"!==Ae.editor,children:(0,$.jsx)(z.A,{domNodeProperties:{"aria-label":Ae.editorIsActive?"plain":Ae.editor.startsWith("code")?"code":"richtext"},icon:Ae.editorIsActive?"subject":Ae.editor.startsWith("code")?"code":"text_format",onClick:v})}),(0,$.jsx)(V(),{in:Boolean(Ae.declaration),children:(0,$.jsx)(z.A,{"aria-expanded":Ae.showDeclaration?"true":"false","aria-label":"declaration",value:Ae.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:b})}),(0,$.jsx)(V(),{id:p+"-declaration",in:Ae.showDeclaration,children:Ae.declaration}),(0,$.jsx)(V(),{in:!Ae.showDeclaration&&Ae.invalid&&Ae.showValidationState&&(Ae.showInitialValidationState||Ae.visited),children:(0,$.jsx)(X.A,{applyToChildren:!0,children:(0,$.jsx)("span",{id:p+"-error-message",children:(0,le.renderMessage)(Ae.invalidMaximum&&Ae.maximumText||Ae.invalidMaximumLength&&Ae.maximumLengthText||Ae.invalidMinimum&&Ae.minimumText||Ae.invalidMinimumLength&&Ae.minimumLengthText||Ae.invalidInvertedPattern&&Ae.invertedPatternText||Ae.invalidPattern&&Ae.patternText||Ae.invalidRequired&&Ae.requiredText,R()({formatValue:function(e){return(0,le.formatValue)(Ae,e,ie)}},Ae))})})})]}),persistent:!0},name:Ae.name||Ae.description,label:Ae.description||Ae.name},Te={placeholder:Ae.placeholder,characterCount:"number"==typeof Ae.maximumLength&&!isNaN(Ae.maximumLength)&&Ae.maximumLength>=0,value:Ae.representation,domNodeProperties:R()({"tab-index":Ae.disabled?"0":"-1"},Ae.domNodeProperties),onKeyUp:function(e){e.code&&(x(e),(0,le.triggerCallbackIfExists)(Ae,"keyUp",ge,e,Ae))}},Oe=!Ae.selection&&"string"===Ae.type&&Ae.editorIsActive&&("code"===Ae.editor||Ae.editor.startsWith("code(")&&Ae.editor.endsWith(")")||"richtext"===Ae.editor||Ae.editor.startsWith("richtext(")&&Ae.editor.endsWith(")")),Ne=Oe&&Ae.editor.startsWith("code"),Se=[],Le=[],Ie=[],Me=Boolean(Ae.suggestionCreator||_e.length&&(Ae.searchSelection||Ae.suggestSelection));if(Me&&_e.length){Ae.suggestSelection=!Ae.searchSelection;for(var De,Re=0,ke=Je(_e);!(De=ke()).done;){var Ke=De.value;if((0,W.isFunction)(Ae.children)){var He=Ae.children({index:Re,normalizedSelection:fe,properties:Ae,query:Ae.representation,suggestion:Ke,value:he[Re]});He&&(Se.push(He),Le.push(Ke),Ie.push(he[Re]))}else if(!Ae.representation||Ae.suggestionCreator||ze(Ke,Ae.representation)){var Ge,$e=(0,W.mark)(Ke,(null==(Ge=Ae.representation)?void 0:Ge.split(" "))||"",{marker:function(e){return[e]},skipTagDelimitedParts:null}).map((function(e,t){return Array.isArray(e)?(0,$.jsx)("span",{className:Be.textInputSuggestionsSuggestionMark,children:e[0]},t):(0,$.jsx)("span",{children:e},t)}));Se.push($e),Le.push(Ke),Ie.push(he[Re])}Re+=1}}var Ye=(Boolean(fe)||Boolean(Ae.labels))&&!Me,Ze={};"number"===Ae.type?(Ze.step=Ae.step,Ae.maximum!==1/0&&(Ze.max=Ae.maximum),Ae.minimum!==-1/0&&(Ze.min=Ae.minimum)):"string"===Ae.type?(Ae.maximumLength>=0&&Ae.maximumLength!==1/0&&(Ze.maximumLength=Ae.maximumLength),Ae.minimumLength>0&&(Ze.minimumLength=Ae.minimumLength),"plain"!==Ae.editor&&(Ze.rows=Ae.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(Ae.type)&&(Ze.step=Ae.step,Ae.maximum!==1/0&&(Ze.max=(0,le.formatValue)(Ae,Ae.maximum,ie)),Ae.minimum!==-1/0&&(Ze.min=(0,le.formatValue)(Ae,Ae.minimum,ie)));var Qe={};if(Oe)if(Ae.editor.startsWith("code(")&&Ae.editor.endsWith(")")){var et=Ae.editor.substring(5,Ae.editor.length-1);et&&(Qe.editor={},k.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(et.toLowerCase())?Qe.editor.mode=(0,k.javascript)({jsx:!0,typescript:!0}):U.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(et.toLowerCase())&&(Qe.editor.mode=(0,U.css)()))}else Qe.editor=Ve;return(0,$.jsx)(ae.default,{strict:rt.strict,themeConfiguration:Ae.themeConfiguration,tooltip:Ae.tooltip,children:(0,$.jsxs)("div",R()({ref:w,className:[Be.textInput].concat(Ae.className).join(" "),style:Ae.styles,onBlur:function(e){ye((function(t){var r;if(e.relatedTarget&&null!=(r=w.current)&&r.contains(e.relatedTarget))return t;G(!1);var n=!1,i=!1;if(t.modelState.focused&&(Ae.focused=!1,n=!0,i=!0),t.modelState.visited||(Ae.visited=!0,n=!0,i=!0),!Me||Ae.suggestSelection){var o=(0,le.getValueFromSelection)(Ae.representation,fe);null===o?(Ae.value=(0,le.parseValue)(Ae,Ae.value,ie,Ae.model.trim),Ae.representation=(0,le.formatValue)(Ae,Ae.value,ie)):Ae.value=o}return(0,W.equals)(t.value,Ae.value)&&t.representation===Ae.representation||(n=!0),n&&h(e),(0,W.equals)(t.value,Ae.value)||(0,le.triggerCallbackIfExists)(Ae,"changeValue",ge,Ae.value,e,Ae),i&&(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,e,Ae),(0,le.triggerCallbackIfExists)(Ae,"blur",ge,e,Ae),n?{modelState:Ae.model.state,representation:Ae.representation,value:Ae.value}:t}))},onKeyDown:function(e){var t,r;!Ae.disabled&&Me&&"ArrowDown"===e.code&&e.target===(null==(t=P.current)||null==(t=t.input)?void 0:t.current)&&(null==(r=T.current)||r.focusItem(0)),(Ye||"string"===Ae.type&&"plain"!==Ae.editor)&&Fe(e),(0,le.triggerCallbackIfExists)(Ae,"keyDown",ge,e,Ae)}},Me?{role:"search"}:{},{children:[f((0,$.jsx)(te,R()({},we,{name:Ae.name,onChange:y,onClick:g,onKeyDown:function(e){Ae.disabled||"Tab"===e.code||e.preventDefault()},options:fe,value:Ae.value})),Ye),Oe?Ne?f((0,$.jsx)(Ce,R()({},we,Te,Ze,{onChange:y},Qe,{ref:P})),Oe):(0,$.jsx)(je,R()({},we,Te,Ze,{onChange:y},Qe,{ref:P})):"",f((0,$.jsxs)("div",{children:[Me?(0,$.jsx)(Z,{ref:T,onKeyDown:Fe,pending:ce instanceof AbortController,classNames:[Be.textInputSuggestions],itemClassNames:[Be.textInputSuggestionsSuggestion],pendingClassNames:[Be.textInputSuggestionsPending],onFocus:E,onSelect:function(e){y(Ie[e.detail.index],e.detail.index),G(!1)},open:Boolean(Le.length)&&H&&!(1===Le.length&&Le[0]===Ae.representation),options:Se}):"","string"===Ae.type&&"plain"!==Ae.editor?(0,$.jsx)(xe,R()({},we,Te,Ze,{ref:P,onChange:y})):(0,$.jsx)(oe,R()({},we,Te,Ze,{onChange:y,leadingIcon:m(d(Ae.leadingIcon)),trailingIcon:m(d(Ae.trailingIcon)),type:function(e){var t,r;return"string"===e.type?e.hidden?"password":Me?"search":"text":null!==(t=null==(r=ie[e.type])?void 0:r.type)&&void 0!==t?t:e.type}(Ae)}))]}),!(Oe||Ye),Ae.editor.startsWith("code"))]}))})};tt.displayName="TextInput";var rt=(0,B.memo)((0,B.forwardRef)(tt));rt.wrapped=tt,rt.webComponentAdapterWrapped="react",rt.defaultModelState=He.defaultModelState,rt.defaultProperties=R()({},He.defaultProperties,{cursor:void 0,model:R()({},He.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),rt.locales=W.LOCALES,rt.propTypes=He.propertyTypes,rt.renderProperties=He.renderProperties,rt.strict=!1,rt.transformer=Ze;var nt=rt;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 __webpack_dirname__="/",e,t,r,n,o,i,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!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(12),r=__webpack_require__(4),n=__webpack_require__(5),o=__webpack_require__(6),i=__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=i},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=o},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){void 0===t&&(t=[]),void 0===r&&(r={}),r=d()({ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r);var n=e.nodeName.toLowerCase();if(r.ignoreComponents&&n.includes("-"))return null;if(r.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var o=(0,y.compile)("`"+i+"`",t);return{domNode:e,children:[],error:o.error,scopeNames:o.scopeNames,template:i,templateFunction:o.templateFunction}}return null}var a=null;if("#text"===n){var s=e.textContent;s&&this.self.hasCode(s)&&(a=s.replace(/ /g," ").trim())}var l=[],u={children:l,domNode:e};if(a){var c=(0,y.compile)("`"+a+"`",t);u.error=c.error,u.scopeNames=c.scopeNames,u.template=a,u.templateFunction=c.templateFunction}for(var p=e.firstChild;p;){if(!r.filter||r.filter(p)){var f=this.compileDomNodeTemplate(p,t,d()({},r,{ignoreComponents:r.ignoreNestedComponents}));f&&l.push(f)}p=p.nextSibling}return u},r.evaluateCompiledDomNodeTemplate=function(e,t){var r=e.domNode,n=e.error,i=e.templateFunction,o=e.scopeNames;if(!i||!o)return null;if(n)return console.warn("Error occurred during compiling node content:",n),null;var a=null;try{a=i.apply(void 0,o.map(function(e){return t[e]}))}catch(n){console.warn('Error occurred when "'+this.self._name+'" is running','"'+String(i)+'": with bound','names "'+o.join('", "')+'":','"'+n+'". Rendering node:',r)}return a},r.evaluateDomNodeTemplate=function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r={});var i=(r=d()({domNodeTemplateCache:this.domNodeTemplateCache,ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r)).domNodeTemplateCache;if(!i.has(e)){var o={filter:r.filter,ignoreComponents:r.ignoreComponents,ignoreNestedComponents:r.ignoreNestedComponents,unsafe:r.unsafe},a=this.compileDomNodeTemplate(e,t,o);a&&i.set(e,a)}if(i.has(e)){var s=i.get(e),l=this.evaluateCompiledDomNodeTemplate(s,t);if(null!==l&&(r.unsafe&&e.innerHTML?e.innerHTML=l:e.textContent=l),s.children.length){var u=function(e){for(var r,i=x(e);!(r=i()).done;){var o=r.value,a=n.evaluateCompiledDomNodeTemplate(o,t);null!==a&&(o.domNode.textContent=a),o.children.length&&u(o.children)}};u(s.children)}}r.applyBindings&&this.applyBindings(e,t)},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=g.node.firstElementChild?e:null;if(r&&"textarea"===(null==(t=r.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!r.firstElementChild.hasAttribute("data-no-template")||"false"===r.firstElementChild.getAttribute("data-no-template"))){var n=r.firstElementChild.value;r.classList.remove("web-component-template");var i=r.cloneNode();return r.classList.add("web-component-template"),i.innerHTML="",i.template=n,i}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=[].concat(this.slots.default):this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map(function(t){return e.grabSlotContent(t)}):this.slots.default=[]},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).unmountOnDisconnect=!0,r.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(){var t;this.unmountOnDisconnect&&(null==(t=this.reactRoot)||t.unmount()),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,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(o=t.call.apply(t,[this].concat(s))||this).self=n,o.internalProperties=r.internalProperties?v()({},r.internalProperties):e.internalProperties?v()({},e.internalProperties):{},o.unmountOnDisconnect=null===(i=r.unmountOnDisconnect)||void 0===i||i,o}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 __webpack_dirname__="/",e,t,r,n,i,o,a,l,u,s,c,d,m,f,p,v,g,h,y,b,x,S,w,I,j,N,C,T,O,P,A,E;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter(function(path){return eval("require.main.paths").includes(path)})))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(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),S=__webpack_require__(37),w=__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),A=__webpack_require__(41),E=__webpack_require__(11),function(){var _=[function(t){t.exports=e},function(e){e.exports=E},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])})),o.object]),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]))),(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])})),o.object]),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=w},function(e){e.exports=y},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=T},function(e,t,r){r(0),r(17),r(6),r(2);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(5),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(6),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(24),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(27),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(28),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=S},function(e){e.exports=O},function(e){e.exports=P},function(e){e.exports=A},function(e,t,r){var n=r(6),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}],L={};function M(e){var t=L[e];if(void 0!==t)return t.exports;var r=L[e]={exports:{}};return _[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 D={};M.r(D),M.d(D,{CODE_EDITOR_OPTIONS:function(){return Ke},CSS_CLASS_NAMES:function(){return Be},INPUT_TRANSFORMER:function(){return et},TIPTAP_DEFAULT_OPTIONS:function(){return Ve},TextInput:function(){return rt},TextInputInner:function(){return tt},default:function(){return nt},determineValidationState:function(){return Xe},preventEnterKeyPropagation:function(){return Fe},suggestionMatches:function(){return ze}});var R=M(0),k=M.n(R),q=M(25),U=M(26),W=M(5),B=M(2),K=M(20),V=M.n(K),X=M(45),F=M(22),z=M(23),H=M(29),G=M(21),$=M(1),Y=function(e,t){var r,n,i,o=(0,B.useRef)(null),a=(0,B.useRef)(null),s=(0,B.useRef)(null);return(0,B.useImperativeHandle)(t,function(){return{surfaceAnchor:o,suggestionMenuAPI:a,suggestionMenuFoundation:s,focusItem:function(e){var t;null==(t=a.current)||t.focusItemAtIndex(e)}}}),(0,$.jsx)(H.MenuSurfaceAnchor,{ref:o,onKeyDown:e.onKeyDown,children:e.pending?(0,$.jsx)(H.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,$.jsx)(G.A,{size:"large"})}):(0,$.jsx)(H.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,$.jsx)(H.MenuItem,{className:null==(n=e.itemClassNames)?void 0:n.join(" "),children:t},r)})})})},Z=(0,B.memo)((0,B.forwardRef)(Y)),J=M(30),Q=M(9),ee=function(e,t){var r=(0,B.useRef)(null),n=(0,B.useRef)(null),i=(0,B.useRef)(null);return(0,B.useImperativeHandle)(t,function(){return{base:r,foundation:n,input:i}}),(0,$.jsx)(J.Select,k()({disabled:e.disabled,invalid:e.invalid,rootProps:(0,Q.useMemorizedValue)(k()({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))},te=(0,B.memo)((0,B.forwardRef)(ee)),re=M(31),ne={textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark"},ie=(0,B.forwardRef)(function(e,t){var r,n=(0,B.useRef)(null),i=(0,B.useRef)(null),o=(0,B.useRef)(null);(0,B.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,$.jsx)("div",{className:null==(r=e.classNames)?void 0:r.join(" "),style:e.styles,children:(0,$.jsx)(re.TextField,k()({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,Q.useMemorizedValue)(k()({onClick:e.onClick,onKeyUp:e.onKeyUp,"tab-index":e.disabled?"0":"-1"},e.domNodeProperties),e.name,e.onClick,e.onKeyUp,e.domNodeProperties),icon:e.leadingIcon?"string"==typeof e.leadingIcon?e.leadingIcon:(0,$.jsx)(F.A,k()({},e.leadingIcon)):void 0,trailingIcon:e.trailingIcon?"string"==typeof e.trailingIcon?e.trailingIcon:(0,$.jsx)(F.A,k()({},e.trailingIcon)):void 0,type:e.type,value:e.value},e.componentProperties))})});ie.CSS_CLASS_NAMES=ne;var oe=ie,ae=M(10),se=M(8),le=M(11),ue=M(32),ce=M(33),pe=M(34),de=M(35),fe=M(36),me=M(37),_e=M(38),he=M(39),ve={textInput:"text-input",codeEditor:"code-editor",mdcTextFieldDisabled:"mdc-text-field--disabled",cmEditor:"cm-editor",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",mdcIconButtonChecked:"mdc-icon-button--checked",mdcTextFieldCharacterCounter:"mdc-text-field-character-counter",mdcTextFieldWithInternalCounter:"mdc-text-field--with-internal-counter"},be=(0,B.forwardRef)(function(e,t){var r,n,i,o,a,s=(0,B.useId)(),l=null!==(r=e.id)&&void 0!==r?r:s,u=null!==(n=e.classNamePrefix)&&void 0!==n?n:"text-area",c=(0,B.useRef)(null),p=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,function(){return{foundation:f,input:c,label:d,materialTextField:p}}),(0,B.useEffect)(function(){if(d.current)return p.current=new he.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,B.useEffect)(function(){var t,r,n=e.children?function(){setTimeout(function(){var e;null==(e=f.current)||e.autoCompleteFocus()})}:W.NOOP;null==(t=c.current)||t.addEventListener("input",n);var i=e.children?function(){setTimeout(function(){var e;null==(e=f.current)||e.activateFocus()})}:W.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,$.jsxs)($.Fragment,{children:[(0,$.jsx)("textarea",k()({ref:c,id:l,name:e.name,disabled:e.disabled,className:"mdc-text-field__input",style:e.children?k()({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,$.jsxs)("div",{className:u+"__bar",children:[e.barContentSlot,e.characterCount&&m?(0,$.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}):e.characterCount&&m?(0,$.jsx)("div",{className:"mdc-text-field-character-counter"}):""]}),h="object"==typeof e.helpText?e.helpText:{children:e.helpText};return(0,$.jsxs)($.Fragment,{children:[(0,$.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,$.jsx)("span",{className:"mdc-text-field__ripple"}),(0,$.jsx)("span",{className:"mdc-floating-label",id:l+"-label",children:e.label}),e.resizeable?(0,$.jsx)("span",{className:"mdc-text-field__resizer",children:_}):_,!1!==(null==(o=e.componentProperties)?void 0:o.ripple)?(0,$.jsx)("span",{className:"mdc-line-ripple"}):""]}),h.children?(0,$.jsx)("div",{className:"mdc-text-field-helper-line",children:(0,$.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})}):""]})});be.CSS_CLASS_NAMES=ve;var ye,ge,Ee,xe=be,Ae=(0,B.forwardRef)(function(e,t){var r=(0,B.useRef)(null);return(0,B.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,$.jsx)(xe,k()({ref:r},e,{children:e.children}))}),Pe={textInput:"text-input",textInputCodeEditorButton:"text-input__code-editor-button",textInputRichtextEditorButton:"text-input__richtext-editor-button",textInputSuggestions:"text-input__suggestions",textInputSuggestionsPending:"text-input__suggestions--pending",textInputSuggestionsSuggestion:"text-input__suggestions__suggestion",textInputSuggestionsSuggestionMark:"text-input__suggestions__suggestion__mark",codeEditor:"code-editor",cmContent:"cm-content",cmActiveLine:"cm-activeLine",cmGutters:"cm-gutters",cmActiveLineGutter:"cm-activeLineGutter",cmFocused:"cm-focused",codeEditorHasContent:"code-editor--has-content",codeEditorView:"code-editor__view",richtextEditor:"richtext-editor",richtextEditorBar:"richtext-editor__bar",richtextEditorMenuBar:"richtext-editor-menu-bar",richtextEditorView:"richtext-editor__view",tiptap:"tiptap"},we=ue.autocompletion?[].concat(ue.closeBracketsKeymap,ce.defaultKeymap,fe.searchKeymap,ce.historyKeymap,pe.foldKeymap,ue.completionKeymap,de.lintKeymap):[],Te=_e.EditorView?[(0,_e.lineNumbers)(),(0,_e.highlightActiveLineGutter)(),(0,_e.highlightSpecialChars)(),(0,ce.history)(),(0,pe.foldGutter)(),(0,_e.drawSelection)(),(0,_e.dropCursor)(),me.EditorState.allowMultipleSelections.of(!0),(0,pe.indentOnInput)(),(0,pe.syntaxHighlighting)(pe.defaultHighlightStyle,{fallback:!0}),(0,pe.bracketMatching)(),(0,ue.closeBrackets)(),(0,ue.autocompletion)(),(0,_e.rectangularSelection)(),(0,_e.crosshairCursor)(),(0,_e.highlightActiveLine)(),(0,fe.highlightSelectionMatches)(),_e.keymap.of(we)]:[],Oe=Pe,Ce=(0,B.forwardRef)(function(e,t){var r,n,i;if(!(ue.autocompletion&&ce.history&&pe.syntaxHighlighting&&de.lintKeymap&&fe.searchKeymap&&me.EditorState&&_e.EditorView))throw Error("Missing codemirror dependencies.");var o=null!==(r=e.value)&&void 0!==r?r:"",a=(0,B.useRef)(null),s=(0,B.useRef)(null),l=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,function(){return{input:a,editorView:s,editorViewReference:l}}),(0,B.useEffect)(function(){var t;if(l.current){var r=me.EditorState.create({doc:String(o),extensions:[Te,_e.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 _e.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,B.useEffect)(function(){s.current&&e.value!==s.current.state.doc.toString()&&s.current.state.update({changes:{from:0,insert:me.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,B.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,$.jsx)(Ae,k()({},e,{ref:a,value:o,classNamePrefix:Oe.codeEditor,onLabelClick:function(){var e;null==(e=l.current)||e.focus()},children:(0,$.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:Oe.codeEditorView+" mdc-text-field__input"})}))}),Ne=M(40),Se=M(41),Le=M.n(Se),Ie=(0,B.createContext)(null),Me=function(e){var t,r=e.action,n=e.activeIndicator,i=e.checkedIconName,o=e.enabledIndicator,a=e.iconName,s=e.label,l=(0,B.useContext)(Ie);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,$.jsx)(se.default,{value:p,children:(0,$.jsx)(z.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}})})},De=function(e){var t=e.editor;return t?(0,$.jsx)("span",{className:"richtext-editor-menu-bar",children:(0,$.jsxs)(Ie.Provider,{value:t,children:[(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__history",children:[(0,$.jsx)(Me,{action:function(e){return e.undo()},iconName:"undo"}),(0,$.jsx)(Me,{action:function(e){return e.redo()},iconName:"redo"})]}),(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__marks",children:[(0,$.jsx)(Me,{action:function(e){return e.unsetAllMarks()},enabledIndicator:null,iconName:"format_clear",label:"clear formatting"}),(0,$.jsx)(Me,{action:function(e){return e.toggleBold()},activeIndicator:"bold",iconName:"format_bold"}),(0,$.jsx)(Me,{action:function(e){return e.toggleItalic()},activeIndicator:"italic",iconName:"format_italic"}),(0,$.jsx)(Me,{action:function(e){return e.toggleStrike()},activeIndicator:"strike",iconName:"format_strikethrough",label:"strikethrough"})]}),(0,$.jsxs)("span",{className:"richtext-editor-menu-bar__nodes",children:[(0,$.jsx)(Me,{action:function(e){return e.clearNodes()},enabledIndicator:null,iconName:"layers_clear",label:"clear markup"}),(0,$.jsx)(Me,{action:function(e){return e.toggleHeading({level:2})},enabledIndicator:null,activeIndicator:"heading",iconName:"title",label:"headline"}),(0,$.jsx)(Me,{action:function(e){return e.setParagraph()},enabledIndicator:null,activeIndicator:"paragraph",iconName:"segment"}),(0,$.jsx)(Me,{action:function(e){return e.toggleBulletList()},enabledIndicator:null,activeIndicator:"bulletList",iconName:"format_list_bulleted",label:"Unordered List"}),(0,$.jsx)(Me,{action:function(e){return e.toggleOrderedList()},enabledIndicator:null,activeIndicator:"orderedList",iconName:"format_list_numbered",label:"Ordered List"}),(0,$.jsx)(Me,{action:function(e){return e.setHardBreak()},enabledIndicator:null,iconName:"insert_page_break",label:"Hard break"})]})]})}):null},Re=Pe,je=(0,B.forwardRef)(function(e,t){var r,n,i,o,a;if(!Ne.useEditor||Le().isDummy)throw Error("Missing tiptap dependencies.");var s=null!==(r=e.value)&&void 0!==r?r:"",l=(0,B.useRef)(null),u=(0,B.useRef)(null);(0,B.useImperativeHandle)(t,function(){return{input:l,editorViewReference:u}});var c=(null==(n=e.editor)?void 0:n.extensions)||[Le().configure((null==(i=e.editor)?void 0:i.starterKitOptions)||{})],p=(0,Ne.useEditor)(k()({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,B.useEffect)(function(){u.current&&f&&(u.current.style.height=String(f+8)+"px")},[u.current,f]),(0,$.jsx)(Ae,k()({},e,{ref:l,barContentSlot:(0,$.jsx)(De,{editor:p}),value:"<p></p>"===d?"":d,classNamePrefix:Re.richtextEditor,onLabelClick:function(){p.chain().focus().run()},children:(0,$.jsx)(Ne.EditorContent,{className:Re.richtextEditorView+" mdc-text-field__input",editor:p,innerRef:u})}))}),ke=!(void 0===window),qe=ke?null==(ye=M(42))?void 0:ye.default:null,Ue=ke?null==(ge=M(43))?void 0:ge.default:null,We=ke?null==(Ee=M(44))?void 0:Ee.default:null,Be=Pe,Ke={},Ve={injectCSS:!0,enableContentCheck:!0},Xe=function(e,t){return(0,le.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 Fe(e){"Enter"===e.code&&e.stopPropagation()}function ze(e,t){return!!t&&(e=e.toLowerCase(),t.replace(/ +/g," ").toLowerCase().split(" ").every(function(t){return e.includes(t)}))}var He=M(7),Ge=function(e){return e===1/0?"Infinitely far in the future":e===-1/0?"Infinitely early in the past":isFinite(e)?null:""},$e=function(e){return new Date(Math.round(1e3*e)).toISOString()},Ye=function(e){return e instanceof Date?e.getTime()/1e3:e},Ze={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(rt.locales,k()({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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(e);return i.substring(0,i.lastIndexOf("."))}}},parse:function(e,t){var r=t.date.useISOString;if("string"==typeof(e=Ye(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?$e(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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(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=Ye(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?$e(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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;e-=60*new Date(1e3*e).getTimezoneOffset();var i=$e(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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r))%(24*Math.pow(60,2))==0&&(e+=60*new Date(1e3*e).getTimezoneOffset()),t.date.useISOString?$e(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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r)}var n=Ge(e);if("string"==typeof n)return n;var i=$e(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=Ye(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?$e(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,k()({},t,{date:k()({},t.date,{useISOString:!1})}),r)}var n=Ge(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=Ye(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?$e(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(rt.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"===rt.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(rt.locales,k()({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"===rt.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 Je(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 Qe(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)?Qe(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 Qe(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 et=Ze,tt=function(e,t){var r,n,i,o,a,s,l,u,c=(0,B.useId)(),p=null!==(r=e.id)&&void 0!==r?r:c;(0,B.useEffect)(function(){var e;if(null!=(e=P.current)&&null!=(e=e.input)&&e.current){var t,r,n,i,o=P.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=[];Ae.valid?(l.push("ariaErrormessage"),l.push("ariaInvalid")):(s.ariaErrormessage=p+"-error-message",s.ariaInvalid="true"),Me?("search"!==a.getAttribute("type")&&(s.role="searchbox"),s.ariaAutocomplete=Ae.searchSelection?"inline":"list"):(l.push("searchbox"),l.push("ariaAutocomplete")),Ae.showDeclaration?s.ariaDescribedby=p+"-declaration":l.push("ariaDescribedby");for(var u=k()({},s,Ae.attributes||{}),c=0,d=Object.entries(u);c<d.length;c++){var f=d[c],m=f[0],_=f[1],h=(0,W.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,W.camelCaseToDelimited)(y);a.hasAttribute(g)&&a.removeAttribute(g)}}}),(0,B.useEffect)(function(){if(Ye){var e,t=null==(e=w.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,B.useEffect)(function(){if(Ye){var e,t=null==(e=w.current)?void 0:e.querySelector('[aria-haspopup="listbox"]');if(t){var r=function(e){Ae.disabled&&e.stopPropagation()};return t.addEventListener("keydown",r,!0),function(){t.removeEventListener("keydown",r,!0)}}}}),(0,B.useEffect)(function(){Ae.triggerInitialPropertiesConsolidation&&h(new Event("genericInitialPropertiesConsolidation"))},[]);var d=function(e){if("clear_preset"===e){var t=function(e){e.code&&!["Enter","Space"].includes(e.code)||(e.preventDefault(),e.stopPropagation(),y((0,le.parseValue)(Ae,Ae.default,rt.transformer,!ge&&Ae.model.trim)))},r=(0,W.equals)(Ae.value,Ae.default);return{icon:(0,$.jsx)(V(),{in:!r,children:qe&&!qe.isDummy&&We?(0,$.jsx)(qe,{animation:We,reverse:!0}):(0,$.jsx)(F.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(),j(function(t){return void 0===t&&(t=Ae.hidden),Ae.hidden=!t,h(e),Ae.hidden}))};return{icon:qe&&!qe.isDummy&&Ue?(0,$.jsx)(qe,{animation:Ue,reverse:!Ae.hidden}):Ae.hidden?"lock_open":"lock",onClick:n,onKeyDown:n,strategy:"component",tooltip:(Ae.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},f=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=!0),"boolean"==typeof t?r?(0,$.jsx)(V(),{in:t,children:e}):t?e:"":r?(0,$.jsx)(V(),k()({},t,{children:e})):t.in?e:""},m=function(e){if("object"==typeof e&&e.tooltip){var t=e.tooltip;delete(e=k()({},e)).tooltip;var r=k()({},e);e.strategy="component",e.icon=(0,$.jsx)(se.default,{value:t,children:(0,$.jsx)(F.A,k()({},r))})}return e},_=function(e){var t=(0,le.getConsolidatedProperties)(function(e){var t,r=(0,le.mapPropertiesIntoModel)(e,rt.defaultProperties.model);return r.model.value=(0,le.parseValue)(r,r.model.value,ie,!ge&&(null==(t=e.model)?void 0:t.trim)),Xe(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,le.formatValue)(t,t.value,ie,!t.focused)),t},h=function(e){(0,W.extend)(!0,Ae,_(Ae)),(0,le.triggerCallbackIfExists)(Ae,"change",ge,Ae,e)},v=function(e){e.preventDefault(),e.stopPropagation(),M(function(t){var r=t.editorIsActive;return Ae.editorIsActive=!r,h(e),(0,le.triggerCallbackIfExists)(Ae,"changeEditorIsActive",ge,Ae.editorIsActive,e,Ae),{editorIsActive:Ae.editorIsActive,selectionIsUnstable:!0}})},b=function(e){Q(function(t){return Ae.showDeclaration=!t,h(e),(0,le.triggerCallbackIfExists)(Ae,"changeShowDeclaration",ge,Ae.showDeclaration,e,Ae),Ae.showDeclaration})},y=function(e,t){var r;if(void 0===t&&(t=-1),G(!0),(0,W.isObject)(e)){var n=(r=e).target||r.detail;Ae.value=n?void 0===n.value?null:n.value:e}else Ae.value=e;var i=function(){ye(function(e){if(!Ee&&e.representation===Ae.representation&&!Ae.suggestionCreator&&-1===t)return e;var n=k()({},e,{representation:Ae.representation});if(!ge&&(0,W.equals)(e.value,Ae.value))return n;n.value=Ae.value;var i=!1;return e.modelState.pristine&&(Ae.dirty=!0,Ae.pristine=!1,i=!0),h(r),Xe(Ae,e.modelState)&&(i=!0),(0,le.triggerCallbackIfExists)(Ae,"changeValue",ge,Ae.value,r,Ae),i&&Ae.model.state&&(n.modelState=Ae.model.state,(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,r,Ae)),(Ye||-1!==t)&&(0,le.triggerCallbackIfExists)(Ae,"select",ge,r,Ae),n})},o=!ge&&Ae.model.trim;if(Ae.representation=-1!==t?Le[t]:"string"==typeof Ae.value?Ae.value:(0,le.formatValue)(Ae,Ae.value,ie),Me)if(Ae.suggestionCreator){var a=new AbortController,s=function(e){if(!a.signal.aborted){if(pe(function(t){return t instanceof AbortController&&!t.signal.aborted&&t.abort(),e}),-1===t){var r=(0,le.getValueFromSelection)(Ae.representation,(0,le.normalizeSelection)(e));null!==r||Ae.searchSelection?Ae.value=r:Ae.value=(0,le.parseValue)(Ae,Ae.representation,ie,o)}i()}},l=Ae.suggestionCreator({abortController:a,properties:Ae,query:Ae.representation});null!=l&&l.then?(pe(function(e){return e instanceof AbortController&&!e.signal.aborted&&e.abort(),a}),ye(function(e){return k()({},e,{representation:Ae.representation})}),l.then(s,function(){})):s(l)}else{if(-1===t){var u=(0,le.getValueFromSelection)(Ae.representation,fe);null!==u||Ae.searchSelection?Ae.value=u:Ae.value=(0,le.parseValue)(Ae,Ae.representation,ie,o)}i()}else Ae.value=(0,le.parseValue)(Ae,Ae.value,ie,o),i()},g=function(e){x(e),(0,le.triggerCallbackIfExists)(Ae,"click",ge,e,Ae),A(e)},E=function(e){(0,le.triggerCallbackIfExists)(Ae,"focus",ge,e,Ae),A(e)},x=function(e){(0,le.triggerCallbackIfExists)(Ae,"selectionChange",ge,e,Ae)},A=function(e){ye(function(t){var r=!1;t.modelState.focused||(Ae.focused=!0,r=!0),t.modelState.untouched&&(Ae.touched=!0,Ae.untouched=!1,r=!0);var n=t;return r&&(h(e),n=k()({},t,{modelState:Ae.model.state}),(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,e,Ae)),(0,le.triggerCallbackIfExists)(Ae,"touch",ge,e,Ae),n})},P=(0,B.useRef)(null),w=(0,B.useRef)(null),T=(0,B.useRef)(null),O=(0,le.translateKnownSymbols)(e),C=(0,B.useState)({end:0,start:0}),N=C[0],S=C[1],L=(0,B.useState)({editorIsActive:O.editorIsInitiallyActive||!1,selectionIsUnstable:!1}),I=L[0],M=L[1],D=(0,B.useState)(),R=D[0],j=D[1],K=(0,B.useState)(!1),H=K[0],G=K[1],Y=(0,B.useState)(!1),J=Y[0],Q=Y[1],ee=(0,le.determineInitialValue)(O,rt.defaultProperties.model.default);ee instanceof Date&&(ee=ee.getTime()/1e3);var re=(0,W.extend)(!0,(0,W.copy)(rt.defaultProperties),O),ne=re.type||(null==(n=re.model)?void 0:n.type)||"string",ie=re.transformer?k()({},rt.transformer,((i={})[ne]=(0,W.extend)(!0,(0,W.copy)(rt.transformer[ne])||{},re.transformer),i)):rt.transformer,ue=(0,B.useState)(),ce=ue[0],pe=ue[1];(re.selection||null!=(o=re.model)&&o.selection)&&(ce=re.selection||(null==(a=re.model)?void 0:a.selection)),ce||"boolean"!==(re.type||(null==(s=re.model)?void 0:s.type))||(ce=[{label:"No",value:!1},{label:"Yes",value:!0}]);var de,fe=ce instanceof AbortController?[]:(0,le.normalizeSelection)(ce,re.labels),me=ce instanceof AbortController?[[],[]]:(0,le.getLabelAndValues)(fe),_e=me[0],he=me[1],ve=(0,B.useState)(function(){return{modelState:k()({},rt.defaultModelState),representation:(0,le.determineInitialRepresentation)(re,rt.defaultProperties,ee,ie,fe),value:ee}}),be=ve[0],ye=ve[1],ge=!re.enforceUncontrolled&&(void 0!==(null==(l=O.model)?void 0:l.value)||void 0!==O.value)&&Boolean(O.onChange||O.onChangeValue),Ee=ge&&void 0!==O.representation;null!==re.cursor&&"object"==typeof re.cursor||(re.cursor={}),void 0===re.cursor.end&&(re.cursor.end=N.end),void 0===re.cursor.start&&(re.cursor.start=N.start),void 0===re.editorIsActive&&(re.editorIsActive=I.editorIsActive),void 0===re.hidden&&(re.hidden=R),void 0===re.representation&&(re.representation=be.representation),void 0===re.showDeclaration&&(re.showDeclaration=J),(0,le.deriveMissingPropertiesFromState)(re,be),void 0===re.value?void 0===re.representation&&void 0===(null==(de=re.model)?void 0:de.value)&&(re.representation=be.representation):Ee||re.value===be.value||(re.representation=void 0);var Ae=_(re);void 0===Ae.hidden&&(Ae.hidden=Ae.name.startsWith("password")),Ae.cursor&&!(0,W.equals)(Ae.cursor,N)&&S(Ae.cursor),Ae.editorIsActive!==I.editorIsActive&&M(k()({},I,{editorIsActive:Ae.editorIsActive})),Ae.hidden!==R&&j(Ae.hidden),Ae.showDeclaration!==J&&Q(Ae.showDeclaration);var Pe={modelState:Ae.model.state,representation:Ae.representation,value:null!==(u=Ae.value)&&void 0!==u?u:null};(ge||(0,W.equals)(Ae.value,be.value)&&Ae.representation===be.representation)&&(0,W.equals)(Ae.model.state,be.modelState)||ye(Pe),ge&&(ye=(0,le.wrapStateSetter)(ye,Pe)),(0,B.useImperativeHandle)(t,function(){for(var e,t={modelState:Ae.model.state},r=Je(["cursor","editorIsActive","hidden","showDeclaration"]);!(e=r()).done;){var n,i=e.value;Object.prototype.hasOwnProperty.call(O,i)||(t[i]=null!==(n=Ae[i])&&void 0!==n&&n)}return Ee||(t.representation=Ae.representation),ge||(t.value=Ae.value),{properties:Ae,references:{input:P,menu:T,wrapper:w},state:t}});var we={ref:P,id:p,componentProperties:Ae.componentProperties,domNodeProperties:Ae.domNodeProperties,onClick:g,onFocus:function(e){G(!0),E(e)},disabled:Ae.disabled,invalid:Ae.invalid&&Ae.showValidationState&&(Ae.showInitialValidationState||Ae.visited),helpText:{children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(V(),{in:Ae.selectableEditor&&"string"===Ae.type&&"plain"!==Ae.editor,children:(0,$.jsx)(z.A,{classNames:[Ae.editor.startsWith("code")?Be.textInputCodeEditorButton:Be.textInputRichtextEditorButton],domNodeProperties:{"aria-label":Ae.editorIsActive?"plain":Ae.editor.startsWith("code")?"code":"richtext"},icon:Ae.editorIsActive?"subject":Ae.editor.startsWith("code")?"code":"text_format",onClick:v})}),(0,$.jsx)(V(),{in:Boolean(Ae.declaration),children:(0,$.jsx)(z.A,{"aria-expanded":Ae.showDeclaration?"true":"false","aria-label":"declaration",value:Ae.showDeclaration,icon:"more_horiz",onIcon:"more_vert",onChange:b})}),(0,$.jsx)(V(),{id:p+"-declaration",in:Ae.showDeclaration,children:Ae.declaration}),(0,$.jsx)(V(),{in:!Ae.showDeclaration&&Ae.invalid&&Ae.showValidationState&&(Ae.showInitialValidationState||Ae.visited),children:(0,$.jsx)(X.A,{applyToChildren:!0,children:(0,$.jsx)("span",{id:p+"-error-message",children:(0,le.renderMessage)(Ae.invalidMaximum&&Ae.maximumText||Ae.invalidMaximumLength&&Ae.maximumLengthText||Ae.invalidMinimum&&Ae.minimumText||Ae.invalidMinimumLength&&Ae.minimumLengthText||Ae.invalidInvertedPattern&&Ae.invertedPatternText||Ae.invalidPattern&&Ae.patternText||Ae.invalidRequired&&Ae.requiredText,k()({formatValue:function(e){return(0,le.formatValue)(Ae,e,ie)}},Ae))})})})]}),persistent:!0},name:Ae.name||Ae.description,label:Ae.description||Ae.name},Te={placeholder:Ae.placeholder,characterCount:"number"==typeof Ae.maximumLength&&!isNaN(Ae.maximumLength)&&Ae.maximumLength>=0,value:Ae.representation,domNodeProperties:k()({"tab-index":Ae.disabled?"0":"-1"},Ae.domNodeProperties),onKeyUp:function(e){e.code&&(x(e),(0,le.triggerCallbackIfExists)(Ae,"keyUp",ge,e,Ae))}},Oe=!Ae.selection&&"string"===Ae.type&&Ae.editorIsActive&&("code"===Ae.editor||Ae.editor.startsWith("code(")&&Ae.editor.endsWith(")")||"richtext"===Ae.editor||Ae.editor.startsWith("richtext(")&&Ae.editor.endsWith(")")),Ne=Oe&&Ae.editor.startsWith("code"),Se=[],Le=[],Ie=[],Me=Boolean(Ae.suggestionCreator||_e.length&&(Ae.searchSelection||Ae.suggestSelection));if(Me&&_e.length){Ae.suggestSelection=!Ae.searchSelection;for(var De,Re=0,ke=Je(_e);!(De=ke()).done;){var Ke=De.value;if((0,W.isFunction)(Ae.children)){var He=Ae.children({index:Re,normalizedSelection:fe,properties:Ae,query:Ae.representation,suggestion:Ke,value:he[Re]});He&&(Se.push(He),Le.push(Ke),Ie.push(he[Re]))}else if(!Ae.representation||Ae.suggestionCreator||ze(Ke,Ae.representation)){var Ge,$e=(0,W.mark)(Ke,(null==(Ge=Ae.representation)?void 0:Ge.split(" "))||"",{marker:function(e){return[e]},skipTagDelimitedParts:null}).map(function(e,t){return Array.isArray(e)?(0,$.jsx)("span",{className:Be.textInputSuggestionsSuggestionMark,children:e[0]},t):(0,$.jsx)("span",{children:e},t)});Se.push($e),Le.push(Ke),Ie.push(he[Re])}Re+=1}}var Ye=(Boolean(fe)||Boolean(Ae.labels))&&!Me,Ze={};"number"===Ae.type?(Ze.step=Ae.step,Ae.maximum!==1/0&&(Ze.max=Ae.maximum),Ae.minimum!==-1/0&&(Ze.min=Ae.minimum)):"string"===Ae.type?(Ae.maximumLength>=0&&Ae.maximumLength!==1/0&&(Ze.maximumLength=Ae.maximumLength),Ae.minimumLength>0&&(Ze.minimumLength=Ae.minimumLength),"plain"!==Ae.editor&&(Ze.rows=Ae.rows)):["date","date-local","date","date-local","datetime","datetime-local","time","time-local"].includes(Ae.type)&&(Ze.step=Ae.step,Ae.maximum!==1/0&&(Ze.max=(0,le.formatValue)(Ae,Ae.maximum,ie)),Ae.minimum!==-1/0&&(Ze.min=(0,le.formatValue)(Ae,Ae.minimum,ie)));var Qe={};if(Oe)if(Ae.editor.startsWith("code(")&&Ae.editor.endsWith(")")){var et=Ae.editor.substring(5,Ae.editor.length-1);et&&(Qe.editor={},q.javascript&&["js","jsx","ts","tsx","script","javascript","typescript"].includes(et.toLowerCase())?Qe.editor.mode=(0,q.javascript)({jsx:!0,typescript:!0}):U.css&&["css","style","styles","cascadingstylesheet","cascadingstylesheets"].includes(et.toLowerCase())&&(Qe.editor.mode=(0,U.css)()))}else Qe.editor=Ve;return(0,$.jsx)(ae.default,{strict:rt.strict,themeConfiguration:Ae.themeConfiguration,tooltip:Ae.tooltip,children:(0,$.jsxs)("div",k()({ref:w,className:[Be.textInput].concat(Ae.className).join(" "),style:Ae.styles,onBlur:function(e){ye(function(t){var r;if(e.relatedTarget&&null!=(r=w.current)&&r.contains(e.relatedTarget))return t;G(!1);var n=!1,i=!1;if(t.modelState.focused&&(Ae.focused=!1,n=!0,i=!0),t.modelState.visited||(Ae.visited=!0,n=!0,i=!0),!Me||Ae.suggestSelection){var o=(0,le.getValueFromSelection)(Ae.representation,fe);null===o?(Ae.value=(0,le.parseValue)(Ae,Ae.value,ie,Ae.model.trim),Ae.representation=(0,le.formatValue)(Ae,Ae.value,ie)):Ae.value=o}return(0,W.equals)(t.value,Ae.value)&&t.representation===Ae.representation||(n=!0),n&&h(e),(0,W.equals)(t.value,Ae.value)||(0,le.triggerCallbackIfExists)(Ae,"changeValue",ge,Ae.value,e,Ae),i&&(0,le.triggerCallbackIfExists)(Ae,"changeState",ge,Ae.model.state,e,Ae),(0,le.triggerCallbackIfExists)(Ae,"blur",ge,e,Ae),n?{modelState:Ae.model.state,representation:Ae.representation,value:Ae.value}:t})},onKeyDown:function(e){var t,r;!Ae.disabled&&Me&&"ArrowDown"===e.code&&e.target===(null==(t=P.current)||null==(t=t.input)?void 0:t.current)&&(null==(r=T.current)||r.focusItem(0)),(Ye||"string"===Ae.type&&"plain"!==Ae.editor)&&Fe(e),(0,le.triggerCallbackIfExists)(Ae,"keyDown",ge,e,Ae)}},Me?{role:"search"}:{},{children:[f((0,$.jsx)(te,k()({},we,{name:Ae.name,onChange:y,onClick:g,onKeyDown:function(e){Ae.disabled||"Tab"===e.code||e.preventDefault()},options:fe,value:Ae.value})),Ye),Oe?Ne?f((0,$.jsx)(Ce,k()({},we,Te,Ze,{onChange:y},Qe,{ref:P})),Oe):(0,$.jsx)(je,k()({},we,Te,Ze,{onChange:y},Qe,{ref:P})):"",f((0,$.jsxs)("div",{children:[Me?(0,$.jsx)(Z,{ref:T,onKeyDown:Fe,pending:ce instanceof AbortController,classNames:[Be.textInputSuggestions],itemClassNames:[Be.textInputSuggestionsSuggestion],pendingClassNames:[Be.textInputSuggestionsPending],onFocus:E,onSelect:function(e){y(Ie[e.detail.index],e.detail.index),G(!1)},open:Boolean(Le.length)&&H&&!(1===Le.length&&Le[0]===Ae.representation),options:Se}):"","string"===Ae.type&&"plain"!==Ae.editor?(0,$.jsx)(xe,k()({},we,Te,Ze,{ref:P,onChange:y})):(0,$.jsx)(oe,k()({},we,Te,Ze,{onChange:y,leadingIcon:m(d(Ae.leadingIcon)),trailingIcon:m(d(Ae.trailingIcon)),type:function(e){var t,r;return"string"===e.type?e.hidden?"password":Me?"search":"text":null!==(t=null==(r=ie[e.type])?void 0:r.type)&&void 0!==t?t:e.type}(Ae)}))]}),!(Oe||Ye),Ae.editor.startsWith("code"))]}))})};tt.displayName="TextInput";var rt=(0,B.memo)((0,B.forwardRef)(tt));rt.wrapped=tt,rt.webComponentAdapterWrapped="react",rt.defaultModelState=He.defaultModelState,rt.defaultProperties=k()({},He.defaultProperties,{cursor:void 0,model:k()({},He.defaultProperties.model,{state:void 0,value:void 0}),representation:void 0,value:void 0}),rt.locales=W.LOCALES,rt.propTypes=He.propertyTypes,rt.renderProperties=He.renderProperties,rt.strict=!1,rt.transformer=Ze;var nt=rt;return D}())}],__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__}()});
|