web-component-wrapper 0.0.444 → 0.0.445
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactWeb.js +1 -0
- package/ReactWebNext.js +1 -0
- package/WebNext.js +1 -1
- package/index.d.ts +5 -4
- package/index.js +1 -11
- package/indexNext.js +1 -11
- package/package.json +5 -5
- package/type.d.ts +1 -1
- package/React.js +0 -11
- package/ReactNext.js +0 -11
- /package/{React.d.ts → ReactWeb.d.ts} +0 -0
package/index.js
CHANGED
@@ -1,11 +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("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("clientnode"),require("clientnode/property-types"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","clientnode","clientnode/property-types","react-dom","react-dom/client","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","@babel/runtime/regenerator"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("clientnode"),require("clientnode/property-types"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e.clientnode,e["clientnode/property-types"],e["react-dom"],e["react-dom/client"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e["@babel/runtime/regenerator"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n,o,i,s,a,l,p,u,c){return function(){var f=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=t},function(e,t,r){var n=r(0),o=r.n(n),i=r(1),s=r.n(i),a=r(2);t.default=function(e){return void 0===e&&(e={}),e=o()({readAttribute:!0,type:a.string},e),function(t,r){if("string"==typeof r){var n,i=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(i,"observedAttributes")||(i.observedAttributes=i.observedAttributes?[].concat(i.observedAttributes):[]);var a=s().stringCamelCaseToDelimited(r);i.observedAttributes.includes(a)||i.observedAttributes.push(a)}if(e.type&&(Object.prototype.hasOwnProperty.call(i,"propertyTypes")||(i.propertyTypes=i.propertyTypes?o()({},i.propertyTypes):{}),!e.update&&Object.prototype.hasOwnProperty.call(i,r)||(i.propertyTypes[r]=e.type)),e.writeAttribute)if(Object.prototype.hasOwnProperty.call(i,"propertiesToReflectAsAttributes")||(i.propertiesToReflectAsAttributes=i.propertiesToReflectAsAttributes?s().copy(i.propertiesToReflectAsAttributes):[]),e.update||i.propertiesToReflectAsAttributes instanceof Map&&!i.propertiesToReflectAsAttributes.has(r)||Array.isArray(i.propertiesToReflectAsAttributes)&&!i.propertiesToReflectAsAttributes.includes(r)||null!==i.propertiesToReflectAsAttributes&&"object"==typeof i.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(i.propertiesToReflectAsAttributes,r))"boolean"==typeof e.writeAttribute?!0===e.writeAttribute&&i.propertyTypes&&Object.prototype.hasOwnProperty.call(i.propertyTypes,r)&&(n=i.propertyTypes[r]):n=e.writeAttribute,void 0!==n&&(Array.isArray(i.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?i.propertiesToReflectAsAttributes.push(r):i.propertiesToReflectAsAttributes=i.normalizePropertyTypeList(i.propertiesToReflectAsAttributes)),i.propertiesToReflectAsAttributes instanceof Map&&i.propertiesToReflectAsAttributes.set(r,n),null!==i.propertiesToReflectAsAttributes&&"object"==typeof i.propertiesToReflectAsAttributes&&(i.propertiesToReflectAsAttributes[r]=n));e.alias&&(Object.prototype.hasOwnProperty.call(i,"propertyAliases")||(i.propertyAliases=i.propertyAliases?o()({},i.propertyAliases):{}),!e.update&&Object.prototype.hasOwnProperty.call(i,r)||(i.propertyAliases[r]=e.alias))}}}},function(e,t,r){r.d(t,{api:function(){return N}});var n,o,i,s,a=r(6),l=r.n(a),p=r(0),u=r.n(p),c=r(7),f=r.n(c),d=r(8),h=r.n(d),y=r(3),b=r.n(y),m=r(9),v=r.n(m),g=(r(10),r(11)),A=r.n(g),P=r(1),w=r.n(P),T=r(2),O=r(4);function C(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)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="undefined"==typeof HTMLElement?function(){}:HTMLElement,R=(n=(0,O.default)({type:T.boolean,writeAttribute:!0}),s=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={Tools:w()},r.domNodeEventBindings=new Map,r.domNodeTemplateCache=new Map,r.externalProperties={},r.ignoreAttributeUpdateObservations=!1,r.internalProperties={},r.outputEventNames=new Set,r.instance=null,f()(r,"isRoot",i,h()(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=h()(r),r.defineGetterAndSetterInterface(),r}b()(t,e);var r=t.prototype;return r.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)},r.updateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,w().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"):w().timeout((function(){return e.render("connected")}))},r.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=C(this.domNodeEventBindings.values());!(e=t()).done;)for(var r,n=C(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=C(w().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex))));!(e=n()).done;)r()},r.getPropertyAlias=function(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},r.getPropertyValue=function(e){var r,n,o,i,s=null!=(r=this.instance)&&null!=(n=r.current)&&n.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(o=this.instance)&&null!=(i=o.current)&&i.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:s},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,w().timeout((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),w().timeout((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOutputEvents()})).then(w().noop,w().noop)):(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,o=function(){var o=n.value,i="";if(o.startsWith("data-bind-")?i=o.substring("data-bind-".length):o.startsWith("bind-")&&(i=o.substring("bind-".length)),i){var s=e.getAttribute(o);if(null===s)return"continue";if(i.startsWith("attribute-")||i.startsWith("property-")){var a=w().stringEvaluate(s,t,!1,e);if(a.error)return console.warn('Error occurred during processing given attribute binding "'+o+'" on node:',e,a.error),"continue";i.startsWith("attribute-")?e.setAttribute(i.substring("attribute-".length),a.result):e[w().stringDelimitedToCamelCase(i.substring("property-".length))]=a.result}else if(i.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var l=r.domNodeEventBindings.get(e);i=w().stringDelimitedToCamelCase(i.substring("on-".length)),l.has(i)&&l.get(i)(),t=u()({event:void 0,parameters:void 0},t);var p=w().stringCompile(s,t,!0);if(p.error)console.warn('Error occurred during compiling given event binding "'+o+'" on node:',e,p.error);else{var c=p.templateFunction.bind(e),f=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.event=n[0],t.parameters=n;try{c.apply(void 0,p.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+o+'" on node:',e,'Given expression "'+s+'" could not be evaluated with given scope names "'+p.scopeNames.join('", "')+'": '+w().represent(t))}};e.addEventListener(i,f),l.set(i,(function(){e.removeEventListener(i,f),l.delete(i),0===l.size&&r.domNodeEventBindings.delete(e)}))}}}},i=C(e.getAttributeNames());!(n=i()).done;)o()},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){var n;if(void 0===t&&(t=[]),void 0===r&&(r={}),(r=u()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).ignoreComponents&&null!=(n=e.nodeName)&&n.toLowerCase().includes("-"))return r.map;if(r.unsafe){var o=e.innerHTML;if(!o&&e.template&&(o=e.template),this.self.hasCode(o)){var i=w().stringCompile("`"+o+"`",t);r.map.set(e,{children:[],error:i.error,scopeNames:i.scopeNames,template:o,templateFunction:i.templateFunction})}}else{var s,a=e.nodeName.toLowerCase();if(["a","#text"].includes(a)){var l="a"===a?e.getAttribute("href"):e.textContent;this.self.hasCode(l)&&(s=l.replace(/ /g," ").trim())}var p=[];if(s){var c=w().stringCompile("`"+s+"`",t);r.map.set(e,{children:p,error:c.error,scopeNames:c.scopeNames,template:s,templateFunction:c.templateFunction})}for(var f=e.firstChild;f;)r.filter&&!r.filter(f)||p.push(this.compileDomNodeTemplate(f,t,u()({},r,{ignoreComponents:r.ignoreNestedComponents}))),f=f.nextSibling}return r.map},r.evaluateDomNodeTemplate=function(e,t,r){var n;if(void 0===t&&(t={}),void 0===r&&(r={}),(r=u()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){var o=r.map.get(e),i=o.error,s=o.scopeNames,a=o.templateFunction;if(i)console.warn("Error occurred during compiling node content: "+i);else{var l=null;try{l=a.apply(void 0,s.map((function(e){return t[e]})))}catch(i){console.warn('Error occurred when "'+this.self._name+'" is running "'+a+'": with bound names "'+s.join('", "')+'": "'+i+'". Rendering node:',e)}null!==l&&(r.unsafe?e.innerHTML=l:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",l):e.textContent=l)}}if(!(r.unsafe||r.ignoreComponents&&null!=(n=e.nodeName)&&n.toLowerCase().includes("-")))for(var p=e.firstChild;p;)r.filter&&!r.filter(p)||this.evaluateDomNodeTemplate(p,t,u()({},r,{applyBindings:!1,ignoreComponents:r.ignoreNestedComponents})),p=p.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,o=C([].concat(r).reverse());!(n=o()).done;){var i,s=n.value;t.trimSlots&&s.nodeType===Node.TEXT_NODE&&""===(null==(i=s.nodeValue)?void 0:i.trim())||e.after(s)}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;){var r;(e instanceof t||null!=(r=e.nodeName)&&r.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,o=new Map,i=C(n);!(r=i()).done;){var s=r.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,s)&&o.set(s,t.propertyTypes[s])}return o}return w().convertPlainObjectToMap(e)},r.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},r.attachExplicitDefinedOutputEventHandler=function(){for(var e=this,t=!1,r=function(){var r=o[n];Object.prototype.hasOwnProperty.call(e.internalProperties,r)||(t=!0,e.outputEventNames.add(r),e.setInternalPropertyValue(r,l()(A().mark((function t(){var n,o,i,s,a=arguments;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=a.length,o=new Array(n),i=0;i<n;i++)o[i]=a[i];return t.next=3,e.reflectEventToProperties(r,o);case 3:(s=t.sent)&&(o[0]=s),e.forwardEvent(r,o);case 6:case"end":return t.stop()}}),t)})))))},n=0,o=Object.keys(this.self.eventToPropertyMapping);n<o.length;n++)r();return t},r.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var r=function(){var r=o[n],i=r[0],s=r[1];Object.prototype.hasOwnProperty.call(t.internalProperties,i)||![T.func,"function"].includes(s)||t.self.renderProperties.includes(i)||(t.outputEventNames.add(i),t.setInternalPropertyValue(i,(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e&&t.reflectEventToProperties(i,n),t.forwardEvent(i,n)})))},n=0,o=Object.entries(this.self.propertyTypes);n<o.length;n++)r()},r.triggerOutputEvents=function(){for(var e,t=C(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},r.forwardEvent=function(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=w().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},r.applySlots=function(e,t){for(var r=this,n=0,o=Array.from(e.querySelectorAll("slot"));n<o.length;n++){var i=o[n],s=i.getAttribute("name");if(null===s||"default"===s)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var a,l=C(this.slots.default);!(a=l()).done;){var p=a.value;this.evaluateDomNodeTemplate(p,t)}this.self.replaceDomNodes(i,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(i).map((function(e){return r.grabSlotContent(e)}));else Object.prototype.hasOwnProperty.call(this.slots,s)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[s],t),this.self.replaceDomNodes(i,this.slots[s])):this.slots[s]=this.grabSlotContent(this.self.unwrapDomNode(i).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},r.grabSlotContent=function(e){var t;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!e.firstElementChild.hasAttribute("data-no-template")||"false"===e.firstElementChild.getAttribute("data-no-template"))){var r,n,o=e.firstElementChild.value;null==(r=e.classList)||r.remove("web-component-template");var i=e.cloneNode();return null==(n=e.classList)||n.add("web-component-template"),i.innerHTML="",i.template=o,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=r[t],o=n.parentNode,i=!0;o;){if(o.nodeName.includes("-")){o===this&&(i=!1);break}o=o.parentNode}i||(this.slots[n.getAttribute&&n.getAttribute("slot")&&n.getAttribute("slot").trim()?n.getAttribute("slot").trim():n.nodeName.toLowerCase()]=this.grabSlotContent(n))}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((function(t){return e.grabSlotContent(t)})):this.slots.default=[]},r.isStateProperty=function(e){var t,r,n,o;return Boolean((null==(t=this.instance)||null==(r=t.current)?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null==(n=this.instance)||null==(o=n.current)?void 0:o.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=u()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var r=t[e],n=r[0],o=r[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,o)||(this.self._propertyAliasIndex[o]=n)}}},r.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,r=Object.entries(e);t<r.length;t++){var n=r[t],o=n[0],i=n[1];if(this.setExternalPropertyValue(o,i),this.isConnected){var s=w().stringCamelCaseToDelimited(o);if(this.self._propertiesToReflectAsAttributes.has(o))switch(this.self._propertiesToReflectAsAttributes.get(o)){case T.boolean:case"boolean":i?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case T.func:case"function":break;case"json":if(i){var a=JSON.stringify(i);if(a&&this.getAttribute(s)!==a){this.setAttribute(s,a);break}}this.hasAttribute(s)&&this.removeAttribute(s);break;case T.number:case"number":if("number"!=typeof i||isNaN(i))this.hasAttribute(s)&&this.removeAttribute(s);else{var l=""+i;this.getAttribute(s)!==l&&this.setAttribute(s,l)}break;case T.string:case"string":i?this.getAttribute(s)!==i&&this.setAttribute(s,i):this.hasAttribute(s)&&this.removeAttribute(s);break;case T.any:case T.array:case T.arrayOf:case T.element:case T.elementType:case T.instanceOf:case T.node:case T.object:case"object":case T.objectOf:case T.shape:case T.exact:case T.symbol:default:if(i){var p=w().represent(i);if(p&&this.getAttribute(s)!==p){this.setAttribute(s,p);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},r.reflectProperties=function(e){var t,r,n,o;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(r=t.current)&&r.state&&"object"==typeof this.instance.current.state)for(var i,s=C(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(i=s()).done;){var a=i.value;Object.prototype.hasOwnProperty.call(this.internalProperties,a)&&this.setInternalPropertyValue(a,void 0)}null!=(n=this.internalProperties.model)&&n.state&&(null==(o=this.internalProperties.model)||delete o.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var l,p=C(this.self.controllableProperties);!(l=p()).done;){var u=l.value;Object.prototype.hasOwnProperty.call(e,u)&&this.setInternalPropertyValue(u,e[u])}},r.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,w().timeout((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},r.reflectEventToProperties=function(){var e=l()(A().mark((function e(t,r){var n,o,i,s,a,l,p,c,f,d,h,y,b,m,v,g;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.batchUpdates,this.batchUpdates=!1,o=null,i=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&w().isFunction(this.self.eventToPropertyMapping[t]))){e.next=16;break}if(!((a=(s=this.self.eventToPropertyMapping)[t].apply(s,r.concat([this])))&&"then"in a&&w().isFunction(a.then))){e.next=12;break}return e.next=9,a;case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=a;case 13:l=e.t0,i=!0,Array.isArray(l)?(o=l[0],this.reflectProperties(o),w().extend(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(o=l,this.reflectProperties(l));case 16:if(!i&&r.length>0&&null!==r[0]&&"object"==typeof r[0]){if(c=r[0],"persist"in r[0]&&w().isFunction(r[0].persist))for(c={},f=0,d=Object.keys(this.self.propertyTypes);f<d.length;f++)for(h=d[f],y=C([h].concat(null!==(m=this.getPropertyAlias(h))&&void 0!==m?m:[]));!(b=y()).done;)v=b.value,(g=r[0].currentTarget&&Object.prototype.hasOwnProperty.call(r[0].currentTarget,v)?r[0].currentTarget[v]:this.getPropertyValue(v))!==this.externalProperties[v]&&(c[v]=g);else[null,void 0].includes(null==(p=c.detail)?void 0:p.value)||(c=u()({},c.detail));o=c,this.reflectProperties(c)}return this.triggerRender("propertyReflected"),this.batchUpdates=n,e.abrupt("return",o);case 20: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("-"),o=n?e.substring(1):e,i=w().stringDelimitedToCamelCase(o),s=this.getPropertyAlias(i);if(s&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,s)&&(i=s),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,i)){var a=this.self.propertyTypes[i];if(n){if(t){var l=w().stringEvaluate(t,{Tools:w()},!1,this);l.error?(console.warn('Faild to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(i,void 0)):(this.setInternalPropertyValue(i,l.result),this.setExternalPropertyValue(i,l.result))}}else switch(a){case T.boolean:case"boolean":var p=![null,"false"].includes(t);this.setInternalPropertyValue(i,p),this.setExternalPropertyValue(i,p);break;case T.func:case"function":var u,c=null,f=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){var d=w().stringCompile(t,f);c=d.error,u=d.templateFunction,c&&console.warn('Failed to compile given handler "'+e+'": '+c+".")}this.setInternalPropertyValue(i,(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];r.outputEventNames.has(i)&&r.reflectEventToProperties(i,o);var a=void 0;if(!c)try{a=u.call(r,o[0],o[0],o[0],o[0],o[0],o[0],o,w())}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+f.join('", "')+'" set to "'+w().represent(o)+'": '+r+'. Set property to "undedefined".')}return r.self.renderProperties.includes(i)||r.forwardEvent(i,o),a})),c||this.setExternalPropertyValue(i,u);break;case"json":if(t){var h;try{h=JSON.parse(t)}catch(c){console.warn('Error occurred during parsing given json attribute "'+e+'": '+w().represent(c));break}this.setInternalPropertyValue(i,h),this.setExternalPropertyValue(i,w().copy(h,1))}else this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null);break;case T.number:case"number":if(null===t){this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break}var y=parseFloat(t);isNaN(y)&&(y=void 0),this.setInternalPropertyValue(i,y),this.setExternalPropertyValue(i,y);break;case T.string:case"string":this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break;case T.any:case T.array:case T.arrayOf:case T.element:case T.elementType:case T.instanceOf:case T.node:case T.object:case"object":case T.objectOf:case T.oneOf:case T.oneOfType:case T.shape:case T.exact:case T.symbol:default:if(t){var b=w().stringEvaluate(t,{},!1,this);if(b.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',b.error);break}this.setInternalPropertyValue(i,b.result),this.setExternalPropertyValue(i,w().copy(b.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(i,!0),this.setExternalPropertyValue(i,!0)):(this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null))}}},r.determineRenderScope=function(e){var t,r;void 0===e&&(e={}),this.scope=u()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((r={parent:this.parent,root:this.rootInstance,self:this})[w().stringLowerCase(this.self._name)||"instance"]=this,r),e),this.scope.scope=this.scope},r.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow(null!==this.self.shadowDOM&&"object"==typeof this.self.shadowDOM?this.self.shadowDOM:{mode:"open"}))},r.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){var t=w().stringEvaluate("`"+this.self.content+"`",this.scope);if(t.error)console.warn("Faild to process template: "+t.error);else{this.applyShadowRootIfNotExisting();var r=document.createElement("div");r.innerHTML=t.result,this.applySlots(r,u()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}}},t}(E),s.applyRootBinding=!0,s.content="<slot>Please provide a template to transclude.</slot>",s.determineRootBinding=!0,s.shadowDOM=null,s.observedAttributes=[],s.controllableProperties=[],s.eventToPropertyMapping={},s.propertyAliases={},s.propertyTypes={onClick:T.func},s.propertiesToReflectAsAttributes=[],s.renderProperties=["children"],s.cloneSlots=!1,s.evaluateSlots=!1,s.renderSlots=!0,s.trimSlots=!0,s.renderUnsafe=!1,s._name="BaseWeb",s._propertyAliasIndex=void 0,s._propertiesToReflectAsAttributes=void 0,o=s,i=v()(o.prototype,"isRoot",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o),N={component:R,register:function(e){return void 0===e&&(e=w().stringCamelCaseToDelimited(R._name)),customElements.define(e,R)}};t.default=R},function(e){e.exports=s},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=p},function(e){e.exports=u},function(e){e.exports=c},function(e,t,r){e.exports=r(13)},function(e,t){
|
2
|
-
/**
|
3
|
-
* @license React
|
4
|
-
* react.production.min.js
|
5
|
-
*
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
7
|
-
*
|
8
|
-
* This source code is licensed under the MIT license found in the
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
10
|
-
*/
|
11
|
-
var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||h}function v(){}function g(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var A=g.prototype=new v;A.constructor=g,y(A,m.prototype),A.isPureReactComponent=!0;var P=Array.isArray,w=Object.prototype.hasOwnProperty,T={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var p=Array(l),u=0;u<l;u++)p[u]=arguments[u+2];i.children=p}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:s,ref:a,props:i,_owner:T.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return s=s(l=e),e=""===i?"."+R(l,0):i,P(s)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),N(s,t,o,"",(function(e){return e}))):null!=s&&(S(s)&&(s=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",P(e))for(var p=0;p<e.length;p++){var u=i+R(a=e[p],p);l+=N(a,t,o,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),p=0;!(a=e.next()).done;)l+=N(a=a.value,t,o,u=i+R(a,p++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function x(e,t,r){if(null==e)return e;var n=[],o=0;return N(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var _={current:null},I={transition:null},D={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:I,ReactCurrentOwner:T};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=s,t.PureComponent=g,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=y({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=T.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(p in t)w.call(t,p)&&!O.hasOwnProperty(p)&&(o[p]=void 0===t[p]&&void 0!==l?l[p]:t[p])}var p=arguments.length-2;if(1===p)o.children=n;else if(1<p){l=Array(p);for(var u=0;u<p;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return _.current.useCallback(e,t)},t.useContext=function(e){return _.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return _.current.useDeferredValue(e)},t.useEffect=function(e,t){return _.current.useEffect(e,t)},t.useId=function(){return _.current.useId()},t.useImperativeHandle=function(e,t,r){return _.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return _.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return _.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return _.current.useMemo(e,t)},t.useReducer=function(e,t,r){return _.current.useReducer(e,t,r)},t.useRef=function(e){return _.current.useRef(e)},t.useState=function(e){return _.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return _.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return _.current.useTransition()},t.version="18.2.0"},function(e){e.exports=o},function(e){e.exports=i},function(e,t,r){r.d(t,{api:function(){return b}});var n=r(0),o=r.n(n),i=r(3),s=r.n(i),a=r(1),l=r.n(a),p=r(2),u=r(12),c=r(14),f=r(15);function d(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)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){function t(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=e.call.apply(e,[this].concat(o))||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}s()(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(e){var t,r=this;if(void 0===e&&(e="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){if(this.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&this.preCompileSlots(),this.evaluateSlots(o()({},this.scope,{parent:this})),this.prepareProperties(this.internalProperties),this.applyShadowRootIfNotExisting(),this.root!==this)for(var n=this.firstChild;n;){var i=n.nextSibling;this.removeChild(n),n=i}this.reactRoot||(this.reactRoot=(0,f.createRoot)(this.root,{identifierPrefix:String(this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name)})),(0,c.flushSync)((function(){return r.reactRoot.render((0,u.createElement)(r.self.content,r.internalProperties))})),null!=(t=this.instance)&&t.current?this.reflectInstanceProperties():l().timeout(this.reflectInstanceProperties)}},r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=l().copy(t,1),r)),this.setInternalPropertyValue(e,l().copy(t,1))},r.setInternalPropertyValue=function(t,r){null===r?r=p.NullSymbol:void 0===r&&(r=p.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,o=1,i=[],s=d(e);!(n=s()).done;){var a=n.value,l=this.preCompileDomNode(a,t,r,o.toString());l&&(i.push(l),o+=1)}return r?function(e){return function(){for(var t,r=[],n=d(i);!(t=n()).done;){var o=(0,t.value)(e);"function"==typeof o&&r.push(o.apply(void 0,arguments))}return(0,u.createElement)(u.Fragment,{children:r})}}:i},r.preCompileDomNode=function(e,t,r,n){var i,s,a=this;if(void 0===t&&(t={}),void 0===r&&(r=!1),r){var p=this.preCompileDomNode(e,o()({},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 i=r.length>0?r[0]:null;return p(o()({},e,{data:i,firstArgument:i,firstParameter:i,options:i,scope:i,parameters:r}))}}}if(e.nodeType===Node.TEXT_NODE){var c="string"==typeof e.nodeValue?e.nodeValue.trim():"",f=n&&c?(0,u.createElement)(u.Fragment,{children:c,key:n}):c||null;return function(){return f}}if(!e.getAttributeNames)return function(){return null};var h=this.self.isReactComponent(e);h?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),i=e.internalProperties,n&&!Object.prototype.hasOwnProperty.call(i,"key")&&(i.key=n),s=e.constructor.content):(i={key:n},s=e.tagName.toLowerCase());for(var y,b=Object.keys(t),m={},v=function(){var r,n=y.value,o=e.getAttribute(n);if(null===o)return"continue";var s=!1,p="";if(n.startsWith("data-bind-")?p=n.substring("data-bind-".length):n.startsWith("bind-")&&(p=n.substring("bind-".length)),p.startsWith("attribute-")||"attributes"===p||p.startsWith("property-")||"properties"===p){var u=l().stringCompile(o,b),c=u.error,f=u.originalScopeNames,d=u.templateFunction;if(c)return console.warn('Error occurred during compiling given attribute binding "'+n+'" on node:',e,c),"continue";"attributes"===p||"properties"===p?s=!0:p=p.startsWith("attribute-")?p.substring("attribute-".length):p.substring("property-".length),o={originalScopeNames:f,templateFunction:d.bind(a)}}else if(p.startsWith("on-")){p=l().stringDelimitedToCamelCase(p),Object.prototype.hasOwnProperty.call(t,"event")||(b=[].concat(b,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(b=[].concat(b,["parameters"]));var h=l().stringCompile(o,b,!0),v=h.error,g=h.originalScopeNames,A=h.scopeNames,P=h.templateFunction;if(v)return console.warn('Error occurred during compiling given event binding "'+n+'" on node:',e,v),"continue";var w=P.bind(a);o=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.event=i[0],t.parameters=i;try{w.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 "'+o+'" could not be evaluated with given scope names "'+A.join('", "')+'": '+l().represent(t))}}}else p=n;var T={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(T,p)&&(p=T[p]),p=l().stringDelimitedToCamelCase(p),null!=(r=o)&&r.originalScopeNames?m[s?"":p]=o:i[p]=o},g=d(e.getAttributeNames());!(y=g()).done;)v();if(!h){var A=Array.from(e.childNodes);A.length&&(i.children=this.preCompileDomNodes(A,t))}return function(r){(r=o()({},t,r)).scope=r;for(var n=o()({},i),l=0,p=Object.entries(m);l<p.length;l++){var c=p[l],f=c[0],d=c[1],y=d.originalScopeNames,b=d.templateFunction.apply(void 0,y.map((function(e){return r[e]})));""===f?n=o()({},n,b):n[f]=b}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):h?(e.evaluateSlots(o()({},n,r,{parent:e})),e.prepareProperties(n),r=o()({},n,r,{parent:e})):n.children&&(n.children=a.evaluatePreCompiledDomNodes(n.children,r)),(0,u.createElement)(s,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=[],o=d(e);!(r=o()).done;){var i=(0,r.value)(t);i&&n.push(i)}return n},r.preCompileSlots=function(){var e;for(var t in this.slots)Object.prototype.hasOwnProperty.call(this.slots,t)&&"default"!==t&&(this.compiledSlots[t]=this.preCompileDomNode(this.slots[t],o()({},this.scope,{parent:this}),[p.func,"function"].includes(this.self.propertyTypes&&this.self.propertyTypes[t])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,o()({},this.scope,{parent:this}),[p.func,"function"].includes(null==(e=this.self.propertyTypes)?void 0:e.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&&(!1===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,u.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,u.forwardRef)((function(t,r){return(0,u.useImperativeHandle)(r,(function(){return{properties:t}})),(0,u.createElement)(e,t)})),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,u.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,u.memo)(this.self.content),this.self.content.wrapped=e)}},r.prepareProperties=function(e){l().extend(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,u.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var r,n=d(["isRoot","isTrusted","__composed"]);!(r=n()).done;){var o=r.value;Object.prototype.hasOwnProperty.call(t,o)&&(Object.prototype.hasOwnProperty.call(e.content,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.propTypes,o)||Object.prototype.hasOwnProperty.call(e.content,"wrapped")&&Object.prototype.hasOwnProperty.call(e.content.wrapped,"propTypes")&&!Object.prototype.hasOwnProperty.call(e.content.wrapped.propTypes,o))&&delete t[o]}},t}(r(5).default);y.attachWebComponentAdapterIfNotExists=!0,y.content="div",y.react=u,y._name="ReactWebComponent";var b={component:y,register:function(e){return void 0===e&&(e=l().stringCamelCaseToDelimited(y._name)),customElements.define(e,y)}};t.default=y}],d={};function h(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return f[e](r,r.exports,h),r.exports}h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var r in t)h.o(t,r)&&!h.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var y={};return function(){h.r(y),h.d(y,{ReactWeb:function(){return l},Web:function(){return c},reactWebAPI:function(){return p},webAPI:function(){return u},wrapAsWebComponent:function(){return f}});var e=h(0),t=h.n(e),r=h(3),n=h.n(r),o=h(1),i=h.n(o),s=h(16),a=h(5),l=s.default,p=s.api,u=a.api,c=a.default,f=function(e,r,o){var s,a,p,u;void 0===r&&(r="NoName"),void 0===o&&(o={});var c=e._name||(null==(s=e.___types)||null==(a=s.name)?void 0:a.name)||r.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");o.propTypes&&(e.propTypes=o.propTypes);var f=e.propTypes||{},d=o.propertyAliases||e.propertyAliases||{},h=i().arrayUnique(Object.keys(f).concat(Object.keys(d)).concat(Object.values(d))),y=o.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(l.propertiesToReflectAsAttributes)if(Array.isArray(y))y=[].concat(l.propertiesToReflectAsAttributes,y);else if(y instanceof Map)for(var b=0,m=l.propertiesToReflectAsAttributes;b<m.length;b++){var v=m[b];y.set(v,l.propertyTypes[v])}else if(null!==y&&"object"==typeof y)for(var g=0,A=l.propertiesToReflectAsAttributes;g<A.length;g++){var P=A[g];y[P]=l.propertyTypes[P]}var w=h.map((function(e){return i().stringCamelCaseToDelimited(e)})),T=function(r){function i(){for(var n,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return(n=r.call.apply(r,[this].concat(a))||this).self=i,n.internalProperties=o.internalProperties?t()({},o.internalProperties):e.internalProperties?t()({},e.internalProperties):{},n}return n()(i,r),i}(l);return T.attachWebComponentAdapterIfNotExists="boolean"!=typeof o.attachWebComponentAdapterIfNotExists||o.attachWebComponentAdapterIfNotExists,T.content=e,T.observedAttributes=l.observedAttributes.concat(w).concat(w.map((function(e){return"-"+e}))),T.controllableProperties=e.controllableProperties||o.controllableProperties||[],T.eventToPropertyMapping=null===o.eventToPropertyMapping?o.eventToPropertyMapping:o.eventToPropertyMapping?t()({},o.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?t()({},e.eventToPropertyMapping):{},T.propertyAliases=t()({},l.propertyAliases,d),T.propertiesToReflectAsAttributes=y,T.propertyTypes=t()({},l.propertyTypes,f),T.renderProperties=null!==(p=null!==(u=o.renderProperties)&&void 0!==u?u:e.renderProperties)&&void 0!==p?p:l.renderProperties,T._name=c,{component:T,register:function(e){return void 0===e&&(e=i().stringCamelCaseToDelimited(c)),customElements.define(e,T)}}};y.default=f}(),y}()}));
|
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("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","clientnode","clientnode/property-types","react","react-dom","react-dom/client","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","@babel/runtime/regenerator"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("clientnode"),require("clientnode/property-types"),require("react"),require("react-dom"),require("react-dom/client"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e.clientnode,e["clientnode/property-types"],e.react,e["react-dom"],e["react-dom/client"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e["@babel/runtime/regenerator"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n,i,o,s,a,l,p,c,u,d){return function(){var h=[function(t){t.exports=e},function(e){e.exports=r},function(e){e.exports=n},function(e){e.exports=t},function(e,t,r){var n=r(0),i=r.n(n),o=r(1),s=r.n(o),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,o=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(o,"observedAttributes")||(o.observedAttributes=o.observedAttributes?[].concat(o.observedAttributes):[]);var a=s().stringCamelCaseToDelimited(r);o.observedAttributes.includes(a)||o.observedAttributes.push(a)}if(e.type&&(Object.prototype.hasOwnProperty.call(o,"propertyTypes")||(o.propertyTypes=o.propertyTypes?i()({},o.propertyTypes):{}),!e.update&&Object.prototype.hasOwnProperty.call(o,r)||(o.propertyTypes[r]=e.type)),e.writeAttribute)if(Object.prototype.hasOwnProperty.call(o,"propertiesToReflectAsAttributes")||(o.propertiesToReflectAsAttributes=o.propertiesToReflectAsAttributes?s().copy(o.propertiesToReflectAsAttributes):[]),e.update||o.propertiesToReflectAsAttributes instanceof Map&&!o.propertiesToReflectAsAttributes.has(r)||Array.isArray(o.propertiesToReflectAsAttributes)&&!o.propertiesToReflectAsAttributes.includes(r)||null!==o.propertiesToReflectAsAttributes&&"object"==typeof o.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(o.propertiesToReflectAsAttributes,r))"boolean"==typeof e.writeAttribute?!0===e.writeAttribute&&o.propertyTypes&&Object.prototype.hasOwnProperty.call(o.propertyTypes,r)&&(n=o.propertyTypes[r]):n=e.writeAttribute,void 0!==n&&(Array.isArray(o.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?o.propertiesToReflectAsAttributes.push(r):o.propertiesToReflectAsAttributes=o.normalizePropertyTypeList(o.propertiesToReflectAsAttributes)),o.propertiesToReflectAsAttributes instanceof Map&&o.propertiesToReflectAsAttributes.set(r,n),null!==o.propertiesToReflectAsAttributes&&"object"==typeof o.propertiesToReflectAsAttributes&&(o.propertiesToReflectAsAttributes[r]=n));e.alias&&(Object.prototype.hasOwnProperty.call(o,"propertyAliases")||(o.propertyAliases=o.propertyAliases?i()({},o.propertyAliases):{}),!e.update&&Object.prototype.hasOwnProperty.call(o,r)||(o.propertyAliases[r]=e.alias))}}}},function(e,t,r){r.d(t,{api:function(){return x}});var n,i,o,s,a=r(6),l=r.n(a),p=r(0),c=r.n(p),u=r(7),d=r.n(u),h=r(8),f=r.n(h),y=r(3),b=r.n(y),m=r(9),v=r.n(m),g=(r(10),r(11)),A=r.n(g),P=r(1),w=r.n(P),T=r(2),O=r(4);function C(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)return;if("string"==typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,t)}(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S="undefined"==typeof HTMLElement?function(){}:HTMLElement,E=(n=(0,O.default)({type:T.boolean,writeAttribute:!0}),s=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={Tools:w()},r.domNodeEventBindings=new Map,r.domNodeTemplateCache=new Map,r.externalProperties={},r.ignoreAttributeUpdateObservations=!1,r.internalProperties={},r.outputEventNames=new Set,r.instance=null,d()(r,"isRoot",o,f()(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=f()(r),r.defineGetterAndSetterInterface(),r}b()(t,e);var r=t.prototype;return r.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)},r.updateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,w().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"):w().timeout((function(){return e.render("connected")}))},r.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=C(this.domNodeEventBindings.values());!(e=t()).done;)for(var r,n=C(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=C(w().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex))));!(e=n()).done;)r()},r.getPropertyAlias=function(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},r.getPropertyValue=function(e){var r,n,i,o,s=null!=(r=this.instance)&&null!=(n=r.current)&&n.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(i=this.instance)&&null!=(o=i.current)&&o.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:s},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,w().timeout((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),w().timeout((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOutputEvents()})).then(w().noop,w().noop)):(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("data-bind-".length):i.startsWith("bind-")&&(o=i.substring("bind-".length)),o){var s=e.getAttribute(i);if(null===s)return"continue";if(o.startsWith("attribute-")||o.startsWith("property-")){var a=w().stringEvaluate(s,t,!1,e);if(a.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,a.error),"continue";o.startsWith("attribute-")?e.setAttribute(o.substring("attribute-".length),a.result):e[w().stringDelimitedToCamelCase(o.substring("property-".length))]=a.result}else if(o.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var l=r.domNodeEventBindings.get(e);o=w().stringDelimitedToCamelCase(o.substring("on-".length)),l.has(o)&&l.get(o)(),t=c()({event:void 0,parameters:void 0},t);var p=w().stringCompile(s,t,!0);if(p.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,p.error);else{var u=p.templateFunction.bind(e),d=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{u.apply(void 0,p.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+s+'" could not be evaluated with given scope names "'+p.scopeNames.join('", "')+'": '+w().represent(t))}};e.addEventListener(o,d),l.set(o,(function(){e.removeEventListener(o,d),l.delete(o),0===l.size&&r.domNodeEventBindings.delete(e)}))}}}},o=C(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){var n;if(void 0===t&&(t=[]),void 0===r&&(r={}),(r=c()({ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).ignoreComponents&&null!=(n=e.nodeName)&&n.toLowerCase().includes("-"))return r.map;if(r.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var o=w().stringCompile("`"+i+"`",t);r.map.set(e,{children:[],error:o.error,scopeNames:o.scopeNames,template:i,templateFunction:o.templateFunction})}}else{var s,a=e.nodeName.toLowerCase();if(["a","#text"].includes(a)){var l="a"===a?e.getAttribute("href"):e.textContent;this.self.hasCode(l)&&(s=l.replace(/ /g," ").trim())}var p=[];if(s){var u=w().stringCompile("`"+s+"`",t);r.map.set(e,{children:p,error:u.error,scopeNames:u.scopeNames,template:s,templateFunction:u.templateFunction})}for(var d=e.firstChild;d;)r.filter&&!r.filter(d)||p.push(this.compileDomNodeTemplate(d,t,c()({},r,{ignoreComponents:r.ignoreNestedComponents}))),d=d.nextSibling}return r.map},r.evaluateDomNodeTemplate=function(e,t,r){var n;if(void 0===t&&(t={}),void 0===r&&(r={}),(r=c()({applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){var i=r.map.get(e),o=i.error,s=i.scopeNames,a=i.templateFunction;if(o)console.warn("Error occurred during compiling node content: "+o);else{var l=null;try{l=a.apply(void 0,s.map((function(e){return t[e]})))}catch(o){console.warn('Error occurred when "'+this.self._name+'" is running "'+a+'": with bound names "'+s.join('", "')+'": "'+o+'". Rendering node:',e)}null!==l&&(r.unsafe?e.innerHTML=l:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",l):e.textContent=l)}}if(!(r.unsafe||r.ignoreComponents&&null!=(n=e.nodeName)&&n.toLowerCase().includes("-")))for(var p=e.firstChild;p;)r.filter&&!r.filter(p)||this.evaluateDomNodeTemplate(p,t,c()({},r,{applyBindings:!1,ignoreComponents:r.ignoreNestedComponents})),p=p.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,i=C([].concat(r).reverse());!(n=i()).done;){var o,s=n.value;t.trimSlots&&s.nodeType===Node.TEXT_NODE&&""===(null==(o=s.nodeValue)?void 0:o.trim())||e.after(s)}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;){var r;(e instanceof t||null!=(r=e.nodeName)&&r.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=C(n);!(r=o()).done;){var s=r.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,s)&&i.set(s,t.propertyTypes[s])}return i}return w().convertPlainObjectToMap(e)},r.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},r.attachExplicitDefinedOutputEventHandler=function(){for(var e=this,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()(A().mark((function t(){var n,i,o,s,a=arguments;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=a.length,i=new Array(n),o=0;o<n;o++)i[o]=a[o];return t.next=3,e.reflectEventToProperties(r,i);case 3:(s=t.sent)&&(i[0]=s),e.forwardEvent(r,i);case 6: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],s=r[1];Object.prototype.hasOwnProperty.call(t.internalProperties,o)||![T.func,"function"].includes(s)||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=C(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},r.forwardEvent=function(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=w().stringLowerCase(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],s=o.getAttribute("name");if(null===s||"default"===s)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var a,l=C(this.slots.default);!(a=l()).done;){var p=a.value;this.evaluateDomNodeTemplate(p,t)}this.self.replaceDomNodes(o,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(o).map((function(e){return r.grabSlotContent(e)}));else Object.prototype.hasOwnProperty.call(this.slots,s)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[s],t),this.self.replaceDomNodes(o,this.slots[s])):this.slots[s]=this.grabSlotContent(this.self.unwrapDomNode(o).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},r.grabSlotContent=function(e){var t;if("textarea"===(null==(t=e.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!e.firstElementChild.hasAttribute("data-no-template")||"false"===e.firstElementChild.getAttribute("data-no-template"))){var r,n,i=e.firstElementChild.value;null==(r=e.classList)||r.remove("web-component-template");var o=e.cloneNode();return null==(n=e.classList)||n.add("web-component-template"),o.innerHTML="",o.template=i,o}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=r[t],i=n.parentNode,o=!0;i;){if(i.nodeName.includes("-")){i===this&&(o=!1);break}i=i.parentNode}o||(this.slots[n.getAttribute&&n.getAttribute("slot")&&n.getAttribute("slot").trim()?n.getAttribute("slot").trim():n.nodeName.toLowerCase()]=this.grabSlotContent(n))}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((function(t){return e.grabSlotContent(t)})):this.slots.default=[]},r.isStateProperty=function(e){var t,r,n,i;return Boolean((null==(t=this.instance)||null==(r=t.current)?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null==(n=this.instance)||null==(i=n.current)?void 0:i.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=c()({},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=r[t],i=n[0],o=n[1];if(this.setExternalPropertyValue(i,o),this.isConnected){var s=w().stringCamelCaseToDelimited(i);if(this.self._propertiesToReflectAsAttributes.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case T.boolean:case"boolean":o?""!==this.getAttribute(s)&&this.setAttribute(s,""):this.hasAttribute(s)&&this.removeAttribute(s);break;case T.func:case"function":break;case"json":if(o){var a=JSON.stringify(o);if(a&&this.getAttribute(s)!==a){this.setAttribute(s,a);break}}this.hasAttribute(s)&&this.removeAttribute(s);break;case T.number:case"number":if("number"!=typeof o||isNaN(o))this.hasAttribute(s)&&this.removeAttribute(s);else{var l=""+o;this.getAttribute(s)!==l&&this.setAttribute(s,l)}break;case T.string:case"string":o?this.getAttribute(s)!==o&&this.setAttribute(s,o):this.hasAttribute(s)&&this.removeAttribute(s);break;case T.any:case T.array:case T.arrayOf:case T.element:case T.elementType:case T.instanceOf:case T.node:case T.object:case"object":case T.objectOf:case T.shape:case T.exact:case T.symbol:default:if(o){var p=w().represent(o);if(p&&this.getAttribute(s)!==p){this.setAttribute(s,p);break}}this.hasAttribute(s)&&this.removeAttribute(s)}}}this.ignoreAttributeUpdateObservations=!1},r.reflectProperties=function(e){var t,r,n,i;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(r=t.current)&&r.state&&"object"==typeof this.instance.current.state)for(var o,s=C(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(o=s()).done;){var a=o.value;Object.prototype.hasOwnProperty.call(this.internalProperties,a)&&this.setInternalPropertyValue(a,void 0)}null!=(n=this.internalProperties.model)&&n.state&&(null==(i=this.internalProperties.model)||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var l,p=C(this.self.controllableProperties);!(l=p()).done;){var c=l.value;Object.prototype.hasOwnProperty.call(e,c)&&this.setInternalPropertyValue(c,e[c])}},r.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,w().timeout((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},r.reflectEventToProperties=function(){var e=l()(A().mark((function e(t,r){var n,i,o,s,a,l,p,u,d,h,f,y,b,m,v,g;return A().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)&&w().isFunction(this.self.eventToPropertyMapping[t]))){e.next=16;break}if(!((a=(s=this.self.eventToPropertyMapping)[t].apply(s,r.concat([this])))&&"then"in a&&w().isFunction(a.then))){e.next=12;break}return e.next=9,a;case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=a;case 13:l=e.t0,o=!0,Array.isArray(l)?(i=l[0],this.reflectProperties(i),w().extend(!0,this.internalProperties,l[1])):null===l?o=!1:"object"==typeof l&&(i=l,this.reflectProperties(l));case 16:if(!o&&r.length>0&&null!==r[0]&&"object"==typeof r[0]){if(u=r[0],"persist"in r[0]&&w().isFunction(r[0].persist))for(u={},d=0,h=Object.keys(this.self.propertyTypes);d<h.length;d++)for(f=h[d],y=C([f].concat(null!==(m=this.getPropertyAlias(f))&&void 0!==m?m:[]));!(b=y()).done;)v=b.value,(g=r[0].currentTarget&&Object.prototype.hasOwnProperty.call(r[0].currentTarget,v)?r[0].currentTarget[v]:this.getPropertyValue(v))!==this.externalProperties[v]&&(u[v]=g);else[null,void 0].includes(null==(p=u.detail)?void 0:p.value)||(u=c()({},u.detail));i=u,this.reflectProperties(u)}return this.triggerRender("propertyReflected"),this.batchUpdates=n,e.abrupt("return",i);case 20: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=w().stringDelimitedToCamelCase(i),s=this.getPropertyAlias(o);if(s&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,s)&&(o=s),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)){var a=this.self.propertyTypes[o];if(n){if(t){var l=w().stringEvaluate(t,{Tools:w()},!1,this);l.error?(console.warn('Faild 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(a){case T.boolean:case"boolean":var p=![null,"false"].includes(t);this.setInternalPropertyValue(o,p),this.setExternalPropertyValue(o,p);break;case T.func:case"function":var c,u=null,d=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){var h=w().stringCompile(t,d);u=h.error,c=h.templateFunction,u&&console.warn('Failed to compile given handler "'+e+'": '+u+".")}this.setInternalPropertyValue(o,(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];r.outputEventNames.has(o)&&r.reflectEventToProperties(o,i);var a=void 0;if(!u)try{a=c.call(r,i[0],i[0],i[0],i[0],i[0],i[0],i,w())}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+d.join('", "')+'" set to "'+w().represent(i)+'": '+r+'. Set property to "undedefined".')}return r.self.renderProperties.includes(o)||r.forwardEvent(o,i),a})),u||this.setExternalPropertyValue(o,c);break;case"json":if(t){var f;try{f=JSON.parse(t)}catch(u){console.warn('Error occurred during parsing given json attribute "'+e+'": '+w().represent(u));break}this.setInternalPropertyValue(o,f),this.setExternalPropertyValue(o,w().copy(f,1))}else this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null);break;case T.number:case"number":if(null===t){this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break}var y=parseFloat(t);isNaN(y)&&(y=void 0),this.setInternalPropertyValue(o,y),this.setExternalPropertyValue(o,y);break;case T.string:case"string":this.setInternalPropertyValue(o,t),this.setExternalPropertyValue(o,t);break;case T.any:case T.array:case T.arrayOf:case T.element:case T.elementType:case T.instanceOf:case T.node:case T.object:case"object":case T.objectOf:case T.oneOf:case T.oneOfType:case T.shape:case T.exact:case T.symbol:default:if(t){var b=w().stringEvaluate(t,{},!1,this);if(b.error){console.warn('Error occurred during processing given attribute configuration "'+e+'":',b.error);break}this.setInternalPropertyValue(o,b.result),this.setExternalPropertyValue(o,w().copy(b.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(o,!0),this.setExternalPropertyValue(o,!0)):(this.setInternalPropertyValue(o,null),this.setExternalPropertyValue(o,null))}}},r.determineRenderScope=function(e){var t,r;void 0===e&&(e={}),this.scope=c()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((r={parent:this.parent,root:this.rootInstance,self:this})[w().stringLowerCase(this.self._name)||"instance"]=this,r),e),this.scope.scope=this.scope},r.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow(null!==this.self.shadowDOM&&"object"==typeof this.self.shadowDOM?this.self.shadowDOM:{mode:"open"}))},r.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){var t=w().stringEvaluate("`"+this.self.content+"`",this.scope);if(t.error)console.warn("Faild to process template: "+t.error);else{this.applyShadowRootIfNotExisting();var r=document.createElement("div");r.innerHTML=t.result,this.applySlots(r,c()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}}},t}(S),s.applyRootBinding=!0,s.content="<slot>Please provide a template to transclude.</slot>",s.determineRootBinding=!0,s.shadowDOM=null,s.observedAttributes=[],s.controllableProperties=[],s.eventToPropertyMapping={},s.propertyAliases={},s.propertyTypes={onClick:T.func},s.propertiesToReflectAsAttributes=[],s.renderProperties=["children"],s.cloneSlots=!1,s.evaluateSlots=!1,s.renderSlots=!0,s.trimSlots=!0,s.renderUnsafe=!1,s._name="BaseWeb",s._propertyAliasIndex=void 0,s._propertiesToReflectAsAttributes=void 0,i=s,o=v()(i.prototype,"isRoot",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i),x={component:E,register:function(e){return void 0===e&&(e=w().stringCamelCaseToDelimited(E._name)),customElements.define(e,E)}};t.default=E},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=p},function(e){e.exports=c},function(e){e.exports=u},function(e){e.exports=d},function(e){e.exports=i},function(e){e.exports=o},function(e){e.exports=s},function(e,t,r){r.d(t,{api:function(){return m}});var n=r(0),i=r.n(n),o=r(3),s=r.n(o),a=r(1),l=r.n(a),p=r(2),c=r(12),u=r.n(c),d=r(13),h=r(14);function f(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)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=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}s()(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(e){var t,r=this;if(void 0===e&&(e="unknown"),this.rootReactInstance===this&&this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){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(var n=this.firstChild;n;){var o=n.nextSibling;this.removeChild(n),n=o}this.reactRoot||(this.reactRoot=(0,h.createRoot)(this.root,{identifierPrefix:String(this.id||this.internalProperties.id||this.externalProperties.id||this.name||this.internalProperties.name||this.externalProperties.name)})),(0,d.flushSync)((function(){return r.reactRoot.render((0,c.createElement)(r.self.content,r.internalProperties))})),null!=(t=this.instance)&&t.current?this.reflectInstanceProperties():l().timeout(this.reflectInstanceProperties)}},r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=l().copy(t,1),r)),this.setInternalPropertyValue(e,l().copy(t,1))},r.setInternalPropertyValue=function(t,r){null===r?r=p.NullSymbol:void 0===r&&(r=p.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=[],s=f(e);!(n=s()).done;){var a=n.value,l=this.preCompileDomNode(a,t,r,i.toString());l&&(o.push(l),i+=1)}return r?function(e){return function(){for(var t,r=[],n=f(o);!(t=n()).done;){var i=(0,t.value)(e);"function"==typeof i&&r.push(i.apply(void 0,arguments))}return(0,c.createElement)(c.Fragment,{children:r})}}:o},r.preCompileDomNode=function(e,t,r,n){var o,s,a=this;if(void 0===t&&(t={}),void 0===r&&(r=!1),r){var p=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 p(i()({},e,{data:o,firstArgument:o,firstParameter:o,options:o,scope:o,parameters:r}))}}}if(e.nodeType===Node.TEXT_NODE){var u="string"==typeof e.nodeValue?e.nodeValue.trim():"",d=n&&u?(0,c.createElement)(c.Fragment,{children:u,key:n}):u||null;return function(){return d}}if(!e.getAttributeNames)return function(){return null};var h=this.self.isReactComponent(e);h?(e.determineRenderScope(),0===Object.keys(this.compiledSlots).length&&e.preCompileSlots(),o=e.internalProperties,n&&!Object.prototype.hasOwnProperty.call(o,"key")&&(o.key=n),s=e.constructor.content):(o={key:n},s=e.tagName.toLowerCase());for(var y,b=Object.keys(t),m={},v=function(){var r,n=y.value,i=e.getAttribute(n);if(null===i)return"continue";var s=!1,p="";if(n.startsWith("data-bind-")?p=n.substring("data-bind-".length):n.startsWith("bind-")&&(p=n.substring("bind-".length)),p.startsWith("attribute-")||"attributes"===p||p.startsWith("property-")||"properties"===p){var c=l().stringCompile(i,b),u=c.error,d=c.originalScopeNames,h=c.templateFunction;if(u)return console.warn('Error occurred during compiling given attribute binding "'+n+'" on node:',e,u),"continue";"attributes"===p||"properties"===p?s=!0:p=p.startsWith("attribute-")?p.substring("attribute-".length):p.substring("property-".length),i={originalScopeNames:d,templateFunction:h.bind(a)}}else if(p.startsWith("on-")){p=l().stringDelimitedToCamelCase(p),Object.prototype.hasOwnProperty.call(t,"event")||(b=[].concat(b,["event"])),Object.prototype.hasOwnProperty.call(t,"parameters")||(b=[].concat(b,["parameters"]));var f=l().stringCompile(i,b,!0),v=f.error,g=f.originalScopeNames,A=f.scopeNames,P=f.templateFunction;if(v)return console.warn('Error occurred during compiling given event binding "'+n+'" on node:',e,v),"continue";var w=P.bind(a);i=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];t.event=o[0],t.parameters=o;try{w.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 "'+A.join('", "')+'": '+l().represent(t))}}}else p=n;var T={class:"className",for:"htmlFor"};Object.prototype.hasOwnProperty.call(T,p)&&(p=T[p]),p=l().stringDelimitedToCamelCase(p),null!=(r=i)&&r.originalScopeNames?m[s?"":p]=i:o[p]=i},g=f(e.getAttributeNames());!(y=g()).done;)v();if(!h){var A=Array.from(e.childNodes);A.length&&(o.children=this.preCompileDomNodes(A,t))}return function(r){(r=i()({},t,r)).scope=r;for(var n=i()({},o),l=0,p=Object.entries(m);l<p.length;l++){var u=p[l],d=u[0],f=u[1],y=f.originalScopeNames,b=f.templateFunction.apply(void 0,y.map((function(e){return r[e]})));""===d?n=i()({},n,b):n[d]=b}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):h?(e.evaluateSlots(i()({},n,r,{parent:e})),e.prepareProperties(n),r=i()({},n,r,{parent:e})):n.children&&(n.children=a.evaluatePreCompiledDomNodes(n.children,r)),(0,c.createElement)(s,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=f(e);!(r=i()).done;){var o=(0,r.value)(t);o&&n.push(o)}return n},r.preCompileSlots=function(){var e;for(var t in this.slots)Object.prototype.hasOwnProperty.call(this.slots,t)&&"default"!==t&&(this.compiledSlots[t]=this.preCompileDomNode(this.slots[t],i()({},this.scope,{parent:this}),[p.func,"function"].includes(this.self.propertyTypes&&this.self.propertyTypes[t])));this.slots.default&&this.slots.default.length>0&&(this.compiledSlots.children=this.preCompileDomNodes(this.slots.default,i()({},this.scope,{parent:this}),[p.func,"function"].includes(null==(e=this.self.propertyTypes)?void 0:e.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&&(!1===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,c.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,c.forwardRef)((function(t,r){return(0,c.useImperativeHandle)(r,(function(){return{properties:t}})),(0,c.createElement)(e,t)})),(this.wrapMemorizingWrapper||null===this.wrapMemorizingWrapper)&&(this.self.content=(0,c.memo)(this.self.content)),this.self.content.wrapped=e,this.self.content.webComponentAdapterWrapped="react"):this.wrapMemorizingWrapper&&(this.self.content=(0,c.memo)(this.self.content),this.self.content.wrapped=e)}},r.prepareProperties=function(e){l().extend(e,this.preparedSlots),this.self.removeKnownUnwantedPropertyKeys(this.self,e),e.ref||(this.instance=(0,c.createRef)(),e.ref=this.instance)},t.removeKnownUnwantedPropertyKeys=function(e,t){if("string"!=typeof e.content)for(var r,n=f(["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(5).default);b.attachWebComponentAdapterIfNotExists=!0,b.content="div",b.react=u(),b._name="ReactWebComponent";var m={component:b,register:function(e){return void 0===e&&(e=l().stringCamelCaseToDelimited(b._name)),customElements.define(e,b)}};t.default=b}],f={};function y(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return h[e](r,r.exports,y),r.exports}y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var r in t)y.o(t,r)&&!y.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var b={};return function(){y.r(b),y.d(b,{ReactWeb:function(){return l},Web:function(){return u},reactWebAPI:function(){return p},webAPI:function(){return c},wrapAsWebComponent:function(){return d}});var e=y(0),t=y.n(e),r=y(3),n=y.n(r),i=y(1),o=y.n(i),s=y(15),a=y(5),l=s.default,p=s.api,c=a.api,u=a.default,d=function(e,r,i){var s,a,p,c;void 0===r&&(r="NoName"),void 0===i&&(i={});var u=e._name||(null==(s=e.___types)||null==(a=s.name)?void 0:a.name)||r.replace(/^(.*\/+)?([^/]+)\.tsx$/,"$2");i.propTypes&&(e.propTypes=i.propTypes);var d=e.propTypes||{},h=i.propertyAliases||e.propertyAliases||{},f=o().arrayUnique(Object.keys(d).concat(Object.keys(h)).concat(Object.values(h))),y=i.propertiesToReflectAsAttributes||e.propertiesToReflectAsAttributes||[];if(l.propertiesToReflectAsAttributes)if(Array.isArray(y))y=[].concat(l.propertiesToReflectAsAttributes,y);else if(y instanceof Map)for(var b=0,m=l.propertiesToReflectAsAttributes;b<m.length;b++){var v=m[b];y.set(v,l.propertyTypes[v])}else if(null!==y&&"object"==typeof y)for(var g=0,A=l.propertiesToReflectAsAttributes;g<A.length;g++){var P=A[g];y[P]=l.propertyTypes[P]}var w=f.map((function(e){return o().stringCamelCaseToDelimited(e)})),T=function(r){function o(){for(var n,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return(n=r.call.apply(r,[this].concat(a))||this).self=o,n.internalProperties=i.internalProperties?t()({},i.internalProperties):e.internalProperties?t()({},e.internalProperties):{},n}return n()(o,r),o}(l);return T.attachWebComponentAdapterIfNotExists="boolean"!=typeof i.attachWebComponentAdapterIfNotExists||i.attachWebComponentAdapterIfNotExists,T.content=e,T.observedAttributes=l.observedAttributes.concat(w).concat(w.map((function(e){return"-"+e}))),T.controllableProperties=e.controllableProperties||i.controllableProperties||[],T.eventToPropertyMapping=null===i.eventToPropertyMapping?i.eventToPropertyMapping:i.eventToPropertyMapping?t()({},i.eventToPropertyMapping):null===e.eventToPropertyMapping?e.eventToPropertyMapping:e.eventToPropertyMapping?t()({},e.eventToPropertyMapping):{},T.propertyAliases=t()({},l.propertyAliases,h),T.propertiesToReflectAsAttributes=y,T.propertyTypes=t()({},l.propertyTypes,d),T.renderProperties=null!==(p=null!==(c=i.renderProperties)&&void 0!==c?c:e.renderProperties)&&void 0!==p?p:l.renderProperties,T._name=u,{component:T,register:function(e){return void 0===e&&(e=o().stringCamelCaseToDelimited(u)),customElements.define(e,T)}}};b.default=d}(),b}()}));
|