web-component-wrapper 0.0.313 → 0.0.314

Sign up to get free protection for your applications and to get access to all the features.
package/Web.d.ts CHANGED
@@ -146,6 +146,7 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
146
146
  };
147
147
  /**
148
148
  * Initializes host dom content and properties.
149
+ *
149
150
  * @returns Nothing.
150
151
  */
151
152
  constructor();
@@ -184,13 +185,16 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
184
185
  /**
185
186
  * Registers needed getter and setter to get notified about changes and
186
187
  * reflect them.
188
+ *
187
189
  * @returns Nothing.
188
190
  */
189
191
  defineGetterAndSetterInterface(): void;
190
192
  /**
191
193
  * Creates an index to match alias source and target against each other on
192
194
  * constant runtime.
195
+ *
193
196
  * @param name - Name to search an alternate name for.
197
+ *
194
198
  * @returns Found alias or "null".
195
199
  */
196
200
  getPropertyAlias(name: string): null | string;
@@ -203,15 +207,19 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
203
207
  getPropertyValue(name: string): unknown;
204
208
  /**
205
209
  * External property setter. Respects configured aliases.
210
+ *
206
211
  * @param name - Property name to write.
207
212
  * @param value - New value to write.
213
+ *
208
214
  * @returns Nothing.
209
215
  */
210
216
  setExternalPropertyValue(name: string, value: unknown): void;
211
217
  /**
212
218
  * Internal property setter. Respects configured aliases.
219
+ *
213
220
  * @param name - Property name to write.
214
221
  * @param value - New value to write.
222
+ *
215
223
  * @returns Nothing.
216
224
  */
217
225
  setInternalPropertyValue(name: string, value: unknown): void;
@@ -225,20 +233,34 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
225
233
  * @returns Nothing.
226
234
  */
227
235
  setPropertyValue(name: string, value: unknown): void;
236
+ /**
237
+ * Triggers a new rendering cycle and respects property specific state
238
+ * connection.
239
+ *
240
+ * @param name - Property name to write.
241
+ * @param value - New value to write.
242
+ * @param render - Indicates to trigger a new render cycle.
243
+ *
244
+ * @returns Nothing.
245
+ */
228
246
  triggerPropertySpecificRendering(name: string, value: unknown): void;
229
247
  /**
230
248
  * Binds properties and event handler to given dom node.
249
+ *
231
250
  * @param domNode - Node to start traversing from.
232
251
  * @param scope - Scope to render property value again.
252
+ *
233
253
  * @returns Nothing.
234
254
  */
235
255
  applyBinding(domNode: Node, scope: Mapping<unknown>): void;
236
256
  /**
237
257
  * Binds properties and event handler to given, sibling and nested nodes.
258
+ *
238
259
  * @param domNode - Node to start traversing from.
239
260
  * @param scope - Scope to render property value again.
240
261
  * @param renderSlots - Indicates whether to render nested elements of
241
262
  * slots (determined by an existing corresponding attribute).
263
+ *
242
264
  * @returns Nothing.
243
265
  */
244
266
  applyBindings(domNode: Node | null, scope: Mapping<unknown>, renderSlots?: boolean): void;
@@ -250,6 +272,7 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
250
272
  * @param domNode - Node to compile.
251
273
  * @param scope - Scope to extract names from.
252
274
  * @param options - Additional compile options.
275
+ *
253
276
  * @returns Map of compiled templates.
254
277
  */
