UNPKG

cspace-ui

Version:
2 lines 342 kB
/*! For license information please see cspaceUI-service.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cspaceUI=t():e.cspaceUI=t()}(self,(()=>(()=>{var e={93595:(e,t)=>{"use strict"},74104:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"\n",""]),a.locals={textDark:"rgb(70, 70, 70)",textMedium:"rgb(160, 160, 160)",textLight:"rgb(220, 220, 220)",textLabel:"rgb(80, 80, 80)",inputBg:"rgb(255, 255, 255)"};const u=a},3084:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);"]),a.push([e.id,"@import url(https://fonts.googleapis.com/icon?family=Material+Icons);"]),a.push([e.id,"body {\n margin: 0;\n padding: 10px 10px 110px 10px;\n\n font-family: 'Open Sans', Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n\n background-color: white;\n color: #4D4D4D;\n}\n\nbody .material-icons {\n font-size: 12px;\n}\n\na {\n color: #4D4D4D;\n}\n\na:focus {\n outline: 1px dotted black;\n}\n\na:disabled {\n color: rgba(77, 77, 77, .4);\n}\n\na:visited * {\n border-color: currentColor;\n}\n\nh1, h2 {\n font-size: 24px;\n font-weight: 400;\n margin: 16px 0;\n}\n\np {\n margin: 16px 0;\n}\n\ninput[type=\"checkbox\"] {\n margin-left: 0;\n margin-right: 0;\n}\n\n.cspace-ui-RootPage--common {\n}\n",""]),a.locals={common:"cspace-ui-RootPage--common"};const u=a},8009:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i),u=n(74104),l=n(4417),s=n.n(l),c=new URL(n(51918),n.b),f=new URL(n(71527),n.b),p=new URL(n(69127),n.b),d=new URL(n(76993),n.b),h=new URL(n(45010),n.b),g=new URL(n(81937),n.b),m=a()(o());m.i(u.A,"",!0);var v=s()(c),y=s()(f),A=s()(p),C=s()(d),I=s()(h),b=s()(g);m.push([e.id,`body {\n background-color: #F0F5FB;\n}\n\n.cspace-ui-ServicePage--common {\n margin: 50px auto;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n padding: 50px 0;\n width: 420px;\n background-color: white;\n}\n\n.cspace-ui-ServicePage--common > header {\n text-align: center;\n}\n\n.cspace-ui-ServicePage--common > main {\n margin-top: 30px;\n padding: 0 50px;\n}\n\n.cspace-ui-ServicePage--common a {\n color: inherit;\n}\n\n.cspace-ui-ServicePage--common a + a {\n margin-top: 8px;\n}\n\n.cspace-ui-ServicePage--common .sso a, .cspace-ui-ServicePage--common button {\n display: block;\n box-sizing: border-box;\n outline-offset: -1px;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 8px 10px 8px 34px;\n width: 100%;\n text-align: left;\n background-color: #fafafa;\n background-position: 10px center;\n background-repeat: no-repeat;\n background-size: 18px;\n text-decoration: none;\n font: inherit;\n}\n\n.cspace-ui-ServicePage--common .sso a:focus, .cspace-ui-ServicePage--common button:focus {\n outline: 2px solid ${u.A.locals.textDark};\n}\n\n.cspace-ui-ServicePage--common .sso a:hover, .cspace-ui-ServicePage--common button:enabled:hover {\n background-color: #fff;\n}\n\n.cspace-ui-ServicePage--common a.login, .cspace-ui-ServicePage--common button.login:enabled {\n background-image: url(${v});\n}\n\n.cspace-ui-ServicePage--common button.logout:enabled {\n background-image: url(${y});\n}\n\n.cspace-ui-ServicePage--common button.send:enabled {\n background-image: url(${A});\n}\n\n.cspace-ui-ServicePage--common button.reset:enabled {\n background-image: url(${C});\n}\n\n.cspace-ui-ServicePage--common .sso + form {\n margin-top: 36px;\n}\n\n.cspace-ui-ServicePage--common form {\n box-sizing: border-box;\n margin-top: 16px;\n width: 100%;\n}\n\n.cspace-ui-ServicePage--common form input {\n display: block;\n padding: 6px;\n width: 100%;\n height: 32px;\n outline-offset: -1px;\n border: 1px solid rgb(220, 220, 220);\n font: inherit;\n}\n\n.cspace-ui-ServicePage--common form input:focus {\n outline: 2px solid ${u.A.locals.textDark};\n}\n\n.cspace-ui-ServicePage--common form div + div {\n margin-top: 8px;\n}\n\n.cspace-ui-ServicePage--common form label > span {\n display: block;\n margin: 3px 0;\n font-size: 12px;\n line-height: 14px;\n color: rgb(80, 80, 80);\n}\n\n.cspace-ui-ServicePage--common .status {\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n padding: 30px 20px 14px 20px;\n background-repeat: no-repeat;\n background-position: center 10px;\n background-size: 16px;\n text-align: center;\n}\n\n.cspace-ui-ServicePage--common .status.success {\n background-image: url(${I});\n}\n\n.cspace-ui-ServicePage--common .status.error {\n background-image: url(${b});\n border-color: #e6b3b3;\n color: rgb(220, 0, 0);\n}\n`,""]),m.locals={textLight:`${u.A.locals.textLight}`,textDark:`${u.A.locals.textDark}`,common:"cspace-ui-ServicePage--common"};const w=m},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(a[l]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},4146:(e,t,n)=>{"use strict";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||u&&u[v])){var y=p(n,v);try{s(t,v,y)}catch(e){}}}}return t}},9404:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:H(e)}function r(e){return u(e)?e:Q(e)}function o(e){return l(e)?e:X(e)}function i(e){return a(e)&&!s(e)?e:J(e)}function a(e){return!(!e||!e[f])}function u(e){return!(!e||!e[p])}function l(e){return!(!e||!e[d])}function s(e){return u(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=u,n.isIndexed=l,n.isAssociative=s,n.isOrdered=c,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,y=v-1,A={},C={value:!1},I={value:!1};function b(e){return e.value=!1,e}function w(e){e&&(e.value=!0)}function _(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function M(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function T(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function k(e,t){return D(e,t,0)}function N(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j=0,P=1,L=2,O="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",R=O||z;function U(e){this.next=e}function Z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function Y(e){return!!V(e)}function G(e){return e&&"function"==typeof e.next}function W(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(O&&e[O]||e[z]);if("function"==typeof t)return t}function B(e){return e&&"number"==typeof e.length}function H(e){return null==e?ae():a(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function Q(e){return null==e?ae().toKeyedSeq():a(e)?u(e)?e.toSeq():e.fromEntrySeq():ue(e)}function X(e){return null==e?ae():a(e)?u(e)?e.entrySeq():e.toIndexedSeq():le(e)}function J(e){return(null==e?ae():a(e)?u(e)?e.entrySeq():e:le(e)).toSetSeq()}U.prototype.toString=function(){return"[Iterator]"},U.KEYS=j,U.VALUES=P,U.ENTRIES=L,U.prototype.inspect=U.prototype.toSource=function(){return this.toString()},U.prototype[R]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},H.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(Q,H),Q.prototype.toKeyedSeq=function(){return this},t(X,H),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},X.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(J,H),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},H.isSeq=ie,H.Keyed=Q,H.Set=J,H.Indexed=X;var K,q,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return K||(K=new te([]))}function ue(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():G(e)?new oe(e).fromEntrySeq():Y(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return B(e)?new te(e):G(e)?new oe(e):Y(e)?new re(e):void 0}function ce(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[n?i-a:a];if(!1===t(u[1],r?u[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new U((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:Z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?de(t,e,"",{"":e}):he(e)}function de(e,t,n,r){return Array.isArray(t)?e.call(r,n,X(t).map((function(n,r){return de(e,n,r,t)}))):ge(t)?e.call(r,n,Q(t).map((function(n,r){return de(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?X(e).map(he).toList():ge(e)?Q(e).map(he).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&me(o[1],e)&&(n||me(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!me(t,e.get(r,A)):!me(e.get(r,A),t))return f=!1,!1}));return f&&e.size===p}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(q)return q;q=this}}function Ae(e,t){if(!e)throw new Error(t)}function Ce(e,t,n){if(!(this instanceof Ce))return new Ce(e,t,n);if(Ae(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function Ie(){throw TypeError("Abstract")}function be(){}function we(){}function _e(){}H.prototype[ee]=!0,t(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[M(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new U((function(){return o>r?{value:void 0,done:!0}:Z(e,o,n[t?r-o++:o++])}))},t(ne,Q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new U((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:Z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(G(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!G(n))return new U(F);var r=0;return new U((function(){var t=n.next();return t.done?t:Z(e,r++,t.value)}))},t(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new U((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return Z(e,o,r[o++])}))},t(ye,X),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return me(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new ye(this._value,N(t,n)-k(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new U((function(){return r<n.size?Z(e,r++,n._value):{value:void 0,done:!0}}))},ye.prototype.equals=function(e){return e instanceof ye?me(this._value,e._value):ve(e)},t(Ce,X),Ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Ce.prototype.get=function(e,t){return this.has(e)?this._start+M(this,e)*this._step:t},Ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Ce.prototype.slice=function(e,t){return S(e,t,this.size)?this:(e=k(e,this.size),(t=N(t,this.size))<=e?new Ce(0,0):new Ce(this.get(e,this._end),this.get(t,this._end),this._step))},Ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},Ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new U((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:Z(e,i++,a)}))},Ce.prototype.equals=function(e){return e instanceof Ce?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(Ie,n),t(be,Ie),t(we,Ie),t(_e,Ie),Ie.Keyed=be,Ie.Indexed=we,Ie.Set=_e;var xe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function Me(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Le?function(e){var t=Re[e];return void 0===t&&(t=Te(e),ze===Oe&&(ze=0,Re={}),ze++,Re[e]=t),t}(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(De&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Pe]))return t;if(!ke){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++je,1073741824&je&&(je=0),De)Ne.set(e,t);else{if(void 0!==Se&&!1===Se(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ke)Object.defineProperty(e,Pe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pe]=t}}return t}(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}var Se=Object.isExtensible,ke=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Ne,De="function"==typeof WeakMap;De&&(Ne=new WeakMap);var je=0,Pe="__immutablehash__";"function"==typeof Symbol&&(Pe=Symbol(Pe));var Le=16,Oe=255,ze=0,Re={};function Ue(e){Ae(e!==1/0,"Cannot perform this action with an infinite size.")}function Ze(e){return null==e?et():Fe(e)&&!c(e)?e:et().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Fe(e){return!(!e||!e[Ge])}t(Ze,be),Ze.of=function(){var t=e.call(arguments,0);return et().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Ze.prototype.toString=function(){return this.__toString("Map {","}")},Ze.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ze.prototype.set=function(e,t){return tt(this,e,t)},Ze.prototype.setIn=function(e,t){return this.updateIn(e,A,(function(){return t}))},Ze.prototype.remove=function(e){return tt(this,e,A)},Ze.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return A}))},Ze.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ze.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=st(this,an(e),t,n);return r===A?void 0:r},Ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):et()},Ze.prototype.merge=function(){return it(this,void 0,arguments)},Ze.prototype.mergeWith=function(t){return it(this,t,e.call(arguments,1))},Ze.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ze.prototype.mergeDeep=function(){return it(this,at,arguments)},Ze.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return it(this,ut(t),n)},Ze.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ze.prototype.sort=function(e){return Dt(Qt(this,e))},Ze.prototype.sortBy=function(e,t){return Dt(Qt(this,t,e))},Ze.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ze.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Ze.prototype.asImmutable=function(){return this.__ensureOwner()},Ze.prototype.wasAltered=function(){return this.__altered},Ze.prototype.__iterator=function(e,t){return new Je(this,e,t)},Ze.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ze.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ze.isMap=Fe;var Ye,Ge="@@__IMMUTABLE_MAP__@@",We=Ze.prototype;function Ve(e,t){this.ownerID=e,this.entries=t}function Be(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function He(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Je(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function Ke(e,t){return Z(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function $e(e,t,n,r){var o=Object.create(We);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function et(){return Ye||(Ye=$e(0))}function tt(e,t,n){var r,o;if(e._root){var i=b(C),a=b(I);if(r=nt(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===A?-1:1:0)}else{if(n===A)return e;o=1,r=new Ve(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?$e(o,r):et()}function nt(e,t,n,r,o,i,a,u){return e?e.update(t,n,r,o,i,a,u):i===A?e:(w(u),w(a),new Xe(t,r,[o,i]))}function rt(e){return e.constructor===Xe||e.constructor===Qe}function ot(e,t,n,r,o){if(e.keyHash===r)return new Qe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,u=(0===n?r:r>>>n)&y;return new Be(t,1<<a|1<<u,a===u?[ot(e,t,n+m,r,o)]:(i=new Xe(t,r,o),a<u?[e,i]:[i,e]))}function it(e,t,n){for(var o=[],i=0;i<n.length;i++){var u=n[i],l=r(u);a(u)||(l=l.map((function(e){return pe(e)}))),o.push(l)}return lt(e,t,o)}function at(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):me(e,t)?e:t}function ut(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return me(t,o)?t:o}}function lt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,A,(function(e){return e===A?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function st(e,t,n,r){var o=e===A,i=t.next();if(i.done){var a=o?n:e,u=r(a);return u===a?e:u}Ae(o||e&&e.set,"invalid keyPath");var l=i.value,s=o?A:e.get(l,A),c=st(s,t,n,r);return c===s?e:c===A?e.remove(l):(o?et():e).set(l,c)}function ct(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ft(e,t,n,r){var o=r?e:x(e);return o[t]=n,o}We[Ge]=!0,We[g]=We.remove,We.removeIn=We.deleteIn,Ve.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Ve.prototype.update=function(e,t,n,r,o,i,a){for(var u=o===A,l=this.entries,s=0,c=l.length;s<c&&!me(r,l[s][0]);s++);var f=s<c;if(f?l[s][1]===o:u)return this;if(w(a),(u||!f)&&w(i),!u||1!==l.length){if(!f&&!u&&l.length>=pt)return function(e,t,n,r){e||(e=new _);for(var o=new Xe(e,Me(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,d=p?l:x(l);return f?u?s===c-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ve(e,d)}},Be.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return i&o?this.nodes[ct(i&o-1)].get(e+m,t,n,r):r},Be.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var u=(0===t?n:n>>>t)&y,l=1<<u,s=this.bitmap,c=!!(s&l);if(!c&&o===A)return this;var f=ct(s&l-1),p=this.nodes,d=c?p[f]:void 0,h=nt(d,e,t+m,n,r,o,i,a);if(h===d)return this;if(!c&&h&&p.length>=dt)return function(e,t,n,r,o){for(var i=0,a=new Array(v),u=0;0!==n;u++,n>>>=1)a[u]=1&n?t[i++]:void 0;return a[r]=o,new He(e,i+1,a)}(e,p,s,u,h);if(c&&!h&&2===p.length&&rt(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&rt(h))return h;var g=e&&e===this.ownerID,C=c?h?s:s^l:s|l,I=c?h?ft(p,f,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,u=0;u<o;u++)u===t?(i[u]=n,a=-1):i[u]=e[u+a];return i}(p,f,h,g);return g?(this.bitmap=C,this.nodes=I,this):new Be(e,C,I)},He.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},He.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var u=(0===t?n:n>>>t)&y,l=o===A,s=this.nodes,c=s[u];if(l&&!c)return this;var f=nt(c,e,t+m,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p<ht)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),u=0,l=1,s=t.length;u<s;u++,l<<=1){var c=t[u];void 0!==c&&u!==r&&(o|=l,a[i++]=c)}return new Be(e,o,a)}(e,s,p,u)}else p++;var d=e&&e===this.ownerID,h=ft(s,u,f,d);return d?(this.count=p,this.nodes=h,this):new He(e,p,h)},Qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var u=o===A;if(n!==this.keyHash)return u?this:(w(a),w(i),ot(this,e,t,n,[r,o]));for(var l=this.entries,s=0,c=l.length;s<c&&!me(r,l[s][0]);s++);var f=s<c;if(f?l[s][1]===o:u)return this;if(w(a),(u||!f)&&w(i),u&&2===c)return new Xe(e,this.keyHash,l[1^s]);var p=e&&e===this.ownerID,d=p?l:x(l);return f?u?s===c-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Qe(e,this.keyHash,d)},Xe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Xe.prototype.update=function(e,t,n,r,o,i,a){var u=o===A,l=me(r,this.entry[0]);return(l?o===this.entry[1]:u)?this:(w(a),u?void w(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Xe(e,this.keyHash,[r,o]):(w(i),ot(this,e,t,Me(r),[r,o])))},Ve.prototype.iterate=Qe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Be.prototype.iterate=He.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(Je,U),Je.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Ke(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Ke(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Ke(e,i.entry);t=this._stack=qe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var pt=v/4,dt=v/2,ht=v/4;function gt(e){var t=xt();if(null==e)return t;if(mt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?_t(0,r,m,null,new At(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function mt(e){return!(!e||!e[vt])}t(gt,we),gt.of=function(){return this(arguments)},gt.prototype.toString=function(){return this.__toString("List [","]")},gt.prototype.get=function(e,t){if((e=M(this,e))>=0&&e<this.size){var n=Tt(this,e+=this._origin);return n&&n.array[e&y]}return t},gt.prototype.set=function(e,t){return function(e,t,n){if((t=M(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?St(e,t).set(0,n):St(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=b(I);return t>=Nt(e._capacity)?r=Et(r,e.__ownerID,0,t,n,i):o=Et(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):_t(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},gt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},gt.prototype.insert=function(e,t){return this.splice(e,0,t)},gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xt()},gt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){St(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},gt.prototype.pop=function(){return St(this,0,-1)},gt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){St(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},gt.prototype.shift=function(){return St(this,1)},gt.prototype.merge=function(){return kt(this,void 0,arguments)},gt.prototype.mergeWith=function(t){return kt(this,t,e.call(arguments,1))},gt.prototype.mergeDeep=function(){return kt(this,at,arguments)},gt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return kt(this,ut(t),n)},gt.prototype.setSize=function(e){return St(this,0,e)},gt.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:St(this,k(e,n),N(t,n))},gt.prototype.__iterator=function(e,t){var n=0,r=wt(this,t);return new U((function(){var t=r();return t===bt?{value:void 0,done:!0}:Z(e,n++,t)}))},gt.prototype.__iterate=function(e,t){for(var n,r=0,o=wt(this,t);(n=o())!==bt&&!1!==e(n,r++,this););return r},gt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_t(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},gt.isList=mt;var vt="@@__IMMUTABLE_LIST__@@",yt=gt.prototype;function At(e,t){this.array=e,this.ownerID=t}yt[vt]=!0,yt[g]=yt.remove,yt.setIn=We.setIn,yt.deleteIn=yt.removeIn=We.removeIn,yt.update=We.update,yt.updateIn=We.updateIn,yt.mergeIn=We.mergeIn,yt.mergeDeepIn=We.mergeDeepIn,yt.withMutations=We.withMutations,yt.asMutable=We.asMutable,yt.asImmutable=We.asImmutable,yt.wasAltered=We.wasAltered,At.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new At([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var u=Mt(this,e);if(!i)for(var l=0;l<r;l++)u.array[l]=void 0;return o&&(u.array[r]=o),u},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Mt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Ct,It,bt={};function wt(e,t){var n=e._origin,r=e._capacity,o=Nt(r),i=e._tail;return a(e._root,e._level,0);function a(e,u,l){return 0===u?function(e,a){var u=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,s=r-a;return s>v&&(s=v),function(){if(l===s)return bt;var e=t?--s:l++;return u&&u[e]}}(e,l):function(e,o,i){var u,l=e&&e.array,s=i>n?0:n-i>>o,c=1+(r-i>>o);return c>v&&(c=v),function(){for(;;){if(u){var e=u();if(e!==bt)return e;u=null}if(s===c)return bt;var n=t?--c:s++;u=a(l&&l[n],o-m,i+(n<<o))}}}(e,u,l)}}function _t(e,t,n,r,o,i,a){var u=Object.create(yt);return u.size=t-e,u._origin=e,u._capacity=t,u._level=n,u._root=r,u._tail=o,u.__ownerID=i,u.__hash=a,u.__altered=!1,u}function xt(){return Ct||(Ct=_t(0,0,m))}function Et(e,t,n,r,o,i){var a,u=r>>>n&y,l=e&&u<e.array.length;if(!l&&void 0===o)return e;if(n>0){var s=e&&e.array[u],c=Et(s,t,n-m,r,o,i);return c===s?e:((a=Mt(e,t)).array[u]=c,a)}return l&&e.array[u]===o?e:(w(i),a=Mt(e,t),void 0===o&&u===a.array.length-1?a.array.pop():a.array[u]=o,a)}function Mt(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function Tt(e,t){if(t>=Nt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=m;return n}}function St(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,o=e._origin,i=e._capacity,a=o+t,u=void 0===n?i:n<0?i+n:o+n;if(a===o&&u===i)return e;if(a>=u)return e.clear();for(var l=e._level,s=e._root,c=0;a+c<0;)s=new At(s&&s.array.length?[void 0,s]:[],r),c+=1<<(l+=m);c&&(a+=c,o+=c,u+=c,i+=c);for(var f=Nt(i),p=Nt(u);p>=1<<l+m;)s=new At(s&&s.array.length?[s]:[],r),l+=m;var d=e._tail,h=p<f?Tt(e,u-1):p>f?new At([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=s=Mt(s,r),v=l;v>m;v-=m){var A=f>>>v&y;g=g.array[A]=Mt(g.array[A],r)}g.array[f>>>m&y]=d}if(u<i&&(h=h&&h.removeAfter(r,0,u)),a>=p)a-=p,u-=p,l=m,s=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(c=0;s;){var C=a>>>l&y;if(C!==p>>>l&y)break;C&&(c+=(1<<l)*C),l-=m,s=s.array[C]}s&&a>o&&(s=s.removeBefore(r,l,a-c)),s&&p<f&&(s=s.removeAfter(r,l,p-c)),c&&(a-=c,u-=c)}return e.__ownerID?(e.size=u-a,e._origin=a,e._capacity=u,e._level=l,e._root=s,e._tail=h,e.__hash=void 0,e.__altered=!0,e):_t(a,u,l,s,h)}function kt(e,t,n){for(var r=[],i=0,u=0;u<n.length;u++){var l=n[u],s=o(l);s.size>i&&(i=s.size),a(l)||(s=s.map((function(e){return pe(e)}))),r.push(s)}return i>e.size&&(e=e.setSize(i)),lt(e,t,r)}function Nt(e){return e<v?0:e-1>>>m<<m}function Dt(e){return null==e?Lt():jt(e)?e:Lt().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function jt(e){return Fe(e)&&c(e)}function Pt(e,t,n,r){var o=Object.create(Dt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Lt(){return It||(It=Pt(et(),xt()))}function Ot(e,t,n){var r,o,i=e._map,a=e._list,u=i.get(t),l=void 0!==u;if(n===A){if(!l)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(l){if(n===a.get(u)[1])return e;r=i,o=a.set(u,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Pt(r,o)}function zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Ft(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new U((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===P?j:P,n)},t}function Yt(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,A);return i===A?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(L,o);return new U((function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return Z(r,u,t.call(n,a[1],u,e),o)}))},r}function Gt(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ft(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Wt(e,t,n,r){var o=nn(e);return r&&(o.has=function(r){var o=e.get(r,A);return o!==A&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,A);return i!==A&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return u++,o(e,r?i:u-1,a)}),i),u},o.__iteratorUncached=function(o,i){var a=e.__iterator(L,i),u=0;return new U((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,s=l[0],c=l[1];if(t.call(n,c,s,e))return Z(o,r?s:u++,c,i)}}))},o}function Vt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),S(t,n,o))return e;var i=k(t,o),a=N(n,o);if(i!=i||a!=a)return Vt(e.toSeq().cacheResult(),t,n,r);var u,l=a-i;l==l&&(u=l<0?0:l);var s=nn(e);return s.size=0===u?u:e.size&&u||void 0,!r&&ie(e)&&u>=0&&(s.get=function(t,n){return(t=M(this,t))>=0&&t<u?e.get(t+i,n):n}),s.__iterateUncached=function(t,n){var o=this;if(0===u)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,s=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return s++,!1!==t(e,r?n:s-1,o)&&s!==u})),s},s.__iteratorUncached=function(t,n){if(0!==u&&n)return this.cacheResult().__iterator(t,n);var o=0!==u&&e.__iterator(t,n),a=0,l=0;return new U((function(){for(;a++<i;)o.next();if(++l>u)return{value:void 0,done:!0};var e=o.next();return r||t===P?e:Z(t,l-1,t===j?void 0:e.value[1],e)}))},s}function Bt(e,t,n,r){var o=nn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,l=0;return e.__iterate((function(e,i,s){if(!u||!(u=t.call(n,e,i,s)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=e.__iterator(L,i),l=!0,s=0;return new U((function(){var e,i,c;do{if((e=u.next()).done)return r||o===P?e:Z(o,s++,o===j?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===L?e:Z(o,i,c,e)}))},o}function Ht(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,o){var i=0,u=!1;return function e(l,s){var c=this;l.__iterate((function(o,l){return(!t||s<t)&&a(o)?e(o,s+1):!1===r(o,n?l:i++,c)&&(u=!0),!u}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),u=[],l=0;return new U((function(){for(;i;){var e=i.next();if(!1===e.done){var s=e.value;if(r===L&&(s=s[1]),t&&!(u.length<t)||!a(s))return n?e:Z(r,l++,s,e);u.push(i),i=s.__iterator(r,o)}else i=u.pop()}return{value:void 0,done:!0}}))},r}function Qt(e,t,n){t||(t=on);var r=u(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?Q(i):l(e)?X(i):J(i)}function Xt(e,t,n){if(t||(t=on),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Jt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Jt(t,e,n)?n:e}))}function Jt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Kt(e,t,r){var o=nn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(P,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),W(o?e.reverse():e)})),a=0,u=!1;return new U((function(){var n;return u||(n=i.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?{value:void 0,done:!0}:Z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function qt(e,t){return ie(e)?t:e.constructor(t)}function $t(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return Ue(e.size),E(e)}function tn(e){return u(e)?r:l(e)?o:i}function nn(e){return Object.create((u(e)?Q:l(e)?X:J).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function on(e,t){return e>t?1:e<t?-1:0}function an(e){var t=W(e);if(!t){if(!B(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(n(e))}return t}function un(e,t){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(e);(function(e,t){try{t.forEach(fn.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ze(i)},o=r.prototype=Object.create(ln);return o.constructor=r,r}t(Dt,Ze),Dt.of=function(){return this(arguments)},Dt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Dt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Lt()},Dt.prototype.set=function(e,t){return Ot(this,e,t)},Dt.prototype.remove=function(e){return Ot(this,e,A)},Dt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Dt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Dt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Pt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Dt.isOrderedMap=jt,Dt.prototype[h]=!0,Dt.prototype[g]=Dt.prototype.remove,t(zt,Q),zt.prototype.get=function(e,t){return this._iter.get(e,t)},zt.prototype.has=function(e){return this._iter.has(e)},zt.prototype.valueSeq=function(){return this._iter.valueSeq()},zt.prototype.reverse=function(){var e=this,t=Gt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},zt.prototype.map=function(e,t){var n=this,r=Yt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?en(this):0,function(o){return e(o,t?--n:n++,r)}),t)},zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(P,t),r=t?en(this):0;return new U((function(){var o=n.next();return o.done?o:Z(e,t?--r:r++,o.value,o)}))},zt.prototype[h]=!0,t(Rt,X),Rt.prototype.includes=function(e){return this._iter.includes(e)},Rt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Rt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t),r=0;return new U((function(){var t=n.next();return t.done?t:Z(e,r++,t.value,t)}))},t(Ut,J),Ut.prototype.has=function(e){return this._iter.includes(e)},Ut.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Ut.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new U((function(){var t=n.next();return t.done?t:Z(e,t.value,t.value,t)}))},t(Zt,Q),Zt.prototype.entrySeq=function(){return this._iter.toSeq()},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){$t(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new U((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){$t(r);var o=a(r);return Z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Rt.prototype.cacheResult=zt.prototype.cacheResult=Ut.prototype.cacheResult=Zt.prototype.cacheResult=rn,t(un,be),un.prototype.toString=function(){return this.__toString(cn(this)+" {","}")},un.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},un.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},un.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=sn(this,et()))},un.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+cn(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:sn(this,n)},un.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:sn(this,t)},un.prototype.wasAltered=function(){return this._map.wasAltered()},un.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},un.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},un.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var ln=un.prototype;function sn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function cn(e){return e._name||e.constructor.name||"Record"}function fn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ae(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function pn(e){return null==e?An():dn(e)&&!c(e)?e:An().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return!(!e||!e[gn])}ln[g]=ln.remove,ln.deleteIn=ln.removeIn=We.removeIn,ln.merge=We.merge,ln.mergeWith=We.mergeWith,ln.mergeIn=We.mergeIn,ln.mergeDeep=We.mergeDeep,ln.mergeDeepWith=We.mergeDeepWith,ln.mergeDeepIn=We.mergeDeepIn,ln.setIn=We.setIn,ln.update=We.update,ln.updateIn=We.updateIn,ln.withMutations=We.withMutations,ln.asMutable=We.asMutable,ln.asImmutable=We.asImmutable,t(pn,_e),pn.of=function(){return this(arguments)},pn.fromKeys=function(e){return this(r(e).keySeq())},pn.prototype.toString=function(){return this.__toString("Set {","}")},pn.prototype.has=function(e){return this._map.has(e)},pn.prototype.add=function(e){return vn(this,this._map.set(e,!0))},pn.prototype.remove=function(e){return vn(this,this._map.remove(e))},pn.prototype.clear=function(){return vn(this,this._map.clear())},pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},pn.prototype.merge=function(){return this.union.apply(this,arguments)},pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},pn.prototype.sort=function(e){return Cn(Qt(this,e))},pn.prototype.sortBy=function(e,t){return Cn(Qt(this,t,e))},pn.prototype.wasAltered=function(){return this._map.wasAltered()},pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},pn.isSet=dn;var hn,gn="@@__IMMUTABLE_SET__@@",mn=pn.prototype;function vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function yn(e,t){var n=Object.create(mn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function An(){return hn||(hn=yn(et()))}function Cn(e){return null==e?xn():In(e)?e:xn().withMutations((function(t){var n=i(e);Ue