/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.0.16 (2019-09-24) */ !function(j){"use strict";function i(){}var q=function(n,r){return function(){for(var e=[],t=0;t=i.length&&n(r)}}(t))})})}var jt,qt,$t,Wt=It.exports.boltExport,Kt=function(e){var n=k.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){z(e,a)},a=function(t){n.each(function(e){j.setTimeout(function(){t(e)},0)})};return e(function(e){n=k.some(e),i(t),t=[]}),{get:r,map:function(n){return Kt(function(t){r(function(e){t(n(e))})})},isReady:o}},Xt={nu:Kt,pure:function(t){return Kt(function(e){e(t)})}},Yt=function(n){function e(e){n().then(e,Ft)}return{map:function(e){return Yt(function(){return n().then(e)})},bind:function(t){return Yt(function(){return n().then(function(e){return t(e).toPromise()})})},anonBind:function(e){return Yt(function(){return n().then(function(){return e.toPromise()})})},toLazy:function(){return Xt.nu(e)},toCached:function(){var e=null;return Yt(function(){return null===e&&(e=n()),e})},toPromise:n,get:e}},Gt={nu:function(e){return Yt(function(){return new Wt(e)})},pure:function(e){return Yt(function(){return Wt.resolve(e)})}},Jt=function(e){return Ut(e,Gt.nu)},Qt=function(n){return{is:function(e){return n===e},isValue:a,isError:s,getOr:$(n),getOrThunk:$(n),getOrDie:$(n),or:function(e){return Qt(n)},orThunk:function(e){return Qt(n)},fold:function(e,t){return t(n)},map:function(e){return Qt(e(n))},mapError:function(e){return Qt(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return k.some(n)}}},Zt=function(n){return{is:s,isValue:s,isError:a,getOr:W,getOrThunk:function(e){return e()},getOrDie:function(){return function(e){return function(){throw new Error(e)}}(String(n))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return Zt(n)},mapError:function(e){return Zt(e(n))},each:i,bind:function(e){return Zt(n)},exists:s,forall:a,toOption:k.none}},en={value:Qt,error:Zt,fromOption:function(e,t){return e.fold(function(){return Zt(t)},Qt)}},tn=window.Promise?window.Promise:(jt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},qt=rn.immediateFn||"function"==typeof j.setImmediate&&j.setImmediate||function(e){j.setTimeout(e,1)},rn.prototype["catch"]=function(e){return this.then(null,e)},rn.prototype.then=function(n,r){var o=this;return new rn(function(e,t){on.call(o,new sn(n,r,e,t))})},rn.all=function(){var c=Array.prototype.slice.call(1===arguments.length&&jt(arguments[0])?arguments[0]:arguments);return new rn(function(o,i){if(0===c.length)return o([]);var a=c.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},i)}c[t]=e,0==--a&&o(c)}catch(r){i(r)}}for(var e=0;e\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ar=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ur=/[<>&\"\']/g,cr=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,sr={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};$n={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Wn={"<":"<",">":">","&":"&",""":'"',"'":"'"};function lr(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n>10),56320+(1023&t))):sr[t]||String.fromCharCode(t):Wn[e]||qn[e]||function(e){var t;return(t=Ct.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},gr={},pr={},vr=Vn.makeMap,yr=Vn.each,br=Vn.extend,Cr=Vn.explode,wr=Vn.inArray,xr=function(e,t){return(e=Vn.trim(e))?e.split(t||" "):[]},zr=function(e){function t(e,t,n){function r(e,t){var n,r,o={};for(n=0,r=e.length;n