UNPKG

chimee-helper-utils

Version:
2 lines (1 loc) 18.1 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.ChimeeHelperUtils={})}(this,function(t){"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=Math.ceil,o=Math.floor,i=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)},u=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},a=n(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),f=n(function(t){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)}),c=(f.version,function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}),l=function(t){return"object"==typeof t?null!==t:"function"==typeof t},s=function(t){if(!l(t))throw TypeError(t+" is not an object!");return t},p=function(t){try{return!!t()}catch(t){return!0}},y=!p(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),d=a.document,h=l(d)&&l(d.createElement),v=function(t){return h?d.createElement(t):{}},m=!y&&!p(function(){return 7!=Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a}),g=function(t,e){if(!l(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!l(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b=Object.defineProperty,w={f:y?Object.defineProperty:function(t,e,n){if(s(t),e=g(e,!0),s(n),m)try{return b(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=y?function(t,e,n){return w.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},_="prototype",j=function(t,e,n){var r,o,i,u=t&j.F,l=t&j.G,s=t&j.S,p=t&j.P,y=t&j.B,d=t&j.W,h=l?f:f[e]||(f[e]={}),v=h[_],m=l?a:s?a[e]:(a[e]||{})[_];l&&(n=e);for(r in n)(o=!u&&m&&void 0!==m[r])&&r in h||(i=o?m[r]:n[r],h[r]=l&&"function"!=typeof m[r]?n[r]:y&&o?c(i,a):d&&m[r]==i?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[_]=t[_],e}(i):p&&"function"==typeof i?c(Function.call,i):i,p&&((h.virtual||(h.virtual={}))[r]=i,t&j.R&&v&&!v[r]&&O(v,r,i)))};j.F=1,j.G=2,j.S=4,j.P=8,j.B=16,j.W=32,j.U=64,j.R=128;var M,A=j,F=O,P={}.hasOwnProperty,T=function(t,e){return P.call(t,e)},C={}.toString,E=function(t){return C.call(t).slice(8,-1)},L=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==E(t)?t.split(""):Object(t)},x=function(t){return L(u(t))},k=Math.min,N=Math.max,R=Math.min,D="__core-js_shared__",I=a[D]||(a[D]={}),q=function(t){return I[t]||(I[t]={})},G=0,V=Math.random(),W=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++G+V).toString(36))},H=q("keys"),z=function(t){return H[t]||(H[t]=W(t))},K=(M=!1,function(t,e,n){var r,o,u,a,f=x(t),c=(r=f.length,r>0?k(i(r),9007199254740991):0),l=(o=n,u=c,(o=i(o))<0?N(o+u,0):R(o,u));if(M&&e!=e){for(;c>l;)if((a=f[l++])!=a)return!0}else for(;c>l;l++)if((M||l in f)&&f[l]===e)return M||l||0;return!M&&-1}),B=z("IE_PROTO"),J=function(t,e){var n,r=x(t),o=0,i=[];for(n in r)n!=B&&T(r,n)&&i.push(n);for(;e.length>o;)T(r,n=e[o++])&&(~K(i,n)||i.push(n));return i},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Y=Object.keys||function(t){return J(t,U)},Q=y?Object.defineProperties:function(t,e){s(t);for(var n,r=Y(e),o=r.length,i=0;o>i;)w.f(t,n=r[i++],e[n]);return t},$=a.document,X=$&&$.documentElement,Z=z("IE_PROTO"),tt=function(){},et="prototype",nt=function(){var t,e=v("iframe"),n=U.length;for(e.style.display="none",X.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),nt=t.F;n--;)delete nt[et][U[n]];return nt()},rt=Object.create||function(t,e){var n;return null!==t?(tt[et]=s(t),n=new tt,tt[et]=null,n[Z]=t):n=nt(),void 0===e?n:Q(n,e)},ot=n(function(t){var e=q("wks"),n=a.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:W)("Symbol."+t))}).store=e}),it=w.f,ut=ot("toStringTag"),at=function(t,e,n){t&&!T(t=n?t:t.prototype,ut)&&it(t,ut,{configurable:!0,value:e})},ft={};O(ft,ot("iterator"),function(){return this});var ct,lt=function(t){return Object(u(t))},st=z("IE_PROTO"),pt=Object.prototype,yt=Object.getPrototypeOf||function(t){return t=lt(t),T(t,st)?t[st]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?pt:null},dt=ot("iterator"),ht=!([].keys&&"next"in[].keys()),vt="values",mt=function(t,e,n,r,o,i,u){f=e,c=r,(a=n).prototype=rt(ft,{next:S(1,c)}),at(a,f+" Iterator");var a,f,c,l,s,p,y=function(t){if(!ht&&t in m)return m[t];switch(t){case"keys":case vt:return function(){return new n(this,t)}}return function(){return new n(this,t)}},d=e+" Iterator",h=o==vt,v=!1,m=t.prototype,g=m[dt]||m["@@iterator"]||o&&m[o],b=!ht&&g||y(o),w=o?h?y("entries"):b:void 0,_="Array"==e?m.entries||g:g;if(_&&(p=yt(_.call(new t)))!==Object.prototype&&p.next&&at(p,d,!0),h&&g&&g.name!==vt&&(v=!0,b=function(){return g.call(this)}),u&&(ht||v||!m[dt])&&O(m,dt,b),o)if(l={values:h?b:y(vt),keys:i?b:y("keys"),entries:w},u)for(s in l)s in m||F(m,s,l[s]);else A(A.P+A.F*(ht||v),e,l);return l},gt=(ct=!0,function(t,e){var n,r,o=String(u(t)),a=i(e),f=o.length;return a<0||a>=f?ct?"":void 0:(n=o.charCodeAt(a))<55296||n>56319||a+1===f||(r=o.charCodeAt(a+1))<56320||r>57343?ct?o.charAt(a):n:ct?o.slice(a,a+2):r-56320+(n-55296<<10)+65536});mt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=gt(e,n),this._i+=t.length,{value:t,done:!1})});for(var bt=function(t,e){return{value:e,done:!!t}},wt=(mt(Array,"Array",function(t,e){this._t=x(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,bt(1)):bt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),ot("toStringTag")),St="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Ot=0;Ot<St.length;Ot++){var _t=St[Ot],jt=a[_t],Mt=jt&&jt.prototype;Mt&&!Mt[wt]&&O(Mt,wt,_t)}var At={f:ot},Ft=At.f("iterator"),Pt=n(function(t){t.exports={default:Ft,__esModule:!0}});e(Pt);var Tt=n(function(t){var e=W("meta"),n=w.f,r=0,o=Object.isExtensible||function(){return!0},i=!p(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},a=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!l(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!T(t,e)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[e].i},getWeak:function(t,n){if(!T(t,e)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[e].w},onFreeze:function(t){return i&&a.NEED&&o(t)&&!T(t,e)&&u(t),t}}}),Ct=(Tt.KEY,Tt.NEED,Tt.fastKey,Tt.getWeak,Tt.onFreeze,w.f),Et=function(t){var e=f.Symbol||(f.Symbol={});"_"==t.charAt(0)||t in e||Ct(e,t,{value:At.f(t)})},Lt={f:Object.getOwnPropertySymbols},xt={f:{}.propertyIsEnumerable},kt=Array.isArray||function(t){return"Array"==E(t)},Nt=U.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(t){return J(t,Nt)}},Dt=Rt.f,It={}.toString,qt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gt={f:function(t){return qt&&"[object Window]"==It.call(t)?function(t){try{return Dt(t)}catch(t){return qt.slice()}}(t):Dt(x(t))}},Vt=Object.getOwnPropertyDescriptor,Wt={f:y?Vt:function(t,e){if(t=x(t),e=g(e,!0),m)try{return Vt(t,e)}catch(t){}if(T(t,e))return S(!xt.f.call(t,e),t[e])}},Ht=Tt.KEY,zt=Wt.f,Kt=w.f,Bt=Gt.f,Jt=a.Symbol,Ut=a.JSON,Yt=Ut&&Ut.stringify,Qt="prototype",$t=ot("_hidden"),Xt=ot("toPrimitive"),Zt={}.propertyIsEnumerable,te=q("symbol-registry"),ee=q("symbols"),ne=q("op-symbols"),re=Object[Qt],oe="function"==typeof Jt,ie=a.QObject,ue=!ie||!ie[Qt]||!ie[Qt].findChild,ae=y&&p(function(){return 7!=rt(Kt({},"a",{get:function(){return Kt(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=zt(re,e);r&&delete re[e],Kt(t,e,n),r&&t!==re&&Kt(re,e,r)}:Kt,fe=function(t){var e=ee[t]=rt(Jt[Qt]);return e._k=t,e},ce=oe&&"symbol"==typeof Jt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Jt},le=function(t,e,n){return t===re&&le(ne,e,n),s(t),e=g(e,!0),s(n),T(ee,e)?(n.enumerable?(T(t,$t)&&t[$t][e]&&(t[$t][e]=!1),n=rt(n,{enumerable:S(0,!1)})):(T(t,$t)||Kt(t,$t,S(1,{})),t[$t][e]=!0),ae(t,e,n)):Kt(t,e,n)},se=function(t,e){s(t);for(var n,r=function(t){var e=Y(t),n=Lt.f;if(n)for(var r,o=n(t),i=xt.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e}(e=x(e)),o=0,i=r.length;i>o;)le(t,n=r[o++],e[n]);return t},pe=function(t){var e=Zt.call(this,t=g(t,!0));return!(this===re&&T(ee,t)&&!T(ne,t))&&(!(e||!T(this,t)||!T(ee,t)||T(this,$t)&&this[$t][t])||e)},ye=function(t,e){if(t=x(t),e=g(e,!0),t!==re||!T(ee,e)||T(ne,e)){var n=zt(t,e);return!n||!T(ee,e)||T(t,$t)&&t[$t][e]||(n.enumerable=!0),n}},de=function(t){for(var e,n=Bt(x(t)),r=[],o=0;n.length>o;)T(ee,e=n[o++])||e==$t||e==Ht||r.push(e);return r},he=function(t){for(var e,n=t===re,r=Bt(n?ne:x(t)),o=[],i=0;r.length>i;)!T(ee,e=r[i++])||n&&!T(re,e)||o.push(ee[e]);return o};oe||(F((Jt=function(){if(this instanceof Jt)throw TypeError("Symbol is not a constructor!");var t=W(arguments.length>0?arguments[0]:void 0),e=function(n){this===re&&e.call(ne,n),T(this,$t)&&T(this[$t],t)&&(this[$t][t]=!1),ae(this,t,S(1,n))};return y&&ue&&ae(re,t,{configurable:!0,set:e}),fe(t)})[Qt],"toString",function(){return this._k}),Wt.f=ye,w.f=le,Rt.f=Gt.f=de,xt.f=pe,Lt.f=he,At.f=function(t){return fe(ot(t))}),A(A.G+A.W+A.F*!oe,{Symbol:Jt});for(var ve="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),me=0;ve.length>me;)ot(ve[me++]);for(var ge=Y(ot.store),be=0;ge.length>be;)Et(ge[be++]);A(A.S+A.F*!oe,"Symbol",{for:function(t){return T(te,t+="")?te[t]:te[t]=Jt(t)},keyFor:function(t){if(!ce(t))throw TypeError(t+" is not a symbol!");for(var e in te)if(te[e]===t)return e},useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),A(A.S+A.F*!oe,"Object",{create:function(t,e){return void 0===e?rt(t):se(rt(t),e)},defineProperty:le,defineProperties:se,getOwnPropertyDescriptor:ye,getOwnPropertyNames:de,getOwnPropertySymbols:he}),Ut&&A(A.S+A.F*(!oe||p(function(){var t=Jt();return"[null]"!=Yt([t])||"{}"!=Yt({a:t})||"{}"!=Yt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(l(e)||void 0!==t)&&!ce(t))return kt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ce(e))return e}),r[1]=e,Yt.apply(Ut,r)}}),Jt[Qt][Xt]||O(Jt[Qt],Xt,Jt[Qt].valueOf),at(Jt,"Symbol"),at(Math,"Math",!0),at(a.JSON,"JSON",!0),Et("asyncIterator"),Et("observable");var we=f.Symbol,Se=n(function(t){t.exports={default:we,__esModule:!0}});e(Se);e(n(function(t,e){e.__esModule=!0;var n=i(Pt),r=i(Se),o="function"==typeof r.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function i(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===o(n.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":o(t)}}));!function(t,e){var n=(f.Object||{})[t]||Object[t],r={};r[t]=e(n),A(A.S+A.F*p(function(){n(1)}),"Object",r)}("keys",function(){return function(t){return Y(lt(t))}});var Oe=f.Object.keys;e(n(function(t){t.exports={default:Oe,__esModule:!0}}));var _e=Math.floor;A(A.S,"Number",{isInteger:function(t){return!l(t)&&isFinite(t)&&_e(t)===t}});var je=f.Number.isInteger;e(n(function(t){t.exports={default:je,__esModule:!0}}));var Me="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Ae="["+Me+"]",Fe=RegExp("^"+Ae+Ae+"*"),Pe=RegExp(Ae+Ae+"*$"),Te=function(t,e,n){var r={},o=p(function(){return!!Me[t]()||"​…"!="​…"[t]()}),i=r[t]=o?e(Ce):Me[t];n&&(r[n]=i),A(A.P+A.F*o,"String",r)},Ce=Te.trim=function(t,e){return t=String(u(t)),1&e&&(t=t.replace(Fe,"")),2&e&&(t=t.replace(Pe,"")),t},Ee=Te,Le=a.parseFloat,xe=Ee.trim,ke=1/Le(Me+"-0")!=-1/0?function(t){var e=xe(String(t),3),n=Le(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Le;A(A.S+A.F*(Number.parseFloat!=ke),"Number",{parseFloat:ke});var Ne=parseFloat;e(n(function(t){t.exports={default:Ne,__esModule:!0}}));function Re(t){return"function"==typeof t}var De=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},Ie="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window);function qe(t,e,n){var r=t;if(e+n<r.length){for(;n--;)if(128!=(192&r[++e]))return!1;return!0}return!1}var Ge=Ie&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame)||function(t){return setTimeout(t,17)},Ve=Ie&&(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame)||function(t){clearTimeout(t)};function We(t,e){var n=e,r=(t=""+(t||"")).length;return(((e=(e||r)-r)>0?t.repeat?"0".repeat(e):new Array(e+1).join("0"):"")+t).slice(0,n)}t.inBrowser=Ie,t.makeArray=function(t){return Array.from(t)},t.transObjectAttrIntoArray=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return+t-+e};return Object.keys(t).sort(e).reduce(function(e,n){return e.concat(t[n])},[])},t.runRejectableQueue=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new Promise(function(e,r){!function o(i){if(!(i>=t.length)){var u=Re(t[i])?t[i].apply(t,De(n)):t[i];return!1===u?r("stop"):Promise.resolve(u).then(function(){return o(i+1)}).catch(function(t){return r(t||"stop")})}e()}(0)})},t.runStoppableQueue=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function e(r){return r>=t.length||!1!==(Re(t[r])?t[r].apply(t,De(n)):t[r])&&e(++r)}(0)},t.decodeUTF8=function(t){for(var e=[],n=t,r=0,o=t.length;r<o;)if(n[r]<128)e.push(String.fromCharCode(n[r])),++r;else{if(n[r]<192);else if(n[r]<224){if(qe(n,r,1)){var i=(31&n[r])<<6|63&n[r+1];if(i>=128){e.push(String.fromCharCode(65535&i)),r+=2;continue}}}else if(n[r]<240){if(qe(n,r,2)){var u=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(u>=2048&&55296!=(63488&u)){e.push(String.fromCharCode(65535&u)),r+=3;continue}}}else if(n[r]<248&&qe(n,r,3)){var a=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(a>65536&&a<1114112){a-=65536,e.push(String.fromCharCode(a>>>10|55296)),e.push(String.fromCharCode(1023&a|56320)),r+=4;continue}}e.push(String.fromCharCode(65533)),++r}return e.join("")},t.debounce=function(t,e,n){var r=void 0,o=void 0,i=void 0,u=void 0,a=void 0,f=function f(){var c=new Date-u;c<e&&c>=0?r=setTimeout(f,e-c):(r=null,n||(a=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=new Date;var c=n&&!r;return r||(r=setTimeout(f,e)),c&&(a=t.apply(i,o),i=o=null),a}},t.throttle=function(t,e,n,r){var o=void 0,i=void 0,u=void 0,a=null,f=0;n||(n={});var c=function(){f=!1===n.leading?0:new Date-0,a=null,u=t.apply(o,i),a||(o=i=null)};return e=e||0,function(){var l=new Date;f||!1!==n.leading||(f=l);var s=e-(l-f);return o=r||this,i=arguments,s<=0||s>e?(a&&(clearTimeout(a),a=null),f=l,u=t.apply(o,i),a||(o=i=null)):a||!1===n.trailing||(a=setTimeout(c,s)),u}},t.raf=Ge,t.caf=Ve,t.strRepeat=We,t.formatTime=function(t){var e=Math.floor(t/3600);t=Math.floor(t%3600);var n=We(Math.floor(t/60),2),r=We(t=Math.floor(t%60),2);return e>=1?e+":"+n+":"+r:n+":"+r},t.appendCSS=function(t){var e=document,n=e.querySelector("style");if(!n){n=e.createElement("style");var r=e.querySelector("head");r&&r.appendChild(n)}return n.appendChild(e.createTextNode(t)),n},t.formatDate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss.i",n=t.getFullYear().toString(),r={M:t.getMonth()+1,d:t.getDate(),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds(),i:t.getMilliseconds()};e=e.replace(/(y+)/gi,function(t,e){return n.substr(4-Math.min(4,e.length))});for(var o in r)i=o,e=e.replace(new RegExp("("+i+"+)","g"),function(t,e){return(r[i]<10&&e.length>1?"0":"")+r[i]});var i;return e},t.getLocalStorage=function(t){try{return window.localStorage.getItem(t)}catch(r){try{var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return n=e,Array.isArray(n)?unescape(e[2]):""}catch(t){return""}}var n},t.setLocalStorage=function(t,e){try{window.localStorage.setItem(t,e)}catch(r){var n=new Date;n.setTime(n.getTime()+2592e7);try{document.cookie=t+"="+escape(e)+";expires="+n.toUTCString()+";path=/;"}catch(t){console.error(t)}}},Object.defineProperty(t,"__esModule",{value:!0})});