UNPKG

@ngageoint/mage.web-app

Version:

The MAGE web-app is the UI for interacting with the MAGE service in a web browser.

1 lines 1.12 MB
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[530],{52530:(Go,a,l)=>{"use strict";l.r(a),l.d(a,{SwaggerModule:()=>b});var t=l(27111),e=l.n(t),r=l(94650),n=l(19132),o=l(38159),s=l(4859),u=l(97392),i=l(83683);const p=function(){return{wrapComponents:{AuthorizeBtnContainer:()=>()=>null,ServersContainer:()=>()=>null,authorizeOperationBtn:()=>()=>null}}};let c=(()=>{class y{constructor(w,E,x){this.el=w,this.router=E,this.localStorageService=x}ngAfterViewInit(){e()({url:"/api/docs/openapi.yaml",domNode:this.el.nativeElement.querySelector(".swagger-container"),deepLinking:!1,plugins:[p],requestInterceptor:w=>(w.headers.Authorization=`Bearer ${this.localStorageService.getToken()}`,w)})}onBack(){this.router.navigate(["about"])}}return y.\u0275fac=function(w){return new(w||y)(r.Y36(r.SBq),r.Y36(n.F0),r.Y36(o.n))},y.\u0275cmp=r.Xpm({type:y,selectors:[["swagger"]],decls:8,vars:0,consts:[["color","primary"],[1,"container"],["mat-icon-button","",3,"click"],[1,"title"],[1,"swagger-container"]],template:function(w,E){1&w&&(r.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"button",2),r.NdJ("click",function(){return E.onBack()}),r.TgZ(3,"mat-icon"),r._uU(4,"arrow_back"),r.qZA()(),r.TgZ(5,"span",3),r._uU(6,"Mage Swagger API"),r.qZA()()(),r._UZ(7,"div",4))},dependencies:[s.lW,u.Hw,i.Ye],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center}.title[_ngcontent-%COMP%]{margin-left:16px}"]}),y})();var f=l(36895);const g=[{path:"",component:c}];let h=(()=>{class y{}return y.\u0275fac=function(w){return new(w||y)},y.\u0275mod=r.oAB({type:y}),y.\u0275inj=r.cJS({imports:[f.ez,s.ot,u.Ps,i.g0]}),y})(),b=(()=>{class y{}return y.\u0275fac=function(w){return new(w||y)},y.\u0275mod=r.oAB({type:y}),y.\u0275inj=r.cJS({imports:[h,n.Bz.forChild(g),n.Bz]}),y})()},27111:Go=>{Go.exports=function(a){var l={};function t(e){if(l[e])return l[e].exports;var r=l[e]={i:e,l:!1,exports:{}};return a[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=a,t.c=l,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r||4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(s){return e[s]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="/dist",t(t.s=546)}([function(a,l,t){"use strict";a.exports=t(134)},function(a,l,t){a.exports=function(){"use strict";var e=Array.prototype.slice;function r(m,j){j&&(m.prototype=Object.create(j.prototype)),m.prototype.constructor=m}function n(m){return i(m)?m:vt(m)}function o(m){return p(m)?m:Rt(m)}function s(m){return c(m)?m:Vt(m)}function u(m){return i(m)&&!f(m)?m:Ut(m)}function i(m){return!(!m||!m[h])}function p(m){return!(!m||!m[b])}function c(m){return!(!m||!m[y])}function f(m){return p(m)||c(m)}function g(m){return!(!m||!m[S])}r(o,n),r(s,n),r(u,n),n.isIterable=i,n.isKeyed=p,n.isIndexed=c,n.isAssociative=f,n.isOrdered=g,n.Keyed=o,n.Indexed=s,n.Set=u;var h="@@__IMMUTABLE_ITERABLE__@@",b="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",S="@@__IMMUTABLE_ORDERED__@@",w="delete",x=32,A=31,_={},T={value:!1},M={value:!1};function O(m){return m.value=!1,m}function C(m){m&&(m.value=!0)}function k(){}function N(m,j){j=j||0;for(var D=Math.max(0,m.length-j),W=new Array(D),Q=0;Q<D;Q++)W[Q]=m[Q+j];return W}function F(m){return void 0===m.size&&(m.size=m.__iterate(G)),m.size}function $(m,j){if("number"!=typeof j){var D=j>>>0;if(""+D!==j||4294967295===D)return NaN;j=D}return j<0?F(m)+j:j}function G(){return!0}function X(m,j,D){return(0===m||void 0!==D&&m<=-D)&&(void 0===j||void 0!==D&&j>=D)}function rt(m,j){return K(m,j,0)}function J(m,j){return K(m,j,j)}function K(m,j,D){return void 0===m?D:m<0?Math.max(0,j+m):void 0===j?m:Math.min(j,m)}var nt="function"==typeof Symbol&&Symbol.iterator,Ot="@@iterator",zt=nt||Ot;function pt(m){this.next=m}function ht(m,j,D,W){var Q=0===m?j:1===m?D:[j,D];return W?W.value=Q:W={value:Q,done:!1},W}function Pt(){return{value:void 0,done:!0}}function I(m){return!!st(m)}function R(m){return m&&"function"==typeof m.next}function Z(m){var j=st(m);return j&&j.call(m)}function st(m){var j=m&&(nt&&m[nt]||m[Ot]);if("function"==typeof j)return j}function ft(m){return m&&"number"==typeof m.length}function vt(m){return null==m?Xe():i(m)?m.toSeq():function Le(m){var j=Gt(m)||"object"==typeof m&&new Se(m);if(!j)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return j}(m)}function Rt(m){return null==m?Xe().toKeyedSeq():i(m)?p(m)?m.toSeq():m.fromEntrySeq():oe(m)}function Vt(m){return null==m?Xe():i(m)?p(m)?m.entrySeq():m.toIndexedSeq():Pe(m)}function Ut(m){return(null==m?Xe():i(m)?p(m)?m.entrySeq():m:Pe(m)).toSetSeq()}pt.prototype.toString=function(){return"[Iterator]"},pt.KEYS=0,pt.VALUES=1,pt.ENTRIES=2,pt.prototype.inspect=pt.prototype.toSource=function(){return this.toString()},pt.prototype[zt]=function(){return this},r(vt,n),vt.of=function(){return vt(arguments)},vt.prototype.toSeq=function(){return this},vt.prototype.toString=function(){return this.__toString("Seq {","}")},vt.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},vt.prototype.__iterate=function(m,j){return _e(this,m,j,!0)},vt.prototype.__iterator=function(m,j){return me(this,m,j,!0)},r(Rt,vt),Rt.prototype.toKeyedSeq=function(){return this},r(Vt,vt),Vt.of=function(){return Vt(arguments)},Vt.prototype.toIndexedSeq=function(){return this},Vt.prototype.toString=function(){return this.__toString("Seq [","]")},Vt.prototype.__iterate=function(m,j){return _e(this,m,j,!1)},Vt.prototype.__iterator=function(m,j){return me(this,m,j,!1)},r(Ut,vt),Ut.of=function(){return Ut(arguments)},Ut.prototype.toSetSeq=function(){return this},vt.isSeq=We,vt.Keyed=Rt,vt.Set=Ut,vt.Indexed=Vt;var Nt,jt,it,be="@@__IMMUTABLE_SEQ__@@";function ue(m){this._array=m,this.size=m.length}function Se(m){var j=Object.keys(m);this._object=m,this._keys=j,this.size=j.length}function Me(m){this._iterable=m,this.size=m.length||m.size}function He(m){this._iterator=m,this._iteratorCache=[]}function We(m){return!(!m||!m[be])}function Xe(){return Nt||(Nt=new ue([]))}function oe(m){var j=Array.isArray(m)?new ue(m).fromEntrySeq():R(m)?new He(m).fromEntrySeq():I(m)?new Me(m).fromEntrySeq():"object"==typeof m?new Se(m):void 0;if(!j)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return j}function Pe(m){var j=Gt(m);if(!j)throw new TypeError("Expected Array or iterable object of values: "+m);return j}function Gt(m){return ft(m)?new ue(m):R(m)?new He(m):I(m)?new Me(m):void 0}function _e(m,j,D,W){var Q=m._cache;if(Q){for(var gt=Q.length-1,Et=0;Et<=gt;Et++){var $t=Q[D?gt-Et:Et];if(!1===j($t[1],W?$t[0]:Et,m))return Et+1}return Et}return m.__iterateUncached(j,D)}function me(m,j,D,W){var Q=m._cache;if(Q){var gt=Q.length-1,Et=0;return new pt(function(){var $t=Q[D?gt-Et:Et];return Et++>gt?{value:void 0,done:!0}:ht(j,W?$t[0]:Et-1,$t[1])})}return m.__iteratorUncached(j,D)}function ie(m,j){return j?Mt(j,m,"",{"":m}):ut(m)}function Mt(m,j,D,W){return Array.isArray(j)?m.call(W,D,Vt(j).map(function(Q,gt){return Mt(m,Q,gt,j)})):wt(j)?m.call(W,D,Rt(j).map(function(Q,gt){return Mt(m,Q,gt,j)})):j}function ut(m){return Array.isArray(m)?Vt(m).map(ut).toList():wt(m)?Rt(m).map(ut).toMap():m}function wt(m){return m&&(m.constructor===Object||void 0===m.constructor)}function Ct(m,j){if(m===j||m!=m&&j!=j)return!0;if(!m||!j)return!1;if("function"==typeof m.valueOf&&"function"==typeof j.valueOf){if((m=m.valueOf())===(j=j.valueOf())||m!=m&&j!=j)return!0;if(!m||!j)return!1}return!("function"!=typeof m.equals||"function"!=typeof j.equals||!m.equals(j))}function we(m,j){if(m===j)return!0;if(!i(j)||void 0!==m.size&&void 0!==j.size&&m.size!==j.size||void 0!==m.__hash&&void 0!==j.__hash&&m.__hash!==j.__hash||p(m)!==p(j)||c(m)!==c(j)||g(m)!==g(j))return!1;if(0===m.size&&0===j.size)return!0;var D=!f(m);if(g(m)){var W=m.entries();return j.every(function(ye,le){var ve=W.next().value;return ve&&Ct(ve[1],ye)&&(D||Ct(ve[0],le))})&&W.next().done}var Q=!1;if(void 0===m.size)if(void 0===j.size)"function"==typeof m.cacheResult&&m.cacheResult();else{Q=!0;var gt=m;m=j,j=gt}var Et=!0,$t=j.__iterate(function(ye,le){if(D?!m.has(ye):Q?!Ct(ye,m.get(le,_)):!Ct(m.get(le,_),ye))return Et=!1,!1});return Et&&m.size===$t}function ge(m,j){if(!(this instanceof ge))return new ge(m,j);if(this._value=m,this.size=void 0===j?1/0:Math.max(0,j),0===this.size){if(jt)return jt;jt=this}}function he(m,j){if(!m)throw new Error(j)}function Ee(m,j,D){if(!(this instanceof Ee))return new Ee(m,j,D);if(he(0!==D,"Cannot step a Range by 0"),m=m||0,void 0===j&&(j=1/0),D=void 0===D?1:Math.abs(D),j<m&&(D=-D),this._start=m,this._end=j,this._step=D,this.size=Math.max(0,Math.ceil((j-m)/D-1)+1),0===this.size){if(it)return it;it=this}}function ze(){throw TypeError("Abstract")}function Ke(){}function Ye(){}function v(){}vt.prototype[be]=!0,r(ue,Vt),ue.prototype.get=function(m,j){return this.has(m)?this._array[$(this,m)]:j},ue.prototype.__iterate=function(m,j){for(var D=this._array,W=D.length-1,Q=0;Q<=W;Q++)if(!1===m(D[j?W-Q:Q],Q,this))return Q+1;return Q},ue.prototype.__iterator=function(m,j){var D=this._array,W=D.length-1,Q=0;return new pt(function(){return Q>W?{value:void 0,done:!0}:ht(m,Q,D[j?W-Q++:Q++])})},r(Se,Rt),Se.prototype.get=function(m,j){return void 0===j||this.has(m)?this._object[m]:j},Se.prototype.has=function(m){return this._object.hasOwnProperty(m)},Se.prototype.__iterate=function(m,j){for(var D=this._object,W=this._keys,Q=W.length-1,gt=0;gt<=Q;gt++){var Et=W[j?Q-gt:gt];if(!1===m(D[Et],Et,this))return gt+1}return gt},Se.prototype.__iterator=function(m,j){var D=this._object,W=this._keys,Q=W.length-1,gt=0;return new pt(function(){var Et=W[j?Q-gt:gt];return gt++>Q?{value:void 0,done:!0}:ht(m,Et,D[Et])})},Se.prototype[S]=!0,r(Me,Vt),Me.prototype.__iterateUncached=function(m,j){if(j)return this.cacheResult().__iterate(m,j);var D=Z(this._iterable),W=0;if(R(D))for(var Q;!(Q=D.next()).done&&!1!==m(Q.value,W++,this););return W},Me.prototype.__iteratorUncached=function(m,j){if(j)return this.cacheResult().__iterator(m,j);var D=Z(this._iterable);if(!R(D))return new pt(Pt);var W=0;return new pt(function(){var Q=D.next();return Q.done?Q:ht(m,W++,Q.value)})},r(He,Vt),He.prototype.__iterateUncached=function(m,j){if(j)return this.cacheResult().__iterate(m,j);for(var D,W=this._iterator,Q=this._iteratorCache,gt=0;gt<Q.length;)if(!1===m(Q[gt],gt++,this))return gt;for(;!(D=W.next()).done;){var Et=D.value;if(Q[gt]=Et,!1===m(Et,gt++,this))break}return gt},He.prototype.__iteratorUncached=function(m,j){if(j)return this.cacheResult().__iterator(m,j);var D=this._iterator,W=this._iteratorCache,Q=0;return new pt(function(){if(Q>=W.length){var gt=D.next();if(gt.done)return gt;W[Q]=gt.value}return ht(m,Q,W[Q++])})},r(ge,Vt),ge.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ge.prototype.get=function(m,j){return this.has(m)?this._value:j},ge.prototype.includes=function(m){return Ct(this._value,m)},ge.prototype.slice=function(m,j){var D=this.size;return X(m,j,D)?this:new ge(this._value,J(j,D)-rt(m,D))},ge.prototype.reverse=function(){return this},ge.prototype.indexOf=function(m){return Ct(this._value,m)?0:-1},ge.prototype.lastIndexOf=function(m){return Ct(this._value,m)?this.size:-1},ge.prototype.__iterate=function(m,j){for(var D=0;D<this.size;D++)if(!1===m(this._value,D,this))return D+1;return D},ge.prototype.__iterator=function(m,j){var D=this,W=0;return new pt(function(){return W<D.size?ht(m,W++,D._value):{value:void 0,done:!0}})},ge.prototype.equals=function(m){return m instanceof ge?Ct(this._value,m._value):we(m)},r(Ee,Vt),Ee.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Ee.prototype.get=function(m,j){return this.has(m)?this._start+$(this,m)*this._step:j},Ee.prototype.includes=function(m){var j=(m-this._start)/this._step;return j>=0&&j<this.size&&j===Math.floor(j)},Ee.prototype.slice=function(m,j){return X(m,j,this.size)?this:(m=rt(m,this.size),(j=J(j,this.size))<=m?new Ee(0,0):new Ee(this.get(m,this._end),this.get(j,this._end),this._step))},Ee.prototype.indexOf=function(m){var j=m-this._start;if(j%this._step==0){var D=j/this._step;if(D>=0&&D<this.size)return D}return-1},Ee.prototype.lastIndexOf=function(m){return this.indexOf(m)},Ee.prototype.__iterate=function(m,j){for(var D=this.size-1,W=this._step,Q=j?this._start+D*W:this._start,gt=0;gt<=D;gt++){if(!1===m(Q,gt,this))return gt+1;Q+=j?-W:W}return gt},Ee.prototype.__iterator=function(m,j){var D=this.size-1,W=this._step,Q=j?this._start+D*W:this._start,gt=0;return new pt(function(){var Et=Q;return Q+=j?-W:W,gt>D?{value:void 0,done:!0}:ht(m,gt++,Et)})},Ee.prototype.equals=function(m){return m instanceof Ee?this._start===m._start&&this._end===m._end&&this._step===m._step:we(this,m)},r(ze,n),r(Ke,ze),r(Ye,ze),r(v,ze),ze.Keyed=Ke,ze.Indexed=Ye,ze.Set=v;var z="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(m,j){var D=65535&(m|=0),W=65535&(j|=0);return D*W+((m>>>16)*W+D*(j>>>16)<<16>>>0)|0};function ct(m){return m>>>1&1073741824|3221225471&m}function _t(m){if(!1===m||null==m||"function"==typeof m.valueOf&&(!1===(m=m.valueOf())||null==m))return 0;if(!0===m)return 1;var j=typeof m;if("number"===j){if(m!=m||m===1/0)return 0;var D=0|m;for(D!==m&&(D^=4294967295*m);m>4294967295;)D^=m/=4294967295;return ct(D)}if("string"===j)return m.length>lt?function dt(m){var j=Ft[m];return void 0===j&&(j=kt(m),de===Wt&&(de=0,Ft={}),de++,Ft[m]=j),j}(m):kt(m);if("function"==typeof m.hashCode)return m.hashCode();if("object"===j)return function qt(m){var j;if(Xt&&void 0!==(j=Jt.get(m))||void 0!==(j=m[se])||!ae&&(void 0!==(j=m.propertyIsEnumerable&&m.propertyIsEnumerable[se])||void 0!==(j=function Dt(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}(m))))return j;if(j=++te,1073741824&te&&(te=0),Xt)Jt.set(m,j);else{if(void 0!==Lt&&!1===Lt(m))throw new Error("Non-extensible objects are not allowed as keys.");if(ae)Object.defineProperty(m,se,{enumerable:!1,configurable:!1,writable:!1,value:j});else if(void 0!==m.propertyIsEnumerable&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[se]=j;else{if(void 0===m.nodeType)throw new Error("Unable to set a non-enumerable property on object.");m[se]=j}}return j}(m);if("function"==typeof m.toString)return kt(m.toString());throw new Error("Value type "+j+" cannot be hashed.")}function kt(m){for(var j=0,D=0;D<m.length;D++)j=31*j+m.charCodeAt(D)|0;return ct(j)}var Jt,Lt=Object.isExtensible,ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}(),Xt="function"==typeof WeakMap;Xt&&(Jt=new WeakMap);var te=0,se="__immutablehash__";"function"==typeof Symbol&&(se=Symbol(se));var lt=16,Wt=255,de=0,Ft={};function ee(m){he(m!==1/0,"Cannot perform this action with an infinite size.")}function ne(m){return null==m?Ae():Ge(m)&&!g(m)?m:Ae().withMutations(function(j){var D=o(m);ee(D.size),D.forEach(function(W,Q){return j.set(Q,W)})})}function Ge(m){return!(!m||!m[Ze])}r(ne,Ke),ne.of=function(){var m=e.call(arguments,0);return Ae().withMutations(function(j){for(var D=0;D<m.length;D+=2){if(D+1>=m.length)throw new Error("Missing value for key: "+m[D]);j.set(m[D],m[D+1])}})},ne.prototype.toString=function(){return this.__toString("Map {","}")},ne.prototype.get=function(m,j){return this._root?this._root.get(0,void 0,m,j):j},ne.prototype.set=function(m,j){return Ie(this,m,j)},ne.prototype.setIn=function(m,j){return this.updateIn(m,_,function(){return j})},ne.prototype.remove=function(m){return Ie(this,m,_)},ne.prototype.deleteIn=function(m){return this.updateIn(m,function(){return _})},ne.prototype.update=function(m,j,D){return 1===arguments.length?m(this):this.updateIn([m],j,D)},ne.prototype.updateIn=function(m,j,D){D||(D=j,j=void 0);var W=Ve(this,co(m),j,D);return W===_?void 0:W},ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ae()},ne.prototype.merge=function(){return or(this,void 0,arguments)},ne.prototype.mergeWith=function(m){return or(this,m,e.call(arguments,1))},ne.prototype.mergeIn=function(m){var j=e.call(arguments,1);return this.updateIn(m,Ae(),function(D){return"function"==typeof D.merge?D.merge.apply(D,j):j[j.length-1]})},ne.prototype.mergeDeep=function(){return or(this,wr,arguments)},ne.prototype.mergeDeepWith=function(m){var j=e.call(arguments,1);return or(this,ir(m),j)},ne.prototype.mergeDeepIn=function(m){var j=e.call(arguments,1);return this.updateIn(m,Ae(),function(D){return"function"==typeof D.mergeDeep?D.mergeDeep.apply(D,j):j[j.length-1]})},ne.prototype.sort=function(m){return en(so(this,m))},ne.prototype.sortBy=function(m,j){return en(so(this,j,m))},ne.prototype.withMutations=function(m){var j=this.asMutable();return m(j),j.wasAltered()?j.__ensureOwner(this.__ownerID):this},ne.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},ne.prototype.asImmutable=function(){return this.__ensureOwner()},ne.prototype.wasAltered=function(){return this.__altered},ne.prototype.__iterator=function(m,j){return new bt(this,m,j)},ne.prototype.__iterate=function(m,j){var D=this,W=0;return this._root&&this._root.iterate(function(Q){return W++,m(Q[1],Q[0],D)},j),W},ne.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ce(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},ne.isMap=Ge;var nr,Ze="@@__IMMUTABLE_MAP__@@",xe=ne.prototype;function ur(m,j){this.ownerID=m,this.entries=j}function $e(m,j,D){this.ownerID=m,this.bitmap=j,this.nodes=D}function pr(m,j,D){this.ownerID=m,this.count=j,this.nodes=D}function P(m,j,D){this.ownerID=m,this.keyHash=j,this.entries=D}function yt(m,j,D){this.ownerID=m,this.keyHash=j,this.entry=D}function bt(m,j,D){this._type=j,this._reverse=D,this._stack=m._root&&Ht(m._root)}function re(m,j){return ht(m,j[0],j[1])}function Ht(m,j){return{node:m,index:0,__prev:j}}function Ce(m,j,D,W){var Q=Object.create(xe);return Q.size=m,Q._root=j,Q.__ownerID=D,Q.__hash=W,Q.__altered=!1,Q}function Ae(){return nr||(nr=Ce(0))}function Ie(m,j,D){var W,Q;if(m._root){var gt=O(T),Et=O(M);if(W=Tt(m._root,m.__ownerID,0,void 0,j,D,gt,Et),!Et.value)return m;Q=m.size+(gt.value?D===_?-1:1:0)}else{if(D===_)return m;Q=1,W=new ur(m.__ownerID,[[j,D]])}return m.__ownerID?(m.size=Q,m._root=W,m.__hash=void 0,m.__altered=!0,m):W?Ce(Q,W):Ae()}function Tt(m,j,D,W,Q,gt,Et,$t){return m?m.update(j,D,W,Q,gt,Et,$t):gt===_?m:(C($t),C(Et),new yt(j,W,[Q,gt]))}function fe(m){return m.constructor===yt||m.constructor===P}function Re(m,j,D,W,Q){if(m.keyHash===W)return new P(j,W,[m.entry,Q]);var gt,Et=(0===D?m.keyHash:m.keyHash>>>D)&A,$t=(0===D?W:W>>>D)&A;return new $e(j,1<<Et|1<<$t,Et===$t?[Re(m,j,D+5,W,Q)]:(gt=new yt(j,W,Q),Et<$t?[m,gt]:[gt,m]))}function or(m,j,D){for(var W=[],Q=0;Q<D.length;Q++){var gt=D[Q],Et=o(gt);i(gt)||(Et=Et.map(function($t){return ie($t)})),W.push(Et)}return At(m,j,W)}function wr(m,j,D){return m&&m.mergeDeep&&i(j)?m.mergeDeep(j):Ct(m,j)?m:j}function ir(m){return function(j,D,W){if(j&&j.mergeDeepWith&&i(D))return j.mergeDeepWith(m,D);var Q=m(j,D,W);return Ct(j,Q)?j:Q}}function At(m,j,D){return 0===(D=D.filter(function(W){return 0!==W.size})).length?m:0!==m.size||m.__ownerID||1!==D.length?m.withMutations(function(W){for(var Q=j?function(Et,$t){W.update($t,_,function(ye){return ye===_?Et:j(ye,Et,$t)})}:function(Et,$t){W.set($t,Et)},gt=0;gt<D.length;gt++)D[gt].forEach(Q)}):m.constructor(D[0])}function Ve(m,j,D,W){var Q=m===_,gt=j.next();if(gt.done){var Et=Q?D:m,$t=W(Et);return $t===Et?m:$t}he(Q||m&&m.set,"invalid keyPath");var ye=gt.value,le=Q?_:m.get(ye,_),ve=Ve(le,j,D,W);return ve===le?m:ve===_?m.remove(ye):(Q?Ae():m).set(ye,ve)}function er(m){return m=(m=(858993459&(m-=m>>1&1431655765))+(m>>2&858993459))+(m>>4)&252645135,127&(m+=m>>8)+(m>>16)}function fr(m,j,D,W){var Q=W?m:N(m);return Q[j]=D,Q}xe[Ze]=!0,xe[w]=xe.remove,xe.removeIn=xe.deleteIn,ur.prototype.get=function(m,j,D,W){for(var Q=this.entries,gt=0,Et=Q.length;gt<Et;gt++)if(Ct(D,Q[gt][0]))return Q[gt][1];return W},ur.prototype.update=function(m,j,D,W,Q,gt,Et){for(var $t=Q===_,ye=this.entries,le=0,ve=ye.length;le<ve&&!Ct(W,ye[le][0]);le++);var je=le<ve;if(je?ye[le][1]===Q:$t)return this;if(C(Et),($t||!je)&&C(gt),!$t||1!==ye.length){if(!je&&!$t&&ye.length>=Sr)return function De(m,j,D,W){m||(m=new k);for(var Q=new yt(m,_t(D),[D,W]),gt=0;gt<j.length;gt++){var Et=j[gt];Q=Q.update(m,0,void 0,Et[0],Et[1])}return Q}(m,ye,W,Q);var Je=m&&m===this.ownerID,rr=Je?ye:N(ye);return je?$t?le===ve-1?rr.pop():rr[le]=rr.pop():rr[le]=[W,Q]:rr.push([W,Q]),Je?(this.entries=rr,this):new ur(m,rr)}},$e.prototype.get=function(m,j,D,W){void 0===j&&(j=_t(D));var Q=1<<((0===m?j:j>>>m)&A),gt=this.bitmap;return 0==(gt&Q)?W:this.nodes[er(gt&Q-1)].get(m+5,j,D,W)},$e.prototype.update=function(m,j,D,W,Q,gt,Et){void 0===D&&(D=_t(W));var $t=(0===j?D:D>>>j)&A,ye=1<<$t,le=this.bitmap,ve=0!=(le&ye);if(!ve&&Q===_)return this;var je=er(le&ye-1),Je=this.nodes,rr=ve?Je[je]:void 0,xr=Tt(rr,m,j+5,D,W,Q,gt,Et);if(xr===rr)return this;if(!ve&&xr&&Je.length>=br)return function ke(m,j,D,W,Q){for(var gt=0,Et=new Array(x),$t=0;0!==D;$t++,D>>>=1)Et[$t]=1&D?j[gt++]:void 0;return Et[W]=Q,new pr(m,gt+1,Et)}(m,Je,le,$t,xr);if(ve&&!xr&&2===Je.length&&fe(Je[1^je]))return Je[1^je];if(ve&&xr&&1===Je.length&&fe(xr))return xr;var jr=m&&m===this.ownerID,Fr=ve?xr?le:le^ye:le|ye,Dr=ve?xr?fr(Je,je,xr,jr):function cr(m,j,D){var W=m.length-1;if(D&&j===W)return m.pop(),m;for(var Q=new Array(W),gt=0,Et=0;Et<W;Et++)Et===j&&(gt=1),Q[Et]=m[Et+gt];return Q}(Je,je,jr):function Er(m,j,D,W){var Q=m.length+1;if(W&&j+1===Q)return m[j]=D,m;for(var gt=new Array(Q),Et=0,$t=0;$t<Q;$t++)$t===j?(gt[$t]=D,Et=-1):gt[$t]=m[$t+Et];return gt}(Je,je,xr,jr);return jr?(this.bitmap=Fr,this.nodes=Dr,this):new $e(m,Fr,Dr)},pr.prototype.get=function(m,j,D,W){void 0===j&&(j=_t(D));var gt=this.nodes[(0===m?j:j>>>m)&A];return gt?gt.get(m+5,j,D,W):W},pr.prototype.update=function(m,j,D,W,Q,gt,Et){void 0===D&&(D=_t(W));var $t=(0===j?D:D>>>j)&A,le=this.nodes,ve=le[$t];if(Q===_&&!ve)return this;var je=Tt(ve,m,j+5,D,W,Q,gt,Et);if(je===ve)return this;var Je=this.count;if(ve){if(!je&&--Je<Rr)return function tr(m,j,D,W){for(var Q=0,gt=0,Et=new Array(D),$t=0,ye=1,le=j.length;$t<le;$t++,ye<<=1){var ve=j[$t];void 0!==ve&&$t!==W&&(Q|=ye,Et[gt++]=ve)}return new $e(m,Q,Et)}(m,le,Je,$t)}else Je++;var rr=m&&m===this.ownerID,xr=fr(le,$t,je,rr);return rr?(this.count=Je,this.nodes=xr,this):new pr(m,Je,xr)},P.prototype.get=function(m,j,D,W){for(var Q=this.entries,gt=0,Et=Q.length;gt<Et;gt++)if(Ct(D,Q[gt][0]))return Q[gt][1];return W},P.prototype.update=function(m,j,D,W,Q,gt,Et){void 0===D&&(D=_t(W));var $t=Q===_;if(D!==this.keyHash)return $t?this:(C(Et),C(gt),Re(this,m,j,D,[W,Q]));for(var ye=this.entries,le=0,ve=ye.length;le<ve&&!Ct(W,ye[le][0]);le++);var je=le<ve;if(je?ye[le][1]===Q:$t)return this;if(C(Et),($t||!je)&&C(gt),$t&&2===ve)return new yt(m,this.keyHash,ye[1^le]);var Je=m&&m===this.ownerID,rr=Je?ye:N(ye);return je?$t?le===ve-1?rr.pop():rr[le]=rr.pop():rr[le]=[W,Q]:rr.push([W,Q]),Je?(this.entries=rr,this):new P(m,this.keyHash,rr)},yt.prototype.get=function(m,j,D,W){return Ct(D,this.entry[0])?this.entry[1]:W},yt.prototype.update=function(m,j,D,W,Q,gt,Et){var $t=Q===_,ye=Ct(W,this.entry[0]);return(ye?Q===this.entry[1]:$t)?this:(C(Et),$t?void C(gt):ye?m&&m===this.ownerID?(this.entry[1]=Q,this):new yt(m,this.keyHash,[W,Q]):(C(gt),Re(this,m,j,_t(W),[W,Q])))},ur.prototype.iterate=P.prototype.iterate=function(m,j){for(var D=this.entries,W=0,Q=D.length-1;W<=Q;W++)if(!1===m(D[j?Q-W:W]))return!1},$e.prototype.iterate=pr.prototype.iterate=function(m,j){for(var D=this.nodes,W=0,Q=D.length-1;W<=Q;W++){var gt=D[j?Q-W:W];if(gt&&!1===gt.iterate(m,j))return!1}},yt.prototype.iterate=function(m,j){return m(this.entry)},r(bt,pt),bt.prototype.next=function(){for(var m=this._type,j=this._stack;j;){var D,W=j.node,Q=j.index++;if(W.entry){if(0===Q)return re(m,W.entry)}else if(W.entries){if(Q<=(D=W.entries.length-1))return re(m,W.entries[this._reverse?D-Q:Q])}else if(Q<=(D=W.nodes.length-1)){var gt=W.nodes[this._reverse?D-Q:Q];if(gt){if(gt.entry)return re(m,gt.entry);j=this._stack=Ht(gt,j)}continue}j=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var Sr=8,br=16,Rr=8;function hr(m){var j=on();if(null==m)return j;if(Cr(m))return m;var D=s(m),W=D.size;return 0===W?j:(ee(W),W>0&&W<x?Br(0,W,5,null,new $r(D.toArray())):j.withMutations(function(Q){Q.setSize(W),D.forEach(function(gt,Et){return Q.set(Et,gt)})}))}function Cr(m){return!(!m||!m[zr])}r(hr,Ye),hr.of=function(){return this(arguments)},hr.prototype.toString=function(){return this.__toString("List [","]")},hr.prototype.get=function(m,j){if((m=$(this,m))>=0&&m<this.size){var D=Zn(this,m+=this._origin);return D&&D.array[m&A]}return j},hr.prototype.set=function(m,j){return function sn(m,j,D){if((j=$(m,j))!=j)return m;if(j>=m.size||j<0)return m.withMutations(function(Et){j<0?Tn(Et,j).set(0,D):Tn(Et,0,j+1).set(j,D)});j+=m._origin;var W=m._tail,Q=m._root,gt=O(M);return j>=zn(m._capacity)?W=Nn(W,m.__ownerID,0,j,D,gt):Q=Nn(Q,m.__ownerID,m._level,j,D,gt),gt.value?m.__ownerID?(m._root=Q,m._tail=W,m.__hash=void 0,m.__altered=!0,m):Br(m._origin,m._capacity,m._level,Q,W):m}(this,m,j)},hr.prototype.remove=function(m){return this.has(m)?0===m?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},hr.prototype.insert=function(m,j){return this.splice(m,0,j)},hr.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):on()},hr.prototype.push=function(){var m=arguments,j=this.size;return this.withMutations(function(D){Tn(D,0,j+m.length);for(var W=0;W<m.length;W++)D.set(j+W,m[W])})},hr.prototype.pop=function(){return Tn(this,0,-1)},hr.prototype.unshift=function(){var m=arguments;return this.withMutations(function(j){Tn(j,-m.length);for(var D=0;D<m.length;D++)j.set(D,m[D])})},hr.prototype.shift=function(){return Tn(this,1)},hr.prototype.merge=function(){return In(this,void 0,arguments)},hr.prototype.mergeWith=function(m){return In(this,m,e.call(arguments,1))},hr.prototype.mergeDeep=function(){return In(this,wr,arguments)},hr.prototype.mergeDeepWith=function(m){var j=e.call(arguments,1);return In(this,ir(m),j)},hr.prototype.setSize=function(m){return Tn(this,0,m)},hr.prototype.slice=function(m,j){var D=this.size;return X(m,j,D)?this:Tn(this,rt(m,D),J(j,D))},hr.prototype.__iterator=function(m,j){var D=0,W=Pr(this,j);return new pt(function(){var Q=W();return Q===Qe?{value:void 0,done:!0}:ht(m,D++,Q)})},hr.prototype.__iterate=function(m,j){for(var D,W=0,Q=Pr(this,j);(D=Q())!==Qe&&!1!==m(D,W++,this););return W},hr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Br(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)},hr.isList=Cr;var zr="@@__IMMUTABLE_LIST__@@",kr=hr.prototype;function $r(m,j){this.array=m,this.ownerID=j}kr[zr]=!0,kr[w]=kr.remove,kr.setIn=xe.setIn,kr.deleteIn=kr.removeIn=xe.removeIn,kr.update=xe.update,kr.updateIn=xe.updateIn,kr.mergeIn=xe.mergeIn,kr.mergeDeepIn=xe.mergeDeepIn,kr.withMutations=xe.withMutations,kr.asMutable=xe.asMutable,kr.asImmutable=xe.asImmutable,kr.wasAltered=xe.wasAltered,$r.prototype.removeBefore=function(m,j,D){if(D===j?1<<j:0===this.array.length)return this;var W=D>>>j&A;if(W>=this.array.length)return new $r([],m);var Q,gt=0===W;if(j>0){var Et=this.array[W];if((Q=Et&&Et.removeBefore(m,j-5,D))===Et&&gt)return this}if(gt&&!Q)return this;var $t=un(this,m);if(!gt)for(var ye=0;ye<W;ye++)$t.array[ye]=void 0;return Q&&($t.array[W]=Q),$t},$r.prototype.removeAfter=function(m,j,D){if(D===(j?1<<j:0)||0===this.array.length)return this;var W,Q=D-1>>>j&A;if(Q>=this.array.length)return this;if(j>0){var gt=this.array[Q];if((W=gt&&gt.removeAfter(m,j-5,D))===gt&&Q===this.array.length-1)return this}var Et=un(this,m);return Et.array.splice(Q+1),W&&(Et.array[Q]=W),Et};var ce,sr,Qe={};function Pr(m,j){var D=m._origin,W=m._capacity,Q=zn(W),gt=m._tail;return function Et(le,ve,je){return 0===ve?function $t(le,ve){var je=ve===Q?gt&&gt.array:le&&le.array,Je=ve>D?0:D-ve,rr=W-ve;return rr>x&&(rr=x),function(){if(Je===rr)return Qe;var xr=j?--rr:Je++;return je&&je[xr]}}(le,je):function ye(le,ve,je){var Je,rr=le&&le.array,xr=je>D?0:D-je>>ve,jr=1+(W-je>>ve);return jr>x&&(jr=x),function(){for(;;){if(Je){var Fr=Je();if(Fr!==Qe)return Fr;Je=null}if(xr===jr)return Qe;var Dr=j?--jr:xr++;Je=Et(rr&&rr[Dr],ve-5,je+(Dr<<ve))}}}(le,ve,je)}(m._root,m._level,0)}function Br(m,j,D,W,Q,gt,Et){var $t=Object.create(kr);return $t.size=j-m,$t._origin=m,$t._capacity=j,$t._level=D,$t._root=W,$t._tail=Q,$t.__ownerID=gt,$t.__hash=Et,$t.__altered=!1,$t}function on(){return ce||(ce=Br(0,0,5))}function Nn(m,j,D,W,Q,gt){var Et,$t=W>>>D&A,ye=m&&$t<m.array.length;if(!ye&&void 0===Q)return m;if(D>0){var le=m&&m.array[$t],ve=Nn(le,j,D-5,W,Q,gt);return ve===le?m:((Et=un(m,j)).array[$t]=ve,Et)}return ye&&m.array[$t]===Q?m:(C(gt),Et=un(m,j),void 0===Q&&$t===Et.array.length-1?Et.array.pop():Et.array[$t]=Q,Et)}function un(m,j){return j&&m&&j===m.ownerID?m:new $r(m?m.array.slice():[],j)}function Zn(m,j){if(j>=zn(m._capacity))return m._tail;if(j<1<<m._level+5){for(var D=m._root,W=m._level;D&&W>0;)D=D.array[j>>>W&A],W-=5;return D}}function Tn(m,j,D){void 0!==j&&(j|=0),void 0!==D&&(D|=0);var W=m.__ownerID||new k,Q=m._origin,gt=m._capacity,Et=Q+j,$t=void 0===D?gt:D<0?gt+D:Q+D;if(Et===Q&&$t===gt)return m;if(Et>=$t)return m.clear();for(var ye=m._level,le=m._root,ve=0;Et+ve<0;)le=new $r(le&&le.array.length?[void 0,le]:[],W),ve+=1<<(ye+=5);ve&&(Et+=ve,Q+=ve,$t+=ve,gt+=ve);for(var je=zn(gt),Je=zn($t);Je>=1<<ye+5;)le=new $r(le&&le.array.length?[le]:[],W),ye+=5;var rr=m._tail,xr=Je<je?Zn(m,$t-1):Je>je?new $r([],W):rr;if(rr&&Je>je&&Et<gt&&rr.array.length){for(var jr=le=un(le,W),Fr=ye;Fr>5;Fr-=5){var Dr=je>>>Fr&A;jr=jr.array[Dr]=un(jr.array[Dr],W)}jr.array[je>>>5&A]=rr}if($t<gt&&(xr=xr&&xr.removeAfter(W,0,$t)),Et>=Je)Et-=Je,$t-=Je,ye=5,le=null,xr=xr&&xr.removeBefore(W,0,Et);else if(Et>Q||Je<je){for(ve=0;le;){var tn=Et>>>ye&A;if(tn!==Je>>>ye&A)break;tn&&(ve+=(1<<ye)*tn),ye-=5,le=le.array[tn]}le&&Et>Q&&(le=le.removeBefore(W,ye,Et-ve)),le&&Je<je&&(le=le.removeAfter(W,ye,Je-ve)),ve&&(Et-=ve,$t-=ve)}return m.__ownerID?(m.size=$t-Et,m._origin=Et,m._capacity=$t,m._level=ye,m._root=le,m._tail=xr,m.__hash=void 0,m.__altered=!0,m):Br(Et,$t,ye,le,xr)}function In(m,j,D){for(var W=[],Q=0,gt=0;gt<D.length;gt++){var Et=D[gt],$t=s(Et);$t.size>Q&&(Q=$t.size),i(Et)||($t=$t.map(function(ye){return ie(ye)})),W.push($t)}return Q>m.size&&(m=m.setSize(Q)),At(m,j,W)}function zn(m){return m<x?0:m-1>>>5<<5}function en(m){return null==m?Qn():ao(m)?m:Qn().withMutations(function(j){var D=o(m);ee(D.size),D.forEach(function(W,Q){return j.set(Q,W)})})}function ao(m){return Ge(m)&&g(m)}function Xn(m,j,D,W){var Q=Object.create(en.prototype);return Q.size=m?m.size:0,Q._map=m,Q._list=j,Q.__ownerID=D,Q.__hash=W,Q}function Qn(){return sr||(sr=Xn(Ae(),on()))}function Tr(m,j,D){var W,Q,gt=m._map,Et=m._list,$t=gt.get(j),ye=void 0!==$t;if(D===_){if(!ye)return m;Et.size>=x&&Et.size>=2*gt.size?(W=(Q=Et.filter(function(le,ve){return void 0!==le&&$t!==ve})).toKeyedSeq().map(function(le){return le[0]}).flip().toMap(),m.__ownerID&&(W.__ownerID=Q.__ownerID=m.__ownerID)):(W=gt.remove(j),Q=$t===Et.size-1?Et.pop():Et.set($t,void 0))}else if(ye){if(D===Et.get($t)[1])return m;W=gt,Q=Et.set($t,[j,D])}else W=gt.set(j,Et.size),Q=Et.set(Et.size,[j,D]);return m.__ownerID?(m.size=W.size,m._map=W,m._list=Q,m.__hash=void 0,m):Xn(W,Q)}function Mr(m,j){this._iter=m,this._useKeys=j,this.size=m.size}function qr(m){this._iter=m,this.size=m.size}function On(m){this._iter=m,this.size=m.size}function Rn(m){this._iter=m,this.size=m.size}function eo(m){var j=Vn(m);return j._iter=m,j.size=m.size,j.flip=function(){return m},j.reverse=function(){var D=m.reverse.apply(this);return D.flip=function(){return m.reverse()},D},j.has=function(D){return m.includes(D)},j.includes=function(D){return m.has(D)},j.cacheResult=cn,j.__iterateUncached=function(D,W){var Q=this;return m.__iterate(function(gt,Et){return!1!==D(Et,gt,Q)},W)},j.__iteratorUncached=function(D,W){if(2===D){var Q=m.__iterator(D,W);return new pt(function(){var gt=Q.next();if(!gt.done){var Et=gt.value[0];gt.value[0]=gt.value[1],gt.value[1]=Et}return gt})}return m.__iterator(1===D?0:1,W)},j}function rn(m,j,D){var W=Vn(m);return W.size=m.size,W.has=function(Q){return m.has(Q)},W.get=function(Q,gt){var Et=m.get(Q,_);return Et===_?gt:j.call(D,Et,Q,m)},W.__iterateUncached=function(Q,gt){var Et=this;return m.__iterate(function($t,ye,le){return!1!==Q(j.call(D,$t,ye,le),ye,Et)},gt)},W.__iteratorUncached=function(Q,gt){var Et=m.__iterator(2,gt);return new pt(function(){var $t=Et.next();if($t.done)return $t;var ye=$t.value,le=ye[0];return ht(Q,le,j.call(D,ye[1],le,m),$t)})},W}function ro(m,j){var D=Vn(m);return D._iter=m,D.size=m.size,D.reverse=function(){return m},m.flip&&(D.flip=function(){var W=eo(m);return W.reverse=function(){return m.flip()},W}),D.get=function(W,Q){return m.get(j?W:-1-W,Q)},D.has=function(W){return m.has(j?W:-1-W)},D.includes=function(W){return m.includes(W)},D.cacheResult=cn,D.__iterate=function(W,Q){var gt=this;return m.__iterate(function(Et,$t){return W(Et,$t,gt)},!Q)},D.__iterator=function(W,Q){return m.__iterator(W,!Q)},D}function Co(m,j,D,W){var Q=Vn(m);return W&&(Q.has=function(gt){var Et=m.get(gt,_);return Et!==_&&!!j.call(D,Et,gt,m)},Q.get=function(gt,Et){var $t=m.get(gt,_);return $t!==_&&j.call(D,$t,gt,m)?$t:Et}),Q.__iterateUncached=function(gt,Et){var $t=this,ye=0;return m.__iterate(function(le,ve,je){if(j.call(D,le,ve,je))return ye++,gt(le,W?ve:ye-1,$t)},Et),ye},Q.__iteratorUncached=function(gt,Et){var $t=m.__iterator(2,Et),ye=0;return new pt(function(){for(;;){var le=$t.next();if(le.done)return le;var ve=le.value,je=ve[0],Je=ve[1];if(j.call(D,Je,je,m))return ht(gt,W?je:ye++,Je,le)}})},Q}function yo(m,j,D,W){var Q=m.size;if(void 0!==j&&(j|=0),void 0!==D&&(D===1/0?D=Q:D|=0),X(j,D,Q))return m;var gt=rt(j,Q),Et=J(D,Q);if(gt!=gt||Et!=Et)return yo(m.toSeq().cacheResult(),j,D,W);var $t,ye=Et-gt;ye==ye&&($t=ye<0?0:ye);var le=Vn(m);return le.size=0===$t?$t:m.size&&$t||void 0,!W&&We(m)&&$t>=0&&(le.get=function(ve,je){return(ve=$(this,ve))>=0&&ve<$t?m.get(ve+gt,je):je}),le.__iterateUncached=function(ve,je){var Je=this;if(0===$t)return 0;if(je)return this.cacheResult().__iterate(ve,je);var rr=0,xr=!0,jr=0;return m.__iterate(function(Fr,Dr){if(!xr||!(xr=rr++<gt))return jr++,!1!==ve(Fr,W?Dr:jr-1,Je)&&jr!==$t}),jr},le.__iteratorUncached=function(ve,je){if(0!==$t&&je)return this.cacheResult().__iterator(ve,je);var Je=0!==$t&&m.__iterator(ve,je),rr=0,xr=0;return new pt(function(){for(;rr++<gt;)Je.next();if(++xr>$t)return{value:void 0,done:!0};var jr=Je.next();return W||1===ve?jr:ht(ve,xr-1,0===ve?void 0:jr.value[1],jr)})},le}function io(m,j,D,W){var Q=Vn(m);return Q.__iterateUncached=function(gt,Et){var $t=this;if(Et)return this.cacheResult().__iterate(gt,Et);var ye=!0,le=0;return m.__iterate(function(ve,je,Je){if(!ye||!(ye=j.call(D,ve,je,Je)))return le++,gt(ve,W?je:le-1,$t)}),le},Q.__iteratorUncached=function(gt,Et){var $t=this;if(Et)return this.cacheResult().__iterator(gt,Et);var ye=m.__iterator(2,Et),le=!0,ve=0;return new pt(function(){var je,Je,rr;do{if((je=ye.next()).done)return W||1===gt?je:ht(gt,ve++,0===gt?void 0:je.value[1],je);var xr=je.value;Je=xr[0],rr=xr[1],le&&(le=j.call(D,rr,Je,$t))}while(le);return 2===gt?je:ht(gt,Je,rr,je)})},Q}function Oo(m,j){var D=p(m),W=[m].concat(j).map(function(Et){return i(Et)?D&&(Et=o(Et)):Et=D?oe(Et):Pe(Array.isArray(Et)?Et:[Et]),Et}).filter(function(Et){return 0!==Et.size});if(0===W.length)return m;if(1===W.length){var Q=W[0];if(Q===m||D&&p(Q)||c(m)&&c(Q))return Q}var gt=new ue(W);return D?gt=gt.toKeyedSeq():c(m)||(gt=gt.toSetSeq()),(gt=gt.flatten(!0)).size=W.reduce(function(Et,$t){if(void 0!==Et){var ye=$t.size;if(void 0!==ye)return Et+ye}},0),gt}function ko(m,j,D){var W=Vn(m);return W.__iterateUncached=function(Q,gt){var Et=0,$t=!1;return function ye(le,ve){var je=this;le.__iterate(function(Je,rr){return(!j||ve<j)&&i(Je)?ye(Je,ve+1):!1===Q(Je,D?rr:Et++,je)&&($t=!0),!$t},gt)}(m,0),Et},W.__iteratorUncached=function(Q,gt){var Et=m.__iterator(Q,gt),$t=[],ye=0;return new pt(function(){for(;Et;){var le=Et.next();if(!1===le.done){var ve=le.value;if(2===Q&&(ve=ve[1]),j&&!($t.length<j)||!i(ve))return D?le:ht(Q,ye++,ve,le);$t.push(Et),Et=ve.__iterator(Q,gt)}else Et=$t.pop()}return{value:void 0,done:!0}})},W}function so(m,j,D){j||(j=to);var W=p(m),Q=0,gt=m.toSeq().map(function(Et,$t){return[$t,Et,Q++,D?D(Et,$t,m):Et]}).toArray();return gt.sort(function(Et,$t){return j(Et[3],$t[3])||Et[2]-$t[2]}).forEach(W?function(Et,$t){gt[$t].length=2}:function(Et,$t){gt[$t]=Et[1]}),W?Rt(gt):c(m)?Vt(gt):Ut(gt)}function bo(m,j,D){if(j||(j=to),D){var W=m.toSeq().map(function(Q,gt){return[Q,D(Q,gt,m)]}).reduce(function(Q,gt){return Fo(j,Q[1],gt[1])?gt:Q});return W&&W[0]}return m.reduce(function(Q,gt){return Fo(j,Q,gt)?gt:Q})}function Fo(m,j,D){var W=m(D,j);return 0===W&&D!==j&&(null==D||D!=D)||W>0}function To(m,j,D){var W=Vn(m);return W.size=new ue(D).map(function(Q){return Q.size}).min(),W.__iterate=function(Q,gt){for(var Et,$t=this.__iterator(1,gt),ye=0;!(Et=$t.next()).done&&!1!==Q(Et.value,ye++,this););return ye},W.__iteratorUncached=function(Q,gt){var Et=D.map(function(le){return le=n(le),Z(gt?le.reverse():le)}),$t=0,ye=!1;return new pt(function(){var le;return ye||(le=Et.map(function(ve){return ve.next()}),ye=le.some(function(ve){return ve.done})),ye?{value:void 0,done:!0}:ht(Q,$t++,j.apply(null,le.map(function(ve){return ve.value})))})},W}function Yr(m,j){return We(m)?j:m.constructor(j)}function Uo(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function mo(m){return ee(m.size),F(m)}function uo(m){return p(m)?o:c(m)?s:u}function Vn(m){return Object.create((p(m)?Rt:c(m)?Vt:Ut).prototype)}function cn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):vt.prototype.cacheResult.call(this)}function to(m,j){return m>j?1:m<j?-1:0}function co(m){var j=Z(m);if(!j){if(!ft(m))throw new TypeError("Expected iterable or array-like: "+m);j=Z(n(m))}return j}function kn(m,j){var D,W=function(gt){if(gt instanceof W)return gt;if(!(this instanceof W))return new W(gt);if(!D){D=!0;var Et=Object.keys(m);(function Kn(m,j){try{j.forEach(Ko.bind(void 0,m))}catch{}})(Q,Et),Q.size=Et.length,Q._name=j,Q._keys=Et,Q._defaultValues=m}this._map=ne(gt)},Q=W.prototype=Object.create(wn);return Q.constructor=W,W}r(en,ne),en.of=function(){return this(arguments)},en.prototype.toString=function(){return this.__toString("OrderedMap {","}")},en.prototype.get=function(m,j){var D=this._map.get(m);return void 0!==D?this._list.get(D)[1]:j},en.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Qn()},en.prototype.set=function(m,j){return Tr(this,m,j)},en.prototype.remove=function(m){return Tr(this,m,_)},en.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},en.prototype.__iterate=function(m,j){var D=this;return this._list.__iterate(function(W){return W&&m(W[1],W[0],D)},j)},en.prototype.__iterator=function(m,j){return this._list.fromEntrySeq().__iterator(m,j)},en.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var j=this._map.__ensureOwner(m),D=this._list.__ensureOwner(m);return m?Xn(j,D,m,this.__hash):(this.__ownerID=m,this._map=j,this._list=D,this)},en.isOrderedMap=ao,en.prototype[S]=!0,en.prototype[w]=en.prototype.remove,r(Mr,Rt),Mr.prototype.get=function(m,j){return this._iter.get(m,j)},Mr.prototype.has=function(m){return this._iter.has(m)},Mr.prototype.valueSeq=function(){return this._iter.valueSeq()},Mr.prototype.reverse=function(){var m=this,j=ro(this,!0);return this._useKeys||(j.valueSeq=function(){return m._iter.toSeq().reverse()}),j},Mr.prototype.map=function(m,j){var D=this,W=rn(this,m,j);return this._useKeys||(W.valueSeq=function(){return D._iter.toSeq().map(m,j)}),W},Mr.prototype.__iterate=function(m,j){var D,W=this;return this._iter.__iterate(this._useKeys?function(Q,gt){return m(Q,gt,W)}:(D=j?mo(this):0,function(Q){return m(Q,j?--D:D++,W)}),j)},Mr.prototype.__iterator=function(m,j){if(this._useKeys)return this._iter.__iterator(m,j);var D=this._iter.__iterator(1,j),W=j?mo(this):0;return new pt(function(){var Q=D.next();return Q.done?Q:ht(m,j?--W:W++,Q.value,Q)})},Mr.prototype[S]=!0,r(qr,Vt),qr.prototype.includes=function(m){return this._iter.includes(m)},qr.prototype.__iterate=function(m,j){var D=this,W=0;return this._iter.__iterate(function(Q){return m(Q,W++,D)},j)},qr.prototype.__iterator=function(m,j){var D=this._iter.__iterator(1,j),W=0;return new pt(function(){var Q=D.next();return Q.done?Q:ht(m,W++,Q.value,Q)})},r(On,Ut),On.prototype.has=function(m){return this._iter.includes(m)},On.prototype.__iterate=function(m,j){var D=this;return this._iter.__iterate(function(W){return m(W,W,D)},j)},On.prototype.__iterator=function(m,j){var D=this._iter.__iterator(1,j);return new pt(function(){var W=D.next();return W.done?W:ht(m,W.value,W.value,W)})},r(Rn,Rt),Rn.prototype.entrySeq=function(){return this._iter.toSeq()},Rn.prototype.__iterate=function(m,j){var D=this;return this._iter.__iterate(function(W){if(W){Uo(W);var Q=i(W);return m(Q?W.get(1):W[1],Q?W.get(0):W[0],D)}},j)},Rn.prototype.__iterator=function(m,j){var D=this._iter.__iterator(1,j);return new pt(function(){for(;;){var W=D.next();if(W.done)return W;var Q=W.value;if(Q){Uo(Q);var gt=i(Q);return ht(m,gt?Q.get(0):Q[0],gt?Q.get(1):Q[1],W)}}})},qr.prototype.cacheResult=Mr.prototype.cacheResult=On.prototype.cacheResult=Rn.prototype.cacheResult=cn,r(kn,Ke),kn.prototype.toString=function(){return this.__toString(qo(this)+" {","}")},kn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},kn.prototype.get=function(m,j){if(!this.has(m))return j;var D=this._defaultValues[m];return this._map?this._map.get(m,D):D},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=_o(this,Ae()))},kn.prototype.set=function(m,j){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+qo(this));if(this._map&&!this._map.has(m)&&j===this._defaultValues[m])return this;var D=this._map&&this._map.set(m,j);return this.__ownerID||D===this._map?this:_o(this,D)},kn.prototype.remove=function(m){if(!this.has(m))return this;var j=this._map&&this._map.remove(m);return this.__ownerID||j===this._map?this:_o(this,j)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(m,j){var D=this;return o(this._defaultValues).map(function(W,Q){return D.get(Q)}).__iterator(m,j)},kn.prototype.__iterate=function(m,j){var D=this;return o(this._defaultValues).map(function(W,Q){return D.get(Q)}).__iterate(m,j)},kn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var j=this._map&&this._map.__ensureOwner(m);return m?_o(this,j,m):(this.__ownerID=m,this._map=j,this)};var wn=kn.prototype;function _o(m,j,D){var W=Object.create(Object.getPrototypeOf(m));return W._map=j,W.__ownerID=D,W}function qo(m){return m._name||m.constructor.name||"Record"}function Ko(m,j){Object.defineProperty(m,j,{get:function(){return this.get(j)},set:function(D){he(this.__ownerID,"Cannot set on an immutable record."),this.set(j,D)}})}function Xr(m){return null==m?wo():Io(m)&&!g(m)?m:wo().withMutations(function(j){var D=u(m);ee(D.size),D.forEach(function(W){return j.add(W)})})}function Io(m){return!(!m||!m[Po])}wn[w]=wn.remove,wn.deleteIn=wn.removeIn=xe.removeIn,wn.merge=xe.merge,wn.mergeWith=xe.mergeWith,wn.mergeIn=xe.mergeIn,wn.mergeDeep=xe.mergeDeep,wn.mergeDeepWith=xe.mergeDeepWith,wn.mergeDeepIn=xe.mergeDeepIn,wn.setIn=xe.setIn,wn.update=xe.update,wn.updateIn=xe.updateIn,wn.withMutations=xe.withMutations,wn.asMutable=xe.asMutable,wn.asImmutable=xe.asImmutable,r(Xr,v),Xr.of=function(){return this(arguments)},Xr.fromKeys=function(m){return this(o(m).keySeq())},Xr.prototype.toString=function(){return this.__toString("Set {","}")},Xr.prototype.has=function(m){return this._map.has(m)},Xr.prototype.add=function(m){return Mo(this,this._map.set(m,!0))},Xr.prototype.remove=function(m){return Mo(this,this._map.remove(m))},Xr.prototype.clear=function(){return Mo(this,this._map.clear())},Xr.prototype.union=function(){var m=e.call(arguments,0);return 0===(m=m.filter(function(j){return 0!==j.size})).length?this:0!==this.size||this.__ownerID||1!==m.length?this.withMutations(function(j){for(var D=0;D<m.length;D++)u(m[D]).forEach(function(W){return j.add(W)})}):this.constructor(m[0])},Xr.prototype.intersect=function(){var m=e.call(arguments,0);if(0===m.length)return this;m=m.map(function(D){return u(D)});var j=this;return this.withMutations(function(D){j.forEach(function(W){m.every(function(Q){return Q.includes(W)})||D.remove(W)})})},Xr.prototype.subtract=function(){var m=e.call(arguments,0);if(0===m.length)return this;m=m.map(function(D){return u(D)});var j=this;return this.withMutations(function(D){j.forEach(function(W){m.some(function(Q){return Q.includes(W)})&&D.remove(W)})})},Xr.prototype.merge=function(){return this.union.apply(this,arguments)},Xr.prototype.mergeWith=function(m){var j=e.call(arguments,1);return this.union.apply(this,j)},Xr.prototype.sort=function(m){return Ln(so(this,m))},Xr.prototype.sortBy=function(m,j){return Ln(so(this,j,m))},Xr.prototype.wasAltered=function(){return this._map.wasAltered()},Xr.prototype.__iterate=function(m,j){var D=this;return this._map.__iterate(function(W,Q){return m(Q,Q,D)},j)},Xr.prototype.__iterator=function(m,j){return this._map.map(function(D,W){return W}).__iterator(m,j)},Xr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var j=this._map.__ensureOwner(m);return m?this.__make(j,m):(this.__ownerID=m,this._map=j,this)},Xr.isSet=Io;var zo,Po="@@__IMMUTABLE_SET__@@",Pn=Xr.prototype;function Mo(m,j){return m.__ownerID?(m.size=j.size,m._map=j,m):j===m._map?m:0===j.size?m.__empty():m.__make(j)}function lo(m,j){var D=Object.create(Pn);return D.size=m?m.size:0,D._map=m,D.__ownerID=j,D}function wo(){return zo||(zo=lo(Ae()))}function Ln(m){return null==m?Eo():No(m)?m:Eo().withMutations(function(j){var D=u(m);ee(D.size),D.forEach(function(W){return j.add(W)})})}function No(m){return Io(m)&&g(m)}Pn[Po]=!0,Pn[w]=Pn.remove,Pn.mergeDeep=Pn.merge,Pn.mergeDeepWith=Pn.mergeWith,Pn.withMutations=xe.withMutations,Pn.asMutable=xe.asMutable,Pn.asImmutable=xe.asImmutable,Pn.__empty=wo,Pn.__make=lo,r(Ln,Xr),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(m){return this(o(m).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=No;var Vo,xo=Ln.prototype;function Wo(m,j){var D=Object.create(xo);return D.size=m?m.size:0,D._map=m,D.__ownerID=j,D}function Eo(){return Vo||(Vo=Wo(Qn()))}function hn(m){return null==m?Do():Ro(m)?m:Do().unshiftAll(m)}function Ro(m){return!(!m||!m[$o])}xo[S]=!0,xo.__empty=Eo,xo.__make=Wo,r(hn,Ye),hn.of=function(){return this(arguments)},hn.prototype.toString=function(){return this.__toString("Stack [","]")},hn.prototype.get=function(m,j){var D=this._head;for(m=$(this,m);D&&m--;)D=D.next;return D?D.value:j},hn.prototype.peek=function(){return this._head&&this._head.value},hn.prototype.push=function(){if(0===arguments.length)return this;for(var m=this.size+arguments.length,j=this._head,D=arguments.length-1;D>=0;D--)j={value:arguments[D],next:j};return this.__ownerID?(this.size=m,this._head=j,this.__hash=void 0,this.__altered=!0,this):fo(m,j)},hn.prototype.pushAll=function(m){if(0===(m=s(m)).size)return this;ee(m.size);var j=this.size,D=this._head;return m.reverse().forEach(function(W){j++,D={value:W,next:D}}),this.__ownerID?(this.size=j,this._head=D,this.__hash=void 0,this.__altered=!0,this):fo(j,D)},hn.prototype.pop=function(){return this.slice(1)},hn.prototype.unshift=function(){return this.push.apply(this,arguments)},hn.prototype.unshiftAll=function(m){return this.pushAll(m)},hn.prototype.shift=function(){return this.pop.apply(this,arguments)},hn.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):Do()},hn.prototype.slice=function(m,j){if(X(m,j,this.size))return this;var D=rt(m,this.size);if(J(j,this.size)!==this.size)return Ye.prototype.slice.call(this,m,j);for(var W=this.size-D,Q=this._head;D--;)Q=Q.next;return this.__ownerID?(this.size=W,this._head=Q,this.__hash=void 0,this.__altered=!0,this):fo(W,Q)},hn.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?fo(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},hn.prototype.__iterate=function(m,j){if(j)return this.reverse().__iterate(m);for(var D=0,W=this._head;W&&!1!==m(W.value,D++,this);)W=W.next;return D},hn.prototype.__iterator=function(m,j){if(j)return this.reverse().__iterator(m);var D=0,W=this._head;return new pt(function(){if(W){var Q=W.value;return W=W.next,ht(m,D++,Q)