255
278
  compileDomNodeTemplate<NodeType extends Node = Node>(domNode: NodeType, scope?: any, options?: {
@@ -264,6 +287,7 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
264
287
  * @param domNode - Node to evaluate.
265
288
  * @param scope - Scope to render against.
266
289
  * @param options - Compile options.
290
+ *
267
291
  * @returns Map of compiled templates.
268
292
  */
269
293
  evaluateDomNodeTemplate<NodeType extends Node = Node>(domNode: NodeType, scope?: any, options?: {
@@ -274,64 +298,80 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
274
298
  }): CompiledDomNodeTemplate<NodeType>;
275
299
  /**
276
300
  * Replaces given dom node with given nodes.
301
+ *
277
302
  * @param domNode - Node to replace its children.
278
303
  * @param children - Element or array of elements to set as children.
304
+ *
279
305
  * @returns Nothing.
280
306
  */
281
307
  static replaceDomNodes(domNode: HTMLElement, children: Array<Node> | Node): void;
282
308
  /**
283
309
  * Moves content of given dom node one level up and removes given node.
310
+ *
284
311
  * @param domNode - Node to unwrap.
312
+ *
285
313
  * @returns List of unwrapped nodes.
286
314
  */
287
315
  static unwrapDomNode(domNode: HTMLElement): Array<ChildNode>;
288
316
  /**
289
317
  * Determines initial root wich initializes rendering digest.
318
+ *
290
319
  * @returns Nothing.
291
320
  */
292
321
  determineRootBinding(): void;
293
322
  /**
294
323
  * Checks if given content hast code (to compile and render).
324
+ *
295
325
  * @param content - Potential string with code inside.
326
+ *
296
327
  * @returns A boolean indicating whether given content has code.
297
328
  */
298
329
  static hasCode(content: any): boolean;
299
330
  /**
300
331
  * Converts given list, item or map to a map (with ordering).
332
+ *
301
333
  * @param value - Attribute reflection configuration.
334
+ *
302
335
  * @returns Generated map.
303
336
  */
304
337
  static normalizePropertyTypeList(value: AttributesReflectionConfiguration): Map<string, string | ValueOf<typeof PropertyTypes>>;
305
338
  /**
306
339
  * Attaches event handler to keep in sync with nested components properties
307
340
  * states.
341
+ *
308
342
  * @returns Nothing.
309
343
  */
310
344
  attachEventHandler(): void;
311
345
  /**
312
346
  * Attach explicitly defined event handler to synchronize internal and
313
347
  * external property states.
348
+ *
314
349
  * @returns Returns "true" if there are some defined and "false" otherwise.
315
350
  */
316
351
  attachExplicitDefinedOutputEventHandler(): boolean;
317
352
  /**
318
353
  * Attach implicitly defined event handler to synchronize internal and
319
354
  * external property states.
355
+ *
320
356
  * @param reflectProperties - Indicates whether implicitly determined
321
357
  * properties should be reflected.
358
+ *
322
359
  * @returns Nothing.
323
360
  */
324
361
  attachImplicitDefinedOutputEventHandler(reflectProperties?: boolean): void;
325
362
  /**
326
363
  * Triggers all identified events to communicate internal property / state
327
364
  * changes.
365
+ *
328
366
  * @returns Nothing.
329
367
  */
330
368
  triggerOuputEvents(): void;
331
369
  /**
332
370
  * Forwards given event as native web event.
371
+ *
333
372
  * @param name - Event name.
334
373
  * @param parameters - Event parameters.
374
+ *
335
375
  * @returns Nothing.
336
376
  */
337
377
  forwardEvent(name: string, parameters: Array<unknown>): boolean;
@@ -339,25 +379,32 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
339
379
  * Renders component given slot contents into given dom node. If expected
340
380
  * slots are not given but a fallback is specified they will be loaded into
341
381
  * internal slot mapping.
382
+ *
342
383
  * @param targetDomNode - Target dom node to render slots into.
343
384
  * @param scope - Environment to render slots again if specified.
385
+ *
344
386
  * @returns Nothing.
345
387
  */
346
388
  applySlots(targetDomNode: HTMLElement, scope: Mapping<unknown>): void;
347
389
  /**
348
390
  * Determines slot content from given node.
391
+ *
349
392
  * @param slot - Node to grab slot content from.
393
+ *
350
394
  * @returns Determined slot.
351
395
  */
352
396
  grabSlotContent(slot: Node): Node;
353
397
  /**
354
398
  * Saves given slots.
399
+ *
355
400
  * @returns Nothing.
356
401
  */
357
402
  grabGivenSlots(): void;
358
403
  /**
359
404
  * Determines if given property name exists in wrapped component state.
405
+ *
360
406
  * @param name - Property name to check if exists in state.
407
+ *
361
408
  * @returns Boolean result.
362
409
  */
363
410
  isStateProperty(name: string): boolean;
@@ -368,49 +415,62 @@ export declare class Web<TElement = HTMLElement> extends HTMLElement {
368
415
  generateAliasIndex(): void;
369
416
  /**
370
417
  * Reflects wrapped component state back to web-component's attributes.
418
+ *
371
419
  * @param properties - Properties to update in reflected attribute state.
420
+ *
372
421
  * @returns Nothing.
373
422
  */
374
423
  reflectExternalProperties(properties: Mapping<unknown>): void;
375
424
  /**
376
425
  * Reflects wrapped component state back to web-component's attributes and
377
426
  * properties.
427
+ *
378
428
  * @param properties - Properties to update in reflected property state.
429
+ *
379
430
  * @returns Nothing.
380
431
  */
381
432
  reflectProperties(properties: Mapping<unknown>): void;
382
433
  /**
383
434
  * Triggers a new rendering cycle by respecting batch configuration.
435
+ *
384
436
  * @param reason - A description why rendering should be triggered.
437
+ *
385
438
  * @returns Nothing.
386
439
  */
387
440
  triggerRender(reason: string): void;
388
441
  /**
389
442
  * Reflect given event handler call with given parameter back to current
390
443
  * properties state.
444
+ *
391
445
  * @param name - Event name.
392
446
  * @param parameters - List of parameter to given event handler call.
447
+ *
393
448
  * @returns Mapped properties or null if nothing could be mapped.
394
449
  */
395
450
  reflectEventToProperties(name: string, parameters: Array<unknown>): Mapping<unknown> | null;
396
451
  /**
397
452
  * Evaluates given property value depending on its type specification and
398
453
  * registers in properties mapping object.
454
+ *
399
455
  * @param attributeName - Name of given value.
400
456
  * @param value - Value to evaluate.
457
+ *
401
458
  * @returns Nothing.
402
459
  */
403
460
  evaluateStringOrNullAndSetAsProperty(attributeName: string, value: null | string): void;
404
461
  /**
405
462
  * Determines new scope object with useful default set of environment
406
463
  * values.
464
+ *
407
465
  * @param scope - To apply to generated scope.
466
+ *
408
467
  * @returns Generated scope.
409
468
  */
410
469
  determineRenderScope(scope?: Mapping<unknown>): void;
411
470
  /**
412
471
  * Creates shadow root if not created yet and assigns to current root
413
472
  * property.
473
+ *
414
474
  * @returns Nothing.
415
475
  */
416
476
  applyShadowRootIfNotExisting(): void;
package/Web.js CHANGED
@@ -1 +1 @@
1
- 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/wrapNativeSuper"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/wrapNativeSuper","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/property-types"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/wrapNativeSuper"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/wrapNativeSuper"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/property-types"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n,i,s,o,a,l){return function(){"use strict";var p=[function(t){t.exports=e},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=n},function(e,t,r){var n=r(0),i=r.n(n),s=r(1),o=r.n(s),a=r(2);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=i()({readAttribute:!0,type:a.string},e),function(t,r){if("string"==typeof r){var n=t.self||t.constructor;if(e.readAttribute){n.hasOwnProperty("observedAttributes")||(n.observedAttributes=n.observedAttributes?[].concat(n.observedAttributes):[]);var s=o().stringCamelCaseToDelimited(r);n.observedAttributes.includes(s)||n.observedAttributes.push(s)}if(e.type&&(n.hasOwnProperty("propertyTypes")||(n.propertyTypes=n.propertyTypes?i()({},n.propertyTypes):{}),!e.update&&n.propertyTypes.hasOwnProperty(r)||(n.propertyTypes[r]=e.type)),e.writeAttribute&&(n.hasOwnProperty("propertiesToReflectAsAttributes")||(n.propertiesToReflectAsAttributes=n.propertiesToReflectAsAttributes?o().copy(n.propertiesToReflectAsAttributes):new Map),e.update||n.propertiesToReflectAsAttributes instanceof Map&&!n.propertiesToReflectAsAttributes.has(r)||Array.isArray(n.propertiesToReflectAsAttributes)&&!n.propertiesToReflectAsAttributes.includes(r)||null!==n.propertiesToReflectAsAttributes&&"object"==typeof n.propertiesToReflectAsAttributes&&!n.propertiesToReflectAsAttributes.hasOwnProperty(r))){var a,l;if("boolean"==typeof e.writeAttribute)!0===e.writeAttribute&&null!==(l=n.propertyTypes)&&void 0!==l&&l.hasOwnProperty(r)&&(a=n.propertyTypes[r]);else a=e.writeAttribute;void 0!==a&&(Array.isArray(n.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?n.propertiesToReflectAsAttributes.push(r):n.propertiesToReflectAsAttributes=n.normalizePropertyTypeList(n.propertiesToReflectAsAttributes)),n.propertiesToReflectAsAttributes instanceof Map&&n.propertiesToReflectAsAttributes.set(r,a),null!==n.propertiesToReflectAsAttributes&&"object"==typeof n.propertiesToReflectAsAttributes&&(n.propertiesToReflectAsAttributes[r]=a))}e.alias&&(n.hasOwnProperty("propertyAliases")||(n.propertyAliases=n.propertyAliases?i()({},n.propertyAliases):{}),!e.update&&n.propertyAliases.hasOwnProperty(r)||(n.propertyAliases[r]=e.alias))}}}},,function(e){e.exports=t},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=s},function(e){e.exports=o}],u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return p[e](r,r.exports,c),r.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){c.r(h),c.d(h,{Web:function(){return O},api:function(){return E}});var e,t,r,n,i,s=c(0),o=c.n(s),a=c(6),l=c.n(a),p=c(7),u=c.n(p),d=c(3),f=c.n(d),b=c(8),y=c.n(b),v=c(9),g=c.n(v),m=(c(10),c(1)),A=c.n(m),P=c(2);function w(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 T(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 T(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 T(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 O=(e=(0,c(4).default)({type:P.boolean,writeAttribute:!0}),i=n=function(e){function t(){var n;return(n=e.call(this)||this).batchAttributeUpdates=!0,n.batchPropertyUpdates=!0,n.batchUpdates=!0,n.batchedAttributeUpdateRunning=!0,n.batchedPropertyUpdateRunning=!0,n.batchedUpdateRunning=!0,n.parent=null,n.rootInstance=null,n.scope={Tools:A()},n.domNodeEventBindings=new Map,n.domNodeTemplateCache=new Map,n.externalProperties={},n.ignoreAttributeUpdateObservations=!1,n.internalProperties={},n.outputEventNames=new Set,n.instance=null,l()(n,"isRoot",r,u()(n)),n.root=void 0,n.runDomConnectionAndRenderingInSameEventQueue=!1,n.self=t,n.slots={},n.self=n.constructor,n.self._propertiesToReflectAsAttributes||(n.self._propertiesToReflectAsAttributes=n.self.normalizePropertyTypeList(n.self.propertiesToReflectAsAttributes)),n.generateAliasIndex(),n.root=u()(n),n.defineGetterAndSetterInterface(),n}f()(t,e);var n=t.prototype;return n.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)},n.updateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,A().timeout((function(){r.batchedAttributeUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("attributeChanged")}))):this.render("attributeChanged")},n.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):A().timeout((function(){return e.render("connected")}))},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=w(this.domNodeEventBindings);!(e=t()).done;)for(var r,n=e.value,i=(n[0],w(n[1].values()));!(r=i()).done;){(0,r.value)()}this.slots={}},n.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 this.getPropertyValue(r)},set:function(e){this.setPropertyValue(r,e),this.triggerPropertySpecificRendering(r,e)}})},n=w(A().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex))));!(e=n()).done;)r()},n.getPropertyAlias=function(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},n.getPropertyValue=function(e){var r,n,i,s,o=null===(r=this.instance)||void 0===r||null===(n=r.current)||void 0===n||!n.properties||t.propertyTypes.hasOwnProperty(e)&&!this.instance.current.properties.hasOwnProperty(e)?this.externalProperties[e]:this.instance.current.properties[e];return null!==(i=this.instance)&&void 0!==i&&null!==(s=i.current)&&void 0!==s&&s.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:o},n.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)},n.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)},n.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=t,r)),this.setInternalPropertyValue(e,t)},n.triggerPropertySpecificRendering=function(e,t){var r=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,A().timeout((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),A().timeout((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOuputEvents()}))):(r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("propertyChanged"),r.triggerOuputEvents())})));else{var n=this.isStateProperty(e);this.render(n?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&n&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOuputEvents()}},n.applyBinding=function(e,t){var r=this;if(e.getAttributeNames)for(var n,i=function(){var i=n.value,s="";if(i.startsWith("data-bind-")?s=i.substring("data-bind-".length):i.startsWith("bind-")&&(s=i.substring("bind-".length)),s){var a=e.getAttribute(i);if(null===a)return"continue";if(s.startsWith("attribute-")||s.startsWith("property-")){var l=A().stringEvaluate(a,t,!1,e);if(l.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,l.error),"continue";s.startsWith("attribute-")?e.setAttribute(s.substring("attribute-".length),l.result):e[A().stringDelimitedToCamelCase(s.substring("property-".length))]=l.result}else if(s.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var p=r.domNodeEventBindings.get(e);s=A().stringDelimitedToCamelCase(s.substring("on-".length)),p.has(s)&&p.get(s)(),t=o()({event:void 0,parameters:void 0},t);var u=A().stringCompile(a,t,!0);if(u.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,u.error);else{var c=u.templateFunction.bind(e),h=function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];t.event=n[0],t.parameters=n;try{c.apply(void 0,u.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+u.scopeNames.join('", "')+'": '+A().represent(t))}};e.addEventListener(s,h),p.set(s,(function(){e.removeEventListener(s,h),p.delete(s),0===p.size&&r.domNodeEventBindings.delete(e)}))}}}},s=w(e.getAttributeNames());!(n=s()).done;)i()},n.applyBindings=function(e,t){for(var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e;){var n;null===(n=e.attributes)||void 0===n||!n.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},n.compileDomNodeTemplate=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n=o()({map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n),null!==(t=e.nodeName)&&void 0!==t&&t.toLowerCase().includes("-"))return n.map;if(n.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var s=A().stringCompile("`"+i+"`",r);n.map.set(e,{children:[],error:s.error,scopeNames:s.scopeNames,template:i,templateFunction:s.templateFunction})}}else{var a,l=e.nodeName.toLowerCase();if(["a","#text"].includes(l)){var p="a"===l?e.getAttribute("href"):e.textContent;this.self.hasCode(p)&&(a=p.replace(/&nbsp;/g," ").trim())}var u=[];if(a){var c=A().stringCompile("`"+a+"`",r);n.map.set(e,{children:u,error:c.error,scopeNames:c.scopeNames,template:a,templateFunction:c.templateFunction})}for(var h=e.firstChild;h;)n.filter&&!n.filter(h)||u.push(this.compileDomNodeTemplate(h,r,n)),h=h.nextSibling}return n.map},n.evaluateDomNodeTemplate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((r=o()({applyBindings:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){var n=r.map.get(e),i=n.error,s=n.scopeNames,a=n.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 running "'+a+'": with bound names "'+s.join('", "')+'": "'+i+'".')}null!==l&&(r.unsafe?e.innerHTML=l:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",l):e.textContent=l)}}if(!r.unsafe)for(var p=e.firstChild;p;)r.filter&&!r.filter(p)||this.evaluateDomNodeTemplate(p,t,o()({},r,{applyBindings:!1})),p=p.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,i=w([].concat(r).reverse());!(n=i()).done;){var s,o=n.value;t.trimSlots&&o.nodeType===Node.TEXT_NODE&&""===(null===(s=o.nodeValue)||void 0===s?void 0:s.trim())||e.after(o)}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},n.determineRootBinding=function(){for(var e=this.parentNode;e;){var r;(e instanceof t||null!==(r=e.nodeName)&&void 0!==r&&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)){var r=e;e=new Map;for(var n,i=w(r);!(n=i()).done;){var s=n.value;t.propertyTypes.hasOwnProperty(s)&&e.set(s,t.propertyTypes[s])}}else e=A().convertPlainObjectToMap(e);return e},n.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},n.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,(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=e.reflectEventToProperties(r,n);s&&(n[0]=s),e.forwardEvent(r,n)})))},n=0,i=Object.keys(this.self.eventToPropertyMapping);n<i.length;n++)r();return t},n.attachImplicitDefinedOutputEventHandler=function(){for(var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=function(){var r=i[n],s=r[0];r[1];Object.prototype.hasOwnProperty.call(e.internalProperties,s)||![P.func,"function"].includes(e.self.propertyTypes[s])||e.self.renderProperties.includes(s)||(e.outputEventNames.add(s),e.setInternalPropertyValue(s,(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t&&e.reflectEventToProperties(s,n),e.forwardEvent(s,n)})))},n=0,i=Object.entries(this.self.propertyTypes);n<i.length;n++)r()},n.triggerOuputEvents=function(){for(var e,t=w(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},n.forwardEvent=function(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=A().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},n.applySlots=function(e,t){for(var r=this,n=0,i=Array.from(e.querySelectorAll("slot"));n<i.length;n++){var s=i[n],o=s.getAttribute("name");if(null===o||"default"===o)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var a,l=w(this.slots.default);!(a=l()).done;){var p=a.value;this.evaluateDomNodeTemplate(p,t)}this.self.replaceDomNodes(s,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(s).map((function(e){return r.grabSlotContent(e)}));else Object.prototype.hasOwnProperty.call(this.slots,o)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[o],t),this.self.replaceDomNodes(s,this.slots[o])):this.slots[o]=this.grabSlotContent(this.self.unwrapDomNode(s).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},n.grabSlotContent=function(e){var t;if("textarea"===(null===(t=e.firstElementChild)||void 0===t?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)||void 0===r||r.remove("web-component-template");var s=e.cloneNode();return null===(n=e.classList)||void 0===n||n.add("web-component-template"),s.innerHTML="",s.template=i,s}return this.self.cloneSlots?e.cloneNode(!0):e},n.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,s=!0;i;){if(i.nodeName.includes("-")){i===this&&(s=!1);break}i=i.parentNode}s||(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=[]},n.isStateProperty=function(e){var t,r,n,i;return Boolean((null===(t=this.instance)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null===(n=this.instance)||void 0===n||null===(i=n.current)||void 0===i?void 0:i.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},n.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=o()({},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)}}},n.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],s=n[1];if(this.setExternalPropertyValue(i,s),this.isConnected){var o=A().stringCamelCaseToDelimited(i);if(this.self._propertiesToReflectAsAttributes.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case P.boolean:case"boolean":s?""!==this.getAttribute(o)&&this.setAttribute(o,""):this.hasAttribute(o)&&this.removeAttribute(o);break;case P.func:case"function":break;case"json":if(s){var a=JSON.stringify(s);if(a&&this.getAttribute(o)!==a){this.setAttribute(o,a);break}}this.hasAttribute(o)&&this.removeAttribute(o);break;case P.number:case"number":if("number"!=typeof s||isNaN(s))this.hasAttribute(o)&&this.removeAttribute(o);else{var l=""+s;this.getAttribute(o)!==l&&this.setAttribute(o,l)}break;case P.string:case"string":s?this.getAttribute(o)!==s&&this.setAttribute(o,s):this.hasAttribute(o)&&this.removeAttribute(o);break;case P.any:case P.array:case P.arrayOf:case P.element:case P.elementType:case P.instanceOf:case P.node:case P.object:case"object":case P.objectOf:case P.shape:case P.exact:case P.symbol:default:if(s){var p=A().represent(s);if(p&&this.getAttribute(o)!==p){this.setAttribute(o,p);break}}this.hasAttribute(o)&&this.removeAttribute(o)}}}this.ignoreAttributeUpdateObservations=!1},n.reflectProperties=function(e){var t,r,n,i;if(this.reflectExternalProperties(e),null!==(t=this.instance)&&void 0!==t&&null!==(r=t.current)&&void 0!==r&&r.state&&"object"==typeof this.instance.current.state)for(var s,o=w(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(s=o()).done;){var a=s.value;Object.prototype.hasOwnProperty.call(this.internalProperties,a)&&this.setInternalPropertyValue(a,void 0)}null!==(n=this.internalProperties.model)&&void 0!==n&&n.state&&(null===(i=this.internalProperties.model)||void 0===i||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var l,p=w(this.self.controllableProperties);!(l=p()).done;){var u=l.value;Object.prototype.hasOwnProperty.call(e,u)&&this.setInternalPropertyValue(u,e[u])}},n.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,A().timeout((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},n.reflectEventToProperties=function(e,t){var r=this.batchUpdates;this.batchUpdates=!1;var n=null;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&A().isFunction(this.self.eventToPropertyMapping[e])){var i,s=(i=this.self.eventToPropertyMapping)[e].apply(i,t.concat([this]));Array.isArray(s)?(n=s[0],this.reflectProperties(n),A().extend(!0,this.internalProperties,s[1])):null!==s&&"object"==typeof s&&(n=s,this.reflectProperties(s))}else if(t.length>0&&null!==t[0]&&"object"==typeof t[0]){var a,l=t[0];if("persist"in t[0]&&A().isFunction(t[0].persist)){l={};for(var p=0,u=Object.keys(this.self.propertyTypes);p<u.length;p++)for(var c,h=u[p],d=w([h].concat(null!==(f=this.getPropertyAlias(h))&&void 0!==f?f:[]));!(c=d()).done;){var f,b=c.value,y=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,b)?t[0].currentTarget[b]:this.getPropertyValue(b);y!==this.externalProperties[b]&&(l[b]=y)}}else[null,void 0].includes(null===(a=l.detail)||void 0===a?void 0:a.value)||(l=o()({},l.detail));n=l,this.reflectProperties(l)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,n},n.evaluateStringOrNullAndSetAsProperty=function(e,t){var r=this,n=e.startsWith("-"),i=n?e.substring(1):e,s=A().stringDelimitedToCamelCase(i),o=this.getPropertyAlias(s);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(s=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,s)){var a=this.self.propertyTypes[s];if(n){if(t){var l=A().stringEvaluate(t,{Tools:A()},!1,this);l.error?(console.warn('Faild to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(s,void 0)):(this.setInternalPropertyValue(s,l.result),this.setExternalPropertyValue(s,l.result))}}else switch(a){case P.boolean:case"boolean":var p=![null,"false"].includes(t);this.setInternalPropertyValue(s,p),this.setExternalPropertyValue(s,p);break;case P.func:case"function":var u,c=null,h=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){var d=A().stringCompile(t,h);c=d.error,u=d.templateFunction,c&&console.warn('Failed to compile given handler "'+e+'": '+c+".")}this.setInternalPropertyValue(s,(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.outputEventNames.has(s)&&r.reflectEventToProperties(s,i);var a=void 0;if(!c)try{a=u.call(r,i[0],i[0],i[0],i[0],i[0],i[0],i,A())}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+h.join('", "')+'" set to "'+A().represent(i)+'": '+r+'. Set property to "undedefined".')}return r.self.renderProperties.includes(s)||r.forwardEvent(s,i),a})),c||this.setExternalPropertyValue(s,u);break;case"json":if(t){var f;try{f=JSON.parse(t)}catch(c){console.warn('Error occurred during parsing given json attribute "'+e+'": '+A().represent(c));break}this.setInternalPropertyValue(s,f),this.setExternalPropertyValue(s,A().copy(f,1))}else this.setInternalPropertyValue(s,null),this.setExternalPropertyValue(s,null);break;case P.number:case"number":if(null===t){this.setInternalPropertyValue(s,t),this.setExternalPropertyValue(s,t);break}var b=parseFloat(t);isNaN(b)&&(b=void 0),this.setInternalPropertyValue(s,b),this.setExternalPropertyValue(s,b);break;case P.string:case"string":this.setInternalPropertyValue(s,t),this.setExternalPropertyValue(s,t);break;case P.any:case P.array:case P.arrayOf:case P.element:case P.elementType:case P.instanceOf:case P.node:case P.object:case"object":case P.objectOf:case P.oneOf:case P.oneOfType:case P.shape:case P.exact:case P.symbol:default:if(t){var y=A().stringEvaluate(t,{},!1,this);if(y.error){console.warn('Error occurred during processing given attribute configuration "'+e+'": '+y.error);break}this.setInternalPropertyValue(s,y.result),this.setExternalPropertyValue(s,A().copy(y.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(s,!0),this.setExternalPropertyValue(s,!0)):(this.setInternalPropertyValue(s,null),this.setExternalPropertyValue(s,null))}}},n.determineRenderScope=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scope=o()({},(null===(e=this.parent)||void 0===e?void 0:e.scope)||{},this.scope,this.internalProperties,((t={parent:this.parent,root:this.rootInstance,self:this})[A().stringLowerCase(this.self._name)||"instance"]=this,t),r),this.scope.scope=this.scope},n.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"}))},n.render=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";if(this.determineRenderScope(),this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){var t=A().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,o()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}}},t}(y()(HTMLElement)),n.applyRootBinding=!0,n.content="<slot>Please provide a template to transclude.</slot>",n.determineRootBinding=!0,n.shadowDOM=null,n.observedAttributes=[],n.controllableProperties=[],n.eventToPropertyMapping={},n.propertyAliases={},n.propertyTypes={},n.propertiesToReflectAsAttributes=[],n.renderProperties=["children"],n.cloneSlots=!1,n.evaluateSlots=!1,n.renderSlots=!0,n.trimSlots=!0,n.renderUnsafe=!1,n._name="BaseWeb",n._propertyAliasIndex=void 0,n._propertiesToReflectAsAttributes=void 0,t=i,r=g()(t.prototype,"isRoot",[e],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),t),E={component:O,register:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A().stringCamelCaseToDelimited(O._name);return customElements.define(e,O)}};h.default=O}(),h}()}));
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/wrapNativeSuper"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/wrapNativeSuper","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/property-types"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/wrapNativeSuper"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types")):t(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/wrapNativeSuper"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/property-types"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t,r,n,i,s,o,a,l){return function(){"use strict";var p=[function(t){t.exports=e},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=n},function(e,t,r){var n=r(0),i=r.n(n),s=r(1),o=r.n(s),a=r(2);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=i()({readAttribute:!0,type:a.string},e),function(t,r){if("string"==typeof r){var n=t.self||t.constructor;if(e.readAttribute){n.hasOwnProperty("observedAttributes")||(n.observedAttributes=n.observedAttributes?[].concat(n.observedAttributes):[]);var s=o().stringCamelCaseToDelimited(r);n.observedAttributes.includes(s)||n.observedAttributes.push(s)}if(e.type&&(n.hasOwnProperty("propertyTypes")||(n.propertyTypes=n.propertyTypes?i()({},n.propertyTypes):{}),!e.update&&n.propertyTypes.hasOwnProperty(r)||(n.propertyTypes[r]=e.type)),e.writeAttribute&&(n.hasOwnProperty("propertiesToReflectAsAttributes")||(n.propertiesToReflectAsAttributes=n.propertiesToReflectAsAttributes?o().copy(n.propertiesToReflectAsAttributes):new Map),e.update||n.propertiesToReflectAsAttributes instanceof Map&&!n.propertiesToReflectAsAttributes.has(r)||Array.isArray(n.propertiesToReflectAsAttributes)&&!n.propertiesToReflectAsAttributes.includes(r)||null!==n.propertiesToReflectAsAttributes&&"object"==typeof n.propertiesToReflectAsAttributes&&!n.propertiesToReflectAsAttributes.hasOwnProperty(r))){var a,l;if("boolean"==typeof e.writeAttribute)!0===e.writeAttribute&&null!==(l=n.propertyTypes)&&void 0!==l&&l.hasOwnProperty(r)&&(a=n.propertyTypes[r]);else a=e.writeAttribute;void 0!==a&&(Array.isArray(n.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?n.propertiesToReflectAsAttributes.push(r):n.propertiesToReflectAsAttributes=n.normalizePropertyTypeList(n.propertiesToReflectAsAttributes)),n.propertiesToReflectAsAttributes instanceof Map&&n.propertiesToReflectAsAttributes.set(r,a),null!==n.propertiesToReflectAsAttributes&&"object"==typeof n.propertiesToReflectAsAttributes&&(n.propertiesToReflectAsAttributes[r]=a))}e.alias&&(n.hasOwnProperty("propertyAliases")||(n.propertyAliases=n.propertyAliases?i()({},n.propertyAliases):{}),!e.update&&n.propertyAliases.hasOwnProperty(r)||(n.propertyAliases[r]=e.alias))}}}},,function(e){e.exports=t},function(e){e.exports=r},function(e){e.exports=i},function(e){e.exports=s},function(e){e.exports=o}],u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return p[e](r,r.exports,c),r.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){c.r(h),c.d(h,{Web:function(){return O},api:function(){return E}});var e,t,r,n,i,s=c(0),o=c.n(s),a=c(6),l=c.n(a),p=c(7),u=c.n(p),d=c(3),f=c.n(d),b=c(8),y=c.n(b),v=c(9),g=c.n(v),m=(c(10),c(1)),A=c.n(m),P=c(2);function w(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 T(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 T(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 T(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 O=(e=(0,c(4).default)({type:P.boolean,writeAttribute:!0}),i=n=function(e){function t(){var n;return(n=e.call(this)||this).batchAttributeUpdates=!0,n.batchPropertyUpdates=!0,n.batchUpdates=!0,n.batchedAttributeUpdateRunning=!0,n.batchedPropertyUpdateRunning=!0,n.batchedUpdateRunning=!0,n.parent=null,n.rootInstance=null,n.scope={Tools:A()},n.domNodeEventBindings=new Map,n.domNodeTemplateCache=new Map,n.externalProperties={},n.ignoreAttributeUpdateObservations=!1,n.internalProperties={},n.outputEventNames=new Set,n.instance=null,l()(n,"isRoot",r,u()(n)),n.root=void 0,n.runDomConnectionAndRenderingInSameEventQueue=!1,n.self=t,n.slots={},n.self=n.constructor,n.self._propertiesToReflectAsAttributes||(n.self._propertiesToReflectAsAttributes=n.self.normalizePropertyTypeList(n.self.propertiesToReflectAsAttributes)),n.generateAliasIndex(),n.root=u()(n),n.defineGetterAndSetterInterface(),n}f()(t,e);var n=t.prototype;return n.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)},n.updateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,A().timeout((function(){r.batchedAttributeUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("attributeChanged")}))):this.render("attributeChanged")},n.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):A().timeout((function(){return e.render("connected")}))},n.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=w(this.domNodeEventBindings);!(e=t()).done;)for(var r,n=e.value,i=(n[0],w(n[1].values()));!(r=i()).done;){(0,r.value)()}this.slots={}},n.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 this.getPropertyValue(r)},set:function(e){this.setPropertyValue(r,e),this.triggerPropertySpecificRendering(r,e)}})},n=w(A().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex))));!(e=n()).done;)r()},n.getPropertyAlias=function(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},n.getPropertyValue=function(e){var r,n,i,s,o=null===(r=this.instance)||void 0===r||null===(n=r.current)||void 0===n||!n.properties||t.propertyTypes.hasOwnProperty(e)&&!this.instance.current.properties.hasOwnProperty(e)?this.externalProperties[e]:this.instance.current.properties[e];return null!==(i=this.instance)&&void 0!==i&&null!==(s=i.current)&&void 0!==s&&s.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:o},n.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)},n.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)},n.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=t,r)),this.setInternalPropertyValue(e,t)},n.triggerPropertySpecificRendering=function(e,t){var r=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,A().timeout((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),A().timeout((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOuputEvents()}))):(r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("propertyChanged"),r.triggerOuputEvents())})));else{var n=this.isStateProperty(e);this.render(n?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&n&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOuputEvents()}},n.applyBinding=function(e,t){var r=this;if(e.getAttributeNames)for(var n,i=function(){var i=n.value,s="";if(i.startsWith("data-bind-")?s=i.substring("data-bind-".length):i.startsWith("bind-")&&(s=i.substring("bind-".length)),s){var a=e.getAttribute(i);if(null===a)return"continue";if(s.startsWith("attribute-")||s.startsWith("property-")){var l=A().stringEvaluate(a,t,!1,e);if(l.error)return console.warn('Error occurred during processing given attribute binding "'+i+'" on node:',e,l.error),"continue";s.startsWith("attribute-")?e.setAttribute(s.substring("attribute-".length),l.result):e[A().stringDelimitedToCamelCase(s.substring("property-".length))]=l.result}else if(s.startsWith("on-")){r.domNodeEventBindings.has(e)||r.domNodeEventBindings.set(e,new Map);var p=r.domNodeEventBindings.get(e);s=A().stringDelimitedToCamelCase(s.substring("on-".length)),p.has(s)&&p.get(s)(),t=o()({event:void 0,parameters:void 0},t);var u=A().stringCompile(a,t,!0);if(u.error)console.warn('Error occurred during compiling given event binding "'+i+'" on node:',e,u.error);else{var c=u.templateFunction.bind(e),h=function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];t.event=n[0],t.parameters=n;try{c.apply(void 0,u.originalScopeNames.map((function(e){return t[e]})))}catch(t){console.warn('Error occurred during processing given event binding "'+i+'" on node:',e,'Given expression "'+a+'" could not be evaluated with given scope names "'+u.scopeNames.join('", "')+'": '+A().represent(t))}};e.addEventListener(s,h),p.set(s,(function(){e.removeEventListener(s,h),p.delete(s),0===p.size&&r.domNodeEventBindings.delete(e)}))}}}},s=w(e.getAttributeNames());!(n=s()).done;)i()},n.applyBindings=function(e,t){for(var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e;){var n;null===(n=e.attributes)||void 0===n||!n.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},n.compileDomNodeTemplate=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n=o()({map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},n),null!==(t=e.nodeName)&&void 0!==t&&t.toLowerCase().includes("-"))return n.map;if(n.unsafe){var i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){var s=A().stringCompile("`"+i+"`",r);n.map.set(e,{children:[],error:s.error,scopeNames:s.scopeNames,template:i,templateFunction:s.templateFunction})}}else{var a,l=e.nodeName.toLowerCase();if(["a","#text"].includes(l)){var p="a"===l?e.getAttribute("href"):e.textContent;this.self.hasCode(p)&&(a=p.replace(/&nbsp;/g," ").trim())}var u=[];if(a){var c=A().stringCompile("`"+a+"`",r);n.map.set(e,{children:u,error:c.error,scopeNames:c.scopeNames,template:a,templateFunction:c.templateFunction})}for(var h=e.firstChild;h;)n.filter&&!n.filter(h)||u.push(this.compileDomNodeTemplate(h,r,n)),h=h.nextSibling}return n.map},n.evaluateDomNodeTemplate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((r=o()({applyBindings:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe},r)).map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){var n=r.map.get(e),i=n.error,s=n.scopeNames,a=n.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+'".')}null!==l&&(r.unsafe?e.innerHTML=l:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",l):e.textContent=l)}}if(!r.unsafe)for(var p=e.firstChild;p;)r.filter&&!r.filter(p)||this.evaluateDomNodeTemplate(p,t,o()({},r,{applyBindings:!1})),p=p.nextSibling;return r.applyBindings&&this.applyBindings(e,t),r.map},t.replaceDomNodes=function(e,r){for(var n,i=w([].concat(r).reverse());!(n=i()).done;){var s,o=n.value;t.trimSlots&&o.nodeType===Node.TEXT_NODE&&""===(null===(s=o.nodeValue)||void 0===s?void 0:s.trim())||e.after(o)}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},n.determineRootBinding=function(){for(var e=this.parentNode;e;){var r;(e instanceof t||null!==(r=e.nodeName)&&void 0!==r&&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)){var r=e;e=new Map;for(var n,i=w(r);!(n=i()).done;){var s=n.value;t.propertyTypes.hasOwnProperty(s)&&e.set(s,t.propertyTypes[s])}}else e=A().convertPlainObjectToMap(e);return e},n.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},n.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,(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=e.reflectEventToProperties(r,n);s&&(n[0]=s),e.forwardEvent(r,n)})))},n=0,i=Object.keys(this.self.eventToPropertyMapping);n<i.length;n++)r();return t},n.attachImplicitDefinedOutputEventHandler=function(){for(var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=function(){var r=i[n],s=r[0];r[1];Object.prototype.hasOwnProperty.call(e.internalProperties,s)||![P.func,"function"].includes(e.self.propertyTypes[s])||e.self.renderProperties.includes(s)||(e.outputEventNames.add(s),e.setInternalPropertyValue(s,(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t&&e.reflectEventToProperties(s,n),e.forwardEvent(s,n)})))},n=0,i=Object.entries(this.self.propertyTypes);n<i.length;n++)r()},n.triggerOuputEvents=function(){for(var e,t=w(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},n.forwardEvent=function(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=A().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},n.applySlots=function(e,t){for(var r=this,n=0,i=Array.from(e.querySelectorAll("slot"));n<i.length;n++){var s=i[n],o=s.getAttribute("name");if(null===o||"default"===o)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var a,l=w(this.slots.default);!(a=l()).done;){var p=a.value;this.evaluateDomNodeTemplate(p,t)}this.self.replaceDomNodes(s,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(s).map((function(e){return r.grabSlotContent(e)}));else Object.prototype.hasOwnProperty.call(this.slots,o)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[o],t),this.self.replaceDomNodes(s,this.slots[o])):this.slots[o]=this.grabSlotContent(this.self.unwrapDomNode(s).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},n.grabSlotContent=function(e){var t;if("textarea"===(null===(t=e.firstElementChild)||void 0===t?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)||void 0===r||r.remove("web-component-template");var s=e.cloneNode();return null===(n=e.classList)||void 0===n||n.add("web-component-template"),s.innerHTML="",s.template=i,s}return this.self.cloneSlots?e.cloneNode(!0):e},n.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,s=!0;i;){if(i.nodeName.includes("-")){i===this&&(s=!1);break}i=i.parentNode}s||(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=[]},n.isStateProperty=function(e){var t,r,n,i;return Boolean((null===(t=this.instance)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null===(n=this.instance)||void 0===n||null===(i=n.current)||void 0===i?void 0:i.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},n.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=o()({},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)}}},n.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],s=n[1];if(this.setExternalPropertyValue(i,s),this.isConnected){var o=A().stringCamelCaseToDelimited(i);if(this.self._propertiesToReflectAsAttributes.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case P.boolean:case"boolean":s?""!==this.getAttribute(o)&&this.setAttribute(o,""):this.hasAttribute(o)&&this.removeAttribute(o);break;case P.func:case"function":break;case"json":if(s){var a=JSON.stringify(s);if(a&&this.getAttribute(o)!==a){this.setAttribute(o,a);break}}this.hasAttribute(o)&&this.removeAttribute(o);break;case P.number:case"number":if("number"!=typeof s||isNaN(s))this.hasAttribute(o)&&this.removeAttribute(o);else{var l=""+s;this.getAttribute(o)!==l&&this.setAttribute(o,l)}break;case P.string:case"string":s?this.getAttribute(o)!==s&&this.setAttribute(o,s):this.hasAttribute(o)&&this.removeAttribute(o);break;case P.any:case P.array:case P.arrayOf:case P.element:case P.elementType:case P.instanceOf:case P.node:case P.object:case"object":case P.objectOf:case P.shape:case P.exact:case P.symbol:default:if(s){var p=A().represent(s);if(p&&this.getAttribute(o)!==p){this.setAttribute(o,p);break}}this.hasAttribute(o)&&this.removeAttribute(o)}}}this.ignoreAttributeUpdateObservations=!1},n.reflectProperties=function(e){var t,r,n,i;if(this.reflectExternalProperties(e),null!==(t=this.instance)&&void 0!==t&&null!==(r=t.current)&&void 0!==r&&r.state&&"object"==typeof this.instance.current.state)for(var s,o=w(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(s=o()).done;){var a=s.value;Object.prototype.hasOwnProperty.call(this.internalProperties,a)&&this.setInternalPropertyValue(a,void 0)}null!==(n=this.internalProperties.model)&&void 0!==n&&n.state&&(null===(i=this.internalProperties.model)||void 0===i||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var l,p=w(this.self.controllableProperties);!(l=p()).done;){var u=l.value;Object.prototype.hasOwnProperty.call(e,u)&&this.setInternalPropertyValue(u,e[u])}},n.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,A().timeout((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},n.reflectEventToProperties=function(e,t){var r=this.batchUpdates;this.batchUpdates=!1;var n=null;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&A().isFunction(this.self.eventToPropertyMapping[e])){var i,s=(i=this.self.eventToPropertyMapping)[e].apply(i,t.concat([this]));Array.isArray(s)?(n=s[0],this.reflectProperties(n),A().extend(!0,this.internalProperties,s[1])):null!==s&&"object"==typeof s&&(n=s,this.reflectProperties(s))}else if(t.length>0&&null!==t[0]&&"object"==typeof t[0]){var a,l=t[0];if("persist"in t[0]&&A().isFunction(t[0].persist)){l={};for(var p=0,u=Object.keys(this.self.propertyTypes);p<u.length;p++)for(var c,h=u[p],d=w([h].concat(null!==(f=this.getPropertyAlias(h))&&void 0!==f?f:[]));!(c=d()).done;){var f,b=c.value,y=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,b)?t[0].currentTarget[b]:this.getPropertyValue(b);y!==this.externalProperties[b]&&(l[b]=y)}}else[null,void 0].includes(null===(a=l.detail)||void 0===a?void 0:a.value)||(l=o()({},l.detail));n=l,this.reflectProperties(l)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,n},n.evaluateStringOrNullAndSetAsProperty=function(e,t){var r=this,n=e.startsWith("-"),i=n?e.substring(1):e,s=A().stringDelimitedToCamelCase(i),o=this.getPropertyAlias(s);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(s=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,s)){var a=this.self.propertyTypes[s];if(n){if(t){var l=A().stringEvaluate(t,{Tools:A()},!1,this);l.error?(console.warn('Faild to process pre-evaluation attribute "'+e+'": '+l.error+'. Will be set to "undefined".'),this.setInternalPropertyValue(s,void 0)):(this.setInternalPropertyValue(s,l.result),this.setExternalPropertyValue(s,l.result))}}else switch(a){case P.boolean:case"boolean":var p=![null,"false"].includes(t);this.setInternalPropertyValue(s,p),this.setExternalPropertyValue(s,p);break;case P.func:case"function":var u,c=null,h=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){var d=A().stringCompile(t,h);c=d.error,u=d.templateFunction,c&&console.warn('Failed to compile given handler "'+e+'": '+c+".")}this.setInternalPropertyValue(s,(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.outputEventNames.has(s)&&r.reflectEventToProperties(s,i);var a=void 0;if(!c)try{a=u.call(r,i[0],i[0],i[0],i[0],i[0],i[0],i,A())}catch(r){console.warn('Failed to evaluate function "'+e+'" with expression "'+t+'" and scope variables "'+h.join('", "')+'" set to "'+A().represent(i)+'": '+r+'. Set property to "undedefined".')}return r.self.renderProperties.includes(s)||r.forwardEvent(s,i),a})),c||this.setExternalPropertyValue(s,u);break;case"json":if(t){var f;try{f=JSON.parse(t)}catch(c){console.warn('Error occurred during parsing given json attribute "'+e+'": '+A().represent(c));break}this.setInternalPropertyValue(s,f),this.setExternalPropertyValue(s,A().copy(f,1))}else this.setInternalPropertyValue(s,null),this.setExternalPropertyValue(s,null);break;case P.number:case"number":if(null===t){this.setInternalPropertyValue(s,t),this.setExternalPropertyValue(s,t);break}var b=parseFloat(t);isNaN(b)&&(b=void 0),this.setInternalPropertyValue(s,b),this.setExternalPropertyValue(s,b);break;case P.string:case"string":this.setInternalPropertyValue(s,t),this.setExternalPropertyValue(s,t);break;case P.any:case P.array:case P.arrayOf:case P.element:case P.elementType:case P.instanceOf:case P.node:case P.object:case"object":case P.objectOf:case P.oneOf:case P.oneOfType:case P.shape:case P.exact:case P.symbol:default:if(t){var y=A().stringEvaluate(t,{},!1,this);if(y.error){console.warn('Error occurred during processing given attribute configuration "'+e+'": '+y.error);break}this.setInternalPropertyValue(s,y.result),this.setExternalPropertyValue(s,A().copy(y.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(s,!0),this.setExternalPropertyValue(s,!0)):(this.setInternalPropertyValue(s,null),this.setExternalPropertyValue(s,null))}}},n.determineRenderScope=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scope=o()({},(null===(e=this.parent)||void 0===e?void 0:e.scope)||{},this.scope,this.internalProperties,((t={parent:this.parent,root:this.rootInstance,self:this})[A().stringLowerCase(this.self._name)||"instance"]=this,t),r),this.scope.scope=this.scope},n.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"}))},n.render=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";if(this.determineRenderScope(),this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}}))){var t=A().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,o()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}}},t}(y()(HTMLElement)),n.applyRootBinding=!0,n.content="<slot>Please provide a template to transclude.</slot>",n.determineRootBinding=!0,n.shadowDOM=null,n.observedAttributes=[],n.controllableProperties=[],n.eventToPropertyMapping={},n.propertyAliases={},n.propertyTypes={},n.propertiesToReflectAsAttributes=[],n.renderProperties=["children"],n.cloneSlots=!1,n.evaluateSlots=!1,n.renderSlots=!0,n.trimSlots=!0,n.renderUnsafe=!1,n._name="BaseWeb",n._propertyAliasIndex=void 0,n._propertiesToReflectAsAttributes=void 0,t=i,r=g()(t.prototype,"isRoot",[e],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),t),E={component:O,register:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A().stringCamelCaseToDelimited(O._name);return customElements.define(e,O)}};h.default=O}(),h}()}));
package/WebNext.js CHANGED
@@ -1 +1 @@
1
- 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"),require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/property-types","@babel/runtime/helpers/extends"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"),require("@babel/runtime/helpers/extends")):t(e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/property-types"],e["@babel/runtime/helpers/extends"]);for(var s in r)("object"==typeof exports?exports:e)[s]=r[s]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__2__){return(()=>{"use strict";var __webpack_modules__=[e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__0__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__1__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__2__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__3__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__4__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__5__},,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(0),r=__webpack_require__(1),function(){var s=[function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=r}],i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.r(o),n.d(o,{property:function(){return a}});var e=n(0),t=n.n(e),r=n(1),s=n.n(r),i=n(2);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=t()({readAttribute:!0,type:i.string},e),function(r,i){if("string"==typeof i){var n,o,a=r.self||r.constructor;if(e.readAttribute){a.hasOwnProperty("observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var l=s().stringCamelCaseToDelimited(i);a.observedAttributes.includes(l)||a.observedAttributes.push(l)}e.type&&(a.hasOwnProperty("propertyTypes")||(a.propertyTypes=a.propertyTypes?t()({},a.propertyTypes):{}),!e.update&&a.propertyTypes.hasOwnProperty(i)||(a.propertyTypes[i]=e.type)),e.writeAttribute&&(a.hasOwnProperty("propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?s().copy(a.propertiesToReflectAsAttributes):new Map),e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(i)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(i)||null!==a.propertiesToReflectAsAttributes&&"object"==typeof a.propertiesToReflectAsAttributes&&!a.propertiesToReflectAsAttributes.hasOwnProperty(i))&&("boolean"==typeof e.writeAttribute?!0===e.writeAttribute&&null!==(o=a.propertyTypes)&&void 0!==o&&o.hasOwnProperty(i)&&(n=a.propertyTypes[i]):n=e.writeAttribute,void 0!==n&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(i):a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes)),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(i,n),null!==a.propertiesToReflectAsAttributes&&"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[i]=n))),e.alias&&(a.hasOwnProperty("propertyAliases")||(a.propertyAliases=a.propertyAliases?t()({},a.propertyAliases):{}),!e.update&&a.propertyAliases.hasOwnProperty(i)||(a.propertyAliases[i]=e.alias))}}}o.default=a}(),o}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Web:()=>d,api:()=>f});var e,t,r,s,i,n=__webpack_require__(3),o=__webpack_require__.n(n),a=__webpack_require__(4),l=__webpack_require__.n(a),p=(__webpack_require__(5),__webpack_require__(0)),c=__webpack_require__.n(p),u=__webpack_require__(1),h=__webpack_require__(7);let d=(e=__webpack_require__.n(h)()({type:u.boolean,writeAttribute:!0}),i=s=class e extends HTMLElement{constructor(){super(),this.batchAttributeUpdates=!0,this.batchPropertyUpdates=!0,this.batchUpdates=!0,this.batchedAttributeUpdateRunning=!0,this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,this.parent=null,this.rootInstance=null,this.scope={Tools:c()},this.domNodeEventBindings=new Map,this.domNodeTemplateCache=new Map,this.externalProperties={},this.ignoreAttributeUpdateObservations=!1,this.internalProperties={},this.outputEventNames=new Set,this.instance=null,o()(this,"isRoot",r,this),this.root=void 0,this.runDomConnectionAndRenderingInSameEventQueue=!1,this.self=e,this.slots={},this.self=this.constructor,this.self._propertiesToReflectAsAttributes||(this.self._propertiesToReflectAsAttributes=this.self.normalizePropertyTypeList(this.self.propertiesToReflectAsAttributes)),this.generateAliasIndex(),this.root=this,this.defineGetterAndSetterInterface()}attributeChangedCallback(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)}updateAttribute(e,t){this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,c().timeout((()=>{this.batchedAttributeUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("attributeChanged")}))):this.render("attributeChanged")}connectedCallback(){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"):c().timeout((()=>this.render("connected")))}disconnectedCallback(){try{this.isConnected=!1}catch(e){}for(const[e,t]of this.domNodeEventBindings)for(const e of t.values())e();this.slots={}}defineGetterAndSetterInterface(){const e=c().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex)));for(const t of e)Object.prototype.hasOwnProperty.call(this,t)&&this.setPropertyValue(t,this[t]),Object.defineProperty(this,t,{configurable:!0,get:function(){return this.getPropertyValue(t)},set:function(e){this.setPropertyValue(t,e),this.triggerPropertySpecificRendering(t,e)}})}getPropertyAlias(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null}getPropertyValue(t){var r,s,i,n;const o=null===(r=this.instance)||void 0===r||null===(s=r.current)||void 0===s||!s.properties||e.propertyTypes.hasOwnProperty(t)&&!this.instance.current.properties.hasOwnProperty(t)?this.externalProperties[t]:this.instance.current.properties[t];return null!==(i=this.instance)&&void 0!==i&&null!==(n=i.current)&&void 0!==n&&n.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,t)?this.instance.current.state[t]:o}setExternalPropertyValue(e,t){this.externalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)}setInternalPropertyValue(e,t){this.internalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)}setPropertyValue(e,t){this.reflectProperties({[e]:t}),this.setInternalPropertyValue(e,t)}triggerPropertySpecificRendering(e,t){if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,c().timeout((()=>{void 0!==t&&this.isStateProperty(e)?(this.render("preStatePropertyChanged"),c().timeout((()=>{this.setInternalPropertyValue(e,void 0),this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("postStatePropertyChanged"),this.triggerOuputEvents()}))):(this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("propertyChanged"),this.triggerOuputEvents())})));else{const r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOuputEvents()}}applyBinding(e,t){if(e.getAttributeNames)for(const r of e.getAttributeNames()){let s="";if(r.startsWith("data-bind-")?s=r.substring("data-bind-".length):r.startsWith("bind-")&&(s=r.substring("bind-".length)),s){const i=e.getAttribute(r);if(null===i)continue;if(s.startsWith("attribute-")||s.startsWith("property-")){const n=c().stringEvaluate(i,t,!1,e);if(n.error){console.warn(`Error occurred during processing given attribute binding "${r}" on node:`,e,n.error);continue}s.startsWith("attribute-")?e.setAttribute(s.substring("attribute-".length),n.result):e[c().stringDelimitedToCamelCase(s.substring("property-".length))]=n.result}else if(s.startsWith("on-")){this.domNodeEventBindings.has(e)||this.domNodeEventBindings.set(e,new Map);const n=this.domNodeEventBindings.get(e);s=c().stringDelimitedToCamelCase(s.substring("on-".length)),n.has(s)&&n.get(s)(),t={event:void 0,parameters:void 0,...t};const o=c().stringCompile(i,t,!0);if(o.error)console.warn(`Error occurred during compiling given event binding "${r}" on node:`,e,o.error);else{const a=o.templateFunction.bind(e),l=function(){for(var s=arguments.length,n=new Array(s),l=0;l<s;l++)n[l]=arguments[l];t.event=n[0],t.parameters=n;try{a(...o.originalScopeNames.map((e=>t[e])))}catch(t){console.warn(`Error occurred during processing given event binding "${r}" on node:`,e,`Given expression "${i}" could not be evaluated with given scope names "${o.scopeNames.join('", "')}": ${c().represent(t)}`)}};e.addEventListener(s,l),n.set(s,(()=>{e.removeEventListener(s,l),n.delete(s),0===n.size&&this.domNodeEventBindings.delete(e)}))}}}}}applyBindings(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(;e;){var s;null===(s=e.attributes)||void 0===s||!s.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}}compileDomNodeTemplate(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s={map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...s},null!==(t=e.nodeName)&&void 0!==t&&t.toLowerCase().includes("-"))return s.map;if(s.unsafe){let t=e.innerHTML;if(!t&&e.template&&(t=e.template),this.self.hasCode(t)){const i=c().stringCompile(`\`${t}\``,r);s.map.set(e,{children:[],error:i.error,scopeNames:i.scopeNames,template:t,templateFunction:i.templateFunction})}}else{const t=e.nodeName.toLowerCase();let i;if(["a","#text"].includes(t)){const r="a"===t?e.getAttribute("href"):e.textContent;this.self.hasCode(r)&&(i=r.replace(/&nbsp;/g," ").trim())}const n=[];if(i){const t=c().stringCompile(`\`${i}\``,r);s.map.set(e,{children:n,error:t.error,scopeNames:t.scopeNames,template:i,templateFunction:t.templateFunction})}let o=e.firstChild;for(;o;)s.filter&&!s.filter(o)||n.push(this.compileDomNodeTemplate(o,r,s)),o=o.nextSibling}return s.map}evaluateDomNodeTemplate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r={applyBindings:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r},r.map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){const{error:s,scopeNames:i,templateFunction:n}=r.map.get(e);if(s)console.warn(`Error occurred during compiling node content: ${s}`);else{let s=null;try{s=n(...i.map((e=>t[e])))}catch(e){console.warn(`Error occurred when running "${n}": with bound names "${i.join('", "')}": "${e}".`)}null!==s&&(r.unsafe?e.innerHTML=s:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",s):e.textContent=s)}}if(!r.unsafe){let s=e.firstChild;for(;s;)r.filter&&!r.filter(s)||this.evaluateDomNodeTemplate(s,t,{...r,applyBindings:!1}),s=s.nextSibling}return r.applyBindings&&this.applyBindings(e,t),r.map}static replaceDomNodes(t,r){for(const i of[].concat(r).reverse()){var s;e.trimSlots&&i.nodeType===Node.TEXT_NODE&&""===(null===(s=i.nodeValue)||void 0===s?void 0:s.trim())||t.after(i)}t.remove()}static unwrapDomNode(e){const t=e.parentNode,r=[];for(;e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r}determineRootBinding(){let t=this.parentNode;for(;t;){var r;(t instanceof e||null!==(r=t.nodeName)&&void 0!==r&&r.includes("-")||null===t.parentNode&&"[object ShadowRoot]"===t.toString())&&(this.rootInstance===this?(this.parent=t,this.rootInstance=t,this.setPropertyValue("isRoot",!1)):this.rootInstance=t),t=t.parentNode}}static hasCode(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)}static normalizePropertyTypeList(t){if("string"==typeof t&&(t=[t]),Array.isArray(t)){const r=t;t=new Map;for(const s of r)e.propertyTypes.hasOwnProperty(s)&&t.set(s,e.propertyTypes[s])}else t=c().convertPlainObjectToMap(t);return t}attachEventHandler(){if(null===this.self.eventToPropertyMapping)return;const e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}attachExplicitDefinedOutputEventHandler(){var e=this;let t=!1;for(const r of Object.keys(this.self.eventToPropertyMapping))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||(t=!0,this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var t=arguments.length,s=new Array(t),i=0;i<t;i++)s[i]=arguments[i];const n=e.reflectEventToProperties(r,s);n&&(s[0]=n),e.forwardEvent(r,s)})));return t}attachImplicitDefinedOutputEventHandler(){var e=this;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(const[r,s]of Object.entries(this.self.propertyTypes))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||![u.func,"function"].includes(this.self.propertyTypes[r])||this.self.renderProperties.includes(r)||(this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var s=arguments.length,i=new Array(s),n=0;n<s;n++)i[n]=arguments[n];t&&e.reflectEventToProperties(r,i),e.forwardEvent(r,i)})))}triggerOuputEvents(){for(const e of this.outputEventNames)this.forwardEvent(e,[this.externalProperties])}forwardEvent(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=c().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))}applySlots(e,t){for(const r of Array.from(e.querySelectorAll("slot"))){const e=r.getAttribute("name");if(null===e||"default"===e)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(const e of this.slots.default)this.evaluateDomNodeTemplate(e,t);this.self.replaceDomNodes(r,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(r).map((e=>this.grabSlotContent(e)));else Object.prototype.hasOwnProperty.call(this.slots,e)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[e],t),this.self.replaceDomNodes(r,this.slots[e])):this.slots[e]=this.grabSlotContent(this.self.unwrapDomNode(r).filter((e=>"#text"!==e.nodeName.toLowerCase()))[0])}}grabSlotContent(e){var t;if("textarea"===(null===(t=e.firstElementChild)||void 0===t?void 0:t.nodeName.toLowerCase())&&(!e.firstElementChild.hasAttribute("data-no-template")||"false"===e.firstElementChild.getAttribute("data-no-template"))){var r,s;const t=e.firstElementChild.value;null===(r=e.classList)||void 0===r||r.remove("web-component-template");const i=e.cloneNode();return null===(s=e.classList)||void 0===s||s.add("web-component-template"),i.innerHTML="",i.template=t,i}return this.self.cloneSlots?e.cloneNode(!0):e}grabGivenSlots(){this.slots={};for(let e of Array.from(this.querySelectorAll("[slot]"))){let t=e.parentNode,r=!0;for(;t;){if(t.nodeName.includes("-")){t===this&&(r=!1);break}t=t.parentNode}r||(this.slots[e.getAttribute&&e.getAttribute("slot")&&e.getAttribute("slot").trim()?e.getAttribute("slot").trim():e.nodeName.toLowerCase()]=this.grabSlotContent(e))}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((e=>this.grabSlotContent(e))):this.slots.default=[]}isStateProperty(e){var t,r,s,i;return Boolean((null===(t=this.instance)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null===(s=this.instance)||void 0===s||null===(i=s.current)||void 0===i?void 0:i.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))}generateAliasIndex(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex={...this.self.propertyAliases};for(const[e,t]of Object.entries(this.self._propertyAliasIndex))Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,t)||(this.self._propertyAliasIndex[t]=e)}}reflectExternalProperties(e){this.ignoreAttributeUpdateObservations=!0;for(const[t,r]of Object.entries(e)){if(this.setExternalPropertyValue(t,r),!this.isConnected)continue;const e=c().stringCamelCaseToDelimited(t);if(this.self._propertiesToReflectAsAttributes.has(t))switch(this.self._propertiesToReflectAsAttributes.get(t)){case u.boolean:case"boolean":r?""!==this.getAttribute(e)&&this.setAttribute(e,""):this.hasAttribute(e)&&this.removeAttribute(e);break;case u.func:case"function":break;case"json":if(r){const t=JSON.stringify(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e);break;case u.number:case"number":if("number"!=typeof r||isNaN(r))this.hasAttribute(e)&&this.removeAttribute(e);else{const t=`${r}`;this.getAttribute(e)!==t&&this.setAttribute(e,t)}break;case u.string:case"string":r?this.getAttribute(e)!==r&&this.setAttribute(e,r):this.hasAttribute(e)&&this.removeAttribute(e);break;case u.any:case u.array:case u.arrayOf:case u.element:case u.elementType:case u.instanceOf:case u.node:case u.object:case"object":case u.objectOf:case u.shape:case u.exact:case u.symbol:default:if(r){const t=c().represent(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e)}}this.ignoreAttributeUpdateObservations=!1}reflectProperties(e){var t,r,s,i;if(this.reflectExternalProperties(e),null!==(t=this.instance)&&void 0!==t&&null!==(r=t.current)&&void 0!==r&&r.state&&"object"==typeof this.instance.current.state)for(const e of Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]))Object.prototype.hasOwnProperty.call(this.internalProperties,e)&&this.setInternalPropertyValue(e,void 0);null!==(s=this.internalProperties.model)&&void 0!==s&&s.state&&(null===(i=this.internalProperties.model)||void 0===i||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(const t of this.self.controllableProperties)Object.prototype.hasOwnProperty.call(e,t)&&this.setInternalPropertyValue(t,e[t])}triggerRender(e){this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,c().timeout((()=>{this.batchedUpdateRunning=!1,this.render(e)}))):this.render(e)}reflectEventToProperties(e,t){const r=this.batchUpdates;this.batchUpdates=!1;let s=null;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&c().isFunction(this.self.eventToPropertyMapping[e])){const r=this.self.eventToPropertyMapping[e](...t,this);Array.isArray(r)?(s=r[0],this.reflectProperties(s),c().extend(!0,this.internalProperties,r[1])):null!==r&&"object"==typeof r&&(s=r,this.reflectProperties(r))}else if(t.length>0&&null!==t[0]&&"object"==typeof t[0]){var i;let e=t[0];if("persist"in t[0]&&c().isFunction(t[0].persist)){e={};for(const r of Object.keys(this.self.propertyTypes))for(const s of[r].concat(null!==(n=this.getPropertyAlias(r))&&void 0!==n?n:[])){var n;const r=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,s)?t[0].currentTarget[s]:this.getPropertyValue(s);r!==this.externalProperties[s]&&(e[s]=r)}}else[null,void 0].includes(null===(i=e.detail)||void 0===i?void 0:i.value)||(e={...e.detail});s=e,this.reflectProperties(e)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,s}evaluateStringOrNullAndSetAsProperty(e,t){var r=this;const s=e.startsWith("-"),i=s?e.substring(1):e;let n=c().stringDelimitedToCamelCase(i);const o=this.getPropertyAlias(n);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(n=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,n)){const i=this.self.propertyTypes[n];if(s){if(t){const r=c().stringEvaluate(t,{Tools:c()},!1,this);r.error?(console.warn(`Faild to process pre-evaluation attribute "${e}": ${r.error}. Will be set to "undefined".`),this.setInternalPropertyValue(n,void 0)):(this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,r.result))}}else switch(i){case u.boolean:case"boolean":const s=![null,"false"].includes(t);this.setInternalPropertyValue(n,s),this.setExternalPropertyValue(n,s);break;case u.func:case"function":let i,o=null;const a=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){const r=c().stringCompile(t,a);o=r.error,i=r.templateFunction,o&&console.warn(`Failed to compile given handler "${e}": ${o}.`)}this.setInternalPropertyValue(n,(function(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];let u;if(r.outputEventNames.has(n)&&r.reflectEventToProperties(n,l),!o)try{u=i.call(r,l[0],l[0],l[0],l[0],l[0],l[0],l,c())}catch(r){console.warn(`Failed to evaluate function "${e}" with expression "${t}" and scope variables "${a.join('", "')}" set to "${c().represent(l)}": ${r}. Set property to "undedefined".`)}return r.self.renderProperties.includes(n)||r.forwardEvent(n,l),u})),o||this.setExternalPropertyValue(n,i);break;case"json":if(t){let r;try{r=JSON.parse(t)}catch(t){console.warn(`Error occurred during parsing given json attribute "${e}": `+c().represent(t));break}this.setInternalPropertyValue(n,r),this.setExternalPropertyValue(n,c().copy(r,1))}else this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null);break;case u.number:case"number":if(null===t){this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break}let l=parseFloat(t);isNaN(l)&&(l=void 0),this.setInternalPropertyValue(n,l),this.setExternalPropertyValue(n,l);break;case u.string:case"string":this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break;case u.any:case u.array:case u.arrayOf:case u.element:case u.elementType:case u.instanceOf:case u.node:case u.object:case"object":case u.objectOf:case u.oneOf:case u.oneOfType:case u.shape:case u.exact:case u.symbol:default:if(t){const r=c().stringEvaluate(t,{},!1,this);if(r.error){console.warn(`Error occurred during processing given attribute configuration "${e}": ${r.error}`);break}this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,c().copy(r.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(n,!0),this.setExternalPropertyValue(n,!0)):(this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null))}}}determineRenderScope(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scope={...(null===(e=this.parent)||void 0===e?void 0:e.scope)||{},...this.scope,...this.internalProperties,parent:this.parent,root:this.rootInstance,self:this,[c().stringLowerCase(this.self._name)||"instance"]:this,...t},this.scope.scope=this.scope}applyShadowRootIfNotExisting(){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"}))}render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";if(this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return;const t=c().stringEvaluate(`\`${this.self.content}\``,this.scope);if(t.error)return void console.warn(`Faild to process template: ${t.error}`);this.applyShadowRootIfNotExisting();const r=document.createElement("div");r.innerHTML=t.result,this.applySlots(r,{...this.scope,parent:this}),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}},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={},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,t=i,r=l()(t.prototype,"isRoot",[e],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),t);const f={component:d,register:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c().stringCamelCaseToDelimited(d._name);return customElements.define(e,d)}};__webpack_exports__.default=d})(),__webpack_exports__})()}));
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"),require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/property-types","@babel/runtime/helpers/extends"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/property-types"),require("@babel/runtime/helpers/extends")):t(e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/property-types"],e["@babel/runtime/helpers/extends"]);for(var s in r)("object"==typeof exports?exports:e)[s]=r[s]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__2__){return(()=>{"use strict";var __webpack_modules__=[e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__0__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__1__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__2__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__3__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__4__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__5__},,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(0),r=__webpack_require__(1),function(){var s=[function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=r}],i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.r(o),n.d(o,{property:function(){return a}});var e=n(0),t=n.n(e),r=n(1),s=n.n(r),i=n(2);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=t()({readAttribute:!0,type:i.string},e),function(r,i){if("string"==typeof i){var n,o,a=r.self||r.constructor;if(e.readAttribute){a.hasOwnProperty("observedAttributes")||(a.observedAttributes=a.observedAttributes?[].concat(a.observedAttributes):[]);var l=s().stringCamelCaseToDelimited(i);a.observedAttributes.includes(l)||a.observedAttributes.push(l)}e.type&&(a.hasOwnProperty("propertyTypes")||(a.propertyTypes=a.propertyTypes?t()({},a.propertyTypes):{}),!e.update&&a.propertyTypes.hasOwnProperty(i)||(a.propertyTypes[i]=e.type)),e.writeAttribute&&(a.hasOwnProperty("propertiesToReflectAsAttributes")||(a.propertiesToReflectAsAttributes=a.propertiesToReflectAsAttributes?s().copy(a.propertiesToReflectAsAttributes):new Map),e.update||a.propertiesToReflectAsAttributes instanceof Map&&!a.propertiesToReflectAsAttributes.has(i)||Array.isArray(a.propertiesToReflectAsAttributes)&&!a.propertiesToReflectAsAttributes.includes(i)||null!==a.propertiesToReflectAsAttributes&&"object"==typeof a.propertiesToReflectAsAttributes&&!a.propertiesToReflectAsAttributes.hasOwnProperty(i))&&("boolean"==typeof e.writeAttribute?!0===e.writeAttribute&&null!==(o=a.propertyTypes)&&void 0!==o&&o.hasOwnProperty(i)&&(n=a.propertyTypes[i]):n=e.writeAttribute,void 0!==n&&(Array.isArray(a.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?a.propertiesToReflectAsAttributes.push(i):a.propertiesToReflectAsAttributes=a.normalizePropertyTypeList(a.propertiesToReflectAsAttributes)),a.propertiesToReflectAsAttributes instanceof Map&&a.propertiesToReflectAsAttributes.set(i,n),null!==a.propertiesToReflectAsAttributes&&"object"==typeof a.propertiesToReflectAsAttributes&&(a.propertiesToReflectAsAttributes[i]=n))),e.alias&&(a.hasOwnProperty("propertyAliases")||(a.propertyAliases=a.propertyAliases?t()({},a.propertyAliases):{}),!e.update&&a.propertyAliases.hasOwnProperty(i)||(a.propertyAliases[i]=e.alias))}}}o.default=a}(),o}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Web:()=>d,api:()=>f});var e,t,r,s,i,n=__webpack_require__(3),o=__webpack_require__.n(n),a=__webpack_require__(4),l=__webpack_require__.n(a),p=(__webpack_require__(5),__webpack_require__(0)),c=__webpack_require__.n(p),u=__webpack_require__(1),h=__webpack_require__(7);let d=(e=__webpack_require__.n(h)()({type:u.boolean,writeAttribute:!0}),i=s=class e extends HTMLElement{constructor(){super(),this.batchAttributeUpdates=!0,this.batchPropertyUpdates=!0,this.batchUpdates=!0,this.batchedAttributeUpdateRunning=!0,this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,this.parent=null,this.rootInstance=null,this.scope={Tools:c()},this.domNodeEventBindings=new Map,this.domNodeTemplateCache=new Map,this.externalProperties={},this.ignoreAttributeUpdateObservations=!1,this.internalProperties={},this.outputEventNames=new Set,this.instance=null,o()(this,"isRoot",r,this),this.root=void 0,this.runDomConnectionAndRenderingInSameEventQueue=!1,this.self=e,this.slots={},this.self=this.constructor,this.self._propertiesToReflectAsAttributes||(this.self._propertiesToReflectAsAttributes=this.self.normalizePropertyTypeList(this.self.propertiesToReflectAsAttributes)),this.generateAliasIndex(),this.root=this,this.defineGetterAndSetterInterface()}attributeChangedCallback(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.updateAttribute(e,r)}updateAttribute(e,t){this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,c().timeout((()=>{this.batchedAttributeUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("attributeChanged")}))):this.render("attributeChanged")}connectedCallback(){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"):c().timeout((()=>this.render("connected")))}disconnectedCallback(){try{this.isConnected=!1}catch(e){}for(const[e,t]of this.domNodeEventBindings)for(const e of t.values())e();this.slots={}}defineGetterAndSetterInterface(){const e=c().arrayUnique(Object.keys(this.self.propertyTypes).concat(Object.keys(this.self._propertyAliasIndex)));for(const t of e)Object.prototype.hasOwnProperty.call(this,t)&&this.setPropertyValue(t,this[t]),Object.defineProperty(this,t,{configurable:!0,get:function(){return this.getPropertyValue(t)},set:function(e){this.setPropertyValue(t,e),this.triggerPropertySpecificRendering(t,e)}})}getPropertyAlias(e){return Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null}getPropertyValue(t){var r,s,i,n;const o=null===(r=this.instance)||void 0===r||null===(s=r.current)||void 0===s||!s.properties||e.propertyTypes.hasOwnProperty(t)&&!this.instance.current.properties.hasOwnProperty(t)?this.externalProperties[t]:this.instance.current.properties[t];return null!==(i=this.instance)&&void 0!==i&&null!==(n=i.current)&&void 0!==n&&n.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,t)?this.instance.current.state[t]:o}setExternalPropertyValue(e,t){this.externalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)}setInternalPropertyValue(e,t){this.internalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)}setPropertyValue(e,t){this.reflectProperties({[e]:t}),this.setInternalPropertyValue(e,t)}triggerPropertySpecificRendering(e,t){if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,c().timeout((()=>{void 0!==t&&this.isStateProperty(e)?(this.render("preStatePropertyChanged"),c().timeout((()=>{this.setInternalPropertyValue(e,void 0),this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("postStatePropertyChanged"),this.triggerOuputEvents()}))):(this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("propertyChanged"),this.triggerOuputEvents())})));else{const r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOuputEvents()}}applyBinding(e,t){if(e.getAttributeNames)for(const r of e.getAttributeNames()){let s="";if(r.startsWith("data-bind-")?s=r.substring("data-bind-".length):r.startsWith("bind-")&&(s=r.substring("bind-".length)),s){const i=e.getAttribute(r);if(null===i)continue;if(s.startsWith("attribute-")||s.startsWith("property-")){const n=c().stringEvaluate(i,t,!1,e);if(n.error){console.warn(`Error occurred during processing given attribute binding "${r}" on node:`,e,n.error);continue}s.startsWith("attribute-")?e.setAttribute(s.substring("attribute-".length),n.result):e[c().stringDelimitedToCamelCase(s.substring("property-".length))]=n.result}else if(s.startsWith("on-")){this.domNodeEventBindings.has(e)||this.domNodeEventBindings.set(e,new Map);const n=this.domNodeEventBindings.get(e);s=c().stringDelimitedToCamelCase(s.substring("on-".length)),n.has(s)&&n.get(s)(),t={event:void 0,parameters:void 0,...t};const o=c().stringCompile(i,t,!0);if(o.error)console.warn(`Error occurred during compiling given event binding "${r}" on node:`,e,o.error);else{const a=o.templateFunction.bind(e),l=function(){for(var s=arguments.length,n=new Array(s),l=0;l<s;l++)n[l]=arguments[l];t.event=n[0],t.parameters=n;try{a(...o.originalScopeNames.map((e=>t[e])))}catch(t){console.warn(`Error occurred during processing given event binding "${r}" on node:`,e,`Given expression "${i}" could not be evaluated with given scope names "${o.scopeNames.join('", "')}": ${c().represent(t)}`)}};e.addEventListener(s,l),n.set(s,(()=>{e.removeEventListener(s,l),n.delete(s),0===n.size&&this.domNodeEventBindings.delete(e)}))}}}}}applyBindings(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(;e;){var s;null===(s=e.attributes)||void 0===s||!s.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}}compileDomNodeTemplate(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s={map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...s},null!==(t=e.nodeName)&&void 0!==t&&t.toLowerCase().includes("-"))return s.map;if(s.unsafe){let t=e.innerHTML;if(!t&&e.template&&(t=e.template),this.self.hasCode(t)){const i=c().stringCompile(`\`${t}\``,r);s.map.set(e,{children:[],error:i.error,scopeNames:i.scopeNames,template:t,templateFunction:i.templateFunction})}}else{const t=e.nodeName.toLowerCase();let i;if(["a","#text"].includes(t)){const r="a"===t?e.getAttribute("href"):e.textContent;this.self.hasCode(r)&&(i=r.replace(/&nbsp;/g," ").trim())}const n=[];if(i){const t=c().stringCompile(`\`${i}\``,r);s.map.set(e,{children:n,error:t.error,scopeNames:t.scopeNames,template:i,templateFunction:t.templateFunction})}let o=e.firstChild;for(;o;)s.filter&&!s.filter(o)||n.push(this.compileDomNodeTemplate(o,r,s)),o=o.nextSibling}return s.map}evaluateDomNodeTemplate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r={applyBindings:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r},r.map.has(e)||this.compileDomNodeTemplate(e,t,r),r.map.has(e)){const{error:s,scopeNames:i,templateFunction:n}=r.map.get(e);if(s)console.warn(`Error occurred during compiling node content: ${s}`);else{let s=null;try{s=n(...i.map((e=>t[e])))}catch(e){console.warn(`Error occurred when "${this.self._name}" is running"${n}": with bound names "${i.join('", "')}": "${e}".`)}null!==s&&(r.unsafe?e.innerHTML=s:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",s):e.textContent=s)}}if(!r.unsafe){let s=e.firstChild;for(;s;)r.filter&&!r.filter(s)||this.evaluateDomNodeTemplate(s,t,{...r,applyBindings:!1}),s=s.nextSibling}return r.applyBindings&&this.applyBindings(e,t),r.map}static replaceDomNodes(t,r){for(const i of[].concat(r).reverse()){var s;e.trimSlots&&i.nodeType===Node.TEXT_NODE&&""===(null===(s=i.nodeValue)||void 0===s?void 0:s.trim())||t.after(i)}t.remove()}static unwrapDomNode(e){const t=e.parentNode,r=[];for(;e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r}determineRootBinding(){let t=this.parentNode;for(;t;){var r;(t instanceof e||null!==(r=t.nodeName)&&void 0!==r&&r.includes("-")||null===t.parentNode&&"[object ShadowRoot]"===t.toString())&&(this.rootInstance===this?(this.parent=t,this.rootInstance=t,this.setPropertyValue("isRoot",!1)):this.rootInstance=t),t=t.parentNode}}static hasCode(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)}static normalizePropertyTypeList(t){if("string"==typeof t&&(t=[t]),Array.isArray(t)){const r=t;t=new Map;for(const s of r)e.propertyTypes.hasOwnProperty(s)&&t.set(s,e.propertyTypes[s])}else t=c().convertPlainObjectToMap(t);return t}attachEventHandler(){if(null===this.self.eventToPropertyMapping)return;const e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}attachExplicitDefinedOutputEventHandler(){var e=this;let t=!1;for(const r of Object.keys(this.self.eventToPropertyMapping))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||(t=!0,this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var t=arguments.length,s=new Array(t),i=0;i<t;i++)s[i]=arguments[i];const n=e.reflectEventToProperties(r,s);n&&(s[0]=n),e.forwardEvent(r,s)})));return t}attachImplicitDefinedOutputEventHandler(){var e=this;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(const[r,s]of Object.entries(this.self.propertyTypes))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||![u.func,"function"].includes(this.self.propertyTypes[r])||this.self.renderProperties.includes(r)||(this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var s=arguments.length,i=new Array(s),n=0;n<s;n++)i[n]=arguments[n];t&&e.reflectEventToProperties(r,i),e.forwardEvent(r,i)})))}triggerOuputEvents(){for(const e of this.outputEventNames)this.forwardEvent(e,[this.externalProperties])}forwardEvent(e,t){return e.length>"onX".length&&e.startsWith("on")&&(e=c().stringLowerCase(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))}applySlots(e,t){for(const r of Array.from(e.querySelectorAll("slot"))){const e=r.getAttribute("name");if(null===e||"default"===e)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(const e of this.slots.default)this.evaluateDomNodeTemplate(e,t);this.self.replaceDomNodes(r,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(r).map((e=>this.grabSlotContent(e)));else Object.prototype.hasOwnProperty.call(this.slots,e)?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[e],t),this.self.replaceDomNodes(r,this.slots[e])):this.slots[e]=this.grabSlotContent(this.self.unwrapDomNode(r).filter((e=>"#text"!==e.nodeName.toLowerCase()))[0])}}grabSlotContent(e){var t;if("textarea"===(null===(t=e.firstElementChild)||void 0===t?void 0:t.nodeName.toLowerCase())&&(!e.firstElementChild.hasAttribute("data-no-template")||"false"===e.firstElementChild.getAttribute("data-no-template"))){var r,s;const t=e.firstElementChild.value;null===(r=e.classList)||void 0===r||r.remove("web-component-template");const i=e.cloneNode();return null===(s=e.classList)||void 0===s||s.add("web-component-template"),i.innerHTML="",i.template=t,i}return this.self.cloneSlots?e.cloneNode(!0):e}grabGivenSlots(){this.slots={};for(let e of Array.from(this.querySelectorAll("[slot]"))){let t=e.parentNode,r=!0;for(;t;){if(t.nodeName.includes("-")){t===this&&(r=!1);break}t=t.parentNode}r||(this.slots[e.getAttribute&&e.getAttribute("slot")&&e.getAttribute("slot").trim()?e.getAttribute("slot").trim():e.nodeName.toLowerCase()]=this.grabSlotContent(e))}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((e=>this.grabSlotContent(e))):this.slots.default=[]}isStateProperty(e){var t,r,s,i;return Boolean((null===(t=this.instance)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.state)&&(Object.prototype.hasOwnProperty.call(null===(s=this.instance)||void 0===s||null===(i=s.current)||void 0===i?void 0:i.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))}generateAliasIndex(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex={...this.self.propertyAliases};for(const[e,t]of Object.entries(this.self._propertyAliasIndex))Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,t)||(this.self._propertyAliasIndex[t]=e)}}reflectExternalProperties(e){this.ignoreAttributeUpdateObservations=!0;for(const[t,r]of Object.entries(e)){if(this.setExternalPropertyValue(t,r),!this.isConnected)continue;const e=c().stringCamelCaseToDelimited(t);if(this.self._propertiesToReflectAsAttributes.has(t))switch(this.self._propertiesToReflectAsAttributes.get(t)){case u.boolean:case"boolean":r?""!==this.getAttribute(e)&&this.setAttribute(e,""):this.hasAttribute(e)&&this.removeAttribute(e);break;case u.func:case"function":break;case"json":if(r){const t=JSON.stringify(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e);break;case u.number:case"number":if("number"!=typeof r||isNaN(r))this.hasAttribute(e)&&this.removeAttribute(e);else{const t=`${r}`;this.getAttribute(e)!==t&&this.setAttribute(e,t)}break;case u.string:case"string":r?this.getAttribute(e)!==r&&this.setAttribute(e,r):this.hasAttribute(e)&&this.removeAttribute(e);break;case u.any:case u.array:case u.arrayOf:case u.element:case u.elementType:case u.instanceOf:case u.node:case u.object:case"object":case u.objectOf:case u.shape:case u.exact:case u.symbol:default:if(r){const t=c().represent(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e)}}this.ignoreAttributeUpdateObservations=!1}reflectProperties(e){var t,r,s,i;if(this.reflectExternalProperties(e),null!==(t=this.instance)&&void 0!==t&&null!==(r=t.current)&&void 0!==r&&r.state&&"object"==typeof this.instance.current.state)for(const e of Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]))Object.prototype.hasOwnProperty.call(this.internalProperties,e)&&this.setInternalPropertyValue(e,void 0);null!==(s=this.internalProperties.model)&&void 0!==s&&s.state&&(null===(i=this.internalProperties.model)||void 0===i||delete i.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(const t of this.self.controllableProperties)Object.prototype.hasOwnProperty.call(e,t)&&this.setInternalPropertyValue(t,e[t])}triggerRender(e){this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,c().timeout((()=>{this.batchedUpdateRunning=!1,this.render(e)}))):this.render(e)}reflectEventToProperties(e,t){const r=this.batchUpdates;this.batchUpdates=!1;let s=null;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&c().isFunction(this.self.eventToPropertyMapping[e])){const r=this.self.eventToPropertyMapping[e](...t,this);Array.isArray(r)?(s=r[0],this.reflectProperties(s),c().extend(!0,this.internalProperties,r[1])):null!==r&&"object"==typeof r&&(s=r,this.reflectProperties(r))}else if(t.length>0&&null!==t[0]&&"object"==typeof t[0]){var i;let e=t[0];if("persist"in t[0]&&c().isFunction(t[0].persist)){e={};for(const r of Object.keys(this.self.propertyTypes))for(const s of[r].concat(null!==(n=this.getPropertyAlias(r))&&void 0!==n?n:[])){var n;const r=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,s)?t[0].currentTarget[s]:this.getPropertyValue(s);r!==this.externalProperties[s]&&(e[s]=r)}}else[null,void 0].includes(null===(i=e.detail)||void 0===i?void 0:i.value)||(e={...e.detail});s=e,this.reflectProperties(e)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,s}evaluateStringOrNullAndSetAsProperty(e,t){var r=this;const s=e.startsWith("-"),i=s?e.substring(1):e;let n=c().stringDelimitedToCamelCase(i);const o=this.getPropertyAlias(n);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(n=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,n)){const i=this.self.propertyTypes[n];if(s){if(t){const r=c().stringEvaluate(t,{Tools:c()},!1,this);r.error?(console.warn(`Faild to process pre-evaluation attribute "${e}": ${r.error}. Will be set to "undefined".`),this.setInternalPropertyValue(n,void 0)):(this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,r.result))}}else switch(i){case u.boolean:case"boolean":const s=![null,"false"].includes(t);this.setInternalPropertyValue(n,s),this.setExternalPropertyValue(n,s);break;case u.func:case"function":let i,o=null;const a=["data","event","firstArgument","firstParameter","options","scope","parameters","Tools"];if(t){const r=c().stringCompile(t,a);o=r.error,i=r.templateFunction,o&&console.warn(`Failed to compile given handler "${e}": ${o}.`)}this.setInternalPropertyValue(n,(function(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];let u;if(r.outputEventNames.has(n)&&r.reflectEventToProperties(n,l),!o)try{u=i.call(r,l[0],l[0],l[0],l[0],l[0],l[0],l,c())}catch(r){console.warn(`Failed to evaluate function "${e}" with expression "${t}" and scope variables "${a.join('", "')}" set to "${c().represent(l)}": ${r}. Set property to "undedefined".`)}return r.self.renderProperties.includes(n)||r.forwardEvent(n,l),u})),o||this.setExternalPropertyValue(n,i);break;case"json":if(t){let r;try{r=JSON.parse(t)}catch(t){console.warn(`Error occurred during parsing given json attribute "${e}": `+c().represent(t));break}this.setInternalPropertyValue(n,r),this.setExternalPropertyValue(n,c().copy(r,1))}else this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null);break;case u.number:case"number":if(null===t){this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break}let l=parseFloat(t);isNaN(l)&&(l=void 0),this.setInternalPropertyValue(n,l),this.setExternalPropertyValue(n,l);break;case u.string:case"string":this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break;case u.any:case u.array:case u.arrayOf:case u.element:case u.elementType:case u.instanceOf:case u.node:case u.object:case"object":case u.objectOf:case u.oneOf:case u.oneOfType:case u.shape:case u.exact:case u.symbol:default:if(t){const r=c().stringEvaluate(t,{},!1,this);if(r.error){console.warn(`Error occurred during processing given attribute configuration "${e}": ${r.error}`);break}this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,c().copy(r.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(n,!0),this.setExternalPropertyValue(n,!0)):(this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null))}}}determineRenderScope(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scope={...(null===(e=this.parent)||void 0===e?void 0:e.scope)||{},...this.scope,...this.internalProperties,parent:this.parent,root:this.rootInstance,self:this,[c().stringLowerCase(this.self._name)||"instance"]:this,...t},this.scope.scope=this.scope}applyShadowRootIfNotExisting(){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"}))}render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";if(this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return;const t=c().stringEvaluate(`\`${this.self.content}\``,this.scope);if(t.error)return void console.warn(`Faild to process template: ${t.error}`);this.applyShadowRootIfNotExisting();const r=document.createElement("div");r.innerHTML=t.result,this.applySlots(r,{...this.scope,parent:this}),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots)}},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={},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,t=i,r=l()(t.prototype,"isRoot",[e],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),t);const f={component:d,register:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c().stringCamelCaseToDelimited(d._name);return customElements.define(e,d)}};__webpack_exports__.default=d})(),__webpack_exports__})()}));