parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Focm":[function(require,module,exports) {
var n={};!function(t){"use strict";(n["Control.Apply"]=n["Control.Apply"]||{}).arrayApply=function(n){return function(t){for(var a=n.length,e=t.length,r=new Array(a*e),u=0,o=0;o<a;o++)for(var i=n[o],l=0;l<e;l++)r[u++]=i(t[l]);return r}}}(),function(n){"use strict";var t=function(n){this.compose=n},a=new t(function(n){return function(t){return function(a){return n(t(a))}}});n.compose=function(n){return n.compose},n.Semigroupoid=t,n.semigroupoidFn=a}(n["Control.Semigroupoid"]=n["Control.Semigroupoid"]||{}),function(t){"use strict";var a=n["Control.Semigroupoid"],e=function(n,t){this.Semigroupoid0=n,this.identity=t},r=new e(function(){return a.semigroupoidFn},function(n){return n});t.Category=e,t.identity=function(n){return n.identity},t.categoryFn=r}(n["Control.Category"]=n["Control.Category"]||{}),function(t){"use strict";(n["Data.Eq"]=n["Data.Eq"]||{}).refEq=function(n){return function(t){return n===t}}}(),function(t){"use strict";(n["Data.Unit"]=n["Data.Unit"]||{}).unit={}}(),function(t){"use strict";(n["Data.Show"]=n["Data.Show"]||{}).showIntImpl=function(n){return n.toString()}}(),function(t){"use strict";var a=n["Data.Show"],e=(n["Data.Symbol"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.show=n}),r=new e(a.showIntImpl);t.Show=e,t.show=function(n){return n.show},t.showInt=r}(n["Data.Show"]=n["Data.Show"]||{}),function(t){"use strict";var a=n["Data.Unit"];n["Data.Show"];t.unit=a.unit}(n["Data.Unit"]=n["Data.Unit"]||{}),function(t){"use strict";var a=n["Data.Eq"],e=(n["Data.HeytingAlgebra"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.eq=n}),r=new e(a.refEq);t.Eq=e,t.eq=function(n){return n.eq},t.eqInt=r}(n["Data.Eq"]=n["Data.Eq"]||{}),function(t){"use strict";(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}).unsafeCompareImpl=function(n){return function(t){return function(a){return function(e){return function(r){return e<r?n:e===r?t:a}}}}}}(),function(t){"use strict";(n["Data.Semigroup"]=n["Data.Semigroup"]||{}).concatString=function(n){return function(t){return n+t}}}(),function(t){"use strict";var a=n["Data.Semigroup"],e=(n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.append=n}),r=new e(a.concatString);t.Semigroup=e,t.append=function(n){return n.append},t.semigroupString=r}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(t){"use strict";n["Data.Eq"],n["Data.Semigroup"],n["Data.Show"];var a=function(){function n(){}return n.value=new n,n}(),e=function(){function n(){}return n.value=new n,n}(),r=function(){function n(){}return n.value=new n,n}();t.LT=a,t.GT=e,t.EQ=r}(n["Data.Ordering"]=n["Data.Ordering"]||{}),function(t){"use strict";var a=n["Data.Ord.Unsafe"],e=n["Data.Ordering"],r=a.unsafeCompareImpl(e.LT.value)(e.EQ.value)(e.GT.value);t.unsafeCompare=r}(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}),function(t){"use strict";n["Data.Ord"];var a=n["Data.Eq"],e=n["Data.Ord.Unsafe"],r=(n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Eq0=n,this.compare=t}),u=new r(function(){return a.eqInt},e.unsafeCompare);t.Ord=r,t.compare=function(n){return n.compare},t.ordInt=u}(n["Data.Ord"]=n["Data.Ord"]||{}),function(t){"use strict";n["Control.Category"],n["Data.Boolean"],n["Data.Ord"],n["Data.Ring"];t.flip=function(n){return function(t){return function(a){return n(a)(t)}}},t.const=function(n){return function(t){return n}}}(n["Data.Function"]=n["Data.Function"]||{}),function(t){"use strict";(n["Data.Functor"]=n["Data.Functor"]||{}).arrayMap=function(n){return function(t){for(var a=t.length,e=new Array(a),r=0;r<a;r++)e[r]=n(t[r]);return e}}}(),function(t){"use strict";var a=n["Data.Functor"],e=(n["Control.Semigroupoid"],n["Data.Function"],n["Data.Unit"],function(n){this.map=n}),r=new e(a.arrayMap);t.Functor=e,t.map=function(n){return n.map},t.functorArray=r}(n["Data.Functor"]=n["Data.Functor"]||{}),function(t){"use strict";var a=n["Control.Apply"],e=(n["Control.Category"],n["Data.Function"],n["Data.Functor"]),r=function(n,t){this.Functor0=n,this.apply=t},u=new r(function(){return e.functorArray},a.arrayApply);t.Apply=r,t.apply=function(n){return n.apply},t.applyArray=u}(n["Control.Apply"]=n["Control.Apply"]||{}),function(t){"use strict";n["Control.Apply"],n["Data.Functor"],n["Data.Unit"];t.Applicative=function(n,t){this.Apply0=n,this.pure=t},t.pure=function(n){return n.pure}}(n["Control.Applicative"]=n["Control.Applicative"]||{}),function(t){"use strict";(n["Control.Bind"]=n["Control.Bind"]||{}).arrayBind=function(n){return function(t){for(var a=[],e=0,r=n.length;e<r;e++)Array.prototype.push.apply(a,t(n[e]));return a}}}(),function(t){"use strict";var a=n["Control.Bind"],e=(n["Control.Applicative"],n["Control.Apply"]),r=(n["Control.Category"],n["Data.Function"]),u=(n["Data.Functor"],n["Data.Unit"],function(n,t){this.Apply0=n,this.bind=t}),o=function(n){this.discard=n},i=new u(function(){return e.applyArray},a.arrayBind),l=function(n){return n.bind},c=new o(function(n){return l(n)});t.Bind=u,t.bind=l,t.bindFlipped=function(n){return r.flip(l(n))},t.Discard=o,t.discard=function(n){return n.discard},t.bindArray=i,t.discardUnit=c}(n["Control.Bind"]=n["Control.Bind"]||{}),function(n){"use strict";n.foldrArray=function(n){return function(t){return function(a){for(var e=t,r=a.length-1;r>=0;r--)e=n(a[r])(e);return e}}},n.foldlArray=function(n){return function(t){return function(a){for(var e=t,r=a.length,u=0;u<r;u++)e=n(e)(a[u]);return e}}}}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";n["Data.Boolean"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.Ord"],n["Data.Ordering"];var a=n["Data.Semigroup"],e=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Semigroup0=n,this.mempty=t}),r=new e(function(){return a.semigroupString},"");t.Monoid=e,t.mempty=function(n){return n.mempty},t.monoidString=r}(n["Data.Monoid"]=n["Data.Monoid"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"];var a=n["Control.Applicative"],e=n["Control.Apply"],r=n["Control.Bind"],u=n["Control.Category"],o=(n["Control.Extend"],n["Control.Monad"],n["Control.MonadZero"],n["Control.Plus"],n["Data.Bounded"],n["Data.Eq"],n["Data.Function"],n["Data.Functor"]),i=(n["Data.Functor.Invariant"],n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Unit"],n.Prelude,function(){function n(){}return n.value=new n,n}()),l=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),c=function(n){return function(t){return function(a){if(a instanceof i)return n;if(a instanceof l)return t(a.value0);throw new Error("Failed pattern match at Data.Maybe (line 217, column 1 - line 217, column 51): "+[n.constructor.name,t.constructor.name,a.constructor.name])}}},f=new o.Functor(function(n){return function(t){return t instanceof l?new l(n(t.value0)):i.value}}),s=new e.Apply(function(){return f},function(n){return function(t){if(n instanceof l)return o.map(f)(n.value0)(t);if(n instanceof i)return i.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 67, column 35): "+[n.constructor.name,t.constructor.name])}}),v=new r.Bind(function(){return s},function(n){return function(t){if(n instanceof l)return t(n.value0);if(n instanceof i)return i.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 125, column 33): "+[n.constructor.name,t.constructor.name])}}),D=new a.Applicative(function(){return s},l.create);t.Nothing=i,t.Just=l,t.maybe=c,t.fromMaybe=function(n){return c(n)(u.identity(u.categoryFn))},t.functorMaybe=f,t.applyMaybe=s,t.applicativeMaybe=D,t.bindMaybe=v}(n["Data.Maybe"]=n["Data.Maybe"]||{}),function(t){"use strict";var a=n["Data.Foldable"],e=(n["Control.Alt"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Category"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Eq"],n["Data.Function"],n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Maybe"],n["Data.Maybe.First"],n["Data.Maybe.Last"],n["Data.Monoid"]),r=(n["Data.Monoid.Additive"],n["Data.Monoid.Conj"],n["Data.Monoid.Disj"],n["Data.Monoid.Dual"],n["Data.Monoid.Endo"],n["Data.Monoid.Multiplicative"],n["Data.Newtype"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"]),u=(n["Data.Semiring"],n["Data.Unit"],n.Prelude,function(n,t,a){this.foldMap=n,this.foldl=t,this.foldr=a}),o=function(n){return n.foldr},i=function(n){return n.foldl},l=function(n){return function(t){return function(a){return o(n)(function(n){return function(e){return r.append(t.Semigroup0())(a(n))(e)}})(e.mempty(t))}}},c=new u(function(n){return l(c)(n)},a.foldlArray,a.foldrArray);t.Foldable=u,t.foldr=o,t.foldl=i,t.foldMap=function(n){return n.foldMap},t.foldMapDefaultR=l,t.intercalate=function(n){return function(t){return function(a){return function(u){return i(n)(function(n){return function(e){return n.init?{init:!1,acc:e}:{init:!1,acc:r.append(t.Semigroup0())(n.acc)(r.append(t.Semigroup0())(a)(e))}}})({init:!0,acc:e.mempty(t)})(u).acc}}}},t.foldableArray=c}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";n["Control.Alt"];var a=n["Control.Applicative"],e=n["Control.Apply"],r=n["Control.Bind"],u=(n["Control.Extend"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifoldable"],n["Data.Bifunctor"],n["Data.Bitraversable"],n["Data.Bounded"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"]),o=(n["Data.Functor.Invariant"],n["Data.FunctorWithIndex"],n["Data.Maybe"]),i=(n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Unit"],n.Prelude,function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}()),l=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),c=new u.Functor(function(n){return function(t){if(t instanceof i)return new i(t.value0);if(t instanceof l)return new l(n(t.value0));throw new Error("Failed pattern match at Data.Either (line 38, column 8 - line 38, column 52): "+[t.constructor.name])}}),f=function(n){return function(t){return function(a){if(a instanceof i)return n(a.value0);if(a instanceof l)return t(a.value0);throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): "+[n.constructor.name,t.constructor.name,a.constructor.name])}}},s=new e.Apply(function(){return c},function(n){return function(t){if(n instanceof i)return new i(n.value0);if(n instanceof l)return u.map(c)(n.value0)(t);throw new Error("Failed pattern match at Data.Either (line 82, column 1 - line 82, column 41): "+[n.constructor.name,t.constructor.name])}}),v=new r.Bind(function(){return s},f(function(n){return function(t){return new i(n)}})(function(n){return function(t){return t(n)}})),D=new a.Applicative(function(){return s},l.create);t.Left=i,t.Right=l,t.either=f,t.note=function(n){return o.maybe(new i(n))(l.create)},t.functorEither=c,t.applyEither=s,t.applicativeEither=D,t.bindEither=v}(n["Data.Either"]=n["Data.Either"]||{}),function(t){"use strict";(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}).unsafePartial=function(n){return n()}}(),function(t){"use strict";(n["Partial"]=n["Partial"]||{}).crashWith=function(){return function(n){throw new Error(n)}}}(),function(t){"use strict";var a=n.Partial;t.crashWith=a.crashWith}(n.Partial=n.Partial||{}),function(t){"use strict";var a=n["Partial.Unsafe"],e=n.Partial;t.unsafeCrashWith=function(n){return a.unsafePartial(function(t){return e.crashWith(t)(n)})}}(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Bind"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifunctor"],n["Data.Either"],n["Data.Functor"],n["Data.Identity"],n["Data.Maybe"],n["Data.Unit"],n.Effect,n["Effect.Ref"],n["Partial.Unsafe"],n.Prelude;var a=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),e=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}();t.Loop=a,t.Done=e,t.tailRec=function(n){return function(t){return function(t){var r,u=!1;function o(r){if(!(r instanceof a)){if(r instanceof e)return u=!0,r.value0;throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 91, column 3 - line 91, column 25): "+[r.constructor.name])}t=n(r.value0)}for(;!u;)r=o(t);return r}(n(t))}}}(n["Control.Monad.Rec.Class"]=n["Control.Monad.Rec.Class"]||{}),function(n){"use strict";n.length=function(n){return n.length},n["uncons'"]=function(n){return function(t){return function(a){return 0===a.length?n({}):t(a[0])(a.slice(1))}}},n.indexImpl=function(n){return function(t){return function(a){return function(e){return e<0||e>=a.length?t:n(a[e])}}}},n.slice=function(n){return function(t){return function(a){return a.slice(n,t)}}},n.take=function(n){return function(t){return n<1?[]:t.slice(0,n)}},n.drop=function(n){return function(t){return n<1?t:t.slice(n)}}}(n["Data.Array"]=n["Data.Array"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Apply"],n["Control.Biapplicative"],n["Control.Biapply"],n["Control.Bind"],n["Control.Comonad"],n["Control.Extend"],n["Control.Lazy"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifoldable"],n["Data.Bifunctor"],n["Data.Bitraversable"],n["Data.BooleanAlgebra"],n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.Distributive"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"],n["Data.Functor.Invariant"],n["Data.FunctorWithIndex"],n["Data.HeytingAlgebra"],n["Data.Maybe"],n["Data.Maybe.First"],n["Data.Monoid"],n["Data.Newtype"],n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semigroup.Foldable"],n["Data.Semigroup.Traversable"],n["Data.Semiring"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Unit"],n.Prelude,n["Type.Equality"];var a=function(){function n(n,t){this.value0=n,this.value1=t}return n.create=function(t){return function(a){return new n(t,a)}},n}();t.Tuple=a}(n["Data.Tuple"]=n["Data.Tuple"]||{}),function(t){"use strict";(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}).unsafeCoerce=function(n){return n}}(),function(t){"use strict";var a=n["Unsafe.Coerce"];t.unsafeCoerce=a.unsafeCoerce}(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}),function(t){"use strict";var a=n["Data.Array"],e=(n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"]),r=(n["Control.Category"],n["Control.Lazy"],n["Control.Monad.Rec.Class"],n["Control.Monad.ST"],n["Control.Monad.ST.Internal"],n["Control.Semigroupoid"],n["Data.Array.NonEmpty.Internal"],n["Data.Array.ST"],n["Data.Array.ST.Iterator"],n["Data.Boolean"],n["Data.Eq"],n["Data.Foldable"],n["Data.Function"]),u=(n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Maybe"]),o=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semiring"],n["Data.Traversable"],n["Data.Tuple"],n["Data.Unfoldable"],n["Partial.Unsafe"],n.Prelude,n["Unsafe.Coerce"],a["uncons'"](r.const(u.Nothing.value))(function(n){return function(n){return new u.Just(n)}})),i=function(n){return[n]},l=a.indexImpl(u.Just.create)(u.Nothing.value),c=r.flip(e.bind(e.bindArray));t.singleton=i,t.head=function(n){return l(n)(0)},t.tail=o,t.index=l,t.concatMap=c,t.mapMaybe=function(n){return c(function(t){return u.maybe([])(i)(n(t))})},t.length=a.length,t.take=a.take,t.drop=a.drop}(n["Data.Array"]=n["Data.Array"]||{}),function(t){"use strict";(n["Data.Int"]=n["Data.Int"]||{}).fromStringAsImpl=function(n){return function(t){return function(a){var e;e=a<11?"[0-"+(a-1).toString()+"]":11===a?"[0-9a]":"[0-9a-"+String.fromCharCode(86+a)+"]";var r=new RegExp("^[\\+\\-]?"+e+"+$","i");return function(e){if(r.test(e)){var u=parseInt(e,a);return(0|u)===u?n(u):t}return t}}}}}(),function(t){"use strict";var a=n["Data.Int"],e=(n["Control.Category"],n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.DivisionRing"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.HeytingAlgebra"],n["Data.Int.Bits"],n["Data.Maybe"]),r=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Show"],n.Global,n.Math,n.Prelude,a.fromStringAsImpl(e.Just.create)(e.Nothing.value)),u=r(10);t.fromString=u,t.fromStringAs=r}(n["Data.Int"]=n["Data.Int"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Category"],n["Control.Comonad"],n["Control.Extend"],n["Control.Monad"],n["Control.MonadPlus"],n["Control.MonadZero"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"],n["Data.FunctorWithIndex"],n["Data.HeytingAlgebra"],n["Data.Maybe"],n["Data.Monoid"],n["Data.Newtype"],n["Data.NonEmpty"],n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semigroup.Foldable"],n["Data.Semigroup.Traversable"],n["Data.Semiring"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Tuple"],n["Data.Unfoldable"],n["Data.Unfoldable1"],n.Prelude;var a=function(){function n(){}return n.value=new n,n}(),e=function(){function n(n,t){this.value0=n,this.value1=t}return n.create=function(t){return function(a){return new n(t,a)}},n}();t.Nil=a,t.Cons=e}(n["Data.List.Types"]=n["Data.List.Types"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Apply"],n["Control.Category"],n["Control.Semigroupoid"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"],n["Data.FunctorWithIndex"],n["Data.HeytingAlgebra"],n["Data.List"],n["Data.List.Lazy"],n["Data.List.Lazy.Types"];var a=n["Data.List.Types"],e=n["Data.Maybe"],r=(n["Data.Monoid"],n["Data.Ord"]),u=n["Data.Ordering"],o=(n["Data.Semigroup"],n["Data.Semiring"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Tuple"],n["Data.Unfoldable"],n["Partial.Unsafe"],n.Prelude,function(){function n(){}return n.value=new n,n}()),i=function(){function n(n,t,a,e){this.value0=n,this.value1=t,this.value2=a,this.value3=e}return n.create=function(t){return function(a){return function(e){return function(r){return new n(t,a,e,r)}}}},n}(),l=function(){function n(n,t,a,e,r,u,o){this.value0=n,this.value1=t,this.value2=a,this.value3=e,this.value4=r,this.value5=u,this.value6=o}return n.create=function(t){return function(a){return function(e){return function(r){return function(u){return function(o){return function(i){return new n(t,a,e,r,u,o,i)}}}}}}},n}(),c=function(){function n(n,t,a){this.value0=n,this.value1=t,this.value2=a}return n.create=function(t){return function(a){return function(e){return new n(t,a,e)}}},n}(),f=function(){function n(n,t,a){this.value0=n,this.value1=t,this.value2=a}return n.create=function(t){return function(a){return function(e){return new n(t,a,e)}}},n}(),s=function(){function n(n,t,a,e,r,u){this.value0=n,this.value1=t,this.value2=a,this.value3=e,this.value4=r,this.value5=u}return n.create=function(t){return function(a){return function(e){return function(r){return function(u){return function(o){return new n(t,a,e,r,u,o)}}}}}},n}(),v=function(){function n(n,t,a,e,r,u){this.value0=n,this.value1=t,this.value2=a,this.value3=e,this.value4=r,this.value5=u}return n.create=function(t){return function(a){return function(e){return function(r){return function(u){return function(o){return new n(t,a,e,r,u,o)}}}}}},n}(),D=function(){function n(n,t,a,e,r,u){this.value0=n,this.value1=t,this.value2=a,this.value3=e,this.value4=r,this.value5=u}return n.create=function(t){return function(a){return function(e){return function(r){return function(u){return function(o){return new n(t,a,e,r,u,o)}}}}}},n}(),d=function(){function n(n,t,a,e){this.value0=n,this.value1=t,this.value2=a,this.value3=e}return n.create=function(t){return function(a){return function(e){return function(r){return new n(t,a,e,r)}}}},n}(),p=function(n){return function(t){return function(e){var r,u=n,o=t,d=!1;function p(n,t,r){if(t instanceof a.Nil)return d=!0,r;if(t instanceof a.Cons){if(t.value0 instanceof c)return u=n,o=t.value1,void(e=new i(r,t.value0.value0,t.value0.value1,t.value0.value2));if(t.value0 instanceof f)return u=n,o=t.value1,void(e=new i(t.value0.value0,t.value0.value1,t.value0.value2,r));if(t.value0 instanceof s)return u=n,o=t.value1,void(e=new l(r,t.value0.value0,t.value0.value1,t.value0.value2,t.value0.value3,t.value0.value4,t.value0.value5));if(t.value0 instanceof v)return u=n,o=t.value1,void(e=new l(t.value0.value0,t.value0.value1,t.value0.value2,r,t.value0.value3,t.value0.value4,t.value0.value5));if(t.value0 instanceof D)return u=n,o=t.value1,void(e=new l(t.value0.value0,t.value0.value1,t.value0.value2,t.value0.value3,t.value0.value4,t.value0.value5,r));throw new Error("Failed pattern match at Data.Map.Internal (line 418, column 3 - line 423, column 88): "+[t.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 415, column 1 - line 415, column 80): "+[t.constructor.name,r.constructor.name])}for(;!d;)r=p(u,o,e);return r}}},m=o.value;t.empty=m,t.insert=function(n){return function(t){return function(e){var m,h=function(t){return function(e){var r,u=t,o=!1;function m(t,r){if(t instanceof a.Nil)return o=!0,new i(r.value0,r.value1,r.value2,r.value3);if(t instanceof a.Cons){if(t.value0 instanceof c)return o=!0,p(n)(t.value1)(new l(r.value0,r.value1,r.value2,r.value3,t.value0.value0,t.value0.value1,t.value0.value2));if(t.value0 instanceof f)return o=!0,p(n)(t.value1)(new l(t.value0.value0,t.value0.value1,t.value0.value2,r.value0,r.value1,r.value2,r.value3));if(t.value0 instanceof s)return u=t.value1,void(e=new d(new i(r.value0,r.value1,r.value2,r.value3),t.value0.value0,t.value0.value1,new i(t.value0.value2,t.value0.value3,t.value0.value4,t.value0.value5)));if(t.value0 instanceof v)return u=t.value1,void(e=new d(new i(t.value0.value0,t.value0.value1,t.value0.value2,r.value0),r.value1,r.value2,new i(r.value3,t.value0.value3,t.value0.value4,t.value0.value5)));if(t.value0 instanceof D)return u=t.value1,void(e=new d(new i(t.value0.value0,t.value0.value1,t.value0.value2,t.value0.value3),t.value0.value4,t.value0.value5,new i(r.value0,r.value1,r.value2,r.value3)));throw new Error("Failed pattern match at Data.Map.Internal (line 454, column 5 - line 459, column 108): "+[t.value0.constructor.name,r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 451, column 3 - line 451, column 56): "+[t.constructor.name,r.constructor.name])}for(;!o;)r=m(u,e);return r}},C=r.compare(n);return m=a.Nil.value,function(r){var g,w=m,y=!1;function S(m,g){if(g instanceof o)return y=!0,h(m)(new d(o.value,t,e,o.value));if(g instanceof i){var S=C(t)(g.value1);return S instanceof u.EQ?(y=!0,p(n)(m)(new i(g.value0,t,e,g.value3))):S instanceof u.LT?(w=new a.Cons(new c(g.value1,g.value2,g.value3),m),void(r=g.value0)):(w=new a.Cons(new f(g.value0,g.value1,g.value2),m),void(r=g.value3))}if(g instanceof l){var b=C(t)(g.value1);if(b instanceof u.EQ)return y=!0,p(n)(m)(new l(g.value0,t,e,g.value3,g.value4,g.value5,g.value6));var F=C(t)(g.value4);return F instanceof u.EQ?(y=!0,p(n)(m)(new l(g.value0,g.value1,g.value2,g.value3,t,e,g.value6))):b instanceof u.LT?(w=new a.Cons(new s(g.value1,g.value2,g.value3,g.value4,g.value5,g.value6),m),void(r=g.value0)):b instanceof u.GT&&F instanceof u.LT?(w=new a.Cons(new v(g.value0,g.value1,g.value2,g.value4,g.value5,g.value6),m),void(r=g.value3)):(w=new a.Cons(new D(g.value0,g.value1,g.value2,g.value3,g.value4,g.value5),m),void(r=g.value6))}throw new Error("Failed pattern match at Data.Map.Internal (line 434, column 3 - line 434, column 55): "+[m.constructor.name,g.constructor.name])}for(;!y;)g=S(w,r);return g}}}},t.lookupLE=function(n){return function(t){var a=r.compare(n),c=function(n){if(n instanceof o)return e.Nothing.value;if(n instanceof i){var r=a(t)(n.value1);if(r instanceof u.EQ)return new e.Just({key:n.value1,value:n.value2});if(r instanceof u.GT)return e.Just.create(e.fromMaybe({key:n.value1,value:n.value2})(c(n.value3)));if(r instanceof u.LT)return c(n.value0);throw new Error("Failed pattern match at Data.Map.Internal (line 225, column 33 - line 228, column 20): "+[r.constructor.name])}if(n instanceof l){var f=a(t)(n.value4);if(f instanceof u.EQ)return new e.Just({key:n.value4,value:n.value5});if(f instanceof u.GT)return e.Just.create(e.fromMaybe({key:n.value4,value:n.value5})(c(n.value6)));if(f instanceof u.LT)return c(new i(n.value0,n.value1,n.value2,n.value3));throw new Error("Failed pattern match at Data.Map.Internal (line 229, column 45 - line 232, column 36): "+[f.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 224, column 5 - line 224, column 22): "+[n.constructor.name])};return c}}}(n["Data.Map.Internal"]=n["Data.Map.Internal"]||{}),function(n){"use strict";n.length=function(n){return n.length},n["_indexOf'"]=function(n){return function(t){return function(a){return function(e){return function(r){if(e<0||e>r.length)return t;var u=r.indexOf(a,e);return-1===u?t:n(u)}}}}}}(n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{}),function(t){"use strict";var a=n["Data.String.CodeUnits"],e=(n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Eq"],n["Data.Function"],n["Data.HeytingAlgebra"],n["Data.Maybe"]),r=(n["Data.Ord"],n["Data.Ring"],n["Data.Semiring"],n["Data.String.Pattern"],n["Data.String.Unsafe"],n.Prelude,a["_indexOf'"](e.Just.create)(e.Nothing.value));t["indexOf'"]=r}(n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{}),function(n){"use strict";n.split=function(n){return function(t){return t.split(n)}},n.trim=function(n){return n.trim()}}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(t){"use strict";var a=n["Data.String.Common"];n["Data.Eq"],n["Data.Ordering"],n["Data.String.Pattern"],n.Prelude;t.split=a.split,t.trim=a.trim}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(t){"use strict";var a=n["Control.Applicative"],e=n["Control.Bind"],r=n["Control.Monad.Rec.Class"],u=n["Data.Array"],o=n["Data.Either"],i=(n["Data.Eq"],n["Data.Foldable"]),l=n["Data.Functor"],c=n["Data.Int"],f=(n["Data.Map"],n["Data.Map.Internal"]),s=n["Data.Maybe"],v=n["Data.Monoid"],D=n["Data.Ord"],d=(n["Data.Ring"],n["Data.Semiring"],n["Data.Show"]),p=(n["Data.String"],n["Data.String.CodeUnits"]),m=n["Data.String.Common"],h=(n["Data.String.Pattern"],n["Data.Tuple"]),C=n["Data.Unit"],g=n["Partial.Unsafe"],w=(n.Prelude,function(n){var t=m.split(" ")(n);return 2===t.length?e.bind(s.bindMaybe)(c.fromString(t[0]))(function(n){return e.bind(s.bindMaybe)(c.fromString(t[1]))(function(t){return a.pure(s.applicativeMaybe)(new h.Tuple(n,t))})}):s.Nothing.value}),y=function(n){var t=m.split("\n")(m.trim(n));return e.bind(o.bindEither)(o.note("N Q")(e.bindFlipped(s.bindMaybe)(w)(u.head(t))))(function(n){return e.bind(o.bindEither)(o.note("S")(e.bindFlipped(s.bindMaybe)(u.head)(u.tail(u.take(2)(t)))))(function(c){var m,h,g=(m=c,r.tailRec(function(n){var t=p["indexOf'"]("AC")(n.i)(m);if(t instanceof s.Nothing)return new r.Done(n.a);if(t instanceof s.Just)return new r.Loop({a:f.insert(D.ordInt)(t.value0+1|0)(n.n+1|0)(n.a),i:t.value0+1|0,n:n.n+1|0});throw new Error("Failed pattern match at AtCoder.ABC122.C (line 26, column 7 - line 33, column 14): "+[t.constructor.name])})({a:f.empty,i:0,n:0})),y=(h=g,function(n){return function(t){return s.fromMaybe(0)(l.map(s.functorMaybe)(function(n){return n.value})(f.lookupLE(D.ordInt)(t)(h)))-s.fromMaybe(0)(l.map(s.functorMaybe)(function(n){return n.value})(f.lookupLE(D.ordInt)(n)(h)))|0}}),S=u.mapMaybe(function(n){return e.bind(s.bindMaybe)(w(n))(function(n){var t=n.value1-1|0,e=n.value0-1|0;return a.pure(s.applicativeMaybe)(d.show(d.showInt)(y(e)(t)))})})(u.drop(2)(t));return e.discard(e.discardUnit)(o.bindEither)(u.length(S)!==n.value1?new o.Left("as length"):a.pure(o.applicativeEither)(C.unit))(function(){return a.pure(o.applicativeEither)(i.intercalate(i.foldableArray)(v.monoidString)("\n")(S))})})})};t.solve=function(n){var t=y(n);if(t instanceof o.Left)return g.unsafeCrashWith(t.value0);if(t instanceof o.Right)return t.value0;throw new Error("Failed pattern match at AtCoder.ABC122.C (line 54, column 3 - line 56, column 17): "+[t.constructor.name])}}(n["AtCoder.ABC122.C"]=n["AtCoder.ABC122.C"]||{}),function(t){"use strict";(n["Effect.Console"]=n["Effect.Console"]||{}).log=function(n){return function(){return console.log(n),{}}}}(),function(t){"use strict";var a=n["Effect.Console"];n["Data.Show"],n["Data.Unit"],n.Effect;t.log=a.log}(n["Effect.Console"]=n["Effect.Console"]||{}),function(t){"use strict";n["Node.Encoding"];var a=n["Data.Show"],e=(n.Prelude,function(){function n(){}return n.value=new n,n}()),r=function(){function n(){}return n.value=new n,n}(),u=function(){function n(){}return n.value=new n,n}(),o=function(){function n(){}return n.value=new n,n}(),i=function(){function n(){}return n.value=new n,n}(),l=function(){function n(){}return n.value=new n,n}(),c=function(){function n(){}return n.value=new n,n}(),f=function(){function n(){}return n.value=new n,n}(),s=new a.Show(function(n){if(n instanceof e)return"ASCII";if(n instanceof r)return"UTF8";if(n instanceof u)return"UTF16LE";if(n instanceof o)return"UCS2";if(n instanceof i)return"Base64";if(n instanceof l)return"Latin1";if(n instanceof c)return"Binary";if(n instanceof f)return"Hex";throw new Error("Failed pattern match at Node.Encoding (line 19, column 1 - line 19, column 39): "+[n.constructor.name])});t.ASCII=e,t.UTF8=r,t.UTF16LE=u,t.UCS2=o,t.Base64=i,t.Latin1=l,t.Binary=c,t.Hex=f,t.showEncoding=s}(n["Node.Encoding"]=n["Node.Encoding"]||{}),function(t){"use strict";(n["Node.FS.Internal"]=n["Node.FS.Internal"]||{}).unsafeRequireFS=require("fs")}(),function(t){"use strict";var a=n["Node.FS.Internal"],e=(n.Effect,n.Prelude,n["Unsafe.Coerce"].unsafeCoerce);t.mkEffect=e,t.unsafeRequireFS=a.unsafeRequireFS}(n["Node.FS.Internal"]=n["Node.FS.Internal"]||{}),function(t){"use strict";n["Control.Bind"],n["Control.Semigroupoid"],n["Data.DateTime"],n["Data.DateTime.Instant"],n["Data.EuclideanRing"],n["Data.Function"],n["Data.Function.Uncurried"],n["Data.Functor"],n["Data.Int"],n["Data.Maybe"],n["Data.Nullable"];var a=n["Data.Show"],e=(n["Data.Time.Duration"],n.Effect,n["Node.Buffer"],n["Node.Encoding"]),r=(n["Node.FS"],n["Node.FS.Internal"]),u=(n["Node.FS.Perms"],n["Node.FS.Stats"],n["Node.Path"],n.Prelude,r.unsafeRequireFS);t.readTextFile=function(n){return function(t){return r.mkEffect(function(r){return u.readFileSync(t,{encoding:a.show(e.showEncoding)(n)})})}}}(n["Node.FS.Sync"]=n["Node.FS.Sync"]||{}),function(t){"use strict";var a=n["AtCoder.ABC122.C"],e=(n["Control.Applicative"],n["Control.Bind"],n.Effect,n["Effect.Console"]),r=n["Node.Encoding"],u=n["Node.FS.Sync"];n.Prelude;t.main=function(){var n=u.readTextFile(r.UTF8.value)("/dev/stdin")(),t=a.solve(n);return e.log(t)()}}(n.Main=n.Main||{}),n.Main.main();
},{}]},{},["Focm"], null)