UNPKG

igc-xc-score

Version:

igc-xc-score is a paragliding and hang-gliding XC scoring program in vanilla JS

2 lines 882 kB
/*! For license information please see bundle.js.LICENSE.txt */ (()=>{var t={7371:(t,e,r)=>{"use strict";r(7157);var i=r(2608),o=r(2768);function n(t,e){if(!(this instanceof n))return new n(t,e);e=e||Function.noop,this.getDefault=e,this.store=Object.create(null),this.length=0,this.addEach(t)}t.exports=n,n.Dict=n,Object.addEach(n.prototype,i.prototype),Object.addEach(n.prototype,o.prototype),n.from=i.from,n.prototype.constructClone=function(t){return new this.constructor(t,this.getDefault)},n.prototype.assertString=function(t){if("string"!=typeof t)throw new TypeError("key must be a string but Got "+t)},Object.defineProperty(n.prototype,"$__proto__",{writable:!0}),Object.defineProperty(n.prototype,"_hasProto",{get:function(){return this.hasOwnProperty("$__proto__")&&void 0!==this._protoValue}}),Object.defineProperty(n.prototype,"_protoValue",{get:function(){return this.$__proto__},set:function(t){this.$__proto__=t}}),Object.defineProperty(n.prototype,"size",i._sizePropertyDescriptor),n.prototype.get=function(t,e){return this.assertString(t),"__proto__"===t?this._hasProto?this._protoValue:arguments.length>1?e:this.getDefault(t):t in this.store?this.store[t]:arguments.length>1?e:this.getDefault(t)},n.prototype.set=function(t,e){this.assertString(t);var r="__proto__"===t;return(r?this._hasProto:t in this.store)?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,r?this._protoValue:this.store[t]),r?this._protoValue=e:this.store[t]=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e),!1):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,void 0),this.length++,r?this._protoValue=e:this.store[t]=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e),!0)},n.prototype.has=function(t){return this.assertString(t),"__proto__"===t?this._hasProto:t in this.store},n.prototype.delete=function(t){return this.assertString(t),"__proto__"===t?!!this._hasProto&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this._protoValue),this._protoValue=void 0,this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0):t in this.store&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this.store[t]),delete this.store[t],this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0)},n.prototype.clear=function(){var t;for(t in this._hasProto&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange("__proto__",this._protoValue),this._protoValue=void 0,this.dispatchesMapChanges&&this.dispatchMapChange("__proto__",void 0)),this.store)this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this.store[t]),delete this.store[t],this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0);this.length=0},n.prototype.reduce=function(t,e,r){this._hasProto&&(e=t.call(r,e,"$__proto__","__proto__",this));var i=this.store;for(var o in this.store)e=t.call(r,e,i[o],o,this);return e},n.prototype.reduceRight=function(t,e,r){var i=this,o=this.store;return e=Object.keys(this.store).reduceRight((function(e,n){return t.call(r,e,o[n],n,i)}),e),this._hasProto?t.call(r,e,this._protoValue,"__proto__",i):e},n.prototype.one=function(){var t;for(t in this.store)return this.store[t];return this._protoValue},n.prototype.toJSON=function(){return this.toObject()}},9560:(t,e,r)=>{"use strict";r(7157);var i=r(7371),o=r(9203),n=r(2608),s=r(5834),a=r(8811);function l(t,e,r,i){if(!(this instanceof l))return new l(t,e,r,i);e=e||Object.equals,r=r||Object.hash,i=i||Function.noop,this.contentEquals=e,this.contentHash=r,this.getDefault=i;var o=this;this.buckets=new this.Buckets(null,(function(){return new o.Bucket})),this.length=0,this.addEach(t)}Object.prototype.hasOwnProperty,t.exports=l,l.FastSet=l,Object.addEach(l.prototype,n.prototype),Object.addEach(l.prototype,s.prototype),l.from=n.from,l.prototype.Buckets=i,l.prototype.Bucket=o,l.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},l.prototype.has=function(t){var e=this.contentHash(t);return this.buckets.get(e).has(t)},l.prototype.get=function(t,e){if(e)throw new Error("FastSet#get does not support second argument: equals");var r=this.contentHash(t),i=this.buckets;return i.has(r)?i.get(r).get(t):this.getDefault(t)},l.prototype.delete=function(t,e){if(e)throw new Error("FastSet#delete does not support second argument: equals");var r=this.contentHash(t),i=this.buckets;if(i.has(r)){var o=i.get(r);if(o.delete(t))return this.length--,0===o.length&&i.delete(r),!0}return!1},l.prototype.clear=function(){this.buckets.clear(),this.length=0},l.prototype.add=function(t){var e=this.contentHash(t),r=this.buckets;return r.has(e)||r.set(e,new this.Bucket(null,this.contentEquals)),!r.get(e).has(t)&&(r.get(e).add(t),this.length++,!0)},l.prototype.reduce=function(t,e){var r=arguments[2],i=this.buckets,o=0;return i.reduce((function(e,i){return i.reduce((function(e,i){return t.call(r,e,i,o++,this)}),e,this)}),e,this)},l.prototype.one=function(){if(this.length>0)return this.buckets.one().one()},l.prototype.iterate=function(){return this.buckets.valuesArray().flatten().iterate()},l.prototype.log=function(t,e,r,i){t=t||a.unicodeSharp,e=e||this.logNode,r||(r=console.log,i=console),r=r.bind(i);for(var o,n,s,l,c=this.buckets,d=c.size,h=c.keys(),u=0;o=h.next().value;)u===d-1?(n=t.fromAbove,s=" "):0===u?(n=t.branchDown,s=t.strafe):(n=t.fromBoth,s=t.strafe),l=c.get(o),r.call(i,n+t.through+t.branchDown+" "+o),l.forEach((function(o,n){var a,c,d;n===l.head.prev?(a=t.fromAbove,c=" "):(a=t.fromBoth,c=t.strafe),e(n,(function(e){d?r.call(i,s+" "+c+" "+e):(r.call(i,s+" "+a+t.through+t.through+e),d=!0)}),(function(e){r.call(i,s+" "+t.strafe+" "+e)}))})),u++},l.prototype.logNode=function(t,e){var r=t.value;Object(r)===r?JSON.stringify(r,null,4).split("\n").forEach((function(t){e(" "+t)})):e(" "+r)}},9203:(t,e,r)=>{"use strict";t.exports=n,r(7157);var i=r(2608),o=r(7358);function n(t,e,r){return n._init(n,this,t,e,r)}function s(t){this.head=t,this.at=t.next}function a(t){this.value=t,this.prev=null,this.next=null}n._init=function(t,e,r,i,o){if(!(e instanceof t))return new t(r,i,o);var n=e.head=new e.Node;n.next=n,n.prev=n,e.contentEquals=i||Object.equals,e.getDefault=o||Function.noop,e.length=0,e.addEach(r)},n.List=n,Object.addEach(n.prototype,i.prototype),Object.addEach(n.prototype,o.prototype),n.from=i.from,n.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.getDefault)},n.prototype.find=function(t,e,r){e=e||this.contentEquals;for(var i=this.head,o=this.scan(r,i.next);o!==i;){if(e(o.value,t))return o;o=o.next}},n.prototype.findLast=function(t,e,r){e=e||this.contentEquals;for(var i=this.head,o=this.scan(r,i.prev);o!==i;){if(e(o.value,t))return o;o=o.prev}},n.prototype.has=function(t,e){return!!this.find(t,e)},n.prototype.get=function(t,e){var r=this.find(t,e);return r?r.value:this.getDefault(t)},n.prototype.delete=function(t,e){var r=this.findLast(t,e);return!!r&&(r.delete(),this.length--,!0)},n.prototype.deleteAll=function(t,e){e=e||this.contentEquals;for(var r=this.head,i=r.next,o=0;i!==r;)e(t,i.value)&&(i.delete(),o++),i=i.next;return this.length-=o,o},n.prototype.clear=function(){this.head.next=this.head.prev=this.head,this.length=0},n.prototype.add=function(t){var e=new this.Node(t);return this._addNode(e)},n.prototype._addNode=function(t){return this.head.addBefore(t),this.length++,!0},n.prototype.push=function(){for(var t=this.head,e=0;e<arguments.length;e++){var r=arguments[e],i=new this.Node(r);t.addBefore(i)}this.length+=arguments.length},n.prototype.unshift=function(){for(var t=this.head,e=0;e<arguments.length;e++){var r=arguments[e],i=new this.Node(r);t.addAfter(i),t=i}this.length+=arguments.length},n.prototype._shouldPop=function(){var t,e=this.head;return e.prev!==e&&(t=e.prev.value),t},n.prototype.pop=function(t,e){var r,i=this.head;if(i.prev!==i){r=i.prev.value;var o=this.length-1,n=t?t.call(this,r,o):void 0;i.prev.delete(),this.length--,e&&e.call(this,r,o,n)}return r},n.prototype.shift=function(t,e){var r,i=this.head;if(i.prev!==i){r=i.next.value;var o=t?t.call(this,r,0):void 0;i.next.delete(),this.length--,e&&e.call(this,r,0,o)}return r},n.prototype.peek=function(){if(this.head!==this.head.next)return this.head.next.value},n.prototype.poke=function(t){this.head!==this.head.next?this.head.next.value=t:this.push(t)},n.prototype.one=function(){return this.peek()},n.prototype.scan=function(t,e){var r=this.head;if("number"==typeof t){var i=t;if(i>=0)for(t=r.next;i&&(i--,(t=t.next)!=r););else for(t=r;i<0&&(i++,(t=t.prev)!=r););return t}return t||e},n.prototype.slice=function(t,e){var r=[],i=this.head;for(t=this.scan(t,i.next),e=this.scan(e,i);t!==e&&t!==i;)r.push(t.value),t=t.next;return r},n.prototype.splice=function(t,e){return this.swap(t,e,Array.prototype.slice.call(arguments,2))},n.prototype.swap=function(t,e,r,i,o){var n=t;t=this.scan(t,this.head),null==e&&(e=1/0),r=Array.from(r);for(var s=[],a=t;e--&&e>=0&&a!==this.head;)s.push(a.value),a=a.next;i&&i.call(this,t,r,s),a=t;var l=0;for(a=t;l<s.length;l++,a=a.next)a.delete();for(null==n&&a===this.head&&(a=this.head.next),l=0;l<r.length;l++){var c=new this.Node(r[l]);a.addBefore(c)}return this.length+=r.length-s.length,o&&o.call(this,t,r,s),s},n.prototype.reverse=function(){var t=this.head;do{var e=t.next;t.next=t.prev,t.prev=e,t=t.next}while(t!==this.head);return this},n.prototype.sort=function(){this.swap(0,this.length,this.sorted.apply(this,arguments))},n.prototype.reduce=function(t,e){for(var r=arguments[2],i=this.head,o=i.next;o!==i;)e=t.call(r,e,o.value,o,this),o=o.next;return e},n.prototype.reduceRight=function(t,e){for(var r=arguments[2],i=this.head,o=i.prev;o!==i;)e=t.call(r,e,o.value,o,this),o=o.prev;return e},n.prototype.updateIndexes=function(t,e){for(;t!==this.head;)t.index=e++,t=t.next},n.prototype.iterate=function(){return new s(this.head)},s.prototype.__iterationObject=null,Object.defineProperty(s.prototype,"_iterationObject",{get:function(){return this.__iterationObject||(this.__iterationObject={done:!1,value:null})}}),s.prototype.next=function(){if(this.at===this.head)this._iterationObject.done=!0,this._iterationObject.value=void 0;else{var t=this.at.value;this.at=this.at.next,this._iterationObject.value=t}return this._iterationObject},n.prototype.Node=a,a.prototype.delete=function(){this.prev.next=this.next,this.next.prev=this.prev},a.prototype.addBefore=function(t){var e=this.prev;this.prev=t,t.prev=e,e.next=t,t.next=this},a.prototype.addAfter=function(t){var e=this.next;this.next=t,t.next=e,e.prev=t,t.prev=this}},29:(t,e,r)=>{"use strict";r(7157);var i,o,n,s=r(2608);if(void 0!==r.g.Map&&"function"==typeof r.g.Set.prototype.values){var a;o=i=t.exports=r.g.Map,i.Map=i,a={}.__proto__===Object.prototype?function(){this.__proto__=m}:function(){Object.defineProperties(this,observableSetProperties)},Object.defineProperty(i.prototype,"makeObservable",{value:a,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(i.prototype,"makePropertyObservable",{value:function(){},writable:!0,configurable:!0,enumerable:!1}),i.prototype.constructClone=function(t){return new this.constructor(t)},i.prototype.isMap=!0,i.prototype.addEach=function(t){if(t&&Object(t)===t)if("function"==typeof t.forEach)!0===t.isMap?t.forEach((function(t,e){this.set(e,t)}),this):t.forEach((function(t){this.set(t[0],t[1])}),this);else if("number"==typeof t.length)for(var e=0;e<t.length;e++)this.add(t[e],e);else Object.keys(t).forEach((function(e){this.set(e,t[e])}),this);else if(t&&"number"==typeof t.length)for(e=0;e<t.length;e++)this.add(t[e],e);return this},i.prototype.add=function(t,e){return this.set(e,t)},i.prototype.reduce=function(t,e){var r=arguments[2];return this.forEach((function(i,o,n){e=t.call(r,e,i,o,this)})),e},i.prototype.reduceRight=function(t,e){for(var r,i=arguments[2],o=this.keys(),n=this.size,s=new Array(this.size),a=0;r=o.next().value;)s[--n]=r;for(;a++<n;)e=t.call(i,e,this.get(s[a]),s[a],this);return e},i.prototype.equals=function(t,e){return e=e||Object.equals,this===t||(t&&"function"==typeof t.every?t.size===this.size&&t.every((function(t,r){return e(this.get(r),t)}),this):Object.keys(t).length===this.size&&Object.keys(t).every((function(r){return e(this.get(r),t[r])}),this))};var l=function(t,e){return e};i.prototype.keysArray=function(){return this.map(l)};var c=function(t,e){return t};i.prototype.valuesArray=function(){return this.map(c)};var d=function(t,e){return[e,t]};i.prototype.entriesArray=function(){return this.map(d)},i.prototype.toJSON=function(){return this.entriesArray()},i.prototype.items=function(){return this.entriesArray()},i.from=function(t){var e=new this;return e.addEach(t),e},Object.defineProperty(i.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0});var h=i.prototype.clear,u=i.prototype.set,p=i.prototype.delete,g={clear:{value:function(){var t;this.dispatchesMapChanges&&(this.forEach((function(t,e){this.dispatchBeforeMapChange(e,t)}),this),t=this.keysArray()),h.call(this),this.dispatchesMapChanges&&t.forEach((function(t){this.dispatchMapChange(t)}),this)},writable:!0,configurable:!0},set:{value:function(t,e){var r=this.get(t);return r?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,r),u.call(this,t,e),this.dispatchesMapChanges&&this.dispatchMapChange(t,e)):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,void 0),u.call(this,t,e),this.dispatchesMapChanges&&this.dispatchMapChange(t,e)),this},writable:!0,configurable:!0},delete:{value:function(t){return!!this.has(t)&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this.get(t)),p.call(this,t),this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0)}}};Object.addEach(i.prototype,s.prototype,!1);var m=Object.create(i.prototype,g)}var f=r(4731).CollectionsSet,b=r(2768);n=i=function t(e,r,i,o){if(!(this instanceof t))return new t(e,r,i,o);r=r||Object.equals,i=i||Object.hash,o=o||Function.noop,this.contentEquals=r,this.contentHash=i,this.getDefault=o,this.store=new f(void 0,(function(t,e){return r(t.key,e.key)}),(function(t){return i(t.key)})),this.length=0,this.addEach(e)},i.Map=i,Object.addEach(i.prototype,s.prototype),Object.addEach(i.prototype,b.prototype),Object.defineProperty(i.prototype,"size",s._sizePropertyDescriptor),i.from=s.from,i.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},i.prototype.log=function(t,e,r,i){e=e||this.logNode,this.store.log(t,(function(t,r,i){e(t.value.value,r,i)}),r,i)},i.prototype.logNode=function(t,e){e(" key: "+t.key),e(" value: "+t.value)},o?(t.exports=o,o.CollectionsMap=n):t.exports=n},4731:(t,e,r)=>{"use strict";r(7157);var i,o,n=r(2608),s=r(5834);void 0!==r.g.Set&&"function"==typeof r.g.Set.prototype.values&&((i=t.exports=r.g.Set).Set=i,i.prototype.reduce=function(t,e){var r=arguments[2];return this.forEach((function(i){e=t.call(r,e,i,this)})),e},i.prototype.reduceRight=function(t,e){for(var r,i=arguments[2],o=this.values(),n=this.size,s=new Array(this.size),a=n;r=o.next().value;)s[--a]=r;for(;a<n;)e=t.call(i,e,s[a++],this);return e},i.prototype.equals=function(t,e){var r=this;return t&&"function"==typeof t.reduce&&this.size===(t.size||t.length)&&t.reduce((function(t,i){return t&&r.has(i,e)}),!0)},i.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},i.prototype.toJSON=function(){return this.entriesArray()},i.prototype.one=function(){if(this.size>0)return this.values().next().value},i.prototype.pop=function(){if(this.size){for(var t,e,r=this.values();t=r.next().value;)e=t;return this.delete(e,this.size-1),e}},i.prototype.shift=function(){if(this.size){var t=this.values().next().value;return this.delete(t,0),t}},Object.defineProperty(i.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),i.from=function(t){var e=new this;return e.addEach(t),e},Object.addEach(i.prototype,n.prototype,!1),Object.addEach(i.prototype,s.prototype,!1));var a=r(9203),l=r(9560),c=r(4898);(o=function t(e,r,i,o){return t._init(t,this,e,r,i,o)})._init=function(t,e,r,i,o,n){if(!(e instanceof t))return new t(r,i,o,n);i=i||Object.equals,o=o||Object.hash,n=n||Function.noop,e.contentEquals=i,e.contentHash=o,e.getDefault=n,e.order=new e.Order(void 0,i),e.store=new e.Store(void 0,(function(t,e){return i(t.value,e.value)}),(function(t){return o(t.value)})),e.length=0,e.addEach(r)},o.Set=o,o.CollectionsSet=o,Object.addEach(o.prototype,n.prototype),Object.addEach(o.prototype,s.prototype),o.from=n.from,Object.defineProperty(o.prototype,"size",n._sizePropertyDescriptor),o.prototype.Order=a,o.prototype.Store=l,o.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},o.prototype.has=function(t){var e=new this.order.Node(t);return this.store.has(e)},o.prototype.get=function(t,e){if(e)throw new Error("Set#get does not support second argument: equals");var r=new this.order.Node(t);return(r=this.store.get(r))?r.value:this.getDefault(t)},o.prototype.add=function(t){var e=new this.order.Node(t);return!this.store.has(e)&&(this.length,this.order.add(t),e=this.order.head.prev,this.store.add(e),this.length++,!0)},o.prototype.delete=function(t,e){if(e)throw new Error("Set#delete does not support second argument: equals");var r=new this.order.Node(t);return!!this.store.has(r)&&(r=this.store.get(r),this.store.delete(r),this.order.splice(r,1),this.length--,!0)},o.prototype.pop=function(){if(this.length){var t=this.order.head.prev.value;return this.delete(t),t}},o.prototype.shift=function(){if(this.length){var t=this.order.head.next.value;return this.delete(t),t}},o.prototype.one=function(){if(this.length>0)return this.store.one().value},o.prototype.clear=function(){this.store.clear(),this.order.clear(),this.length=0},Object.defineProperty(o.prototype,"_clear",{value:o.prototype.clear}),o.prototype.reduce=function(t,e){var r=arguments[2],i=this.order,o=0;return i.reduce((function(e,i){return t.call(r,e,i,o++,this)}),e,this)},o.prototype.reduceRight=function(t,e){var r=arguments[2],i=this.order,o=this.length-1;return i.reduceRight((function(e,i){return t.call(r,e,i,o--,this)}),e,this)},o.prototype.iterate=function(){return this.order.iterate()},o.prototype.values=function(){return new c(this.valuesArray(),!0)},o.prototype.log=function(){var t=this.store;return t.log.apply(t,arguments)},i?(i.prototype.valuesArray=s.prototype.valuesArray,i.prototype.entriesArray=s.prototype.entriesArray,t.exports=i,i.CollectionsSet=o):t.exports=o},2608:(t,e,r)=>{"use strict";function i(){throw new Error("Can't construct. GenericCollection is a mixin.")}t.exports=i;var o=r.g.DOMTokenList||function(){};i.EmptyArray=Object.freeze([]),i.prototype.addEach=function(t,e,r){if(t&&(t instanceof Array||t instanceof o||t instanceof String))if(e)for(var i=0;i<t.length;i++)this.add(e.call(r,t[i]),i);else for(i=0;i<t.length;i++)this.add(t[i],i);else if(t&&Object(t)===t)if("function"==typeof t.forEach)e?t.map(e,r).forEach(this.add,this):t.forEach(this.add,this);else if("function"==typeof t.next){var n;if(i=0,e)for(;n=t.next().value;)this.add(e.call(r,n),i++);else for(;n=t.next().value;)this.add(n,i++)}else if("number"==typeof t.length)if(e)for(i=0;i<t.length;i++)this.add(e.call(r,t[i]),i);else for(i=0;i<t.length;i++)this.add(t[i],i);else e?Object.keys(t).forEach((function(i){this.add(e.call(r,t[i]),i)}),this):Object.keys(t).forEach((function(e){this.add(t[e],e)}),this);return this},i.prototype.deleteEach=function(t,e){return t.forEach((function(t){this.delete(t,e)}),this),this},i.prototype.forEach=function(t){var e=arguments[1];return this.reduce((function(r,i,o,n,s){t.call(e,i,o,n,s)}),void 0)},i.prototype.map=function(t){var e=arguments[1],r=[];return this.reduce((function(i,o,n,s,a){r.push(t.call(e,o,n,s,a))}),void 0),r},i.prototype.enumerate=function(t){null==t&&(t=0);var e=[];return this.reduce((function(r,i){e.push([t++,i])}),void 0),e},i.prototype.group=function(t,e,r){r=r||Object.equals;var i=[],o=[];return this.forEach((function(n,s,a){s=t.call(e,n,s,a);var l,c=o.indexOf(s,r);-1===c?(l=[],i.push([s,l]),o.push(s)):l=i[c][1],l.push(n)})),i},i.prototype.toArray=function(){return this.map(Function.identity)},i.prototype.toObject=function(){var t={};return this.reduce((function(e,r,i){t[i]=r}),void 0),t},i.from=function(){return this.apply(this,arguments)},i.prototype.filter=function(t){var e=arguments[1],r=this.constructClone();return this.reduce((function(i,o,n,s,a){t.call(e,o,n,s,a)&&r.add(o,n)}),void 0),r},i.prototype.every=function(t){var e=arguments[1];return this.reduce((function(r,i,o,n,s){return r&&t.call(e,i,o,n,s)}),!0)},i.prototype.some=function(t){var e=arguments[1];return this.reduce((function(r,i,o,n,s){return r||t.call(e,i,o,n,s)}),!1)},i.prototype.all=function(){return this.every(Boolean)},i.prototype.any=function(){return this.some(Boolean)},i.prototype.min=function(t){t=t||this.contentCompare||Object.compare;var e=!0;return this.reduce((function(r,i){return e?(e=!1,i):t(i,r)<0?i:r}),void 0)},i.prototype.max=function(t){t=t||this.contentCompare||Object.compare;var e=!0;return this.reduce((function(r,i){return e?(e=!1,i):t(i,r)>0?i:r}),void 0)},i.prototype.sum=function(t){return t=void 0===t?0:t,this.reduce((function(t,e){return t+e}),t)},i.prototype.average=function(t){var e=void 0===t?0:t,r=void 0===t?0:t;return this.reduce((function(t,i){e+=i,r+=1}),void 0),e/r},i.prototype.concat=function(){for(var t=this.constructClone(this),e=0;e<arguments.length;e++)t.addEach(arguments[e]);return t},i.prototype.flatten=function(){var t=this;return this.reduce((function(e,r){return r.forEach((function(t){this.push(t)}),e,t),e}),[])},i.prototype.zip=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),Array.unzip(t)},i.prototype.join=function(t){return this.reduce((function(e,r){return void 0===e?r:e+t+r}),void 0)},i.prototype.sorted=function(t,e,r){return(t=t||this.contentCompare||Object.compare).by?(e=t.by,t=t.compare||this.contentCompare||Object.compare):e=e||Function.identity,void 0===r&&(r=1),this.map((function(t){return{by:e(t),value:t}})).sort((function(e,i){return t(e.by,i.by)*r})).map((function(t){return t.value}))},i.prototype.reversed=function(){return this.constructClone(this).reverse()},i.prototype.clone=function(t,e){if(void 0===t)t=1/0;else if(0===t)return this;var r=this.constructClone();return this.forEach((function(i,o){r.add(Object.clone(i,t-1,e),o)}),this),r},i.prototype.only=function(){if(1===this.length)return this.one()},i.prototype.iterator=function(){return this.iterate.apply(this,arguments)},i._sizePropertyDescriptor={get:function(){return this.length},enumerable:!1,configurable:!0},Object.defineProperty(i.prototype,"size",i._sizePropertyDescriptor),r(81)},2768:(t,e,r)=>{"use strict";var i=r(189),o=r(4898);function n(){throw new Error("Can't construct. GenericMap is a mixin.")}function s(t,e){this.key=t,this.value=e}t.exports=n,n.prototype.isMap=!0,n.prototype.addEach=function(t){var e;if(t&&i(t)===t)if("function"==typeof t.forEach)!0===t.isMap?t.forEach((function(t,e){this.set(e,t)}),this):t.forEach((function(t){this.set(t[0],t[1])}),this);else if("number"==typeof t.length)for(e=0;e<t.length;e++)this.add(t[e],e);else i.keys(t).forEach((function(e){this.set(e,t[e])}),this);else if(t&&"number"==typeof t.length)for(e=0;e<t.length;e++)this.add(t[e],e);return this},n.prototype.get=function(t,e){var r=this.store.get(new this.Item(t));return r?r.value:arguments.length>1?(console.log("Use of a second argument as default value is deprecated to match standards"),e):this.getDefault(t)},n.prototype.set=function(t,e){var r=new this.Item(t,e),i=this.store.get(r);return i?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,i.value),i.value=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e)):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,void 0),this.store.add(r)&&this.length++,this.dispatchesMapChanges&&this.dispatchMapChange(t,e)),this},n.prototype.add=function(t,e){return this.set(e,t)},n.prototype.has=function(t){return this.store.has(new this.Item(t))},n.prototype.delete=function(t){var e=new this.Item(t);if(this.store.has(e)){var r=this.store.get(e).value;return this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,r),this.store.delete(e),this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0}return!1},n.prototype.clear=function(){var t,e;if(this.dispatchesMapChanges&&(this.forEach((function(t,e){this.dispatchBeforeMapChange(e,t)}),this),t=this.keysArray()),this.store.clear(),this.length=0,this.dispatchesMapChanges)for(var r=0;e=t[r];r++)this.dispatchMapChange(e)},n.prototype.reduce=function(t,e,r){return this.store.reduce((function(e,i){return t.call(r,e,i.value,i.key,this)}),e,this)},n.prototype.reduceRight=function(t,e,r){return this.store.reduceRight((function(e,i){return t.call(r,e,i.value,i.key,this)}),e,this)},n.prototype.keysArray=function(){return this.map((function(t,e){return e}))},n.prototype.keys=function(){return new o(this.keysArray(),!0)},n.prototype.valuesArray=function(){return this.map(Function.identity)},n.prototype.values=function(){return new o(this.valuesArray(),!0)},n.prototype.entriesArray=function(){return this.map((function(t,e){return[e,t]}))},n.prototype.entries=function(){return new o(this.entriesArray(),!0)},n.prototype.items=function(){return this.entriesArray()},n.prototype.equals=function(t,e){return e=e||i.equals,this===t||(t&&"function"==typeof t.every?t.length===this.length&&t.every((function(t,r){return e(this.get(r),t)}),this):i.keys(t).length===this.length&&i.keys(t).every((function(r){return e(this.get(r),t[r])}),this))},n.prototype.toJSON=function(){return this.entriesArray()},n.prototype.Item=s,s.prototype.equals=function(t){return i.equals(this.key,t.key)&&i.equals(this.value,t.value)},s.prototype.compare=function(t){return i.compare(this.key,t.key)}},7358:(t,e,r)=>{var i=r(189);function o(){throw new Error("Can't construct. GenericOrder is a mixin.")}t.exports=o,o.prototype.equals=function(t,e){return e=e||this.contentEquals||i.equals,this===t||!!t&&(this.length===t.length&&this.zip(t).every((function(t){return e(t[0],t[1])})))},o.prototype.compare=function(t,e){if(e=e||this.contentCompare||i.compare,this===t)return 0;if(!t)return 1;var r=Math.min(this.length,t.length),o=this.zip(t).reduce((function(t,i,o){return 0===t?o>=r?t:e(i[0],i[1]):t}),0);return 0===o?this.length-t.length:o},o.prototype.toJSON=function(){return this.toArray()}},5834:t=>{function e(){throw new Error("Can't construct. GenericSet is a mixin.")}t.exports=e,e.prototype.isSet=!0,e.prototype.union=function(t){var e=this.constructClone(this);return e.addEach(t),e},e.prototype.intersection=function(t){return this.constructClone(this.filter((function(e){return t.has(e)})))},e.prototype.difference=function(t){var e=this.constructClone(this);return e.deleteEach(t),e},e.prototype.symmetricDifference=function(t){var e=this.union(t),r=this.intersection(t);return e.difference(r)},e.prototype.deleteAll=function(t){return+this.delete(t)},e.prototype.equals=function(t,e){var r=this;return t&&"function"==typeof t.reduce&&this.length===t.length&&t.reduce((function(t,i){return t&&r.has(i,e)}),!0)},e.prototype.forEach=function(t){var e=arguments[1];return this.reduce((function(r,i,o,n,s){t.call(e,i,i,n,s)}),void 0)},e.prototype.toJSON=function(){return this.toArray()},e.prototype.contains=function(t){return this.has(t)},e.prototype.remove=function(t){return this.delete(t)},e.prototype.toggle=function(t){this.has(t)?this.delete(t):this.add(t)};var r=function(t,e){return t};e.prototype.valuesArray=function(){return this.map(r)};var i=function(t,e){return[e,t]};e.prototype.entriesArray=function(){return this.map(i)}},4898:(t,e,r)=>{"use strict";t.exports=n;var i=r(189),o=r(2608);function n(t,e){var r=e&&t&&t.values&&t.values();if(r&&"function"==typeof r.next)return r;if(!(this instanceof n))return new n(t);if(Array.isArray(t)||"string"==typeof t)return n.iterate(t);if((t=i(t))instanceof n)return t;if(t.next)this.next=function(){return t.next()};else if(t.iterate){var o=t.iterate();this.next=function(){return o.next()}}else{if("[object Function]"!==i.prototype.toString.call(t))throw new TypeError("Can't iterate "+t);this.next=t}}n.prototype.forEach=o.prototype.forEach,n.prototype.map=o.prototype.map,n.prototype.filter=o.prototype.filter,n.prototype.every=o.prototype.every,n.prototype.some=o.prototype.some,n.prototype.any=o.prototype.any,n.prototype.all=o.prototype.all,n.prototype.min=o.prototype.min,n.prototype.max=o.prototype.max,n.prototype.sum=o.prototype.sum,n.prototype.average=o.prototype.average,n.prototype.flatten=o.prototype.flatten,n.prototype.zip=o.prototype.zip,n.prototype.enumerate=o.prototype.enumerate,n.prototype.sorted=o.prototype.sorted,n.prototype.group=o.prototype.group,n.prototype.reversed=o.prototype.reversed,n.prototype.toArray=o.prototype.toArray,n.prototype.toObject=o.prototype.toObject,n.prototype.iterator=o.prototype.iterator,n.prototype.__iterationObject=null,i.defineProperty(n.prototype,"_iterationObject",{get:function(){return this.__iterationObject||(this.__iterationObject={done:!1,value:void 0})}}),n.prototype.constructClone=function(t){var e=[];return e.addEach(t),e},n.prototype.mapIterator=function(t){var e=n(this),r=arguments[1],o=0;if("[object Function]"!=i.prototype.toString.call(t))throw new TypeError;return new e.constructor((function(){if(!0!==e._iterationObject.done){var i=t.call(r,e.next().value,o++,e);e._iterationObject.value=i}return e._iterationObject}))},n.prototype.filterIterator=function(t){var e=n(this),r=arguments[1],o=0;if("[object Function]"!=i.prototype.toString.call(t))throw new TypeError;return new e.constructor((function(){for(var i;;){if(!0===(i=e.next()).done)return i;if(t.call(r,i.value,o++,e))return i}}))},n.prototype.reduce=function(t){var e,r=n(this),o=arguments[1],s=arguments[2],a=0;if("[object Function]"!=i.prototype.toString.call(t))throw new TypeError;if(!0===(e=r.next()).done){if(arguments.length>1)return arguments[1];throw TypeError("cannot reduce a value from an empty iterator with no initial value")}for(o=arguments.length>1?t.call(s,o,e.value,a,r):e.value,a++;;){if(!0===(e=r.next()).done)return o;o=t.call(s,o,e.value,a,r),a++}},n.prototype.concat=function(){return n.concat(Array.prototype.concat.apply(this,arguments))},n.prototype.dropWhile=function(t){var e,r,o=n(this),s=arguments[1],a=!1,l=0;if("[object Function]"!=i.prototype.toString.call(t))throw new TypeError;for(;!0!==(r=o.next()).done;){if(!t.call(s,r.value,l,o)){a=!0,e=r.value;break}l++}return a?o.constructor([e]).concat(o):o.constructor([])},n.prototype.takeWhile=function(t){var e=n(this),r=arguments[1],o=0;if("[object Function]"!=i.prototype.toString.call(t))throw new TypeError;return new e.constructor((function(){if(!0!==e._iterationObject.done){var i=e.next().value;t.call(r,i,o++,e)?e._iterationObject.value=i:(e._iterationObject.done=!0,e._iterationObject.value=void 0)}return e._iterationObject}))},n.prototype.zipIterator=function(){return n.unzip(Array.prototype.concat.apply(this,arguments))},n.prototype.enumerateIterator=function(t){return n.count(t).zipIterator(this)},n.iterate=function(t){var e;return e=0,new n((function(){if("object"==typeof t)for(;!(e in t);){if(e>=t.length){this._iterationObject.done=!0,this._iterationObject.value=void 0;break}e+=1}else e>=t.length&&(this._iterationObject.done=!0,this._iterationObject.value=void 0);return this._iterationObject.done||(this._iterationObject.value=t[e],e+=1),this._iterationObject}))},n.cycle=function(t,e){var r;return arguments.length<2&&(e=1/0),new n((function(){var i,o;return r&&(o=r()),r&&!0!==o.done||(e>0?(e--,i=n.iterate(t),o=(r=i.next.bind(i))()):(this._iterationObject.done=!0,o=this._iterationObject)),o}))},n.concat=function(t){var e;return t=n(t),new n((function(){var r,i;return e&&(i=e()),i&&!0!==i.done?i:!1===(i=t.next()).done?(r=n(i.value),(e=r.next.bind(r))()):i}))},n.unzip=function(t){return 0===(t=n(t).map(n)).length?new n([]):new n((function(){var e,r,i=t.map((function(t){return!0===(r=t.next()).done&&(e=!0),r.value}));return e?(this._iterationObject.done=!0,this._iterationObject.value=void 0):this._iterationObject.value=i,this._iterationObject}))},n.zip=function(){return n.unzip(Array.prototype.slice.call(arguments))},n.chain=function(){return n.concat(Array.prototype.slice.call(arguments))},n.range=function(t,e,r){return arguments.length<3&&(r=1),arguments.length<2&&(e=t,t=0),t=t||0,r=r||1,new n((function(){t>=e&&(this._iterationObject.done=!0,this._iterationObject.value=void 0);var i=t;return t+=r,this._iterationObject.value=i,this._iterationObject}))},n.count=function(t,e){return n.range(t,1/0,e)},n.repeat=function(t,e){return new n.range(e).mapIterator((function(){return t}))}},6822:(t,e,r)=>{var i=r(29),o=t.exports.ObjectChangeDescriptor=function(t){return this.name=t,this.isActive=!1,this._willChangeListeners=null,this._changeListeners=null,this};Object.defineProperties(o.prototype,{name:{value:null,writable:!0},isActive:{value:!1,writable:!0},_willChangeListeners:{value:null,writable:!0},willChangeListeners:{get:function(){return this._willChangeListeners||(this._willChangeListeners=new this.willChangeListenersRecordConstructor(this.name))}},_changeListeners:{value:null,writable:!0},changeListeners:{get:function(){return this._changeListeners||(this._changeListeners=new this.changeListenersRecordConstructor(this.name))}},changeListenersRecordConstructor:{value:a,writable:!0},willChangeListenersRecordConstructor:{value:c,writable:!0}});var n=t.exports.ListenerGhost=Object.create(null),s=new i;function a(t){var e=s.get(t);return e||(e="handle",e+=t,e+="Change",s.set(t,e)),this._current=null,this._current=null,this.specificHandlerMethodName=e,this}t.exports.ChangeListenersRecord=a,Object.defineProperties(a.prototype,{_current:{value:null,writable:!0},current:{get:function(){return this._current},set:function(t){this._current=t}},ListenerGhost:{value:n,writable:!0},ghostCount:{value:0,writable:!0},maxListenerGhostRatio:{value:.3,writable:!0},listenerGhostFilter:{value:function(t){return t!==this.ListenerGhost}},removeCurrentGostListenersIfNeeded:{value:function(){return this._current&&this.ghostCount/this._current.length>this.maxListenerGhostRatio&&(this.ghostCount=0,this._current=this._current.filter(this.listenerGhostFilter,this)),this._current}},dispatchBeforeChange:{value:!1,writable:!0},genericHandlerMethodName:{value:"handlePropertyChange",writable:!0}}),t.exports.WillChangeListenersRecord=c;var l=new i;function c(t){var e=l.get(t);return e||(e="handle",e+=t,e+="WillChange",l.set(t,e)),this.specificHandlerMethodName=e,this}c.prototype=new a,c.prototype.constructor=c,c.prototype.genericHandlerMethodName="handlePropertyWillChange"},5955:(t,e,r)=>{function i(){throw new Error("This is an abstract interface. Mix it. Don't construct it")}Object.prototype.hasOwnProperty,t.exports=i,r(7157);var o=r(29),n=r(751),s=r(6822),a=s.ObjectChangeDescriptor,l=s.ListenerGhost;i.debug=!0;var c=new n,d=new o;function h(t,e,r,i){if(t&&t._current){var o,n,s,a,c,d=t.specificHandlerMethodName,h=t.genericHandlerMethodName,u=l;if(Array.isArray(t._current)){for(s=0,a=(o=t.removeCurrentGostListenersIfNeeded()).length;s<a;s++)if((c=o[s])!==u){if(!(n=c[d]||c[h]||c).call)throw new Error("No event listener for "+t.specificHandlerName+" or "+t.genericHandlerName+" or call on "+n);n.call(c,r,e,i)}}else{if(!(n=(c=t._current)[d]||c[h]||c).call)throw new Error("No event listener for "+t.specificHandlerName+" or "+t.genericHandlerName+" or call on "+n);n.call(c,r,e,i)}}}i.ObjectChangeDescriptor=function(){},i.prototype.getOwnPropertyChangeDescriptor=function(t){var e,r=c.get(this);if(r||(r=Object.create(null),c.set(this,r)),void 0===(e=r[t])){var i=d.get(t);return i||(i=(i=String(t))&&i[0].toUpperCase()+i.slice(1),d.set(t,i)),r[t]=new a(i)}return e},i.prototype.hasOwnPropertyChangeDescriptor=function(t){var e=c.get(this);return!(!e||t&&void 0===e[t])},i.prototype.addOwnPropertyChangeListener=function(t,e,r){this.makeObservable&&!this.isObservable&&this.makeObservable();var o=i.getOwnPropertyChangeDescriptor(this,t),n=r?o.willChangeListeners:o.changeListeners;i.makePropertyObservable(this,t),n._current?Array.isArray(n._current)?n._current.push(e):n._current=[n._current,e]:n._current=e;var s=this;return function(){i.removeOwnPropertyChangeListener(s,t,e,r),s=null}},i.prototype.addBeforeOwnPropertyChangeListener=function(t,e){return i.addOwnPropertyChangeListener(this,t,e,!0)},i.prototype.removeOwnPropertyChangeListener=function t(e,r,o){var n,s=i.getOwnPropertyChangeDescriptor(this,e);if((n=o?s._willChangeListeners:s._changeListeners)&&n._current)if(n._current===r)n._current=null;else{var a=n._current.lastIndexOf(r);if(-1===a)throw new Error("Can't remove property change listener: does not exist: property name"+JSON.stringify(e));s.isActive?(n.ghostCount=n.ghostCount+1,n._current[a]=t.ListenerGhost):n._current.spliceOne(a)}},i.prototype.removeOwnPropertyChangeListener.ListenerGhost=l,i.prototype.removeBeforeOwnPropertyChangeListener=function(t,e){return i.removeOwnPropertyChangeListener(this,t,e,!0)},i.prototype.dispatchOwnPropertyChange=function t(e,r,o){var n,s=i.getOwnPropertyChangeDescriptor(this,e);if(!s.isActive){s.isActive=!0,n=o?s._willChangeListeners:s._changeListeners;try{t.dispatchEach(n,e,r,this)}finally{s.isActive=!1}}},i.prototype.dispatchOwnPropertyChange.dispatchEach=h,h.ListenerGhost=l,i.prototype.dispatchBeforeOwnPropertyChange=function(t,e){return i.dispatchOwnPropertyChange(this,t,e,!0)};var u=new n,p=(new n,{get:void 0,set:void 0,configurable:!0,enumerable:!1});i.prototype.makePropertyObservable=function(t){var e=u.get(this);if(!e||void 0===e.get(t)){if(!e){if(Array.isArray(this))return;if(!Object.isExtensible(this))throw new Error("Can't make property "+JSON.stringify(t)+" observable on "+this+" because object is not extensible");e=new o,u.set(this,e)}var r,i=this;do{if(r=Object.getOwnPropertyDescriptor(i,t))break;i=Object.getPrototypeOf(i)}while(i);if(r){if(!r.configurable)return;if(!r.writable&&!r.set)return}else r={value:void 0,enumerable:!0,writable:!0,configurable:!0};e.set(t,r),"value"in r?(p.get=function t(){return t.overriddenDescriptor.value},p.set=function t(e){var r,i,o=t.overriddenDescriptor;if(e!==o.value){if(!(i=(r=t.descriptor).isActive)){r.isActive=!0;try{t.dispatchEach(r._willChangeListeners,t.key,o.value,this)}finally{}}if(o.value=e,!i)try{t.dispatchEach(r._changeListeners,t.key,e,this)}finally{r.isActive=!1}}},p.set.dispatchEach=h,p.set.key=t,p.get.overriddenDescriptor=p.set.overriddenDescriptor=r,p.set.descriptor=c.get(this)[t],p.enumerable=r.enumerable,p.configurable=!0):(p.get=r.get,p.set=function e(){var r,i,o,n=e.overriddenGetter.call(this);if(1===arguments.length?e.overriddenSetter.call(this,arguments[0]):2===arguments.length?e.overriddenSetter.call(this,arguments[0],arguments[1]):e.overriddenSetter.apply(this,arguments),(o=e.overriddenGetter.call(this))!==n){if(!(i=(r=e.descriptor).isActive)){r.isActive=!0;try{e.dispatchEach(r._willChangeListeners,t,n,this)}finally{}}if(!i)try{e.dispatchEach(r._changeListeners,t,o,this)}finally{r.isActive=!1}}},p.enumerable=r.enumerable,p.configurable=!0,p.set.dispatchEach=h,p.set.overriddenSetter=r.set,p.set.overriddenGetter=r.get,p.set.descriptor=c.get(this)[t]),Object.defineProperty(this,t,p)}},i.getOwnPropertyChangeDescriptor=function(t,e){return t.getOwnPropertyChangeDescriptor?t.getOwnPropertyChangeDescriptor(e):i.prototype.getOwnPropertyChangeDescriptor.call(t,e)},i.hasOwnPropertyChangeDescriptor=function(t,e){return t.hasOwnPropertyChangeDescriptor?t.hasOwnPropertyChangeDescriptor(e):i.prototype.hasOwnPropertyChangeDescriptor.call(t,e)},i.addOwnPropertyChangeListener=function(t,e,r,i){if(Object.isObject(t))return t.addOwnPropertyChangeListener?t.addOwnPropertyChangeListener(e,r,i):this.prototype.addOwnPropertyChangeListener.call(t,e,r,i)},i.removeOwnPropertyChangeListener=function(t,e,r,o){if(Object.isObject(t))return t.removeOwnPropertyChangeListener?t.removeOwnPropertyChangeListener(e,r,o):i.prototype.removeOwnPropertyChangeListener.call(t,e,r,o)},i.dispatchOwnPropertyChange=function(t,e,r,o){if(Object.isObject(t))return t.dispatchOwnPropertyChange?t.dispatchOwnPropertyChange(e,r,o):i.prototype.dispatchOwnPropertyChange.call(t,e,r,o)},i.addBeforeOwnPropertyChangeListener=function(t,e,r){return i.addOwnPropertyChangeListener(t,e,r,!0)},i.removeBeforeOwnPropertyChangeListener=function(t,e,r){return i.removeOwnPropertyChangeListener(t,e,r,!0)},i.dispatchBeforeOwnPropertyChange=function(t,e,r){return i.dispatchOwnPropertyChange(t,e,r,!0)},i.makePropertyObservable=function(t,e){return t.makePropertyObservable?t.makePropertyObservable(e):i.prototype.makePropertyObservable.call(t,e)}},8977:(t,e,r)=>{"use strict";var i=r(751),o=r(29),n=r(6822),s=n.ObjectChangeDescriptor,a=n.ChangeListenersRecord,l=n.ListenerGhost,c=new i;function d(t){this.name=t,this.isActive=!1,this._willChangeListeners=null,this._changeListeners=null}d.prototype=new s,d.prototype.constructor=d,d.prototype.changeListenersRecordConstructor=u,d.prototype.willChangeListenersRecordConstructor=g,Object.defineProperty(d.prototype,"active",{get:function(){return this._active||(this._active=this._current?this._current.slice():[])}});var h=new o;function u(t){var e=h.get(t);return e||(e="handle",e+=t.slice(0,1).toUpperCase(),e+=t.slice(1),e+="RangeChange",h.set(t,e)),this.specificHandlerMethodName=e,this}u.prototype=new a,u.prototype.constructor=u;var p=new o;function g(t){var e=p.get(t);return e||(e="handle",e+=t.slice(0,1).toUpperCase(),e+=t.slice(1),e+="RangeWillChange",p.set(t,e)),this.specificHandlerMethodName=e,this}function m(){throw new Error("Can't construct. RangeChanges is a mixin.")}g.prototype=new a,g.prototype.constructor=g,t.exports=m,m.prototype.getAllRangeChangeDescriptors=function(){return c.has(this)||c.set(this,new o),c.get(this)},m.prototype.getRangeChangeDescriptor=function(t){var e=this.getAllRangeChangeDescriptors();return t=t||"",e.has(t)||e.set(t,new d(t)),e.get(t)};var f=new i,b="dispatchesRangeChanges",v={get:function(){return f.get(this)},set:function(t){return f.set(this,t)},configurable:!0,enumerable:!1};m.prototype.addRangeChangeListener=function(t,e,r){!this.isObservable&&this.makeObservable&&this.makeObservable();var i,o=this.getRangeChangeDescriptor(e);(i=r?o.willChangeListeners:o.changeListeners)._current?Array.isArray(i._current)?i._current.push(t):i._current=[i._current,t]:i._current=t,void 0===Object.getOwnPropertyDescriptor(this.__proto__||Object.getPrototypeOf(this),b)&&Object.defineProperty(this.__proto__||Object.getPrototypeOf(this),b,v),this.dispatchesRangeChanges=!0;var n=this;return function(){n&&(n.removeRangeChangeListener(t,e,r),n=null)}},m.prototype.removeRangeChangeListener=function(t,e,r){var i,o=this.getRangeChangeDescriptor(e);if((i=r?o._willChangeListeners:o._changeListeners)._current)if(i._current===t)i._current=null;else{var n=i._current.lastIndexOf(t);if(-1===n)throw new Error("Can't remove range change listener: does not exist: token "+JSON.stringify(e));o.isActive?(i.ghostCount=i.ghostCount+1,i._current[n]=l):i._current.spliceOne(n)}},m.prototype.dispatchRangeChange=function(t,e,r,i){var o,n,s,a,c,d,h,u,p=this.getAllRangeChangeDescriptors(),g=p.values();for(p.dispatchBeforeChange=i;o=g.next().value;){if(o.isActive)return;if((n=i?o._willChangeListeners:o._changeListeners)&&n._current)if(s=n.specificHandlerMethodName,Array.isArray(n._current)){if(n._current.length){o.isActive=!0;try{for(h=n.removeCurrentGostListenersIfNeeded(),u=l,a=0,c=h.length;a<c;a++)if((d=h[a])!==u)if(d[s])d[s](t,e,r,this,i);else{if(!d.call)throw new Error("Handler "+d+" has no method "+s+" and is not callable");d.call(this,t,e,r,this,i)}}finally{o.isActive=!1}}}else{o.isActive=!0;try{if((d=n._current)[s])d[s](t,e,r,this,i);else{if(!d.call)throw new Error("Handler "+d+" has no method "+s+" and is not callable");d.call(this,t,e,r,this,i)}}finally{o.isActive=!1}}}},m.prototype.addBeforeRangeChangeListener=function(t,e){return this.addRangeChangeListener(t,e,!0)},m.prototype.removeBeforeRangeChangeListener=function(t,e){return this.removeRangeChangeListener(t,e,!0)},m.prototype.dispatchBeforeRangeChange=function(t,e,r){return this.dispatchRangeChange(t,e,r,!0)}},81:(t,e,r)=>{"use strict";r(266);var i=r(2608),o=r(7358),n=r(751);t.exports=Array;var s=Array.prototype.splice,a=Array.prototype.slice;Array.empty||(Array.empty=[],Object.freeze&&Object.freeze(Array.empty)),Array.nativeFrom||(Array.nativeFrom=Array.from);var l="undefined"!=typeof Symbol;function c(t,e){Object.defineProperty(Array.prototype,t,{value:e,writable:!0,configurable:!0,enumerable:!1})}Array.from=function(t,e,r){if(l&&t&&("function"==typeof t[Symbol.iterator]||"function"==typeof e))return Array.nativeFrom(t,e,r);var i=[];return i.addEach(t),i},Array.unzip=function(t){for(var e=[],r=1/0,i=0;i<t.length;i++){var o=t[i];t[i]=o.toArray(),o.length<r&&(r=o.length)}for(i=0;i<t.length;i++){o=t[i];for(var n=0;n<o.length;n++)n<r&&n in o&&(e[n]=e[n]||[],e[n][i]=o[n])}return e},c("addEach",i.prototype.addEach),c("deleteEach",i.prototype.deleteEach),c("toArray",i.prototype.toArray),c("toObject",i.prototype.toObject),c("all",i.prototype.all),c("any",i.prototype.any),c("min",i.prototype.min),c("max",i.prototype.max),c("sum",i.prototype.sum),c("average",i.prototype.average),c("only",i.prototype.only),c("flatten",i.prototype.flatten),c("zip",i.prototype.zip),c("enumerate",i.prototype.enumerate),c("group",i.prototype.group),c("sorted",i.prototype.sorted),c("reversed",i.prototype.reversed),c("constructClone",(function(t){var e=new this.constructor;return e.addEach(t),e})),c("has",(function(t,e){return-1!==this.findValue(t,e)})),c("get",(function(t,e){if(+t!==t)throw new Error("Indicies must be numbers");return!t in this?e:this[t]})),c("set",(function(t,e){return this[t]=e,!0})),c("add",(function(t){return this.push(t),!0})),c("delete",(function(t,e){var r=this.findValue(t,e);return-1!==r&&(this.spliceOne(r),!0)})),c("deleteAll",(function(t,e){e=e||this.contentEquals||Object.equals;for(var r=0,i=0;i<this.length;)e(t,this[i])?(this.swap(i,1),r++):i++;return r})),Array.prototype.find||c("find",(function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),r=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],o=0;o<r;){var n=e[o];if(t.call(i,n,o,e))return n;o++}}));var d={};function h(t,e){"undefined"!=typeof console&&"function"==typeof console.warn&&!0!==e&&!1===d.hasOwnProperty(t)&&(console.warn(t),d[t]++)}var u=Object.getOwnPropertyDescriptor(Array.prototype,"find").value;function p(t,e,r){this.array=t,this.start=null==e?0:e,this.end=r}c("find",(function(t,e,r){return"function"==typeof arguments[0]&&this instanceof Array?u.apply(this,arguments):(h("Array#find usage is deprecated please use Array#findValue"),this.findValue.apply(this,arguments))})),c("findValue",(function(t,e,r){if(r)throw new Error("Array#findValue does not support third argument: index");for(e=e||this.contentEquals||Object.equals,r=0;r<this.length;r++)if(r in this&&e(t,this[r]))return r;return-1})),c("findLast",(function(t,e){return h("Array#findLast function is deprecated please use Array#findLastValue instead."),this.findLastValue.apply(this,arguments)})),c("findLastValue",(function(t,e){e=e||this.contentEquals||Object.equals;var r=this.length;do{if(--r in this&&e(this[r],t))return r}while(r>0);return-1})),c("swap",(function(t,e,r){var i,o,n,l,c;if(t>this.length&&(this.length=t),void 0!==r){if(i=[t,e],Array.isArray(r)||(r=a.call(r)),n=0,(o=r.length)<1e3){for(;n<o;n++)i[n+2]=r[n];return s.apply(this,i)}for(c=s.apply(this,i);n<o;){for(i=[t+n,0],l=2;l<1002&&n<o;l++,n++)i[l]=r[n];s.apply(this,i)}return c}return void 0!==e?s.call(this,t,e):void 0!==t?s.call(this,t):[]})),c("peek",(function(){return this[0]})),c("poke",(function(t){this.length>0&&(this[0]=t)})),c("peekBack",(function(){if(this.length>0)return this[this.length-1]})),c("pokeBack",(function(t){this.length>0&&(this[this.length-1]=t)})),c("one",(function(){for(var t in this)if(Object.owns(this,t))return this[t]})),Array.prototype.clear||c("clear",(function(){return this.length=0,this})),c("compare",(function(t,e){var r,i,n;if(e=e||Object.compare,this===t)return 0;if(!t||!Array.isArray(t))return o.prototype.compare.call(this,t,e);for(i=this.length<t.length?this.length:t.length,r=0;r<i;r++)if(r in this){if(!(r in t))return-1;if(n=e(this[r],t[r]))return n}else if(r in t)return 1;return this.length-t.length})),c("equals",(function(t,e){e=e||Object.equals;var r=0,i=this.length;if(this===t)return!0;if(!t||!Array.isArray(t))return o.prototype.equals.call(this,t);if(i!==t.length)return!1;for(;r<i;++r)if(r in this){if(!(r in t))return!1;if(!e(this[r],t[r]))return!1}else if(r in t)return!1;return!0})),c("clone",(function(t,e){if(null==t)t=1/0;else if(0===t)return this;if((e=e||new n).has(this))return e.get(this);var r=new Array(this.length);for(var i in e.set(this,r),this)r[i]=Object.clone(this[i],t-1,e);return r})),c("iterate",(function(t,e){return new p(this,t,e)})),void 0===Array.prototype.spliceOne&&c("spliceOne",(function(t,e){var r=this.length;if(r)if(1===arguments.length){for(;t<r;)this[t]=this[t+1],t++;this.length--}else this[t]=e})),c("Iterator",p),p.prototype.__iterationObject=null,Object.defineProperty(p.prototype,"_iterationObject",{get:function(){return this.__iterationObject||(this.__iterationObject={done:!1,value:null})}}),p.prototype.next=function(){return this.start===(null==this.end?this.array.length:this.end)?(this._iterationObject.done=!0,this._iterationObject.value=void 0):this._iterationObject.value=this.array[this.start++],this._iterationObject}},266:t=>{t.exports=Function,Function.noop=function(){},Function.identity=function(t){return t},Function.by=function(t,e){e=e||Object.compare,t=t||Function.ident