gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
121 lines • 999 kB
JavaScript
/*
* GoJS v2.1.56 JavaScript Library for HTML Diagrams, https://gojs.net
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation, https://www.nwoods.com.
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/2.1.56/license.html.
* DO NOT MODIFY THIS FILE. DO NOT DISTRIBUTE A MODIFIED COPY OF THE CONTENTS OF THIS FILE.
*/
(function() { var t;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function da(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ea="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},fa;
if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var la=fa;
function ma(a,b){a.prototype=ea(b.prototype);a.prototype.constructor=a;if(la)la(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.QB=b.prototype}var na="undefined"!=typeof global&&null!=global?global:self,oa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
function pa(a){if(a){for(var b=na,c=["Array","prototype","fill"],d=0;d<c.length-1;d++){var e=c[d];e in b||(b[e]={});b=b[e]}c=c[c.length-1];d=b[c];a=a(d);a!=d&&null!=a&&oa(b,c,{configurable:!0,writable:!0,value:a})}}pa(function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});var qa="object"===typeof globalThis&&globalThis||"object"===typeof global&&global.global===global&&global||"object"===typeof self&&self.self===self&&self||{};void 0===qa.requestAnimationFrame&&(void 0===qa.setImmediate?qa.requestAnimationFrame=function(a){qa.setTimeout(a,0)}:qa.requestAnimationFrame=qa.setImmediate);function ra(){}function sa(a,b){var c=-1;return function(){var d=this,e=arguments;-1!==c&&qa.clearTimeout(c);c=ta(function(){c=-1;a.apply(d,e)},b)}}
function ta(a,b){return qa.setTimeout(a,b)}function ua(a){return qa.document.createElement(a)}function v(a){throw Error(a);}function va(a,b){a="The object is frozen, so its properties cannot be set: "+a.toString();void 0!==b&&(a+=" to value: "+b);v(a)}function w(a,b,c,d){a instanceof b||(c=wa(c),void 0!==d&&(c+="."+d),ya(a,b,c))}function A(a,b,c,d){typeof a!==b&&(c=wa(c),void 0!==d&&(c+="."+d),ya(a,b,c))}
function C(a,b,c){"number"===typeof a&&isFinite(a)||(b=wa(b),void 0!==c&&(b+="."+c),v(b+" must be a real number type, and not NaN or Infinity: "+a))}function ya(a,b,c,d){b=wa(b);c=wa(c);void 0!==d&&(c+="."+d);"string"===typeof a?v(c+" value is not an instance of "+b+': "'+a+'"'):v(c+" value is not an instance of "+b+": "+a)}function za(a,b,c,d){c=wa(c);void 0!==d&&(c+="."+d);v(c+" is not in the range "+b+": "+a)}
function Ba(a){v(("string"===typeof a.className?a.className:"")+" constructor cannot take any arguments.")}function Ca(a){v("Collection was modified during iteration: "+a.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")}function Da(a,b){v("No property to set for this enum value: "+b+" on "+a.toString())}function Ea(a){qa.console&&qa.console.log(a)}
function Fa(){qa.console&&qa.console.log("Warning: List/Map/Set constructors no longer take an argument that enforces type.Instead they take an optional collection of Values to add to the collection. See 2.0 changelog for details.")}function Ga(a){return"object"===typeof a&&null!==a}function Ha(a){return Array.isArray(a)||qa.NodeList&&a instanceof qa.NodeList||qa.HTMLCollection&&a instanceof qa.HTMLCollection}function Ia(a,b,c){Ha(a)||ya(a,"Array or NodeList or HTMLCollection",b,c)}
function Ja(a){return Array.prototype.slice.call(a)}function Ka(a,b,c){Array.isArray(a)?b>=a.length?a.push(c):a.splice(b,0,c):v("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)}function La(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):v("Cannot remove an object from an HTMLCollection or NodeList at "+b)}function Ma(){var a=Na.pop();return void 0===a?[]:a}function Oa(a){a.length=0;Na.push(a)}
function wa(a){return null===a?"*":"string"===typeof a?a:"function"===typeof a&&"string"===typeof a.className?a.className:""}function Pa(a){if("function"===typeof a){if(a.className)return a.className;if(a.name)return a.name;var b=a.toString();b=b.substring(9,b.indexOf("(")).trim();if(""!==b)return a._className=b}else if(Ga(a)&&a.constructor)return Pa(a.constructor);return typeof a}
function Qa(a){var b=a;Ga(a)&&(a.text?b=a.text:a.name?b=a.name:void 0!==a.key?b=a.key:void 0!==a.id?b=a.id:a.constructor===Object&&(a.Text?b=a.Text:a.Name?b=a.Name:void 0!==a.Key?b=a.Key:void 0!==a.Id?b=a.Id:void 0!==a.ID&&(b=a.ID)));return void 0===b?"undefined":null===b?"null":b.toString()}function Ra(a,b){if(a.hasOwnProperty(b))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(b))return!0;var c=a.HB;if(c&&c[b])return!0;a=Object.getPrototypeOf(a)}return!1}
function Sa(a,b,c){Object.defineProperty(Ta.prototype,a,{get:b,set:c})}
function Va(a){for(var b=[],c=0;256>c;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);c=[];for(var d=0,e=0;e<a.length;e+=2)c[d++]=b[a.substr(e,2)];a=c.join("");a=""===a?"0":a;b=[];for(c=0;256>c;c++)b[c]=c;for(c=d=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;d=c=0;for(var f="",g=0;g<a.length;g++)c=(c+1)%256,d=(d+b[c])%256,e=b[c],b[c]=b[d],b[d]=e,f+=String.fromCharCode(a.charCodeAt(g)^b[(b[c]+b[d])%256]);return f}
var Wa=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 9.0"),Za=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 10.0"),$a=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Trident/7"),ab=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Edge/"),cb=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&0<=qa.navigator.platform.toUpperCase().indexOf("MAC"),db=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&null!==qa.navigator.platform.match(/(iPhone|iPod|iPad)/i),
Na=[];Object.freeze([]);ra.className="Util";ra.Dx="32ab5ff3b26f42dc0ed90f21452913b5";ra.adym="gojs.net";ra.vfo="28e647fdb660";ra.className="Util";function E(a,b,c){eb(this);this.l=a;this.va=b;this.w=c}E.prototype.toString=function(){return"EnumValue."+this.va};function fb(a,b){return void 0===b||null===b||""===b?null:a[b]}function gb(a,b,c,d){a.classType!==b&&(c=wa(c),void 0!==d&&(c+="."+d),ya(a,"function"==="a constant of class "+typeof b.className?b.className:"",c))}
na.Object.defineProperties(E.prototype,{classType:{configurable:!0,get:function(){return this.l}},name:{configurable:!0,get:function(){return this.va}},value:{configurable:!0,get:function(){return this.w}}});E.className="EnumValue";function hb(){this.Gx=[]}hb.prototype.toString=function(){return this.Gx.join("")};hb.prototype.add=function(a){""!==a&&this.Gx.push(a)};hb.className="StringBuilder";function ib(){}ib.className="PropertyCollection";
var F={Jm:!1,Cy:!1,iA:!1,KB:!1,OB:!1,Sy:!1,By:!1,IB:null,trace:function(a){qa.console&&qa.console.log(a)},JB:function(a,b,c,d){a.strokeStyle="red";a.fillStyle="red";a.font="8px sans-serif";a.beginPath();a.moveTo(-10,0);a.lineTo(10,0);a.moveTo(0,-10);a.lineTo(0,10);a.stroke();a.setTransform(1,0,0,1,0,0);a.scale(c,c);a.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy);a.lineWidth=2;a.beginPath();a.moveTo(d.left,d.top+20);a.lineTo(d.left,d.top);a.lineTo(d.left+20,d.top);a.moveTo(d.right,d.bottom-20);a.lineTo(d.right,
d.bottom);a.lineTo(d.right-20,d.bottom);a.stroke();a.fillText("DB: "+Math.round(d.x)+", "+Math.round(d.y)+", "+Math.round(d.width)+", "+Math.round(d.height),d.left,d.top-5)},Nz:function(a){var b={},c;for(c in a){b.x=c;if("licenseKey"!==b.x){var d=a[b.x];if(void 0!==d.prototype){b.Xm=Object.getOwnPropertyNames(d.prototype);for(var e={Mk:0};e.Mk<b.Xm.length;e={Mk:e.Mk},e.Mk++){var f=Object.getOwnPropertyDescriptor(d.prototype,b.Xm[e.Mk]);void 0!==f.get&&void 0===f.set&&Object.defineProperty(d.prototype,
b.Xm[e.Mk],{set:function(a,b){return function(){throw Error("Property "+a.Xm[b.Mk]+" of "+a.x+" is read-only.");}}(b,e)})}}}b={Xm:b.Xm,x:b.x}}}};function jb(){}jb.prototype.reset=function(){};jb.prototype.next=function(){return!1};jb.prototype.xd=function(){return!1};jb.prototype.first=function(){return null};jb.prototype.any=function(){return!1};jb.prototype.all=function(){return!0};jb.prototype.each=function(){return this};jb.prototype.map=function(){return this};jb.prototype.filter=function(){return this};
jb.prototype.Yd=function(){};jb.prototype.toString=function(){return"EmptyIterator"};na.Object.defineProperties(jb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 0}}});jb.prototype.first=jb.prototype.first;jb.prototype.hasNext=jb.prototype.xd;jb.prototype.next=jb.prototype.next;jb.prototype.reset=jb.prototype.reset;var kb=null;jb.className="EmptyIterator";kb=new jb;function lb(a){this.key=-1;this.value=a}
lb.prototype.reset=function(){this.key=-1};lb.prototype.next=function(){return-1===this.key?(this.key=0,!0):!1};lb.prototype.xd=function(){return this.next()};lb.prototype.first=function(){this.key=0;return this.value};lb.prototype.any=function(a){this.key=-1;return a(this.value)};lb.prototype.all=function(a){this.key=-1;return a(this.value)};lb.prototype.each=function(a){this.key=-1;a(this.value);return this};lb.prototype.map=function(a){return new lb(a(this.value))};
lb.prototype.filter=function(a){return a(this.value)?new lb(this.value):kb};lb.prototype.Yd=function(){this.value=null};lb.prototype.toString=function(){return"SingletonIterator("+this.value+")"};na.Object.defineProperties(lb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 1}}});lb.prototype.first=lb.prototype.first;lb.prototype.hasNext=lb.prototype.xd;lb.prototype.next=lb.prototype.next;
lb.prototype.reset=lb.prototype.reset;lb.className="SingletonIterator";function mb(a){this.zb=a;this.tf=null;a.Ma=null;this.oa=a.v;this.Xa=-1}mb.prototype.reset=function(){var a=this.zb;a.Ma=null;this.oa=a.v;this.Xa=-1};mb.prototype.next=function(){var a=this.zb;if(a.v!==this.oa){if(0>this.key)return!1;Ca(a)}a=a.j;var b=a.length,c=++this.Xa,d=this.tf;if(null!==d)for(;c<b;){var e=a[c];if(d(e))return this.key=this.Xa=c,this.value=e,!0;c++}else{if(c<b)return this.key=c,this.value=a[c],!0;this.Yd()}return!1};
mb.prototype.xd=function(){return this.next()};mb.prototype.first=function(){var a=this.zb;this.oa=a.v;this.Xa=0;a=a.j;var b=a.length,c=this.tf;if(null!==c){for(var d=0;d<b;){var e=a[d];if(c(e))return this.key=this.Xa=d,this.value=e;d++}return null}return 0<b?(a=a[0],this.key=0,this.value=a):null};mb.prototype.any=function(a){var b=this.zb;b.Ma=null;var c=b.v;this.Xa=-1;for(var d=b.j,e=d.length,f=this.tf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(a(h))return!0;b.v!==c&&Ca(b)}}return!1};
mb.prototype.all=function(a){var b=this.zb;b.Ma=null;var c=b.v;this.Xa=-1;for(var d=b.j,e=d.length,f=this.tf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(!a(h))return!1;b.v!==c&&Ca(b)}}return!0};mb.prototype.each=function(a){var b=this.zb;b.Ma=null;var c=b.v;this.Xa=-1;for(var d=b.j,e=d.length,f=this.tf,g=0;g<e;g++){var h=d[g];if(null===f||f(h))a(h),b.v!==c&&Ca(b)}return this};
mb.prototype.map=function(a){var b=this.zb;b.Ma=null;var c=b.v;this.Xa=-1;for(var d=[],e=b.j,f=e.length,g=this.tf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))d.push(a(k)),b.v!==c&&Ca(b)}a=new H;a.j=d;a.ub();return a.iterator};mb.prototype.filter=function(a){var b=this.zb;b.Ma=null;var c=b.v;this.Xa=-1;for(var d=[],e=b.j,f=e.length,g=this.tf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))a(k)&&d.push(k),b.v!==c&&Ca(b)}a=new H;a.j=d;a.ub();return a.iterator};
mb.prototype.Yd=function(){this.key=-1;this.value=null;this.oa=-1;this.tf=null;this.zb.Ma=this};mb.prototype.toString=function(){return"ListIterator@"+this.Xa+"/"+this.zb.count};
na.Object.defineProperties(mb.prototype,{iterator:{configurable:!0,get:function(){return this}},predicate:{configurable:!0,get:function(){return this.tf},set:function(a){this.tf=a}},count:{configurable:!0,get:function(){var a=this.tf;if(null!==a){for(var b=0,c=this.zb.j,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.zb.j.length}}});mb.prototype.first=mb.prototype.first;mb.prototype.hasNext=mb.prototype.xd;mb.prototype.next=mb.prototype.next;
mb.prototype.reset=mb.prototype.reset;mb.className="ListIterator";function nb(a){this.zb=a;a.sh=null;this.oa=a.v;this.Xa=a.j.length}nb.prototype.reset=function(){var a=this.zb;a.sh=null;this.oa=a.v;this.Xa=a.j.length};nb.prototype.next=function(){var a=this.zb;if(a.v!==this.oa){if(0>this.key)return!1;Ca(a)}var b=--this.Xa;if(0<=b)return this.key=b,this.value=a.j[b],!0;this.Yd();return!1};nb.prototype.xd=function(){return this.next()};
nb.prototype.first=function(){var a=this.zb;this.oa=a.v;var b=a.j;this.Xa=a=b.length-1;return 0<=a?(b=b[a],this.key=a,this.value=b):null};nb.prototype.any=function(a){var b=this.zb;b.sh=null;var c=b.v,d=b.j,e=d.length;this.Xa=e;for(--e;0<=e;e--){if(a(d[e]))return!0;b.v!==c&&Ca(b)}return!1};nb.prototype.all=function(a){var b=this.zb;b.sh=null;var c=b.v,d=b.j,e=d.length;this.Xa=e;for(--e;0<=e;e--){if(!a(d[e]))return!1;b.v!==c&&Ca(b)}return!0};
nb.prototype.each=function(a){var b=this.zb;b.sh=null;var c=b.v,d=b.j,e=d.length;this.Xa=e;for(--e;0<=e;e--)a(d[e]),b.v!==c&&Ca(b);return this};nb.prototype.map=function(a){var b=this.zb;b.sh=null;var c=b.v,d=[],e=b.j,f=e.length;this.Xa=f;for(--f;0<=f;f--)d.push(a(e[f])),b.v!==c&&Ca(b);a=new H;a.j=d;a.ub();return a.iterator};
nb.prototype.filter=function(a){var b=this.zb;b.sh=null;var c=b.v,d=[],e=b.j,f=e.length;this.Xa=f;for(--f;0<=f;f--){var g=e[f];a(g)&&d.push(g);b.v!==c&&Ca(b)}a=new H;a.j=d;a.ub();return a.iterator};nb.prototype.Yd=function(){this.key=-1;this.value=null;this.oa=-1;this.zb.sh=this};nb.prototype.toString=function(){return"ListIteratorBackwards("+this.Xa+"/"+this.zb.count+")"};
na.Object.defineProperties(nb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.zb.j.length}}});nb.prototype.first=nb.prototype.first;nb.prototype.hasNext=nb.prototype.xd;nb.prototype.next=nb.prototype.next;nb.prototype.reset=nb.prototype.reset;nb.className="ListIteratorBackwards";
function H(a){eb(this);this.s=!1;this.j=[];this.v=0;this.sh=this.Ma=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Fa():this.addAll(a))}t=H.prototype;t.ub=function(){var a=this.v;a++;999999999<a&&(a=0);this.v=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"List()#"+ob(this)};t.add=function(a){if(null===a)return this;this.s&&va(this,a);this.j.push(a);this.ub();return this};t.push=function(a){this.add(a)};
t.addAll=function(a){if(null===a)return this;this.s&&va(this);var b=this.j;if(Ha(a))for(var c=a.length,d=0;d<c;d++)b.push(a[d]);else for(a=a.iterator;a.next();)b.push(a.value);this.ub();return this};t.clear=function(){this.s&&va(this);this.j.length=0;this.ub()};t.contains=function(a){return null===a?!1:-1!==this.j.indexOf(a)};t.has=function(a){return this.contains(a)};t.indexOf=function(a){return null===a?-1:this.j.indexOf(a)};
t.M=function(a){F&&C(a,H,"elt:i");var b=this.j;(0>a||a>=b.length)&&za(a,"0 <= i < length",H,"elt:i");return b[a]};t.get=function(a){return this.M(a)};t.Vc=function(a,b){F&&C(a,H,"setElt:i");var c=this.j;(0>a||a>=c.length)&&za(a,"0 <= i < length",H,"setElt:i");this.s&&va(this,a);c[a]=b};t.set=function(a,b){this.Vc(a,b)};t.first=function(){var a=this.j;return 0===a.length?null:a[0]};t.cc=function(){var a=this.j,b=a.length;return 0<b?a[b-1]:null};
t.pop=function(){this.s&&va(this);var a=this.j;return 0<a.length?a.pop():null};H.prototype.any=function(a){for(var b=this.j,c=this.v,d=b.length,e=0;e<d;e++){if(a(b[e]))return!0;this.v!==c&&Ca(this)}return!1};H.prototype.all=function(a){for(var b=this.j,c=this.v,d=b.length,e=0;e<d;e++){if(!a(b[e]))return!1;this.v!==c&&Ca(this)}return!0};H.prototype.each=function(a){for(var b=this.j,c=this.v,d=b.length,e=0;e<d;e++)a(b[e]),this.v!==c&&Ca(this);return this};
H.prototype.map=function(a){for(var b=new H,c=[],d=this.j,e=this.v,f=d.length,g=0;g<f;g++)c.push(a(d[g])),this.v!==e&&Ca(this);b.j=c;b.ub();return b};H.prototype.filter=function(a){for(var b=new H,c=[],d=this.j,e=this.v,f=d.length,g=0;g<f;g++){var h=d[g];a(h)&&c.push(h);this.v!==e&&Ca(this)}b.j=c;b.ub();return b};t=H.prototype;t.Bb=function(a,b){F&&C(a,H,"insertAt:i");0>a&&za(a,">= 0",H,"insertAt:i");this.s&&va(this,a);var c=this.j;a>=c.length?c.push(b):c.splice(a,0,b);this.ub()};
t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=this.j;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.ub();return!0};t.delete=function(a){return this.remove(a)};t.jb=function(a){F&&C(a,H,"removeAt:i");var b=this.j;(0>a||a>=b.length)&&za(a,"0 <= i < length",H,"removeAt:i");this.s&&va(this,a);a===b.length-1?b.pop():b.splice(a,1);this.ub()};
t.removeRange=function(a,b){F&&(C(a,H,"removeRange:from"),C(b,H,"removeRange:to"));var c=this.j,d=c.length;if(0>a)a=0;else if(a>=d)return this;if(0>b)return this;b>=d&&(b=d-1);if(a>b)return this;this.s&&va(this);for(var e=a,f=b+1;f<d;)c[e++]=c[f++];c.length=d-(b-a+1);this.ub();return this};H.prototype.copy=function(){var a=new H,b=this.j;0<b.length&&(a.j=Array.prototype.slice.call(b));return a};t=H.prototype;t.ta=function(){for(var a=this.j,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c};
t.Zw=function(){for(var a=new I,b=this.j,c=this.count,d=0;d<c;d++)a.add(b[d]);return a};t.sort=function(a){F&&A(a,"function",H,"sort:sortfunc");this.s&&va(this);this.j.sort(a);this.ub();return this};
t.Gj=function(a,b,c){var d=this.j,e=d.length;void 0===b&&(b=0);void 0===c&&(c=e);F&&(A(a,"function",H,"sortRange:sortfunc"),C(b,H,"sortRange:from"),C(c,H,"sortRange:to"));this.s&&va(this);var f=c-b;if(1>=f)return this;(0>b||b>=e-1)&&za(b,"0 <= from < length",H,"sortRange:from");if(2===f)return c=d[b],e=d[b+1],0<a(c,e)&&(d[b]=e,d[b+1]=c,this.ub()),this;if(0===b)if(c>=e)d.sort(a);else for(b=d.slice(0,c),b.sort(a),a=0;a<c;a++)d[a]=b[a];else if(c>=e)for(c=d.slice(b),c.sort(a),a=b;a<e;a++)d[a]=c[a-b];
else for(e=d.slice(b,c),e.sort(a),a=b;a<c;a++)d[a]=e[a-b];this.ub();return this};t.reverse=function(){this.s&&va(this);this.j.reverse();this.ub();return this};
na.Object.defineProperties(H.prototype,{_dataArray:{configurable:!0,get:function(){return this.j}},count:{configurable:!0,get:function(){return this.j.length}},size:{configurable:!0,get:function(){return this.j.length}},length:{configurable:!0,get:function(){return this.j.length}},iterator:{configurable:!0,get:function(){if(0>=this.j.length)return kb;var a=this.Ma;return null!==a?(a.reset(),a):new mb(this)}},iteratorBackwards:{configurable:!0,
enumerable:!0,get:function(){if(0>=this.j.length)return kb;var a=this.sh;return null!==a?(a.reset(),a):new nb(this)}}});H.prototype.reverse=H.prototype.reverse;H.prototype.sortRange=H.prototype.Gj;H.prototype.sort=H.prototype.sort;H.prototype.toSet=H.prototype.Zw;H.prototype.toArray=H.prototype.ta;H.prototype.removeRange=H.prototype.removeRange;H.prototype.removeAt=H.prototype.jb;H.prototype["delete"]=H.prototype.delete;H.prototype.remove=H.prototype.remove;H.prototype.insertAt=H.prototype.Bb;
H.prototype.pop=H.prototype.pop;H.prototype.last=H.prototype.cc;H.prototype.first=H.prototype.first;H.prototype.set=H.prototype.set;H.prototype.setElt=H.prototype.Vc;H.prototype.get=H.prototype.get;H.prototype.elt=H.prototype.M;H.prototype.indexOf=H.prototype.indexOf;H.prototype.has=H.prototype.has;H.prototype.contains=H.prototype.contains;H.prototype.clear=H.prototype.clear;H.prototype.addAll=H.prototype.addAll;H.prototype.push=H.prototype.push;H.prototype.add=H.prototype.add;H.prototype.thaw=H.prototype.ka;
H.prototype.freeze=H.prototype.freeze;H.className="List";function pb(a){this.Fg=a;a.Ma=null;this.oa=a.v;this.qa=null}pb.prototype.reset=function(){var a=this.Fg;a.Ma=null;this.oa=a.v;this.qa=null};pb.prototype.next=function(){var a=this.Fg;if(a.v!==this.oa){if(null===this.key)return!1;Ca(a)}var b=this.qa;b=null===b?a.ga:b.wa;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Yd();return!1};pb.prototype.xd=function(){return this.next()};
pb.prototype.first=function(){var a=this.Fg;this.oa=a.v;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null};pb.prototype.any=function(a){var b=this.Fg;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.v!==c&&Ca(b);d=d.wa}return!1};pb.prototype.all=function(a){var b=this.Fg;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.v!==c&&Ca(b);d=d.wa}return!0};
pb.prototype.each=function(a){var b=this.Fg;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.v!==c&&Ca(b),d=d.wa;return this};pb.prototype.map=function(a){var b=this.Fg;b.Ma=null;for(var c=new H,d=b.v,e=b.ga;null!==e;)c.add(a(e.value)),b.v!==d&&Ca(b),e=e.wa;return c.iterator};pb.prototype.filter=function(a){var b=this.Fg;b.Ma=null;for(var c=new H,d=b.v,e=b.ga;null!==e;){var f=e.value;a(f)&&c.add(f);b.v!==d&&Ca(b);e=e.wa}return c.iterator};
pb.prototype.Yd=function(){this.value=this.key=null;this.oa=-1;this.Fg.Ma=this};pb.prototype.toString=function(){return null!==this.qa?"SetIterator@"+this.qa.value:"SetIterator"};na.Object.defineProperties(pb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.Fg.Lb}}});pb.prototype.first=pb.prototype.first;pb.prototype.hasNext=pb.prototype.xd;pb.prototype.next=pb.prototype.next;pb.prototype.reset=pb.prototype.reset;
pb.className="SetIterator";function I(a){eb(this);this.s=!1;this.Nb={};this.Lb=0;this.Ma=null;this.v=0;this.mf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Fa():this.addAll(a))}t=I.prototype;t.ub=function(){var a=this.v;a++;999999999<a&&(a=0);this.v=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"Set()#"+ob(this)};
t.add=function(a){if(null===a)return this;this.s&&va(this,a);var b=a;Ga(a)&&(b=rb(a));void 0===this.Nb[b]&&(this.Lb++,a=new sb(a,a),this.Nb[b]=a,b=this.mf,null===b?this.ga=a:(a.jm=b,b.wa=a),this.mf=a,this.ub());return this};t.addAll=function(a){if(null===a)return this;this.s&&va(this);if(Ha(a))for(var b=a.length,c=0;c<b;c++)this.add(a[c]);else for(a=a.iterator;a.next();)this.add(a.value);return this};
t.contains=function(a){if(null===a)return!1;var b=a;return Ga(a)&&(b=ob(a),void 0===b)?!1:void 0!==this.Nb[b]};t.has=function(a){return this.contains(a)};t.Vz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0};t.Wz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1};t.first=function(){var a=this.ga;return null===a?null:a.value};
I.prototype.any=function(a){for(var b=this.v,c=this.ga;null!==c;){if(a(c.value))return!0;this.v!==b&&Ca(this);c=c.wa}return!1};I.prototype.all=function(a){for(var b=this.v,c=this.ga;null!==c;){if(!a(c.value))return!1;this.v!==b&&Ca(this);c=c.wa}return!0};I.prototype.each=function(a){for(var b=this.v,c=this.ga;null!==c;)a(c.value),this.v!==b&&Ca(this),c=c.wa;return this};I.prototype.map=function(a){for(var b=new I,c=this.v,d=this.ga;null!==d;)b.add(a(d.value)),this.v!==c&&Ca(this),d=d.wa;return b};
I.prototype.filter=function(a){for(var b=new I,c=this.v,d=this.ga;null!==d;){var e=d.value;a(e)&&b.add(e);this.v!==c&&Ca(this);d=d.wa}return b};t=I.prototype;t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=a;if(Ga(a)&&(b=ob(a),void 0===b))return!1;a=this.Nb[b];if(void 0===a)return!1;var c=a.wa,d=a.jm;null!==c&&(c.jm=d);null!==d&&(d.wa=c);this.ga===a&&(this.ga=c);this.mf===a&&(this.mf=d);delete this.Nb[b];this.Lb--;this.ub();return!0};t.delete=function(a){return this.remove(a)};
t.mr=function(a){if(null===a)return this;this.s&&va(this);if(Ha(a))for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);else for(a=a.iterator;a.next();)this.remove(a.value);return this};t.rB=function(a){if(null===a||0===this.count)return this;this.s&&va(this);var b=new I;b.addAll(a);a=[];for(var c=this.iterator;c.next();){var d=c.value;b.contains(d)||a.push(d)}this.mr(a);return this};t.clear=function(){this.s&&va(this);this.Nb={};this.Lb=0;null!==this.Ma&&this.Ma.reset();this.mf=this.ga=null;this.ub()};
I.prototype.copy=function(){var a=new I,b=this.Nb,c;for(c in b)a.add(b[c].value);return a};I.prototype.ta=function(){var a=Array(this.Lb),b=this.Nb,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};I.prototype.Yw=function(){var a=new H,b=this.Nb,c;for(c in b)a.add(b[c].value);return a};function eb(a){a.__gohashid=wb++}function rb(a){var b=a.__gohashid;void 0===b&&(b=wb++,a.__gohashid=b);return b}function ob(a){return a.__gohashid}
na.Object.defineProperties(I.prototype,{count:{configurable:!0,get:function(){return this.Lb}},size:{configurable:!0,get:function(){return this.Lb}},iterator:{configurable:!0,get:function(){if(0>=this.Lb)return kb;var a=this.Ma;return null!==a?(a.reset(),a):new pb(this)}}});I.prototype.toList=I.prototype.Yw;I.prototype.toArray=I.prototype.ta;I.prototype.clear=I.prototype.clear;I.prototype.retainAll=I.prototype.rB;I.prototype.removeAll=I.prototype.mr;
I.prototype["delete"]=I.prototype.delete;I.prototype.remove=I.prototype.remove;I.prototype.first=I.prototype.first;I.prototype.containsAny=I.prototype.Wz;I.prototype.containsAll=I.prototype.Vz;I.prototype.has=I.prototype.has;I.prototype.contains=I.prototype.contains;I.prototype.addAll=I.prototype.addAll;I.prototype.add=I.prototype.add;I.prototype.thaw=I.prototype.ka;I.prototype.freeze=I.prototype.freeze;var wb=1;I.className="Set";I.uniqueHash=eb;I.hashIdUnique=rb;I.hashId=ob;
function xb(a){this.ma=a;this.oa=a.v;this.qa=null}xb.prototype.reset=function(){this.oa=this.ma.v;this.qa=null};xb.prototype.next=function(){var a=this.ma;if(a.v!==this.oa){if(null===this.key)return!1;Ca(a)}var b=this.qa;b=null===b?a.ga:b.wa;if(null!==b)return this.qa=b,this.value=this.key=a=b.key,!0;this.Yd();return!1};xb.prototype.xd=function(){return this.next()};xb.prototype.first=function(){var a=this.ma;this.oa=a.v;a=a.ga;return null!==a?(this.qa=a,this.value=this.key=a=a.key):null};
xb.prototype.any=function(a){var b=this.ma,c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.key))return!0;b.v!==c&&Ca(b);d=d.wa}return!1};xb.prototype.all=function(a){var b=this.ma,c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.key))return!1;b.v!==c&&Ca(b);d=d.wa}return!0};xb.prototype.each=function(a){var b=this.ma,c=b.v;this.qa=null;for(var d=b.ga;null!==d;)a(d.key),b.v!==c&&Ca(b),d=d.wa;return this};
xb.prototype.map=function(a){var b=this.ma,c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e.key)),b.v!==c&&Ca(b),e=e.wa;return d.iterator};xb.prototype.filter=function(a){var b=this.ma,c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;){var f=e.key;a(f)&&d.add(f);b.v!==c&&Ca(b);e=e.wa}return d.iterator};xb.prototype.Yd=function(){this.value=this.key=null;this.oa=-1};xb.prototype.toString=function(){return null!==this.qa?"MapKeySetIterator@"+this.qa.value:"MapKeySetIterator"};
na.Object.defineProperties(xb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.ma.Lb}}});xb.prototype.first=xb.prototype.first;xb.prototype.hasNext=xb.prototype.xd;xb.prototype.next=xb.prototype.next;xb.prototype.reset=xb.prototype.reset;xb.className="MapKeySetIterator";function yb(a){I.call(this);eb(this);this.s=!0;this.ma=a}ma(yb,I);t=yb.prototype;t.freeze=function(){return this};t.ka=function(){return this};
t.toString=function(){return"MapKeySet("+this.ma.toString()+")"};t.add=function(){v("This Set is read-only: "+this.toString());return this};t.contains=function(a){return this.ma.contains(a)};t.has=function(a){return this.contains(a)};t.remove=function(){v("This Set is read-only: "+this.toString());return!1};t.delete=function(a){return this.remove(a)};t.clear=function(){v("This Set is read-only: "+this.toString())};t.first=function(){var a=this.ma.ga;return null!==a?a.key:null};
yb.prototype.any=function(a){for(var b=this.ma.ga;null!==b;){if(a(b.key))return!0;b=b.wa}return!1};yb.prototype.all=function(a){for(var b=this.ma.ga;null!==b;){if(!a(b.key))return!1;b=b.wa}return!0};yb.prototype.each=function(a){for(var b=this.ma.ga;null!==b;)a(b.key),b=b.wa;return this};yb.prototype.map=function(a){for(var b=new I,c=this.ma.ga;null!==c;)b.add(a(c.key)),c=c.wa;return b};yb.prototype.filter=function(a){for(var b=new I,c=this.ma.ga;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.wa}return b};
yb.prototype.copy=function(){return new yb(this.ma)};yb.prototype.Zw=function(){var a=new I,b=this.ma.Nb,c;for(c in b)a.add(b[c].key);return a};yb.prototype.ta=function(){var a=this.ma.Nb,b=Array(this.ma.Lb),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};yb.prototype.Yw=function(){var a=new H,b=this.ma.Nb,c;for(c in b)a.add(b[c].key);return a};
na.Object.defineProperties(yb.prototype,{count:{configurable:!0,get:function(){return this.ma.Lb}},size:{configurable:!0,get:function(){return this.ma.Lb}},iterator:{configurable:!0,get:function(){return 0>=this.ma.Lb?kb:new xb(this.ma)}}});yb.prototype.toList=yb.prototype.Yw;yb.prototype.toArray=yb.prototype.ta;yb.prototype.toSet=yb.prototype.Zw;yb.prototype.first=yb.prototype.first;yb.prototype.clear=yb.prototype.clear;yb.prototype["delete"]=yb.prototype.delete;
yb.prototype.remove=yb.prototype.remove;yb.prototype.has=yb.prototype.has;yb.prototype.contains=yb.prototype.contains;yb.prototype.add=yb.prototype.add;yb.prototype.thaw=yb.prototype.ka;yb.prototype.freeze=yb.prototype.freeze;yb.className="MapKeySet";function zb(a){this.ma=a;a.lf=null;this.oa=a.v;this.qa=null}zb.prototype.reset=function(){var a=this.ma;a.lf=null;this.oa=a.v;this.qa=null};
zb.prototype.next=function(){var a=this.ma;if(a.v!==this.oa){if(null===this.key)return!1;Ca(a)}var b=this.qa;b=null===b?a.ga:b.wa;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Yd();return!1};zb.prototype.xd=function(){return this.next()};zb.prototype.first=function(){var a=this.ma;this.oa=a.v;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null};
zb.prototype.any=function(a){var b=this.ma;b.lf=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.v!==c&&Ca(b);d=d.wa}return!1};zb.prototype.all=function(a){var b=this.ma;b.lf=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.v!==c&&Ca(b);d=d.wa}return!0};zb.prototype.each=function(a){var b=this.ma;b.lf=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.v!==c&&Ca(b),d=d.wa;return this};
zb.prototype.map=function(a){var b=this.ma;b.lf=null;var c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e.value)),b.v!==c&&Ca(b),e=e.wa;return d.iterator};zb.prototype.filter=function(a){var b=this.ma;b.lf=null;var c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;){var f=e.value;a(f)&&d.add(f);b.v!==c&&Ca(b);e=e.wa}return d.iterator};zb.prototype.Yd=function(){this.value=this.key=null;this.oa=-1;this.ma.lf=this};
zb.prototype.toString=function(){return null!==this.qa?"MapValueSetIterator@"+this.qa.value:"MapValueSetIterator"};na.Object.defineProperties(zb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.ma.Lb}}});zb.prototype.first=zb.prototype.first;zb.prototype.hasNext=zb.prototype.xd;zb.prototype.next=zb.prototype.next;zb.prototype.reset=zb.prototype.reset;zb.className="MapValueSetIterator";
function sb(a,b){this.key=a;this.value=b;this.jm=this.wa=null}sb.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"};sb.className="KeyValuePair";function Ab(a){this.ma=a;a.Ma=null;this.oa=a.v;this.qa=null}Ab.prototype.reset=function(){var a=this.ma;a.Ma=null;this.oa=a.v;this.qa=null};
Ab.prototype.next=function(){var a=this.ma;if(a.v!==this.oa){if(null===this.key)return!1;Ca(a)}var b=this.qa;b=null===b?a.ga:b.wa;if(null!==b)return this.qa=b,this.key=b.key,this.value=b.value,!0;this.Yd();return!1};Ab.prototype.xd=function(){return this.next()};Ab.prototype.first=function(){var a=this.ma;this.oa=a.v;a=a.ga;return null!==a?(this.qa=a,this.key=a.key,this.value=a.value,a):null};
Ab.prototype.any=function(a){var b=this.ma;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(a(d))return!0;b.v!==c&&Ca(b);d=d.wa}return!1};Ab.prototype.all=function(a){var b=this.ma;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d))return!1;b.v!==c&&Ca(b);d=d.wa}return!0};Ab.prototype.each=function(a){var b=this.ma;b.Ma=null;var c=b.v;this.qa=null;for(var d=b.ga;null!==d;)a(d),b.v!==c&&Ca(b),d=d.wa;return this};
Ab.prototype.map=function(a){var b=this.ma;b.Ma=null;var c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e)),b.v!==c&&Ca(b),e=e.wa;return d.iterator};Ab.prototype.filter=function(a){var b=this.ma;b.Ma=null;var c=b.v;this.qa=null;for(var d=new H,e=b.ga;null!==e;)a(e)&&d.add(e),b.v!==c&&Ca(b),e=e.wa;return d.iterator};Ab.prototype.Yd=function(){this.value=this.key=null;this.oa=-1;this.ma.Ma=this};Ab.prototype.toString=function(){return null!==this.qa?"MapIterator@"+this.qa:"MapIterator"};
na.Object.defineProperties(Ab.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.ma.Lb}}});Ab.prototype.first=Ab.prototype.first;Ab.prototype.hasNext=Ab.prototype.xd;Ab.prototype.next=Ab.prototype.next;Ab.prototype.reset=Ab.prototype.reset;Ab.className="MapIterator";
function Bb(a){eb(this);this.s=!1;this.Nb={};this.Lb=0;this.lf=this.Ma=null;this.v=0;this.mf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Fa():this.addAll(a))}t=Bb.prototype;t.ub=function(){var a=this.v;a++;999999999<a&&(a=0);this.v=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"Map()#"+ob(this)};
t.add=function(a,b){this.s&&va(this,a);var c=a;Ga(a)&&(c=rb(a));var d=this.Nb[c];void 0===d?(this.Lb++,a=new sb(a,b),this.Nb[c]=a,c=this.mf,null===c?this.ga=a:(a.jm=c,c.wa=a),this.mf=a,this.ub()):d.value=b;return this};t.set=function(a,b){return this.add(a,b)};
t.addAll=function(a){if(null===a)return this;if(Ha(a))for(var b=a.length,c=0;c<b;c++){var d=a[c];this.add(d.key,d.value)}else if(a instanceof Bb)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)b=a.value,this.add(b.key,b.value);return this};t.first=function(){return this.ga};Bb.prototype.any=function(a){for(var b=this.v,c=this.ga;null!==c;){if(a(c))return!0;this.v!==b&&Ca(this);c=c.wa}return!1};
Bb.prototype.all=function(a){for(var b=this.v,c=this.ga;null!==c;){if(!a(c))return!1;this.v!==b&&Ca(this);c=c.wa}return!0};Bb.prototype.each=function(a){for(var b=this.v,c=this.ga;null!==c;)a(c),this.v!==b&&Ca(this),c=c.wa;return this};Bb.prototype.map=function(a){for(var b=new Bb,c=this.v,d=this.ga;null!==d;)b.add(d.key,a(d)),this.v!==c&&Ca(this),d=d.wa;return b};Bb.prototype.filter=function(a){for(var b=new Bb,c=this.v,d=this.ga;null!==d;)a(d)&&b.add(d.key,d.value),this.v!==c&&Ca(this),d=d.wa;return b};
t=Bb.prototype;t.contains=function(a){var b=a;return Ga(a)&&(b=ob(a),void 0===b)?!1:void 0!==this.Nb[b]};t.has=function(a){return this.contains(a)};t.J=function(a){var b=a;if(Ga(a)&&(b=ob(a),void 0===b))return null;a=this.Nb[b];return void 0===a?null:a.value};t.get=function(a){return this.J(a)};
t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=a;if(Ga(a)&&(b=ob(a),void 0===b))return!1;a=this.Nb[b];if(void 0===a)return!1;var c=a.wa,d=a.jm;null!==c&&(c.jm=d);null!==d&&(d.wa=c);this.ga===a&&(this.ga=c);this.mf===a&&(this.mf=d);delete this.Nb[b];this.Lb--;this.ub();return!0};t.delete=function(a){return this.remove(a)};t.clear=function(){this.s&&va(this);this.Nb={};this.Lb=0;null!==this.Ma&&this.Ma.reset();null!==this.lf&&this.lf.reset();this.mf=this.ga=null;this.ub()};
Bb.prototype.copy=function(){var a=new Bb,b=this.Nb,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};Bb.prototype.ta=function(){var a=this.Nb,b=Array(this.Lb),c=0,d;for(d in a){var e=a[d];b[c]=new sb(e.key,e.value);c++}return b};Bb.prototype.Wf=function(){return new yb(this)};
na.Object.defineProperties(Bb.prototype,{count:{configurable:!0,get:function(){return this.Lb}},size:{configurable:!0,get:function(){return this.Lb}},iterator:{configurable:!0,get:function(){if(0>=this.count)return kb;var a=this.Ma;return null!==a?(a.reset(),a):new Ab(this)}},iteratorKeys:{configurable:!0,get:function(){return 0>=this.count?kb:new xb(this)}},iteratorValues:{configurable:!0,get:function(){if(0>=this.count)return kb;
var a=this.lf;return null!==a?(a.reset(),a):new zb(this)}}});Bb.prototype.toKeySet=Bb.prototype.Wf;Bb.prototype.toArray=Bb.prototype.ta;Bb.prototype.clear=Bb.prototype.clear;Bb.prototype["delete"]=Bb.prototype.delete;Bb.prototype.remove=Bb.prototype.remove;Bb.prototype.get=Bb.prototype.get;Bb.prototype.getValue=Bb.prototype.J;Bb.prototype.has=Bb.prototype.has;Bb.prototype.contains=Bb.prototype.contains;Bb.prototype.first=Bb.prototype.first;Bb.prototype.addAll=Bb.prototype.addAll;
Bb.prototype.set=Bb.prototype.set;Bb.prototype.add=Bb.prototype.add;Bb.prototype.thaw=Bb.prototype.ka;Bb.prototype.freeze=Bb.prototype.freeze;Bb.className="Map";function J(a,b){void 0===a?this.H=this.G=0:"number"===typeof a&&"number"===typeof b?(this.G=a,this.H=b):v("Invalid arguments to Point constructor: "+a+", "+b);this.s=!1}J.prototype.assign=function(a){this.G=a.G;this.H=a.H;return this};J.prototype.h=function(a,b){this.G=a;this.H=b;return this};
J.prototype.Ug=function(a,b){F&&(A(a,"number",J,"setTo:x"),A(b,"number",J,"setTo:y"),this.ha());this.G=a;this.H=b;return this};J.prototype.set=function(a){F&&(w(a,J,J,"set:p"),this.ha());this.G=a.G;this.H=a.H;return this};J.prototype.copy=function(){var a=new J;a.G=this.G;a.H=this.H;return a};t=J.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};t.K=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};
t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};function Cb(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new J(c,e)}return new J}
function Db(a){F&&w(a,J);return a.x.toString()+" "+a.y.toString()}t.toString=function(){return"Point("+this.x+","+this.y+")"};t.A=function(a){return a instanceof J?this.G===a.x&&this.H===a.y:!1};t.qj=function(a,b){return this.G===a&&this.H===b};t.Wa=function(a){return K.C(this.G,a.x)&&K.C(this.H,a.y)};t.add=function(a){F&&(w(a,J,J,"add:p"),this.ha());this.G+=a.x;this.H+=a.y;return this};t.oe=function(a){F&&(w(a,J,J,"subtract:p"),this.ha());this.G-=a.x;this.H-=a.y;return this};
t.offset=function(a,b){F&&(C(a,J,"offset:dx"),C(b,J,"offset:dy"),this.ha());this.G+=a;this.H+=b;return this};J.prototype.rotate=function(a){F&&(C(a,J,"rotate:angle"),this.ha());if(0===a)return this;var b=this.G,c=this.H;if(0===b&&0===c)return this;360<=a?a-=360:0>a&&(a+=360);if(90===a){a=0;var d=1}else 180===a?(a=-1,d=0):270===a?(a=0,d=-1):(d=a*Math.PI/180,a=Math.cos(d),d=Math.sin(d));this.G=a*b-d*c;this.H=d*b+a*c;return this};t=J.prototype;
t.scale=function(a,b){F&&(C(a,J,"scale:sx"),C(b,J,"scale:sy"),this.ha());this.G*=a;this.H*=b;return this};t.Ve=function(a){F&&w(a,J,J,"distanceSquaredPoint:p");var b=a.x-this.G;a=a.y-this.H;return b*b+a*a};t.wd=function(a,b){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"));a-=this.G;b-=this.H;return a*a+b*b};t.normalize=function(){F&&this.ha();var a=this.G,b=this.H,c=Math.sqrt(a*a+b*b);0<c&&(this.G=a/c,this.H=b/c);return this};
t.Va=function(a){F&&w(a,J,J,"directionPoint:p");return Eb(a.x-this.G,a.y-this.H)};t.direction=function(a,b){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"));return Eb(a-this.G,b-this.H)};function Eb(a,b){if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;var c=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?c=0>b?c+180:180-c:0>b&&(c=360-c);return c}
t.hB=function(a,b,c,d){F&&(C(a,J,"projectOntoLineSegment:px"),C(b,J,"projectOntoLineSegment:py"),C(c,J,"projectOntoLineSegment:qx"),C(d,J,"projectOntoLineSegment:qy"));K.ai(a,b,c,d,this.G,this.H,this);return this};t.iB=function(a,b){F&&(w(a,J,J,"projectOntoLineSegmentPoint:p"),w(b,J,J,"projectOntoLineSegmentPoint:q"));K.ai(a.x,a.y,b.x,b.y,this.G,this.H,this);return this};
t.wB=function(a,b,c,d){F&&(C(a,J,"snapToGrid:originx"),C(b,J,"snapToGrid:originy"),C(c,J,"snapToGrid:cellwidth"),C(d,J,"snapToGrid:cellheight"));K.Tq(this.G,this.H,a,b,c,d,this);return this};t.xB=function(a,b){F&&(w(a,J,J,"snapToGridPoint:p"),w(b,Fb,J,"snapToGridPoint:q"));K.Tq(this.G,this.H,a.x,a.y,b.width,b.height,this);return this};t.Fj=function(a,b){F&&(w(a,L,J,"setRectSpot:r"),w(b,N,J,"setRectSpot:spot"),this.ha());this.G=a.x+b.x*a.width+b.offsetX;this.H=a.y+b.y*a.height+b.offsetY;return this};
t.el=function(a,b,c,d,e){F&&(C(a,J,"setSpot:x"),C(b,J,"setSpot:y"),C(c,J,"setSpot:w"),C(d,J,"setSpot:h"),(0>c||0>d)&&v("Point.setSpot:Width and height cannot be negative"),w(e,N,J,"setSpot:spot"),this.ha());this.G=a+e.x*c+e.offsetX;this.H=b+e.y*d+e.offsetY;return this};t.transform=function(a){F&&w(a,Gb,J,"transform:t");a.Aa(this);return this};function Hb(a,b){F&&w(b,Gb,J,"transformInverted:t");b.Pd(a);return a}
function Ib(a,b,c,d,e,f){F&&(C(a,J,"distanceLineSegmentSquared:px"),C(b,J,"distanceLineSegmentSquared:py"),C(c,J,"distanceLineSegmentSquared:ax"),C(d,J,"distanceLineSegmentSquared:ay"),C(e,J,"distanceLineSegmentSquared:bx"),C(f,J,"distanceLineSegmentSquared:by"));var g=e-c,h=f-d,k=g*g+h*h;c-=a;d-=b;var l=-c*g-d*h;if(0>=l||l>=k)return g=e-a,h=f-b,Math.min(c*c+d*d,g*g+h*h);a=g*d-h*c;return a*a/k}
function Jb(a,b,c,d){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"),C(c,J,"distanceSquared:qx"),C(d,J,"distanceSquared:qy"));a=c-a;b=d-b;return a*a+b*b}function Kb(a,b,c,d){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"),C(c,J,"direction:qx"),C(d,J,"direction:qy"));a=c-a;b=d-b;if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;d=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d}
t.o=function(){return isFinite(this.x)&&isFinite(this.y)};J.alloc=function(){var a=Lb.pop();return void 0===a?new J:a};J.allocAt=function(a,b){var c=Lb.pop();if(void 0===c)return new J(a,b);c.x=a;c.y=b;return c};J.free=function(a){Lb.push(a)};
na.Object.defineProperties(J.prototype,{x:{configurable:!0,get:function(){return this.G},set:function(a){F&&(A(a,"number",J,"x"),this.ha(a));this.G=a}},y:{configurable:!0,get:function(){return this.H},set:function(a){F&&(A(a,"number",J,"y"),this.ha(a));this.H=a}}});J.prototype.isReal=J.prototype.o;J.prototype.setSpot=J.prototype.el;J.prototype.setRectSpot=J.prototype.Fj;J.prototype.snapToGridPoint=J.prototype.xB;J.prototype.snapToGrid=J.prototype.wB;
J.prototype.projectOntoLineSegmentPoint=J.prototype.iB;J.prototype.projectOntoLineSegment=J.prototype.hB;J.intersectingLineSegments=function(a,b,c,d,e,f,g,h){F&&(C(a,L,"intersectingLineSegments:a1x"),C(b,L,"intersectingLineSegments:a1y"),C(c,L,"intersectingLineSegments:a2x"),C(d,L,"intersectingLineSegments:a2y"),C(e,L,"intersectingLineSegments:b1x"),C(f,L,"intersectingLineSegments:b1y"),C(g,L,"intersectingLineSegments:b2x"),C(h,L,"intersectingLineSegments:b2y"));return K.Qm(a,b,c,d,e,f,g,h)};
J.prototype.direction=J.prototype.direction;J.prototype.directionPoint=J.prototype.Va;J.prototype.normalize=J.prototype.normalize;J.prototype.distanceSquared=J.prototype.wd;J.prototype.distanceSquaredPoint=J.prototype.Ve;J.prototype.scale=J.prototype.scale;J.prototype.rotate=J.prototype.rotate;J.prototype.offset=J.prototype.offset;J.prototype.subtract=J.prototype.oe;J.prototype.add=J.prototype.add;J.prototype.equalsApprox=J.prototype.Wa;J.prototype.equalTo=J.prototype.qj;J.prototype.equals=J.prototype.A;
J.prototype.set=J.prototype.set;J.prototype.setTo=J.prototype.Ug;var Mb=null,Nb=null,Ob=null,Pb=null,Qb=null,Lb=[];J.className="Point";J.parse=Cb;J.stringify=Db;J.distanceLineSegmentSquared=Ib;J.distanceSquared=Jb;J.direction=Kb;J.Origin=Mb=(new J(0,0)).ia();J.InfiniteTopLeft=Nb=(new J(-Infinity,-Infinity)).ia();J.InfiniteBottomRight=Ob=(new J(Infinity,Infinity)).ia();J.SixPoint=Pb=(new J(6,6)).ia();J.NoPoint=Qb=(new J(NaN,NaN)).ia();J.parse=Cb;J.stringify=Db;J.distanceLineSegmentSquared=Ib;
J.distanceSquared=Jb;J.direction=Kb;function Fb(a,b){void 0===a?this.ea=this.fa=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.fa=a,this.ea=b):v("Invalid arguments to Size constructor: "+a+", "+b);this.s=!1}var Rb,Sb,Tb,Ub,Vb,Wb,Zb;Fb.prototype.assign=function(a){this.fa=a.fa;this.ea=a.ea;return this};Fb.prototype.h=function(a,b){this.fa=a;this.ea=b;return this};
Fb.prototype.Ug=function(a,b){F&&(A(a,"number",Fb,"setTo:w"),A(b,"number",Fb,"setTo:h"),0>a&&za(a,">= 0",Fb,"setTo:w"),0>b&&za(b,">= 0",Fb,"setTo:h"),this.ha());this.fa=a;this.ea=b;return this};Fb.prototype.set=function(a){F&&(w(a,Fb,Fb,"set:s"),this.ha());this.fa=a.fa;this.ea=a.ea;return this};Fb.prototype.copy=function(){var a=new Fb;a.fa=this.fa;a.ea=this.ea;return a};t=Fb.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};
t.K=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};
function $b(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new Fb(c,e)}return new Fb}function ac(a){F&&w(a,Fb);return a.width.toString()+" "+a.height.toString()}t.toString=function(){return"Size("+this.width+","+this.height+")"};t.A=function(a){return a instanceof Fb?this.fa===a.width&&this.ea===a.height:!1};t.qj=function(a,b){return this.fa===a&&this.ea===b};
t.Wa=function(a){return K.C(this.fa,a.width)&&K.C(this.ea,a.height)};t.o=function(){return isFinite(this.width)&&isFinite(this.height)};Fb.alloc=function(){var a=bc.pop();return void 0===a?new Fb:a};Fb.free=function(a){bc.push(a)};
na.Object.defineProperties(Fb.prototype,{width:{configurable:!0,get:function(){return this.fa},set:function(a){F&&(A(a,"number",Fb,"width"),this.ha(a));0>a&&za(a,">= 0",Fb,"width");this.fa=a}},height:{configurable:!0,get:function(){return this.ea},set:function(a){F&&(A(a,"number",Fb,"height"),this.ha(a));0>a&&za(a,">= 0",Fb,"height");this.ea=a}}});Fb.prototype.isReal=Fb.prototype.o;Fb.prototype.equalsApprox=Fb.prototype.Wa;Fb.prototype.equalTo=Fb.prototype.qj;
Fb.prototype.equals=Fb.prototype.A;Fb.prototype.set=Fb.prototype.set;Fb.prototype.setTo=Fb.prototype.Ug;var bc=[];Fb.className="Size";Fb.parse=$b;Fb.stringify=ac;Fb.ZeroSize=Rb=(new Fb(0,0)).ia();Fb.OneSize=Sb=(new Fb(1,1)).ia();Fb.SixSize=Tb=(new Fb(6,6)).ia();Fb.EightSize=Ub=(new Fb(8,8)).ia();Fb.TenSize=Vb=(new Fb(10,10)).ia();Fb.InfiniteSize=Wb=(new Fb(Infinity,Infinity)).ia();Fb.NoSize=Zb=(new Fb(NaN,NaN)).ia();Fb.parse=$b;Fb.stringify=ac;
function L(a,b,c,d){void 0===a?this.ea=this.fa=this.H=this.G=0:a instanceof J?(c=a.x,a=a.y,b instanceof J?(d=b.x,b=b.y,this.G=Math.min(c,d),this.H=Math.min(a,b),this.fa=Math.abs(c-d),this.ea=Math.abs(a-b)):b instanceof Fb?(this.G=c,this.H=a,this.fa=b.width,this.ea=b.height):v("Incorrect arguments supplied to Rect constructor")):"number"===typeof a&&"number"===typeof b&&"number"===typeof c&&(0<=c||isNaN(c))&&"number"===typeof d&&(0<=d||isNaN(d))?(this.G=a,this.H=b,this.fa=c,this.ea=d):v("Invalid arguments to Rect constructor: "+
a+", "+b+", "+c+", "+d);this.s=!1}t=L.prototype;t.assign=function(a){this.G=a.G;this.H=a.H;this.fa=a.fa;this.ea=a.ea;return this};t.h=function(a,b,c,d){this.G=a;this.H=b;this.fa=c;this.ea=d;return this};function cc(a,b,c){a.fa=b;a.ea=c}t.Ug=function(a,b,c,d){F&&(A(a,"number",L,"setTo:x"),A(b,"number",L,"setTo:y"),A(c,"number",L,"setTo:w"),A(d,"number",L,"setTo:h"),0>c&&za(c,">= 0",L,"setTo:w"),0>d&&za(d,">= 0",L,"setTo:h"),this.ha());this.G=a;this.H=b;this.fa=c;this.ea=d;return this};
t.set=function(a){F&&(w(a,L,L,"set:r"),this.ha());this.G=a.G;this.H=a.H;this.fa=a.fa;this.ea=a.ea;return this};t.Wc=function(a){F&&(w(a,J,L,"setPoint:p"),this.ha());this.G=a.x;this.H=a.y;return this};t.vB=function(a){F&&(w(a,Fb,L,"setSize:s"),this.ha());this.fa=a.width;this.ea=a.height;return this};L.prototype.copy=function(){var a=new L;a.G=this.G;a.H=this.H;a.fa=this.fa;a.ea=this.ea;return a};t=L.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};
t.K=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};