vsn 0.1.23 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/demo/demo.html +16 -7
  2. package/demo/vsn.js +1 -0
  3. package/dist/AST.d.ts +2 -1
  4. package/dist/AST.js +94 -4
  5. package/dist/AST.js.map +1 -1
  6. package/dist/Attribute.d.ts +1 -1
  7. package/dist/Attribute.js +3 -3
  8. package/dist/Attribute.js.map +1 -1
  9. package/dist/Configuration.d.ts +1 -1
  10. package/dist/Configuration.js +4 -4
  11. package/dist/Configuration.js.map +1 -1
  12. package/dist/Controller.d.ts +10 -5
  13. package/dist/Controller.js +21 -6
  14. package/dist/Controller.js.map +1 -1
  15. package/dist/DOM/DOMObject.d.ts +1 -1
  16. package/dist/DOM/DOMObject.js +2 -2
  17. package/dist/DOM/DOMObject.js.map +1 -1
  18. package/dist/DOM.d.ts +1 -1
  19. package/dist/DOM.js +4 -4
  20. package/dist/DOM.js.map +1 -1
  21. package/dist/EventDispatcher.d.ts +26 -0
  22. package/dist/EventDispatcher.js +117 -0
  23. package/dist/EventDispatcher.js.map +1 -0
  24. package/dist/Formats.js +2 -2
  25. package/dist/Formats.js.map +1 -1
  26. package/dist/MessageList.d.ts +14 -0
  27. package/dist/MessageList.js +88 -0
  28. package/dist/MessageList.js.map +1 -0
  29. package/dist/Model/Collection.d.ts +5 -0
  30. package/dist/Model/Collection.js +37 -0
  31. package/dist/Model/Collection.js.map +1 -0
  32. package/dist/Model/DataModel.d.ts +6 -0
  33. package/dist/Model/DataModel.js +54 -0
  34. package/dist/Model/DataModel.js.map +1 -0
  35. package/dist/Model/ModelAbstract.d.ts +20 -0
  36. package/dist/Model/ModelAbstract.js +122 -0
  37. package/dist/Model/ModelAbstract.js.map +1 -0
  38. package/dist/Model/fields/BooleanField.d.ts +5 -0
  39. package/dist/Model/fields/BooleanField.js +43 -0
  40. package/dist/Model/fields/BooleanField.js.map +1 -0
  41. package/dist/Model/fields/EmailField.d.ts +5 -0
  42. package/dist/Model/fields/EmailField.js +36 -0
  43. package/dist/Model/fields/EmailField.js.map +1 -0
  44. package/dist/Model/fields/Field.d.ts +13 -0
  45. package/dist/Model/fields/Field.js +79 -0
  46. package/dist/Model/fields/Field.js.map +1 -0
  47. package/dist/Model/fields/FloatField.d.ts +5 -0
  48. package/dist/Model/fields/FloatField.js +47 -0
  49. package/dist/Model/fields/FloatField.js.map +1 -0
  50. package/dist/Model/fields/PositiveNumberField.d.ts +5 -0
  51. package/dist/Model/fields/PositiveNumberField.js +51 -0
  52. package/dist/Model/fields/PositiveNumberField.js.map +1 -0
  53. package/dist/Model/fields/StringField.d.ts +5 -0
  54. package/dist/Model/fields/StringField.js +43 -0
  55. package/dist/Model/fields/StringField.js.map +1 -0
  56. package/dist/Model.d.ts +11 -0
  57. package/dist/Model.js +72 -0
  58. package/dist/Model.js.map +1 -0
  59. package/dist/Registry.d.ts +2 -2
  60. package/dist/Registry.js +6 -16
  61. package/dist/Registry.js.map +1 -1
  62. package/dist/Scope.d.ts +7 -10
  63. package/dist/Scope.js +40 -90
  64. package/dist/Scope.js.map +1 -1
  65. package/dist/SimplePromise.d.ts +42 -0
  66. package/dist/SimplePromise.js +217 -0
  67. package/dist/SimplePromise.js.map +1 -0
  68. package/dist/Tag.js +12 -6
  69. package/dist/Tag.js.map +1 -1
  70. package/dist/attributes/Bind.js +1 -1
  71. package/dist/attributes/Bind.js.map +1 -1
  72. package/dist/attributes/ClickRemoveClass.js +17 -5
  73. package/dist/attributes/ClickRemoveClass.js.map +1 -1
  74. package/dist/attributes/ClickToggleClass.js +17 -5
  75. package/dist/attributes/ClickToggleClass.js.map +1 -1
  76. package/dist/attributes/Exec.js +6 -0
  77. package/dist/attributes/Exec.js.map +1 -1
  78. package/dist/attributes/Format.js +3 -0
  79. package/dist/attributes/Format.js.map +1 -1
  80. package/dist/attributes/If.js +12 -0
  81. package/dist/attributes/If.js.map +1 -1
  82. package/dist/attributes/JSONAttribute.js +3 -0
  83. package/dist/attributes/JSONAttribute.js.map +1 -1
  84. package/dist/attributes/KeyAbstract.js +11 -4
  85. package/dist/attributes/KeyAbstract.js.map +1 -1
  86. package/dist/attributes/KeyDown.js +8 -2
  87. package/dist/attributes/KeyDown.js.map +1 -1
  88. package/dist/attributes/KeyUp.js +8 -2
  89. package/dist/attributes/KeyUp.js.map +1 -1
  90. package/dist/attributes/List.js +14 -5
  91. package/dist/attributes/List.js.map +1 -1
  92. package/dist/attributes/ListItem.js +3 -0
  93. package/dist/attributes/ListItem.js.map +1 -1
  94. package/dist/attributes/On.js +15 -3
  95. package/dist/attributes/On.js.map +1 -1
  96. package/dist/attributes/Radio.d.ts +2 -0
  97. package/dist/attributes/Radio.js +52 -5
  98. package/dist/attributes/Radio.js.map +1 -1
  99. package/dist/attributes/RootAttribute.js +8 -2
  100. package/dist/attributes/RootAttribute.js.map +1 -1
  101. package/dist/attributes/ScopeChange.js +7 -1
  102. package/dist/attributes/ScopeChange.js.map +1 -1
  103. package/dist/attributes/SetAttribute.js +3 -0
  104. package/dist/attributes/SetAttribute.js.map +1 -1
  105. package/dist/attributes/StandardAttribute.js +25 -7
  106. package/dist/attributes/StandardAttribute.js.map +1 -1
  107. package/dist/attributes/StyleAttribute.js +1 -1
  108. package/dist/attributes/StyleAttribute.js.map +1 -1
  109. package/dist/attributes/TypeAttribute.js +3 -0
  110. package/dist/attributes/TypeAttribute.js.map +1 -1
  111. package/dist/{Vision.d.ts → vsn.d.ts} +3 -1
  112. package/dist/{Vision.js → vsn.js} +10 -6
  113. package/dist/vsn.js.map +1 -0
  114. package/package.json +9 -13
  115. package/src/AST.ts +96 -5
  116. package/src/Attribute.ts +2 -2
  117. package/src/Configuration.ts +3 -3
  118. package/src/Controller.ts +16 -7
  119. package/src/DOM/DOMObject.ts +1 -1
  120. package/src/DOM.ts +4 -4
  121. package/src/EventDispatcher.ts +117 -0
  122. package/src/Formats.ts +2 -2
  123. package/src/MessageList.ts +81 -0
  124. package/src/Model/Collection.ts +13 -0
  125. package/src/Model/DataModel.ts +29 -0
  126. package/src/Model/ModelAbstract.ts +114 -0
  127. package/src/Model/fields/BooleanField.ts +16 -0
  128. package/src/Model/fields/EmailField.ts +12 -0
  129. package/src/Model/fields/Field.ts +65 -0
  130. package/src/Model/fields/FloatField.ts +22 -0
  131. package/src/Model/fields/PositiveNumberField.ts +24 -0
  132. package/src/Model/fields/StringField.ts +16 -0
  133. package/src/Model.ts +57 -0
  134. package/src/Registry.ts +3 -5
  135. package/src/Scope.ts +39 -90
  136. package/src/SimplePromise.ts +219 -0
  137. package/src/Tag.ts +12 -9
  138. package/src/attributes/Bind.ts +1 -1
  139. package/src/attributes/ClickRemoveClass.ts +2 -0
  140. package/src/attributes/ClickToggleClass.ts +2 -0
  141. package/src/attributes/Exec.ts +2 -0
  142. package/src/attributes/Format.ts +1 -0
  143. package/src/attributes/If.ts +4 -0
  144. package/src/attributes/JSONAttribute.ts +1 -0
  145. package/src/attributes/KeyAbstract.ts +2 -1
  146. package/src/attributes/KeyDown.ts +1 -0
  147. package/src/attributes/KeyUp.ts +1 -0
  148. package/src/attributes/List.ts +6 -3
  149. package/src/attributes/ListItem.ts +1 -0
  150. package/src/attributes/On.ts +4 -0
  151. package/src/attributes/Radio.ts +18 -3
  152. package/src/attributes/RootAttribute.ts +1 -0
  153. package/src/attributes/ScopeChange.ts +3 -1
  154. package/src/attributes/SetAttribute.ts +1 -0
  155. package/src/attributes/StandardAttribute.ts +4 -1
  156. package/src/attributes/StyleAttribute.ts +1 -1
  157. package/src/attributes/TypeAttribute.ts +1 -0
  158. package/src/{Vision.ts → vsn.ts} +4 -2
  159. package/test/AST.spec.ts +2 -1
  160. package/test/DOM.spec.ts +1 -1
  161. package/test/MessageList.spec.ts +101 -0
  162. package/test/Model/DataModel.spec.ts +141 -0
  163. package/test/Model.spec.ts +306 -0
  164. package/test/Scope.spec.ts +2 -2
  165. package/test/SimplePromise.spec.ts +271 -0
  166. package/test/attributes/Bind.spec.ts +5 -5
  167. package/test/attributes/JSONAttribute.spec.ts +1 -1
  168. package/test/attributes/ListItem.spec.ts +1 -1
  169. package/webpack.config.js +2 -2
  170. package/demo/vision.js +0 -1
  171. package/dist/Vision.js.map +0 -1
  172. package/main.py +0 -16
