UNPKG

pfam-molstar

Version:

A component for embedding molstar 3D viewer in Pfam

2 lines 2 MB
/*! For license information please see main.js.LICENSE.txt */ (()=>{var e={757:(e,t,r)=>{e.exports=r(666)},607:(e,t,r)=>{"use strict";r.d(t,{Z:()=>D});var n=r(15),a=r.n(n),i=r(645),o=r.n(i),s=r(667),u=r.n(s),c=r(354),l=r(837),d=r(50),f=r(997),p=r(744),m=r(132),h=r(186),v=r(458),g=r(24),y=r(397),b=o()(a()),x=u()(c),_=u()(l),S=u()(d),C=u()(f),w=u()(p),A=u()(m),T=u()(h),I=u()(v),P=u()(g),E=u()(y);b.push([e.id,'@font-face {\n font-family: "Material Icons";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url('+x+') format("woff2"), url('+_+') format("woff");\n}\n.material-icons {\n font-family: "Material Icons";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Outlined";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url('+S+') format("woff2"), url('+C+') format("woff");\n}\n.material-icons-outlined {\n font-family: "Material Icons Outlined";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Round";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url('+w+') format("woff2"), url('+A+') format("woff");\n}\n.material-icons-round {\n font-family: "Material Icons Round";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Sharp";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url('+T+') format("woff2"), url('+I+') format("woff");\n}\n.material-icons-sharp {\n font-family: "Material Icons Sharp";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Two Tone";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url('+P+') format("woff2"), url('+E+') format("woff");\n}\n.material-icons-two-tone {\n font-family: "Material Icons Two Tone";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n',"",{version:3,sources:["webpack://./node_modules/material-icons/iconfont/material-icons.css"],names:[],mappings:"AAAA;EACE,6BAA6B;EAC7B,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,oHAA+F;AACjG;AACA;EACE,6BAA6B;EAC7B,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,mCAAmC;EACnC,kCAAkC;EAClC,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,sCAAsC;EACtC,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,oHAAiH;AACnH;AACA;EACE,sCAAsC;EACtC,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,mCAAmC;EACnC,kCAAkC;EAClC,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,mCAAmC;EACnC,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,oHAA2G;AAC7G;AACA;EACE,mCAAmC;EACnC,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,mCAAmC;EACnC,kCAAkC;EAClC,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,mCAAmC;EACnC,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,oHAA2G;AAC7G;AACA;EACE,mCAAmC;EACnC,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,mCAAmC;EACnC,kCAAkC;EAClC,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,sCAAsC;EACtC,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,oHAAiH;AACnH;AACA;EACE,sCAAsC;EACtC,mBAAmB;EACnB,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,mCAAmC;EACnC,kCAAkC;EAClC,kCAAkC;EAClC,6BAA6B;AAC/B",sourcesContent:['@font-face {\n font-family: "Material Icons";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url("./material-icons.woff2") format("woff2"), url("./material-icons.woff") format("woff");\n}\n.material-icons {\n font-family: "Material Icons";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Outlined";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url("./material-icons-outlined.woff2") format("woff2"), url("./material-icons-outlined.woff") format("woff");\n}\n.material-icons-outlined {\n font-family: "Material Icons Outlined";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Round";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url("./material-icons-round.woff2") format("woff2"), url("./material-icons-round.woff") format("woff");\n}\n.material-icons-round {\n font-family: "Material Icons Round";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Sharp";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url("./material-icons-sharp.woff2") format("woff2"), url("./material-icons-sharp.woff") format("woff");\n}\n.material-icons-sharp {\n font-family: "Material Icons Sharp";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n\n@font-face {\n font-family: "Material Icons Two Tone";\n font-style: normal;\n font-weight: 400;\n font-display: block;\n src: url("./material-icons-two-tone.woff2") format("woff2"), url("./material-icons-two-tone.woff") format("woff");\n}\n.material-icons-two-tone {\n font-family: "Material Icons Two Tone";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga";\n}\n'],sourceRoot:""}]);const D=b},28:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(15),a=r.n(n),i=r(645),o=r.n(i),s=r(607),u=o()(a());u.i(s.Z),u.push([e.id,"#mol-container {\n font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;\n background-color: white;\n}\n\n#mol-canvas {\n height: 50vh;\n background-color: white;\n}\n\n#mol-label {\n height: 3em;\n background-color: white;\n}\n\n#mol-controls {\n height: 2em;\n font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;\n background-color: white;\n}\n\n.control_icon {\n padding-left: 05em;\n}\n\n.theme-selection {\n display: none;\n}","",{version:3,sources:["webpack://./src/styles.css"],names:[],mappings:"AAEA;IACI,6EAA6E;IAC7E,uBAAuB;AAC3B;;AAEA;IACI,YAAY;IACZ,uBAAuB;AAC3B;;AAEA;IACI,WAAW;IACX,uBAAuB;AAC3B;;AAEA;IACI,WAAW;IACX,qGAAqG;IACrG,uBAAuB;AAC3B;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;AACjB",sourcesContent:["@import 'material-icons/iconfont/material-icons.css';\n\n#mol-container {\n font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;\n background-color: white;\n}\n\n#mol-canvas {\n height: 50vh;\n background-color: white;\n}\n\n#mol-label {\n height: 3em;\n background-color: white;\n}\n\n#mol-controls {\n height: 2em;\n font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;\n background-color: white;\n}\n\n.control_icon {\n padding-left: 05em;\n}\n\n.theme-selection {\n display: none;\n}"],sourceRoot:""}]);const c=u},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);n&&a[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},15:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r,n,a=(n=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(r,n)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[1],o=a[3];if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),c="/*# ".concat(u," */"),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([c]).join("\n")}return[i].join("\n")}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},393:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return o(e)?e:G(e)}function n(e){return s(e)?e:j(e)}function a(e){return u(e)?e:H(e)}function i(e){return o(e)&&!c(e)?e:q(e)}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function u(e){return!(!e||!e[p])}function c(e){return s(e)||u(e)}function l(e){return!(!e||!e[m])}t(n,r),t(a,r),t(i,r),r.isIterable=o,r.isKeyed=s,r.isIndexed=u,r.isAssociative=c,r.isOrdered=l,r.Keyed=n,r.Indexed=a,r.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",h=32,v=31,g={},y={value:!1},b={value:!1};function x(e){return e.value=!1,e}function _(e){e&&(e.value=!0)}function S(){}function C(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),a=0;a<r;a++)n[a]=e[a+t];return n}function w(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function A(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?w(e)+t:t}function T(){return!0}function I(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function P(e,t){return D(e,t,0)}function E(e,t){return D(e,t,t)}function D(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var M="function"==typeof Symbol&&Symbol.iterator,k="@@iterator",R=M||k;function B(e){this.next=e}function O(e,t,r,n){var a=0===e?t:1===e?r:[t,r];return n?n.value=a:n={value:a,done:!1},n}function F(){return{value:void 0,done:!0}}function L(e){return!!z(e)}function N(e){return e&&"function"==typeof e.next}function U(e){var t=z(e);return t&&t.call(e)}function z(e){var t=e&&(M&&e[M]||e["@@iterator"]);if("function"==typeof t)return t}function V(e){return e&&"number"==typeof e.length}function G(e){return null==e?te():o(e)?e.toSeq():function(e){var t=ae(e)||"object"==typeof e&&new Z(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function j(e){return null==e?te().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function H(e){return null==e?te():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():ne(e)}function q(e){return(null==e?te():o(e)?s(e)?e.entrySeq():e:ne(e)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=0,B.VALUES=1,B.ENTRIES=2,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[R]=function(){return this},t(G,r),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return ie(this,e,t,!0)},G.prototype.__iterator=function(e,t){return oe(this,e,t,!0)},t(j,G),j.prototype.toKeyedSeq=function(){return this},t(H,G),H.of=function(){return H(arguments)},H.prototype.toIndexedSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq [","]")},H.prototype.__iterate=function(e,t){return ie(this,e,t,!1)},H.prototype.__iterator=function(e,t){return oe(this,e,t,!1)},t(q,G),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},G.isSeq=ee,G.Keyed=j,G.Set=q,G.Indexed=H;var X,W,Y,K="@@__IMMUTABLE_SEQ__@@";function Q(e){this._array=e,this.size=e.length}function Z(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function J(e){this._iterable=e,this.size=e.length||e.size}function $(e){this._iterator=e,this._iteratorCache=[]}function ee(e){return!(!e||!e[K])}function te(){return X||(X=new Q([]))}function re(e){var t=Array.isArray(e)?new Q(e).fromEntrySeq():N(e)?new $(e).fromEntrySeq():L(e)?new J(e).fromEntrySeq():"object"==typeof e?new Z(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ne(e){var t=ae(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ae(e){return V(e)?new Q(e):N(e)?new $(e):L(e)?new J(e):void 0}function ie(e,t,r,n){var a=e._cache;if(a){for(var i=a.length-1,o=0;o<=i;o++){var s=a[r?i-o:o];if(!1===t(s[1],n?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,r)}function oe(e,t,r,n){var a=e._cache;if(a){var i=a.length-1,o=0;return new B((function(){var e=a[r?i-o:o];return o++>i?{value:void 0,done:!0}:O(t,n?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,r)}function se(e,t){return t?ue(t,e,"",{"":e}):ce(e)}function ue(e,t,r,n){return Array.isArray(t)?e.call(n,r,H(t).map((function(r,n){return ue(e,r,n,t)}))):le(t)?e.call(n,r,j(t).map((function(r,n){return ue(e,r,n,t)}))):t}function ce(e){return Array.isArray(e)?H(e).map(ce).toList():le(e)?j(e).map(ce).toMap():e}function le(e){return e&&(e.constructor===Object||void 0===e.constructor)}function de(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!c(e);if(l(e)){var n=e.entries();return t.every((function(e,t){var a=n.next().value;return a&&de(a[1],e)&&(r||de(a[0],t))}))&&n.next().done}var a=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{a=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate((function(t,n){if(r?!e.has(t):a?!de(t,e.get(n,g)):!de(e.get(n,g),t))return d=!1,!1}));return d&&e.size===f}function pe(e,t){if(!(this instanceof pe))return new pe(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(W)return W;W=this}}function me(e,t){if(!e)throw new Error(t)}function he(e,t,r){if(!(this instanceof he))return new he(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(Y)return Y;Y=this}}function ve(){throw TypeError("Abstract")}function ge(){}function ye(){}function be(){}G.prototype[K]=!0,t(Q,H),Q.prototype.get=function(e,t){return this.has(e)?this._array[A(this,e)]:t},Q.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,a=0;a<=n;a++)if(!1===e(r[t?n-a:a],a,this))return a+1;return a},Q.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,a=0;return new B((function(){return a>n?{value:void 0,done:!0}:O(e,a,r[t?n-a++:a++])}))},t(Z,j),Z.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Z.prototype.has=function(e){return this._object.hasOwnProperty(e)},Z.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,a=n.length-1,i=0;i<=a;i++){var o=n[t?a-i:i];if(!1===e(r[o],o,this))return i+1}return i},Z.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,a=n.length-1,i=0;return new B((function(){var o=n[t?a-i:i];return i++>a?{value:void 0,done:!0}:O(e,o,r[o])}))},Z.prototype[m]=!0,t(J,H),J.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=U(this._iterable),n=0;if(N(r))for(var a;!(a=r.next()).done&&!1!==e(a.value,n++,this););return n},J.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=U(this._iterable);if(!N(r))return new B(F);var n=0;return new B((function(){var t=r.next();return t.done?t:O(e,n++,t.value)}))},t($,H),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,a=this._iteratorCache,i=0;i<a.length;)if(!1===e(a[i],i++,this))return i;for(;!(r=n.next()).done;){var o=r.value;if(a[i]=o,!1===e(o,i++,this))break}return i},$.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,a=0;return new B((function(){if(a>=n.length){var t=r.next();if(t.done)return t;n[a]=t.value}return O(e,a,n[a++])}))},t(pe,H),pe.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pe.prototype.get=function(e,t){return this.has(e)?this._value:t},pe.prototype.includes=function(e){return de(this._value,e)},pe.prototype.slice=function(e,t){var r=this.size;return I(e,t,r)?this:new pe(this._value,E(t,r)-P(e,r))},pe.prototype.reverse=function(){return this},pe.prototype.indexOf=function(e){return de(this._value,e)?0:-1},pe.prototype.lastIndexOf=function(e){return de(this._value,e)?this.size:-1},pe.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},pe.prototype.__iterator=function(e,t){var r=this,n=0;return new B((function(){return n<r.size?O(e,n++,r._value):{value:void 0,done:!0}}))},pe.prototype.equals=function(e){return e instanceof pe?de(this._value,e._value):fe(e)},t(he,H),he.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},he.prototype.get=function(e,t){return this.has(e)?this._start+A(this,e)*this._step:t},he.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},he.prototype.slice=function(e,t){return I(e,t,this.size)?this:(e=P(e,this.size),(t=E(t,this.size))<=e?new he(0,0):new he(this.get(e,this._end),this.get(t,this._end),this._step))},he.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},he.prototype.lastIndexOf=function(e){return this.indexOf(e)},he.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,a=t?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===e(a,i,this))return i+1;a+=t?-n:n}return i},he.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,a=t?this._start+r*n:this._start,i=0;return new B((function(){var o=a;return a+=t?-n:n,i>r?{value:void 0,done:!0}:O(e,i++,o)}))},he.prototype.equals=function(e){return e instanceof he?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ve,r),t(ge,ve),t(ye,ve),t(be,ve),ve.Keyed=ge,ve.Indexed=ye,ve.Set=be;var xe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function _e(e){return e>>>1&1073741824|3221225471&e}function Se(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return _e(r)}if("string"===t)return e.length>De?function(e){var t=Re[e];return void 0===t&&(t=Ce(e),ke===Me&&(ke=0,Re={}),ke++,Re[e]=t),t}(e):Ce(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ie&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Pe,1073741824&Pe&&(Pe=0),Ie)Te.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(e);if("function"==typeof e.toString)return Ce(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ce(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return _e(t)}var we=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Te,Ie="function"==typeof WeakMap;Ie&&(Te=new WeakMap);var Pe=0,Ee="__immutablehash__";"function"==typeof Symbol&&(Ee=Symbol(Ee));var De=16,Me=255,ke=0,Re={};function Be(e){me(e!==1/0,"Cannot perform this action with an infinite size.")}function Oe(e){return null==e?Ke():Fe(e)&&!l(e)?e:Ke().withMutations((function(t){var r=n(e);Be(r.size),r.forEach((function(e,r){return t.set(r,e)}))}))}function Fe(e){return!(!e||!e[Ne])}t(Oe,ge),Oe.of=function(){var t=e.call(arguments,0);return Ke().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}}))},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Oe.prototype.set=function(e,t){return Qe(this,e,t)},Oe.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},Oe.prototype.remove=function(e){return Qe(this,e,g)},Oe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},Oe.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},Oe.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=at(this,tr(e),t,r);return n===g?void 0:n},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ke()},Oe.prototype.merge=function(){return et(this,void 0,arguments)},Oe.prototype.mergeWith=function(t){return et(this,t,e.call(arguments,1))},Oe.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Ke(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]}))},Oe.prototype.mergeDeep=function(){return et(this,tt,arguments)},Oe.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return et(this,rt(t),r)},Oe.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Ke(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]}))},Oe.prototype.sort=function(e){return It(Ht(this,e))},Oe.prototype.sortBy=function(e,t){return It(Ht(this,t,e))},Oe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(e,t){return new qe(this,e,t)},Oe.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate((function(t){return n++,e(t[1],t[0],r)}),t),n},Oe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Oe.isMap=Fe;var Le,Ne="@@__IMMUTABLE_MAP__@@",Ue=Oe.prototype;function ze(e,t){this.ownerID=e,this.entries=t}function Ve(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function Ge(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function je(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r}function He(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function qe(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&We(e._root)}function Xe(e,t){return O(e,t[0],t[1])}function We(e,t){return{node:e,index:0,__prev:t}}function Ye(e,t,r,n){var a=Object.create(Ue);return a.size=e,a._root=t,a.__ownerID=r,a.__hash=n,a.__altered=!1,a}function Ke(){return Le||(Le=Ye(0))}function Qe(e,t,r){var n,a;if(e._root){var i=x(y),o=x(b);if(n=Ze(e._root,e.__ownerID,0,void 0,t,r,i,o),!o.value)return e;a=e.size+(i.value?r===g?-1:1:0)}else{if(r===g)return e;a=1,n=new ze(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=a,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?Ye(a,n):Ke()}function Ze(e,t,r,n,a,i,o,s){return e?e.update(t,r,n,a,i,o,s):i===g?e:(_(s),_(o),new He(t,n,[a,i]))}function Je(e){return e.constructor===He||e.constructor===je}function $e(e,t,r,n,a){if(e.keyHash===n)return new je(t,n,[e.entry,a]);var i,o=(0===r?e.keyHash:e.keyHash>>>r)&v,s=(0===r?n:n>>>r)&v;return new Ve(t,1<<o|1<<s,o===s?[$e(e,t,r+5,n,a)]:(i=new He(t,n,a),o<s?[e,i]:[i,e]))}function et(e,t,r){for(var a=[],i=0;i<r.length;i++){var s=r[i],u=n(s);o(s)||(u=u.map((function(e){return se(e)}))),a.push(u)}return nt(e,t,a)}function tt(e,t,r){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):de(e,t)?e:t}function rt(e){return function(t,r,n){if(t&&t.mergeDeepWith&&o(r))return t.mergeDeepWith(e,r);var a=e(t,r,n);return de(t,a)?t:a}}function nt(e,t,r){return 0===(r=r.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var n=t?function(r,n){e.update(n,g,(function(e){return e===g?r:t(e,r,n)}))}:function(t,r){e.set(r,t)},a=0;a<r.length;a++)r[a].forEach(n)})):e.constructor(r[0])}function at(e,t,r,n){var a=e===g,i=t.next();if(i.done){var o=a?r:e,s=n(o);return s===o?e:s}me(a||e&&e.set,"invalid keyPath");var u=i.value,c=a?g:e.get(u,g),l=at(c,t,r,n);return l===c?e:l===g?e.remove(u):(a?Ke():e).set(u,l)}function it(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ot(e,t,r,n){var a=n?e:C(e);return a[t]=r,a}Ue[Ne]=!0,Ue.delete=Ue.remove,Ue.removeIn=Ue.deleteIn,ze.prototype.get=function(e,t,r,n){for(var a=this.entries,i=0,o=a.length;i<o;i++)if(de(r,a[i][0]))return a[i][1];return n},ze.prototype.update=function(e,t,r,n,a,i,o){for(var s=a===g,u=this.entries,c=0,l=u.length;c<l&&!de(n,u[c][0]);c++);var d=c<l;if(d?u[c][1]===a:s)return this;if(_(o),(s||!d)&&_(i),!s||1!==u.length){if(!d&&!s&&u.length>=st)return function(e,t,r,n){e||(e=new S);for(var a=new He(e,Se(r),[r,n]),i=0;i<t.length;i++){var o=t[i];a=a.update(e,0,void 0,o[0],o[1])}return a}(e,u,n,a);var f=e&&e===this.ownerID,p=f?u:C(u);return d?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[n,a]:p.push([n,a]),f?(this.entries=p,this):new ze(e,p)}},Ve.prototype.get=function(e,t,r,n){void 0===t&&(t=Se(r));var a=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return 0==(i&a)?n:this.nodes[it(i&a-1)].get(e+5,t,r,n)},Ve.prototype.update=function(e,t,r,n,a,i,o){void 0===r&&(r=Se(n));var s=(0===t?r:r>>>t)&v,u=1<<s,c=this.bitmap,l=0!=(c&u);if(!l&&a===g)return this;var d=it(c&u-1),f=this.nodes,p=l?f[d]:void 0,m=Ze(p,e,t+5,r,n,a,i,o);if(m===p)return this;if(!l&&m&&f.length>=ut)return function(e,t,r,n,a){for(var i=0,o=new Array(h),s=0;0!==r;s++,r>>>=1)o[s]=1&r?t[i++]:void 0;return o[n]=a,new Ge(e,i+1,o)}(e,f,c,s,m);if(l&&!m&&2===f.length&&Je(f[1^d]))return f[1^d];if(l&&m&&1===f.length&&Je(m))return m;var y=e&&e===this.ownerID,b=l?m?c:c^u:c|u,x=l?m?ot(f,d,m,y):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var a=new Array(n),i=0,o=0;o<n;o++)o===t&&(i=1),a[o]=e[o+i];return a}(f,d,y):function(e,t,r,n){var a=e.length+1;if(n&&t+1===a)return e[t]=r,e;for(var i=new Array(a),o=0,s=0;s<a;s++)s===t?(i[s]=r,o=-1):i[s]=e[s+o];return i}(f,d,m,y);return y?(this.bitmap=b,this.nodes=x,this):new Ve(e,b,x)},Ge.prototype.get=function(e,t,r,n){void 0===t&&(t=Se(r));var a=(0===e?t:t>>>e)&v,i=this.nodes[a];return i?i.get(e+5,t,r,n):n},Ge.prototype.update=function(e,t,r,n,a,i,o){void 0===r&&(r=Se(n));var s=(0===t?r:r>>>t)&v,u=a===g,c=this.nodes,l=c[s];if(u&&!l)return this;var d=Ze(l,e,t+5,r,n,a,i,o);if(d===l)return this;var f=this.count;if(l){if(!d&&--f<ct)return function(e,t,r,n){for(var a=0,i=0,o=new Array(r),s=0,u=1,c=t.length;s<c;s++,u<<=1){var l=t[s];void 0!==l&&s!==n&&(a|=u,o[i++]=l)}return new Ve(e,a,o)}(e,c,f,s)}else f++;var p=e&&e===this.ownerID,m=ot(c,s,d,p);return p?(this.count=f,this.nodes=m,this):new Ge(e,f,m)},je.prototype.get=function(e,t,r,n){for(var a=this.entries,i=0,o=a.length;i<o;i++)if(de(r,a[i][0]))return a[i][1];return n},je.prototype.update=function(e,t,r,n,a,i,o){void 0===r&&(r=Se(n));var s=a===g;if(r!==this.keyHash)return s?this:(_(o),_(i),$e(this,e,t,r,[n,a]));for(var u=this.entries,c=0,l=u.length;c<l&&!de(n,u[c][0]);c++);var d=c<l;if(d?u[c][1]===a:s)return this;if(_(o),(s||!d)&&_(i),s&&2===l)return new He(e,this.keyHash,u[1^c]);var f=e&&e===this.ownerID,p=f?u:C(u);return d?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[n,a]:p.push([n,a]),f?(this.entries=p,this):new je(e,this.keyHash,p)},He.prototype.get=function(e,t,r,n){return de(r,this.entry[0])?this.entry[1]:n},He.prototype.update=function(e,t,r,n,a,i,o){var s=a===g,u=de(n,this.entry[0]);return(u?a===this.entry[1]:s)?this:(_(o),s?void _(i):u?e&&e===this.ownerID?(this.entry[1]=a,this):new He(e,this.keyHash,[n,a]):(_(i),$e(this,e,t,Se(n),[n,a])))},ze.prototype.iterate=je.prototype.iterate=function(e,t){for(var r=this.entries,n=0,a=r.length-1;n<=a;n++)if(!1===e(r[t?a-n:n]))return!1},Ve.prototype.iterate=Ge.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,a=r.length-1;n<=a;n++){var i=r[t?a-n:n];if(i&&!1===i.iterate(e,t))return!1}},He.prototype.iterate=function(e,t){return e(this.entry)},t(qe,B),qe.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,a=t.index++;if(n.entry){if(0===a)return Xe(e,n.entry)}else if(n.entries){if(a<=(r=n.entries.length-1))return Xe(e,n.entries[this._reverse?r-a:a])}else if(a<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-a:a];if(i){if(i.entry)return Xe(e,i.entry);t=this._stack=We(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var st=8,ut=16,ct=8;function lt(e){var t=xt();if(null==e)return t;if(dt(e))return e;var r=a(e),n=r.size;return 0===n?t:(Be(n),n>0&&n<h?bt(0,n,5,null,new mt(r.toArray())):t.withMutations((function(e){e.setSize(n),r.forEach((function(t,r){return e.set(r,t)}))})))}function dt(e){return!(!e||!e[ft])}t(lt,ye),lt.of=function(){return this(arguments)},lt.prototype.toString=function(){return this.__toString("List [","]")},lt.prototype.get=function(e,t){if((e=A(this,e))>=0&&e<this.size){var r=Ct(this,e+=this._origin);return r&&r.array[e&v]}return t},lt.prototype.set=function(e,t){return function(e,t,r){if((t=A(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?wt(e,t).set(0,r):wt(e,0,t+1).set(t,r)}));t+=e._origin;var n=e._tail,a=e._root,i=x(b);return t>=Tt(e._capacity)?n=_t(n,e.__ownerID,0,t,r,i):a=_t(a,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=a,e._tail=n,e.__hash=void 0,e.__altered=!0,e):bt(e._origin,e._capacity,e._level,a,n):e}(this,e,t)},lt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},lt.prototype.insert=function(e,t){return this.splice(e,0,t)},lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xt()},lt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(r){wt(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])}))},lt.prototype.pop=function(){return wt(this,0,-1)},lt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){wt(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])}))},lt.prototype.shift=function(){return wt(this,1)},lt.prototype.merge=function(){return At(this,void 0,arguments)},lt.prototype.mergeWith=function(t){return At(this,t,e.call(arguments,1))},lt.prototype.mergeDeep=function(){return At(this,tt,arguments)},lt.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return At(this,rt(t),r)},lt.prototype.setSize=function(e){return wt(this,0,e)},lt.prototype.slice=function(e,t){var r=this.size;return I(e,t,r)?this:wt(this,P(e,r),E(t,r))},lt.prototype.__iterator=function(e,t){var r=0,n=yt(this,t);return new B((function(){var t=n();return t===gt?{value:void 0,done:!0}:O(e,r++,t)}))},lt.prototype.__iterate=function(e,t){for(var r,n=0,a=yt(this,t);(r=a())!==gt&&!1!==e(r,n++,this););return n},lt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?bt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},lt.isList=dt;var ft="@@__IMMUTABLE_LIST__@@",pt=lt.prototype;function mt(e,t){this.array=e,this.ownerID=t}pt[ft]=!0,pt.delete=pt.remove,pt.setIn=Ue.setIn,pt.deleteIn=pt.removeIn=Ue.removeIn,pt.update=Ue.update,pt.updateIn=Ue.updateIn,pt.mergeIn=Ue.mergeIn,pt.mergeDeepIn=Ue.mergeDeepIn,pt.withMutations=Ue.withMutations,pt.asMutable=Ue.asMutable,pt.asImmutable=Ue.asImmutable,pt.wasAltered=Ue.wasAltered,mt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&v;if(n>=this.array.length)return new mt([],e);var a,i=0===n;if(t>0){var o=this.array[n];if((a=o&&o.removeBefore(e,t-5,r))===o&&i)return this}if(i&&!a)return this;var s=St(this,e);if(!i)for(var u=0;u<n;u++)s.array[u]=void 0;return a&&(s.array[n]=a),s},mt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,a=r-1>>>t&v;if(a>=this.array.length)return this;if(t>0){var i=this.array[a];if((n=i&&i.removeAfter(e,t-5,r))===i&&a===this.array.length-1)return this}var o=St(this,e);return o.array.splice(a+1),n&&(o.array[a]=n),o};var ht,vt,gt={};function yt(e,t){var r=e._origin,n=e._capacity,a=Tt(n),i=e._tail;return o(e._root,e._level,0);function o(e,s,u){return 0===s?function(e,o){var s=o===a?i&&i.array:e&&e.array,u=o>r?0:r-o,c=n-o;return c>h&&(c=h),function(){if(u===c)return gt;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,a,i){var s,u=e&&e.array,c=i>r?0:r-i>>a,l=1+(n-i>>a);return l>h&&(l=h),function(){for(;;){if(s){var e=s();if(e!==gt)return e;s=null}if(c===l)return gt;var r=t?--l:c++;s=o(u&&u[r],a-5,i+(r<<a))}}}(e,s,u)}}function bt(e,t,r,n,a,i,o){var s=Object.create(pt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=a,s.__ownerID=i,s.__hash=o,s.__altered=!1,s}function xt(){return ht||(ht=bt(0,0,5))}function _t(e,t,r,n,a,i){var o,s=n>>>r&v,u=e&&s<e.array.length;if(!u&&void 0===a)return e;if(r>0){var c=e&&e.array[s],l=_t(c,t,r-5,n,a,i);return l===c?e:((o=St(e,t)).array[s]=l,o)}return u&&e.array[s]===a?e:(_(i),o=St(e,t),void 0===a&&s===o.array.length-1?o.array.pop():o.array[s]=a,o)}function St(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function Ct(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&v],n-=5;return r}}function wt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new S,a=e._origin,i=e._capacity,o=a+t,s=void 0===r?i:r<0?i+r:a+r;if(o===a&&s===i)return e;if(o>=s)return e.clear();for(var u=e._level,c=e._root,l=0;o+l<0;)c=new mt(c&&c.array.length?[void 0,c]:[],n),l+=1<<(u+=5);l&&(o+=l,a+=l,s+=l,i+=l);for(var d=Tt(i),f=Tt(s);f>=1<<u+5;)c=new mt(c&&c.array.length?[c]:[],n),u+=5;var p=e._tail,m=f<d?Ct(e,s-1):f>d?new mt([],n):p;if(p&&f>d&&o<i&&p.array.length){for(var h=c=St(c,n),g=u;g>5;g-=5){var y=d>>>g&v;h=h.array[y]=St(h.array[y],n)}h.array[d>>>5&v]=p}if(s<i&&(m=m&&m.removeAfter(n,0,s)),o>=f)o-=f,s-=f,u=5,c=null,m=m&&m.removeBefore(n,0,o);else if(o>a||f<d){for(l=0;c;){var b=o>>>u&v;if(b!==f>>>u&v)break;b&&(l+=(1<<u)*b),u-=5,c=c.array[b]}c&&o>a&&(c=c.removeBefore(n,u,o-l)),c&&f<d&&(c=c.removeAfter(n,u,f-l)),l&&(o-=l,s-=l)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=u,e._root=c,e._tail=m,e.__hash=void 0,e.__altered=!0,e):bt(o,s,u,c,m)}function At(e,t,r){for(var n=[],i=0,s=0;s<r.length;s++){var u=r[s],c=a(u);c.size>i&&(i=c.size),o(u)||(c=c.map((function(e){return se(e)}))),n.push(c)}return i>e.size&&(e=e.setSize(i)),nt(e,t,n)}function Tt(e){return e<h?0:e-1>>>5<<5}function It(e){return null==e?Dt():Pt(e)?e:Dt().withMutations((function(t){var r=n(e);Be(r.size),r.forEach((function(e,r){return t.set(r,e)}))}))}function Pt(e){return Fe(e)&&l(e)}function Et(e,t,r,n){var a=Object.create(It.prototype);return a.size=e?e.size:0,a._map=e,a._list=t,a.__ownerID=r,a.__hash=n,a}function Dt(){return vt||(vt=Et(Ke(),xt()))}function Mt(e,t,r){var n,a,i=e._map,o=e._list,s=i.get(t),u=void 0!==s;if(r===g){if(!u)return e;o.size>=h&&o.size>=2*i.size?(n=(a=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(n.__ownerID=a.__ownerID=e.__ownerID)):(n=i.remove(t),a=s===o.size-1?o.pop():o.set(s,void 0))}else if(u){if(r===o.get(s)[1])return e;n=i,a=o.set(s,[t,r])}else n=i.set(t,o.size),a=o.set(o.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=a,e.__hash=void 0,e):Et(n,a)}function kt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Bt(e){this._iter=e,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function Ft(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=$t,t.__iterateUncached=function(t,r){var n=this;return e.__iterate((function(e,r){return!1!==t(r,e,n)}),r)},t.__iteratorUncached=function(t,r){if(2===t){var n=e.__iterator(t,r);return new B((function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,r)},t}function Lt(e,t,r){var n=Jt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,a){var i=e.get(n,g);return i===g?a:t.call(r,i,n,e)},n.__iterateUncached=function(n,a){var i=this;return e.__iterate((function(e,a,o){return!1!==n(t.call(r,e,a,o),a,i)}),a)},n.__iteratorUncached=function(n,a){var i=e.__iterator(2,a);return new B((function(){var a=i.next();if(a.done)return a;var o=a.value,s=o[0];return O(n,s,t.call(r,o[1],s,e),a)}))},n}function Nt(e,t){var r=Jt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Ft(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=$t,r.__iterate=function(t,r){var n=this;return e.__iterate((function(e,r){return t(e,r,n)}),!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Ut(e,t,r,n){var a=Jt(e);return n&&(a.has=function(n){var a=e.get(n,g);return a!==g&&!!t.call(r,a,n,e)},a.get=function(n,a){var i=e.get(n,g);return i!==g&&t.call(r,i,n,e)?i:a}),a.__iterateUncached=function(a,i){var o=this,s=0;return e.__iterate((function(e,i,u){if(t.call(r,e,i,u))return s++,a(e,n?i:s-1,o)}),i),s},a.__iteratorUncached=function(a,i){var o=e.__iterator(2,i),s=0;return new B((function(){for(;;){var i=o.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(t.call(r,l,c,e))return O(a,n?c:s++,l,i)}}))},a}function zt(e,t,r,n){var a=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=a:r|=0),I(t,r,a))return e;var i=P(t,a),o=E(r,a);if(i!=i||o!=o)return zt(e.toSeq().cacheResult(),t,r,n);var s,u=o-i;u==u&&(s=u<0?0:u);var c=Jt(e);return c.size=0===s?s:e.size&&s||void 0,!n&&ee(e)&&s>=0&&(c.get=function(t,r){return(t=A(this,t))>=0&&t<s?e.get(t+i,r):r}),c.__iterateUncached=function(t,r){var a=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var o=0,u=!0,c=0;return e.__iterate((function(e,r){if(!u||!(u=o++<i))return c++,!1!==t(e,n?r:c-1,a)&&c!==s})),c},c.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var a=0!==s&&e.__iterator(t,r),o=0,u=0;return new B((function(){for(;o++<i;)a.next();if(++u>s)return{value:void 0,done:!0};var e=a.next();return n||1===t?e:O(t,u-1,0===t?void 0:e.value[1],e)}))},c}function Vt(e,t,r,n){var a=Jt(e);return a.__iterateUncached=function(a,i){var o=this;if(i)return this.cacheResult().__iterate(a,i);var s=!0,u=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(r,e,i,c)))return u++,a(e,n?i:u-1,o)})),u},a.__iteratorUncached=function(a,i){var o=this;if(i)return this.cacheResult().__iterator(a,i);var s=e.__iterator(2,i),u=!0,c=0;return new B((function(){var e,i,l;do{if((e=s.next()).done)return n||1===a?e:O(a,c++,0===a?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],u&&(u=t.call(r,l,i,o))}while(u);return 2===a?e:O(a,i,l,e)}))},a}function Gt(e,t){var r=s(e),a=[e].concat(t).map((function(e){return o(e)?r&&(e=n(e)):e=r?re(e):ne(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===a.length)return e;if(1===a.length){var i=a[0];if(i===e||r&&s(i)||u(e)&&u(i))return i}var c=new Q(a);return r?c=c.toKeyedSeq():u(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=a.reduce((function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}}),0),c}function jt(e,t,r){var n=Jt(e);return n.__iterateUncached=function(n,a){var i=0,s=!1;return function e(u,c){var l=this;u.__iterate((function(a,u){return(!t||c<t)&&o(a)?e(a,c+1):!1===n(a,r?u:i++,l)&&(s=!0),!s}),a)}(e,0),i},n.__iteratorUncached=function(n,a){var i=e.__iterator(n,a),s=[],u=0;return new B((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(2===n&&(c=c[1]),t&&!(s.length<t)||!o(c))return r?e:O(n,u++,c,e);s.push(i),i=c.__iterator(n,a)}else i=s.pop()}return{value:void 0,done:!0}}))},n}function Ht(e,t,r){t||(t=er);var n=s(e),a=0,i=e.toSeq().map((function(t,n){return[n,t,a++,r?r(t,n,e):t]})).toArray();return i.sort((function(e,r){return t(e[3],r[3])||e[2]-r[2]})).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),n?j(i):u(e)?H(i):q(i)}function qt(e,t,r){if(t||(t=er),r){var n=e.toSeq().map((function(t,n){return[t,r(t,n,e)]})).reduce((function(e,r){return Xt(t,e[1],r[1])?r:e}));return n&&n[0]}return e.reduce((function(e,r){return Xt(t,e,r)?r:e}))}function Xt(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function Wt(e,t,n){var a=Jt(e);return a.size=new Q(n).map((function(e){return e.size})).min(),a.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),a=0;!(r=n.next()).done&&!1!==e(r.value,a++,this););return a},a.__iteratorUncached=function(e,a){var i=n.map((function(e){return e=r(e),U(a?e.reverse():e)})),o=0,s=!1;return new B((function(){var r;return s||(r=i.map((function(e){return e.next()})),s=r.some((function(e){return e.done}))),s?{value:void 0,done:!0}:O(e,o++,t.apply(null,r.map((function(e){return e.value}))))}))},a}function Yt(e,t){return ee(e)?t:e.constructor(t)}function Kt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Be(e.size),w(e)}function Zt(e){return s(e)?n:u(e)?a:i}function Jt(e){return Object.create((s(e)?j:u(e)?H:q).prototype)}function $t(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function er(e,t){return e>t?1:e<t?-1:0}function tr(e){var t=U(e);if(!t){if(!V(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(r(e))}return t}function rr(e,t){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var o=Object.keys(e);(function(e,t){try{t.forEach(or.bind(void 0,e))}catch(e){}})(a,o),a.size=o.length,a._name=t,a._keys=o,a._defaultValues=e}this._map=Oe(i)},a=n.prototype=Object.create(nr);return a.constructor=n,n}t(It,Oe),It.of=function(){return this(arguments)},It.prototype.toString=function(){return this.__toString("OrderedMap {","}")},It.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},It.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Dt()},It.prototype.set=function(e,t){return Mt(this,e,t)},It.prototype.remove=function(e){return Mt(this,e,g)},It.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},It.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],r)}),t)},It.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?Et(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},It.isOrderedMap=Pt,It.prototype[m]=!0,It.prototype.delete=It.prototype.remove,t(kt,j),kt.prototype.get=function(e,t){return this._iter.get(e,t)},kt.prototype.has=function(e){return this._iter.has(e)},kt.prototype.valueSeq=function(){return this._iter.valueSeq()},kt.prototype.reverse=function(){var e=this,t=Nt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},kt.prototype.map=function(e,t){var r=this,n=Lt(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},kt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?Qt(this):0,function(a){return e(a,t?--r:r++,n)}),t)},kt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(1,t),n=t?Qt(this):0;return new B((function(){var a=r.next();return a.done?a:O(e,t?--n:n++,a.value,a)}))},kt.prototype[m]=!0,t(Rt,H),Rt.prototype.includes=function(e){return this._iter.includes(e)},Rt.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate((function(t){return e(t,n++,r)}),t)},Rt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t),n=0;return new B((function(){var t=r.next();return t.done?t:O(e,n++,t.value,t)}))},t(Bt,q),Bt.prototype.