@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
1 lines • 283 kB
JavaScript
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=71)}([function(t,e){t.exports=require("react")},function(t,e,n){t.exports=n(28)()},function(t,e,n){(e=t.exports=n(13)(!1)).push([t.i," {\n}\n",""]),e.locals={"color-labs-red":"#a0372d","color-darkest-grey":"#282828","color-dark-grey":"#4a4a4a","color-mid-grey":"#696969","color-light-grey":"#767676","color-lightest-grey":"#f2f2f2","color-subt-green":"#69e3c2","color-light-shilo":"#E2A9A2"}},function(t,e,n){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:V(t)}function r(t){return s(t)?t:J(t)}function o(t){return u(t)?t:G(t)}function i(t){return a(t)&&!c(t)?t:X(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[p])}function u(t){return!(!t||!t[h])}function c(t){return s(t)||u(t)}function l(t){return!(!t||!t[d])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",g=5,y=1<<g,v=y-1,m={},b={value:!1},_={value:!1};function w(t){return t.value=!1,t}function S(t){t&&(t.value=!0)}function x(){}function k(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function E(t){return void 0===t.size&&(t.size=t.__iterate(C)),t.size}function O(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function C(){return!0}function T(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function M(t,e){return A(t,e,0)}function D(t,e){return A(t,e,e)}function A(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I=0,K=1,L=2,B="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",z=B||N;function j(t){this.next=t}function R(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function P(){return{value:void 0,done:!0}}function F(t){return!!W(t)}function U(t){return t&&"function"==typeof t.next}function q(t){var e=W(t);return e&&e.call(t)}function W(t){var e=t&&(B&&t[B]||t[N]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function V(t){return null==t?it():a(t)?t.toSeq():function(t){var e=ut(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function J(t){return null==t?it().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():at(t)}function G(t){return null==t?it():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():st(t)}function X(t){return(null==t?it():a(t)?s(t)?t.entrySeq():t:st(t)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=I,j.VALUES=K,j.ENTRIES=L,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[z]=function(){return this},e(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return ct(this,t,e,!0)},V.prototype.__iterator=function(t,e){return lt(this,t,e,!0)},e(J,V),J.prototype.toKeyedSeq=function(){return this},e(G,V),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return ct(this,t,e,!1)},G.prototype.__iterator=function(t,e){return lt(this,t,e,!1)},e(X,V),X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},V.isSeq=ot,V.Keyed=J,V.Set=X,V.Indexed=G;var Y,Z,$,Q="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function rt(t){this._iterator=t,this._iteratorCache=[]}function ot(t){return!(!t||!t[Q])}function it(){return Y||(Y=new tt([]))}function at(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():U(t)?new rt(t).fromEntrySeq():F(t)?new nt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=ut(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ut(t){return H(t)?new tt(t):U(t)?new rt(t):F(t)?new nt(t):void 0}function ct(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function lt(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new j(function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:R(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function ft(t,e){return e?function t(e,n,r,o){return Array.isArray(n)?e.call(o,r,G(n).map(function(r,o){return t(e,r,o,n)})):ht(n)?e.call(o,r,J(n).map(function(r,o){return t(e,r,o,n)})):n}(e,t,"",{"":t}):pt(t)}function pt(t){return Array.isArray(t)?G(t).map(pt).toList():ht(t)?J(t).map(pt).toMap():t}function ht(t){return t&&(t.constructor===Object||void 0===t.constructor)}function dt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function gt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||u(t)!==u(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&dt(o[1],t)&&(n||dt(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var f=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):o?!dt(e,t.get(r,m)):!dt(t.get(r,m),e))return f=!1,!1});return f&&t.size===p}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Z)return Z;Z=this}}function vt(t,e){if(!t)throw new Error(e)}function mt(t,e,n){if(!(this instanceof mt))return new mt(t,e,n);if(vt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if($)return $;$=this}}function bt(){throw TypeError("Abstract")}function _t(){}function wt(){}function St(){}V.prototype[Q]=!0,e(tt,G),tt.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},tt.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new j(function(){return o>r?{value:void 0,done:!0}:R(t,o,n[e?r-o++:o++])})},e(et,J),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},et.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new j(function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:R(t,a,n[a])})},et.prototype[d]=!0,e(nt,G),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=q(n),o=0;if(U(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,o++,this););return o},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=q(n);if(!U(r))return new j(P);var o=0;return new j(function(){var e=r.next();return e.done?e:R(t,o++,e.value)})},e(rt,G),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new j(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return R(t,o,r[o++])})},e(yt,G),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return dt(this._value,t)},yt.prototype.slice=function(t,e){var n=this.size;return T(t,e,n)?this:new yt(this._value,D(e,n)-M(t,n))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return dt(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return dt(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},yt.prototype.__iterator=function(t,e){var n=this,r=0;return new j(function(){return r<n.size?R(t,r++,n._value):{value:void 0,done:!0}})},yt.prototype.equals=function(t){return t instanceof yt?dt(this._value,t._value):gt(t)},e(mt,G),mt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+O(this,t)*this._step:e},mt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},mt.prototype.slice=function(t,e){return T(t,e,this.size)?this:(t=M(t,this.size),(e=D(e,this.size))<=t?new mt(0,0):new mt(this.get(t,this._end),this.get(e,this._end),this._step))},mt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},mt.prototype.lastIndexOf=function(t){return this.indexOf(t)},mt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},mt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new j(function(){var a=o;return o+=e?-r:r,i>n?{value:void 0,done:!0}:R(t,i++,a)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:gt(this,t)},e(bt,n),e(_t,bt),e(wt,bt),e(St,bt),bt.Keyed=_t,bt.Indexed=wt,bt.Set=St;var xt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function kt(t){return t>>>1&1073741824|3221225471&t}function Et(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,n,r=typeof t;if("number"===r){var o=0|t;for(o!==t&&(o^=4294967295*t);t>4294967295;)o^=t/=4294967295;return kt(o)}if("string"===r)return t.length>Kt?(void 0===(n=Nt[e=t])&&(n=Ot(e),Bt===Lt&&(Bt=0,Nt={}),Bt++,Nt[e]=n),n):Ot(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===r)return function(t){var e;if(Dt&&void 0!==(e=Ct.get(t)))return e;if(void 0!==(e=t[It]))return e;if(!Mt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[It]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++At,1073741824&At&&(At=0),Dt)Ct.set(t,e);else{if(void 0!==Tt&&!1===Tt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Mt)Object.defineProperty(t,It,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[It]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[It]=e}}return e}(t);if("function"==typeof t.toString)return Ot(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function Ot(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return kt(e)}var Ct,Tt=Object.isExtensible,Mt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Dt="function"==typeof WeakMap;Dt&&(Ct=new WeakMap);var At=0,It="__immutablehash__";"function"==typeof Symbol&&(It=Symbol(It));var Kt=16,Lt=255,Bt=0,Nt={};function zt(t){vt(t!==1/0,"Cannot perform this action with an infinite size.")}function jt(t){return null==t?$t():Rt(t)&&!l(t)?t:$t().withMutations(function(e){var n=r(t);zt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Rt(t){return!(!t||!t[Ft])}e(jt,_t),jt.prototype.toString=function(){return this.__toString("Map {","}")},jt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},jt.prototype.set=function(t,e){return Qt(this,t,e)},jt.prototype.setIn=function(t,e){return this.updateIn(t,m,function(){return e})},jt.prototype.remove=function(t){return Qt(this,t,m)},jt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return m})},jt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},jt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,o){var i=e===m,a=n.next();if(a.done){var s=i?r:e,u=o(s);return u===s?e:u}vt(i||e&&e.set,"invalid keyPath");var c=a.value,l=i?m:e.get(c,m),f=t(l,n,r,o);return f===l?e:f===m?e.remove(c):(i?$t():e).set(c,f)}(this,nn(t),e,n);return r===m?void 0:r},jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$t()},jt.prototype.merge=function(){return re(this,void 0,arguments)},jt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return re(this,e,n)},jt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,$t(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},jt.prototype.mergeDeep=function(){return re(this,oe,arguments)},jt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return re(this,ie(e),n)},jt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,$t(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},jt.prototype.sort=function(t){return Me(He(this,t))},jt.prototype.sortBy=function(t,e){return Me(He(this,e,t))},jt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},jt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},jt.prototype.asImmutable=function(){return this.__ensureOwner()},jt.prototype.wasAltered=function(){return this.__altered},jt.prototype.__iterator=function(t,e){return new Gt(this,t,e)},jt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},jt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Zt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},jt.isMap=Rt;var Pt,Ft="@@__IMMUTABLE_MAP__@@",Ut=jt.prototype;function qt(t,e){this.ownerID=t,this.entries=e}function Wt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Vt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Jt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Gt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Yt(t._root)}function Xt(t,e){return R(t,e[0],e[1])}function Yt(t,e){return{node:t,index:0,__prev:e}}function Zt(t,e,n,r){var o=Object.create(Ut);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function $t(){return Pt||(Pt=Zt(0))}function Qt(t,e,n){var r,o;if(t._root){var i=w(b),a=w(_);if(r=te(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===m?-1:1:0)}else{if(n===m)return t;o=1,r=new qt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Zt(o,r):$t()}function te(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===m?t:(S(s),S(a),new Jt(e,r,[o,i]))}function ee(t){return t.constructor===Jt||t.constructor===Vt}function ne(t,e,n,r,o){if(t.keyHash===r)return new Vt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v,u=a===s?[ne(t,e,n+g,r,o)]:(i=new Jt(e,r,o),a<s?[t,i]:[i,t]);return new Wt(e,1<<a|1<<s,u)}function re(t,e,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],u=r(s);a(s)||(u=u.map(function(t){return ft(t)})),o.push(u)}return ae(t,e,o)}function oe(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):dt(t,e)?t:e}function ie(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return dt(e,o)?e:o}}function ae(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,m,function(t){return t===m?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[0])}function se(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ue(t,e,n,r){var o=r?t:k(t);return o[e]=n,o}Ut[Ft]=!0,Ut.delete=Ut.remove,Ut.removeIn=Ut.deleteIn,qt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(dt(n,o[i][0]))return o[i][1];return r},qt.prototype.update=function(t,e,n,r,o,i,a){for(var s=o===m,u=this.entries,c=0,l=u.length;c<l&&!dt(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==u.length){if(!f&&!s&&u.length>=ce)return function(t,e,n,r){t||(t=new x);for(var o=new Jt(t,Et(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,u,r,o);var p=t&&t===this.ownerID,h=p?u:k(u);return f?s?c===l-1?h.pop():h[c]=h.pop():h[c]=[r,o]:h.push([r,o]),p?(this.entries=h,this):new qt(t,h)}},Wt.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var o=1<<((0===t?e:e>>>t)&v),i=this.bitmap;return 0==(i&o)?r:this.nodes[se(i&o-1)].get(t+g,e,n,r)},Wt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,u=1<<s,c=this.bitmap,l=0!=(c&u);if(!l&&o===m)return this;var f=se(c&u-1),p=this.nodes,h=l?p[f]:void 0,d=te(h,t,e+g,n,r,o,i,a);if(d===h)return this;if(!l&&d&&p.length>=le)return function(t,e,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ht(t,i+1,a)}(t,p,c,s,d);if(l&&!d&&2===p.length&&ee(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&ee(d))return d;var b=t&&t===this.ownerID,_=l?d?c:c^u:c|u,w=l?d?ue(p,f,d,b):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(p,f,b):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(p,f,d,b);return b?(this.bitmap=_,this.nodes=w,this):new Wt(t,_,w)},Ht.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var o=(0===t?e:e>>>t)&v,i=this.nodes[o];return i?i.get(t+g,e,n,r):r},Ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,u=o===m,c=this.nodes,l=c[s];if(u&&!l)return this;var f=te(l,t,e+g,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<fe)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,c=e.length;s<c;s++,u<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=u,a[i++]=l)}return new Wt(t,o,a)}(t,c,p,s)}else p++;var h=t&&t===this.ownerID,d=ue(c,s,f,h);return h?(this.count=p,this.nodes=d,this):new Ht(t,p,d)},Vt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(dt(n,o[i][0]))return o[i][1];return r},Vt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Et(r));var s=o===m;if(n!==this.keyHash)return s?this:(S(a),S(i),ne(this,t,e,n,[r,o]));for(var u=this.entries,c=0,l=u.length;c<l&&!dt(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===l)return new Jt(t,this.keyHash,u[1^c]);var p=t&&t===this.ownerID,h=p?u:k(u);return f?s?c===l-1?h.pop():h[c]=h.pop():h[c]=[r,o]:h.push([r,o]),p?(this.entries=h,this):new Vt(t,this.keyHash,h)},Jt.prototype.get=function(t,e,n,r){return dt(n,this.entry[0])?this.entry[1]:r},Jt.prototype.update=function(t,e,n,r,o,i,a){var s=o===m,u=dt(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(S(a),s?void S(i):u?t&&t===this.ownerID?(this.entry[1]=o,this):new Jt(t,this.keyHash,[r,o]):(S(i),ne(this,t,e,Et(r),[r,o])))},qt.prototype.iterate=Vt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Wt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Jt.prototype.iterate=function(t,e){return t(this.entry)},e(Gt,j),Gt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return Xt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return Xt(t,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Xt(t,i.entry);e=this._stack=Yt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ce=y/4,le=y/2,fe=y/4;function pe(t){var e=Se();if(null==t)return e;if(he(t))return t;var n=o(t),r=n.size;return 0===r?e:(zt(r),r>0&&r<y?we(0,r,g,null,new ye(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function he(t){return!(!t||!t[de])}e(pe,wt),pe.of=function(){return this(arguments)},pe.prototype.toString=function(){return this.__toString("List [","]")},pe.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var n=Ee(this,t+=this._origin);return n&&n.array[t&v]}return e},pe.prototype.set=function(t,e){return function(t,e,n){if((e=O(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Oe(t,e).set(0,n):Oe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=w(_);return e>=Te(t._capacity)?r=xe(r,t.__ownerID,0,e,n,i):o=xe(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):we(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},pe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},pe.prototype.insert=function(t,e){return this.splice(t,0,e)},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Se()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Oe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},pe.prototype.pop=function(){return Oe(this,0,-1)},pe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Oe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},pe.prototype.shift=function(){return Oe(this,1)},pe.prototype.merge=function(){return Ce(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Ce(this,e,n)},pe.prototype.mergeDeep=function(){return Ce(this,oe,arguments)},pe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Ce(this,ie(e),n)},pe.prototype.setSize=function(t){return Oe(this,0,t)},pe.prototype.slice=function(t,e){var n=this.size;return T(t,e,n)?this:Oe(this,M(t,n),D(e,n))},pe.prototype.__iterator=function(t,e){var n=0,r=_e(this,e);return new j(function(){var e=r();return e===be?{value:void 0,done:!0}:R(t,n++,e)})},pe.prototype.__iterate=function(t,e){for(var n,r=0,o=_e(this,e);(n=o())!==be&&!1!==t(n,r++,this););return r},pe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?we(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},pe.isList=he;var de="@@__IMMUTABLE_LIST__@@",ge=pe.prototype;function ye(t,e){this.array=t,this.ownerID=e}ge[de]=!0,ge.delete=ge.remove,ge.setIn=Ut.setIn,ge.deleteIn=ge.removeIn=Ut.removeIn,ge.update=Ut.update,ge.updateIn=Ut.updateIn,ge.mergeIn=Ut.mergeIn,ge.mergeDeepIn=Ut.mergeDeepIn,ge.withMutations=Ut.withMutations,ge.asMutable=Ut.asMutable,ge.asImmutable=Ut.asImmutable,ge.wasAltered=Ut.wasAltered,ye.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&v;if(r>=this.array.length)return new ye([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-g,n))===a&&i)return this}if(i&&!o)return this;var s=ke(this,t);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},ye.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&v;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-g,n))===i&&o===this.array.length-1)return this}var a=ke(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ve,me,be={};function _e(t,e){var n=t._origin,r=t._capacity,o=Te(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,u){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,u=a>n?0:n-a,c=r-a;return c>y&&(c=y),function(){if(u===c)return be;var t=e?--c:u++;return s&&s[t]}}(t,u):function(t,o,i){var s,u=t&&t.array,c=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==be)return t;s=null}if(c===l)return be;var n=e?--l:c++;s=a(u&&u[n],o-g,i+(n<<o))}}}(t,s,u)}}function we(t,e,n,r,o,i,a){var s=Object.create(ge);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Se(){return ve||(ve=we(0,0,g))}function xe(t,e,n,r,o,i){var a,s=r>>>n&v,u=t&&s<t.array.length;if(!u&&void 0===o)return t;if(n>0){var c=t&&t.array[s],l=xe(c,e,n-g,r,o,i);return l===c?t:((a=ke(t,e)).array[s]=l,a)}return u&&t.array[s]===o?t:(S(i),a=ke(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function ke(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function Ee(t,e){if(e>=Te(t._capacity))return t._tail;if(e<1<<t._level+g){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&v],r-=g;return n}}function Oe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new x,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new ye(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=g);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Te(i),p=Te(s);p>=1<<u+g;)c=new ye(c&&c.array.length?[c]:[],r),u+=g;var h=t._tail,d=p<f?Ee(t,s-1):p>f?new ye([],r):h;if(h&&p>f&&a<i&&h.array.length){for(var y=c=ke(c,r),m=u;m>g;m-=g){var b=f>>>m&v;y=y.array[b]=ke(y.array[b],r)}y.array[f>>>g&v]=h}if(s<i&&(d=d&&d.removeAfter(r,0,s)),a>=p)a-=p,s-=p,u=g,c=null,d=d&&d.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;c;){var _=a>>>u&v;if(_!==p>>>u&v)break;_&&(l+=(1<<u)*_),u-=g,c=c.array[_]}c&&a>o&&(c=c.removeBefore(r,u,a-l)),c&&p<f&&(c=c.removeAfter(r,u,p-l)),l&&(a-=l,s-=l)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):we(a,s,u,c,d)}function Ce(t,e,n){for(var r=[],i=0,s=0;s<n.length;s++){var u=n[s],c=o(u);c.size>i&&(i=c.size),a(u)||(c=c.map(function(t){return ft(t)})),r.push(c)}return i>t.size&&(t=t.setSize(i)),ae(t,e,r)}function Te(t){return t<y?0:t-1>>>g<<g}function Me(t){return null==t?Ie():De(t)?t:Ie().withMutations(function(e){var n=r(t);zt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function De(t){return Rt(t)&&l(t)}function Ae(t,e,n,r){var o=Object.create(Me.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Ie(){return me||(me=Ae($t(),Se()))}function Ke(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),u=void 0!==s;if(n===m){if(!u)return t;a.size>=y&&a.size>=2*i.size?(o=a.filter(function(t,e){return void 0!==t&&s!==e}),r=o.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):Ae(r,o)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Be(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function je(t){var e=Qe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===L){var r=t.__iterator(e,n);return new j(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===K?I:K,n)},e}function Re(t,e,n){var r=Qe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,m);return i===m?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(L,o);return new j(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return R(r,s,e.call(n,a[1],s,t),o)})},r}function Pe(t,e){var n=Qe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=je(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=Qe(t);return r&&(o.has=function(r){var o=t.get(r,m);return o!==m&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,m);return i!==m&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate(function(t,i,u){if(e.call(n,t,i,u))return s++,o(t,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(L,i),s=0;return new j(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return R(o,r?c:s++,l,i)}})},o}function Ue(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),T(e,n,o))return t;var i=M(e,o),a=D(n,o);if(i!=i||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var c=Qe(t);return c.size=0===s?s:t.size&&s||void 0,!r&&ot(t)&&s>=0&&(c.get=function(e,n){return(e=O(this,e))>=0&&e<s?t.get(e+i,n):n}),c.__iterateUncached=function(e,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,u=!0,c=0;return t.__iterate(function(t,n){if(!u||!(u=a++<i))return c++,!1!==e(t,r?n:c-1,o)&&c!==s}),c},c.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var o=0!==s&&t.__iterator(e,n),a=0,u=0;return new j(function(){for(;a++<i;)o.next();if(++u>s)return{value:void 0,done:!0};var t=o.next();return r||e===K?t:R(e,u-1,e===I?void 0:t.value[1],t)})},c}function qe(t,e,n,r){var o=Qe(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return t.__iterate(function(t,i,c){if(!s||!(s=e.call(n,t,i,c)))return u++,o(t,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(L,i),u=!0,c=0;return new j(function(){var t,i,l;do{if((t=s.next()).done)return r||o===K?t:R(o,c++,o===I?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],u&&(u=e.call(n,l,i,a))}while(u);return o===L?t:R(o,i,l,t)})},o}function We(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(u,c){var l=this;u.__iterate(function(o,u){return(!e||c<e)&&a(o)?t(o,c+1):!1===r(o,n?u:i++,l)&&(s=!0),!s},o)}(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),s=[],u=0;return new j(function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(r===L&&(c=c[1]),e&&!(s.length<e)||!a(c))return n?t:R(r,u++,c,t);s.push(i),i=c.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}})},r}function He(t,e,n){e||(e=en);var r=s(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?J(i):u(t)?G(i):X(i)}function Ve(t,e,n){if(e||(e=en),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return Je(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return Je(e,t,n)?n:t})}function Je(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Ge(t,e,r){var o=Qe(t);return o.size=new tt(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(K,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=n(t),q(o?t.reverse():t)}),a=0,s=!1;return new j(function(){var n;return s||(n=i.map(function(t){return t.next()}),s=n.some(function(t){return t.done})),s?{value:void 0,done:!0}:R(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function Xe(t,e){return ot(t)?e:t.constructor(e)}function Ye(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ze(t){return zt(t.size),E(t)}function $e(t){return s(t)?r:u(t)?o:i}function Qe(t){return Object.create((s(t)?J:u(t)?G:X).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t<e?-1:0}function nn(t){var e=q(t);if(!e){if(!H(t))throw new TypeError("Expected iterable or array-like: "+t);e=q(n(t))}return e}function rn(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){vt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=jt(i)},o=r.prototype=Object.create(on);return o.constructor=r,r}e(Me,jt),Me.of=function(){return this(arguments)},Me.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Me.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Me.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ie()},Me.prototype.set=function(t,e){return Ke(this,t,e)},Me.prototype.remove=function(t){return Ke(this,t,m)},Me.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Me.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Me.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Me.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Ae(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Me.isOrderedMap=De,Me.prototype[d]=!0,Me.prototype.delete=Me.prototype.remove,e(Le,J),Le.prototype.get=function(t,e){return this._iter.get(t,e)},Le.prototype.has=function(t){return this._iter.has(t)},Le.prototype.valueSeq=function(){return this._iter.valueSeq()},Le.prototype.reverse=function(){var t=this,e=Pe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Le.prototype.map=function(t,e){var n=this,r=Re(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Le.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ze(this):0,function(o){return t(o,e?--n:n++,r)}),e)},Le.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(K,e),r=e?Ze(this):0;return new j(function(){var o=n.next();return o.done?o:R(t,e?--r:r++,o.value,o)})},Le.prototype[d]=!0,e(Be,G),Be.prototype.includes=function(t){return this._iter.includes(t)},Be.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Be.prototype.__iterator=function(t,e){var n=this._iter.__iterator(K,e),r=0;return new j(function(){var e=n.next();return e.done?e:R(t,r++,e.value,e)})},e(Ne,X),Ne.prototype.has=function(t){return this._iter.includes(t)},Ne.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Ne.prototype.__iterator=function(t,e){var n=this._iter.__iterator(K,e);return new j(function(){var e=n.next();return e.done?e:R(t,e.value,e.value,e)})},e(ze,J),ze.prototype.entrySeq=function(){return this._iter.toSeq()},ze.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ye(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(K,e);return new j(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ye(r);var o=a(r);return R(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},Be.prototype.cacheResult=Le.prototype.cacheResult=Ne.prototype.cacheResult=ze.prototype.cacheResult=tn,e(rn,_t),rn.prototype.toString=function(){return this.__toString(sn(this)+" {","}")},rn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},rn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=an(this,$t()))},rn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+sn(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:an(this,n)},rn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:an(this,e)},rn.prototype.wasAltered=function(){return this._map.wasAltered()},rn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},rn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},rn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?an(this,e,t):(this.__ownerID=t,this._map=e,this)};var on=rn.prototype;function an(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function sn(t){return t._name||t.constructor.name||"Record"}function un(t){return null==t?gn():cn(t)&&!l(t)?t:gn().withMutations(function(e){var n=i(t);zt(n.size),n.forEach(function(t){return e.add(t)})})}function cn(t){return!(!t||!t[fn])}on.delete=on.remove,on.deleteIn=on.removeIn=Ut.removeIn,on.merge=Ut.merge,on.mergeWith=Ut.mergeWith,on.mergeIn=Ut.mergeIn,on.mergeDeep=Ut.mergeDeep,on.mergeDeepWith=Ut.mergeDeepWith,on.mergeDeepIn=Ut.mergeDeepIn,on.setIn=Ut.setIn,on.update=Ut.update,on.updateIn=Ut.updateIn,on.withMutations=Ut.withMutations,on.asMutable=Ut.asMutable,on.asImmutable=Ut.asImmutable,e(un,St),un.of=function(){return this(arguments)},un.fromKeys=function(t){return this(r(t).keySeq())},un.prototype.toString=function(){return this.__toString("Set {","}")},un.prototype.has=function(t){return this._map.has(t)},un.prototype.add=function(t){return hn(this,this._map.set(t,!0))},un.prototype.remove=function(t){return hn(this,this._map.remove(t))},un.prototype.clear=function(){return hn(this,this._map.clear())},un.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},un.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},un.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},un.prototype.merge=function(){return this.union.apply(this,arguments)},un.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},un.prototype.sort=function(t){return yn(He(this,t))},un.prototype.sortBy=function(t,e){return yn(He(this,e,t))},un.prototype.wasAltered=function(){return this._map.wasAltered()},un.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},un.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},un.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},un.isSet=cn;var ln,fn="@@__IMMUTABLE_SET__@@",pn=un.prototype;function hn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function dn(t,e){var n=Object.create(pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function gn(){return ln||(ln=dn($t()))}function yn(t){return null==t?wn():vn(t)?t:wn().withMutations(function(e){var n=i(t);zt(n.size),n.forEach(function(t){return e.add(t)})})}function vn(t){return cn(t)&&l(t)}pn[fn]=!0,pn.delete=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=Ut.withMutations,pn.asMutable=Ut.asMutable,pn.asImmutable=Ut.asImmutable,pn.__empty=gn,pn.__make=dn,e(yn,un),yn.of=function(){return this(arguments)},yn.fromKeys=function(t){return this(r(t).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=vn;var mn,bn=yn.prototype;function _n(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function wn(){return mn||(mn=_n(Ie()))}function Sn(t){return null==t?Tn():xn(t)?t:Tn().unshiftAll(t)}function xn(t){return!(!t||!t[En])}bn[d]=!0,bn.__empty=wn,bn.__make=_n,e(Sn,wt),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(t,e){var n=this._head;for(t=O(this,t);n&&t--;)n=n.next;return n?n.value:e},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Cn(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;zt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Tn()},Sn.prototype.slice=function(t,e){if(T(t,e,this.size))return this;var n=M(t,this.size),r=D(e,this.size);if(r!==this.size)return wt.prototype.slice.call(this,t,e);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Cn(o,i)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new j(function(){if(r){var e=r.value;return r=r.next,R(t,n++,e)}return{value:void 0,done:!0}})},Sn.isStack=xn;var kn,En="@@__IMMUTABLE_STACK__@@",On=Sn.prototype;function Cn(t,e,n,r){var o=Object.create(On);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Tn(){return kn||(kn=Cn(0))}function Mn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}On[En]=!0,On.withMutations=Ut.withMutations,On.asMutable=Ut.asMutable,On.asImmutable=Ut.asImmutable,On.wasAltered=Ut.wasAltered,n.Iterator=j,Mn(n,{toArray:function(){zt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Be(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return jt(this.toKeyedSeq())},toObject:function(){zt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Me(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return un(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return pe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Xe(this,function(t,e){var n=s(t),o=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?at(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||u(t)&&u(i))return i}var c=new tt(o);return n?c=c.toKeyedSeq():u(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}(this,e))},includes:function(t){return this.some(function(e){return dt(e,t)})},entries:function(){return this.__iterator(L)},every:function(t,e){zt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Xe(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return zt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){zt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(I)},map:function(t,e){return Xe(this,Re(this,t,e))},reduce:function(t,e,n){var r,o;return zt(this.size),arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xe(this,Pe(this,!0))},slice:function(t,e){return Xe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Ln(t),e)},sort:function(t){return Xe(this,He(this,t))