package/demo/vision.js DELETED
@@ -1 +0,0 @@
1
- (()=>{"use strict";var t={8294:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n,r){this.fnc=t,this.key=e,this.once=n,this.context=r,this.calls=0}return t.prototype.call=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!(this.once&&this.calls>0||((t=this.fnc).apply.apply(t,[this.context].concat(e)),this.calls+=1,0))},t}();e.EventCallback=n;var r=function(){function t(){this._lastKey=0,this._listeners={}}return t.prototype.bind=function(t,e,r,o){return o=o||!1,this._lastKey++,this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(new n(e,this._lastKey,o,r)),this._lastKey},t.prototype.once=function(t,e,n){return this.bind(t,e,n,!0)},t.prototype.unbind=function(t,e){if(t in this._listeners==0)return!1;if(!e)return this._listeners[t]=[],!0;for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return this._listeners[t].splice(this._listeners[t].indexOf(o),1),!0}return!1},t.prototype.unbindWithContext=function(t,e){if(t in this._listeners==0)return 0;for(var n=[],r=0,o=0,i=this._listeners[t];o<i.length;o++)e==(u=i[o]).context&&n.push(u);for(var s=0,a=n;s<a.length;s++){var u=a[s];this._listeners[t].splice(this._listeners[t].indexOf(u),1),r++}return r},t.prototype.getListener=function(t,e){for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return o}},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t in this._listeners!=0)for(var r=0;r<this._listeners[t].length;r++){var o=this._listeners[t][r];o.once&&(this.unbind(t,o.key),r--),o.call(e)}},t}();e.EventDispatcher=r},9959:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.reset(),t&&this.merge(t)}return t.prototype.reset=function(){var t=this.keys;if(this._cachedList=void 0,t.length>0)for(var e=0,n=t;e<n.length;e++)delete this[n[e]]},t.prototype.add=function(t,e,n){var r;void 0===n&&(n=!1),this.merge(((r={})[t]="string"==typeof e?[e]:e,r),n)},t.prototype.merge=function(t,e){var n=this;if(void 0===e&&(e=!1),t){this._cachedList=void 0;var r=this.keys,o=function(o){if(!t.hasOwnProperty(o))return"continue";var s=t[o];s instanceof Array&&(!e&&r.indexOf(o)>-1?s.map((function(t){n[o].push(t)})):s.length>0&&(i[o]=s))},i=this;for(var s in t)o(s)}},Object.defineProperty(t.prototype,"list",{get:function(){if(this._cachedList)return this._cachedList;for(var t={},e=0,n=this.keys;e<n.length;e++){var r=n[e];t[r]=this[r]}return this._cachedList=t,t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){var t=Object.keys(this);return t.splice(t.indexOf("_cachedList"),1),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),t}();e.default=n},9072:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=void 0;var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getData=function(){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getData())}return t},e}return r(e,t),e}(Array);e.Collection=o},6297:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DataModel=void 0;var i=function(t){function e(e){var n=t.call(this)||this;if(e instanceof Array){n.__fields__=e;for(var r=0,o=e;r<o.length;r++){var i=o[r];n.createField(i)}}else n.setData(e);return n}return o(e,t),e.prototype.setData=function(e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];-1==this.__fields__.indexOf(o)&&(this.__fields__.push(o),this.createField(o))}t.prototype.setData.call(this,e)},e.prototype.bind=function(e,n,r,o){return 0==e.indexOf("change:")&&this.createField(e.substr(7)),t.prototype.bind.call(this,e,n,r,o)},e}(n(6412).ModelAbstract);e.DataModel=i},9143:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Model=void 0;var i=n(9959),s=function(t){function e(e){void 0===e&&(e=null);for(var n=t.call(this)||this,r=0,o=n.__fields__.splice(0,n.__fields__.length);r<o.length;r++)!function(t,e){if(t["__"+e+"__"]){t.__fields__.push(e);var n=t["__"+e+"__"],r=n[0],o=n[1]||{};t.createField(e,r,o)}}(n,o[r]);return n._hasErrors=!1,e&&n.setData(e),n._lastData=n.getData(),n._constructor(),n}return o(e,t),e.prototype._constructor=function(){},e.prototype.validate=function(){this._hasErrors=!1,this._errors=new i.default;for(var t=0,e=this.getFields();t<e.length;t++){var n=e[t],r=this["__"+n].validate();r.length>0&&(this._errors.add(n,r,!0),this._hasErrors=!0)}return this._errors},e.prototype.hasErrors=function(){return this.validate(),this._hasErrors},Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!1,configurable:!0}),e}(n(6412).ModelAbstract);e.Model=s},6412:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ModelAbstract=void 0;var s=n(8294),a=n(8420),u=function(t){function e(){var e=t.call(this)||this;return e.__fields__||(e.__fields__=[]),e}return o(e,t),e.prototype.createField=function(t,e,n){var r=this;void 0===e&&(e=a.Field);var o=new e(this,(n=n||{}).default,n),s=Object.getOwnPropertyDescriptor(this,t);this["__"+t]=o;var u=s?s.get:function(){return o.value},c=s?s.set:function(t){o.value=t};return delete this[t],Object.defineProperty(this,t,{get:u,set:c,enumerable:!0,configurable:!0}),o.bind("change",(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.trigger.apply(r,i(["change",t],e)),r.trigger.apply(r,i(["change:"+t],e))})),o},e.prototype.setData=function(t){var e=this.getFields();for(var n in t)e.indexOf(n)>-1&&(this[n]=t[n])},e.prototype.getData=function(){for(var t={},e=0,n=this.getFields();e<n.length;e++){var r=n[e],o=this["__"+r];null!=this[r]&&o&&(t[r]=o.getData())}return t},e.prototype.getFields=function(){return this.__fields__},e.prototype.getField=function(t){return this["__"+t]},e.prototype.bindToFields=function(t,e,n){for(var r=0,o=e;r<o.length;r++){var i=this["__"+o[r]];i&&i.bind(t,n)}},e.prototype.setLastData=function(){this._lastData=this.getData()},e.prototype.revert=function(){this.setData(this._lastData)},e.prototype.isModified=function(){for(var t=this._lastData,e=this.getData(),n=0,r=this.getFields();n<r.length;n++){var o=r[n];if(e[o]!=t[o])return!0}return!1},e}(s.EventDispatcher);e.ModelAbstract=u},1624:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanField=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this.value;this._value=!!t,this.trigger("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e}(n(8420).Field);e.BooleanField=i},8014:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.EmailField=void 0;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._emailRegex=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,e}return o(e,t),e.prototype.validate=function(){return t.prototype.validate.call(this),null==this._value||this._emailRegex.test(this._value)||this._errors.push("Please enter a valid email address"),this._errors},e}(n(8420).Field);e.EmailField=i},8420:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Field=e.field=void 0;var i=n(8294);e.field=function(t,e){return void 0===t&&(t=s),void 0===e&&(e={}),function(n,r){null==n.__fields__&&(n.__fields__=[]),-1==n.__fields__.indexOf(r)&&n.__fields__.push(r),Object.defineProperty(n,"__"+r+"__",{get:function(){return[t,e]},set:function(t){},enumerable:!1,configurable:!0})}};var s=function(t){function e(e,n,r){var o=t.call(this)||this;return o.model=e,o.config=r,o.value=n,o._errors=[],o}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this._value;this._value=t,this.trigger("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e.prototype.getData=function(){return this.value},e.prototype.validate=function(){return this._errors=[],1==this.config.required&&null==this._value&&this._errors.push("This field is required."),this._errors},e}(i.EventDispatcher);e.Field=s},2030:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FloatField=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this.value;"string"==typeof t&&(t=parseFloat(t)),"number"==typeof t&&this.config.toFixed&&(t=parseFloat(t.toFixed(this.config.toFixed))),this._value=t,this.trigger("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e}(n(8420).Field);e.FloatField=i},3985:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.PositiveIntegerField=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this.value;null!=t?("string"==typeof t&&(t=parseInt(t)),t<=0&&(t=0),this._value=t,this.trigger("change",{oldValue:e,value:t})):this._value=null},enumerable:!1,configurable:!0}),e}(n(8420).Field);e.PositiveIntegerField=i},2956:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.StringField=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this.value;this._value=""+t,this.trigger("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e}(n(8420).Field);e.StringField=i},6586:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fields=e.field=e.Collection=e.Model=e.DataModel=void 0;var r=n(8420);Object.defineProperty(e,"field",{enumerable:!0,get:function(){return r.field}});var o=n(1624),i=n(8014),s=n(2030),a=n(3985),u=n(2956),c=n(6297);Object.defineProperty(e,"DataModel",{enumerable:!0,get:function(){return c.DataModel}});var l=n(9143);Object.defineProperty(e,"Model",{enumerable:!0,get:function(){return l.Model}});var p=n(9072);Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return p.Collection}});var f={Field:r.Field,BooleanField:o.BooleanField,EmailField:i.EmailField,FloatField:s.FloatField,PositiveIntegerField:a.PositiveIntegerField,StringField:u.StringField};e.fields=f},8513:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Promise=e.noop=e.EPromiseStates=void 0;var i,s=n(8294);!function(t){t[t.PENDING=0]="PENDING",t[t.FULFILLED=1]="FULFILLED",t[t.REJECTED=2]="REJECTED"}(i=e.EPromiseStates||(e.EPromiseStates={})),e.noop=function(t){return t};var a=function(t){function e(e){var n=t.call(this)||this;n._result=null,n._state=i.PENDING,n.promiseClass=Object.getPrototypeOf(n).constructor;try{e(n._resolve.bind(n),n._reject.bind(n))}catch(t){n._reject(t)}return n}return o(e,t),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e.defer=function(){var t=new e((function(t,e){}));return{promise:t,resolve:t._resolve.bind(t),reject:t._reject.bind(t)}},e.resolve=function(t){return new e((function(n){t instanceof e?t.then((function(t){n(t)})):n(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){for(var n=e.defer(),r=!0,o=0,s=t;o<s.length;o++){var a=s[o];if(a.state==i.PENDING)r=!1,a.once("fulfilled",(function(r){e.poolResults(t,n)})),a.once("rejected",(function(t){n.reject(t)}));else if(a.state==i.REJECTED){n.reject(a.result),r=!1;break}}return r&&e.poolResults(t,n),n.promise},e.poolResults=function(t,e){for(var n=!0,r=[],o=0,s=t;o<s.length;o++){var a=s[o];if(a.state===i.REJECTED){e.reject(a.result);break}a.state===i.PENDING&&(n=!1),r.push(a.result)}n&&e.resolve(r)},e.race=function(t){for(var n=e.defer(),r=0,o=t;r<o.length;r++){var i=o[r];i.once("fulfilled",(function(t){n.resolve(t)})),i.once("rejected",(function(t){n.reject(t)}))}return n.promise},e.prototype.then=function(t,e){var n=this;return new this.promiseClass((function(r,o){n.state===i.FULFILLED?t&&r(t(n.result)):n.state===i.REJECTED?e&&o(e(n.result)):(n.once("fulfilled",(function(e){t&&r(t(e))})),n.once("rejected",(function(t){e&&o(e(t))})))}))},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.finally=function(t){return this.then((function(e){return t(e)}),(function(e){return t(e)}))},e.prototype._resolve=function(t){this.state===i.PENDING&&(this._state=i.FULFILLED,this._result=t,this.trigger("fulfilled",t))},e.prototype._reject=function(t){this.state===i.PENDING&&(this._state=i.REJECTED,this._result=t,this.trigger("rejected",t))},e}(s.EventDispatcher);e.Promise=a},7754:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},a=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=e.AttributableNodes=e.BlockNode=e.Node=e.TokenType=e.BlockType=void 0;var u,c,l=n(4843),p=n(3276),f=n(1008);!function(t){t[t.BRACE=0]="BRACE",t[t.BRACKET=1]="BRACKET",t[t.PAREN=2]="PAREN",t[t.STATEMENT=3]="STATEMENT"}(u=e.BlockType||(e.BlockType={})),function(t){t[t.WHITESPACE=0]="WHITESPACE",t[t.TYPE_INT=1]="TYPE_INT",t[t.TYPE_UINT=2]="TYPE_UINT",t[t.TYPE_FLOAT=3]="TYPE_FLOAT",t[t.TYPE_STRING=4]="TYPE_STRING",t[t.RETURN=5]="RETURN",t[t.NOT=6]="NOT",t[t.OF=7]="OF",t[t.IN=8]="IN",t[t.FOR=9]="FOR",t[t.IF=10]="IF",t[t.ELSE_IF=11]="ELSE_IF",t[t.ELSE=12]="ELSE",t[t.NAME=13]="NAME",t[t.L_BRACE=14]="L_BRACE",t[t.R_BRACE=15]="R_BRACE",t[t.L_BRACKET=16]="L_BRACKET",t[t.R_BRACKET=17]="R_BRACKET",t[t.L_PAREN=18]="L_PAREN",t[t.R_PAREN=19]="R_PAREN",t[t.TILDE=20]="TILDE",t[t.PERIOD=21]="PERIOD",t[t.COMMA=22]="COMMA",t[t.COLON=23]="COLON",t[t.SEMI_COLON=24]="SEMI_COLON",t[t.STRING_LITERAL=25]="STRING_LITERAL",t[t.NUMBER_LITERAL=26]="NUMBER_LITERAL",t[t.BOOLEAN_LITERAL=27]="BOOLEAN_LITERAL",t[t.NULL_LITERAL=28]="NULL_LITERAL",t[t.STRICT_EQUALS=29]="STRICT_EQUALS",t[t.STRICT_NOT_EQUALS=30]="STRICT_NOT_EQUALS",t[t.EQUALS=31]="EQUALS",t[t.NOT_EQUALS=32]="NOT_EQUALS",t[t.GREATER_THAN_EQUAL=33]="GREATER_THAN_EQUAL",t[t.LESS_THAN_EQUAL=34]="LESS_THAN_EQUAL",t[t.GREATER_THAN=35]="GREATER_THAN",t[t.LESS_THAN=36]="LESS_THAN",t[t.ASSIGN=37]="ASSIGN",t[t.AND=38]="AND",t[t.OR=39]="OR",t[t.ADD=40]="ADD",t[t.SUBTRACT=41]="SUBTRACT",t[t.MULTIPLY=42]="MULTIPLY",t[t.DIVIDE=43]="DIVIDE",t[t.ADD_ASSIGN=44]="ADD_ASSIGN",t[t.SUBTRACT_ASSIGN=45]="SUBTRACT_ASSIGN",t[t.MULTIPLY_ASSIGN=46]="MULTIPLY_ASSIGN",t[t.DIVIDE_ASSIGN=47]="DIVIDE_ASSIGN",t[t.EXCLAMATION_POINT=48]="EXCLAMATION_POINT",t[t.ELEMENT_REFERENCE=49]="ELEMENT_REFERENCE",t[t.ELEMENT_ATTRIBUTE=50]="ELEMENT_ATTRIBUTE",t[t.ELEMENT_STYLE=51]="ELEMENT_STYLE",t[t.ELEMENT_QUERY=52]="ELEMENT_QUERY"}(c=e.TokenType||(e.TokenType={}));var h=[{type:c.WHITESPACE,pattern:/^[\s\n\r]+/},{type:c.TYPE_INT,pattern:/^int+/},{type:c.TYPE_UINT,pattern:/^uint+/},{type:c.TYPE_FLOAT,pattern:/^float+/},{type:c.TYPE_STRING,pattern:/^string+/},{type:c.BOOLEAN_LITERAL,pattern:/^(true|false)/},{type:c.NULL_LITERAL,pattern:/^null/},{type:c.RETURN,pattern:/^return\s/},{type:c.NOT,pattern:/^not\s/},{type:c.OF,pattern:/^of\s/},{type:c.IN,pattern:/^in\s/},{type:c.FOR,pattern:/^for\s?(?=\()/},{type:c.IF,pattern:/^if\s?(?=\()/},{type:c.ELSE_IF,pattern:/^else if\s?(?=\()/},{type:c.ELSE,pattern:/^else\s?(?=\{)/},{type:c.ELEMENT_ATTRIBUTE,pattern:/^\.?@[_a-zA-Z0-9]*/},{type:c.ELEMENT_STYLE,pattern:/^\.?\$[a-zA-Z0-9]*/},{type:c.ELEMENT_REFERENCE,pattern:/^#[-_a-zA-Z0-9]*/},{type:c.ELEMENT_QUERY,pattern:/^\?\(([#.\[\]:,=\-_a-zA-Z0-9*\s]*[\]_a-zA-Z0-9*])\)/},{type:c.NAME,pattern:/^[_a-zA-Z][_a-zA-Z0-9]*/},{type:c.NUMBER_LITERAL,pattern:/^-?\d+(?:\.\d+)?(?:e[+\-]?\d+)?/i},{type:c.L_BRACE,pattern:/^{/},{type:c.R_BRACE,pattern:/^}/},{type:c.L_BRACKET,pattern:/^\[/},{type:c.R_BRACKET,pattern:/^]/},{type:c.L_PAREN,pattern:/^\(/},{type:c.R_PAREN,pattern:/^\)/},{type:c.TILDE,pattern:/^~/},{type:c.PERIOD,pattern:/^\./},{type:c.COMMA,pattern:/^,/},{type:c.EQUALS,pattern:/^==/},{type:c.NOT_EQUALS,pattern:/^!=/},{type:c.GREATER_THAN,pattern:/^>/},{type:c.LESS_THAN,pattern:/^</},{type:c.GREATER_THAN_EQUAL,pattern:/^>=/},{type:c.LESS_THAN_EQUAL,pattern:/^<=/},{type:c.COLON,pattern:/^:/},{type:c.SEMI_COLON,pattern:/^;/},{type:c.STRING_LITERAL,pattern:/^"([^"]*)"/},{type:c.STRING_LITERAL,pattern:/^'([^']*)'/},{type:c.AND,pattern:/^&&/},{type:c.OR,pattern:/^\|\|/},{type:c.ADD_ASSIGN,pattern:/^\+=/},{type:c.SUBTRACT_ASSIGN,pattern:/^-=/},{type:c.MULTIPLY_ASSIGN,pattern:/^\*=/},{type:c.DIVIDE_ASSIGN,pattern:/^\/=/},{type:c.ADD,pattern:/^\+/},{type:c.SUBTRACT,pattern:/^-/},{type:c.MULTIPLY,pattern:/^\*/},{type:c.DIVIDE,pattern:/^\//},{type:c.ASSIGN,pattern:/^=/},{type:c.EXCLAMATION_POINT,pattern:/^!/}],d=function(){function t(){this.requiresPrep=!1,this.nodeCache={}}return t.prototype.isPreparationRequired=function(){if(this.requiresPrep)return!0;if(void 0!==this._isPreparationRequired)return this._isPreparationRequired;for(var t=0,e=this.getChildNodes();t<e.length;t++)if(e[t].isPreparationRequired())return this._isPreparationRequired=!0,!0;return!1},t.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:r=0,o=this.getChildNodes(),i.label=1;case 1:return r<o.length?[4,o[r].prepare(t,e,n)]:[3,4];case 2:i.sent(),i.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype._getChildNodes=function(){return[]},t.prototype.getChildNodes=function(){return void 0===this.childNodes&&(this.childNodes=this._getChildNodes()),this.childNodes},t.prototype.findChildrenByType=function(t){return this.findChildrenByTypes([t])},t.prototype.findChildrenByTypes=function(t,e){if(void 0===e&&(e=null),null!==e&&this.nodeCache[e])return this.nodeCache[e];for(var n=[],r=0,o=this.getChildNodes();r<o.length;r++)for(var i=o[r],s=0,a=t;s<a.length;s++){var u=a[s];i instanceof u&&n.push(i);var c=i.findChildrenByType(u);n.push.apply(n,c)}return null!==e&&(this.nodeCache[e]=n),n},t}();e.Node=d;var y=function(t){function e(e){var n=t.call(this)||this;return n.statements=e,n}return o(e,t),e.prototype._getChildNodes=function(){return a([],this.statements)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:r=null,o=0,i.label=1;case 1:return o<this.statements.length?[4,this.statements[o].evaluate(t,e,n)]:[3,4];case 2:r=i.sent(),i.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e}(d);e.BlockNode=y;var b=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=i.sent(),[4,this.right.evaluate(t,e,n)];case 2:switch(o=i.sent(),this.type){case c.EQUALS:return[2,r===o];case c.NOT_EQUALS:return[2,r!==o];case c.GREATER_THAN:return[2,r>o];case c.LESS_THAN:return[2,r<o];case c.GREATER_THAN_EQUAL:return[2,r>=o];case c.LESS_THAN_EQUAL:return[2,r<=o]}return[2]}}))}))},e.match=function(t){return[c.EQUALS,c.NOT_EQUALS,c.GREATER_THAN,c.LESS_THAN,c.GREATER_THAN_EQUAL,c.LESS_THAN_EQUAL].indexOf(t[0].type)>-1},e.parse=function(t,n,r){return r.splice(0,1),new e(t,I.processTokens(I.getNextStatementTokens(r)),n.type)},e}(d),v=function(t){function e(e,n){var r=t.call(this)||this;return r.condition=e,r.block=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.condition,this.block]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:return[4,this.condition.evaluate(t,e,n)];case 1:return[2,(r=o.sent())instanceof l.WrappedArray?r.length>0:!!r]}}))}))},e}(d),g=function(t){function e(e){var n=t.call(this)||this;return n.nodes=e,n}return o(e,t),e.prototype._getChildNodes=function(){return a([],this.nodes)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:r=0,o=this.nodes,s.label=1;case 1:return r<o.length?[4,(i=o[r]).evaluate(t,e,n)]:[3,5];case 2:return s.sent()?[4,i.block.evaluate(t,e,n)]:[3,4];case 3:return[2,s.sent()];case 4:return r++,[3,1];case 5:return[2]}}))}))},e.parseConditional=function(t){if(-1===[c.IF,c.ELSE_IF].indexOf(t[0].type))throw SyntaxError("Invalid Syntax");return t.splice(0,1),new v(I.processTokens(I.getBlockTokens(t,null)[0]),I.processTokens(I.getBlockTokens(t,null)[0]))},e.parse=function(t,n,r){if(r[1].type!==c.L_PAREN)throw SyntaxError("If statement needs to be followed by a condition encased in parenthesis.");var o=[];for(o.push(e.parseConditional(r));r.length>0&&c.ELSE_IF===r[0].type;)o.push(e.parseConditional(r));return r.length>0&&c.ELSE===r[0].type&&(r.splice(0,1),o.push(new v(new O(!0),I.processTokens(I.getBlockTokens(r,null)[0])))),new e(o)},e}(d),_=function(t){function e(e,n,r){var o=t.call(this)||this;return o.variable=e,o.list=n,o.block=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.variable,this.list,this.block]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:return[4,this.variable.evaluate(t,e,n)];case 1:return r=s.sent(),[4,this.list.evaluate(t,e,n)];case 2:o=s.sent(),i=0,s.label=3;case 3:return i<o.length?(t.set(r,o[i]),[4,this.block.evaluate(t,e,n)]):[3,6];case 4:s.sent(),s.label=5;case 5:return i++,[3,3];case 6:return[2,null]}}))}))},e.parse=function(t,n,r){if(r[1].type!==c.L_PAREN)throw SyntaxError("Syntax error: Missing (");if(r[3].type!==c.OF)throw SyntaxError("Syntax error: Missing of");r.splice(0,1);var o=I.getNextStatementTokens(r),i=o.splice(0,1)[0];o.splice(0,1);var s=I.processTokens(o),a=I.processTokens(I.getBlockTokens(r,null)[0]);return new e(new O(i.value),s,a)},e}(d),w=function(t){function e(e){var n=t.call(this)||this;return n.toFlip=e,n}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return[4,this.toFlip.evaluate(t,e,n)];case 1:return[2,!r.sent()]}}))}))},e.prototype._getChildNodes=function(){return[this.toFlip]},e.parse=function(t,n,r){var o;return r.splice(0,1),o=r[0].type===c.L_PAREN?I.getNextStatementTokens(r):I.consumeTypes(r,[c.BOOLEAN_LITERAL,c.NUMBER_LITERAL,c.STRING_LITERAL,c.NAME,c.PERIOD]),new e(I.processTokens(o))},e}(d),m=function(t){function e(e,n,r){void 0===r&&(r=!1);var o=t.call(this)||this;return o.left=e,o.right=n,o.flip=r,o}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=s.sent(),[4,this.right.evaluate(t,e,n)];case 2:return o=s.sent(),i=o.indexOf(r)>-1,this.flip&&(i=!i),[2,i]}}))}))},e.prototype._getChildNodes=function(){return[this.left,this.right]},e.match=function(t){return t[0].type===c.IN||t[0].type===c.NOT&&t[1].type===c.IN},e.parse=function(t,n,r){var o=r[0].type===c.NOT;o&&r.splice(0,1),r.splice(0,1);var i=I.getNextStatementTokens(r,!1,!1,!0);return new e(t,I.processTokens(i),o)},e}(d),O=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.value]}))}))},e}(d),A=function(t){function e(e){var n=t.call(this,e)||this;return n.value=e,n.value="true"===e,n}return o(e,t),e}(O),E=function(t){function e(e){var n=t.call(this,e)||this;return n.value=e,n.value.indexOf(".")>-1?n.value=parseFloat(n.value):n.value=parseInt(n.value),n}return o(e,t),e}(O),T=function(t){function e(e,n){var r=t.call(this)||this;return r.fnc=e,r.args=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.fnc,this.args]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:return r=t,this.fnc instanceof j?[4,this.fnc.scope.evaluate(t,e,n)]:[3,2];case 1:r=s.sent(),s.label=2;case 2:return[4,this.args.evaluate(t,e,n)];case 3:return o=s.sent(),[4,this.fnc.evaluate(t,e,n)];case 4:return[2,(i=s.sent()).call.apply(i,a([r.wrapped||r],o))]}}))}))},e}(d),S=function(t){function e(e){var n=t.call(this)||this;return n.args=e,n}return o(e,t),e.prototype._getChildNodes=function(){return a([],this.args)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c;return s(this,(function(s){switch(s.label){case 0:r=[],o=0,i=this.args,s.label=1;case 1:return o<i.length?(a=i[o],c=(u=r).push,[4,a.evaluate(t,e,n)]):[3,4];case 2:c.apply(u,[s.sent()]),s.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e}(d),j=function(t){function e(e,n){var r=t.call(this)||this;return r.scope=e,r.name=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.scope,this.name]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c,h,d,y,b;return s(this,(function(s){switch(s.label){case 0:return r=[],o=[],this.scope instanceof L?[4,this.scope.evaluate(t,e,n)]:[3,2];case 1:return r=s.sent(),[3,4];case 2:return[4,this.scope.evaluate(t,e,n)];case 3:(i=s.sent())instanceof f.TagList?r=i:r.push(i),s.label=4;case 4:a=0,u=r,s.label=5;case 5:return a<u.length?((c=u[a])instanceof p.DOMObject&&(c=c.scope),c?[3,7]:(h=Error,d='Cannot access "',[4,this.name.evaluate(t,e,n)])):[3,10];case 6:throw h.apply(void 0,[d+s.sent()+'" of undefined.']);case 7:return[4,this.name.evaluate(t,e,n)];case 8:y=s.sent(),b=c.get(y,!1),o.push(b instanceof l.Scope&&b.wrapped||b),s.label=9;case 9:return a++,[3,5];case 10:return[2,1===o.length?o[0]:o]}}))}))},e}(d),P=function(t){function e(e){var n=t.call(this)||this;return n.name=e,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.name]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:return[4,this.name.evaluate(t,e,n)];case 1:return r=i.sent(),[2,(o=t.get(r))instanceof l.Scope&&o.wrapped||o]}}))}))},e}(d),x=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=i.sent(),[4,this.right.evaluate(t,e,n)];case 2:switch(o=i.sent(),this.type){case c.ADD:return[2,r+o];case c.SUBTRACT:return[2,r-o];case c.MULTIPLY:return[2,r*o];case c.DIVIDE:return[2,r/o]}return[2]}}))}))},e.match=function(t){return[c.ADD,c.SUBTRACT,c.MULTIPLY,c.DIVIDE].indexOf(t[0].type)>-1},e.parse=function(t,n,r){return r.splice(0,1),new e(t,I.processTokens(I.getNextStatementTokens(r)),n.type)},e}(d),R=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c,l,f,h;return s(this,(function(s){switch(s.label){case 0:return r=[],[4,this.left.name.evaluate(t,e,n)];case 1:return o=s.sent(),this.left instanceof j?[4,this.left.scope.evaluate(t,e,n)]:[3,3];case 2:return i=s.sent(),this.left.scope instanceof L?r.push.apply(r,i):r.push(i),[3,6];case 3:return(this.left instanceof D||this.left instanceof M)&&this.left.elementRef?[4,this.left.elementRef.evaluate(t,e,n)]:[3,5];case 4:return r=s.sent(),[3,6];case 5:r.push(t),s.label=6;case 6:a=[],u=0,c=r,s.label=7;case 7:return u<c.length?(l=c[u])instanceof p.DOMObject?[4,this.handleDOMObject(o,e,l,n)]:[3,9]:[3,13];case 8:return s.sent(),[3,12];case 9:return l.$wrapped&&l.$scope&&(l=l.$scope),[4,this.left.evaluate(l,e,n)];case 10:return f=s.sent(),[4,this.right.evaluate(l,e,n)];case 11:h=s.sent(),f=f instanceof Array?this.handleArray(o,f,h,l):Number.isFinite(f)?this.handleNumber(o,f,h,l):this.handleString(o,f,h,l),a.push(f),s.label=12;case 12:return u++,[3,7];case 13:return[2,a.length>1?a:a[0]]}}))}))},e.prototype.handleNumber=function(t,e,n,r){switch(null===n||Number.isFinite(n)||(n=parseFloat(""+n)),e=e,n=n,this.type){case c.ASSIGN:e=n;break;case c.ADD_ASSIGN:e+=n;break;case c.SUBTRACT_ASSIGN:e-=n;break;case c.MULTIPLY_ASSIGN:e*=n;break;case c.DIVIDE_ASSIGN:e/=n}return r.set(t,e),e},e.prototype.handleString=function(t,e,n,r){switch(this.type){case c.ASSIGN:e=n;break;case c.ADD_ASSIGN:e=""+e+n;break;case c.SUBTRACT_ASSIGN:e.replace(n,"");break;case c.MULTIPLY_ASSIGN:e*=n;break;case c.DIVIDE_ASSIGN:e/=n}return r.set(t,e),e},e.prototype.handleDOMObject=function(t,e,n,r){return i(this,void 0,void 0,(function(){var o,i;return s(this,(function(s){switch(s.label){case 0:return o=n.scope.get(t),[4,this.right.evaluate(n.scope,e,r)];case 1:return i=s.sent(),o instanceof Array?[2,this.handleArray(t,o,i,n.scope)]:[2,this.handleString(t,o,i,n.scope)]}}))}))},e.prototype.handleArray=function(t,e,n,r){switch(n instanceof Array||(n=[n]),this.type){case c.ASSIGN:e.splice(0,e.length),e.push.apply(e,n);break;case c.ADD_ASSIGN:e.push.apply(e,n);break;case c.SUBTRACT_ASSIGN:for(var o=e.length-1;o>=0;o--)n.indexOf(e[o])>-1&&(e.splice(o,1),o++);break;case c.TILDE:for(var i=0,s=n;i<s.length;i++){var a=s[i],u=e.indexOf(a);u>-1?e.splice(u,1):e.push(a)}}return r.trigger("change:"+t),e},e.match=function(t){return[c.ASSIGN,c.ADD_ASSIGN,c.SUBTRACT_ASSIGN,c.MULTIPLY_ASSIGN,c.DIVIDE_ASSIGN,c.TILDE].indexOf(t[0].type)>-1},e.parse=function(t,n,r){if(!(t instanceof P||t instanceof j||t instanceof D||t instanceof M))throw SyntaxError("Invalid assignment syntax near "+I.toCode(r.splice(0,10)));r.splice(0,1);var o=I.getNextStatementTokens(r,!1,!1,!0);return new e(t,I.processTokens(o),n.type)},e}(d),k=function(t){function e(e,n,r){void 0===r&&(r=null);var o=t.call(this)||this;return o.object=e,o.index=n,o.indexTwo=r,o}return o(e,t),e.prototype._getChildNodes=function(){var t=[this.object,this.index];return this.indexTwo&&t.push(this.indexTwo),t},e.prototype.negativeIndex=function(t,e){return Number.isFinite(e)&&e<0?t.length+e:e},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c,l,p,f;return s(this,(function(s){switch(s.label){case 0:return[4,this.object.evaluate(t,e,n)];case 1:return r=s.sent(),i=this.negativeIndex,a=[r],[4,this.index.evaluate(t,e,n)];case 2:return o=i.apply(this,a.concat([s.sent()])),Number.isFinite(o)&&this.indexTwo?(c=this.negativeIndex,l=[r],[4,this.indexTwo.evaluate(t,e,n)]):[3,4];case 3:for(u=c.apply(this,l.concat([s.sent()])),p=[],f=o;f<=u;f++)p.push(r[f]);return[2,p];case 4:return[2,r[o]]}}))}))},e.match=function(t){return t[0].type===c.L_BRACKET},e.parse=function(t,n,r){for(var o=[],i=0,s=I.getBlockTokens(r,c.COLON);i<s.length;i++){var a=s[i];o.push(I.processTokens(a))}return new e(t,o[0],o.length>1&&o[1])},e}(d),C=function(t){function e(e){var n=t.call(this)||this;return n.values=e,n}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,a([void 0],this.values)))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c;return s(this,(function(s){switch(s.label){case 0:r=new l.WrappedArray,o=0,i=this.values,s.label=1;case 1:return o<i.length?(a=i[o],c=(u=r).push,[4,a.evaluate(t,e,n)]):[3,4];case 2:c.apply(u,[s.sent()]),s.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e.match=function(t){return t[0].type===c.L_BRACKET},e.parse=function(t,n,r){for(var o=[],i=0,s=I.getBlockTokens(r);i<s.length;i++){var a=s[i];o.push(I.processTokens(a))}return new e(o)},e}(d),N=function(t){function e(e,n){var r=t.call(this)||this;return r.keys=e,r.values=n,r}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,a([void 0],this.values)))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,a,u,c,p;return s(this,(function(s){switch(s.label){case 0:r=new l.Scope,o=0,s.label=1;case 1:return o<this.values.length?(i=this.keys[o],a=this.values[o],c=(u=r).set,[4,i.evaluate(t,e,n)]):[3,5];case 2:return p=[s.sent()],[4,a.evaluate(t,e,n)];case 3:c.apply(u,p.concat([s.sent()])),s.label=4;case 4:return o++,[3,1];case 5:return[2,r]}}))}))},e.match=function(t){return t[0].type===c.L_BRACE},e.parse=function(t,n,r){for(var o=I.getNextStatementTokens(r),i=[],s=[];o.length>0;){var a=I.getTokensUntil(o,c.COLON,!1);if(o[0].type!==c.COLON)throw Error("Invalid object literal syntax. Expecting :");o.splice(0,1);var l=I.getTokensUntil(o,c.COMMA,!0,!1,!0,{type:u.STATEMENT,open:null,close:null,openCharacter:null,closeCharacter:null});i.push(I.processTokens(a)),s.push(I.processTokens(l))}return new e(i,s)},e}(d),L=function(t){function e(e){var n=t.call(this)||this;return n.query=e,n.requiresPrep=!0,n}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:return(r=n)?[3,2]:[4,e.getTagForScope(t)];case 1:r=o.sent(),o.label=2;case 2:return n=r,[4,e.get(this.query,!0,n)];case 3:return[2,o.sent()]}}))}))},e.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:return(r=n)?[3,2]:[4,e.getTagForScope(t)];case 1:r=o.sent(),o.label=2;case 2:return n=r,[4,e.get(this.query,!0,n)];case 3:return o.sent(),[2]}}))}))},e}(d),D=function(t){function e(e,n){var r=t.call(this)||this;return r.elementRef=e,r.attr=n,r.requiresPrep=!0,r}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new O("@"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o=this;return s(this,(function(i){switch(i.label){case 0:return this.elementRef?[4,this.elementRef.evaluate(t,e,n)]:[3,2];case 1:return r=i.sent(),[3,3];case 2:if(!n)return[2];r=new f.TagList(n),i.label=3;case 3:return 1===r.length?[2,r[0].scope.get("@"+this.attributeName)]:[2,r.map((function(t){return t.scope.get("@"+o.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,n)]:[3,7];case 1:return s.sent(),[4,this.elementRef.evaluate(t,e,n)];case 2:r=s.sent(),o=0,i=r,s.label=3;case 3:return o<i.length?[4,i[o].watchAttribute(this.attributeName)]:[3,6];case 4:s.sent(),s.label=5;case 5:return o++,[3,3];case 6:return[3,9];case 7:return n?[4,n.watchAttribute(this.attributeName)]:[3,9];case 8:s.sent(),s.label=9;case 9:return[2]}}))}))},e}(d),M=function(t){function e(e,n){var r=t.call(this)||this;return r.elementRef=e,r.attr=n,r.requiresPrep=!0,r}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new O("$"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o=this;return s(this,(function(i){switch(i.label){case 0:return this.elementRef?[4,this.elementRef.evaluate(t,e,n)]:[3,2];case 1:return r=i.sent(),[3,3];case 2:if(!n)return[2];r=new f.TagList(n),i.label=3;case 3:return 1===r.length?[2,r[0].scope.get("$"+this.attributeName)]:[2,r.map((function(t){return t.scope.get("$"+o.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return s(this,(function(s){switch(s.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,n)]:[3,7];case 1:return s.sent(),[4,this.elementRef.evaluate(t,e,n)];case 2:r=s.sent(),o=0,i=r,s.label=3;case 3:return o<i.length?[4,i[o].watchStyle(this.attributeName)]:[3,6];case 4:s.sent(),s.label=5;case 5:return o++,[3,3];case 6:return[3,9];case 7:return n?[4,n.watchStyle(this.attributeName)]:[3,9];case 8:s.sent(),s.label=9;case 9:return[2]}}))}))},e}(d);e.AttributableNodes=[P,j,D];var I=function(){function t(e){this.code=e,t.cache[e]?this.rootNode=t.cache[e]:(this.parse(),t.cache[e]=this.rootNode)}return t.prototype.parse=function(){var e=t.tokenize(this.code);this.rootNode=t.processTokens(e)},t.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return[4,this.rootNode.evaluate(t,e,n)];case 1:return[2,r.sent()]}}))}))},t.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return this.rootNode.isPreparationRequired()?[4,this.rootNode.prepare(t,e,n)]:[2];case 1:return[2,r.sent()]}}))}))},t.prototype.bindToScopeChanges=function(t,e,n,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o,i,a,u,c;return s(this,(function(s){switch(s.label){case 0:o=0,i=this.rootNode.findChildrenByTypes([P,j,D],"ScopeMemberNodes"),s.label=1;case 1:return o<i.length?(a=i[o],u=t,a instanceof j?[4,a.scope.evaluate(t,n)]:[3,3]):[3,8];case 2:return u=s.sent(),[3,5];case 3:return a instanceof D&&a.elementRef?[4,a.elementRef.evaluate(t,n,r)]:[3,5];case 4:u=s.sent()[0].scope,s.label=5;case 5:return[4,a.name.evaluate(t,n,r)];case 6:c=s.sent(),u.bind("change:"+c,e),s.label=7;case 7:return o++,[3,1];case 8:return[2]}}))}))},t.tokenize=function(t){var e,n=[];if(!t||0===t.length)return n;do{e=!1;for(var r=0,o=h;r<o.length;r++){var i=o[r],s=i.pattern.exec(t);if(s){n.push({type:i.type,value:s[s.length-1]}),t=t.substring(s[0].length),e=!0;break}}}while(t.length>0&&e);return n},t.stripWhiteSpace=function(t){for(var e=0;e<t.length;e++)t[e].type===c.WHITESPACE&&(t.splice(e,1),e--);return t},t.processTokens=function(e){var n=[],r=null,o=0;for(t.stripWhiteSpace(e);e.length>0&&!(++o>1e3);){e[0].type===c.RETURN&&e.splice(0,1);var i=e[0];if(i.type===c.NAME)r=new P(new O(i.value)),e.splice(0,1);else if(i.type===c.IF)r=g.parse(r,i,e),n.push(r),r=null;else if(i.type===c.FOR)r=_.parse(r,i,e),n.push(r),r=null;else if(i.type===c.STRING_LITERAL)r=new O(i.value),e.splice(0,1);else if(i.type===c.NUMBER_LITERAL)r=new E(i.value),e.splice(0,1);else if(e[0].type===c.ELEMENT_REFERENCE)r=new L(e[0].value),e.splice(0,1);else if(e[0].type===c.ELEMENT_QUERY)r=new L(e[0].value),e.splice(0,1);else if(e[0].type===c.L_BRACKET)r=r?k.parse(r,i,e):C.parse(r,i,e);else if(e[0].type===c.L_BRACE)r=N.parse(r,i,e);else if(e[0].type===c.ELEMENT_ATTRIBUTE)r=new D(r,e[0].value),e.splice(0,1);else if(e[0].type===c.ELEMENT_STYLE)r=new M(r,e[0].value),e.splice(0,1);else if(null!==r&&i.type===c.PERIOD&&e[1].type===c.NAME)r=new j(r,new O(e[1].value)),e.splice(0,2);else if(e[0].type===c.L_PAREN){for(var s=[],a=0,u=t.getBlockTokens(e);a<u.length;a++){var l=u[a];s.push(t.processTokens(l))}r=r?new T(r,new S(s)):new y(s)}else if(e[0].type===c.SEMI_COLON)r&&n.push(r),r=null,e.splice(0,1);else if(m.match(e))r=m.parse(r,i,e);else if(b.match(e))r=b.parse(r,i,e);else if(x.match(e))r=x.parse(r,i,e);else if(R.match(e))r=R.parse(r,i,e);else if(e[0].type===c.WHITESPACE)e.splice(0,1);else if(e[0].type===c.BOOLEAN_LITERAL)r=new A(e[0].value),e.splice(0,1);else if(e[0].type===c.NULL_LITERAL)r=new O(null),e.splice(0,1);else{if(e[0].type!==c.EXCLAMATION_POINT){var p=t.toCode(e,10);throw Error("Syntax Error. Near "+p)}r=w.parse(r,e[0],e)}}return r&&n.push(r),new y(n)},t.toCode=function(t,e){var n="";e=e||t.length;for(var r=0;r<e&&t[r];r++)n+=t[r].value;return n},t.getBlockInfo=function(t){var e,n,r,o,i,s=t[0];switch(e=s.type===c.L_PAREN?u.PAREN:s.type===c.L_BRACE?u.BRACE:s.type===c.L_BRACKET?u.BRACKET:u.STATEMENT){case u.PAREN:n=c.L_PAREN,r=c.R_PAREN,o="(",i=")";break;case u.BRACE:n=c.L_BRACE,r=c.R_BRACE,o="{",i="}";break;case u.BRACKET:n=c.L_BRACKET,r=c.R_BRACKET,o="[",i="]";break;default:n=null,r=c.SEMI_COLON,o=null,i=";"}return{type:e,open:n,close:r,openCharacter:o,closeCharacter:i}},t.getNextStatementTokens=function(e,n,r,o){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1);var i=t.getBlockInfo(e);return r&&e[0].type===i.open&&e.splice(0,1),t.getTokensUntil(e,i.close,n,o)},t.getBlockTokens=function(e,n){void 0===n&&(n=c.COMMA);for(var r=t.getBlockInfo(e),o=0,i=[],s=[],a=0;a<e.length;a++){var u=e[a];if(u.type===r.open?(o+=1)>1&&s.push(u):u.type===r.close?(o-=1)>0&&s.push(u):null!==n&&u.type===n&&1==o?(i.push(s),s=[]):u.type!==c.WHITESPACE&&s.push(u),e.splice(0,1),a--,0===o)return s.length>0&&i.push(s),i}throw Error("Invalid Syntax, missing "+r.closeCharacter)},t.getTokensUntil=function(e,n,r,o,i,s){void 0===n&&(n=c.SEMI_COLON),void 0===r&&(r=!0),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===s&&(s=null);var a=[];s=s||t.getBlockInfo(e);for(var u=0,l=0,p=0,f=0;f<e.length;f++){var h=e[f];if(h.type===s.open&&0===f||(h.type===c.L_PAREN&&(u+=1),h.type===c.L_BRACE&&(l+=1),h.type===c.L_BRACKET&&(p+=1)),[n,c.R_BRACKET,c.R_BRACE,c.R_PAREN].indexOf(h.type)>-1)if(u>0&&h.type===c.R_PAREN)u-=1;else if(l>0&&h.type===c.R_BRACE)l-=1;else if(p>0&&h.type===c.R_BRACKET)p-=1;else{if(h.type===n&&0===u&&0===l&&0===p){o&&a.push(h),(o||r)&&h.type!==c.SEMI_COLON&&e.splice(0,1);break}if(h.type!==n||!(u>0||l>0||p>0)){if(i)break;throw Error("Invalid syntax, expecting "+n+".")}}a.push(h),e.splice(0,1),f--}return a},t.consumeTypes=function(t,e){for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r];if(!(e.indexOf(i.type)>-1))break;n.push(i)}return t.splice(0,n.length),n},t.cache={},t}();e.Tree=I},5092:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.AttributeState=void 0;var a,u=n(4264),c=n(8294);!function(t){t[t.Instantiated=0]="Instantiated",t[t.Deferred=1]="Deferred",t[t.Compiled=2]="Compiled",t[t.Setup=3]="Setup",t[t.Extracted=4]="Extracted",t[t.Connected=5]="Connected",t[t.Built=6]="Built"}(a=e.AttributeState||(e.AttributeState={}));var l=function(t){function e(e,n){var r=t.call(this)||this;return r.tag=e,r.attributeName=n,r.configure(),u.VisionHelper.window&&u.VisionHelper.window.Attributes.push(r),r}return o(e,t),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.defer=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Deferred),[2]}))}))},e.prototype.configure=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Instantiated),[2]}))}))},e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Compiled),[2]}))}))},e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Setup),[2]}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Extracted),[2]}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Connected),[2]}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.setState(a.Built),[2]}))}))},e.prototype.getAttributeValue=function(t){return void 0===t&&(t=null),this.tag.getRawAttributeValue(this.attributeName,t)},e.prototype.getAttributeBinding=function(t){return void 0===t&&(t=null),this.tag.getAttributeBinding(this.attributeName)||t},e.prototype.getAttributeModifiers=function(t){void 0===t&&(t=[]);var e=this.tag.getAttributeModifiers(this.attributeName);return e.length&&e||t},e.prototype.hasModifier=function(t){return this.getAttributeModifiers().indexOf(t)>-1},e.prototype.mutate=function(t){},Object.defineProperty(e.prototype,"value",{get:function(){return this.tag.element.getAttribute(this.attributeName)||""},set:function(t){this.tag.element.setAttribute(this.attributeName,t)},enumerable:!1,configurable:!0}),e.prototype.setState=function(t){var e=this._state;this._state=t,this.trigger("state",{state:t,previousState:e,attribute:this})},e.scoped=!1,e.canDefer=!0,e}(c.EventDispatcher);e.Attribute=l},44:function(t,e,n){var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.benchmarkResultsAll=e.benchmarkResultsMatch=e.benchmarkResults=e.benchmarkEnd=e.benchmarkStart=e.benchmark=e.BENCHMARKS=void 0;var o=n(4264);e.BENCHMARKS=[];var i={};function s(t){return(t=t instanceof Array?t:t&&[t]||[]).map((function(t){return t.toLowerCase()}))}function a(t,e){return(e=r([],s(e))).sort(),e.length&&(t+"."+e.join(".")).toLowerCase()||t&&t.toLowerCase()||"nopath"}function u(t,e,n,r){return void 0===r&&(r=null),(r instanceof Date||Number.isFinite(r))&&(!Number.isFinite(n)&&n instanceof Date&&(n=n.getTime()),!Number.isFinite(r)&&r instanceof Date&&(r=r.getTime()),n=r-n),{name:t,tags:e=s(e),path:a(t,e),time:n}}function c(t,e){for(var n in t=s(t),e=s(e))if(-1===t.indexOf(n))return!1;return!0}function l(t,n,r){return void 0===r&&(r=!1),function(i,a,c){if(o.VisionHelper.doBenchmark){var l=c.value;c.value=function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];t=i.__BENCHMARK_NAME__||t||a,n=s(n),(i.__BENCHMARK_NAME__||i.__BENCHMARK_TAGS__)&&(n.push(t||a),n.push.apply(n,i.__BENCHMARK_TAGS__));var p=new Date,f=l.apply(this,o),h=new Date,d=u(t,n,p,h);return e.BENCHMARKS.push(d),r&&console.log(d),f}}}}function p(t,e){o.VisionHelper.doBenchmark&&(t=a(t,e),i[t]=new Date)}function f(t,n,r){if(void 0===r&&(r=null),o.VisionHelper.doBenchmark){var s=a(t,n),c=u(t,n,i[s],new Date);if(e.BENCHMARKS.push(c),r||null===r&&c.time>10){var l=c.path?t+"["+c.path+"]":t;console.warn(l+" took "+c.time+"ms to complete.")}return p(t),c}}function h(t,n){if(void 0===n&&(n=null),o.VisionHelper.doBenchmark){for(var r=a(t,n),i=0,s=0,u=0,l=e.BENCHMARKS;u<l.length;u++){var p=l[u];(!n&&p.name===t||p.path===r||!t&&c(p.tags,n))&&(i++,s+=p.time)}return{name:t,calls:i,time:s,average:s/i}}}function d(t){if(o.VisionHelper.doBenchmark){for(var n={},r=0,i=0,s=0,a=e.BENCHMARKS;s<a.length;s++){var u=a[s];t.test(u.name)&&!n[u.name]&&(n[u.name]=h(u.name),r+=n[u.name].calls,i+=n[u.name].time)}return n.ALL={name:"ALL",calls:r,time:i,average:i/r},n}}function y(){if(o.VisionHelper.doBenchmark){for(var t={},n=0,r=0,i=0,s=e.BENCHMARKS;i<s.length;i++){var a=s[i];if(!t[a.name]){var u=a.path?a.name+"."+a.path:a.name;t[u]=h(a.name,a.tags),n+=t[u].calls,r+=t[u].time}}return t.ALL={name:"ALL",calls:n,time:r,average:r/n},t}}e.benchmark=l,e.benchmarkStart=p,e.benchmarkEnd=f,e.benchmarkResults=h,e.benchmarkResultsMatch=d,e.benchmarkResultsAll=y,o.VisionHelper.doBenchmark&&o.VisionHelper.window&&(window.benchmark=l,window.benchmarks=e.BENCHMARKS,window.benchmarkStart=p,window.benchmarkEnd=f,window.benchmarkResults=h,window.benchmarkResultsMatch=d,window.benchmarkResultsAll=y)},6417:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=void 0;var i=n(8294),s=n(4264),a=function(t){function e(){var e=t.call(this)||this;return e.data=s.VisionHelper.window&&window.$configuration||{},e}return o(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=null),void 0===this.data[t]?e:this.data[t]},e.prototype.set=function(t,e){var n=this.data[t];this.data[t]=e,this.trigger("change:"+t,{value:e,previous:n}),this.trigger("change",{key:t,value:e,previous:n})},e.set=function(t,n){e.instance.set(t,n)},e.get=function(t,n){return void 0===n&&(n=null),e.instance.get(t,n)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(i.EventDispatcher);e.Configuration=a},9033:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},a=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.DOM=void 0;var u=n(712),c=n(2712),l=n(8294),p=n(6417),f=n(7754),h=n(1008),d=n(44),y=n(4264),b=n(2144),v=n(7942),g=function(t){function e(e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var o=t.call(this)||this;return o.rootElement=e,o.debug=r,o.queued=[],o.observer=new MutationObserver(o.mutation.bind(o)),o.tags=[],o.window=new b.WrappedWindow(window),o.document=new v.WrappedDocument(window.document),n&&o.buildFrom(e,!0),o.evaluate(),p.Configuration.instance.bind("change",o.evaluate.bind(o)),o}return o(e,t),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),e.prototype.get=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:switch(t){case"window":return[3,1];case"document":return[3,2]}return[3,3];case 1:return[2,new h.TagList(this.window)];case 2:return[2,new h.TagList(this.document)];case 3:return r=this.querySelectorAll(t,n),[4,this.getTagsForElements(Array.from(r),e)];case 4:return[2,o.sent()]}}))}))},e.prototype.getFromTag=function(t,e,n){return void 0===n&&(n=!1),i(this,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:return r=this.querySelectorElement(t.element,e),[4,this.getTagsForElements(Array.from(r),n)];case 1:return[2,o.sent()]}}))}))},e.prototype.registerElementInRoot=function(t){var e=t.element.getAttribute("id");e&&this.root.scope.set("#"+e,t.scope)},e.prototype.querySelectorAll=function(t,e){void 0===e&&(e=null);var n=e&&!t.startsWith("#")?e.element:this.rootElement;return this.querySelectorElement(n,t)},e.prototype.querySelectorElement=function(t,e){var n=e.indexOf(":parent");if(n>-1){var r=e.substring(0,n),o=e.substring(n+7);if(r.length>0){for(var i=[],s=0,a=Array.from(this.querySelectorElement(t,r));s<a.length;s++){var u=a[s];o.length>0?i.push.apply(i,Array.from(this.querySelectorElement(u.parentElement,o))):i.push(u.parentElement)}return i}return 0===o.length?[t.parentElement]:this.querySelectorElement(t.parentElement,o)}return t.querySelectorAll(e)},e.prototype.querySelector=function(t){return this.rootElement.querySelector(t)},e.prototype.eval=function(t){return i(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,(e=new f.Tree(t)).prepare(this.root.scope,this)];case 1:return n.sent(),[4,e.evaluate(this.root.scope,this)];case 2:return[2,n.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:clearTimeout(this.evaluateTimeout),t=0,e=this.tags,n.label=1;case 1:return t<e.length?[4,e[t].evaluate()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.mutation=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:e=0,n=t,i.label=1;case 1:return e<n.length?(r=n[e],[4,this.getTagForElement(r.target)]):[3,4];case 2:(o=i.sent())&&o.mutate(r),i.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))},e.prototype.buildFrom=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var n,r,o,i,a,l,p,f,h,b,v,g,_,w,m,O,A,E,T,S,j,P,x,R,k,C,N,L,D,M,I,B;return s(this,(function(s){switch(s.label){case 0:for(n=[],e&&(document.body.setAttribute("vsn-root",""),document.ondragover=function(t){return t.preventDefault()}),r=0,o=this.tags;r<o.length;r++)B=o[r],n.push(B.element);if(i=[],a=[],l=[],y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","findElements"),t&&t.querySelectorAll)for(p=0,f=Array.from(t.querySelectorAll("*"));p<f.length;p++)v=f[p],c.ElementHelper.hasVisionAttribute(v)&&(v.hasAttribute("vsn-template")&&"template"===v.tagName||l.indexOf(v.parentElement)>-1?l.push(v):this.queued.indexOf(v)>-1||(this.queued.push(v),a.push(v)));for(y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","findElements"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","buildTags"),h=0,b=a;h<b.length;h++)v=b[h],n.indexOf(v)>-1||(B=new u.Tag(v,this),this.tags.push(B),i.push(B),n.push(v));return y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","buildTags"),e?(g=this,[4,this.getTagForElement(document.body)]):[3,2];case 1:g._root=s.sent(),s.label=2;case 2:y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","buildTagAttributes"),_=0,w=i,s.label=3;case 3:return _<w.length?[4,(B=w[_]).buildAttributes()]:[3,6];case 4:s.sent(),s.label=5;case 5:return _++,[3,3];case 6:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","buildTagAttributes"),y.VisionHelper.inDevelopment&&d.benchmarkStart("DOM","compileAttributes"),m=0,O=i,s.label=7;case 7:return m<O.length?[4,(B=O[m]).compileAttributes()]:[3,10];case 8:s.sent(),s.label=9;case 9:return m++,[3,7];case 10:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","compileAttributes"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","buildTree"),A=0,E=i,s.label=11;case 11:if(!(A<E.length))return[3,17];if((B=E[A])===this.root)return[3,16];T=B.element.parentElement,S=!1,s.label=12;case 12:return T?n.indexOf(T)>-1?(S=!0,j=B,[4,this.getTagForElement(T)]):[3,14]:[3,15];case 13:return j.parentTag=s.sent(),[3,15];case 14:return T=T.parentElement,[3,12];case 15:S||console.error("Could not find parent for ",B),s.label=16;case 16:return A++,[3,11];case 17:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","buildTree"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","setupAttributes"),P=0,x=i,s.label=18;case 18:return P<x.length?[4,(B=x[P]).setupAttributes()]:[3,21];case 19:s.sent(),s.label=20;case 20:return P++,[3,18];case 21:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","setupAttributes"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","extractAttributes"),R=0,k=i,s.label=22;case 22:return R<k.length?[4,(B=k[R]).extractAttributes()]:[3,25];case 23:s.sent(),s.label=24;case 24:return R++,[3,22];case 25:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","extractAttributes"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","connectAttributes"),C=0,N=i,s.label=26;case 26:return C<N.length?[4,(B=N[C]).connectAttributes()]:[3,29];case 27:s.sent(),s.label=28;case 28:return C++,[3,26];case 29:y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","connectAttributes"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","finalizeTags"),L=0,D=i,s.label=30;case 30:return L<D.length?[4,(B=D[L]).finalize()]:[3,33];case 31:s.sent(),this.queued.splice(this.queued.indexOf(B.element),1),s.label=32;case 32:return L++,[3,30];case 33:for(y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","finalizeTags"),y.VisionHelper.doBenchmark&&d.benchmarkStart("DOM","observeTags"),M=0,I=i;M<I.length;M++)B=I[M],this.observer.observe(B.element,{attributes:!0,characterData:!0,childList:!0,subtree:!0});return y.VisionHelper.doBenchmark&&d.benchmarkEnd("DOM","observeTags"),this.trigger("built"),[2]}}))}))},e.prototype.getTagsForElements=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var n,r,o,i,u,c,l,p,f,d,y,b;return s(this,(function(s){switch(s.label){case 0:for(n=new h.TagList,r=[],o=0,i=this.tags;o<i.length;o++)u=i[o],t.indexOf(u.element)>-1&&(n.push(u),r.push(u.element));if(!e)return[3,4];for(c=a([],t),l=c.length;l>=0;l--)d=c[l],r.indexOf(d)>-1&&c.pop();p=0,f=c,s.label=1;case 1:return p<f.length?(d=f[p],b=(y=n).push,[4,this.getTagForElement(d,e)]):[3,4];case 2:b.apply(y,[s.sent()]),s.label=3;case 3:return p++,[3,1];case 4:return[2,n]}}))}))},e.prototype.getTagForElement=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var n,r,o;return s(this,(function(i){switch(i.label){case 0:for(n=0,r=this.tags;n<r.length;n++)if((o=r[n]).element===t)return[2,o];return t&&e?(t instanceof HTMLElement&&t.setAttribute("vsn-ref",""),[4,this.buildFrom(t.parentElement||t)]):[3,3];case 1:return i.sent(),[4,this.getTagForElement(t,!1)];case 2:return[2,i.sent()];case 3:return[2,null]}}))}))},e.prototype.getTagForScope=function(t){return i(this,void 0,void 0,(function(){var e,n,r;return s(this,(function(o){for(e=0,n=this.tags;e<n.length;e++)if((r=n[e]).scope===t)return[2,r];return[2,null]}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e(document,!1,!1)),e._instance},enumerable:!1,configurable:!0}),e}(l.EventDispatcher);e.DOM=g},3276:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DOMObject=void 0;var i=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._uniqueScope=!1,r}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:null},set:function(t){this._scope=t},enumerable:!1,configurable:!0}),e.prototype.watchAttribute=function(t){},e.prototype.watchStyle=function(t){},e}(n(8294).EventDispatcher);e.DOMObject=i},7942:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedDocument=void 0;var i=function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=t.call(this,e,n)||this;return o._document=e,o}return o(e,t),e}(n(3276).DOMObject);e.WrappedDocument=i},2144:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedWindow=void 0;var i=n(3276),s=n(4843),a=function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=t.call(this,e,n)||this;return o._window=e,o._scope=new s.Scope,o.scope.set("@scrollY",o._window.scrollY),o.scope.set("@scrollX",o._window.scrollX),e.addEventListener("scroll",o.onScroll.bind(o),{passive:!0}),o}return o(e,t),e.prototype.onScroll=function(t){this.scope.set("@scrollY",this._window.scrollY),this.scope.set("@scrollX",this._window.scrollX)},e}(i.DOMObject);e.WrappedWindow=a},6846:function(t,e,n){var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Formats=void 0;var o=n(1371),i=n(6417),s=function(){function t(){}return t.currency=function(e){if(!t.CurrencyFormatter){var n=function(){var e=i.Configuration.get("locale","en-US"),n=i.Configuration.get("currency","USD");t.CurrencyFormatter=new Intl.NumberFormat(e,{style:"currency",currency:n})};i.Configuration.instance.bind("change:locale",n),i.Configuration.instance.bind("change:currency",n),n()}return e=(""+e).replace(/[^0-9.]+/,""),t.CurrencyFormatter.format(parseFloat(e))},t.date=function(t){return t?t.toLocaleString():""},r([o.Registry.format("currency")],t,"currency",null),r([o.Registry.format("date")],t,"date",null),t}();e.Formats=s},7677:function(t,e,n){var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;var i=n(1008),s=n(4264),a=n(9033),u=n(2144),c=n(7942);e.Query=function(t,e){return void 0===e&&(e=null),r(this,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return s.VisionHelper.document?[4,(e=e||a.DOM.instance).get(t,!0)]:[3,2];case 1:return 1==(n=r.sent()).length||1==n.length&&(n[0]instanceof u.WrappedWindow||n[0]instanceof c.WrappedDocument)?[2,n[0]]:[2,n];case 2:return[2,new i.TagList]}}))}))}},1371:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=e.RegistryStore=e.register=void 0;var s=n(8294),a=n(8513),u=n(4264),c=n(44);function l(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),function(r,o){void 0===o&&(o=null),e=e||r.prototype.constructor.name,null!==o&&(r=r[o]),f.instance[t].register(e,r),n&&n()}}e.register=l;var p=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.timeouts={},n.store=e||{},n}return o(e,t),e.prototype.register=function(t,e){this.store[t]=e,this.trigger("registered:"+t,e)},e.prototype.get=function(t){var e=this,n=a.Promise.defer();return this.store[t]?n.resolve(this.store[t]):(console.warn("Waiting for "+t+" to be registered."),this.timeouts[t]=setTimeout((function(){console.warn("RegistryStore.get timed out after 5 seconds trying to find "+t+". Make sure the item is registered.")}),5e3),this.once("registered:"+t,(function(r){clearTimeout(e.timeouts[t]),n.resolve(r)}))),n.promise},e.prototype.getSynchronous=function(t){return this.store[t]},i([c.benchmark("RegistryStore.get")],e.prototype,"get",null),e}(s.EventDispatcher);e.RegistryStore=p;var f=function(t){function e(){var e=t.call(this)||this,n=u.VisionHelper.window||{};return e.classes=new p(n.$classes||{}),e.models=new p(n.$models||{}),e.templates=new p(n.$templates||{}),e.types=new p(n.$types||{}),e.formats=new p(n.$formats||{}),e.attributes=new p(n.$attributes||{}),e}return o(e,t),e.class=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("classes",t,e)},e.model=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("models",t,e)},e.template=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("templates",t,e)},e.type=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("types",t,e)},e.format=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("formats",t,e)},e.attribute=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),l("attributes",t,e)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(s.EventDispatcher);e.Registry=f},4843:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},a=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Scope=e.WrappedArray=e.ScopeVariableType=e.QueryReference=e.ScopeReference=void 0;var u=n(6586),c=n(8294),l=n(1371),p=n(9033),f=function(){function t(t,e,n){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),this._scope=t,this._key=e,this._value=n}return t.prototype.getScope=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._scope]}))}))},t.prototype.getKey=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._key]}))}))},t.prototype.getValue=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._value]}))}))},t}();e.ScopeReference=f;var h=function(t){function e(e,n){var r=t.call(this)||this;return r.path=e,r.scope=n,r}return o(e,t),e.prototype.getScope=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:return t=(t=this.path.split(".")).splice(0,t.length-1),[4,p.DOM.instance.eval(t.join("."))];case 1:return[2,1===(e=n.sent()).length?e[0].scope:e.map((function(t){return t.scope}))]}}))}))},e.prototype.getKey=function(){return i(this,void 0,void 0,(function(){var t;return s(this,(function(e){return[2,(t=this.path.split("."))[t.length-1]]}))}))},e.prototype.getValue=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,p.DOM.instance.eval(this.path)];case 1:return[2,t.sent()]}}))}))},e}(f);e.QueryReference=h;var d=function(){function t(){}return t.Integer="integer",t.Float="float",t.Boolean="boolean",t.String="string",t}();e.ScopeVariableType=d;var y=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return o.$wrapped=!0,Object.setPrototypeOf(o,e.prototype),o._lastKey=0,o._listeners={},o}return o(e,t),e.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.prototype.push.apply(this,e);this.trigger.apply(this,a(["push"],e)),this.trigger("change",{added:e});for(var o=0,i=e;o<i.length;o++){var s=i[o];this.trigger("add",s)}return r},e.prototype.splice=function(e,n){var r=t.prototype.splice.call(this,e,n);this.trigger("change",{removed:r});for(var o=0,i=r;o<i.length;o++){var s=i[o];this.trigger("remove",s)}return r},e.prototype.get=function(t){return["length"].indexOf(t)>-1?this[t]:void 0},Object.defineProperty(e.prototype,"length",{get:function(){for(var t=0,e=0;e<this.length;e++)this[e],t+=1;return t},set:function(t){this.setLength(t)},enumerable:!1,configurable:!0}),e.prototype.setLength=function(t){for(var e=0,n=[],r=0;r<this.length;r++){var o=this[r];(e+=1)>=t&&n.push(o)}for(var i=0,s=n;i<s.length;i++)o=s[i],this.splice(this.indexOf(o),1)},e.prototype.bind=function(t,e,n,r){return r=r||!1,this._lastKey++,this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(new c.EventCallback(e,this._lastKey,r,n)),this._lastKey},e.prototype.once=function(t,e,n){return this.bind(t,e,n,!0)},e.prototype.unbind=function(t,e){if(!(t in this._listeners))return!1;if(!e)return this._listeners[t]=[],!0;for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return this._listeners[t].splice(this._listeners[t].indexOf(o),1),!0}return!1},e.prototype.unbindWithContext=function(t,e){if(!(t in this._listeners))return 0;for(var n=[],r=0,o=0,i=this._listeners[t];o<i.length;o++)e==(u=i[o]).context&&n.push(u);for(var s=0,a=n;s<a.length;s++){var u=a[s];this._listeners[t].splice(this._listeners[t].indexOf(u),1),r++}return r},e.prototype.getListener=function(t,e){for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return o}},e.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t in this._listeners)for(var r=0;r<this._listeners[t].length;r++){var o=this._listeners[t][r];o.once&&(this.unbind(t,o.key),r--),o.call(e)}},e}(Array);e.WrappedArray=y;var b=function(t){function e(e){var n=t.call(this)||this;return n.types={},e&&(n.parentScope=e),n.children=[],n.data=new u.DataModel({}),n._keys=[],n}return o(e,t),Object.defineProperty(e.prototype,"parentScope",{get:function(){return this._parentScope},set:function(t){this._parentScope=t,t.addChild(this)},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this.children.push(t)},e.prototype.getReference=function(t,n){void 0===n&&(n=!0);var r=t.split("."),o=r[0],i=this,s=null,a=r.length;if(t.startsWith("?"))return new h(t,i);for(var u=0;u<a;u++){o=r[u],s=i.get(o,0===u);var c=[null,void 0].indexOf(s)>-1;if(n&&c&&u+1<a)s=new e(i),i.set(o,s);else if(!n&&c)return null;s&&s instanceof e&&(i=s)}return new f(i,o,s)},e.prototype.get=function(t,e){void 0===e&&(e=!0);var n=this.data[t];return void 0===n?e&&this.parentScope?this.parentScope.get(t,e):this._keys.indexOf(t)>-1?"":void 0:n},e.prototype.set=function(t,e){if(void 0===this.data[t]&&this.data.createField(t),"string"==typeof e){var n=this.getType(t),r=l.Registry.instance.types.getSynchronous(n);r&&(e=r(e)),[d.Integer,d.Float].indexOf(n)>-1&&isNaN(e)&&(e=null)}if(this.data[t]!==e){var o=this.data[t];this.data[t]=e;var i={value:e,previousValue:o,key:t};this.trigger("change:"+t,i),this.trigger("change",t,i)}-1===this._keys.indexOf(t)&&this._keys.push(t)},Object.defineProperty(e.prototype,"keys",{get:function(){return a([],this._keys)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._keys.indexOf(t)>-1},e.prototype.setType=function(t,e){this.types[t]=e,this.has(t)&&this.set(t,this.get(t))},e.prototype.getType=function(t){return this.types[t]||d.String},e.prototype.extend=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];this.set(r,t[r])}},e.prototype.clear=function(){for(var t=0,e=this._keys;t<e.length;t++){var n=e[t];["function","object"].indexOf(typeof this.get(n))>-1||this.set(n,null)}},e.prototype.cleanup=function(){this.children.length=0,this.parentScope=null},e.prototype.wrap=function(t,n,r){var o=this;if(void 0===n&&(n=!1),void 0===r&&(r=!0),t instanceof e&&(t=t.data),-1===[null,void 0].indexOf(this.wrapped))throw Error("A scope can only wrap a single object");if(!t)throw Error("Can only wrap objects.");if(t.$wrapped)throw Error("An object should only be wrapped once.");this.wrapped=t,this.wrapped.$wrapped=!0;var i=function(i){if(["constructor"].indexOf(i)>-1||i.startsWith("$"))return"continue";if(s.wrapped[i]instanceof Function)return s.set(i,s.wrapped[i]),"continue";if(s.wrapped[i]instanceof Array&&(s.wrapped[i]instanceof y||(s.wrapped[i]=new(y.bind.apply(y,a([void 0],t[i])))),s.wrapped[i].bind("change",(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.trigger.apply(o,a(["change:"+i],t))}))),"object"==typeof s.wrapped[i]&&s.wrapped[i]&&s.wrapped[i].constructor===Object){var u=new e(s);u.wrap(s.wrapped[i]),s.wrapped[i]=u}r&&-1===[null,void 0].indexOf(s.wrapped[i])&&s.set(i,s.wrapped[i]),Object.defineProperty(s.wrapped,i,{get:function(){return o.get(i)},set:function(t){o.set(i,t)},enumerable:!0,configurable:!0}),n&&s.trigger("change:"+i)},s=this;for(var u in t)i(u);this.wrapped.get=this.get.bind(this),this.wrapped.set=this.set.bind(this),this.wrapped.bind=this.bind.bind(this),this.wrapped.once=this.once.bind(this),this.wrapped.unbind=this.unbind.bind(this)},e.prototype.unwrap=function(){if(this.wrapped){var t=this.wrapped;for(var e in this.wrapped=null,t.$wrapped=!1,t)delete t[e]}},e}(c.EventDispatcher);e.Scope=b},712:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},a=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=e.TagState=void 0;var u,c=n(4843),l=n(5092),p=n(4264),f=n(6032),h=n(8447),d=n(1371),y=n(44),b=n(3276),v=n(7754),g=n(1857);!function(t){t[t.Instantiated=0]="Instantiated",t[t.AttributesBuilt=1]="AttributesBuilt",t[t.AttributesCompiled=2]="AttributesCompiled",t[t.AttributesSetup=3]="AttributesSetup",t[t.AttributesExtracted=4]="AttributesExtracted",t[t.AttributesConnected=5]="AttributesConnected",t[t.Built=6]="Built"}(u=e.TagState||(e.TagState={}));var _=function(t){function e(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t.call(this,e,r)||this;return i.dom=n,i.deferredAttributes=[],i._nonDeferredAttributes=[],i._children=[],i.inputTags=["input","select","textarea"],i.rawAttributes={},i.parsedAttributes={},i.attributes=[],i.onEventHandlers={},i.analyzeElementAttributes(),i._state=u.Instantiated,p.VisionHelper.window&&(p.VisionHelper.window.Tags||(p.VisionHelper.window.Tags=[],p.VisionHelper.window.Attributes=[]),p.VisionHelper.window.Tags.push(i)),i}return o(e,t),Object.defineProperty(e.prototype,"uniqueScope",{get:function(){return this._uniqueScope},enumerable:!1,configurable:!0}),e.prototype.onAttributeStateChange=function(t){t.previouseState===l.AttributeState.Deferred&&(this._nonDeferredAttributes.length=0)},Object.defineProperty(e.prototype,"nonDeferredAttributes",{get:function(){if(this._nonDeferredAttributes.length>0)return this._nonDeferredAttributes;for(var t=[],e=0,n=this.attributes;e<n.length;e++){var r=n[e];r.state!==l.AttributeState.Deferred&&t.push(r)}return this._nonDeferredAttributes=t,t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.element.style},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"computedStyle",{get:function(){return p.VisionHelper.window&&window.getComputedStyle(this.element)||null},enumerable:!1,configurable:!0}),e.prototype.analyzeElementAttributes=function(){if(this.element.attributes&&!(this.element.attributes.length<=0))for(var t=0;t<this.element.attributes.length;t++){var e=this.element.attributes[t];if(this.rawAttributes[e.name]=e.value,e.name.indexOf(":")>-1){var n=e.name.split(":"),r=n.slice(1);r.push(e.value),this.parsedAttributes[n[0]]=r}else this.parsedAttributes[e.name]=[null,e.value]}},e.prototype.eval=function(t){return i(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,(e=new v.Tree(t)).prepare(this.scope,this.dom,this)];case 1:return n.sent(),[4,e.evaluate(this.scope,this.dom,this)];case 2:return[2,n.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].evaluate()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.mutate=function(t){for(var e=0,n=this.attributes;e<n.length;e++)n[e].mutate(t);this.trigger("mutate",t)},e.prototype.get=function(t){this.element.getAttribute(t)},e.prototype.set=function(t,e){this.element.setAttribute(t,e)},e.prototype.getAttributeClass=function(t){return i(this,void 0,void 0,(function(){return s(this,(function(e){return t.startsWith("vsn-")?(t=this.getAttributeName(t),[2,d.Registry.instance.attributes.get(t)]):[2,null]}))}))},e.prototype.getAttributeName=function(t){if((t=t.split("|")[0]).indexOf(":")>-1){var e=t.split(":");t=e[0]}return t},e.prototype.getAttributeBinding=function(t){return(t=t.split("|")[0]).indexOf(":")>-1?t.split(":")[1]:null},e.prototype.getAttributeModifiers=function(t){return t.split("|").splice(1)},Object.defineProperty(e.prototype,"isInput",{get:function(){return this.inputTags.indexOf(this.element.tagName.toLowerCase())>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.isInput?this.element.value:this.element.textContent},set:function(t){this.isInput?(this.element.setAttribute("value",t),this.element.value=t):this.element.innerText=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return!!this.isInput&&this.element.checked},set:function(t){this.isInput&&(t?(this.element.setAttribute("checked",""),this.element.checked=!0):(this.element.removeAttribute("checked"),this.element.checked=!1))},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this._children.push(t)},Object.defineProperty(e.prototype,"children",{get:function(){return a([],this._children)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentTag",{get:function(){return this._parentTag},set:function(t){this.element!==document.body&&(this._parentTag=t,t.addChild(this),this.scope!==t.scope&&(this.scope.parentScope=t.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:this._parentTag?this._parentTag.scope:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(t){this._controller=t},enumerable:!1,configurable:!0}),e.prototype.wrap=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!0),p.VisionHelper.isConstructor(t)&&(t=new t),this.scope.wrap(t,e,n),t.$scope=this.scope,t.$tag=this,t.$el=this.element,t},e.prototype.unwrap=function(){this.scope.unwrap()},e.prototype.removeFromDOM=function(){this.element.remove()},e.prototype.addToParentElement=function(){this._parentTag.element.appendChild(this.element)},e.prototype.hide=function(){this.element.hidden=!0},e.prototype.show=function(){this.element.hidden=!1},e.prototype.findAncestorByAttribute=function(t){return this.hasAttribute(t)?this:this.parentTag?this.parentTag.findAncestorByAttribute(t):null},e.prototype.hasAttribute=function(t){return!!this.parsedAttributes[t]},e.prototype.getAttribute=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:return[4,d.Registry.instance.attributes.get(t)];case 1:if(!(e=i.sent()))return[2];for(n=0,r=this.attributes;n<r.length;n++)if((o=r[n])instanceof e)return[2,o];return[2]}}))}))},e.prototype.getRawAttributeValue=function(t,e){return void 0===e&&(e=null),this.rawAttributes[t]?this.rawAttributes[t]:e},e.prototype.hasRawAttribute=function(t){return void 0!==this.getRawAttributeValue(t,void 0)},e.prototype.getParsedAttributeValue=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),this.parsedAttributes[t]&&this.parsedAttributes[t][e]||n},e.prototype.buildAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i,a,l,f;return s(this,(function(s){switch(s.label){case 0:for(o in t=!1,e=!1,this.attributes.length=0,n=p.VisionHelper.isMobile(),(null===this.element.offsetParent||this.hasAttribute("hidden")||this.hasAttribute("vsn-defer"))&&(e=!0),r=[],this.rawAttributes)r.push(o);i=0,s.label=1;case 1:return i<r.length?(a=r[i],this.hasModifier(a,"mobile")&&!n||this.hasModifier(a,"desktop")&&n?[3,4]:[4,this.getAttributeClass(a)]):[3,5];case 2:return(l=s.sent())?(l.scoped&&(t=!0),f=new l(this,a),this.attributes.push(f),e&&l.canDefer?[4,f.defer()]:[3,4]):[3,4];case 3:s.sent(),this.deferredAttributes.push(f),f.bind("state",this.onAttributeStateChange.bind(this)),s.label=4;case 4:return i++,[3,1];case 5:return this.element.getAttribute("id")&&(t=!0),t&&!this.uniqueScope&&(this._uniqueScope=!0,this._scope=new c.Scope),this._state=u.AttributesBuilt,[2]}}))}))},e.prototype.compileAttributes=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].compile()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return this._state=u.AttributesCompiled,[2]}}))}))},e.prototype.setupAttributes=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:p.VisionHelper.doBenchmark&&y.benchmarkStart("Tag.setupAttributes"),t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].setup()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return p.VisionHelper.doBenchmark&&y.benchmarkEnd("Tag.setupAttributes","Attribute.setup"),this.dom.registerElementInRoot(this),p.VisionHelper.doBenchmark&&y.benchmarkEnd("Tag.setupAttributes","register"),this._state=u.AttributesSetup,this.callOnWrapped("$setup"),p.VisionHelper.doBenchmark&&y.benchmarkEnd("Tag.setupAttributes","$setup"),[2]}}))}))},e.prototype.extractAttributes=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].extract()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return this._state=u.AttributesExtracted,this.callOnWrapped("$extracted"),[2]}}))}))},e.prototype.connectAttributes=function(){return i(this,void 0,void 0,(function(){var t,e;return s(this,(function(n){switch(n.label){case 0:this.isInput&&this.addEventHandler("input",[],this.inputMutation.bind(this)),t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].connect()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return this._state=u.AttributesConnected,this.callOnWrapped("$bound"),[2]}}))}))},e.prototype.inputMutation=function(t){this.element.setAttribute("value",t.target.value)},e.prototype.finalize=function(){this._state=u.Built,this.callOnWrapped("$built",this,this.scope,this.element),p.VisionHelper.nice(this.setupDeferredAttributes.bind(this))},e.prototype.callOnWrapped=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return!!(this._uniqueScope&&this.scope&&this.scope.wrapped&&this.scope.wrapped[t])&&((e=this.scope.wrapped)[t].apply(e,n),!0)},e.prototype.handleEvent=function(t,e){if(e&&e.stopPropagation(),this.onEventHandlers[t]){this.scope.set("$event",e),this.scope.set("$value",this.value);for(var n=0,r=this.onEventHandlers[t];n<r.length;n++)(0,r[n])(e)}},e.prototype.hasModifier=function(t,e){return t.indexOf("|"+e)>-1},e.prototype.stripModifier=function(t,e){return t.replace("|"+e,"")},e.prototype.addEventHandler=function(t,e,n){var r=null;if(e.indexOf("active")>-1?r=!1:e.indexOf("passive")>-1&&(r=!0),!this.onEventHandlers[t]){this.onEventHandlers[t]=[];var o=h.On.WindowEvents.indexOf(t)>-1&&window?window:this.element,i={};(t.indexOf("touch")>-1||null!==r)&&(i.passive=null===r||r),o.addEventListener(t,this.handleEvent.bind(this,t),i)}this.onEventHandlers[t].push(n)},e.prototype.watchAttribute=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:for(e=0,n=this.attributes;e<n.length;e++)if((r=n[e])instanceof f.StandardAttribute&&r.attributeName==t)return[2,r];return this.uniqueScope||(this._uniqueScope=!0,this._scope=new c.Scope,this.parentTag&&(this.scope.parentScope=this.parentTag.scope)),o=new f.StandardAttribute(this,t),this.attributes.push(o),[4,this.setupAttribute(o)];case 1:return i.sent(),[2,o]}}))}))},e.prototype.watchStyle=function(t){return i(this,void 0,void 0,(function(){var t,e,n,r;return s(this,(function(o){switch(o.label){case 0:for(t=0,e=this.attributes;t<e.length;t++)if((n=e[t])instanceof g.StyleAttribute)return[2,n];return this.uniqueScope||(this._uniqueScope=!0,this._scope=new c.Scope,this.parentTag&&(this.scope.parentScope=this.parentTag.scope)),r=new g.StyleAttribute(this,"style"),this.attributes.push(r),[4,this.setupAttribute(r)];case 1:return o.sent(),[2,r]}}))}))},e.prototype.setupAttribute=function(t){return i(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.compile()];case 1:return e.sent(),[4,t.setup()];case 2:return e.sent(),[4,t.extract()];case 3:return e.sent(),[4,t.connect()];case 4:return e.sent(),[2]}}))}))},e.prototype.setupDeferredAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n;return s(this,(function(r){switch(r.label){case 0:t=0,e=this.deferredAttributes,r.label=1;case 1:return t<e.length?(n=e[t],[4,this.setupAttribute(n)]):[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return this.deferredAttributes.length=0,[2]}}))}))},e}(b.DOMObject);e.Tag=_},1008:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.TagList=void 0;var i=n(4264),s=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this[0].scope},enumerable:!1,configurable:!0}),e.prototype.on=function(t,e,n){return"function"==typeof e?this.forEach((function(n){return n.element.addEventListener(t,e)})):this.forEach((function(r){r.element.addEventListener(t,(function(t){t.target.matches(e)&&n(t)}))})),this},Object.defineProperty(e.prototype,"elements",{get:function(){return this.map((function(t){return t.element}))},enumerable:!1,configurable:!0}),e.prototype.next=function(){return this.map((function(t){return t.element.nextElementSibling})).filter((function(t){return null!=t}))},e.prototype.prev=function(){return this.map((function(t){return t.element.previousElementSibling})).filter((function(t){return null!=t}))},e.prototype.removeClass=function(t){return this.forEach((function(e){return e.element.classList.remove(t)})),this},e.prototype.addClass=function(t){return this.forEach((function(e){return e.element.classList.add(t)})),this},e.prototype.css=function(t,e){var n=t.replace(/(-[a-z])/,(function(t){return t.replace("-","").toUpperCase()}));return this.forEach((function(t){return t.element.style[n]=e})),this},e}(Array);e.TagList=s,i.VisionHelper.inDevelopment&&i.VisionHelper.window&&(window.TagList=s)},3398:function(t,e,n){var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Types=void 0;var o=n(1371),i=function(){function t(){}return t.string=function(t){return t},t.integer=function(t){return parseInt(t)},t.float=function(t){return t=(""+t).replace(/[^0-9.]+/,""),parseFloat(t)},t.boolean=function(t){return-1===[0,"0","false",""].indexOf(t)},t.date=function(t){return new Date(Date.parse(t))},r([o.Registry.type("string")],t,"string",null),r([o.Registry.type("integer")],t,"integer",null),r([o.Registry.type("float")],t,"float",null),r([o.Registry.type("boolean")],t,"boolean",null),r([o.Registry.type("date")],t,"date",null),t}();e.Types=i},8943:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.vision=e.ScopeReference=e.Scope=e.WrappedArray=e.DOM=e.Vision=void 0;var c=n(9033),l=n(8294),p=n(4843),f=n(6586),h=n(1371);n(3398),n(6846);var d=n(6417),y=n(4264),b=n(7754),v=n(7677),g=function(t){function e(){var n=t.call(this)||this;return n.registry=h.Registry.instance,n.config=d.Configuration.instance,y.VisionHelper.document?document.addEventListener("DOMContentLoaded",n.setup.bind(n)):console.warn("No dom, running in CLI mode."),n.registry.classes.register("Object",Object),n.registry.classes.register("WrappedArray",p.WrappedArray),n.registry.classes.register("DataModel",f.DataModel),y.VisionHelper.window&&(window.Vision=e,window.Registry=h.Registry,window.vision=window.vsn=n,window.Tree=b.Tree,window.$=v.Query,y.VisionHelper.window.dispatchEvent(new Event("vsn"))),n}return o(e,t),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.eval=function(t){return a(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this._dom.eval(t)];case 1:return[2,e.sent()]}}))}))},e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var t,e,n;return u(this,(function(r){switch(r.label){case 0:return document.body.setAttribute("vsn-root",""),this._dom=c.DOM.instance,t=(new Date).getTime(),[4,this._dom.buildFrom(document,!0)];case 1:return r.sent(),e=(new Date).getTime(),n=e-t,console.warn("Took "+n+"ms to start up VisionJS. https://www.vsnjs.com/"),[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(l.EventDispatcher);e.Vision=g,s(n(2132),e),s(n(1371),e),s(n(5092),e),s(n(7754),e);var _=n(9033);Object.defineProperty(e,"DOM",{enumerable:!0,get:function(){return _.DOM}});var w=n(4843);Object.defineProperty(e,"WrappedArray",{enumerable:!0,get:function(){return w.WrappedArray}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return w.Scope}}),Object.defineProperty(e,"ScopeReference",{enumerable:!0,get:function(){return w.ScopeReference}}),e.vision=g.instance},8041:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddClassIf=void 0;var u=n(523),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.classList.add(this.getAttributeBinding()):this.tag.element.classList.remove(this.getAttributeBinding()),[2]}}))}))},i([c.Registry.attribute("vsn-add-class-if")],e)}(u.If);e.AddClassIf=l},8171:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Bind=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.direction="both",e.formatter=function(t){return t},e}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,new c.Tree(this.getAttributeValue()).prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return this.property=this.getAttributeBinding(),(e=this.getAttributeModifiers()).length&&(e.indexOf("from")>-1?this.direction="from":e.indexOf("to")>-1&&(this.direction="to")),[4,t.prototype.setup.call(this)];case 1:return n.sent(),[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var e,n,r,o;return a(this,(function(i){switch(i.label){case 0:e=this.getAttributeValue();try{n=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return r=this,[4,n.getKey()];case 1:return r.key=i.sent(),o=this,[4,n.getScope()];case 2:return o.boundScope=i.sent(),this.valueFromElement&&this.updateFrom(),[4,t.prototype.extract.call(this)];case 3:return i.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.doUpdateTo&&(this.updateTo(),this.boundScope.bind("change:"+this.key,this.updateTo,this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.evaluate=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.valueFromElement&&this.updateFrom(),this.updateTo(),[4,t.prototype.evaluate.call(this)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueFromElement",{get:function(){return this.property?this.tag.element.getAttribute(this.property):this.tag.value},enumerable:!1,configurable:!0}),e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.doUpdateFrom&&(!this.property&&["characterData","childList"].indexOf(e.type)>-1?this.updateFrom():this.property||"attributes"!=e.type||"value"!==e.attributeName?"attributes"===e.type&&e.attributeName==this.property&&this.updateFrom():this.updateFrom())},Object.defineProperty(e.prototype,"doUpdateFrom",{get:function(){return["both","to"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateFrom=function(){if(this.doUpdateFrom){var t=this.valueFromElement;t="string"==typeof t&&t.trim()||t;var e=this.value;e="string"==typeof e&&e.trim()||e,(e=this.formatter(e))&&t==e||(this.value=t)}},Object.defineProperty(e.prototype,"doUpdateTo",{get:function(){return["both","from"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){if(this.doUpdateTo){var t=this.formatter(this.value);this.property?this.tag.element.setAttribute(this.property,t):this.tag.value=t}},e.prototype.setFormatter=function(t){this.formatter=t},e.canDefer=!1,i([l.Registry.attribute("vsn-bind")],e)}(u.Attribute);e.Bind=p},3444:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ClassConstructor=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var e,n;return a(this,(function(r){switch(r.label){case 0:return(e=this.tag.parentTag.scope)?(this.attributeKey=this.getAttributeBinding(),this.className=this.getAttributeValue(),[4,c.Registry.instance.classes.get(this.className)]):[2];case 1:return n=r.sent(),this.instantiateClass(n),this.attributeKey&&e&&e.set(this.attributeKey,this.tag.scope),[4,t.prototype.setup.call(this)];case 2:return r.sent(),[2]}}))}))},e.prototype.instantiateClass=function(t){this.tag.wrap(t)},e.canDefer=!1,e.scoped=!0,i([c.Registry.attribute("vsn-controller")],e)}(u.Attribute);e.ClassConstructor=l},9281:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ClickRemoveClass=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cssClass="",e.target=null,e}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.cssClass=this.getAttributeBinding("active"),this.target=this.getAttributeValue(),[2]}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.addEventHandler("click",this.getAttributeModifiers(),this.onClick.bind(this)),[2]}))}))},e.prototype.onClick=function(t){var e=this.tag.element;this.target&&(e=document.getElementById(this.target)),e&&e.classList.remove(this.cssClass)},i([c.Registry.attribute("vsn-click-remove-class")],e)}(u.Attribute);e.ClickRemoveClass=l},2573:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ClickToggleClass=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cssClass="",e.target=null,e}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.cssClass=this.getAttributeBinding("active"),this.target=this.getAttributeValue(),[2]}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.addEventHandler("click",this.getAttributeModifiers(),this.onClick.bind(this)),[2]}))}))},e.prototype.onClick=function(t){var e=this.tag.element;this.target&&(e=document.getElementById(this.target)),e&&e.classList.toggle(this.cssClass)},i([c.Registry.attribute("vsn-click-toggle-class")],e)}(u.Attribute);e.ClickToggleClass=l},3650:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ControllerAttribute=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(3444).ClassConstructor);e.ControllerAttribute=i},4893:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DisableIf=void 0;var u=n(523),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.setAttribute("disabled","disabled"):this.tag.element.removeAttribute("disabled"),[2]}}))}))},e.canDefer=!1,i([c.Registry.attribute("vsn-disable-if")],e)}(u.If);e.DisableIf=l},6813:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Exec=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this.tree=new c.Tree(this.getAttributeValue()),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,i([l.Registry.attribute("vsn-exec")],e)}(u.Attribute);e.Exec=p},8289:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e,n,r;return a(this,(function(o){switch(o.label){case 0:return t=this.getAttributeValue(null),e=this.getAttributeBinding(null),[4,c.Registry.instance.formats.get(t)];case 1:return n=o.sent(),r=e?"vsn-bind:"+e:"vsn-bind",[4,this.tag.getAttribute(r)];case 2:return o.sent().setFormatter(n),[2]}}))}))},e.canDefer=!1,i([c.Registry.attribute("vsn-format")],e)}(u.Attribute);e.Format=l},523:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return t=this.getAttributeValue(),this.tree=new c.Tree(t),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.evaluate()];case 1:return t.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.tree.bindToScopeChanges(this.tag.scope,this.onChange.bind(this),this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.prototype.evaluate=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.onChange()];case 1:return t.sent(),[2]}}))}))},e.prototype.onChange=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.show():this.tag.hide(),[2]}}))}))},e.canDefer=!1,i([l.Registry.attribute("vsn-if")],e)}(u.Attribute);e.If=p},9979:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONAttribute=void 0;var u=n(1371),c=n(5092),l=n(4843),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:t=this.getAttributeBinding();try{e=this.tag.scope.getReference(t)}catch(t){return console.error("error",t),[2]}return[4,e.getKey()];case 1:return n=a.sent(),[4,e.getScope()];case 2:return r=a.sent(),o="script"===this.tag.element.tagName.toLowerCase()?this.tag.element.innerText:unescape(this.getAttributeValue()),this.getAttributeBinding(),(i=JSON.parse(o))&&"object"==typeof i&&i.constructor===Object&&((s=new l.Scope(r)).wrap(i),r.set(n,s)),r.set(n,i),[2]}}))}))},e.canDefer=!1,i([u.Registry.attribute("vsn-json")],e)}(c.Attribute);e.JSONAttribute=p},9215:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyAbstract=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.specificKey=null,e}return o(e,t),e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.prototype.compile.call(this)];case 1:return e.sent(),this.specificKey=this.getAttributeBinding(),[2]}}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.tag.addEventHandler("keydown",this.getAttributeModifiers(),this.handleEvent.bind(this)),[2]}))}))},e.prototype.handleEvent=function(e){return i(this,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return n=!1,-1===[void 0,null,""].indexOf(this.specificKey)&&e.key.toLowerCase()!==this.specificKey&&e.code.toLowerCase()!==this.specificKey||(n=!0),n?[4,t.prototype.handleEvent.call(this,e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e}(n(8447).On);e.KeyAbstract=a},9459:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDown=void 0;var u=n(9215),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.addEventHandler("keydown",this.getAttributeModifiers(),this.handleEvent.bind(this)),[2]}))}))},i([c.Registry.attribute("vsn-key-down")],e)}(u.KeyAbstract);e.KeyDown=l},7459:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyUp=void 0;var u=n(9215),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.addEventHandler("keyup",this.getAttributeModifiers(),this.handleEvent.bind(this)),[2]}))}))},i([c.Registry.attribute("vsn-key-up")],e)}(u.KeyAbstract);e.KeyUp=l},2496:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.List=void 0;var u=n(5092),c=n(4843),l=n(7754),p=n(2712),f=n(1371),h=n(9033),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return t=this.getAttributeBinding(),this.tree=new l.Tree(t),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[2]}}))}))},e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:return this.tag.element.children.length>0?((t=this.tag.element.children[0])&&(t.hasAttribute("vsn-template")?(t.removeAttribute("vsn-template"),this.tag.element.removeChild(t),this.template=t):this.template=t.cloneNode(!0)),[3,3]):[3,1];case 1:return this.tag.hasRawAttribute("template")?[4,h.DOM.instance.eval(this.tag.getRawAttributeValue("template"))]:[3,3];case 2:(e=n.sent())instanceof Array&&1===e.length&&(e=e[0]),this.template=e.element.content.cloneNode(!0),n.label=3;case 3:return[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e,n;return a(this,(function(r){switch(r.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t=r.sent(),[4,this.addExistingItems(t)];case 2:if(r.sent(),!this.tag.hasRawAttribute("initial-items"))return[3,6];e=parseInt(this.tag.getRawAttributeValue("initial-items")),n=0,r.label=3;case 3:return n<e?[4,this.add({})]:[3,6];case 4:r.sent(),r.label=5;case 5:return n++,[3,3];case 6:return[2]}}))}))},e.prototype.addExistingItems=function(t){return s(this,void 0,void 0,(function(){var e,n,r,o,i,s,u,l=this;return a(this,(function(a){switch(a.label){case 0:if(this.items=t||new c.WrappedArray,this.tags=[],!t)return[3,4];e=0,n=t,a.label=1;case 1:return e<n.length?(r=n[e],[4,this.add(r)]):[3,4];case 2:a.sent(),a.label=3;case 3:return e++,[3,1];case 4:o=0,i=Array.from(this.tag.element.querySelectorAll("*")),a.label=5;case 5:return o<i.length?(s=i[o],p.ElementHelper.hasVisionAttribute(s,"vsn-list-item")?[4,this.tag.dom.getTagForElement(s)]:[3,7]):[3,8];case 6:(u=a.sent())&&(this.tags.push(u),this.items.push(u.scope.wrapped||u.scope)),a.label=7;case 7:return o++,[3,5];case 8:return this.items instanceof c.WrappedArray||(this.items=new c.WrappedArray(this.items)),this.items.bind("add",(function(t){l.add(t)})),this.items.bind("remove",(function(t){l.remove(t)})),this.tag.scope.set("add",this.add.bind(this)),this.tag.scope.set("remove",this.remove.bind(this)),[2]}}))}))},Object.defineProperty(e.prototype,"listItemName",{get:function(){return this.tag.getRawAttributeValue("vsn-list-item-name","item")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listItemModel",{get:function(){return this.tag.getRawAttributeValue("vsn-list-item-model","Object")},enumerable:!1,configurable:!0}),e.prototype.remove=function(t){for(var e=0;e<this.tags.length;e++){var n=this.tags[e],r=n.scope.get(this.listItemName);if([r,r.wrapped].indexOf(t)>-1)return n.removeFromDOM(),void this.tags.splice(e,1)}},e.prototype.add=function(t){return s(this,void 0,void 0,(function(){var e,n,r;return a(this,(function(o){switch(o.label){case 0:return e=this.template.cloneNode(!0),n=e instanceof DocumentFragment?e.children[0]:e,this.tag.element.appendChild(n),[4,this.tag.dom.buildFrom(this.tag.element)];case 1:return o.sent(),[4,this.tag.dom.getTagForElement(n)];case 2:return r=o.sent(),this.tags.push(r),r.scope.clear(),t&&(r.unwrap(),r.wrap(t)),this.tag.trigger("add",t),[2]}}))}))},e.canDefer=!1,e.scoped=!0,i([f.Registry.attribute("vsn-list")],e)}(u.Attribute);e.List=d},987:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItem=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return o(e,t),n=e,Object.defineProperty(e.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t,e;return a(this,(function(r){switch(r.label){case 0:if(this._list=this.tag.findAncestorByAttribute("vsn-list"),!this._list)throw Error(n.ERROR_NO_PARENT);return this.tag.scope.set(this.listItemName,this.tag.scope),[4,this.getList()];case 1:return t=r.sent().listItemModel,[4,c.Registry.instance.classes.get(t)];case 2:return e=r.sent(),this.instantiateModel(e),[2]}}))}))},Object.defineProperty(e.prototype,"listItemName",{get:function(){return this.getAttributeBinding("item")},enumerable:!1,configurable:!0}),e.prototype.getList=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this._list.getAttribute("vsn-list")];case 1:return[2,t.sent()]}}))}))},e.prototype.configure=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return[2]}))}))},e.prototype.instantiateModel=function(t){this.tag.wrap(t,!1,!0)},e.canDefer=!1,e.scoped=!0,e.ERROR_NO_PARENT="Cannot find list parent.",n=i([c.Registry.attribute("vsn-list-item")],e)}(u.Attribute);e.ListItem=l},274:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItemModel=void 0;var s=n(1371),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,i([s.Registry.attribute("vsn-list-item-model")],e)}(n(5092).Attribute);e.ListItemModel=a},3329:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ModelAttribute=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,e}(n(3444).ClassConstructor);e.ModelAttribute=i},1576:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Name=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t;return a(this,(function(e){return(t=this.tag.scope.parentScope)&&t.set(this.tag.parsedAttributes["vsn-name"][1],this.tag.scope),[2]}))}))},e.canDefer=!1,e.scoped=!0,i([c.Registry.attribute("vsn-name")],e)}(u.Attribute);e.Name=l},8447:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.On=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return t=this.getAttributeValue(),this.handler=new c.Tree(t),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[2]}}))}))},e.prototype.handleEvent=function(t){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.addEventHandler(this.getAttributeBinding(),this.getAttributeModifiers(),this.handleEvent.bind(this)),[2]}))}))},e.WindowEvents=["abort","afterprint","beforeprint","error","hashchange","load","popstate","resize","scroll","unload"],i([l.Registry.attribute("vsn-on")],e)}(u.Attribute);e.On=p},7968:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Radio=void 0;var u=n(1371),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e,n,r;return a(this,(function(o){switch(o.label){case 0:t=this.getAttributeValue()||this.tag.getRawAttributeValue("name");try{e=this.tag.scope.getReference(t)}catch(t){return console.error("error",t),[2]}return n=this,[4,e.getKey()];case 1:return n.key=o.sent(),r=this,[4,e.getScope()];case 2:return r.boundScope=o.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.boundScope.bind("change:"+this.key,this.checkSelected,this),this.tag.addEventHandler("change",this.getAttributeModifiers(),this.handleEvent.bind(this)),[2]}))}))},e.prototype.handleEvent=function(t){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.boundScope.set(this.key,this.tag.value),[2]}))}))},e.prototype.checkSelected=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.checked=this.boundScope.get(this.key)===this.tag.value,[2]}))}))},e.canDefer=!1,i([u.Registry.attribute("vsn-radio")],e)}(n(5092).Attribute);e.Radio=c},6338:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Referenced=void 0;var s=n(1371),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([s.Registry.attribute("vsn-ref")],e)}(n(5092).Attribute);e.Referenced=a},6957:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.RootAttribute=void 0;var u=n(5092),c=n(4264),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){return a(this,(function(t){return this.tag.scope.set("$mobile",c.VisionHelper.isMobile()),[2]}))}))},e.canDefer=!1,e.scoped=!0,i([l.Registry.attribute("vsn-root")],e)}(u.Attribute);e.RootAttribute=p},5930:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeAttribute=void 0;var s=n(5092),a=n(1371),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,e.scoped=!0,i([a.Registry.attribute("vsn-scope")],e)}(s.Attribute);e.ScopeAttribute=u},1085:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeChange=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return s(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return t=this.getAttributeValue(),this.handler=new c.Tree(t),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){var t,e,n,r,o;return a(this,(function(i){switch(i.label){case 0:return t=this.getAttributeBinding(),[4,(e=this.tag.scope.getReference(t,!1)).getScope()];case 1:return r=(n=i.sent()).bind,o="change:",[4,e.getKey()];case 2:return r.apply(n,[o+i.sent(),this.handleEvent.bind(this)]),[2]}}))}))},e.prototype.handleEvent=function(t){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,i([l.Registry.attribute("vsn-scope-change")],e)}(u.Attribute);e.ScopeChange=p},3070:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetAttribute=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t,e,n;return a(this,(function(r){switch(r.label){case 0:this.property=this.getAttributeBinding();try{t=this.tag.scope.getReference(this.property)}catch(t){return[2]}return e=this,[4,t.getKey()];case 1:return e.key=r.sent(),n=this,[4,t.getScope()];case 2:return n.boundScope=r.sent(),[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){return t=this.getAttributeValue(null),(e=t&&t.indexOf("|")||-1)>-1&&(this.boundScope.setType(this.key,t.substr(e+1)),t=t.substr(0,e)),this.boundScope.set(this.key,t),[2]}))}))},e.canDefer=!1,i([c.Registry.attribute("vsn-set")],e)}(u.Attribute);e.SetAttribute=l},6032:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StandardAttribute=void 0;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return-1!==e.magicAttributes.indexOf(this.key)||this.tag.element.hasAttribute(this.attributeName)||this.tag.element.setAttribute(this.attributeName,""),[2]}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.updateFrom(),[2]}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){return this.tag.scope.bind("change:"+this.key,this.updateTo.bind(this)),[2]}))}))},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},Object.defineProperty(e.prototype,"needsToBeSynced",{get:function(){var t=this.tag.scope.get(this.key)||"",e=this.value;return t&&t.trim&&(t=t.trim()),e&&e.trim&&(e=e.trim()),t instanceof Array?!(e instanceof Array&&t.length===e.length)||t.map((function(t){return e.indexOf(t)>-1})).indexOf(!1)>-1:t!==e},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){this.needsToBeSynced&&(this.value=this.tag.scope.get("@"+this.attributeName))},e.prototype.updateFrom=function(){this.needsToBeSynced&&this.tag.scope.set(this.key,this.value)},Object.defineProperty(e.prototype,"key",{get:function(){return"@"+this.attributeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"@text"===this.key?this.tag.element.innerText:"@html"===this.key?this.tag.element.innerHTML:"@value"===this.key?this.tag.value:"@class"===this.key?Array.from(this.tag.element.classList):this.tag.element.getAttribute(this.attributeName)},set:function(t){var e,n;if("@text"===this.key)this.tag.element.innerText=t;else if("@html"===this.key)this.tag.element.innerHTML=t;else if("@value"===this.key)this.tag.value=t;else if("@class"===this.key&&t){(e=this.tag.element.classList).remove.apply(e,Array.from(this.tag.element.classList));var r=t instanceof Array?t:[t];r.length&&(n=this.tag.element.classList).add.apply(n,r)}else this.tag.element.setAttribute(this.attributeName,t)},enumerable:!1,configurable:!0}),e.canDefer=!1,e.magicAttributes=["@text","@html","@class","@value"],e}(n(5092).Attribute);e.StandardAttribute=a},1857:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyleAttribute=void 0;var u=n(1371),c=n(5092),l=n(4843),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var e,n,r;return a(this,(function(o){switch(o.label){case 0:return(e=this.getAttributeValue()||null)?(this.scopeRef=this.tag.scope.getReference(e,!0),[4,this.scopeRef.getScope()]):[3,3];case 1:return n=o.sent(),[4,this.scopeRef.getKey()];case 2:return r=o.sent(),this.styleScope=n.get(r),this.styleScope||(this.styleScope=new l.Scope(n),n.set(r,this.styleScope)),[3,4];case 3:this.styleScope=this.tag.scope,o.label=4;case 4:return[4,t.prototype.setup.call(this)];case 5:return o.sent(),[2]}}))}))},e.prototype.connect=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.styleScope.bind("change",this.handleEvent.bind(this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.updateFrom(),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.updateFrom=function(){var t=["cssText","length"];for(var e in this.tag.style)if(!(t.indexOf(e)>-1||isFinite(e))){var n=this.tag.style[e],r="$"+e;n&&n!==this.styleScope.get(r)&&this.styleScope.set(r,n)}},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},e.prototype.handleEvent=function(t,e){return s(this,void 0,void 0,(function(){var n;return a(this,(function(r){return t.startsWith("$")&&(n=t.substr(1),e.value!==e.previousValue&&(this.tag.element.style[n]=e.value)),[2]}))}))},i([u.Registry.attribute("vsn-styles")],e)}(c.Attribute);e.StyleAttribute=p},1514:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var s=n(1371),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,i([s.Registry.attribute("vsn-template")],e)}(n(5092).Attribute);e.Template=a},8696:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypeAttribute=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return s(this,void 0,void 0,(function(){var t,e,n,r,o;return a(this,(function(i){switch(i.label){case 0:t=this.getAttributeBinding(),e=this.getAttributeValue();try{n=this.tag.scope.getReference(t)}catch(t){return console.error("error",t),[2]}return[4,n.getScope()];case 1:return o=(r=i.sent()).setType,[4,n.getKey()];case 2:return o.apply(r,[i.sent(),e]),[2]}}))}))},e.canDefer=!1,i([c.Registry.attribute("vsn-type")],e)}(u.Attribute);e.TypeAttribute=l},2132:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeAttribute=e.Template=e.StyleAttribute=e.StandardAttribute=e.SetAttribute=e.ScopeChange=e.ScopeAttribute=e.RootAttribute=e.Referenced=e.Radio=e.On=e.Name=e.ModelAttribute=e.ListItemModel=e.ListItem=e.List=e.KeyUp=e.KeyDown=e.JSONAttribute=e.If=e.Format=e.Exec=e.DisableIf=e.ControllerAttribute=e.ClickToggleClass=e.ClickRemoveClass=e.Bind=e.AddClassIf=void 0;var r=n(8041);Object.defineProperty(e,"AddClassIf",{enumerable:!0,get:function(){return r.AddClassIf}});var o=n(8171);Object.defineProperty(e,"Bind",{enumerable:!0,get:function(){return o.Bind}});var i=n(9281);Object.defineProperty(e,"ClickRemoveClass",{enumerable:!0,get:function(){return i.ClickRemoveClass}});var s=n(2573);Object.defineProperty(e,"ClickToggleClass",{enumerable:!0,get:function(){return s.ClickToggleClass}});var a=n(3650);Object.defineProperty(e,"ControllerAttribute",{enumerable:!0,get:function(){return a.ControllerAttribute}});var u=n(4893);Object.defineProperty(e,"DisableIf",{enumerable:!0,get:function(){return u.DisableIf}});var c=n(6813);Object.defineProperty(e,"Exec",{enumerable:!0,get:function(){return c.Exec}});var l=n(8289);Object.defineProperty(e,"Format",{enumerable:!0,get:function(){return l.Format}});var p=n(523);Object.defineProperty(e,"If",{enumerable:!0,get:function(){return p.If}});var f=n(9979);Object.defineProperty(e,"JSONAttribute",{enumerable:!0,get:function(){return f.JSONAttribute}});var h=n(9459);Object.defineProperty(e,"KeyDown",{enumerable:!0,get:function(){return h.KeyDown}});var d=n(7459);Object.defineProperty(e,"KeyUp",{enumerable:!0,get:function(){return d.KeyUp}});var y=n(2496);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return y.List}});var b=n(987);Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return b.ListItem}});var v=n(274);Object.defineProperty(e,"ListItemModel",{enumerable:!0,get:function(){return v.ListItemModel}});var g=n(3329);Object.defineProperty(e,"ModelAttribute",{enumerable:!0,get:function(){return g.ModelAttribute}});var _=n(1576);Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return _.Name}});var w=n(8447);Object.defineProperty(e,"On",{enumerable:!0,get:function(){return w.On}});var m=n(7968);Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return m.Radio}});var O=n(6338);Object.defineProperty(e,"Referenced",{enumerable:!0,get:function(){return O.Referenced}});var A=n(6957);Object.defineProperty(e,"RootAttribute",{enumerable:!0,get:function(){return A.RootAttribute}});var E=n(5930);Object.defineProperty(e,"ScopeAttribute",{enumerable:!0,get:function(){return E.ScopeAttribute}});var T=n(1085);Object.defineProperty(e,"ScopeChange",{enumerable:!0,get:function(){return T.ScopeChange}});var S=n(3070);Object.defineProperty(e,"SetAttribute",{enumerable:!0,get:function(){return S.SetAttribute}});var j=n(6032);Object.defineProperty(e,"StandardAttribute",{enumerable:!0,get:function(){return j.StandardAttribute}});var P=n(1857);Object.defineProperty(e,"StyleAttribute",{enumerable:!0,get:function(){return P.StyleAttribute}});var x=n(1514);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return x.Template}});var R=n(8696);Object.defineProperty(e,"TypeAttribute",{enumerable:!0,get:function(){return R.TypeAttribute}})},2712:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ElementHelper=void 0;var n=function(){function t(){}return t.hasVisionAttribute=function(t,e){if(void 0===e&&(e="vsn-"),!t.attributes||t.attributes.length<=0)return!1;for(var n=0;n<t.attributes.length;n++)if(t.attributes[n].name.startsWith(e))return!0;return!1},t.normalizeElementID=function(t){return t?t.replace(/-([a-zA-Z0-9])/g,(function(t){return t[1].toUpperCase()})):null},t}();e.ElementHelper=n},4264:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VisionHelper=void 0;var n=function(){function t(){}return t.isConstructor=function(t){return t&&t.hasOwnProperty("prototype")&&!!t.prototype&&!!t.prototype.constructor&&!!t.prototype.constructor.name},Object.defineProperty(t,"document",{get:function(){return"object"==typeof document?document:null},enumerable:!1,configurable:!0}),Object.defineProperty(t,"window",{get:function(){return"object"==typeof window?window:null},enumerable:!1,configurable:!0}),t.isMobile=function(){var e,n=!1;return navigator&&t.window&&(e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(n=!0)),n},Object.defineProperty(t,"inDevelopment",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t,"doBenchmark",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inLegacy",{get:function(){return"es5"===process.env.BUILD_TARGET},enumerable:!1,configurable:!0}),t.nice=function(e,n){void 0===n&&(n=100),t.window&&window.requestIdleCallback?window.requestIdleCallback(e):setTimeout(e,n)},t}();e.VisionHelper=n}},e={};!function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(8943)})();
@@ -1 +0,0 @@
1
- {"version":3,"file":"Vision.js","sourceRoot":"","sources":["../src/Vision.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA0B;AAC1B,yEAA2D;AAC3D,iCAAqC;AACrC,qDAA2C;AAC3C,uCAAoC;AACpC,mBAAiB;AACjB,qBAAmB;AACnB,iDAA8C;AAC9C,uDAAoD;AACpD,6BAA2B;AAC3B,iCAA8B;AAE9B;IAA4B,0BAAe;IAMvC;QAAA,YACI,iBAAO,SAqBV;QAzBe,cAAQ,GAAG,mBAAQ,CAAC,QAAQ,CAAC;QAC7B,YAAM,GAAkB,6BAAa,CAAC,QAAQ,CAAC;QAI3D,IAAI,2BAAY,CAAC,QAAQ,EAAE;YACvB,QAAQ,CAAC,gBAAgB,CACrB,kBAAkB,EAClB,KAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAI,CAAC,CACxB,CAAC;SACL;aAAM;YACH,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;SAChD;QACD,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACjD,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,EAAE,oBAAY,CAAC,CAAC;QAC7D,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,4BAAS,CAAC,CAAC;QAEvD,IAAI,2BAAY,CAAC,MAAM,EAAE;YACrB,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAC1B,MAAM,CAAC,UAAU,CAAC,GAAG,mBAAQ,CAAC;YAC9B,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,KAAI,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,GAAG,UAAI,CAAC;YACtB,MAAM,CAAC,GAAG,CAAC,GAAG,aAAK,CAAC;YACpB,2BAAY,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;SACvD;;IACL,CAAC;IAED,sBAAW,uBAAG;aAAd;YACI,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;;;OAAA;IAEY,qBAAI,GAAjB,UAAkB,IAAY;;;;4BACnB,qBAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA;4BAAjC,sBAAO,SAA0B,EAAC;;;;KACrC;IAEY,sBAAK,GAAlB;;;;;;wBACU,IAAI,GAAgB,QAAQ,CAAC,IAAI,CAAC;wBACxC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;wBAClC,IAAI,CAAC,IAAI,GAAG,SAAG,CAAC,QAAQ,CAAC;wBACnB,SAAS,GAAW,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;wBAC/C,qBAAM,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAA;;wBAAzC,SAAyC,CAAC;wBACpC,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;wBAC7B,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;wBAClC,OAAO,CAAC,IAAI,CAAC,UAAQ,SAAS,oDAAiD,CAAC,CAAC;;;;;KACpF;IAED,sBAAkB,kBAAQ;aAA1B;YACI,IAAI,CAAC,MAAM,CAAC,SAAS;gBACjB,MAAM,CAAC,SAAS,GAAG,IAAI,MAAM,EAAE,CAAC;YAEpC,OAAO,MAAM,CAAC,SAAS,CAAC;QAC5B,CAAC;;;OAAA;IACL,aAAC;AAAD,CAAC,AAvDD,CAA4B,4CAAe,GAuD1C;AAvDY,wBAAM;AAyDnB,wDAAsC;AACtC,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6BAA0B;AAAlB,0FAAA,GAAG,OAAA;AACX,iCAA4D;AAApD,qGAAA,YAAY,OAAA;AAAE,8FAAA,KAAK,OAAA;AAAE,uGAAA,cAAc,OAAA;AAC9B,QAAA,MAAM,GAAW,MAAM,CAAC,QAAQ,CAAC"}
package/main.py DELETED
@@ -1,16 +0,0 @@
1
- # This is a sample Python script.
2
-
3
- # Press Shift+F10 to execute it or replace it with your code.
4
- # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
5
-
6
-
7
- def print_hi(name):
8
- # Use a breakpoint in the code line below to debug your script.
9
- print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
10
-
11
-
12
- # Press the green button in the gutter to run the script.
13
- if __name__ == '__main__':
14
- print_hi('PyCharm')
15
-
16
- # See PyCharm help at https://www.jetbrains.com/help/pycharm/