-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmc-web-client.min.js
1 lines (1 loc) · 354 KB
/
tmc-web-client.min.js
1
(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)})([function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _regenerator=__webpack_require__(2);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(5);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);__webpack_require__(82);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _exercise=__webpack_require__(414);var _exercise2=_interopRequireDefault(_exercise);var _editor=__webpack_require__(451);var _editor2=_interopRequireDefault(_editor);var _session=__webpack_require__(425);var _session2=_interopRequireDefault(_session);var _paste=__webpack_require__(490);var _paste2=_interopRequireDefault(_paste);var _Exercise=__webpack_require__(491);var _Exercise2=_interopRequireDefault(_Exercise);var _constants=__webpack_require__(423);var _constants2=_interopRequireDefault(_constants);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}__webpack_require__(492);var WebClient=function(){function WebClient(){(0,_classCallCheck3.default)(this,WebClient)}(0,_createClass3.default)(WebClient,null,[{key:"findExerciseContainers",value:function findExerciseContainers(){return(0,_jquery2.default)('[data-type="tmc-exercise"]').toArray()}},{key:"initializeEditor",value:function(){var _ref=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(container){var id,exerciseString,editorContainer,exercise,editor;return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:id=(0,_jquery2.default)(container).data("id");exerciseString=(0,_Exercise2.default)({id:id});(0,_jquery2.default)(container).replaceWith(exerciseString);editorContainer=(0,_jquery2.default)("#exercise-"+id).find(".tmc-exercise");exercise=new _exercise2.default(id);_context.next=7;return exercise.fetch();case 7:editor=new _editor2.default(editorContainer,exercise);editor.start();case 9:case"end":return _context.stop()}}},_callee,this)}));function initializeEditor(_x){return _ref.apply(this,arguments)}return initializeEditor}()},{key:"addBackgroundOverlay",value:function addBackgroundOverlay(){var body=document.querySelector("body");var overlay=document.createElement("div");overlay.id="background-overlay";body.appendChild(overlay)}},{key:"initialize",value:function(){var _ref2=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(server){return _regenerator2.default.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:if(server){_constants2.default.server=server}this.addBackgroundOverlay();this.findExerciseContainers().forEach(this.initializeEditor);case 3:case"end":return _context2.stop()}}},_callee2,this)}));function initialize(_x2){return _ref2.apply(this,arguments)}return initialize}()},{key:"initializePaste",value:function(){var _ref3=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(server){var container,paramParts,pasteKey,paste,zip,exercise,exerciseString,editor;return _regenerator2.default.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:if(server){_constants2.default.server=server}this.addBackgroundOverlay();container=(0,_jquery2.default)("#tmc-paste");paramParts=window.location.search.split("=");if(!(paramParts.length!==2)){_context3.next=7;break}console.error("Unable to parse url parameters.");return _context3.abrupt("return");case 7:pasteKey=paramParts[1];paste=new _paste2.default(pasteKey);_context3.next=11;return paste.fetch();case 11:zip=paste.getZip();exercise=paste.exercise;_context3.next=15;return exercise.fetch();case 15:exercise.setZip(zip);exerciseString=(0,_Exercise2.default)({id:exercise.id});(0,_jquery2.default)(container).append(exerciseString).children();container=(0,_jquery2.default)("#exercise-"+exercise.id).find(".tmc-exercise");editor=new _editor2.default(container,exercise);editor.start();case 21:case"end":return _context3.stop()}}},_callee3,this)}));function initializePaste(_x3){return _ref3.apply(this,arguments)}return initializePaste}()}]);return WebClient}();exports.default=WebClient;window.TMCWebClient=WebClient},function(module,exports,__webpack_require__){module.exports=__webpack_require__(3)},function(module,exports,__webpack_require__){var g=function(){return this}()||Function("return this")();var hadRuntime=g.regeneratorRuntime&&Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime")>=0;var oldRuntime=hadRuntime&&g.regeneratorRuntime;g.regeneratorRuntime=undefined;module.exports=__webpack_require__(4);if(hadRuntime){g.regeneratorRuntime=oldRuntime}else{try{delete g.regeneratorRuntime}catch(e){g.regeneratorRuntime=undefined}}},function(module,exports){!function(global){"use strict";var Op=Object.prototype;var hasOwn=Op.hasOwnProperty;var undefined;var $Symbol=typeof Symbol==="function"?Symbol:{};var iteratorSymbol=$Symbol.iterator||"@@iterator";var asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator";var toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";var inModule=typeof module==="object";var runtime=global.regeneratorRuntime;if(runtime){if(inModule){module.exports=runtime}return}runtime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator;var generator=Object.create(protoGenerator.prototype);var context=new Context(tryLocsList||[]);generator._invoke=makeInvokeMethod(innerFn,self,context);return generator}runtime.wrap=wrap;function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}var GenStateSuspendedStart="suspendedStart";var GenStateSuspendedYield="suspendedYield";var GenStateExecuting="executing";var GenStateCompleted="completed";var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};IteratorPrototype[iteratorSymbol]=function(){return this};var getProto=Object.getPrototypeOf;var NativeIteratorPrototype=getProto&&getProto(getProto(values([])));if(NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)){IteratorPrototype=NativeIteratorPrototype}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunctionPrototype[toStringTagSymbol]=GeneratorFunction.displayName="GeneratorFunction";function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg)}})}runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun==="function"&&genFun.constructor;return ctor?ctor===GeneratorFunction||(ctor.displayName||ctor.name)==="GeneratorFunction":false};runtime.mark=function(genFun){if(Object.setPrototypeOf){Object.setPrototypeOf(genFun,GeneratorFunctionPrototype)}else{genFun.__proto__=GeneratorFunctionPrototype;if(!(toStringTagSymbol in genFun)){genFun[toStringTagSymbol]="GeneratorFunction"}}genFun.prototype=Object.create(Gp);return genFun};runtime.awrap=function(arg){return{__await:arg}};function AsyncIterator(generator){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if(record.type==="throw"){reject(record.arg)}else{var result=record.arg;var value=result.value;if(value&&typeof value==="object"&&hasOwn.call(value,"__await")){return Promise.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)})}return Promise.resolve(value).then(function(unwrapped){result.value=unwrapped;resolve(result)},reject)}}var previousPromise;function enqueue(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}this._invoke=enqueue}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[asyncIteratorSymbol]=function(){return this};runtime.AsyncIterator=AsyncIterator;runtime.async=function(innerFn,outerFn,self,tryLocsList){var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList));return runtime.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})};function makeInvokeMethod(innerFn,self,context){var state=GenStateSuspendedStart;return function invoke(method,arg){if(state===GenStateExecuting){throw new Error("Generator is already running")}if(state===GenStateCompleted){if(method==="throw"){throw arg}return doneResult()}context.method=method;context.arg=arg;while(true){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if(context.method==="next"){context.sent=context._sent=context.arg}else if(context.method==="throw"){if(state===GenStateSuspendedStart){state=GenStateCompleted;throw context.arg}context.dispatchException(context.arg)}else if(context.method==="return"){context.abrupt("return",context.arg)}state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type==="normal"){state=context.done?GenStateCompleted:GenStateSuspendedYield;if(record.arg===ContinueSentinel){continue}return{value:record.arg,done:context.done}}else if(record.type==="throw"){state=GenStateCompleted;context.method="throw";context.arg=record.arg}}}}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(method===undefined){context.delegate=null;if(context.method==="throw"){if(delegate.iterator.return){context.method="return";context.arg=undefined;maybeInvokeDelegate(delegate,context);if(context.method==="throw"){return ContinueSentinel}}context.method="throw";context.arg=new TypeError("The iterator does not provide a 'throw' method")}return ContinueSentinel}var record=tryCatch(method,delegate.iterator,context.arg);if(record.type==="throw"){context.method="throw";context.arg=record.arg;context.delegate=null;return ContinueSentinel}var info=record.arg;if(!info){context.method="throw";context.arg=new TypeError("iterator result is not an object");context.delegate=null;return ContinueSentinel}if(info.done){context[delegate.resultName]=info.value;context.next=delegate.nextLoc;if(context.method!=="return"){context.method="next";context.arg=undefined}}else{return info}context.delegate=null;return ContinueSentinel}defineIteratorMethods(Gp);Gp[toStringTagSymbol]="Generator";Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};function pushTryEntry(locs){var entry={tryLoc:locs[0]};if(1 in locs){entry.catchLoc=locs[1]}if(2 in locs){entry.finallyLoc=locs[2];entry.afterLoc=locs[3]}this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal";delete record.arg;entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}];tryLocsList.forEach(pushTryEntry,this);this.reset(true)}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key)}keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}next.done=true;return next}};function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod){return iteratorMethod.call(iterable)}if(typeof iterable.next==="function"){return iterable}if(!isNaN(iterable.length)){var i=-1,next=function next(){while(++i<iterable.length){if(hasOwn.call(iterable,i)){next.value=iterable[i];next.done=false;return next}}next.value=undefined;next.done=true;return next};return next.next=next}}return{next:doneResult}}runtime.values=values;function doneResult(){return{value:undefined,done:true}}Context.prototype={constructor:Context,reset:function(skipTempReset){this.prev=0;this.next=0;this.sent=this._sent=undefined;this.done=false;this.delegate=null;this.method="next";this.arg=undefined;this.tryEntries.forEach(resetTryEntry);if(!skipTempReset){for(var name in this){if(name.charAt(0)==="t"&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))){this[name]=undefined}}}},stop:function(){this.done=true;var rootEntry=this.tryEntries[0];var rootRecord=rootEntry.completion;if(rootRecord.type==="throw"){throw rootRecord.arg}return this.rval},dispatchException:function(exception){if(this.done){throw exception}var context=this;function handle(loc,caught){record.type="throw";record.arg=exception;context.next=loc;if(caught){context.method="next";context.arg=undefined}return!!caught}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}else if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else if(hasCatch){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}}else if(hasFinally){if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}if(finallyEntry&&(type==="break"||type==="continue")&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc){finallyEntry=null}var record=finallyEntry?finallyEntry.completion:{};record.type=type;record.arg=arg;if(finallyEntry){this.method="next";this.next=finallyEntry.finallyLoc;return ContinueSentinel}return this.complete(record)},complete:function(record,afterLoc){if(record.type==="throw"){throw record.arg}if(record.type==="break"||record.type==="continue"){this.next=record.arg}else if(record.type==="return"){this.rval=this.arg=record.arg;this.method="return";this.next="end"}else if(record.type==="normal"&&afterLoc){this.next=afterLoc}return ContinueSentinel},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method==="next"){this.arg=undefined}return ContinueSentinel}}}(function(){return this}()||Function("return this")())},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _promise=__webpack_require__(6);var _promise2=_interopRequireDefault(_promise);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(fn){return function(){var gen=fn.apply(this,arguments);return new _promise2.default(function(resolve,reject){function step(key,arg){try{var info=gen[key](arg);var value=info.value}catch(error){reject(error);return}if(info.done){resolve(value)}else{return _promise2.default.resolve(value).then(function(value){step("next",value)},function(err){step("throw",err)})}}return step("next")})}}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(7),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(8);__webpack_require__(9);__webpack_require__(53);__webpack_require__(57);__webpack_require__(75);__webpack_require__(76);module.exports=__webpack_require__(17).Promise},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(10)(true);__webpack_require__(13)(String,"String",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(11);var defined=__webpack_require__(12);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(14);var $export=__webpack_require__(15);var redefine=__webpack_require__(31);var hide=__webpack_require__(20);var Iterators=__webpack_require__(32);var $iterCreate=__webpack_require__(33);var setToStringTag=__webpack_require__(49);var getPrototypeOf=__webpack_require__(51);var ITERATOR=__webpack_require__(50)("iterator");var BUGGY=!([].keys&&"next"in[].keys());var FF_ITERATOR="@@iterator";var KEYS="keys";var VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod("entries"):undefined;var $anyNative=NAME=="Array"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!="function")hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports){module.exports=true},function(module,exports,__webpack_require__){var global=__webpack_require__(16);var core=__webpack_require__(17);var ctx=__webpack_require__(18);var hide=__webpack_require__(20);var has=__webpack_require__(30);var PROTOTYPE="prototype";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var IS_WRAP=type&$export.W;var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE];var target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];var key,own,out;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;if(own&&has(exports,key))continue;out=own?target[key]:source[key];exports[key]=IS_GLOBAL&&typeof target[key]!="function"?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};F[PROTOTYPE]=C[PROTOTYPE];return F}(out):IS_PROTO&&typeof out=="function"?ctx(Function.call,out):out;if(IS_PROTO){(exports.virtual||(exports.virtual={}))[key]=out;if(type&$export.R&&expProto&&!expProto[key])hide(expProto,key,out)}}};$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports){var global=module.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},function(module,exports){var core=module.exports={version:"2.6.12"};if(typeof __e=="number")__e=core},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(19);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if(typeof it!="function")throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var dP=__webpack_require__(21);var createDesc=__webpack_require__(29);module.exports=__webpack_require__(25)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(22);var IE8_DOM_DEFINE=__webpack_require__(24);var toPrimitive=__webpack_require__(28);var dP=Object.defineProperty;exports.f=__webpack_require__(25)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)O[P]=Attributes.value;return O}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(23);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(25)&&!__webpack_require__(26)(function(){return Object.defineProperty(__webpack_require__(27)("div"),"a",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(26)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(23);var document=__webpack_require__(16).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(23);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=="function"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(20)},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(34);var descriptor=__webpack_require__(29);var setToStringTag=__webpack_require__(49);var IteratorPrototype={};__webpack_require__(20)(IteratorPrototype,__webpack_require__(50)("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(22);var dPs=__webpack_require__(35);var enumBugKeys=__webpack_require__(47);var IE_PROTO=__webpack_require__(44)("IE_PROTO");var Empty=function(){};var PROTOTYPE="prototype";var createDict=function(){var iframe=__webpack_require__(27)("iframe");var i=enumBugKeys.length;var lt="<";var gt=">";var iframeDocument;iframe.style.display="none";__webpack_require__(48).appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+"script"+gt+"document.F=Object"+lt+"/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(21);var anObject=__webpack_require__(22);var getKeys=__webpack_require__(36);module.exports=__webpack_require__(25)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(37);var enumBugKeys=__webpack_require__(47);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var has=__webpack_require__(30);var toIObject=__webpack_require__(38);var arrayIndexOf=__webpack_require__(41)(false);var IE_PROTO=__webpack_require__(44)("IE_PROTO");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(39);var defined=__webpack_require__(12);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var cof=__webpack_require__(40);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(38);var toLength=__webpack_require__(42);var toAbsoluteIndex=__webpack_require__(43);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(11);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(11);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(45)("keys");var uid=__webpack_require__(46);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var core=__webpack_require__(17);var global=__webpack_require__(16);var SHARED="__core-js_shared__";var store=global[SHARED]||(global[SHARED]={});(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{})})("versions",[]).push({version:core.version,mode:__webpack_require__(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){var document=__webpack_require__(16).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var def=__webpack_require__(21).f;var has=__webpack_require__(30);var TAG=__webpack_require__(50)("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){var store=__webpack_require__(45)("wks");var uid=__webpack_require__(46);var Symbol=__webpack_require__(16).Symbol;var USE_SYMBOL=typeof Symbol=="function";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports,__webpack_require__){var has=__webpack_require__(30);var toObject=__webpack_require__(52);var IE_PROTO=__webpack_require__(44)("IE_PROTO");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var defined=__webpack_require__(12);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){__webpack_require__(54);var global=__webpack_require__(16);var hide=__webpack_require__(20);var Iterators=__webpack_require__(32);var TO_STRING_TAG=__webpack_require__(50)("toStringTag");var DOMIterables=("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(",");for(var i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i];var Collection=global[NAME];var proto=Collection&&Collection.prototype;if(proto&&!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=Iterators.Array}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(55);var step=__webpack_require__(56);var Iterators=__webpack_require__(32);var toIObject=__webpack_require__(38);module.exports=__webpack_require__(13)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind=="keys")return step(0,index);if(kind=="values")return step(0,O[index]);return step(0,[index,O[index]])},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},function(module,exports){module.exports=function(){}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(14);var global=__webpack_require__(16);var ctx=__webpack_require__(18);var classof=__webpack_require__(58);var $export=__webpack_require__(15);var isObject=__webpack_require__(23);var aFunction=__webpack_require__(19);var anInstance=__webpack_require__(59);var forOf=__webpack_require__(60);var speciesConstructor=__webpack_require__(64);var task=__webpack_require__(65).set;var microtask=__webpack_require__(67)();var newPromiseCapabilityModule=__webpack_require__(68);var perform=__webpack_require__(69);var userAgent=__webpack_require__(70);var promiseResolve=__webpack_require__(71);var PROMISE="Promise";var TypeError=global.TypeError;var process=global.process;var versions=process&&process.versions;var v8=versions&&versions.v8||"";var $Promise=global[PROMISE];var isNode=classof(process)=="process";var empty=function(){};var Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper;var newPromiseCapability=newGenericPromiseCapability=newPromiseCapabilityModule.f;var USE_NATIVE=!!function(){try{var promise=$Promise.resolve(1);var FakePromise=(promise.constructor={})[__webpack_require__(50)("species")]=function(exec){exec(empty,empty)};return(isNode||typeof PromiseRejectionEvent=="function")&&promise.then(empty)instanceof FakePromise&&v8.indexOf("6.6")!==0&&userAgent.indexOf("Chrome/66")===-1}catch(e){}}();var isThenable=function(it){var then;return isObject(it)&&typeof(then=it.then)=="function"?then:false};var notify=function(promise,isReject){if(promise._n)return;promise._n=true;var chain=promise._c;microtask(function(){var value=promise._v;var ok=promise._s==1;var i=0;var run=function(reaction){var handler=ok?reaction.ok:reaction.fail;var resolve=reaction.resolve;var reject=reaction.reject;var domain=reaction.domain;var result,then,exited;try{if(handler){if(!ok){if(promise._h==2)onHandleUnhandled(promise);promise._h=1}if(handler===true)result=value;else{if(domain)domain.enter();result=handler(value);if(domain){domain.exit();exited=true}}if(result===reaction.promise){reject(TypeError("Promise-chain cycle"))}else if(then=isThenable(result)){then.call(result,resolve,reject)}else resolve(result)}else reject(value)}catch(e){if(domain&&!exited)domain.exit();reject(e)}};while(chain.length>i)run(chain[i++]);promise._c=[];promise._n=false;if(isReject&&!promise._h)onUnhandled(promise)})};var onUnhandled=function(promise){task.call(global,function(){var value=promise._v;var unhandled=isUnhandled(promise);var result,handler,console;if(unhandled){result=perform(function(){if(isNode){process.emit("unhandledRejection",value,promise)}else if(handler=global.onunhandledrejection){handler({promise:promise,reason:value})}else if((console=global.console)&&console.error){console.error("Unhandled promise rejection",value)}});promise._h=isNode||isUnhandled(promise)?2:1}promise._a=undefined;if(unhandled&&result.e)throw result.v})};var isUnhandled=function(promise){return promise._h!==1&&(promise._a||promise._c).length===0};var onHandleUnhandled=function(promise){task.call(global,function(){var handler;if(isNode){process.emit("rejectionHandled",promise)}else if(handler=global.onrejectionhandled){handler({promise:promise,reason:promise._v})}})};var $reject=function(value){var promise=this;if(promise._d)return;promise._d=true;promise=promise._w||promise;promise._v=value;promise._s=2;if(!promise._a)promise._a=promise._c.slice();notify(promise,true)};var $resolve=function(value){var promise=this;var then;if(promise._d)return;promise._d=true;promise=promise._w||promise;try{if(promise===value)throw TypeError("Promise can't be resolved itself");if(then=isThenable(value)){microtask(function(){var wrapper={_w:promise,_d:false};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}})}else{promise._v=value;promise._s=1;notify(promise,false)}}catch(e){$reject.call({_w:promise,_d:false},e)}};if(!USE_NATIVE){$Promise=function Promise(executor){anInstance(this,$Promise,PROMISE,"_h");aFunction(executor);Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}};Internal=function Promise(executor){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};Internal.prototype=__webpack_require__(72)($Promise.prototype,{then:function then(onFulfilled,onRejected){var reaction=newPromiseCapability(speciesConstructor(this,$Promise));reaction.ok=typeof onFulfilled=="function"?onFulfilled:true;reaction.fail=typeof onRejected=="function"&&onRejected;reaction.domain=isNode?process.domain:undefined;this._c.push(reaction);if(this._a)this._a.push(reaction);if(this._s)notify(this,false);return reaction.promise},catch:function(onRejected){return this.then(undefined,onRejected)}});OwnPromiseCapability=function(){var promise=new Internal;this.promise=promise;this.resolve=ctx($resolve,promise,1);this.reject=ctx($reject,promise,1)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===$Promise||C===Wrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise});__webpack_require__(49)($Promise,PROMISE);__webpack_require__(73)(PROMISE);Wrapper=__webpack_require__(17)[PROMISE];$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function reject(r){var capability=newPromiseCapability(this);var $$reject=capability.reject;$$reject(r);return capability.promise}});$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function resolve(x){return promiseResolve(LIBRARY&&this===Wrapper?$Promise:this,x)}});$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(74)(function(iter){$Promise.all(iter)["catch"](empty)})),PROMISE,{all:function all(iterable){var C=this;var capability=newPromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;var result=perform(function(){var values=[];var index=0;var remaining=1;forOf(iterable,false,function(promise){var $index=index++;var alreadyCalled=false;values.push(undefined);remaining++;C.resolve(promise).then(function(value){if(alreadyCalled)return;alreadyCalled=true;values[$index]=value;--remaining||resolve(values)},reject)});--remaining||resolve(values)});if(result.e)reject(result.v);return capability.promise},race:function race(iterable){var C=this;var capability=newPromiseCapability(C);var reject=capability.reject;var result=perform(function(){forOf(iterable,false,function(promise){C.resolve(promise).then(capability.resolve,reject)})});if(result.e)reject(result.v);return capability.promise}})},function(module,exports,__webpack_require__){var cof=__webpack_require__(40);var TAG=__webpack_require__(50)("toStringTag");var ARG=cof(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=tryGet(O=Object(it),TAG))=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},function(module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+": incorrect invocation!")}return it}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(18);var call=__webpack_require__(61);var isArrayIter=__webpack_require__(62);var anObject=__webpack_require__(22);var toLength=__webpack_require__(42);var getIterFn=__webpack_require__(63);var BREAK={};var RETURN={};var exports=module.exports=function(iterable,entries,fn,that,ITERATOR){var iterFn=ITERATOR?function(){return iterable}:getIterFn(iterable);var f=ctx(fn,that,entries?2:1);var index=0;var length,step,iterator,result;if(typeof iterFn!="function")throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){result=entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);if(result===BREAK||result===RETURN)return result}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){result=call(iterator,f,step.value,entries);if(result===BREAK||result===RETURN)return result}};exports.BREAK=BREAK;exports.RETURN=RETURN},function(module,exports,__webpack_require__){var anObject=__webpack_require__(22);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(32);var ITERATOR=__webpack_require__(50)("iterator");var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){var classof=__webpack_require__(58);var ITERATOR=__webpack_require__(50)("iterator");var Iterators=__webpack_require__(32);module.exports=__webpack_require__(17).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(22);var aFunction=__webpack_require__(19);var SPECIES=__webpack_require__(50)("species");module.exports=function(O,D){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S)}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(18);var invoke=__webpack_require__(66);var html=__webpack_require__(48);var cel=__webpack_require__(27);var global=__webpack_require__(16);var process=global.process;var setTask=global.setImmediate;var clearTask=global.clearImmediate;var MessageChannel=global.MessageChannel;var Dispatch=global.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var defer,channel,port;var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listener=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[];var i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(__webpack_require__(40)(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(Dispatch&&Dispatch.now){defer=function(id){Dispatch.now(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},function(module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},function(module,exports,__webpack_require__){var global=__webpack_require__(16);var macrotask=__webpack_require__(65).set;var Observer=global.MutationObserver||global.WebKitMutationObserver;var process=global.process;var Promise=global.Promise;var isNode=__webpack_require__(40)(process)=="process";module.exports=function(){var head,last,notify;var flush=function(){var parent,fn;if(isNode&&(parent=process.domain))parent.exit();while(head){fn=head.fn;head=head.next;try{fn()}catch(e){if(head)notify();else last=undefined;throw e}}last=undefined;if(parent)parent.enter()};if(isNode){notify=function(){process.nextTick(flush)}}else if(Observer&&!(global.navigator&&global.navigator.standalone)){var toggle=true;var node=document.createTextNode("");new Observer(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve(undefined);notify=function(){promise.then(flush)}}else{notify=function(){macrotask.call(global,flush)}}return function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify()}last=task}}},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(19);function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)}module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports){module.exports=function(exec){try{return{e:false,v:exec()}}catch(e){return{e:true,v:e}}}},function(module,exports,__webpack_require__){var global=__webpack_require__(16);var navigator=global.navigator;module.exports=navigator&&navigator.userAgent||""},function(module,exports,__webpack_require__){var anObject=__webpack_require__(22);var isObject=__webpack_require__(23);var newPromiseCapability=__webpack_require__(68);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise}},function(module,exports,__webpack_require__){var hide=__webpack_require__(20);module.exports=function(target,src,safe){for(var key in src){if(safe&&target[key])target[key]=src[key];else hide(target,key,src[key])}return target}},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(16);var core=__webpack_require__(17);var dP=__webpack_require__(21);var DESCRIPTORS=__webpack_require__(25);var SPECIES=__webpack_require__(50)("species");module.exports=function(KEY){var C=typeof core[KEY]=="function"?core[KEY]:global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this}})}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(50)("iterator");var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true}};arr[ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(15);var core=__webpack_require__(17);var global=__webpack_require__(16);var speciesConstructor=__webpack_require__(64);var promiseResolve=__webpack_require__(71);$export($export.P+$export.R,"Promise",{finally:function(onFinally){var C=speciesConstructor(this,core.Promise||global.Promise);var isFunction=typeof onFinally=="function";return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e})}:onFinally)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(15);var newPromiseCapability=__webpack_require__(68);var perform=__webpack_require__(69);$export($export.S,"Promise",{try:function(callbackfn){var promiseCapability=newPromiseCapability.f(this);var result=perform(callbackfn);(result.e?promiseCapability.reject:promiseCapability.resolve)(result.v);return promiseCapability.promise}})},function(module,exports){"use strict";exports.__esModule=true;exports.default=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _defineProperty=__webpack_require__(79);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}()},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(80),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(81);var $Object=__webpack_require__(17).Object;module.exports=function defineProperty(it,key,desc){return $Object.defineProperty(it,key,desc)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(15);$export($export.S+$export.F*!__webpack_require__(25),"Object",{defineProperty:__webpack_require__(21).f})},function(module,exports,__webpack_require__){(function(global){"use strict";__webpack_require__(83);__webpack_require__(409);__webpack_require__(410);if(global._babelPolyfill){throw new Error("only one instance of babel-polyfill is allowed")}global._babelPolyfill=true;var DEFINE_PROPERTY="defineProperty";function define(O,key,value){O[key]||Object[DEFINE_PROPERTY](O,key,{writable:true,configurable:true,value:value})}define(String.prototype,"padLeft","".padStart);define(String.prototype,"padRight","".padEnd);"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(key){[][key]&&define(Array,key,Function.call.bind([][key]))})}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){__webpack_require__(84);__webpack_require__(134);__webpack_require__(135);__webpack_require__(136);__webpack_require__(137);__webpack_require__(139);__webpack_require__(141);__webpack_require__(142);__webpack_require__(143);__webpack_require__(144);__webpack_require__(145);__webpack_require__(146);__webpack_require__(147);__webpack_require__(148);__webpack_require__(149);__webpack_require__(151);__webpack_require__(153);__webpack_require__(155);__webpack_require__(157);__webpack_require__(160);__webpack_require__(161);__webpack_require__(162);__webpack_require__(166);__webpack_require__(168);__webpack_require__(170);__webpack_require__(173);__webpack_require__(174);__webpack_require__(175);__webpack_require__(176);__webpack_require__(178);__webpack_require__(179);__webpack_require__(180);__webpack_require__(181);__webpack_require__(182);__webpack_require__(183);__webpack_require__(184);__webpack_require__(186);__webpack_require__(187);__webpack_require__(188);__webpack_require__(190);__webpack_require__(191);__webpack_require__(192);__webpack_require__(194);__webpack_require__(196);__webpack_require__(197);__webpack_require__(198);__webpack_require__(199);__webpack_require__(200);__webpack_require__(201);__webpack_require__(202);__webpack_require__(203);__webpack_require__(204);__webpack_require__(205);__webpack_require__(206);__webpack_require__(207);__webpack_require__(208);__webpack_require__(213);__webpack_require__(214);__webpack_require__(218);__webpack_require__(219);__webpack_require__(220);__webpack_require__(221);__webpack_require__(223);__webpack_require__(224);__webpack_require__(225);__webpack_require__(226);__webpack_require__(227);__webpack_require__(228);__webpack_require__(229);__webpack_require__(230);__webpack_require__(231);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(236);__webpack_require__(237);__webpack_require__(239);__webpack_require__(240);__webpack_require__(242);__webpack_require__(243);__webpack_require__(249);__webpack_require__(250);__webpack_require__(252);__webpack_require__(253);__webpack_require__(254);__webpack_require__(258);__webpack_require__(259);__webpack_require__(260);__webpack_require__(261);__webpack_require__(262);__webpack_require__(264);__webpack_require__(265);__webpack_require__(266);__webpack_require__(267);__webpack_require__(270);__webpack_require__(272);__webpack_require__(273);__webpack_require__(274);__webpack_require__(276);__webpack_require__(278);__webpack_require__(280);__webpack_require__(282);__webpack_require__(283);__webpack_require__(284);__webpack_require__(288);__webpack_require__(289);__webpack_require__(290);__webpack_require__(292);__webpack_require__(302);__webpack_require__(306);__webpack_require__(307);__webpack_require__(309);__webpack_require__(310);__webpack_require__(314);__webpack_require__(315);__webpack_require__(317);__webpack_require__(318);__webpack_require__(319);__webpack_require__(320);__webpack_require__(321);__webpack_require__(322);__webpack_require__(323);__webpack_require__(324);__webpack_require__(325);__webpack_require__(326);__webpack_require__(327);__webpack_require__(328);__webpack_require__(329);__webpack_require__(330);__webpack_require__(331);__webpack_require__(332);__webpack_require__(333);__webpack_require__(334);__webpack_require__(335);__webpack_require__(337);__webpack_require__(338);__webpack_require__(339);__webpack_require__(340);__webpack_require__(341);__webpack_require__(343);__webpack_require__(344);__webpack_require__(345);__webpack_require__(347);__webpack_require__(348);__webpack_require__(349);__webpack_require__(350);__webpack_require__(351);__webpack_require__(352);__webpack_require__(353);__webpack_require__(354);__webpack_require__(356);__webpack_require__(357);__webpack_require__(359);__webpack_require__(360);__webpack_require__(361);__webpack_require__(362);__webpack_require__(365);__webpack_require__(366);__webpack_require__(368);__webpack_require__(369);__webpack_require__(370);__webpack_require__(371);__webpack_require__(373);__webpack_require__(374);__webpack_require__(375);__webpack_require__(376);__webpack_require__(377);__webpack_require__(378);__webpack_require__(379);__webpack_require__(380);__webpack_require__(381);__webpack_require__(382);__webpack_require__(384);__webpack_require__(385);__webpack_require__(386);__webpack_require__(387);__webpack_require__(388);__webpack_require__(389);__webpack_require__(390);__webpack_require__(391);__webpack_require__(392);__webpack_require__(393);__webpack_require__(394);__webpack_require__(396);__webpack_require__(397);__webpack_require__(398);__webpack_require__(399);__webpack_require__(400);__webpack_require__(401);__webpack_require__(402);__webpack_require__(403);__webpack_require__(404);__webpack_require__(405);__webpack_require__(406);__webpack_require__(407);__webpack_require__(408);module.exports=__webpack_require__(90)},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var has=__webpack_require__(86);var DESCRIPTORS=__webpack_require__(87);var $export=__webpack_require__(89);var redefine=__webpack_require__(99);var META=__webpack_require__(106).KEY;var $fails=__webpack_require__(88);var shared=__webpack_require__(102);var setToStringTag=__webpack_require__(107);var uid=__webpack_require__(100);var wks=__webpack_require__(108);var wksExt=__webpack_require__(109);var wksDefine=__webpack_require__(110);var enumKeys=__webpack_require__(111);var isArray=__webpack_require__(126);var anObject=__webpack_require__(93);var isObject=__webpack_require__(94);var toObject=__webpack_require__(127);var toIObject=__webpack_require__(114);var toPrimitive=__webpack_require__(97);var createDesc=__webpack_require__(98);var _create=__webpack_require__(128);var gOPNExt=__webpack_require__(131);var $GOPD=__webpack_require__(133);var $GOPS=__webpack_require__(124);var $DP=__webpack_require__(92);var $keys=__webpack_require__(112);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE="prototype";var HIDDEN=wks("_hidden");var TO_PRIMITIVE=wks("toPrimitive");var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared("symbol-registry");var AllSymbols=shared("symbols");var OPSymbols=shared("op-symbols");var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol=="function"&&!!$GOPS.f;var QObject=global.QObject;var setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},"a",{get:function(){return dP(this,"a",{value:7}).a}})).a!=7})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc)}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator=="symbol"?function(it){return typeof it=="symbol"}:function(it){return it instanceof $Symbol};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)})}return setSymbolDesc(it,key,D)}return dP(it,key,D)};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P)};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key)}return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key])}return result};if(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value))};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag)};redefine($Symbol[PROTOTYPE],"toString",function toString(){return this._k});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__webpack_require__(132).f=gOPNExt.f=$getOwnPropertyNames;__webpack_require__(125).f=$propertyIsEnumerable;$GOPS.f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__webpack_require__(103)){redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable,true)}wksExt.f=function(name){return wrap(wks(name))}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,"Symbol",{for:function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol!");for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key},useSetter:function(){setter=true},useSimple:function(){setter=false}});$export($export.S+$export.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});var FAILS_ON_PRIMITIVES=$fails(function(){$GOPS.f(1)});$export($export.S+$export.F*FAILS_ON_PRIMITIVES,"Object",{getOwnPropertySymbols:function getOwnPropertySymbols(it){return $GOPS.f(toObject(it))}});$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();return _stringify([S])!="[null]"||_stringify({a:S})!="{}"||_stringify(Object(S))!="{}"})),"JSON",{stringify:function stringify(it){var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);$replacer=replacer=args[1];if(!isObject(replacer)&&it===undefined||isSymbol(it))return;if(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=="function")value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return _stringify.apply($JSON,args)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||__webpack_require__(91)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,"Symbol");setToStringTag(Math,"Math",true);setToStringTag(global.JSON,"JSON",true)},function(module,exports){var global=module.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(88)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var core=__webpack_require__(90);var hide=__webpack_require__(91);var redefine=__webpack_require__(99);var ctx=__webpack_require__(104);var PROTOTYPE="prototype";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{})[PROTOTYPE];var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE]||(exports[PROTOTYPE]={});var key,own,out,exp;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;out=(own?target:source)[key];exp=IS_BIND&&own?ctx(out,global):IS_PROTO&&typeof out=="function"?ctx(Function.call,out):out;if(target)redefine(target,key,out,type&$export.U);if(exports[key]!=out)hide(exports,key,exp);if(IS_PROTO&&expProto[key]!=out)expProto[key]=out}};global.core=core;$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports){var core=module.exports={version:"2.6.12"};if(typeof __e=="number")__e=core},function(module,exports,__webpack_require__){var dP=__webpack_require__(92);var createDesc=__webpack_require__(98);module.exports=__webpack_require__(87)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(93);var IE8_DOM_DEFINE=__webpack_require__(95);var toPrimitive=__webpack_require__(97);var dP=Object.defineProperty;exports.f=__webpack_require__(87)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)O[P]=Attributes.value;return O}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(87)&&!__webpack_require__(88)(function(){return Object.defineProperty(__webpack_require__(96)("div"),"a",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var document=__webpack_require__(85).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=="function"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var hide=__webpack_require__(91);var has=__webpack_require__(86);var SRC=__webpack_require__(100)("src");var $toString=__webpack_require__(101);var TO_STRING="toString";var TPL=(""+$toString).split(TO_STRING);__webpack_require__(90).inspectSource=function(it){return $toString.call(it)};(module.exports=function(O,key,val,safe){var isFunction=typeof val=="function";if(isFunction)has(val,"name")||hide(val,"name",key);if(O[key]===val)return;if(isFunction)has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)));if(O===global){O[key]=val}else if(!safe){delete O[key];hide(O,key,val)}else if(O[key]){O[key]=val}else{hide(O,key,val)}})(Function.prototype,TO_STRING,function toString(){return typeof this=="function"&&this[SRC]||$toString.call(this)})},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(102)("native-function-to-string",Function.toString)},function(module,exports,__webpack_require__){var core=__webpack_require__(90);var global=__webpack_require__(85);var SHARED="__core-js_shared__";var store=global[SHARED]||(global[SHARED]={});(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{})})("versions",[]).push({version:core.version,mode:__webpack_require__(103)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(module,exports){module.exports=false},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(105);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if(typeof it!="function")throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var META=__webpack_require__(100)("meta");var isObject=__webpack_require__(94);var has=__webpack_require__(86);var setDesc=__webpack_require__(92).f;var id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!__webpack_require__(88)(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:"O"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it=="symbol"?it:(typeof it=="string"?"S":"P")+it;if(!has(it,META)){if(!isExtensible(it))return"F";if(!create)return"E";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},function(module,exports,__webpack_require__){var def=__webpack_require__(92).f;var has=__webpack_require__(86);var TAG=__webpack_require__(108)("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){var store=__webpack_require__(102)("wks");var uid=__webpack_require__(100);var Symbol=__webpack_require__(85).Symbol;var USE_SYMBOL=typeof Symbol=="function";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports,__webpack_require__){exports.f=__webpack_require__(108)},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var core=__webpack_require__(90);var LIBRARY=__webpack_require__(103);var wksExt=__webpack_require__(109);var defineProperty=__webpack_require__(92).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!="_"&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)})}},function(module,exports,__webpack_require__){var getKeys=__webpack_require__(112);var gOPS=__webpack_require__(124);var pIE=__webpack_require__(125);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key)}return result}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(113);var enumBugKeys=__webpack_require__(123);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var has=__webpack_require__(86);var toIObject=__webpack_require__(114);var arrayIndexOf=__webpack_require__(118)(false);var IE_PROTO=__webpack_require__(122)("IE_PROTO");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(115);var defined=__webpack_require__(117);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var cof=__webpack_require__(116);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(114);var toLength=__webpack_require__(119);var toAbsoluteIndex=__webpack_require__(121);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(120);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(120);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(102)("keys");var uid=__webpack_require__(100);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){var cof=__webpack_require__(116);module.exports=Array.isArray||function isArray(arg){return cof(arg)=="Array"}},function(module,exports,__webpack_require__){var defined=__webpack_require__(117);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(93);var dPs=__webpack_require__(129);var enumBugKeys=__webpack_require__(123);var IE_PROTO=__webpack_require__(122)("IE_PROTO");var Empty=function(){};var PROTOTYPE="prototype";var createDict=function(){var iframe=__webpack_require__(96)("iframe");var i=enumBugKeys.length;var lt="<";var gt=">";var iframeDocument;iframe.style.display="none";__webpack_require__(130).appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+"script"+gt+"document.F=Object"+lt+"/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(92);var anObject=__webpack_require__(93);var getKeys=__webpack_require__(112);module.exports=__webpack_require__(87)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var document=__webpack_require__(85).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(114);var gOPN=__webpack_require__(132).f;var toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):gOPN(toIObject(it))}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(113);var hiddenKeys=__webpack_require__(123).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},function(module,exports,__webpack_require__){var pIE=__webpack_require__(125);var createDesc=__webpack_require__(98);var toIObject=__webpack_require__(114);var toPrimitive=__webpack_require__(97);var has=__webpack_require__(86);var IE8_DOM_DEFINE=__webpack_require__(95);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__webpack_require__(87)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P])}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Object",{create:__webpack_require__(128)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S+$export.F*!__webpack_require__(87),"Object",{defineProperty:__webpack_require__(92).f})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S+$export.F*!__webpack_require__(87),"Object",{defineProperties:__webpack_require__(129)})},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(114);var $getOwnPropertyDescriptor=__webpack_require__(133).f;__webpack_require__(138)("getOwnPropertyDescriptor",function(){return function getOwnPropertyDescriptor(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var core=__webpack_require__(90);var fails=__webpack_require__(88);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){var toObject=__webpack_require__(127);var $getPrototypeOf=__webpack_require__(140);__webpack_require__(138)("getPrototypeOf",function(){return function getPrototypeOf(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){var has=__webpack_require__(86);var toObject=__webpack_require__(127);var IE_PROTO=__webpack_require__(122)("IE_PROTO");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var toObject=__webpack_require__(127);var $keys=__webpack_require__(112);__webpack_require__(138)("keys",function(){return function keys(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){__webpack_require__(138)("getOwnPropertyNames",function(){return __webpack_require__(131).f})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var meta=__webpack_require__(106).onFreeze;__webpack_require__(138)("freeze",function($freeze){return function freeze(it){return $freeze&&isObject(it)?$freeze(meta(it)):it}})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var meta=__webpack_require__(106).onFreeze;__webpack_require__(138)("seal",function($seal){return function seal(it){return $seal&&isObject(it)?$seal(meta(it)):it}})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var meta=__webpack_require__(106).onFreeze;__webpack_require__(138)("preventExtensions",function($preventExtensions){return function preventExtensions(it){return $preventExtensions&&isObject(it)?$preventExtensions(meta(it)):it}})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);__webpack_require__(138)("isFrozen",function($isFrozen){return function isFrozen(it){return isObject(it)?$isFrozen?$isFrozen(it):false:true}})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);__webpack_require__(138)("isSealed",function($isSealed){return function isSealed(it){return isObject(it)?$isSealed?$isSealed(it):false:true}})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);__webpack_require__(138)("isExtensible",function($isExtensible){return function isExtensible(it){return isObject(it)?$isExtensible?$isExtensible(it):true:false}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S+$export.F,"Object",{assign:__webpack_require__(150)})},function(module,exports,__webpack_require__){"use strict";var DESCRIPTORS=__webpack_require__(87);var getKeys=__webpack_require__(112);var gOPS=__webpack_require__(124);var pIE=__webpack_require__(125);var toObject=__webpack_require__(127);var IObject=__webpack_require__(115);var $assign=Object.assign;module.exports=!$assign||__webpack_require__(88)(function(){var A={};var B={};var S=Symbol();var K="abcdefghijklmnopqrst";A[S]=7;K.split("").forEach(function(k){B[k]=k});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join("")!=K})?function assign(target,source){var T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j){key=keys[j++];if(!DESCRIPTORS||isEnum.call(S,key))T[key]=S[key]}}return T}:$assign},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Object",{is:__webpack_require__(152)})},function(module,exports){module.exports=Object.is||function is(x,y){return x===y?x!==0||1/x===1/y:x!=x&&y!=y}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Object",{setPrototypeOf:__webpack_require__(154).set})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var anObject=__webpack_require__(93);var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=__webpack_require__(104)(Function.call,__webpack_require__(133).f(Object.prototype,"__proto__").set,2);set(test,[]);buggy=!(test instanceof Array)}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}({},false):undefined),check:check}},function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(156);var test={};test[__webpack_require__(108)("toStringTag")]="z";if(test+""!="[object z]"){__webpack_require__(99)(Object.prototype,"toString",function toString(){return"[object "+classof(this)+"]"},true)}},function(module,exports,__webpack_require__){var cof=__webpack_require__(116);var TAG=__webpack_require__(108)("toStringTag");var ARG=cof(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=tryGet(O=Object(it),TAG))=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P,"Function",{bind:__webpack_require__(158)})},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(105);var isObject=__webpack_require__(94);var invoke=__webpack_require__(159);var arraySlice=[].slice;var factories={};var construct=function(F,len,args){if(!(len in factories)){for(var n=[],i=0;i<len;i++)n[i]="a["+i+"]";factories[len]=Function("F,a","return new F("+n.join(",")+")")}return factories[len](F,args)};module.exports=Function.bind||function bind(that){var fn=aFunction(this);var partArgs=arraySlice.call(arguments,1);var bound=function(){var args=partArgs.concat(arraySlice.call(arguments));return this instanceof bound?construct(fn,args.length,args):invoke(fn,args,that)};if(isObject(fn.prototype))bound.prototype=fn.prototype;return bound}},function(module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(92).f;var FProto=Function.prototype;var nameRE=/^\s*function ([^ (]*)/;var NAME="name";NAME in FProto||__webpack_require__(87)&&dP(FProto,NAME,{configurable:true,get:function(){try{return(""+this).match(nameRE)[1]}catch(e){return""}}})},function(module,exports,__webpack_require__){"use strict";var isObject=__webpack_require__(94);var getPrototypeOf=__webpack_require__(140);var HAS_INSTANCE=__webpack_require__(108)("hasInstance");var FunctionProto=Function.prototype;if(!(HAS_INSTANCE in FunctionProto))__webpack_require__(92).f(FunctionProto,HAS_INSTANCE,{value:function(O){if(typeof this!="function"||!isObject(O))return false;if(!isObject(this.prototype))return O instanceof this;while(O=getPrototypeOf(O))if(this.prototype===O)return true;return false}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $parseInt=__webpack_require__(163);$export($export.G+$export.F*(parseInt!=$parseInt),{parseInt:$parseInt})},function(module,exports,__webpack_require__){var $parseInt=__webpack_require__(85).parseInt;var $trim=__webpack_require__(164).trim;var ws=__webpack_require__(165);var hex=/^[-+]?0[xX]/;module.exports=$parseInt(ws+"08")!==8||$parseInt(ws+"0x16")!==22?function parseInt(str,radix){var string=$trim(String(str),3);return $parseInt(string,radix>>>0||(hex.test(string)?16:10))}:$parseInt},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var defined=__webpack_require__(117);var fails=__webpack_require__(88);var spaces=__webpack_require__(165);var space="["+spaces+"]";var non="
";var ltrim=RegExp("^"+space+space+"*");var rtrim=RegExp(space+space+"*$");var exporter=function(KEY,exec,ALIAS){var exp={};var FORCE=fails(function(){return!!spaces[KEY]()||non[KEY]()!=non});var fn=exp[KEY]=FORCE?exec(trim):spaces[KEY];if(ALIAS)exp[ALIAS]=fn;$export($export.P+$export.F*FORCE,"String",exp)};var trim=exporter.trim=function(string,TYPE){string=String(defined(string));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string};module.exports=exporter},function(module,exports){module.exports="\t\n\v\f\r "+" \u2028\u2029\ufeff"},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $parseFloat=__webpack_require__(167);$export($export.G+$export.F*(parseFloat!=$parseFloat),{parseFloat:$parseFloat})},function(module,exports,__webpack_require__){var $parseFloat=__webpack_require__(85).parseFloat;var $trim=__webpack_require__(164).trim;module.exports=1/$parseFloat(__webpack_require__(165)+"-0")!==-Infinity?function parseFloat(str){var string=$trim(String(str),3);var result=$parseFloat(string);return result===0&&string.charAt(0)=="-"?-0:result}:$parseFloat},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var has=__webpack_require__(86);var cof=__webpack_require__(116);var inheritIfRequired=__webpack_require__(169);var toPrimitive=__webpack_require__(97);var fails=__webpack_require__(88);var gOPN=__webpack_require__(132).f;var gOPD=__webpack_require__(133).f;var dP=__webpack_require__(92).f;var $trim=__webpack_require__(164).trim;var NUMBER="Number";var $Number=global[NUMBER];var Base=$Number;var proto=$Number.prototype;var BROKEN_COF=cof(__webpack_require__(128)(proto))==NUMBER;var TRIM="trim"in String.prototype;var toNumber=function(argument){var it=toPrimitive(argument,false);if(typeof it=="string"&&it.length>2){it=TRIM?it.trim():$trim(it,3);var first=it.charCodeAt(0);var third,radix,maxCode;if(first===43||first===45){third=it.charCodeAt(2);if(third===88||third===120)return NaN}else if(first===48){switch(it.charCodeAt(1)){case 66:case 98:radix=2;maxCode=49;break;case 79:case 111:radix=8;maxCode=55;break;default:return+it}for(var digits=it.slice(2),i=0,l=digits.length,code;i<l;i++){code=digits.charCodeAt(i);if(code<48||code>maxCode)return NaN}return parseInt(digits,radix)}}return+it};if(!$Number(" 0o1")||!$Number("0b1")||$Number("+0x1")){$Number=function Number(value){var it=arguments.length<1?0:value;var that=this;return that instanceof $Number&&(BROKEN_COF?fails(function(){proto.valueOf.call(that)}):cof(that)!=NUMBER)?inheritIfRequired(new Base(toNumber(it)),that,$Number):toNumber(it)};for(var keys=__webpack_require__(87)?gOPN(Base):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),j=0,key;keys.length>j;j++){if(has(Base,key=keys[j])&&!has($Number,key)){dP($Number,key,gOPD(Base,key))}}$Number.prototype=proto;proto.constructor=$Number;__webpack_require__(99)(global,NUMBER,$Number)}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var setPrototypeOf=__webpack_require__(154).set;module.exports=function(that,target,C){var S=target.constructor;var P;if(S!==C&&typeof S=="function"&&(P=S.prototype)!==C.prototype&&isObject(P)&&setPrototypeOf){setPrototypeOf(that,P)}return that}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toInteger=__webpack_require__(120);var aNumberValue=__webpack_require__(171);var repeat=__webpack_require__(172);var $toFixed=1..toFixed;var floor=Math.floor;var data=[0,0,0,0,0,0];var ERROR="Number.toFixed: incorrect invocation!";var ZERO="0";var multiply=function(n,c){var i=-1;var c2=c;while(++i<6){c2+=n*data[i];data[i]=c2%1e7;c2=floor(c2/1e7)}};var divide=function(n){var i=6;var c=0;while(--i>=0){c+=data[i];data[i]=floor(c/n);c=c%n*1e7}};var numToString=function(){var i=6;var s="";while(--i>=0){if(s!==""||i===0||data[i]!==0){var t=String(data[i]);s=s===""?t:s+repeat.call(ZERO,7-t.length)+t}}return s};var pow=function(x,n,acc){return n===0?acc:n%2===1?pow(x,n-1,acc*x):pow(x*x,n/2,acc)};var log=function(x){var n=0;var x2=x;while(x2>=4096){n+=12;x2/=4096}while(x2>=2){n+=1;x2/=2}return n};$export($export.P+$export.F*(!!$toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!__webpack_require__(88)(function(){$toFixed.call({})})),"Number",{toFixed:function toFixed(fractionDigits){var x=aNumberValue(this,ERROR);var f=toInteger(fractionDigits);var s="";var m=ZERO;var e,z,j,k;if(f<0||f>20)throw RangeError(ERROR);if(x!=x)return"NaN";if(x<=-1e21||x>=1e21)return String(x);if(x<0){s="-";x=-x}if(x>1e-21){e=log(x*pow(2,69,1))-69;z=e<0?x*pow(2,-e,1):x/pow(2,e,1);z*=4503599627370496;e=52-e;if(e>0){multiply(0,z);j=f;while(j>=7){multiply(1e7,0);j-=7}multiply(pow(10,j,1),0);j=e-1;while(j>=23){divide(1<<23);j-=23}divide(1<<j);multiply(1,1);divide(2);m=numToString()}else{multiply(0,z);multiply(1<<-e,0);m=numToString()+repeat.call(ZERO,f)}}if(f>0){k=m.length;m=s+(k<=f?"0."+repeat.call(ZERO,f-k)+m:m.slice(0,k-f)+"."+m.slice(k-f))}else{m=s+m}return m}})},function(module,exports,__webpack_require__){var cof=__webpack_require__(116);module.exports=function(it,msg){if(typeof it!="number"&&cof(it)!="Number")throw TypeError(msg);return+it}},function(module,exports,__webpack_require__){"use strict";var toInteger=__webpack_require__(120);var defined=__webpack_require__(117);module.exports=function repeat(count){var str=String(defined(this));var res="";var n=toInteger(count);if(n<0||n==Infinity)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $fails=__webpack_require__(88);var aNumberValue=__webpack_require__(171);var $toPrecision=1..toPrecision;$export($export.P+$export.F*($fails(function(){return $toPrecision.call(1,undefined)!=="1"})||!$fails(function(){$toPrecision.call({})})),"Number",{toPrecision:function toPrecision(precision){var that=aNumberValue(this,"Number#toPrecision: incorrect invocation!");return precision===undefined?$toPrecision.call(that):$toPrecision.call(that,precision)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Number",{EPSILON:Math.pow(2,-52)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var _isFinite=__webpack_require__(85).isFinite;$export($export.S,"Number",{isFinite:function isFinite(it){return typeof it=="number"&&_isFinite(it)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Number",{isInteger:__webpack_require__(177)})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var floor=Math.floor;module.exports=function isInteger(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Number",{isNaN:function isNaN(number){return number!=number}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var isInteger=__webpack_require__(177);var abs=Math.abs;$export($export.S,"Number",{isSafeInteger:function isSafeInteger(number){return isInteger(number)&&abs(number)<=9007199254740991}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $parseFloat=__webpack_require__(167);$export($export.S+$export.F*(Number.parseFloat!=$parseFloat),"Number",{parseFloat:$parseFloat})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $parseInt=__webpack_require__(163);$export($export.S+$export.F*(Number.parseInt!=$parseInt),"Number",{parseInt:$parseInt})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var log1p=__webpack_require__(185);var sqrt=Math.sqrt;var $acosh=Math.acosh;$export($export.S+$export.F*!($acosh&&Math.floor($acosh(Number.MAX_VALUE))==710&&$acosh(Infinity)==Infinity),"Math",{acosh:function acosh(x){return(x=+x)<1?NaN:x>94906265.62425156?Math.log(x)+Math.LN2:log1p(x-1+sqrt(x-1)*sqrt(x+1))}})},function(module,exports){module.exports=Math.log1p||function log1p(x){return(x=+x)>-1e-8&&x<1e-8?x-x*x/2:Math.log(1+x)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $asinh=Math.asinh;function asinh(x){return!isFinite(x=+x)||x==0?x:x<0?-asinh(-x):Math.log(x+Math.sqrt(x*x+1))}$export($export.S+$export.F*!($asinh&&1/$asinh(0)>0),"Math",{asinh:asinh})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $atanh=Math.atanh;$export($export.S+$export.F*!($atanh&&1/$atanh(-0)<0),"Math",{atanh:function atanh(x){return(x=+x)==0?x:Math.log((1+x)/(1-x))/2}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var sign=__webpack_require__(189);$export($export.S,"Math",{cbrt:function cbrt(x){return sign(x=+x)*Math.pow(Math.abs(x),1/3)}})},function(module,exports){module.exports=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{clz32:function clz32(x){return(x>>>=0)?31-Math.floor(Math.log(x+.5)*Math.LOG2E):32}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var exp=Math.exp;$export($export.S,"Math",{cosh:function cosh(x){return(exp(x=+x)+exp(-x))/2}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $expm1=__webpack_require__(193);$export($export.S+$export.F*($expm1!=Math.expm1),"Math",{expm1:$expm1})},function(module,exports){var $expm1=Math.expm1;module.exports=!$expm1||$expm1(10)>22025.465794806718||$expm1(10)<22025.465794806718||$expm1(-2e-17)!=-2e-17?function expm1(x){return(x=+x)==0?x:x>-1e-6&&x<1e-6?x+x*x/2:Math.exp(x)-1}:$expm1},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{fround:__webpack_require__(195)})},function(module,exports,__webpack_require__){var sign=__webpack_require__(189);var pow=Math.pow;var EPSILON=pow(2,-52);var EPSILON32=pow(2,-23);var MAX32=pow(2,127)*(2-EPSILON32);var MIN32=pow(2,-126);var roundTiesToEven=function(n){return n+1/EPSILON-1/EPSILON};module.exports=Math.fround||function fround(x){var $abs=Math.abs(x);var $sign=sign(x);var a,result;if($abs<MIN32)return $sign*roundTiesToEven($abs/MIN32/EPSILON32)*MIN32*EPSILON32;a=(1+EPSILON32/EPSILON)*$abs;result=a-(a-$abs);if(result>MAX32||result!=result)return $sign*Infinity;return $sign*result}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var abs=Math.abs;$export($export.S,"Math",{hypot:function hypot(value1,value2){var sum=0;var i=0;var aLen=arguments.length;var larg=0;var arg,div;while(i<aLen){arg=abs(arguments[i++]);if(larg<arg){div=larg/arg;sum=sum*div*div+1;larg=arg}else if(arg>0){div=arg/larg;sum+=div*div}else sum+=arg}return larg===Infinity?Infinity:larg*Math.sqrt(sum)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $imul=Math.imul;$export($export.S+$export.F*__webpack_require__(88)(function(){return $imul(4294967295,5)!=-5||$imul.length!=2}),"Math",{imul:function imul(x,y){var UINT16=65535;var xn=+x;var yn=+y;var xl=UINT16&xn;var yl=UINT16&yn;return 0|xl*yl+((UINT16&xn>>>16)*yl+xl*(UINT16&yn>>>16)<<16>>>0)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{log10:function log10(x){return Math.log(x)*Math.LOG10E}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{log1p:__webpack_require__(185)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{log2:function log2(x){return Math.log(x)/Math.LN2}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{sign:__webpack_require__(189)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var expm1=__webpack_require__(193);var exp=Math.exp;$export($export.S+$export.F*__webpack_require__(88)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function sinh(x){return Math.abs(x=+x)<1?(expm1(x)-expm1(-x))/2:(exp(x-1)-exp(-x-1))*(Math.E/2)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var expm1=__webpack_require__(193);var exp=Math.exp;$export($export.S,"Math",{tanh:function tanh(x){var a=expm1(x=+x);var b=expm1(-x);return a==Infinity?1:b==Infinity?-1:(a-b)/(exp(x)+exp(-x))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{trunc:function trunc(it){return(it>0?Math.floor:Math.ceil)(it)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var toAbsoluteIndex=__webpack_require__(121);var fromCharCode=String.fromCharCode;var $fromCodePoint=String.fromCodePoint;$export($export.S+$export.F*(!!$fromCodePoint&&$fromCodePoint.length!=1),"String",{fromCodePoint:function fromCodePoint(x){var res=[];var aLen=arguments.length;var i=0;var code;while(aLen>i){code=+arguments[i++];if(toAbsoluteIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");res.push(code<65536?fromCharCode(code):fromCharCode(((code-=65536)>>10)+55296,code%1024+56320))}return res.join("")}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var toIObject=__webpack_require__(114);var toLength=__webpack_require__(119);$export($export.S,"String",{raw:function raw(callSite){var tpl=toIObject(callSite.raw);var len=toLength(tpl.length);var aLen=arguments.length;var res=[];var i=0;while(len>i){res.push(String(tpl[i++]));if(i<aLen)res.push(String(arguments[i]))}return res.join("")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(164)("trim",function($trim){return function trim(){return $trim(this,3)}})},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(209)(true);__webpack_require__(210)(String,"String",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(120);var defined=__webpack_require__(117);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(103);var $export=__webpack_require__(89);var redefine=__webpack_require__(99);var hide=__webpack_require__(91);var Iterators=__webpack_require__(211);var $iterCreate=__webpack_require__(212);var setToStringTag=__webpack_require__(107);var getPrototypeOf=__webpack_require__(140);var ITERATOR=__webpack_require__(108)("iterator");var BUGGY=!([].keys&&"next"in[].keys());var FF_ITERATOR="@@iterator";var KEYS="keys";var VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod("entries"):undefined;var $anyNative=NAME=="Array"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!="function")hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(128);var descriptor=__webpack_require__(98);var setToStringTag=__webpack_require__(107);var IteratorPrototype={};__webpack_require__(91)(IteratorPrototype,__webpack_require__(108)("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $at=__webpack_require__(209)(false);$export($export.P,"String",{codePointAt:function codePointAt(pos){return $at(this,pos)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toLength=__webpack_require__(119);var context=__webpack_require__(215);var ENDS_WITH="endsWith";var $endsWith=""[ENDS_WITH];$export($export.P+$export.F*__webpack_require__(217)(ENDS_WITH),"String",{endsWith:function endsWith(searchString){var that=context(this,searchString,ENDS_WITH);var endPosition=arguments.length>1?arguments[1]:undefined;var len=toLength(that.length);var end=endPosition===undefined?len:Math.min(toLength(endPosition),len);var search=String(searchString);return $endsWith?$endsWith.call(that,search,end):that.slice(end-search.length,end)===search}})},function(module,exports,__webpack_require__){var isRegExp=__webpack_require__(216);var defined=__webpack_require__(117);module.exports=function(that,searchString,NAME){if(isRegExp(searchString))throw TypeError("String#"+NAME+" doesn't accept regex!");return String(defined(that))}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var cof=__webpack_require__(116);var MATCH=__webpack_require__(108)("match");module.exports=function(it){var isRegExp;return isObject(it)&&((isRegExp=it[MATCH])!==undefined?!!isRegExp:cof(it)=="RegExp")}},function(module,exports,__webpack_require__){var MATCH=__webpack_require__(108)("match");module.exports=function(KEY){var re=/./;try{"/./"[KEY](re)}catch(e){try{re[MATCH]=false;return!"/./"[KEY](re)}catch(f){}}return true}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var context=__webpack_require__(215);var INCLUDES="includes";$export($export.P+$export.F*__webpack_require__(217)(INCLUDES),"String",{includes:function includes(searchString){return!!~context(this,searchString,INCLUDES).indexOf(searchString,arguments.length>1?arguments[1]:undefined)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P,"String",{repeat:__webpack_require__(172)})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toLength=__webpack_require__(119);var context=__webpack_require__(215);var STARTS_WITH="startsWith";var $startsWith=""[STARTS_WITH];$export($export.P+$export.F*__webpack_require__(217)(STARTS_WITH),"String",{startsWith:function startsWith(searchString){var that=context(this,searchString,STARTS_WITH);var index=toLength(Math.min(arguments.length>1?arguments[1]:undefined,that.length));var search=String(searchString);return $startsWith?$startsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("anchor",function(createHTML){return function anchor(name){return createHTML(this,"a","name",name)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var fails=__webpack_require__(88);var defined=__webpack_require__(117);var quot=/"/g;var createHTML=function(string,tag,attribute,value){var S=String(defined(string));var p1="<"+tag;if(attribute!=="")p1+=" "+attribute+'="'+String(value).replace(quot,""")+'"';return p1+">"+S+"</"+tag+">"};module.exports=function(NAME,exec){var O={};O[NAME]=exec(createHTML);$export($export.P+$export.F*fails(function(){var test=""[NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}),"String",O)}},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("big",function(createHTML){return function big(){return createHTML(this,"big","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("blink",function(createHTML){return function blink(){return createHTML(this,"blink","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("bold",function(createHTML){return function bold(){return createHTML(this,"b","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("fixed",function(createHTML){return function fixed(){return createHTML(this,"tt","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("fontcolor",function(createHTML){return function fontcolor(color){return createHTML(this,"font","color",color)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("fontsize",function(createHTML){return function fontsize(size){return createHTML(this,"font","size",size)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("italics",function(createHTML){return function italics(){return createHTML(this,"i","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("link",function(createHTML){return function link(url){return createHTML(this,"a","href",url)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("small",function(createHTML){return function small(){return createHTML(this,"small","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("strike",function(createHTML){return function strike(){return createHTML(this,"strike","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("sub",function(createHTML){return function sub(){return createHTML(this,"sub","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(222)("sup",function(createHTML){return function sup(){return createHTML(this,"sup","","")}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Date",{now:function(){return(new Date).getTime()}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var toPrimitive=__webpack_require__(97);$export($export.P+$export.F*__webpack_require__(88)(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}),"Date",{toJSON:function toJSON(key){var O=toObject(this);var pv=toPrimitive(O);return typeof pv=="number"&&!isFinite(pv)?null:O.toISOString()}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var toISOString=__webpack_require__(238);$export($export.P+$export.F*(Date.prototype.toISOString!==toISOString),"Date",{toISOString:toISOString})},function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__(88);var getTime=Date.prototype.getTime;var $toISOString=Date.prototype.toISOString;var lz=function(num){return num>9?num:"0"+num};module.exports=fails(function(){return $toISOString.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!fails(function(){$toISOString.call(new Date(NaN))})?function toISOString(){if(!isFinite(getTime.call(this)))throw RangeError("Invalid time value");var d=this;var y=d.getUTCFullYear();var m=d.getUTCMilliseconds();var s=y<0?"-":y>9999?"+":"";return s+("00000"+Math.abs(y)).slice(s?-6:-4)+"-"+lz(d.getUTCMonth()+1)+"-"+lz(d.getUTCDate())+"T"+lz(d.getUTCHours())+":"+lz(d.getUTCMinutes())+":"+lz(d.getUTCSeconds())+"."+(m>99?m:"0"+lz(m))+"Z"}:$toISOString},function(module,exports,__webpack_require__){var DateProto=Date.prototype;var INVALID_DATE="Invalid Date";var TO_STRING="toString";var $toString=DateProto[TO_STRING];var getTime=DateProto.getTime;if(new Date(NaN)+""!=INVALID_DATE){__webpack_require__(99)(DateProto,TO_STRING,function toString(){var value=getTime.call(this);return value===value?$toString.call(this):INVALID_DATE})}},function(module,exports,__webpack_require__){var TO_PRIMITIVE=__webpack_require__(108)("toPrimitive");var proto=Date.prototype;if(!(TO_PRIMITIVE in proto))__webpack_require__(91)(proto,TO_PRIMITIVE,__webpack_require__(241))},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(93);var toPrimitive=__webpack_require__(97);var NUMBER="number";module.exports=function(hint){if(hint!=="string"&&hint!==NUMBER&&hint!=="default")throw TypeError("Incorrect hint");return toPrimitive(anObject(this),hint!=NUMBER)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Array",{isArray:__webpack_require__(126)})},function(module,exports,__webpack_require__){"use strict";var ctx=__webpack_require__(104);var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var call=__webpack_require__(244);var isArrayIter=__webpack_require__(245);var toLength=__webpack_require__(119);var createProperty=__webpack_require__(246);var getIterFn=__webpack_require__(247);$export($export.S+$export.F*!__webpack_require__(248)(function(iter){Array.from(iter)}),"Array",{from:function from(arrayLike){var O=toObject(arrayLike);var C=typeof this=="function"?this:Array;var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var index=0;var iterFn=getIterFn(O);var length,result,step,iterator;if(mapping)mapfn=ctx(mapfn,aLen>2?arguments[2]:undefined,2);if(iterFn!=undefined&&!(C==Array&&isArrayIter(iterFn))){for(iterator=iterFn.call(O),result=new C;!(step=iterator.next()).done;index++){createProperty(result,index,mapping?call(iterator,mapfn,[step.value,index],true):step.value)}}else{length=toLength(O.length);for(result=new C(length);length>index;index++){createProperty(result,index,mapping?mapfn(O[index],index):O[index])}}result.length=index;return result}})},function(module,exports,__webpack_require__){var anObject=__webpack_require__(93);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(211);var ITERATOR=__webpack_require__(108)("iterator");var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){"use strict";var $defineProperty=__webpack_require__(92);var createDesc=__webpack_require__(98);module.exports=function(object,index,value){if(index in object)$defineProperty.f(object,index,createDesc(0,value));else object[index]=value}},function(module,exports,__webpack_require__){var classof=__webpack_require__(156);var ITERATOR=__webpack_require__(108)("iterator");var Iterators=__webpack_require__(211);module.exports=__webpack_require__(90).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(108)("iterator");var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true}};arr[ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var createProperty=__webpack_require__(246);$export($export.S+$export.F*__webpack_require__(88)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function of(){var index=0;var aLen=arguments.length;var result=new(typeof this=="function"?this:Array)(aLen);while(aLen>index)createProperty(result,index,arguments[index++]);result.length=aLen;return result}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toIObject=__webpack_require__(114);var arrayJoin=[].join;$export($export.P+$export.F*(__webpack_require__(115)!=Object||!__webpack_require__(251)(arrayJoin)),"Array",{join:function join(separator){return arrayJoin.call(toIObject(this),separator===undefined?",":separator)}})},function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__(88);module.exports=function(method,arg){return!!method&&fails(function(){arg?method.call(null,function(){},1):method.call(null)})}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var html=__webpack_require__(130);var cof=__webpack_require__(116);var toAbsoluteIndex=__webpack_require__(121);var toLength=__webpack_require__(119);var arraySlice=[].slice;$export($export.P+$export.F*__webpack_require__(88)(function(){if(html)arraySlice.call(html)}),"Array",{slice:function slice(begin,end){var len=toLength(this.length);var klass=cof(this);end=end===undefined?len:end;if(klass=="Array")return arraySlice.call(this,begin,end);var start=toAbsoluteIndex(begin,len);var upTo=toAbsoluteIndex(end,len);var size=toLength(upTo-start);var cloned=new Array(size);var i=0;for(;i<size;i++)cloned[i]=klass=="String"?this.charAt(start+i):this[start+i];return cloned}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var aFunction=__webpack_require__(105);var toObject=__webpack_require__(127);var fails=__webpack_require__(88);var $sort=[].sort;var test=[1,2,3];$export($export.P+$export.F*(fails(function(){test.sort(undefined)})||!fails(function(){test.sort(null)})||!__webpack_require__(251)($sort)),"Array",{sort:function sort(comparefn){return comparefn===undefined?$sort.call(toObject(this)):$sort.call(toObject(this),aFunction(comparefn))}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $forEach=__webpack_require__(255)(0);var STRICT=__webpack_require__(251)([].forEach,true);$export($export.P+$export.F*!STRICT,"Array",{forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments[1])}})},function(module,exports,__webpack_require__){var ctx=__webpack_require__(104);var IObject=__webpack_require__(115);var toObject=__webpack_require__(127);var toLength=__webpack_require__(119);var asc=__webpack_require__(256);module.exports=function(TYPE,$create){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;var create=$create||asc;return function($this,callbackfn,that){var O=toObject($this);var self=IObject(O);var f=ctx(callbackfn,that,3);var length=toLength(self.length);var index=0;var result=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},function(module,exports,__webpack_require__){var speciesConstructor=__webpack_require__(257);module.exports=function(original,length){return new(speciesConstructor(original))(length)}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);var isArray=__webpack_require__(126);var SPECIES=__webpack_require__(108)("species");module.exports=function(original){var C;if(isArray(original)){C=original.constructor;if(typeof C=="function"&&(C===Array||isArray(C.prototype)))C=undefined;if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined}}return C===undefined?Array:C}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $map=__webpack_require__(255)(1);$export($export.P+$export.F*!__webpack_require__(251)([].map,true),"Array",{map:function map(callbackfn){return $map(this,callbackfn,arguments[1])}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $filter=__webpack_require__(255)(2);$export($export.P+$export.F*!__webpack_require__(251)([].filter,true),"Array",{filter:function filter(callbackfn){return $filter(this,callbackfn,arguments[1])}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $some=__webpack_require__(255)(3);$export($export.P+$export.F*!__webpack_require__(251)([].some,true),"Array",{some:function some(callbackfn){return $some(this,callbackfn,arguments[1])}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $every=__webpack_require__(255)(4);$export($export.P+$export.F*!__webpack_require__(251)([].every,true),"Array",{every:function every(callbackfn){return $every(this,callbackfn,arguments[1])}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $reduce=__webpack_require__(263);$export($export.P+$export.F*!__webpack_require__(251)([].reduce,true),"Array",{reduce:function reduce(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments[1],false)}})},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(105);var toObject=__webpack_require__(127);var IObject=__webpack_require__(115);var toLength=__webpack_require__(119);module.exports=function(that,callbackfn,aLen,memo,isRight){aFunction(callbackfn);var O=toObject(that);var self=IObject(O);var length=toLength(O.length);var index=isRight?length-1:0;var i=isRight?-1:1;if(aLen<2)for(;;){if(index in self){memo=self[index];index+=i;break}index+=i;if(isRight?index<0:length<=index){throw TypeError("Reduce of empty array with no initial value")}}for(;isRight?index>=0:length>index;index+=i)if(index in self){memo=callbackfn(memo,self[index],index,O)}return memo}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $reduce=__webpack_require__(263);$export($export.P+$export.F*!__webpack_require__(251)([].reduceRight,true),"Array",{reduceRight:function reduceRight(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments[1],true)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $indexOf=__webpack_require__(118)(false);var $native=[].indexOf;var NEGATIVE_ZERO=!!$native&&1/[1].indexOf(1,-0)<0;$export($export.P+$export.F*(NEGATIVE_ZERO||!__webpack_require__(251)($native)),"Array",{indexOf:function indexOf(searchElement){return NEGATIVE_ZERO?$native.apply(this,arguments)||0:$indexOf(this,searchElement,arguments[1])}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toIObject=__webpack_require__(114);var toInteger=__webpack_require__(120);var toLength=__webpack_require__(119);var $native=[].lastIndexOf;var NEGATIVE_ZERO=!!$native&&1/[1].lastIndexOf(1,-0)<0;$export($export.P+$export.F*(NEGATIVE_ZERO||!__webpack_require__(251)($native)),"Array",{lastIndexOf:function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return $native.apply(this,arguments)||0;var O=toIObject(this);var length=toLength(O.length);var index=length-1;if(arguments.length>1)index=Math.min(index,toInteger(arguments[1]));if(index<0)index=length+index;for(;index>=0;index--)if(index in O)if(O[index]===searchElement)return index||0;return-1}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P,"Array",{copyWithin:__webpack_require__(268)});__webpack_require__(269)("copyWithin")},function(module,exports,__webpack_require__){"use strict";var toObject=__webpack_require__(127);var toAbsoluteIndex=__webpack_require__(121);var toLength=__webpack_require__(119);module.exports=[].copyWithin||function copyWithin(target,start){var O=toObject(this);var len=toLength(O.length);var to=toAbsoluteIndex(target,len);var from=toAbsoluteIndex(start,len);var end=arguments.length>2?arguments[2]:undefined;var count=Math.min((end===undefined?len:toAbsoluteIndex(end,len))-from,len-to);var inc=1;if(from<to&&to<from+count){inc=-1;from+=count-1;to+=count-1}while(count-- >0){if(from in O)O[to]=O[from];else delete O[to];to+=inc;from+=inc}return O}},function(module,exports,__webpack_require__){var UNSCOPABLES=__webpack_require__(108)("unscopables");var ArrayProto=Array.prototype;if(ArrayProto[UNSCOPABLES]==undefined)__webpack_require__(91)(ArrayProto,UNSCOPABLES,{});module.exports=function(key){ArrayProto[UNSCOPABLES][key]=true}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P,"Array",{fill:__webpack_require__(271)});__webpack_require__(269)("fill")},function(module,exports,__webpack_require__){"use strict";var toObject=__webpack_require__(127);var toAbsoluteIndex=__webpack_require__(121);var toLength=__webpack_require__(119);module.exports=function fill(value){var O=toObject(this);var length=toLength(O.length);var aLen=arguments.length;var index=toAbsoluteIndex(aLen>1?arguments[1]:undefined,length);var end=aLen>2?arguments[2]:undefined;var endPos=end===undefined?length:toAbsoluteIndex(end,length);while(endPos>index)O[index++]=value;return O}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $find=__webpack_require__(255)(5);var KEY="find";var forced=true;if(KEY in[])Array(1)[KEY](function(){forced=false});$export($export.P+$export.F*forced,"Array",{find:function find(callbackfn){return $find(this,callbackfn,arguments.length>1?arguments[1]:undefined)}});__webpack_require__(269)(KEY)},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $find=__webpack_require__(255)(6);var KEY="findIndex";var forced=true;if(KEY in[])Array(1)[KEY](function(){forced=false});$export($export.P+$export.F*forced,"Array",{findIndex:function findIndex(callbackfn){return $find(this,callbackfn,arguments.length>1?arguments[1]:undefined)}});__webpack_require__(269)(KEY)},function(module,exports,__webpack_require__){__webpack_require__(275)("Array")},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var dP=__webpack_require__(92);var DESCRIPTORS=__webpack_require__(87);var SPECIES=__webpack_require__(108)("species");module.exports=function(KEY){var C=global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this}})}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(269);var step=__webpack_require__(277);var Iterators=__webpack_require__(211);var toIObject=__webpack_require__(114);module.exports=__webpack_require__(210)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind=="keys")return step(0,index);if(kind=="values")return step(0,O[index]);return step(0,[index,O[index]])},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var inheritIfRequired=__webpack_require__(169);var dP=__webpack_require__(92).f;var gOPN=__webpack_require__(132).f;var isRegExp=__webpack_require__(216);var $flags=__webpack_require__(279);var $RegExp=global.RegExp;var Base=$RegExp;var proto=$RegExp.prototype;var re1=/a/g;var re2=/a/g;var CORRECT_NEW=new $RegExp(re1)!==re1;if(__webpack_require__(87)&&(!CORRECT_NEW||__webpack_require__(88)(function(){re2[__webpack_require__(108)("match")]=false;return $RegExp(re1)!=re1||$RegExp(re2)==re2||$RegExp(re1,"i")!="/a/i"}))){$RegExp=function RegExp(p,f){var tiRE=this instanceof $RegExp;var piRE=isRegExp(p);var fiU=f===undefined;return!tiRE&&piRE&&p.constructor===$RegExp&&fiU?p:inheritIfRequired(CORRECT_NEW?new Base(piRE&&!fiU?p.source:p,f):Base((piRE=p instanceof $RegExp)?p.source:p,piRE&&fiU?$flags.call(p):f),tiRE?this:proto,$RegExp)};var proxy=function(key){key in $RegExp||dP($RegExp,key,{configurable:true,get:function(){return Base[key]},set:function(it){Base[key]=it}})};for(var keys=gOPN(Base),i=0;keys.length>i;)proxy(keys[i++]);proto.constructor=$RegExp;$RegExp.prototype=proto;__webpack_require__(99)(global,"RegExp",$RegExp)}__webpack_require__(275)("RegExp")},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(93);module.exports=function(){var that=anObject(this);var result="";if(that.global)result+="g";if(that.ignoreCase)result+="i";if(that.multiline)result+="m";if(that.unicode)result+="u";if(that.sticky)result+="y";return result}},function(module,exports,__webpack_require__){"use strict";var regexpExec=__webpack_require__(281);__webpack_require__(89)({target:"RegExp",proto:true,forced:regexpExec!==/./.exec},{exec:regexpExec})},function(module,exports,__webpack_require__){"use strict";var regexpFlags=__webpack_require__(279);var nativeExec=RegExp.prototype.exec;var nativeReplace=String.prototype.replace;var patchedExec=nativeExec;var LAST_INDEX="lastIndex";var UPDATES_LAST_INDEX_WRONG=function(){var re1=/a/,re2=/b*/g;nativeExec.call(re1,"a");nativeExec.call(re2,"a");return re1[LAST_INDEX]!==0||re2[LAST_INDEX]!==0}();var NPCG_INCLUDED=/()??/.exec("")[1]!==undefined;var PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED;if(PATCH){patchedExec=function exec(str){var re=this;var lastIndex,reCopy,match,i;if(NPCG_INCLUDED){reCopy=new RegExp("^"+re.source+"$(?!\\s)",regexpFlags.call(re))}if(UPDATES_LAST_INDEX_WRONG)lastIndex=re[LAST_INDEX];match=nativeExec.call(re,str);if(UPDATES_LAST_INDEX_WRONG&&match){re[LAST_INDEX]=re.global?match.index+match[0].length:lastIndex}if(NPCG_INCLUDED&&match&&match.length>1){nativeReplace.call(match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++){if(arguments[i]===undefined)match[i]=undefined}})}return match}}module.exports=patchedExec},function(module,exports,__webpack_require__){"use strict";__webpack_require__(283);var anObject=__webpack_require__(93);var $flags=__webpack_require__(279);var DESCRIPTORS=__webpack_require__(87);var TO_STRING="toString";var $toString=/./[TO_STRING];var define=function(fn){__webpack_require__(99)(RegExp.prototype,TO_STRING,fn,true)};if(__webpack_require__(88)(function(){return $toString.call({source:"a",flags:"b"})!="/a/b"})){define(function toString(){var R=anObject(this);return"/".concat(R.source,"/","flags"in R?R.flags:!DESCRIPTORS&&R instanceof RegExp?$flags.call(R):undefined)})}else if($toString.name!=TO_STRING){define(function toString(){return $toString.call(this)})}},function(module,exports,__webpack_require__){if(__webpack_require__(87)&&/./g.flags!="g")__webpack_require__(92).f(RegExp.prototype,"flags",{configurable:true,get:__webpack_require__(279)})},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(93);var toLength=__webpack_require__(119);var advanceStringIndex=__webpack_require__(285);var regExpExec=__webpack_require__(286);__webpack_require__(287)("match",1,function(defined,MATCH,$match,maybeCallNative){return[function match(regexp){var O=defined(this);var fn=regexp==undefined?undefined:regexp[MATCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[MATCH](String(O))},function(regexp){var res=maybeCallNative($match,regexp,this);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);if(!rx.global)return regExpExec(rx,S);var fullUnicode=rx.unicode;rx.lastIndex=0;var A=[];var n=0;var result;while((result=regExpExec(rx,S))!==null){var matchStr=String(result[0]);A[n]=matchStr;if(matchStr==="")rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode);n++}return n===0?null:A}]})},function(module,exports,__webpack_require__){"use strict";var at=__webpack_require__(209)(true);module.exports=function(S,index,unicode){return index+(unicode?at(S,index).length:1)}},function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(156);var builtinExec=RegExp.prototype.exec;module.exports=function(R,S){var exec=R.exec;if(typeof exec==="function"){var result=exec.call(R,S);if(typeof result!=="object"){throw new TypeError("RegExp exec method returned something other than an Object or null")}return result}if(classof(R)!=="RegExp"){throw new TypeError("RegExp#exec called on incompatible receiver")}return builtinExec.call(R,S)}},function(module,exports,__webpack_require__){"use strict";__webpack_require__(280);var redefine=__webpack_require__(99);var hide=__webpack_require__(91);var fails=__webpack_require__(88);var defined=__webpack_require__(117);var wks=__webpack_require__(108);var regexpExec=__webpack_require__(281);var SPECIES=wks("species");var REPLACE_SUPPORTS_NAMED_GROUPS=!fails(function(){var re=/./;re.exec=function(){var result=[];result.groups={a:"7"};return result};return"".replace(re,"$<a>")!=="7"});var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=function(){var re=/(?:)/;var originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments)};var result="ab".split(re);return result.length===2&&result[0]==="a"&&result[1]==="b"}();module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY);var DELEGATES_TO_SYMBOL=!fails(function(){var O={};O[SYMBOL]=function(){return 7};return""[KEY](O)!=7});var DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL?!fails(function(){var execCalled=false;var re=/a/;re.exec=function(){execCalled=true;return null};if(KEY==="split"){re.constructor={};re.constructor[SPECIES]=function(){return re}}re[SYMBOL]("");return!execCalled}):undefined;if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||KEY==="replace"&&!REPLACE_SUPPORTS_NAMED_GROUPS||KEY==="split"&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var nativeRegExpMethod=/./[SYMBOL];var fns=exec(defined,SYMBOL,""[KEY],function maybeCallNative(nativeMethod,regexp,str,arg2,forceStringMethod){if(regexp.exec===regexpExec){if(DELEGATES_TO_SYMBOL&&!forceStringMethod){return{done:true,value:nativeRegExpMethod.call(regexp,str,arg2)}}return{done:true,value:nativeMethod.call(str,regexp,arg2)}}return{done:false}});var strfn=fns[0];var rxfn=fns[1];redefine(String.prototype,KEY,strfn);hide(RegExp.prototype,SYMBOL,length==2?function(string,arg){return rxfn.call(string,this,arg)}:function(string){return rxfn.call(string,this)})}}},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(93);var toObject=__webpack_require__(127);var toLength=__webpack_require__(119);var toInteger=__webpack_require__(120);var advanceStringIndex=__webpack_require__(285);var regExpExec=__webpack_require__(286);var max=Math.max;var min=Math.min;var floor=Math.floor;var SUBSTITUTION_SYMBOLS=/\$([$&`']|\d\d?|<[^>]*>)/g;var SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&`']|\d\d?)/g;var maybeToString=function(it){return it===undefined?it:String(it)};__webpack_require__(287)("replace",2,function(defined,REPLACE,$replace,maybeCallNative){return[function replace(searchValue,replaceValue){var O=defined(this);var fn=searchValue==undefined?undefined:searchValue[REPLACE];return fn!==undefined?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue)},function(regexp,replaceValue){var res=maybeCallNative($replace,regexp,this,replaceValue);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);var functionalReplace=typeof replaceValue==="function";if(!functionalReplace)replaceValue=String(replaceValue);var global=rx.global;if(global){var fullUnicode=rx.unicode;rx.lastIndex=0}var results=[];while(true){var result=regExpExec(rx,S);if(result===null)break;results.push(result);if(!global)break;var matchStr=String(result[0]);if(matchStr==="")rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode)}var accumulatedResult="";var nextSourcePosition=0;for(var i=0;i<results.length;i++){result=results[i];var matched=String(result[0]);var position=max(min(toInteger(result.index),S.length),0);var captures=[];for(var j=1;j<result.length;j++)captures.push(maybeToString(result[j]));var namedCaptures=result.groups;if(functionalReplace){var replacerArgs=[matched].concat(captures,position,S);if(namedCaptures!==undefined)replacerArgs.push(namedCaptures);var replacement=String(replaceValue.apply(undefined,replacerArgs))}else{replacement=getSubstitution(matched,S,position,captures,namedCaptures,replaceValue)}if(position>=nextSourcePosition){accumulatedResult+=S.slice(nextSourcePosition,position)+replacement;nextSourcePosition=position+matched.length}}return accumulatedResult+S.slice(nextSourcePosition)}];function getSubstitution(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length;var m=captures.length;var symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;if(namedCaptures!==undefined){namedCaptures=toObject(namedCaptures);symbols=SUBSTITUTION_SYMBOLS}return $replace.call(replacement,symbols,function(match,ch){var capture;switch(ch.charAt(0)){case"$":return"$";case"&":return matched;case"`":return str.slice(0,position);case"'":return str.slice(tailPos);case"<":capture=namedCaptures[ch.slice(1,-1)];break;default:var n=+ch;if(n===0)return match;if(n>m){var f=floor(n/10);if(f===0)return match;if(f<=m)return captures[f-1]===undefined?ch.charAt(1):captures[f-1]+ch.charAt(1);return match}capture=captures[n-1]}return capture===undefined?"":capture})}})},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(93);var sameValue=__webpack_require__(152);var regExpExec=__webpack_require__(286);__webpack_require__(287)("search",1,function(defined,SEARCH,$search,maybeCallNative){return[function search(regexp){var O=defined(this);var fn=regexp==undefined?undefined:regexp[SEARCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[SEARCH](String(O))},function(regexp){var res=maybeCallNative($search,regexp,this);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);var previousLastIndex=rx.lastIndex;if(!sameValue(previousLastIndex,0))rx.lastIndex=0;var result=regExpExec(rx,S);if(!sameValue(rx.lastIndex,previousLastIndex))rx.lastIndex=previousLastIndex;return result===null?-1:result.index}]})},function(module,exports,__webpack_require__){"use strict";var isRegExp=__webpack_require__(216);var anObject=__webpack_require__(93);var speciesConstructor=__webpack_require__(291);var advanceStringIndex=__webpack_require__(285);var toLength=__webpack_require__(119);var callRegExpExec=__webpack_require__(286);var regexpExec=__webpack_require__(281);var fails=__webpack_require__(88);var $min=Math.min;var $push=[].push;var $SPLIT="split";var LENGTH="length";var LAST_INDEX="lastIndex";var MAX_UINT32=4294967295;var SUPPORTS_Y=!fails(function(){RegExp(MAX_UINT32,"y")});__webpack_require__(287)("split",2,function(defined,SPLIT,$split,maybeCallNative){var internalSplit;if("abbc"[$SPLIT](/(b)*/)[1]=="c"||"test"[$SPLIT](/(?:)/,-1)[LENGTH]!=4||"ab"[$SPLIT](/(?:ab)*/)[LENGTH]!=2||"."[$SPLIT](/(.?)(.?)/)[LENGTH]!=4||"."[$SPLIT](/()()/)[LENGTH]>1||""[$SPLIT](/.?/)[LENGTH]){internalSplit=function(separator,limit){var string=String(this);if(separator===undefined&&limit===0)return[];if(!isRegExp(separator))return $split.call(string,separator,limit);var output=[];var flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":"");var lastLastIndex=0;var splitLimit=limit===undefined?MAX_UINT32:limit>>>0;var separatorCopy=new RegExp(separator.source,flags+"g");var match,lastIndex,lastLength;while(match=regexpExec.call(separatorCopy,string)){lastIndex=separatorCopy[LAST_INDEX];if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(match[LENGTH]>1&&match.index<string[LENGTH])$push.apply(output,match.slice(1));lastLength=match[0][LENGTH];lastLastIndex=lastIndex;if(output[LENGTH]>=splitLimit)break}if(separatorCopy[LAST_INDEX]===match.index)separatorCopy[LAST_INDEX]++}if(lastLastIndex===string[LENGTH]){if(lastLength||!separatorCopy.test(""))output.push("")}else output.push(string.slice(lastLastIndex));return output[LENGTH]>splitLimit?output.slice(0,splitLimit):output}}else if("0"[$SPLIT](undefined,0)[LENGTH]){internalSplit=function(separator,limit){return separator===undefined&&limit===0?[]:$split.call(this,separator,limit)}}else{internalSplit=$split}return[function split(separator,limit){var O=defined(this);var splitter=separator==undefined?undefined:separator[SPLIT];return splitter!==undefined?splitter.call(separator,O,limit):internalSplit.call(String(O),separator,limit)},function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==$split);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);var C=speciesConstructor(rx,RegExp);var unicodeMatching=rx.unicode;var flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(SUPPORTS_Y?"y":"g");var splitter=new C(SUPPORTS_Y?rx:"^(?:"+rx.source+")",flags);var lim=limit===undefined?MAX_UINT32:limit>>>0;if(lim===0)return[];if(S.length===0)return callRegExpExec(splitter,S)===null?[S]:[];var p=0;var q=0;var A=[];while(q<S.length){splitter.lastIndex=SUPPORTS_Y?q:0;var z=callRegExpExec(splitter,SUPPORTS_Y?S:S.slice(q));var e;if(z===null||(e=$min(toLength(splitter.lastIndex+(SUPPORTS_Y?0:q)),S.length))===p){q=advanceStringIndex(S,q,unicodeMatching)}else{A.push(S.slice(p,q));if(A.length===lim)return A;for(var i=1;i<=z.length-1;i++){A.push(z[i]);if(A.length===lim)return A}q=p=e}}A.push(S.slice(p));return A}]})},function(module,exports,__webpack_require__){var anObject=__webpack_require__(93);var aFunction=__webpack_require__(105);var SPECIES=__webpack_require__(108)("species");module.exports=function(O,D){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(103);var global=__webpack_require__(85);var ctx=__webpack_require__(104);var classof=__webpack_require__(156);var $export=__webpack_require__(89);var isObject=__webpack_require__(94);var aFunction=__webpack_require__(105);var anInstance=__webpack_require__(293);var forOf=__webpack_require__(294);var speciesConstructor=__webpack_require__(291);var task=__webpack_require__(295).set;var microtask=__webpack_require__(296)();var newPromiseCapabilityModule=__webpack_require__(297);var perform=__webpack_require__(298);var userAgent=__webpack_require__(299);var promiseResolve=__webpack_require__(300);var PROMISE="Promise";var TypeError=global.TypeError;var process=global.process;var versions=process&&process.versions;var v8=versions&&versions.v8||"";var $Promise=global[PROMISE];var isNode=classof(process)=="process";var empty=function(){};var Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper;var newPromiseCapability=newGenericPromiseCapability=newPromiseCapabilityModule.f;var USE_NATIVE=!!function(){try{var promise=$Promise.resolve(1);var FakePromise=(promise.constructor={})[__webpack_require__(108)("species")]=function(exec){exec(empty,empty)};return(isNode||typeof PromiseRejectionEvent=="function")&&promise.then(empty)instanceof FakePromise&&v8.indexOf("6.6")!==0&&userAgent.indexOf("Chrome/66")===-1}catch(e){}}();var isThenable=function(it){var then;return isObject(it)&&typeof(then=it.then)=="function"?then:false};var notify=function(promise,isReject){if(promise._n)return;promise._n=true;var chain=promise._c;microtask(function(){var value=promise._v;var ok=promise._s==1;var i=0;var run=function(reaction){var handler=ok?reaction.ok:reaction.fail;var resolve=reaction.resolve;var reject=reaction.reject;var domain=reaction.domain;var result,then,exited;try{if(handler){if(!ok){if(promise._h==2)onHandleUnhandled(promise);promise._h=1}if(handler===true)result=value;else{if(domain)domain.enter();result=handler(value);if(domain){domain.exit();exited=true}}if(result===reaction.promise){reject(TypeError("Promise-chain cycle"))}else if(then=isThenable(result)){then.call(result,resolve,reject)}else resolve(result)}else reject(value)}catch(e){if(domain&&!exited)domain.exit();reject(e)}};while(chain.length>i)run(chain[i++]);promise._c=[];promise._n=false;if(isReject&&!promise._h)onUnhandled(promise)})};var onUnhandled=function(promise){task.call(global,function(){var value=promise._v;var unhandled=isUnhandled(promise);var result,handler,console;if(unhandled){result=perform(function(){if(isNode){process.emit("unhandledRejection",value,promise)}else if(handler=global.onunhandledrejection){handler({promise:promise,reason:value})}else if((console=global.console)&&console.error){console.error("Unhandled promise rejection",value)}});promise._h=isNode||isUnhandled(promise)?2:1}promise._a=undefined;if(unhandled&&result.e)throw result.v})};var isUnhandled=function(promise){return promise._h!==1&&(promise._a||promise._c).length===0};var onHandleUnhandled=function(promise){task.call(global,function(){var handler;if(isNode){process.emit("rejectionHandled",promise)}else if(handler=global.onrejectionhandled){handler({promise:promise,reason:promise._v})}})};var $reject=function(value){var promise=this;if(promise._d)return;promise._d=true;promise=promise._w||promise;promise._v=value;promise._s=2;if(!promise._a)promise._a=promise._c.slice();notify(promise,true)};var $resolve=function(value){var promise=this;var then;if(promise._d)return;promise._d=true;promise=promise._w||promise;try{if(promise===value)throw TypeError("Promise can't be resolved itself");if(then=isThenable(value)){microtask(function(){var wrapper={_w:promise,_d:false};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}})}else{promise._v=value;promise._s=1;notify(promise,false)}}catch(e){$reject.call({_w:promise,_d:false},e)}};if(!USE_NATIVE){$Promise=function Promise(executor){anInstance(this,$Promise,PROMISE,"_h");aFunction(executor);Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}};Internal=function Promise(executor){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};Internal.prototype=__webpack_require__(301)($Promise.prototype,{then:function then(onFulfilled,onRejected){var reaction=newPromiseCapability(speciesConstructor(this,$Promise));reaction.ok=typeof onFulfilled=="function"?onFulfilled:true;reaction.fail=typeof onRejected=="function"&&onRejected;reaction.domain=isNode?process.domain:undefined;this._c.push(reaction);if(this._a)this._a.push(reaction);if(this._s)notify(this,false);return reaction.promise},catch:function(onRejected){return this.then(undefined,onRejected)}});OwnPromiseCapability=function(){var promise=new Internal;this.promise=promise;this.resolve=ctx($resolve,promise,1);this.reject=ctx($reject,promise,1)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===$Promise||C===Wrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise});__webpack_require__(107)($Promise,PROMISE);__webpack_require__(275)(PROMISE);Wrapper=__webpack_require__(90)[PROMISE];$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function reject(r){var capability=newPromiseCapability(this);var $$reject=capability.reject;$$reject(r);return capability.promise}});$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function resolve(x){return promiseResolve(LIBRARY&&this===Wrapper?$Promise:this,x)}});$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(248)(function(iter){$Promise.all(iter)["catch"](empty)})),PROMISE,{all:function all(iterable){var C=this;var capability=newPromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;var result=perform(function(){var values=[];var index=0;var remaining=1;forOf(iterable,false,function(promise){var $index=index++;var alreadyCalled=false;values.push(undefined);remaining++;C.resolve(promise).then(function(value){if(alreadyCalled)return;alreadyCalled=true;values[$index]=value;--remaining||resolve(values)},reject)});--remaining||resolve(values)});if(result.e)reject(result.v);return capability.promise},race:function race(iterable){var C=this;var capability=newPromiseCapability(C);var reject=capability.reject;var result=perform(function(){forOf(iterable,false,function(promise){C.resolve(promise).then(capability.resolve,reject)})});if(result.e)reject(result.v);return capability.promise}})},function(module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+": incorrect invocation!")}return it}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(104);var call=__webpack_require__(244);var isArrayIter=__webpack_require__(245);var anObject=__webpack_require__(93);var toLength=__webpack_require__(119);var getIterFn=__webpack_require__(247);var BREAK={};var RETURN={};var exports=module.exports=function(iterable,entries,fn,that,ITERATOR){var iterFn=ITERATOR?function(){return iterable}:getIterFn(iterable);var f=ctx(fn,that,entries?2:1);var index=0;var length,step,iterator,result;if(typeof iterFn!="function")throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){result=entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);if(result===BREAK||result===RETURN)return result}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){result=call(iterator,f,step.value,entries);if(result===BREAK||result===RETURN)return result}};exports.BREAK=BREAK;exports.RETURN=RETURN},function(module,exports,__webpack_require__){var ctx=__webpack_require__(104);var invoke=__webpack_require__(159);var html=__webpack_require__(130);var cel=__webpack_require__(96);var global=__webpack_require__(85);var process=global.process;var setTask=global.setImmediate;var clearTask=global.clearImmediate;var MessageChannel=global.MessageChannel;var Dispatch=global.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var defer,channel,port;var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listener=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[];var i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(__webpack_require__(116)(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(Dispatch&&Dispatch.now){defer=function(id){Dispatch.now(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var macrotask=__webpack_require__(295).set;var Observer=global.MutationObserver||global.WebKitMutationObserver;var process=global.process;var Promise=global.Promise;var isNode=__webpack_require__(116)(process)=="process";module.exports=function(){var head,last,notify;var flush=function(){var parent,fn;if(isNode&&(parent=process.domain))parent.exit();while(head){fn=head.fn;head=head.next;try{fn()}catch(e){if(head)notify();else last=undefined;throw e}}last=undefined;if(parent)parent.enter()};if(isNode){notify=function(){process.nextTick(flush)}}else if(Observer&&!(global.navigator&&global.navigator.standalone)){var toggle=true;var node=document.createTextNode("");new Observer(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve(undefined);notify=function(){promise.then(flush)}}else{notify=function(){macrotask.call(global,flush)}}return function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify()}last=task}}},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(105);function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)}module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports){module.exports=function(exec){try{return{e:false,v:exec()}}catch(e){return{e:true,v:e}}}},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var navigator=global.navigator;module.exports=navigator&&navigator.userAgent||""},function(module,exports,__webpack_require__){var anObject=__webpack_require__(93);var isObject=__webpack_require__(94);var newPromiseCapability=__webpack_require__(297);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise}},function(module,exports,__webpack_require__){var redefine=__webpack_require__(99);module.exports=function(target,src,safe){for(var key in src)redefine(target,key,src[key],safe);return target}},function(module,exports,__webpack_require__){"use strict";var strong=__webpack_require__(303);var validate=__webpack_require__(304);var MAP="Map";module.exports=__webpack_require__(305)(MAP,function(get){return function Map(){return get(this,arguments.length>0?arguments[0]:undefined)}},{get:function get(key){var entry=strong.getEntry(validate(this,MAP),key);return entry&&entry.v},set:function set(key,value){return strong.def(validate(this,MAP),key===0?0:key,value)}},strong,true)},function(module,exports,__webpack_require__){"use strict";var dP=__webpack_require__(92).f;var create=__webpack_require__(128);var redefineAll=__webpack_require__(301);var ctx=__webpack_require__(104);var anInstance=__webpack_require__(293);var forOf=__webpack_require__(294);var $iterDefine=__webpack_require__(210);var step=__webpack_require__(277);var setSpecies=__webpack_require__(275);var DESCRIPTORS=__webpack_require__(87);var fastKey=__webpack_require__(106).fastKey;var validate=__webpack_require__(304);var SIZE=DESCRIPTORS?"_s":"size";var getEntry=function(that,key){var index=fastKey(key);var entry;if(index!=="F")return that._i[index];for(entry=that._f;entry;entry=entry.n){if(entry.k==key)return entry}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i");that._t=NAME;that._i=create(null);that._f=undefined;that._l=undefined;that[SIZE]=0;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});redefineAll(C.prototype,{clear:function clear(){for(var that=validate(this,NAME),data=that._i,entry=that._f;entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i]}that._f=that._l=undefined;that[SIZE]=0},delete:function(key){var that=validate(this,NAME);var entry=getEntry(that,key);if(entry){var next=entry.n;var prev=entry.p;delete that._i[entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that._f==entry)that._f=next;if(that._l==entry)that._l=prev;that[SIZE]--}return!!entry},forEach:function forEach(callbackfn){validate(this,NAME);var f=ctx(callbackfn,arguments.length>1?arguments[1]:undefined,3);var entry;while(entry=entry?entry.n:this._f){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function has(key){return!!getEntry(validate(this,NAME),key)}});if(DESCRIPTORS)dP(C.prototype,"size",{get:function(){return validate(this,NAME)[SIZE]}});return C},def:function(that,key,value){var entry=getEntry(that,key);var prev,index;if(entry){entry.v=value}else{that._l=entry={i:index=fastKey(key,true),k:key,v:value,p:prev=that._l,n:undefined,r:false};if(!that._f)that._f=entry;if(prev)prev.n=entry;that[SIZE]++;if(index!=="F")that._i[index]=entry}return that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){$iterDefine(C,NAME,function(iterated,kind){this._t=validate(iterated,NAME);this._k=kind;this._l=undefined},function(){var that=this;var kind=that._k;var entry=that._l;while(entry&&entry.r)entry=entry.p;if(!that._t||!(that._l=entry=entry?entry.n:that._t._f)){that._t=undefined;return step(1)}if(kind=="keys")return step(0,entry.k);if(kind=="values")return step(0,entry.v);return step(0,[entry.k,entry.v])},IS_MAP?"entries":"values",!IS_MAP,true);setSpecies(NAME)}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(94);module.exports=function(it,TYPE){if(!isObject(it)||it._t!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required!");return it}},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var $export=__webpack_require__(89);var redefine=__webpack_require__(99);var redefineAll=__webpack_require__(301);var meta=__webpack_require__(106);var forOf=__webpack_require__(294);var anInstance=__webpack_require__(293);var isObject=__webpack_require__(94);var fails=__webpack_require__(88);var $iterDetect=__webpack_require__(248);var setToStringTag=__webpack_require__(107);var inheritIfRequired=__webpack_require__(169);module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME];var C=Base;var ADDER=IS_MAP?"set":"add";var proto=C&&C.prototype;var O={};var fixMethod=function(KEY){var fn=proto[KEY];redefine(proto,KEY,KEY=="delete"?function(a){return IS_WEAK&&!isObject(a)?false:fn.call(this,a===0?0:a)}:KEY=="has"?function has(a){return IS_WEAK&&!isObject(a)?false:fn.call(this,a===0?0:a)}:KEY=="get"?function get(a){return IS_WEAK&&!isObject(a)?undefined:fn.call(this,a===0?0:a)}:KEY=="add"?function add(a){fn.call(this,a===0?0:a);return this}:function set(a,b){fn.call(this,a===0?0:a,b);return this})};if(typeof C!="function"||!(IS_WEAK||proto.forEach&&!fails(function(){(new C).entries().next()}))){C=common.getConstructor(wrapper,NAME,IS_MAP,ADDER);redefineAll(C.prototype,methods);meta.NEED=true}else{var instance=new C;var HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance;var THROWS_ON_PRIMITIVES=fails(function(){instance.has(1)});var ACCEPT_ITERABLES=$iterDetect(function(iter){new C(iter)});var BUGGY_ZERO=!IS_WEAK&&fails(function(){var $instance=new C;var index=5;while(index--)$instance[ADDER](index,index);return!$instance.has(-0)});if(!ACCEPT_ITERABLES){C=wrapper(function(target,iterable){anInstance(target,C,NAME);var that=inheritIfRequired(new Base,target,C);if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that);return that});C.prototype=proto;proto.constructor=C}if(THROWS_ON_PRIMITIVES||BUGGY_ZERO){fixMethod("delete");fixMethod("has");IS_MAP&&fixMethod("get")}if(BUGGY_ZERO||HASNT_CHAINING)fixMethod(ADDER);if(IS_WEAK&&proto.clear)delete proto.clear}setToStringTag(C,NAME);O[NAME]=C;$export($export.G+$export.W+$export.F*(C!=Base),O);if(!IS_WEAK)common.setStrong(C,NAME,IS_MAP);return C}},function(module,exports,__webpack_require__){"use strict";var strong=__webpack_require__(303);var validate=__webpack_require__(304);var SET="Set";module.exports=__webpack_require__(305)(SET,function(get){return function Set(){return get(this,arguments.length>0?arguments[0]:undefined)}},{add:function add(value){return strong.def(validate(this,SET),value=value===0?0:value,value)}},strong)},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var each=__webpack_require__(255)(0);var redefine=__webpack_require__(99);var meta=__webpack_require__(106);var assign=__webpack_require__(150);var weak=__webpack_require__(308);var isObject=__webpack_require__(94);var validate=__webpack_require__(304);var NATIVE_WEAK_MAP=__webpack_require__(304);var IS_IE11=!global.ActiveXObject&&"ActiveXObject"in global;var WEAK_MAP="WeakMap";var getWeak=meta.getWeak;var isExtensible=Object.isExtensible;var uncaughtFrozenStore=weak.ufstore;var InternalMap;var wrapper=function(get){return function WeakMap(){return get(this,arguments.length>0?arguments[0]:undefined)}};var methods={get:function get(key){if(isObject(key)){var data=getWeak(key);if(data===true)return uncaughtFrozenStore(validate(this,WEAK_MAP)).get(key);return data?data[this._i]:undefined}},set:function set(key,value){return weak.def(validate(this,WEAK_MAP),key,value)}};var $WeakMap=module.exports=__webpack_require__(305)(WEAK_MAP,wrapper,methods,weak,true,true);if(NATIVE_WEAK_MAP&&IS_IE11){InternalMap=weak.getConstructor(wrapper,WEAK_MAP);assign(InternalMap.prototype,methods);meta.NEED=true;each(["delete","has","get","set"],function(key){var proto=$WeakMap.prototype;var method=proto[key];redefine(proto,key,function(a,b){if(isObject(a)&&!isExtensible(a)){if(!this._f)this._f=new InternalMap;var result=this._f[key](a,b);return key=="set"?this:result}return method.call(this,a,b)})})}},function(module,exports,__webpack_require__){"use strict";var redefineAll=__webpack_require__(301);var getWeak=__webpack_require__(106).getWeak;var anObject=__webpack_require__(93);var isObject=__webpack_require__(94);var anInstance=__webpack_require__(293);var forOf=__webpack_require__(294);var createArrayMethod=__webpack_require__(255);var $has=__webpack_require__(86);var validate=__webpack_require__(304);var arrayFind=createArrayMethod(5);var arrayFindIndex=createArrayMethod(6);var id=0;var uncaughtFrozenStore=function(that){return that._l||(that._l=new UncaughtFrozenStore)};var UncaughtFrozenStore=function(){this.a=[]};var findUncaughtFrozen=function(store,key){return arrayFind(store.a,function(it){return it[0]===key})};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);if(entry)entry[1]=value;else this.a.push([key,value])},delete:function(key){var index=arrayFindIndex(this.a,function(it){return it[0]===key});if(~index)this.a.splice(index,1);return!!~index}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i");that._t=NAME;that._i=id++;that._l=undefined;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});redefineAll(C.prototype,{delete:function(key){if(!isObject(key))return false;var data=getWeak(key);if(data===true)return uncaughtFrozenStore(validate(this,NAME))["delete"](key);return data&&$has(data,this._i)&&delete data[this._i]},has:function has(key){if(!isObject(key))return false;var data=getWeak(key);if(data===true)return uncaughtFrozenStore(validate(this,NAME)).has(key);return data&&$has(data,this._i)}});return C},def:function(that,key,value){var data=getWeak(anObject(key),true);if(data===true)uncaughtFrozenStore(that).set(key,value);else data[that._i]=value;return that},ufstore:uncaughtFrozenStore}},function(module,exports,__webpack_require__){"use strict";var weak=__webpack_require__(308);var validate=__webpack_require__(304);var WEAK_SET="WeakSet";__webpack_require__(305)(WEAK_SET,function(get){return function WeakSet(){return get(this,arguments.length>0?arguments[0]:undefined)}},{add:function add(value){return weak.def(validate(this,WEAK_SET),value,true)}},weak,false,true)},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $typed=__webpack_require__(311);var buffer=__webpack_require__(312);var anObject=__webpack_require__(93);var toAbsoluteIndex=__webpack_require__(121);var toLength=__webpack_require__(119);var isObject=__webpack_require__(94);var ArrayBuffer=__webpack_require__(85).ArrayBuffer;var speciesConstructor=__webpack_require__(291);var $ArrayBuffer=buffer.ArrayBuffer;var $DataView=buffer.DataView;var $isView=$typed.ABV&&ArrayBuffer.isView;var $slice=$ArrayBuffer.prototype.slice;var VIEW=$typed.VIEW;var ARRAY_BUFFER="ArrayBuffer";$export($export.G+$export.W+$export.F*(ArrayBuffer!==$ArrayBuffer),{ArrayBuffer:$ArrayBuffer});$export($export.S+$export.F*!$typed.CONSTR,ARRAY_BUFFER,{isView:function isView(it){return $isView&&$isView(it)||isObject(it)&&VIEW in it}});$export($export.P+$export.U+$export.F*__webpack_require__(88)(function(){return!new $ArrayBuffer(2).slice(1,undefined).byteLength}),ARRAY_BUFFER,{slice:function slice(start,end){if($slice!==undefined&&end===undefined)return $slice.call(anObject(this),start);var len=anObject(this).byteLength;var first=toAbsoluteIndex(start,len);var fin=toAbsoluteIndex(end===undefined?len:end,len);var result=new(speciesConstructor(this,$ArrayBuffer))(toLength(fin-first));var viewS=new $DataView(this);var viewT=new $DataView(result);var index=0;while(first<fin){viewT.setUint8(index++,viewS.getUint8(first++))}return result}});__webpack_require__(275)(ARRAY_BUFFER)},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var hide=__webpack_require__(91);var uid=__webpack_require__(100);var TYPED=uid("typed_array");var VIEW=uid("view");var ABV=!!(global.ArrayBuffer&&global.DataView);var CONSTR=ABV;var i=0;var l=9;var Typed;var TypedArrayConstructors="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(i<l){if(Typed=global[TypedArrayConstructors[i++]]){hide(Typed.prototype,TYPED,true);hide(Typed.prototype,VIEW,true)}else CONSTR=false}module.exports={ABV:ABV,CONSTR:CONSTR,TYPED:TYPED,VIEW:VIEW}},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(85);var DESCRIPTORS=__webpack_require__(87);var LIBRARY=__webpack_require__(103);var $typed=__webpack_require__(311);var hide=__webpack_require__(91);var redefineAll=__webpack_require__(301);var fails=__webpack_require__(88);var anInstance=__webpack_require__(293);var toInteger=__webpack_require__(120);var toLength=__webpack_require__(119);var toIndex=__webpack_require__(313);var gOPN=__webpack_require__(132).f;var dP=__webpack_require__(92).f;var arrayFill=__webpack_require__(271);var setToStringTag=__webpack_require__(107);var ARRAY_BUFFER="ArrayBuffer";var DATA_VIEW="DataView";var PROTOTYPE="prototype";var WRONG_LENGTH="Wrong length!";var WRONG_INDEX="Wrong index!";var $ArrayBuffer=global[ARRAY_BUFFER];var $DataView=global[DATA_VIEW];var Math=global.Math;var RangeError=global.RangeError;var Infinity=global.Infinity;var BaseBuffer=$ArrayBuffer;var abs=Math.abs;var pow=Math.pow;var floor=Math.floor;var log=Math.log;var LN2=Math.LN2;var BUFFER="buffer";var BYTE_LENGTH="byteLength";var BYTE_OFFSET="byteOffset";var $BUFFER=DESCRIPTORS?"_b":BUFFER;var $LENGTH=DESCRIPTORS?"_l":BYTE_LENGTH;var $OFFSET=DESCRIPTORS?"_o":BYTE_OFFSET;function packIEEE754(value,mLen,nBytes){var buffer=new Array(nBytes);var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?pow(2,-24)-pow(2,-77):0;var i=0;var s=value<0||value===0&&1/value<0?1:0;var e,m,c;value=abs(value);if(value!=value||value===Infinity){m=value!=value?1:0;e=eMax}else{e=floor(log(value)/LN2);if(value*(c=pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*pow(2,mLen);e=e+eBias}else{m=value*pow(2,eBias-1)*pow(2,mLen);e=0}}for(;mLen>=8;buffer[i++]=m&255,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[i++]=e&255,e/=256,eLen-=8);buffer[--i]|=s*128;return buffer}function unpackIEEE754(buffer,mLen,nBytes){var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=eLen-7;var i=nBytes-1;var s=buffer[i--];var e=s&127;var m;s>>=7;for(;nBits>0;e=e*256+buffer[i],i--,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[i],i--,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:s?-Infinity:Infinity}else{m=m+pow(2,mLen);e=e-eBias}return(s?-1:1)*m*pow(2,e-mLen)}function unpackI32(bytes){return bytes[3]<<24|bytes[2]<<16|bytes[1]<<8|bytes[0]}function packI8(it){return[it&255]}function packI16(it){return[it&255,it>>8&255]}function packI32(it){return[it&255,it>>8&255,it>>16&255,it>>24&255]}function packF64(it){return packIEEE754(it,52,8)}function packF32(it){return packIEEE754(it,23,4)}function addGetter(C,key,internal){dP(C[PROTOTYPE],key,{get:function(){return this[internal]}})}function get(view,bytes,index,isLittleEndian){var numIndex=+index;var intIndex=toIndex(numIndex);if(intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b;var start=intIndex+view[$OFFSET];var pack=store.slice(start,start+bytes);return isLittleEndian?pack:pack.reverse()}function set(view,bytes,index,conversion,value,isLittleEndian){var numIndex=+index;var intIndex=toIndex(numIndex);if(intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b;var start=intIndex+view[$OFFSET];var pack=conversion(+value);for(var i=0;i<bytes;i++)store[start+i]=pack[isLittleEndian?i:bytes-i-1]}if(!$typed.ABV){$ArrayBuffer=function ArrayBuffer(length){anInstance(this,$ArrayBuffer,ARRAY_BUFFER);var byteLength=toIndex(length);this._b=arrayFill.call(new Array(byteLength),0);this[$LENGTH]=byteLength};$DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,$DataView,DATA_VIEW);anInstance(buffer,$ArrayBuffer,DATA_VIEW);var bufferLength=buffer[$LENGTH];var offset=toInteger(byteOffset);if(offset<0||offset>bufferLength)throw RangeError("Wrong offset!");byteLength=byteLength===undefined?bufferLength-offset:toLength(byteLength);if(offset+byteLength>bufferLength)throw RangeError(WRONG_LENGTH);this[$BUFFER]=buffer;this[$OFFSET]=offset;this[$LENGTH]=byteLength};if(DESCRIPTORS){addGetter($ArrayBuffer,BYTE_LENGTH,"_l");addGetter($DataView,BUFFER,"_b");addGetter($DataView,BYTE_LENGTH,"_l");addGetter($DataView,BYTE_OFFSET,"_o")}redefineAll($DataView[PROTOTYPE],{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackI32(get(this,4,byteOffset,arguments[1]))},getUint32:function getUint32(byteOffset){return unpackI32(get(this,4,byteOffset,arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments[1]),23,4)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments[1]),52,8)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packI8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packI8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packI16,value,arguments[2])},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packI16,value,arguments[2])},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packI32,value,arguments[2])},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packI32,value,arguments[2])},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packF32,value,arguments[2])},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packF64,value,arguments[2])}})}else{if(!fails(function(){$ArrayBuffer(1)})||!fails(function(){new $ArrayBuffer(-1)})||fails(function(){new $ArrayBuffer;new $ArrayBuffer(1.5);new $ArrayBuffer(NaN);return $ArrayBuffer.name!=ARRAY_BUFFER})){$ArrayBuffer=function ArrayBuffer(length){anInstance(this,$ArrayBuffer);return new BaseBuffer(toIndex(length))};var ArrayBufferProto=$ArrayBuffer[PROTOTYPE]=BaseBuffer[PROTOTYPE];for(var keys=gOPN(BaseBuffer),j=0,key;keys.length>j;){if(!((key=keys[j++])in $ArrayBuffer))hide($ArrayBuffer,key,BaseBuffer[key])}if(!LIBRARY)ArrayBufferProto.constructor=$ArrayBuffer}var view=new $DataView(new $ArrayBuffer(2));var $setInt8=$DataView[PROTOTYPE].setInt8;view.setInt8(0,2147483648);view.setInt8(1,2147483649);if(view.getInt8(0)||!view.getInt8(1))redefineAll($DataView[PROTOTYPE],{setInt8:function setInt8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24)}},true)}setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);hide($DataView[PROTOTYPE],$typed.VIEW,true);exports[ARRAY_BUFFER]=$ArrayBuffer;exports[DATA_VIEW]=$DataView},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(120);var toLength=__webpack_require__(119);module.exports=function(it){if(it===undefined)return 0;var number=toInteger(it);var length=toLength(number);if(number!==length)throw RangeError("Wrong length!");return length}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.G+$export.W+$export.F*!__webpack_require__(311).ABV,{DataView:__webpack_require__(312).DataView})},function(module,exports,__webpack_require__){__webpack_require__(316)("Int8",1,function(init){return function Int8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){"use strict";if(__webpack_require__(87)){var LIBRARY=__webpack_require__(103);var global=__webpack_require__(85);var fails=__webpack_require__(88);var $export=__webpack_require__(89);var $typed=__webpack_require__(311);var $buffer=__webpack_require__(312);var ctx=__webpack_require__(104);var anInstance=__webpack_require__(293);var propertyDesc=__webpack_require__(98);var hide=__webpack_require__(91);var redefineAll=__webpack_require__(301);var toInteger=__webpack_require__(120);var toLength=__webpack_require__(119);var toIndex=__webpack_require__(313);var toAbsoluteIndex=__webpack_require__(121);var toPrimitive=__webpack_require__(97);var has=__webpack_require__(86);var classof=__webpack_require__(156);var isObject=__webpack_require__(94);var toObject=__webpack_require__(127);var isArrayIter=__webpack_require__(245);var create=__webpack_require__(128);var getPrototypeOf=__webpack_require__(140);var gOPN=__webpack_require__(132).f;var getIterFn=__webpack_require__(247);var uid=__webpack_require__(100);var wks=__webpack_require__(108);var createArrayMethod=__webpack_require__(255);var createArrayIncludes=__webpack_require__(118);var speciesConstructor=__webpack_require__(291);var ArrayIterators=__webpack_require__(276);var Iterators=__webpack_require__(211);var $iterDetect=__webpack_require__(248);var setSpecies=__webpack_require__(275);var arrayFill=__webpack_require__(271);var arrayCopyWithin=__webpack_require__(268);var $DP=__webpack_require__(92);var $GOPD=__webpack_require__(133);var dP=$DP.f;var gOPD=$GOPD.f;var RangeError=global.RangeError;var TypeError=global.TypeError;var Uint8Array=global.Uint8Array;var ARRAY_BUFFER="ArrayBuffer";var SHARED_BUFFER="Shared"+ARRAY_BUFFER;var BYTES_PER_ELEMENT="BYTES_PER_ELEMENT";var PROTOTYPE="prototype";var ArrayProto=Array[PROTOTYPE];var $ArrayBuffer=$buffer.ArrayBuffer;var $DataView=$buffer.DataView;var arrayForEach=createArrayMethod(0);var arrayFilter=createArrayMethod(2);var arraySome=createArrayMethod(3);var arrayEvery=createArrayMethod(4);var arrayFind=createArrayMethod(5);var arrayFindIndex=createArrayMethod(6);var arrayIncludes=createArrayIncludes(true);var arrayIndexOf=createArrayIncludes(false);var arrayValues=ArrayIterators.values;var arrayKeys=ArrayIterators.keys;var arrayEntries=ArrayIterators.entries;var arrayLastIndexOf=ArrayProto.lastIndexOf;var arrayReduce=ArrayProto.reduce;var arrayReduceRight=ArrayProto.reduceRight;var arrayJoin=ArrayProto.join;var arraySort=ArrayProto.sort;var arraySlice=ArrayProto.slice;var arrayToString=ArrayProto.toString;var arrayToLocaleString=ArrayProto.toLocaleString;var ITERATOR=wks("iterator");var TAG=wks("toStringTag");var TYPED_CONSTRUCTOR=uid("typed_constructor");var DEF_CONSTRUCTOR=uid("def_constructor");var ALL_CONSTRUCTORS=$typed.CONSTR;var TYPED_ARRAY=$typed.TYPED;var VIEW=$typed.VIEW;var WRONG_LENGTH="Wrong length!";var $map=createArrayMethod(1,function(O,length){return allocate(speciesConstructor(O,O[DEF_CONSTRUCTOR]),length)});var LITTLE_ENDIAN=fails(function(){return new Uint8Array(new Uint16Array([1]).buffer)[0]===1});var FORCED_SET=!!Uint8Array&&!!Uint8Array[PROTOTYPE].set&&fails(function(){new Uint8Array(1).set({})});var toOffset=function(it,BYTES){var offset=toInteger(it);if(offset<0||offset%BYTES)throw RangeError("Wrong offset!");return offset};var validate=function(it){if(isObject(it)&&TYPED_ARRAY in it)return it;throw TypeError(it+" is not a typed array!")};var allocate=function(C,length){if(!(isObject(C)&&TYPED_CONSTRUCTOR in C)){throw TypeError("It is not a typed array constructor!")}return new C(length)};var speciesFromList=function(O,list){return fromList(speciesConstructor(O,O[DEF_CONSTRUCTOR]),list)};var fromList=function(C,list){var index=0;var length=list.length;var result=allocate(C,length);while(length>index)result[index]=list[index++];return result};var addGetter=function(it,key,internal){dP(it,key,{get:function(){return this._d[internal]}})};var $from=function from(source){var O=toObject(source);var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var iterFn=getIterFn(O);var i,length,values,result,step,iterator;if(iterFn!=undefined&&!isArrayIter(iterFn)){for(iterator=iterFn.call(O),values=[],i=0;!(step=iterator.next()).done;i++){values.push(step.value)}O=values}if(mapping&&aLen>2)mapfn=ctx(mapfn,arguments[2],2);for(i=0,length=toLength(O.length),result=allocate(this,length);length>i;i++){result[i]=mapping?mapfn(O[i],i):O[i]}return result};var $of=function of(){var index=0;var length=arguments.length;var result=allocate(this,length);while(length>index)result[index]=arguments[index++];return result};var TO_LOCALE_BUG=!!Uint8Array&&fails(function(){arrayToLocaleString.call(new Uint8Array(1))});var $toLocaleString=function toLocaleString(){return arrayToLocaleString.apply(TO_LOCALE_BUG?arraySlice.call(validate(this)):validate(this),arguments)};var proto={copyWithin:function copyWithin(target,start){return arrayCopyWithin.call(validate(this),target,start,arguments.length>2?arguments[2]:undefined)},every:function every(callbackfn){return arrayEvery(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},fill:function fill(value){return arrayFill.apply(validate(this),arguments)},filter:function filter(callbackfn){return speciesFromList(this,arrayFilter(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined))},find:function find(predicate){return arrayFind(validate(this),predicate,arguments.length>1?arguments[1]:undefined)},findIndex:function findIndex(predicate){return arrayFindIndex(validate(this),predicate,arguments.length>1?arguments[1]:undefined)},forEach:function forEach(callbackfn){arrayForEach(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},indexOf:function indexOf(searchElement){return arrayIndexOf(validate(this),searchElement,arguments.length>1?arguments[1]:undefined)},includes:function includes(searchElement){return arrayIncludes(validate(this),searchElement,arguments.length>1?arguments[1]:undefined)},join:function join(separator){return arrayJoin.apply(validate(this),arguments)},lastIndexOf:function lastIndexOf(searchElement){return arrayLastIndexOf.apply(validate(this),arguments)},map:function map(mapfn){return $map(validate(this),mapfn,arguments.length>1?arguments[1]:undefined)},reduce:function reduce(callbackfn){return arrayReduce.apply(validate(this),arguments)},reduceRight:function reduceRight(callbackfn){return arrayReduceRight.apply(validate(this),arguments)},reverse:function reverse(){var that=this;var length=validate(that).length;var middle=Math.floor(length/2);var index=0;var value;while(index<middle){value=that[index];that[index++]=that[--length];that[length]=value}return that},some:function some(callbackfn){return arraySome(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},sort:function sort(comparefn){return arraySort.call(validate(this),comparefn)},subarray:function subarray(begin,end){var O=validate(this);var length=O.length;var $begin=toAbsoluteIndex(begin,length);return new(speciesConstructor(O,O[DEF_CONSTRUCTOR]))(O.buffer,O.byteOffset+$begin*O.BYTES_PER_ELEMENT,toLength((end===undefined?length:toAbsoluteIndex(end,length))-$begin))}};var $slice=function slice(start,end){return speciesFromList(this,arraySlice.call(validate(this),start,end))};var $set=function set(arrayLike){validate(this);var offset=toOffset(arguments[1],1);var length=this.length;var src=toObject(arrayLike);var len=toLength(src.length);var index=0;if(len+offset>length)throw RangeError(WRONG_LENGTH);while(index<len)this[offset+index]=src[index++]};var $iterators={entries:function entries(){return arrayEntries.call(validate(this))},keys:function keys(){return arrayKeys.call(validate(this))},values:function values(){return arrayValues.call(validate(this))}};var isTAIndex=function(target,key){return isObject(target)&&target[TYPED_ARRAY]&&typeof key!="symbol"&&key in target&&String(+key)==String(key)};var $getDesc=function getOwnPropertyDescriptor(target,key){return isTAIndex(target,key=toPrimitive(key,true))?propertyDesc(2,target[key]):gOPD(target,key)};var $setDesc=function defineProperty(target,key,desc){if(isTAIndex(target,key=toPrimitive(key,true))&&isObject(desc)&&has(desc,"value")&&!has(desc,"get")&&!has(desc,"set")&&!desc.configurable&&(!has(desc,"writable")||desc.writable)&&(!has(desc,"enumerable")||desc.enumerable)){target[key]=desc.value;return target}return dP(target,key,desc)};if(!ALL_CONSTRUCTORS){$GOPD.f=$getDesc;$DP.f=$setDesc}$export($export.S+$export.F*!ALL_CONSTRUCTORS,"Object",{getOwnPropertyDescriptor:$getDesc,defineProperty:$setDesc});if(fails(function(){arrayToString.call({})})){arrayToString=arrayToLocaleString=function toString(){return arrayJoin.call(this)}}var $TypedArrayPrototype$=redefineAll({},proto);redefineAll($TypedArrayPrototype$,$iterators);hide($TypedArrayPrototype$,ITERATOR,$iterators.values);redefineAll($TypedArrayPrototype$,{slice:$slice,set:$set,constructor:function(){},toString:arrayToString,toLocaleString:$toLocaleString});addGetter($TypedArrayPrototype$,"buffer","b");addGetter($TypedArrayPrototype$,"byteOffset","o");addGetter($TypedArrayPrototype$,"byteLength","l");addGetter($TypedArrayPrototype$,"length","e");dP($TypedArrayPrototype$,TAG,{get:function(){return this[TYPED_ARRAY]}});module.exports=function(KEY,BYTES,wrapper,CLAMPED){CLAMPED=!!CLAMPED;var NAME=KEY+(CLAMPED?"Clamped":"")+"Array";var GETTER="get"+KEY;var SETTER="set"+KEY;var TypedArray=global[NAME];var Base=TypedArray||{};var TAC=TypedArray&&getPrototypeOf(TypedArray);var FORCED=!TypedArray||!$typed.ABV;var O={};var TypedArrayPrototype=TypedArray&&TypedArray[PROTOTYPE];var getter=function(that,index){var data=that._d;return data.v[GETTER](index*BYTES+data.o,LITTLE_ENDIAN)};var setter=function(that,index,value){var data=that._d;if(CLAMPED)value=(value=Math.round(value))<0?0:value>255?255:value&255;data.v[SETTER](index*BYTES+data.o,value,LITTLE_ENDIAN)};var addElement=function(that,index){dP(that,index,{get:function(){return getter(this,index)},set:function(value){return setter(this,index,value)},enumerable:true})};if(FORCED){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME,"_d");var index=0;var offset=0;var buffer,byteLength,length,klass;if(!isObject(data)){length=toIndex(data);byteLength=length*BYTES;buffer=new $ArrayBuffer(byteLength)}else if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){buffer=data;offset=toOffset($offset,BYTES);var $len=data.byteLength;if($length===undefined){if($len%BYTES)throw RangeError(WRONG_LENGTH);byteLength=$len-offset;if(byteLength<0)throw RangeError(WRONG_LENGTH)}else{byteLength=toLength($length)*BYTES;if(byteLength+offset>$len)throw RangeError(WRONG_LENGTH)}length=byteLength/BYTES}else if(TYPED_ARRAY in data){return fromList(TypedArray,data)}else{return $from.call(TypedArray,data)}hide(that,"_d",{b:buffer,o:offset,l:byteLength,e:length,v:new $DataView(buffer)});while(index<length)addElement(that,index++)});TypedArrayPrototype=TypedArray[PROTOTYPE]=create($TypedArrayPrototype$);hide(TypedArrayPrototype,"constructor",TypedArray)}else if(!fails(function(){TypedArray(1)})||!fails(function(){new TypedArray(-1)})||!$iterDetect(function(iter){new TypedArray;new TypedArray(null);new TypedArray(1.5);new TypedArray(iter)},true)){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME);var klass;if(!isObject(data))return new Base(toIndex(data));if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){return $length!==undefined?new Base(data,toOffset($offset,BYTES),$length):$offset!==undefined?new Base(data,toOffset($offset,BYTES)):new Base(data)}if(TYPED_ARRAY in data)return fromList(TypedArray,data);return $from.call(TypedArray,data)});arrayForEach(TAC!==Function.prototype?gOPN(Base).concat(gOPN(TAC)):gOPN(Base),function(key){if(!(key in TypedArray))hide(TypedArray,key,Base[key])});TypedArray[PROTOTYPE]=TypedArrayPrototype;if(!LIBRARY)TypedArrayPrototype.constructor=TypedArray}var $nativeIterator=TypedArrayPrototype[ITERATOR];var CORRECT_ITER_NAME=!!$nativeIterator&&($nativeIterator.name=="values"||$nativeIterator.name==undefined);var $iterator=$iterators.values;hide(TypedArray,TYPED_CONSTRUCTOR,true);hide(TypedArrayPrototype,TYPED_ARRAY,NAME);hide(TypedArrayPrototype,VIEW,true);hide(TypedArrayPrototype,DEF_CONSTRUCTOR,TypedArray);if(CLAMPED?new TypedArray(1)[TAG]!=NAME:!(TAG in TypedArrayPrototype)){dP(TypedArrayPrototype,TAG,{get:function(){return NAME}})}O[NAME]=TypedArray;$export($export.G+$export.W+$export.F*(TypedArray!=Base),O);$export($export.S,NAME,{BYTES_PER_ELEMENT:BYTES});$export($export.S+$export.F*fails(function(){Base.of.call(TypedArray,1)}),NAME,{from:$from,of:$of});if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype,BYTES_PER_ELEMENT,BYTES);$export($export.P,NAME,proto);setSpecies(NAME);$export($export.P+$export.F*FORCED_SET,NAME,{set:$set});$export($export.P+$export.F*!CORRECT_ITER_NAME,NAME,$iterators);if(!LIBRARY&&TypedArrayPrototype.toString!=arrayToString)TypedArrayPrototype.toString=arrayToString;$export($export.P+$export.F*fails(function(){new TypedArray(1).slice()}),NAME,{slice:$slice});$export($export.P+$export.F*(fails(function(){return[1,2].toLocaleString()!=new TypedArray([1,2]).toLocaleString()})||!fails(function(){TypedArrayPrototype.toLocaleString.call([1,2])})),NAME,{toLocaleString:$toLocaleString});Iterators[NAME]=CORRECT_ITER_NAME?$nativeIterator:$iterator;if(!LIBRARY&&!CORRECT_ITER_NAME)hide(TypedArrayPrototype,ITERATOR,$iterator)}}else module.exports=function(){}},function(module,exports,__webpack_require__){__webpack_require__(316)("Uint8",1,function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Uint8",1,function(init){return function Uint8ClampedArray(data,byteOffset,length){return init(this,data,byteOffset,length)}},true)},function(module,exports,__webpack_require__){__webpack_require__(316)("Int16",2,function(init){return function Int16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Uint16",2,function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Int32",4,function(init){return function Int32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Uint32",4,function(init){return function Uint32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Float32",4,function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){__webpack_require__(316)("Float64",8,function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var aFunction=__webpack_require__(105);var anObject=__webpack_require__(93);var rApply=(__webpack_require__(85).Reflect||{}).apply;var fApply=Function.apply;$export($export.S+$export.F*!__webpack_require__(88)(function(){rApply(function(){})}),"Reflect",{apply:function apply(target,thisArgument,argumentsList){var T=aFunction(target);var L=anObject(argumentsList);return rApply?rApply(T,thisArgument,L):fApply.call(T,thisArgument,L)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var create=__webpack_require__(128);var aFunction=__webpack_require__(105);var anObject=__webpack_require__(93);var isObject=__webpack_require__(94);var fails=__webpack_require__(88);var bind=__webpack_require__(158);var rConstruct=(__webpack_require__(85).Reflect||{}).construct;var NEW_TARGET_BUG=fails(function(){function F(){}return!(rConstruct(function(){},[],F)instanceof F)});var ARGS_BUG=!fails(function(){rConstruct(function(){})});$export($export.S+$export.F*(NEW_TARGET_BUG||ARGS_BUG),"Reflect",{construct:function construct(Target,args){aFunction(Target);anObject(args);var newTarget=arguments.length<3?Target:aFunction(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return rConstruct(Target,args,newTarget);if(Target==newTarget){switch(args.length){case 0:return new Target;case 1:return new Target(args[0]);case 2:return new Target(args[0],args[1]);case 3:return new Target(args[0],args[1],args[2]);case 4:return new Target(args[0],args[1],args[2],args[3])}var $args=[null];$args.push.apply($args,args);return new(bind.apply(Target,$args))}var proto=newTarget.prototype;var instance=create(isObject(proto)?proto:Object.prototype);var result=Function.apply.call(Target,instance,args);return isObject(result)?result:instance}})},function(module,exports,__webpack_require__){var dP=__webpack_require__(92);var $export=__webpack_require__(89);var anObject=__webpack_require__(93);var toPrimitive=__webpack_require__(97);$export($export.S+$export.F*__webpack_require__(88)(function(){Reflect.defineProperty(dP.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function defineProperty(target,propertyKey,attributes){anObject(target);propertyKey=toPrimitive(propertyKey,true);anObject(attributes);try{dP.f(target,propertyKey,attributes);return true}catch(e){return false}}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var gOPD=__webpack_require__(133).f;var anObject=__webpack_require__(93);$export($export.S,"Reflect",{deleteProperty:function deleteProperty(target,propertyKey){var desc=gOPD(anObject(target),propertyKey);return desc&&!desc.configurable?false:delete target[propertyKey]}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var anObject=__webpack_require__(93);var Enumerate=function(iterated){this._t=anObject(iterated);this._i=0;var keys=this._k=[];var key;for(key in iterated)keys.push(key)};__webpack_require__(212)(Enumerate,"Object",function(){var that=this;var keys=that._k;var key;do{if(that._i>=keys.length)return{value:undefined,done:true}}while(!((key=keys[that._i++])in that._t));return{value:key,done:false}});$export($export.S,"Reflect",{enumerate:function enumerate(target){return new Enumerate(target)}})},function(module,exports,__webpack_require__){var gOPD=__webpack_require__(133);var getPrototypeOf=__webpack_require__(140);var has=__webpack_require__(86);var $export=__webpack_require__(89);var isObject=__webpack_require__(94);var anObject=__webpack_require__(93);function get(target,propertyKey){var receiver=arguments.length<3?target:arguments[2];var desc,proto;if(anObject(target)===receiver)return target[propertyKey];if(desc=gOPD.f(target,propertyKey))return has(desc,"value")?desc.value:desc.get!==undefined?desc.get.call(receiver):undefined;if(isObject(proto=getPrototypeOf(target)))return get(proto,propertyKey,receiver)}$export($export.S,"Reflect",{get:get})},function(module,exports,__webpack_require__){var gOPD=__webpack_require__(133);var $export=__webpack_require__(89);var anObject=__webpack_require__(93);$export($export.S,"Reflect",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(target,propertyKey){return gOPD.f(anObject(target),propertyKey)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var getProto=__webpack_require__(140);var anObject=__webpack_require__(93);$export($export.S,"Reflect",{getPrototypeOf:function getPrototypeOf(target){return getProto(anObject(target))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Reflect",{has:function has(target,propertyKey){return propertyKey in target}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var anObject=__webpack_require__(93);var $isExtensible=Object.isExtensible;$export($export.S,"Reflect",{isExtensible:function isExtensible(target){anObject(target);return $isExtensible?$isExtensible(target):true}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Reflect",{ownKeys:__webpack_require__(336)})},function(module,exports,__webpack_require__){var gOPN=__webpack_require__(132);var gOPS=__webpack_require__(124);var anObject=__webpack_require__(93);var Reflect=__webpack_require__(85).Reflect;module.exports=Reflect&&Reflect.ownKeys||function ownKeys(it){var keys=gOPN.f(anObject(it));var getSymbols=gOPS.f;return getSymbols?keys.concat(getSymbols(it)):keys}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var anObject=__webpack_require__(93);var $preventExtensions=Object.preventExtensions;$export($export.S,"Reflect",{preventExtensions:function preventExtensions(target){anObject(target);try{if($preventExtensions)$preventExtensions(target);return true}catch(e){return false}}})},function(module,exports,__webpack_require__){var dP=__webpack_require__(92);var gOPD=__webpack_require__(133);var getPrototypeOf=__webpack_require__(140);var has=__webpack_require__(86);var $export=__webpack_require__(89);var createDesc=__webpack_require__(98);var anObject=__webpack_require__(93);var isObject=__webpack_require__(94);function set(target,propertyKey,V){var receiver=arguments.length<4?target:arguments[3];var ownDesc=gOPD.f(anObject(target),propertyKey);var existingDescriptor,proto;if(!ownDesc){if(isObject(proto=getPrototypeOf(target))){return set(proto,propertyKey,V,receiver)}ownDesc=createDesc(0)}if(has(ownDesc,"value")){if(ownDesc.writable===false||!isObject(receiver))return false;if(existingDescriptor=gOPD.f(receiver,propertyKey)){if(existingDescriptor.get||existingDescriptor.set||existingDescriptor.writable===false)return false;existingDescriptor.value=V;dP.f(receiver,propertyKey,existingDescriptor)}else dP.f(receiver,propertyKey,createDesc(0,V));return true}return ownDesc.set===undefined?false:(ownDesc.set.call(receiver,V),true)}$export($export.S,"Reflect",{set:set})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var setProto=__webpack_require__(154);if(setProto)$export($export.S,"Reflect",{setPrototypeOf:function setPrototypeOf(target,proto){setProto.check(target,proto);try{setProto.set(target,proto);return true}catch(e){return false}}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $includes=__webpack_require__(118)(true);$export($export.P,"Array",{includes:function includes(el){return $includes(this,el,arguments.length>1?arguments[1]:undefined)}});__webpack_require__(269)("includes")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var flattenIntoArray=__webpack_require__(342);var toObject=__webpack_require__(127);var toLength=__webpack_require__(119);var aFunction=__webpack_require__(105);var arraySpeciesCreate=__webpack_require__(256);$export($export.P,"Array",{flatMap:function flatMap(callbackfn){var O=toObject(this);var sourceLen,A;aFunction(callbackfn);sourceLen=toLength(O.length);A=arraySpeciesCreate(O,0);flattenIntoArray(A,O,O,sourceLen,0,1,callbackfn,arguments[1]);return A}});__webpack_require__(269)("flatMap")},function(module,exports,__webpack_require__){"use strict";var isArray=__webpack_require__(126);var isObject=__webpack_require__(94);var toLength=__webpack_require__(119);var ctx=__webpack_require__(104);var IS_CONCAT_SPREADABLE=__webpack_require__(108)("isConcatSpreadable");function flattenIntoArray(target,original,source,sourceLen,start,depth,mapper,thisArg){var targetIndex=start;var sourceIndex=0;var mapFn=mapper?ctx(mapper,thisArg,3):false;var element,spreadable;while(sourceIndex<sourceLen){if(sourceIndex in source){element=mapFn?mapFn(source[sourceIndex],sourceIndex,original):source[sourceIndex];spreadable=false;if(isObject(element)){spreadable=element[IS_CONCAT_SPREADABLE];spreadable=spreadable!==undefined?!!spreadable:isArray(element)}if(spreadable&&depth>0){targetIndex=flattenIntoArray(target,original,element,toLength(element.length),targetIndex,depth-1)-1}else{if(targetIndex>=9007199254740991)throw TypeError();target[targetIndex]=element}targetIndex++}sourceIndex++}return targetIndex}module.exports=flattenIntoArray},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var flattenIntoArray=__webpack_require__(342);var toObject=__webpack_require__(127);var toLength=__webpack_require__(119);var toInteger=__webpack_require__(120);var arraySpeciesCreate=__webpack_require__(256);$export($export.P,"Array",{flatten:function flatten(){var depthArg=arguments[0];var O=toObject(this);var sourceLen=toLength(O.length);var A=arraySpeciesCreate(O,0);flattenIntoArray(A,O,O,sourceLen,0,depthArg===undefined?1:toInteger(depthArg));return A}});__webpack_require__(269)("flatten")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $at=__webpack_require__(209)(true);var $fails=__webpack_require__(88);var FORCED=$fails(function(){return"𠮷".at(0)!=="𠮷"});$export($export.P+$export.F*FORCED,"String",{at:function at(pos){return $at(this,pos)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $pad=__webpack_require__(346);var userAgent=__webpack_require__(299);var WEBKIT_BUG=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);$export($export.P+$export.F*WEBKIT_BUG,"String",{padStart:function padStart(maxLength){return $pad(this,maxLength,arguments.length>1?arguments[1]:undefined,true)}})},function(module,exports,__webpack_require__){var toLength=__webpack_require__(119);var repeat=__webpack_require__(172);var defined=__webpack_require__(117);module.exports=function(that,maxLength,fillString,left){var S=String(defined(that));var stringLength=S.length;var fillStr=fillString===undefined?" ":String(fillString);var intMaxLength=toLength(maxLength);if(intMaxLength<=stringLength||fillStr=="")return S;var fillLen=intMaxLength-stringLength;var stringFiller=repeat.call(fillStr,Math.ceil(fillLen/fillStr.length));if(stringFiller.length>fillLen)stringFiller=stringFiller.slice(0,fillLen);return left?stringFiller+S:S+stringFiller}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var $pad=__webpack_require__(346);var userAgent=__webpack_require__(299);var WEBKIT_BUG=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);$export($export.P+$export.F*WEBKIT_BUG,"String",{padEnd:function padEnd(maxLength){return $pad(this,maxLength,arguments.length>1?arguments[1]:undefined,false)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(164)("trimLeft",function($trim){return function trimLeft(){return $trim(this,1)}},"trimStart")},function(module,exports,__webpack_require__){"use strict";__webpack_require__(164)("trimRight",function($trim){return function trimRight(){return $trim(this,2)}},"trimEnd")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var defined=__webpack_require__(117);var toLength=__webpack_require__(119);var isRegExp=__webpack_require__(216);var getFlags=__webpack_require__(279);var RegExpProto=RegExp.prototype;var $RegExpStringIterator=function(regexp,string){this._r=regexp;this._s=string};__webpack_require__(212)($RegExpStringIterator,"RegExp String",function next(){var match=this._r.exec(this._s);return{value:match,done:match===null}});$export($export.P,"String",{matchAll:function matchAll(regexp){defined(this);if(!isRegExp(regexp))throw TypeError(regexp+" is not a regexp!");var S=String(this);var flags="flags"in RegExpProto?String(regexp.flags):getFlags.call(regexp);var rx=new RegExp(regexp.source,~flags.indexOf("g")?flags:"g"+flags);rx.lastIndex=toLength(regexp.lastIndex);return new $RegExpStringIterator(rx,S)}})},function(module,exports,__webpack_require__){__webpack_require__(110)("asyncIterator")},function(module,exports,__webpack_require__){__webpack_require__(110)("observable")},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var ownKeys=__webpack_require__(336);var toIObject=__webpack_require__(114);var gOPD=__webpack_require__(133);var createProperty=__webpack_require__(246);$export($export.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){var O=toIObject(object);var getDesc=gOPD.f;var keys=ownKeys(O);var result={};var i=0;var key,desc;while(keys.length>i){desc=getDesc(O,key=keys[i++]);if(desc!==undefined)createProperty(result,key,desc)}return result}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $values=__webpack_require__(355)(false);$export($export.S,"Object",{values:function values(it){return $values(it)}})},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(87);var getKeys=__webpack_require__(112);var toIObject=__webpack_require__(114);var isEnum=__webpack_require__(125).f;module.exports=function(isEntries){return function(it){var O=toIObject(it);var keys=getKeys(O);var length=keys.length;var i=0;var result=[];var key;while(length>i){key=keys[i++];if(!DESCRIPTORS||isEnum.call(O,key)){result.push(isEntries?[key,O[key]]:O[key])}}return result}}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $entries=__webpack_require__(355)(true);$export($export.S,"Object",{entries:function entries(it){return $entries(it)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var aFunction=__webpack_require__(105);var $defineProperty=__webpack_require__(92);__webpack_require__(87)&&$export($export.P+__webpack_require__(358),"Object",{__defineGetter__:function __defineGetter__(P,getter){$defineProperty.f(toObject(this),P,{get:aFunction(getter),enumerable:true,configurable:true})}})},function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(103)||!__webpack_require__(88)(function(){var K=Math.random();__defineSetter__.call(null,K,function(){});delete __webpack_require__(85)[K]})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var aFunction=__webpack_require__(105);var $defineProperty=__webpack_require__(92);__webpack_require__(87)&&$export($export.P+__webpack_require__(358),"Object",{__defineSetter__:function __defineSetter__(P,setter){$defineProperty.f(toObject(this),P,{set:aFunction(setter),enumerable:true,configurable:true})}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var toPrimitive=__webpack_require__(97);var getPrototypeOf=__webpack_require__(140);var getOwnPropertyDescriptor=__webpack_require__(133).f;__webpack_require__(87)&&$export($export.P+__webpack_require__(358),"Object",{__lookupGetter__:function __lookupGetter__(P){var O=toObject(this);var K=toPrimitive(P,true);var D;do{if(D=getOwnPropertyDescriptor(O,K))return D.get}while(O=getPrototypeOf(O))}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var toObject=__webpack_require__(127);var toPrimitive=__webpack_require__(97);var getPrototypeOf=__webpack_require__(140);var getOwnPropertyDescriptor=__webpack_require__(133).f;__webpack_require__(87)&&$export($export.P+__webpack_require__(358),"Object",{__lookupSetter__:function __lookupSetter__(P){var O=toObject(this);var K=toPrimitive(P,true);var D;do{if(D=getOwnPropertyDescriptor(O,K))return D.set}while(O=getPrototypeOf(O))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P+$export.R,"Map",{toJSON:__webpack_require__(363)("Map")})},function(module,exports,__webpack_require__){var classof=__webpack_require__(156);var from=__webpack_require__(364);module.exports=function(NAME){return function toJSON(){if(classof(this)!=NAME)throw TypeError(NAME+"#toJSON isn't generic");return from(this)}}},function(module,exports,__webpack_require__){var forOf=__webpack_require__(294);module.exports=function(iter,ITERATOR){var result=[];forOf(iter,false,result.push,result,ITERATOR);return result}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.P+$export.R,"Set",{toJSON:__webpack_require__(363)("Set")})},function(module,exports,__webpack_require__){__webpack_require__(367)("Map")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{of:function of(){var length=arguments.length;var A=new Array(length);while(length--)A[length]=arguments[length];return new this(A)}})}},function(module,exports,__webpack_require__){__webpack_require__(367)("Set")},function(module,exports,__webpack_require__){__webpack_require__(367)("WeakMap")},function(module,exports,__webpack_require__){__webpack_require__(367)("WeakSet")},function(module,exports,__webpack_require__){__webpack_require__(372)("Map")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var aFunction=__webpack_require__(105);var ctx=__webpack_require__(104);var forOf=__webpack_require__(294);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{from:function from(source){var mapFn=arguments[1];var mapping,A,n,cb;aFunction(this);mapping=mapFn!==undefined;if(mapping)aFunction(mapFn);if(source==undefined)return new this;A=[];if(mapping){n=0;cb=ctx(mapFn,arguments[2],2);forOf(source,false,function(nextItem){A.push(cb(nextItem,n++))})}else{forOf(source,false,A.push,A)}return new this(A)}})}},function(module,exports,__webpack_require__){__webpack_require__(372)("Set")},function(module,exports,__webpack_require__){__webpack_require__(372)("WeakMap")},function(module,exports,__webpack_require__){__webpack_require__(372)("WeakSet")},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.G,{global:__webpack_require__(85)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"System",{global:__webpack_require__(85)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var cof=__webpack_require__(116);$export($export.S,"Error",{isError:function isError(it){return cof(it)==="Error"}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{clamp:function clamp(x,lower,upper){return Math.min(upper,Math.max(lower,x))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var RAD_PER_DEG=180/Math.PI;$export($export.S,"Math",{degrees:function degrees(radians){return radians*RAD_PER_DEG}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var scale=__webpack_require__(383);var fround=__webpack_require__(195);$export($export.S,"Math",{fscale:function fscale(x,inLow,inHigh,outLow,outHigh){return fround(scale(x,inLow,inHigh,outLow,outHigh))}})},function(module,exports){module.exports=Math.scale||function scale(x,inLow,inHigh,outLow,outHigh){if(arguments.length===0||x!=x||inLow!=inLow||inHigh!=inHigh||outLow!=outLow||outHigh!=outHigh)return NaN;if(x===Infinity||x===-Infinity)return x;return(x-inLow)*(outHigh-outLow)/(inHigh-inLow)+outLow}},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{iaddh:function iaddh(x0,x1,y0,y1){var $x0=x0>>>0;var $x1=x1>>>0;var $y0=y0>>>0;return $x1+(y1>>>0)+(($x0&$y0|($x0|$y0)&~($x0+$y0>>>0))>>>31)|0}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{isubh:function isubh(x0,x1,y0,y1){var $x0=x0>>>0;var $x1=x1>>>0;var $y0=y0>>>0;return $x1-(y1>>>0)-((~$x0&$y0|~($x0^$y0)&$x0-$y0>>>0)>>>31)|0}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{imulh:function imulh(u,v){var UINT16=65535;var $u=+u;var $v=+v;var u0=$u&UINT16;var v0=$v&UINT16;var u1=$u>>16;var v1=$v>>16;var t=(u1*v0>>>0)+(u0*v0>>>16);return u1*v1+(t>>16)+((u0*v1>>>0)+(t&UINT16)>>16)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var DEG_PER_RAD=Math.PI/180;$export($export.S,"Math",{radians:function radians(degrees){return degrees*DEG_PER_RAD}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{scale:__webpack_require__(383)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{umulh:function umulh(u,v){var UINT16=65535;var $u=+u;var $v=+v;var u0=$u&UINT16;var v0=$v&UINT16;var u1=$u>>>16;var v1=$v>>>16;var t=(u1*v0>>>0)+(u0*v0>>>16);return u1*v1+(t>>>16)+((u0*v1>>>0)+(t&UINT16)>>>16)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);$export($export.S,"Math",{signbit:function signbit(x){return(x=+x)!=x?x:x==0?1/x==Infinity:x>0}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var core=__webpack_require__(90);var global=__webpack_require__(85);var speciesConstructor=__webpack_require__(291);var promiseResolve=__webpack_require__(300);$export($export.P+$export.R,"Promise",{finally:function(onFinally){var C=speciesConstructor(this,core.Promise||global.Promise);var isFunction=typeof onFinally=="function";return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e})}:onFinally)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var newPromiseCapability=__webpack_require__(297);var perform=__webpack_require__(298);$export($export.S,"Promise",{try:function(callbackfn){var promiseCapability=newPromiseCapability.f(this);var result=perform(callbackfn);(result.e?promiseCapability.reject:promiseCapability.resolve)(result.v);return promiseCapability.promise}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var toMetaKey=metadata.key;var ordinaryDefineOwnMetadata=metadata.set;metadata.exp({defineMetadata:function defineMetadata(metadataKey,metadataValue,target,targetKey){ordinaryDefineOwnMetadata(metadataKey,metadataValue,anObject(target),toMetaKey(targetKey))}})},function(module,exports,__webpack_require__){var Map=__webpack_require__(302);var $export=__webpack_require__(89);var shared=__webpack_require__(102)("metadata");var store=shared.store||(shared.store=new(__webpack_require__(307)));var getOrCreateMetadataMap=function(target,targetKey,create){var targetMetadata=store.get(target);if(!targetMetadata){if(!create)return undefined;store.set(target,targetMetadata=new Map)}var keyMetadata=targetMetadata.get(targetKey);if(!keyMetadata){if(!create)return undefined;targetMetadata.set(targetKey,keyMetadata=new Map)}return keyMetadata};var ordinaryHasOwnMetadata=function(MetadataKey,O,P){var metadataMap=getOrCreateMetadataMap(O,P,false);return metadataMap===undefined?false:metadataMap.has(MetadataKey)};var ordinaryGetOwnMetadata=function(MetadataKey,O,P){var metadataMap=getOrCreateMetadataMap(O,P,false);return metadataMap===undefined?undefined:metadataMap.get(MetadataKey)};var ordinaryDefineOwnMetadata=function(MetadataKey,MetadataValue,O,P){getOrCreateMetadataMap(O,P,true).set(MetadataKey,MetadataValue)};var ordinaryOwnMetadataKeys=function(target,targetKey){var metadataMap=getOrCreateMetadataMap(target,targetKey,false);var keys=[];if(metadataMap)metadataMap.forEach(function(_,key){keys.push(key)});return keys};var toMetaKey=function(it){return it===undefined||typeof it=="symbol"?it:String(it)};var exp=function(O){$export($export.S,"Reflect",O)};module.exports={store:store,map:getOrCreateMetadataMap,has:ordinaryHasOwnMetadata,get:ordinaryGetOwnMetadata,set:ordinaryDefineOwnMetadata,keys:ordinaryOwnMetadataKeys,key:toMetaKey,exp:exp}},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var toMetaKey=metadata.key;var getOrCreateMetadataMap=metadata.map;var store=metadata.store;metadata.exp({deleteMetadata:function deleteMetadata(metadataKey,target){var targetKey=arguments.length<3?undefined:toMetaKey(arguments[2]);var metadataMap=getOrCreateMetadataMap(anObject(target),targetKey,false);if(metadataMap===undefined||!metadataMap["delete"](metadataKey))return false;if(metadataMap.size)return true;var targetMetadata=store.get(target);targetMetadata["delete"](targetKey);return!!targetMetadata.size||store["delete"](target)}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var getPrototypeOf=__webpack_require__(140);var ordinaryHasOwnMetadata=metadata.has;var ordinaryGetOwnMetadata=metadata.get;var toMetaKey=metadata.key;var ordinaryGetMetadata=function(MetadataKey,O,P){var hasOwn=ordinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return ordinaryGetOwnMetadata(MetadataKey,O,P);var parent=getPrototypeOf(O);return parent!==null?ordinaryGetMetadata(MetadataKey,parent,P):undefined};metadata.exp({getMetadata:function getMetadata(metadataKey,target){return ordinaryGetMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},function(module,exports,__webpack_require__){var Set=__webpack_require__(306);var from=__webpack_require__(364);var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var getPrototypeOf=__webpack_require__(140);var ordinaryOwnMetadataKeys=metadata.keys;var toMetaKey=metadata.key;var ordinaryMetadataKeys=function(O,P){var oKeys=ordinaryOwnMetadataKeys(O,P);var parent=getPrototypeOf(O);if(parent===null)return oKeys;var pKeys=ordinaryMetadataKeys(parent,P);return pKeys.length?oKeys.length?from(new Set(oKeys.concat(pKeys))):pKeys:oKeys};metadata.exp({getMetadataKeys:function getMetadataKeys(target){return ordinaryMetadataKeys(anObject(target),arguments.length<2?undefined:toMetaKey(arguments[1]))}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var ordinaryGetOwnMetadata=metadata.get;var toMetaKey=metadata.key;metadata.exp({getOwnMetadata:function getOwnMetadata(metadataKey,target){return ordinaryGetOwnMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var ordinaryOwnMetadataKeys=metadata.keys;var toMetaKey=metadata.key;metadata.exp({getOwnMetadataKeys:function getOwnMetadataKeys(target){return ordinaryOwnMetadataKeys(anObject(target),arguments.length<2?undefined:toMetaKey(arguments[1]))}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var getPrototypeOf=__webpack_require__(140);var ordinaryHasOwnMetadata=metadata.has;var toMetaKey=metadata.key;var ordinaryHasMetadata=function(MetadataKey,O,P){var hasOwn=ordinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return true;var parent=getPrototypeOf(O);return parent!==null?ordinaryHasMetadata(MetadataKey,parent,P):false};metadata.exp({hasMetadata:function hasMetadata(metadataKey,target){return ordinaryHasMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},function(module,exports,__webpack_require__){var metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var ordinaryHasOwnMetadata=metadata.has;var toMetaKey=metadata.key;metadata.exp({hasOwnMetadata:function hasOwnMetadata(metadataKey,target){return ordinaryHasOwnMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},function(module,exports,__webpack_require__){var $metadata=__webpack_require__(395);var anObject=__webpack_require__(93);var aFunction=__webpack_require__(105);var toMetaKey=$metadata.key;var ordinaryDefineOwnMetadata=$metadata.set;$metadata.exp({metadata:function metadata(metadataKey,metadataValue){return function decorator(target,targetKey){ordinaryDefineOwnMetadata(metadataKey,metadataValue,(targetKey!==undefined?anObject:aFunction)(target),toMetaKey(targetKey))}}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var microtask=__webpack_require__(296)();var process=__webpack_require__(85).process;var isNode=__webpack_require__(116)(process)=="process";$export($export.G,{asap:function asap(fn){var domain=isNode&&process.domain;microtask(domain?domain.bind(fn):fn)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(89);var global=__webpack_require__(85);var core=__webpack_require__(90);var microtask=__webpack_require__(296)();var OBSERVABLE=__webpack_require__(108)("observable");var aFunction=__webpack_require__(105);var anObject=__webpack_require__(93);var anInstance=__webpack_require__(293);var redefineAll=__webpack_require__(301);var hide=__webpack_require__(91);var forOf=__webpack_require__(294);var RETURN=forOf.RETURN;var getMethod=function(fn){return fn==null?undefined:aFunction(fn)};var cleanupSubscription=function(subscription){var cleanup=subscription._c;if(cleanup){subscription._c=undefined;cleanup()}};var subscriptionClosed=function(subscription){return subscription._o===undefined};var closeSubscription=function(subscription){if(!subscriptionClosed(subscription)){subscription._o=undefined;cleanupSubscription(subscription)}};var Subscription=function(observer,subscriber){anObject(observer);this._c=undefined;this._o=observer;observer=new SubscriptionObserver(this);try{var cleanup=subscriber(observer);var subscription=cleanup;if(cleanup!=null){if(typeof cleanup.unsubscribe==="function")cleanup=function(){subscription.unsubscribe()};else aFunction(cleanup);this._c=cleanup}}catch(e){observer.error(e);return}if(subscriptionClosed(this))cleanupSubscription(this)};Subscription.prototype=redefineAll({},{unsubscribe:function unsubscribe(){closeSubscription(this)}});var SubscriptionObserver=function(subscription){this._s=subscription};SubscriptionObserver.prototype=redefineAll({},{next:function next(value){var subscription=this._s;if(!subscriptionClosed(subscription)){var observer=subscription._o;try{var m=getMethod(observer.next);if(m)return m.call(observer,value)}catch(e){try{closeSubscription(subscription)}finally{throw e}}}},error:function error(value){var subscription=this._s;if(subscriptionClosed(subscription))throw value;var observer=subscription._o;subscription._o=undefined;try{var m=getMethod(observer.error);if(!m)throw value;value=m.call(observer,value)}catch(e){try{cleanupSubscription(subscription)}finally{throw e}}cleanupSubscription(subscription);return value},complete:function complete(value){var subscription=this._s;if(!subscriptionClosed(subscription)){var observer=subscription._o;subscription._o=undefined;try{var m=getMethod(observer.complete);value=m?m.call(observer,value):undefined}catch(e){try{cleanupSubscription(subscription)}finally{throw e}}cleanupSubscription(subscription);return value}}});var $Observable=function Observable(subscriber){anInstance(this,$Observable,"Observable","_f")._f=aFunction(subscriber)};redefineAll($Observable.prototype,{subscribe:function subscribe(observer){return new Subscription(observer,this._f)},forEach:function forEach(fn){var that=this;return new(core.Promise||global.Promise)(function(resolve,reject){aFunction(fn);var subscription=that.subscribe({next:function(value){try{return fn(value)}catch(e){reject(e);subscription.unsubscribe()}},error:reject,complete:resolve})})}});redefineAll($Observable,{from:function from(x){var C=typeof this==="function"?this:$Observable;var method=getMethod(anObject(x)[OBSERVABLE]);if(method){var observable=anObject(method.call(x));return observable.constructor===C?observable:new C(function(observer){return observable.subscribe(observer)})}return new C(function(observer){var done=false;microtask(function(){if(!done){try{if(forOf(x,false,function(it){observer.next(it);if(done)return RETURN})===RETURN)return}catch(e){if(done)throw e;observer.error(e);return}observer.complete()}});return function(){done=true}})},of:function of(){for(var i=0,l=arguments.length,items=new Array(l);i<l;)items[i]=arguments[i++];return new(typeof this==="function"?this:$Observable)(function(observer){var done=false;microtask(function(){if(!done){for(var j=0;j<items.length;++j){observer.next(items[j]);if(done)return}observer.complete()}});return function(){done=true}})}});hide($Observable.prototype,OBSERVABLE,function(){return this});$export($export.G,{Observable:$Observable});__webpack_require__(275)("Observable")},function(module,exports,__webpack_require__){var global=__webpack_require__(85);var $export=__webpack_require__(89);var userAgent=__webpack_require__(299);var slice=[].slice;var MSIE=/MSIE .\./.test(userAgent);var wrap=function(set){return function(fn,time){var boundArgs=arguments.length>2;var args=boundArgs?slice.call(arguments,2):false;return set(boundArgs?function(){(typeof fn=="function"?fn:Function(fn)).apply(this,args)}:fn,time)}};$export($export.G+$export.B+$export.F*MSIE,{setTimeout:wrap(global.setTimeout),setInterval:wrap(global.setInterval)})},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $task=__webpack_require__(295);$export($export.G+$export.B,{setImmediate:$task.set,clearImmediate:$task.clear})},function(module,exports,__webpack_require__){var $iterators=__webpack_require__(276);var getKeys=__webpack_require__(112);var redefine=__webpack_require__(99);var global=__webpack_require__(85);var hide=__webpack_require__(91);var Iterators=__webpack_require__(211);var wks=__webpack_require__(108);var ITERATOR=wks("iterator");var TO_STRING_TAG=wks("toStringTag");var ArrayValues=Iterators.Array;var DOMIterables={CSSRuleList:true,CSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,MimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,TextTrackCueList:false,TextTrackList:false,TouchList:false};for(var collections=getKeys(DOMIterables),i=0;i<collections.length;i++){var NAME=collections[i];var explicit=DOMIterables[NAME];var Collection=global[NAME];var proto=Collection&&Collection.prototype;var key;if(proto){if(!proto[ITERATOR])hide(proto,ITERATOR,ArrayValues);if(!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=ArrayValues;if(explicit)for(key in $iterators)if(!proto[key])redefine(proto,key,$iterators[key],true)}}},function(module,exports){(function(global){!function(global){"use strict";var Op=Object.prototype;var hasOwn=Op.hasOwnProperty;var undefined;var $Symbol=typeof Symbol==="function"?Symbol:{};var iteratorSymbol=$Symbol.iterator||"@@iterator";var asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator";var toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";var inModule=typeof module==="object";var runtime=global.regeneratorRuntime;if(runtime){if(inModule){module.exports=runtime}return}runtime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator;var generator=Object.create(protoGenerator.prototype);var context=new Context(tryLocsList||[]);generator._invoke=makeInvokeMethod(innerFn,self,context);return generator}runtime.wrap=wrap;function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}var GenStateSuspendedStart="suspendedStart";var GenStateSuspendedYield="suspendedYield";var GenStateExecuting="executing";var GenStateCompleted="completed";var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};IteratorPrototype[iteratorSymbol]=function(){return this};var getProto=Object.getPrototypeOf;var NativeIteratorPrototype=getProto&&getProto(getProto(values([])));if(NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)){IteratorPrototype=NativeIteratorPrototype}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunctionPrototype[toStringTagSymbol]=GeneratorFunction.displayName="GeneratorFunction";function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg)}})}runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun==="function"&&genFun.constructor;return ctor?ctor===GeneratorFunction||(ctor.displayName||ctor.name)==="GeneratorFunction":false};runtime.mark=function(genFun){if(Object.setPrototypeOf){Object.setPrototypeOf(genFun,GeneratorFunctionPrototype)}else{genFun.__proto__=GeneratorFunctionPrototype;if(!(toStringTagSymbol in genFun)){genFun[toStringTagSymbol]="GeneratorFunction"}}genFun.prototype=Object.create(Gp);return genFun};runtime.awrap=function(arg){return{__await:arg}};function AsyncIterator(generator){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if(record.type==="throw"){reject(record.arg)}else{var result=record.arg;var value=result.value;if(value&&typeof value==="object"&&hasOwn.call(value,"__await")){return Promise.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)})}return Promise.resolve(value).then(function(unwrapped){result.value=unwrapped;resolve(result)},reject)}}if(typeof global.process==="object"&&global.process.domain){invoke=global.process.domain.bind(invoke)}var previousPromise;function enqueue(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}this._invoke=enqueue}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[asyncIteratorSymbol]=function(){return this};runtime.AsyncIterator=AsyncIterator;runtime.async=function(innerFn,outerFn,self,tryLocsList){var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList));return runtime.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})};function makeInvokeMethod(innerFn,self,context){var state=GenStateSuspendedStart;return function invoke(method,arg){if(state===GenStateExecuting){throw new Error("Generator is already running")}if(state===GenStateCompleted){if(method==="throw"){throw arg}return doneResult()}context.method=method;context.arg=arg;while(true){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if(context.method==="next"){context.sent=context._sent=context.arg}else if(context.method==="throw"){if(state===GenStateSuspendedStart){state=GenStateCompleted;throw context.arg}context.dispatchException(context.arg)}else if(context.method==="return"){context.abrupt("return",context.arg)}state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type==="normal"){state=context.done?GenStateCompleted:GenStateSuspendedYield;if(record.arg===ContinueSentinel){continue}return{value:record.arg,done:context.done}}else if(record.type==="throw"){state=GenStateCompleted;context.method="throw";context.arg=record.arg}}}}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(method===undefined){context.delegate=null;if(context.method==="throw"){if(delegate.iterator.return){context.method="return";context.arg=undefined;maybeInvokeDelegate(delegate,context);if(context.method==="throw"){return ContinueSentinel}}context.method="throw";context.arg=new TypeError("The iterator does not provide a 'throw' method")}return ContinueSentinel}var record=tryCatch(method,delegate.iterator,context.arg);if(record.type==="throw"){context.method="throw";context.arg=record.arg;context.delegate=null;return ContinueSentinel}var info=record.arg;if(!info){context.method="throw";context.arg=new TypeError("iterator result is not an object");context.delegate=null;return ContinueSentinel}if(info.done){context[delegate.resultName]=info.value;context.next=delegate.nextLoc;if(context.method!=="return"){context.method="next";context.arg=undefined}}else{return info}context.delegate=null;return ContinueSentinel}defineIteratorMethods(Gp);Gp[toStringTagSymbol]="Generator";Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};function pushTryEntry(locs){var entry={tryLoc:locs[0]};if(1 in locs){entry.catchLoc=locs[1]}if(2 in locs){entry.finallyLoc=locs[2];entry.afterLoc=locs[3]}this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal";delete record.arg;entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}];tryLocsList.forEach(pushTryEntry,this);this.reset(true)}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key)}keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}next.done=true;return next}};function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod){return iteratorMethod.call(iterable)}if(typeof iterable.next==="function"){return iterable}if(!isNaN(iterable.length)){var i=-1,next=function next(){while(++i<iterable.length){if(hasOwn.call(iterable,i)){next.value=iterable[i];next.done=false;return next}}next.value=undefined;next.done=true;return next};return next.next=next}}return{next:doneResult}}runtime.values=values;function doneResult(){return{value:undefined,done:true}}Context.prototype={constructor:Context,reset:function(skipTempReset){this.prev=0;this.next=0;this.sent=this._sent=undefined;this.done=false;this.delegate=null;this.method="next";this.arg=undefined;this.tryEntries.forEach(resetTryEntry);if(!skipTempReset){for(var name in this){if(name.charAt(0)==="t"&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))){this[name]=undefined}}}},stop:function(){this.done=true;var rootEntry=this.tryEntries[0];var rootRecord=rootEntry.completion;if(rootRecord.type==="throw"){throw rootRecord.arg}return this.rval},dispatchException:function(exception){if(this.done){throw exception}var context=this;function handle(loc,caught){record.type="throw";record.arg=exception;context.next=loc;if(caught){context.method="next";context.arg=undefined}return!!caught}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}else if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else if(hasCatch){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}}else if(hasFinally){if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}if(finallyEntry&&(type==="break"||type==="continue")&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc){finallyEntry=null}var record=finallyEntry?finallyEntry.completion:{};record.type=type;record.arg=arg;if(finallyEntry){this.method="next";this.next=finallyEntry.finallyLoc;return ContinueSentinel}return this.complete(record)},complete:function(record,afterLoc){if(record.type==="throw"){throw record.arg}if(record.type==="break"||record.type==="continue"){this.next=record.arg}else if(record.type==="return"){this.rval=this.arg=record.arg;this.method="return";this.next="end"}else if(record.type==="normal"&&afterLoc){this.next=afterLoc}return ContinueSentinel},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method==="next"){this.arg=undefined}return ContinueSentinel}}}(typeof global==="object"?global:typeof window==="object"?window:typeof self==="object"?self:this)}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){__webpack_require__(411);module.exports=__webpack_require__(90).RegExp.escape},function(module,exports,__webpack_require__){var $export=__webpack_require__(89);var $re=__webpack_require__(412)(/[\\^$*+?.()|[\]{}]/g,"\\$&");$export($export.S,"RegExp",{escape:function escape(it){return $re(it)}})},function(module,exports){module.exports=function(regExp,replace){var replacer=replace===Object(replace)?function(part){return replace[part]}:replace;return function(it){return String(it).replace(regExp,replacer)}}},function(module,exports){module.exports=jQuery},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _regenerator=__webpack_require__(2);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(5);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _stringify=__webpack_require__(415);var _stringify2=_interopRequireDefault(_stringify);var _getOwnPropertyNames=__webpack_require__(417);var _getOwnPropertyNames2=_interopRequireDefault(_getOwnPropertyNames);var _promise=__webpack_require__(6);var _promise2=_interopRequireDefault(_promise);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _constants=__webpack_require__(423);var _constants2=_interopRequireDefault(_constants);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _authentication=__webpack_require__(424);var _authentication2=_interopRequireDefault(_authentication);var _jszip=__webpack_require__(449);var _jszip2=_interopRequireDefault(_jszip);var _jszipUtils=__webpack_require__(450);var _jszipUtils2=_interopRequireDefault(_jszipUtils);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Exercise=function(){function Exercise(id){(0,_classCallCheck3.default)(this,Exercise);this.baseUrl=_constants2.default.server+"/exercises/";this.id=id}(0,_createClass3.default)(Exercise,[{key:"fetch",value:function fetch(){var _this=this;return new _promise2.default(function(resolve,reject){resolve();return;if(_this.exercise!==undefined){resolve();return}_jquery2.default.ajax({beforeSend:_authentication2.default.xhrBasicAuthentication,data:{api_version:_constants2.default.apiVersion},success:function success(exercise){_this.exercise=exercise;resolve()},url:""+_this.baseUrl+_this.id+".json"})})}},{key:"localStorageKey",value:function localStorageKey(){var courseName="tmc-javascript-course-2";var exerciseName=this.id;return courseName+"-"+exerciseName}},{key:"storeCodeToLocalStorage",value:function storeCodeToLocalStorage(){var _this2=this;var currentFiles={};var filenames=(0,_getOwnPropertyNames2.default)(this.getFiles()).filter(function(o){return o.endsWith(".js")}).filter(function(o){return o.indexOf(".tmproject.yml")==-1});if(localStorage.getItem("showall")!=="true"){filenames=filenames.filter(function(o){return!o.endsWith("test.js")}).filter(function(o){return o.indexOf(".tmproject.yml")==-1})}filenames.sort().forEach(function(o){currentFiles[o]=_this2.zip.files[o].asText()});localStorage[this.localStorageKey()]=(0,_stringify2.default)(currentFiles)}},{key:"restoreCodeFromLocalStorage",value:function restoreCodeFromLocalStorage(){var _this3=this;if(!localStorage[this.localStorageKey()]){return}var localStorageFiles=JSON.parse(localStorage[this.localStorageKey()]);(0,_getOwnPropertyNames2.default)(localStorageFiles).forEach(function(filename){_this3.zip.file(filename,localStorageFiles[filename])})}},{key:"downloadZip",value:function downloadZip(url){var _this4=this;return new _promise2.default(function(resolve,reject){_jszipUtils2.default.getBinaryContent(url,function(error,data){if(error){throw new Error(error)}var zip=new _jszip2.default(data);_this4.zip=zip;_this4.getSourcePath();_this4.storeOriginalZip(zip);_this4.restoreCodeFromLocalStorage();_this4.storeCodeToLocalStorage();resolve()})})}},{key:"setZip",value:function setZip(zip){this.zip=zip;this.getSourcePath();this.storeOriginalZip(zip)}},{key:"fetchZip",value:function(){var _ref=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(){return _regenerator2.default.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",new _promise2.default(function(){var _ref2=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(resolve,reject){return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:if(!this.zip){_context.next=3;break}resolve();return _context.abrupt("return");case 3:_context.next=5;return this.downloadZip(""+this.baseUrl+this.id+".zip");case 5:resolve();case 6:case"end":return _context.stop()}}},_callee,this)}));return function(_x,_x2){return _ref2.apply(this,arguments)}}().bind(this)));case 1:case"end":return _context2.stop()}}},_callee2,this)}));function fetchZip(){return _ref.apply(this,arguments)}return fetchZip}()},{key:"storeOriginalZip",value:function storeOriginalZip(zip){var newZip=new _jszip2.default;zip.file(/.*/).forEach(function(file){newZip.file(file.name,file.asText())});this.originalZip=newZip}},{key:"reset",value:function reset(){var newZip=new _jszip2.default;this.originalZip.file(/.*/).forEach(function(file){newZip.file(file.name,file.asText())});this.zip=newZip;this.sourcePath=null;this.getSourcePath()}},{key:"submit",value:function submit(callback,fallback){if(this.zip===undefined){return}var formData=new FormData;formData.append("api_version",_constants2.default.apiVersion);formData.append("commit","Submit");formData.append("submission[file]",this.getZipBlob());_jquery2.default.ajax({data:formData,type:"POST",processData:false,contentType:false,url:""+this.baseUrl+this.id+"/submissions.json",beforeSend:_authentication2.default.xhrBasicAuthentication,success:callback,error:fallback})}},{key:"share",value:function share(callback,fallback){if(this.zip===undefined){return}var formData=new FormData;formData.append("api_version",_constants2.default.apiVersion);formData.append("commit","Submit");formData.append("submission[file]",this.getZipBlob());_jquery2.default.ajax({data:formData,type:"POST",processData:false,contentType:false,url:""+this.baseUrl+this.id+"/submissions.json?paste=1",beforeSend:_authentication2.default.xhrBasicAuthentication,success:callback,error:fallback})}},{key:"getName",value:function getName(){return this.getFilesFromSource()[0].name.split("/")[1]}},{key:"getShortName",value:function getShortName(){var title=this.getName();var index=title.indexOf("-");if(index>=0){title=title.substring(index+1)}return title}},{key:"getExerciseName",value:function getExerciseName(){var nameParts=this.getFilesFromSource()[0].name.split("/");return nameParts[0]+nameParts[1]}},{key:"getCourseName",value:function getCourseName(){return"javascript-course"}},{key:"getSourcePath",value:function getSourcePath(){if(this.sourcePath){return this.sourcePath}var name=this.getFilesFromSource()[0].name.split("/");name.pop();return this.sourcePath=name.join("/")}},{key:"getZipBlob",value:function getZipBlob(){return this.getZip({type:"blob"})}},{key:"getZip",value:function getZip(args){return this.zip.generate(args)}},{key:"getSrcZip",value:function getSrcZip(args){var zip=new _jszip2.default;this.getFilesFromSource().forEach(function(file){zip.file(file.name,file.asText())});return zip.generate(args)}},{key:"getFiles",value:function getFiles(){return this.zip.files}},{key:"getFile",value:function getFile(filename){return this.zip.file(filename)}},{key:"getAllFilesFromSource",value:function getAllFilesFromSource(){return this.zip.file(/.*\.js$/)}},{key:"getFilesFromSource",value:function getFilesFromSource(){return this.zip.file(/src(?!\/\.).*/).filter(function(o){return o.name.indexOf(".tmproject.yml")==-1})}},{key:"getTestFilesFromSource",value:function getTestFilesFromSource(){return this.zip.file(/test(?!\/\.).*/)}},{key:"getVisibleFilesFromSource",value:function getVisibleFilesFromSource(){return this.getFilesFromSource().filter(function(o){return o.name.endsWith(".js")}).filter(function(o){return!o.name.endsWith(".hidden.js")}).filter(function(o){return o.name.indexOf(".tmproject.yml")==-1})}},{key:"getFileExtension",value:function getFileExtension(filename){var lastSlashIndex=filename.lastIndexOf("/");if(lastSlashIndex!==-1){filename=filename.substring(lastSlashIndex+1)}var lastDotIndex=filename.lastIndexOf(".");if(lastDotIndex!==-1&&lastDotIndex!==0){return filename.substring(lastDotIndex+1)}return undefined}},{key:"getLockedRegions",value:function getLockedRegions(filename){var regions=[];var input=this.zip.file(filename).asText().split("\n");for(var i=0;i<input.length;i++){if(input[i].indexOf("// START LOCK")>-1){for(var j=i;j<input.length;j++){if(input[j].indexOf("// END LOCK")>-1){regions.push([i,j]);break}}}if(input[i].indexOf("// LOCK FROM BEGINNING")>-1){regions.push([0,i])}if(input[i].indexOf("// LOCK TO END")>-1){regions.push([i,input.length-1])}}return regions}},{key:"getFileLength",value:function getFileLength(filename){if(filename===undefined){console.warn("Filename is undefined");return-1}var input=this.zip.file(filename).asText().split("\n");return input.length}},{key:"saveFile",value:function saveFile(filename,content){this.zip.file(filename,content)}},{key:"removeFile",value:function removeFile(filename){this.zip.remove(filename)}},{key:"isCompleted",value:function isCompleted(){var completionKey="complete-"+this.localStorageKey();return localStorage[completionKey]==="true"}},{key:"setComplete",value:function setComplete(){var completionKey="complete-"+this.localStorageKey();localStorage[completionKey]="true";var exerciseContainer=document.getElementById("exercise-"+this.id);var completionIndicator=exerciseContainer.querySelector(".completion-status");completionIndicator.className+=" completed"}}]);return Exercise}();exports.default=Exercise},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(416),__esModule:true}},function(module,exports,__webpack_require__){var core=__webpack_require__(17);var $JSON=core.JSON||(core.JSON={stringify:JSON.stringify});module.exports=function stringify(it){return $JSON.stringify.apply($JSON,arguments)}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(418),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(419);var $Object=__webpack_require__(17).Object;module.exports=function getOwnPropertyNames(it){return $Object.getOwnPropertyNames(it)}},function(module,exports,__webpack_require__){__webpack_require__(420)("getOwnPropertyNames",function(){return __webpack_require__(421).f})},function(module,exports,__webpack_require__){var $export=__webpack_require__(15);var core=__webpack_require__(17);var fails=__webpack_require__(26);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(38);var gOPN=__webpack_require__(422).f;var toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):gOPN(toIObject(it))}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(37);var hiddenKeys=__webpack_require__(47).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default={server:"https://tmc.mooc.fi/staging",apiVersion:7}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _session=__webpack_require__(425);var _session2=_interopRequireDefault(_session);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Authentication=function(){function Authentication(){(0,_classCallCheck3.default)(this,Authentication)}(0,_createClass3.default)(Authentication,null,[{key:"getAuthenticationToken",value:function getAuthenticationToken(){var username=window.atob("dGhyb3dhd2F5LWY0ZTRiOWQw");var password=window.atob("OFlHajF1dzhOSEdlbmVqbGV0eHM=");return btoa(encodeURIComponent(username)+":"+encodeURIComponent(password))}},{key:"xhrBasicAuthentication",value:function xhrBasicAuthentication(xhr){xhr.setRequestHeader("Authorization","Basic "+Authentication.getAuthenticationToken())}}]);return Authentication}();exports.default=Authentication},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _promise=__webpack_require__(6);var _promise2=_interopRequireDefault(_promise);var _regenerator=__webpack_require__(2);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(5);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _constants=__webpack_require__(423);var _constants2=_interopRequireDefault(_constants);var _Login=__webpack_require__(426);var _Login2=_interopRequireDefault(_Login);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Session=function(){function Session(){(0,_classCallCheck3.default)(this,Session)}(0,_createClass3.default)(Session,null,[{key:"logout",value:function(){var _ref=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(){return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:localStorage.removeItem("username");localStorage.removeItem("password");_context.next=4;return Session.login();case 4:case"end":return _context.stop()}}},_callee,this)}));function logout(){return _ref.apply(this,arguments)}return logout}()},{key:"login",value:function login(){return new _promise2.default(function(resolve,reject){if(localStorage.username!==undefined&&localStorage.password!==undefined){resolve();return}var form=(0,_jquery2.default)((0,_Login2.default)({username:localStorage.username}));var status=(0,_jquery2.default)(".status",form);(0,_jquery2.default)("form",form).submit(function(){var formData=(0,_jquery2.default)("form",form).serialize();var username=(0,_jquery2.default)(".username",form).val();var password=(0,_jquery2.default)(".password",form).val();status.text("");_jquery2.default.post(_constants2.default.server+"/auth.text",formData,function(data){if(data==="OK"){form.remove();localStorage.username=localStorage.username=username;localStorage.password=localStorage.password=password;resolve()}else{status.text("Wrong username or password!")}});return false});(0,_jquery2.default)("body").append(form)})}},{key:"getUsername",value:function getUsername(){return localStorage.username}},{key:"getPassword",value:function getPassword(){return localStorage.password}}]);return Session}();exports.default=Session},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var helper,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return"<div class='tmc-exercise overlay'></div>\n\n<div class='tmc-exercise login'>\n\n <h1>TMC</h1>\n\n <p class='status'></p>\n\n <form method='post'>\n <div>\n <label>Username</label>\n <input class='username' name='username' required value='"+container.escapeExpression((helper=(helper=lookupProperty(helpers,"username")||(depth0!=null?lookupProperty(depth0,"username"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(depth0!=null?depth0:container.nullContext||{},{name:"username",hash:{},data:data,loc:{start:{line:12,column:62},end:{line:12,column:74}}}):helper))+"'>\n </div>\n\n <div>\n <label>Password</label>\n <input class='password' name='password' type='password' required>\n </div>\n <input type=\"submit\" value=\"Login\" class='login-button'>\n </form>\n\n</div>\n"},useData:true})},function(module,exports,__webpack_require__){module.exports=__webpack_require__(428)["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj["default"]=obj;return newObj}}var _handlebarsBase=__webpack_require__(429);var base=_interopRequireWildcard(_handlebarsBase);var _handlebarsSafeString=__webpack_require__(445);var _handlebarsSafeString2=_interopRequireDefault(_handlebarsSafeString);var _handlebarsException=__webpack_require__(431);var _handlebarsException2=_interopRequireDefault(_handlebarsException);var _handlebarsUtils=__webpack_require__(430);var Utils=_interopRequireWildcard(_handlebarsUtils);var _handlebarsRuntime=__webpack_require__(446);var runtime=_interopRequireWildcard(_handlebarsRuntime);var _handlebarsNoConflict=__webpack_require__(448);var _handlebarsNoConflict2=_interopRequireDefault(_handlebarsNoConflict);function create(){var hb=new base.HandlebarsEnvironment;Utils.extend(hb,base);hb.SafeString=_handlebarsSafeString2["default"];hb.Exception=_handlebarsException2["default"];hb.Utils=Utils;hb.escapeExpression=Utils.escapeExpression;hb.VM=runtime;hb.template=function(spec){return runtime.template(spec,hb)};return hb}var inst=create();inst.create=create;_handlebarsNoConflict2["default"](inst);inst["default"]=inst;exports["default"]=inst;module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.HandlebarsEnvironment=HandlebarsEnvironment;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _utils=__webpack_require__(430);var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);var _helpers=__webpack_require__(432);var _decorators=__webpack_require__(440);var _logger=__webpack_require__(442);var _logger2=_interopRequireDefault(_logger);var _internalProtoAccess=__webpack_require__(443);var VERSION="4.7.7";exports.VERSION=VERSION;var COMPILER_REVISION=8;exports.COMPILER_REVISION=COMPILER_REVISION;var LAST_COMPATIBLE_COMPILER_REVISION=7;exports.LAST_COMPATIBLE_COMPILER_REVISION=LAST_COMPATIBLE_COMPILER_REVISION;var REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};exports.REVISION_CHANGES=REVISION_CHANGES;var objectType="[object Object]";function HandlebarsEnvironment(helpers,partials,decorators){this.helpers=helpers||{};this.partials=partials||{};this.decorators=decorators||{};_helpers.registerDefaultHelpers(this);_decorators.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:_logger2["default"],log:_logger2["default"].log,registerHelper:function registerHelper(name,fn){if(_utils.toString.call(name)===objectType){if(fn){throw new _exception2["default"]("Arg not supported with multiple helpers")}_utils.extend(this.helpers,name)}else{this.helpers[name]=fn}},unregisterHelper:function unregisterHelper(name){delete this.helpers[name]},registerPartial:function registerPartial(name,partial){if(_utils.toString.call(name)===objectType){_utils.extend(this.partials,name)}else{if(typeof partial==="undefined"){throw new _exception2["default"]('Attempting to register a partial called "'+name+'" as undefined')}this.partials[name]=partial}},unregisterPartial:function unregisterPartial(name){delete this.partials[name]},registerDecorator:function registerDecorator(name,fn){if(_utils.toString.call(name)===objectType){if(fn){throw new _exception2["default"]("Arg not supported with multiple decorators")}_utils.extend(this.decorators,name)}else{this.decorators[name]=fn}},unregisterDecorator:function unregisterDecorator(name){delete this.decorators[name]},resetLoggedPropertyAccesses:function resetLoggedPropertyAccesses(){_internalProtoAccess.resetLoggedProperties()}};var log=_logger2["default"].log;exports.log=log;exports.createFrame=_utils.createFrame;exports.logger=_logger2["default"]},function(module,exports){"use strict";exports.__esModule=true;exports.extend=extend;exports.indexOf=indexOf;exports.escapeExpression=escapeExpression;exports.isEmpty=isEmpty;exports.createFrame=createFrame;exports.blockParams=blockParams;exports.appendContextPath=appendContextPath;var escape={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="};var badChars=/[&<>"'`=]/g,possible=/[&<>"'`=]/;function escapeChar(chr){return escape[chr]}function extend(obj){for(var i=1;i<arguments.length;i++){for(var key in arguments[i]){if(Object.prototype.hasOwnProperty.call(arguments[i],key)){obj[key]=arguments[i][key]}}}return obj}var toString=Object.prototype.toString;exports.toString=toString;var isFunction=function isFunction(value){return typeof value==="function"};if(isFunction(/x/)){exports.isFunction=isFunction=function(value){return typeof value==="function"&&toString.call(value)==="[object Function]"}}exports.isFunction=isFunction;var isArray=Array.isArray||function(value){return value&&typeof value==="object"?toString.call(value)==="[object Array]":false};exports.isArray=isArray;function indexOf(array,value){for(var i=0,len=array.length;i<len;i++){if(array[i]===value){return i}}return-1}function escapeExpression(string){if(typeof string!=="string"){if(string&&string.toHTML){return string.toHTML()}else if(string==null){return""}else if(!string){return string+""}string=""+string}if(!possible.test(string)){return string}return string.replace(badChars,escapeChar)}function isEmpty(value){if(!value&&value!==0){return true}else if(isArray(value)&&value.length===0){return true}else{return false}}function createFrame(object){var frame=extend({},object);frame._parent=object;return frame}function blockParams(params,ids){params.path=ids;return params}function appendContextPath(contextPath,id){return(contextPath?contextPath+".":"")+id}},function(module,exports){"use strict";exports.__esModule=true;var errorProps=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Exception(message,node){var loc=node&&node.loc,line=undefined,endLineNumber=undefined,column=undefined,endColumn=undefined;if(loc){line=loc.start.line;endLineNumber=loc.end.line;column=loc.start.column;endColumn=loc.end.column;message+=" - "+line+":"+column}var tmp=Error.prototype.constructor.call(this,message);for(var idx=0;idx<errorProps.length;idx++){this[errorProps[idx]]=tmp[errorProps[idx]]}if(Error.captureStackTrace){Error.captureStackTrace(this,Exception)}try{if(loc){this.lineNumber=line;this.endLineNumber=endLineNumber;if(Object.defineProperty){Object.defineProperty(this,"column",{value:column,enumerable:true});Object.defineProperty(this,"endColumn",{value:endColumn,enumerable:true})}else{this.column=column;this.endColumn=endColumn}}}catch(nop){}}Exception.prototype=new Error;exports["default"]=Exception;module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.registerDefaultHelpers=registerDefaultHelpers;exports.moveHelperToHooks=moveHelperToHooks;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _helpersBlockHelperMissing=__webpack_require__(433);var _helpersBlockHelperMissing2=_interopRequireDefault(_helpersBlockHelperMissing);var _helpersEach=__webpack_require__(434);var _helpersEach2=_interopRequireDefault(_helpersEach);var _helpersHelperMissing=__webpack_require__(435);var _helpersHelperMissing2=_interopRequireDefault(_helpersHelperMissing);var _helpersIf=__webpack_require__(436);var _helpersIf2=_interopRequireDefault(_helpersIf);var _helpersLog=__webpack_require__(437);var _helpersLog2=_interopRequireDefault(_helpersLog);var _helpersLookup=__webpack_require__(438);var _helpersLookup2=_interopRequireDefault(_helpersLookup);var _helpersWith=__webpack_require__(439);var _helpersWith2=_interopRequireDefault(_helpersWith);function registerDefaultHelpers(instance){_helpersBlockHelperMissing2["default"](instance);_helpersEach2["default"](instance);_helpersHelperMissing2["default"](instance);_helpersIf2["default"](instance);_helpersLog2["default"](instance);_helpersLookup2["default"](instance);_helpersWith2["default"](instance)}function moveHelperToHooks(instance,helperName,keepHelper){if(instance.helpers[helperName]){instance.hooks[helperName]=instance.helpers[helperName];if(!keepHelper){delete instance.helpers[helperName]}}}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _utils=__webpack_require__(430);exports["default"]=function(instance){instance.registerHelper("blockHelperMissing",function(context,options){var inverse=options.inverse,fn=options.fn;if(context===true){return fn(this)}else if(context===false||context==null){return inverse(this)}else if(_utils.isArray(context)){if(context.length>0){if(options.ids){options.ids=[options.name]}return instance.helpers.each(context,options)}else{return inverse(this)}}else{if(options.data&&options.ids){var data=_utils.createFrame(options.data);data.contextPath=_utils.appendContextPath(options.data.contextPath,options.name);options={data:data}}return fn(context,options)}})};module.exports=exports["default"]},function(module,exports,__webpack_require__){(function(global){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _utils=__webpack_require__(430);var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);exports["default"]=function(instance){instance.registerHelper("each",function(context,options){if(!options){throw new _exception2["default"]("Must pass iterator to #each")}var fn=options.fn,inverse=options.inverse,i=0,ret="",data=undefined,contextPath=undefined;if(options.data&&options.ids){contextPath=_utils.appendContextPath(options.data.contextPath,options.ids[0])+"."}if(_utils.isFunction(context)){context=context.call(this)}if(options.data){data=_utils.createFrame(options.data)}function execIteration(field,index,last){if(data){data.key=field;data.index=index;data.first=index===0;data.last=!!last;if(contextPath){data.contextPath=contextPath+field}}ret=ret+fn(context[field],{data:data,blockParams:_utils.blockParams([context[field],field],[contextPath+field,null])})}if(context&&typeof context==="object"){if(_utils.isArray(context)){for(var j=context.length;i<j;i++){if(i in context){execIteration(i,i,i===context.length-1)}}}else if(global.Symbol&&context[global.Symbol.iterator]){var newContext=[];var iterator=context[global.Symbol.iterator]();for(var it=iterator.next();!it.done;it=iterator.next()){newContext.push(it.value)}context=newContext;for(var j=context.length;i<j;i++){execIteration(i,i,i===context.length-1)}}else{(function(){var priorKey=undefined;Object.keys(context).forEach(function(key){if(priorKey!==undefined){execIteration(priorKey,i-1)}priorKey=key;i++});if(priorKey!==undefined){execIteration(priorKey,i-1,true)}})()}}if(i===0){ret=inverse(this)}return ret})};module.exports=exports["default"]}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);exports["default"]=function(instance){instance.registerHelper("helperMissing",function(){if(arguments.length===1){return undefined}else{throw new _exception2["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}})};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _utils=__webpack_require__(430);var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);exports["default"]=function(instance){instance.registerHelper("if",function(conditional,options){if(arguments.length!=2){throw new _exception2["default"]("#if requires exactly one argument")}if(_utils.isFunction(conditional)){conditional=conditional.call(this)}if(!options.hash.includeZero&&!conditional||_utils.isEmpty(conditional)){return options.inverse(this)}else{return options.fn(this)}});instance.registerHelper("unless",function(conditional,options){if(arguments.length!=2){throw new _exception2["default"]("#unless requires exactly one argument")}return instance.helpers["if"].call(this,conditional,{fn:options.inverse,inverse:options.fn,hash:options.hash})})};module.exports=exports["default"]},function(module,exports){"use strict";exports.__esModule=true;exports["default"]=function(instance){instance.registerHelper("log",function(){var args=[undefined],options=arguments[arguments.length-1];for(var i=0;i<arguments.length-1;i++){args.push(arguments[i])}var level=1;if(options.hash.level!=null){level=options.hash.level}else if(options.data&&options.data.level!=null){level=options.data.level}args[0]=level;instance.log.apply(instance,args)})};module.exports=exports["default"]},function(module,exports){"use strict";exports.__esModule=true;exports["default"]=function(instance){instance.registerHelper("lookup",function(obj,field,options){if(!obj){return obj}return options.lookupProperty(obj,field)})};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _utils=__webpack_require__(430);var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);exports["default"]=function(instance){instance.registerHelper("with",function(context,options){if(arguments.length!=2){throw new _exception2["default"]("#with requires exactly one argument")}if(_utils.isFunction(context)){context=context.call(this)}var fn=options.fn;if(!_utils.isEmpty(context)){var data=options.data;if(options.data&&options.ids){data=_utils.createFrame(options.data);data.contextPath=_utils.appendContextPath(options.data.contextPath,options.ids[0])}return fn(context,{data:data,blockParams:_utils.blockParams([context],[data&&data.contextPath])})}else{return options.inverse(this)}})};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.registerDefaultDecorators=registerDefaultDecorators;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _decoratorsInline=__webpack_require__(441);var _decoratorsInline2=_interopRequireDefault(_decoratorsInline);function registerDefaultDecorators(instance){_decoratorsInline2["default"](instance)}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _utils=__webpack_require__(430);exports["default"]=function(instance){instance.registerDecorator("inline",function(fn,props,container,options){var ret=fn;if(!props.partials){props.partials={};ret=function(context,options){var original=container.partials;container.partials=_utils.extend({},original,props.partials);var ret=fn(context,options);container.partials=original;return ret}}props.partials[options.args[0]]=options.fn;return ret})};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _utils=__webpack_require__(430);var logger={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function lookupLevel(level){if(typeof level==="string"){var levelMap=_utils.indexOf(logger.methodMap,level.toLowerCase());if(levelMap>=0){level=levelMap}else{level=parseInt(level,10)}}return level},log:function log(level){level=logger.lookupLevel(level);if(typeof console!=="undefined"&&logger.lookupLevel(logger.level)<=level){var method=logger.methodMap[level];if(!console[method]){method="log"}for(var _len=arguments.length,message=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){message[_key-1]=arguments[_key]}console[method].apply(console,message)}}};exports["default"]=logger;module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.createProtoAccessControl=createProtoAccessControl;exports.resultIsAllowed=resultIsAllowed;exports.resetLoggedProperties=resetLoggedProperties;function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj["default"]=obj;return newObj}}var _createNewLookupObject=__webpack_require__(444);var _logger=__webpack_require__(442);var logger=_interopRequireWildcard(_logger);var loggedProperties=Object.create(null);function createProtoAccessControl(runtimeOptions){var defaultMethodWhiteList=Object.create(null);defaultMethodWhiteList["constructor"]=false;defaultMethodWhiteList["__defineGetter__"]=false;defaultMethodWhiteList["__defineSetter__"]=false;defaultMethodWhiteList["__lookupGetter__"]=false;var defaultPropertyWhiteList=Object.create(null);defaultPropertyWhiteList["__proto__"]=false;return{properties:{whitelist:_createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList,runtimeOptions.allowedProtoProperties),defaultValue:runtimeOptions.allowProtoPropertiesByDefault},methods:{whitelist:_createNewLookupObject.createNewLookupObject(defaultMethodWhiteList,runtimeOptions.allowedProtoMethods),defaultValue:runtimeOptions.allowProtoMethodsByDefault}}}function resultIsAllowed(result,protoAccessControl,propertyName){if(typeof result==="function"){return checkWhiteList(protoAccessControl.methods,propertyName)}else{return checkWhiteList(protoAccessControl.properties,propertyName)}}function checkWhiteList(protoAccessControlForType,propertyName){if(protoAccessControlForType.whitelist[propertyName]!==undefined){return protoAccessControlForType.whitelist[propertyName]===true}if(protoAccessControlForType.defaultValue!==undefined){return protoAccessControlForType.defaultValue}logUnexpecedPropertyAccessOnce(propertyName);return false}function logUnexpecedPropertyAccessOnce(propertyName){if(loggedProperties[propertyName]!==true){loggedProperties[propertyName]=true;logger.log("error",'Handlebars: Access has been denied to resolve the property "'+propertyName+'" because it is not an "own property" of its parent.\n'+"You can add a runtime option to disable the check or this warning:\n"+"See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details")}}function resetLoggedProperties(){Object.keys(loggedProperties).forEach(function(propertyName){delete loggedProperties[propertyName]})}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.createNewLookupObject=createNewLookupObject;var _utils=__webpack_require__(430);function createNewLookupObject(){for(var _len=arguments.length,sources=Array(_len),_key=0;_key<_len;_key++){sources[_key]=arguments[_key]}return _utils.extend.apply(undefined,[Object.create(null)].concat(sources))}},function(module,exports){"use strict";exports.__esModule=true;function SafeString(string){this.string=string}SafeString.prototype.toString=SafeString.prototype.toHTML=function(){return""+this.string};exports["default"]=SafeString;module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.checkRevision=checkRevision;exports.template=template;exports.wrapProgram=wrapProgram;exports.resolvePartial=resolvePartial;exports.invokePartial=invokePartial;exports.noop=noop;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj["default"]=obj;return newObj}}var _utils=__webpack_require__(430);var Utils=_interopRequireWildcard(_utils);var _exception=__webpack_require__(431);var _exception2=_interopRequireDefault(_exception);var _base=__webpack_require__(429);var _helpers=__webpack_require__(432);var _internalWrapHelper=__webpack_require__(447);var _internalProtoAccess=__webpack_require__(443);function checkRevision(compilerInfo){var compilerRevision=compilerInfo&&compilerInfo[0]||1,currentRevision=_base.COMPILER_REVISION;if(compilerRevision>=_base.LAST_COMPATIBLE_COMPILER_REVISION&&compilerRevision<=_base.COMPILER_REVISION){return}if(compilerRevision<_base.LAST_COMPATIBLE_COMPILER_REVISION){var runtimeVersions=_base.REVISION_CHANGES[currentRevision],compilerVersions=_base.REVISION_CHANGES[compilerRevision];throw new _exception2["default"]("Template was precompiled with an older version of Handlebars than the current runtime. "+"Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").")}else{throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. "+"Please update your runtime to a newer version ("+compilerInfo[1]+").")}}function template(templateSpec,env){if(!env){throw new _exception2["default"]("No environment passed to template")}if(!templateSpec||!templateSpec.main){throw new _exception2["default"]("Unknown template object: "+typeof templateSpec)}templateSpec.main.decorator=templateSpec.main_d;env.VM.checkRevision(templateSpec.compiler);var templateWasPrecompiledWithCompilerV7=templateSpec.compiler&&templateSpec.compiler[0]===7;function invokePartialWrapper(partial,context,options){if(options.hash){context=Utils.extend({},context,options.hash);if(options.ids){options.ids[0]=true}}partial=env.VM.resolvePartial.call(this,partial,context,options);var extendedOptions=Utils.extend({},options,{hooks:this.hooks,protoAccessControl:this.protoAccessControl});var result=env.VM.invokePartial.call(this,partial,context,extendedOptions);if(result==null&&env.compile){options.partials[options.name]=env.compile(partial,templateSpec.compilerOptions,env);result=options.partials[options.name](context,extendedOptions)}if(result!=null){if(options.indent){var lines=result.split("\n");for(var i=0,l=lines.length;i<l;i++){if(!lines[i]&&i+1===l){break}lines[i]=options.indent+lines[i]}result=lines.join("\n")}return result}else{throw new _exception2["default"]("The partial "+options.name+" could not be compiled when running in runtime-only mode")}}var container={strict:function strict(obj,name,loc){if(!obj||!(name in obj)){throw new _exception2["default"]('"'+name+'" not defined in '+obj,{loc:loc})}return container.lookupProperty(obj,name)},lookupProperty:function lookupProperty(parent,propertyName){var result=parent[propertyName];if(result==null){return result}if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return result}if(_internalProtoAccess.resultIsAllowed(result,container.protoAccessControl,propertyName)){return result}return undefined},lookup:function lookup(depths,name){var len=depths.length;for(var i=0;i<len;i++){var result=depths[i]&&container.lookupProperty(depths[i],name);if(result!=null){return depths[i][name]}}},lambda:function lambda(current,context){return typeof current==="function"?current.call(context):current},escapeExpression:Utils.escapeExpression,invokePartial:invokePartialWrapper,fn:function fn(i){var ret=templateSpec[i];ret.decorator=templateSpec[i+"_d"];return ret},programs:[],program:function program(i,data,declaredBlockParams,blockParams,depths){var programWrapper=this.programs[i],fn=this.fn(i);if(data||depths||blockParams||declaredBlockParams){programWrapper=wrapProgram(this,i,fn,data,declaredBlockParams,blockParams,depths)}else if(!programWrapper){programWrapper=this.programs[i]=wrapProgram(this,i,fn)}return programWrapper},data:function data(value,depth){while(value&&depth--){value=value._parent}return value},mergeIfNeeded:function mergeIfNeeded(param,common){var obj=param||common;if(param&&common&¶m!==common){obj=Utils.extend({},common,param)}return obj},nullContext:Object.seal({}),noop:env.VM.noop,compilerInfo:templateSpec.compiler};function ret(context){var options=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var data=options.data;ret._setup(options);if(!options.partial&&templateSpec.useData){data=initData(context,data)}var depths=undefined,blockParams=templateSpec.useBlockParams?[]:undefined;if(templateSpec.useDepths){if(options.depths){depths=context!=options.depths[0]?[context].concat(options.depths):options.depths}else{depths=[context]}}function main(context){return""+templateSpec.main(container,context,container.helpers,container.partials,data,blockParams,depths)}main=executeDecorators(templateSpec.main,main,container,options.depths||[],data,blockParams);return main(context,options)}ret.isTop=true;ret._setup=function(options){if(!options.partial){var mergedHelpers=Utils.extend({},env.helpers,options.helpers);wrapHelpersToPassLookupProperty(mergedHelpers,container);container.helpers=mergedHelpers;if(templateSpec.usePartial){container.partials=container.mergeIfNeeded(options.partials,env.partials)}if(templateSpec.usePartial||templateSpec.useDecorators){container.decorators=Utils.extend({},env.decorators,options.decorators)}container.hooks={};container.protoAccessControl=_internalProtoAccess.createProtoAccessControl(options);var keepHelperInHelpers=options.allowCallsToHelperMissing||templateWasPrecompiledWithCompilerV7;_helpers.moveHelperToHooks(container,"helperMissing",keepHelperInHelpers);_helpers.moveHelperToHooks(container,"blockHelperMissing",keepHelperInHelpers)}else{container.protoAccessControl=options.protoAccessControl;container.helpers=options.helpers;container.partials=options.partials;container.decorators=options.decorators;container.hooks=options.hooks}};ret._child=function(i,data,blockParams,depths){if(templateSpec.useBlockParams&&!blockParams){throw new _exception2["default"]("must pass block params")}if(templateSpec.useDepths&&!depths){throw new _exception2["default"]("must pass parent depths")}return wrapProgram(container,i,templateSpec[i],data,0,blockParams,depths)};return ret}function wrapProgram(container,i,fn,data,declaredBlockParams,blockParams,depths){function prog(context){var options=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var currentDepths=depths;if(depths&&context!=depths[0]&&!(context===container.nullContext&&depths[0]===null)){currentDepths=[context].concat(depths)}return fn(container,context,container.helpers,container.partials,options.data||data,blockParams&&[options.blockParams].concat(blockParams),currentDepths)}prog=executeDecorators(fn,prog,container,depths,data,blockParams);prog.program=i;prog.depth=depths?depths.length:0;prog.blockParams=declaredBlockParams||0;return prog}function resolvePartial(partial,context,options){if(!partial){if(options.name==="@partial-block"){partial=options.data["partial-block"]}else{partial=options.partials[options.name]}}else if(!partial.call&&!options.name){options.name=partial;partial=options.partials[partial]}return partial}function invokePartial(partial,context,options){var currentPartialBlock=options.data&&options.data["partial-block"];options.partial=true;if(options.ids){options.data.contextPath=options.ids[0]||options.data.contextPath}var partialBlock=undefined;if(options.fn&&options.fn!==noop){(function(){options.data=_base.createFrame(options.data);var fn=options.fn;partialBlock=options.data["partial-block"]=function partialBlockWrapper(context){var options=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];options.data=_base.createFrame(options.data);options.data["partial-block"]=currentPartialBlock;return fn(context,options)};if(fn.partials){options.partials=Utils.extend({},options.partials,fn.partials)}})()}if(partial===undefined&&partialBlock){partial=partialBlock}if(partial===undefined){throw new _exception2["default"]("The partial "+options.name+" could not be found")}else if(partial instanceof Function){return partial(context,options)}}function noop(){return""}function initData(context,data){if(!data||!("root"in data)){data=data?_base.createFrame(data):{};data.root=context}return data}function executeDecorators(fn,prog,container,depths,data,blockParams){if(fn.decorator){var props={};prog=fn.decorator(prog,props,container,depths&&depths[0],data,blockParams,depths);Utils.extend(prog,props)}return prog}function wrapHelpersToPassLookupProperty(mergedHelpers,container){Object.keys(mergedHelpers).forEach(function(helperName){var helper=mergedHelpers[helperName];mergedHelpers[helperName]=passLookupPropertyOption(helper,container)})}function passLookupPropertyOption(helper,container){var lookupProperty=container.lookupProperty;return _internalWrapHelper.wrapHelper(helper,function(options){return Utils.extend({lookupProperty:lookupProperty},options)})}},function(module,exports){"use strict";exports.__esModule=true;exports.wrapHelper=wrapHelper;function wrapHelper(helper,transformOptionsFn){if(typeof helper!=="function"){return helper}var wrapper=function wrapper(){var options=arguments[arguments.length-1];arguments[arguments.length-1]=transformOptionsFn(options);return helper.apply(this,arguments)};return wrapper}},function(module,exports){(function(global){"use strict";exports.__esModule=true;exports["default"]=function(Handlebars){var root=typeof global!=="undefined"?global:window,$Handlebars=root.Handlebars;Handlebars.noConflict=function(){if(root.Handlebars===Handlebars){root.Handlebars=$Handlebars}return Handlebars}};module.exports=exports["default"]}).call(exports,function(){return this}())},function(module,exports){module.exports=JSZip},function(module,exports){module.exports=JSZipUtils},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _regenerator=__webpack_require__(2);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(5);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _ace=__webpack_require__(452);var _ace2=_interopRequireDefault(_ace);var _spyware=__webpack_require__(453);var _spyware2=_interopRequireDefault(_spyware);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _snapshot=__webpack_require__(454);var _snapshot2=_interopRequireDefault(_snapshot);var _output=__webpack_require__(455);var _output2=_interopRequireDefault(_output);var _execution=__webpack_require__(463);var _execution2=_interopRequireDefault(_execution);var _share=__webpack_require__(488);var _share2=_interopRequireDefault(_share);var _Editor=__webpack_require__(489);var _Editor2=_interopRequireDefault(_Editor);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Range=_ace2.default.require("ace/range").Range;var Editor=function(){function Editor(container,exercise){(0,_classCallCheck3.default)(this,Editor);this.container=container;this.offsetLeftFix=0;this.exercise=exercise;this.spyware=new _spyware2.default(exercise);this.snapshotCache={};this.folds=[];this.markers=[];this.lockedRegions=null;this.ranges=[];this.rangesNeedupdating=false;var editorContainer=(0,_jquery2.default)("<div/>");(0,_jquery2.default)(this.container).hide();(0,_jquery2.default)(this.container).append(editorContainer);this.editor=_ace2.default.edit(editorContainer.get(0));this.configure(this.editor);this.createOutputContainer()}(0,_createClass3.default)(Editor,[{key:"start",value:function(){var _ref=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(){var files,content;return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.next=2;return this.exercise.fetchZip();case 2:files=void 0;if(localStorage.getItem("showall")==="true"){files=this.exercise.getAllFilesFromSource()}else{files=this.exercise.getVisibleFilesFromSource()}this.filename=files[0].name;content=this.exercise.getFile(this.filename).asText();this.render(files);this.setFileMode(this.filename);this.show(content);this.createMarkers(this.filename);(0,_jquery2.default)(".tab-bar li",this.container).first().addClass("active");this.editor.on("change",this.snapshotHandler.bind(this));this.editor.on("change",this.saveToLocalStorageHandler.bind(this));case 13:case"end":return _context.stop()}}},_callee,this)}));function start(){return _ref.apply(this,arguments)}return start}()},{key:"configure",value:function configure(editor){editor.setPrintMarginColumn(false);editor.setDisplayIndentGuides(false);editor.getSession().setFoldStyle("markbeginend");editor.setTheme("ace/theme/tomorrow");editor.setFontSize(13);editor.getSession().setTabSize(4);editor.getSession().setUseWrapMode(true);editor.getSession().setWrapLimitRange(90,90);editor.getSession().setMode("ace/mode/javascript");editor.getSession().setOption("useWorker",false);editor.$blockScrolling=Infinity}},{key:"hideLockMarkers",value:function hideLockMarkers(){var _this=this;this.folds.forEach(function(fold){_this.editor.getSession().removeFold(fold)});this.lockedRegions.forEach(function(group){group.forEach(function(lockLine){if(lockLine===0){return}try{_this.folds.push(_this.editor.session.addFold("",new Range(lockLine,0,lockLine,900)))}catch(e){}})})}},{key:"createMarkers",value:function createMarkers(filename){var _this2=this;this.markers.forEach(function(marker){_this2.editor.getSession().removeMarker(marker)});this.markers=[];this.ranges=[];this.lockedRegions=this.exercise.getLockedRegions(filename);this.lockedRegions.forEach(function(limits){var range=new Range(limits[0],0,limits[1],900);_this2.markers.push(_this2.editor.session.addMarker(range,"readonly-highlight","fullLine"));_this2.ranges.push(range)});this.hideLockMarkers(filename)}},{key:"snapshotHandler",value:function snapshotHandler(e){if(this.filename===undefined){return}var previous=this.exercise.getFile(this.filename).asText();if(this.snapshotCache[this.filename]===undefined){var patch=_snapshot2.default.prototype.generatePatchData(this.filename,"",previous,true);this.spyware.add(new _snapshot2.default(this.exercise,"insertText",patch))}this.spyware.add(new _snapshot2.default(this.exercise,e.action,_snapshot2.default.prototype.generatePatchData(this.filename,previous,this.editor.getValue(),false)));this.snapshotCache[this.filename]=true;this.saveActiveFile()}},{key:"saveToLocalStorageHandler",value:function saveToLocalStorageHandler(){this.exercise.storeCodeToLocalStorage()}},{key:"generateFullSnapshot",value:function generateFullSnapshot(file,cause,onlyChanged){if(onlyChanged&&this.snapshotCache[file]!==true){return}if(this.snapshotCache[file]){this.snapshotCache[file]=false}var zip=this.exercise.getSrcZip({compression:"DEFLATE"});var metadata={cause:cause,file:file};var snapshot=new _snapshot2.default(this.exercise,"code_snapshot",zip,metadata);this.spyware.add(snapshot)}},{key:"createOutputContainer",value:function createOutputContainer(){this.output=new _output2.default(this.container,this.exercise.id)}},{key:"createResetHandler",value:function createResetHandler(){var _this3=this;(0,_jquery2.default)(".actions .reset",this.container).click(function(){_this3.exercise.reset();var files=_this3.exercise.getVisibleFilesFromSource();_this3.filename=files[0].name;var content=_this3.exercise.getFile(_this3.filename).asText();_this3.editor.setValue(content);_this3.createMarkers(_this3.filename);_this3.editor.moveCursorTo(0,0);(0,_jquery2.default)(".tab-bar li",_this3.container).removeClass("active");(0,_jquery2.default)(".tab-bar li",_this3.container).first().addClass("active")})}},{key:"createRunHandler",value:function createRunHandler(){var _this4=this;(0,_jquery2.default)(".actions .run",this.container).first().click(function(){var execution=new _execution2.default(_this4.exercise,_this4.output);execution.run()})}},{key:"render",value:function render(files){var attr={title:this.exercise.getShortName(),files:files.map(function(f){var name=f.name.split("/").pop();var path=f.name;return{name:name,path:path}}),completed:this.exercise.isCompleted()};(0,_jquery2.default)(this.container).prepend((0,_Editor2.default)(attr));this.navBar=(0,_jquery2.default)(".tab-bar",this.container).first();this.offsetLeftFix=(0,_jquery2.default)("li",this.navBar)[0].offsetLeft;(0,_jquery2.default)("li",this.navBar).click(this.tabClick.bind(this));var share=new _share2.default(this.container,this,this.exercise,this.spyware,this.output);share.handleClicks();this.createResetHandler();this.createRunHandler();this.createKeyboardHandler()}},{key:"createKeyboardHandler",value:function createKeyboardHandler(){var _this5=this;this.editor.on("input",function(){if(_this5.rangesNeedupdating){_this5.createMarkers(_this5.filename)}});this.editor.keyBinding.addKeyboardHandler({handleKeyboard:function handleKeyboard(data,hash,key,keyCode){if(_this5.rangesNeedupdating){_this5.createMarkers(_this5.filename)}if(hash===-1||keyCode<=40&&keyCode>=37){return false}if(_this5.editingProtectedArea()){return{command:"null",passEvent:false}}if(keyCode===13||keyCode===8||keyCode===46){_this5.rangesNeedupdating=true}return undefined}});this.preventEvent("onPaste");this.preventEvent("onCut")}},{key:"preventEvent",value:function preventEvent(methodName){var _this6=this;var orig=this.editor[methodName];this.editor[methodName]=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}if(_this6.editingProtectedArea()){return undefined}var originalReturn=orig.apply(_this6.editor,args);_this6.createMarkers(_this6.filename);return originalReturn}}},{key:"editingProtectedArea",value:function editingProtectedArea(){var selection=this.editor.getSelectionRange();for(var i=0;i<this.ranges.length;i++){if(selection.intersects(this.ranges[i])){return true}}return false}},{key:"show",value:function show(content){(0,_jquery2.default)(this.container).show();this.editor.setValue(content);this.editor.getSelection().clearSelection();this.editor.moveCursorTo(0,0);this.editor.getSession().setScrollTop(0)}},{key:"tabClick",value:function tabClick(event){this.saveActiveFile();this.generateFullSnapshot(this.filename,"file_change",true);this.clearEditor();this.changeFile((0,_jquery2.default)(event.target))}},{key:"changeFile",value:function changeFile(element){(0,_jquery2.default)(".tab-bar li",this.container).removeClass("active");element.addClass("active");var filename=element.attr("data-id");var content=this.exercise.getFile(filename).asText();this.setFileMode(filename);this.show(content);this.createMarkers(filename);this.filename=filename}},{key:"scrollToTab",value:function scrollToTab(element){this.navBar[0].scrollLeft=element[0].offsetLeft-this.offsetLeftFix-this.navBar.width()/2+element.width()/2}},{key:"setFileMode",value:function setFileMode(filename){var modes={c:"c_cpp",css:"css",h:"c_cpp",htm:"html",html:"html",java:"java",js:"javascript",json:"json",rb:"ruby",xml:"xml",yml:"yaml",py:"python"};var mode="text";var fileExtension=this.exercise.getFileExtension(filename);mode=modes[fileExtension]||mode;this.editor.getSession().setMode("ace/mode/"+mode)}},{key:"saveActiveFile",value:function saveActiveFile(){this.exercise.saveFile(this.filename,this.editor.getValue())}},{key:"clearEditor",value:function clearEditor(){this.filename=undefined;this.editor.setValue("")}}]);return Editor}();exports.default=Editor},function(module,exports){module.exports=ace},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _stringify=__webpack_require__(415);var _stringify2=_interopRequireDefault(_stringify);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _session=__webpack_require__(425);var _session2=_interopRequireDefault(_session);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Spyware=function(){function Spyware(exercise){(0,_classCallCheck3.default)(this,Spyware);this.exercise=exercise;this.snapshots=[];this.timedSubmit(.5*60*1e3)}(0,_createClass3.default)(Spyware,[{key:"add",value:function add(snapshot){this.snapshots.push(snapshot)}},{key:"submit",value:function submit(){return;var old=this.snapshots;this.snapshots=[];if(old.length===0){return}_jquery2.default.post("http://gzip.josalmi.fi/",{url:"http://staging.spyware.testmycode.net",data:(0,_stringify2.default)(old),username:_session2.default.getUsername(),password:_session2.default.getPassword()})}},{key:"timedSubmit",value:function timedSubmit(interval){setInterval(this.submit.bind(this),interval)}}]);return Spyware}();exports.default=Spyware},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _stringify=__webpack_require__(415);var _stringify2=_interopRequireDefault(_stringify);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Snapshot=function(){function Snapshot(exercise,action,data,metadata){(0,_classCallCheck3.default)(this,Snapshot);this.courseName=exercise.getCourseName();this.exerciseName=exercise.getExerciseName();this.eventType=this.getEventType(action);this.data=data;if(metadata!==undefined){this.metadata=(0,_stringify2.default)(metadata)}this.happenedAt=Date.now();this.systemNanotime=Math.round(window.performance.now())}(0,_createClass3.default)(Snapshot,[{key:"getEventType",value:function getEventType(action){var actions={insertText:"text_insert",insertLines:"text_insert",removeText:"text_remove",removeLines:"text_remove"};return actions[action]||action}},{key:"generatePatchData",value:function generatePatchData(name,oldData,newData,document){return Snapshot.generateBase64Json({file:name,patches:this.generatePatch(oldData,newData),full_document:document})}},{key:"generatePatch",value:function generatePatch(oldData,newData){var dmp=new diff_match_patch;var diff=dmp.diff_main(oldData,newData,true);if(diff.length>2){dmp.diff_cleanupSemantic(diff)}var patchList=dmp.patch_make(oldData,newData,diff);return dmp.patch_toText(patchList)}}],[{key:"generateBase64Json",value:function generateBase64Json(obj){return btoa((0,_stringify2.default)(obj))}}]);return Snapshot}();exports.default=Snapshot},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _from=__webpack_require__(456);var _from2=_interopRequireDefault(_from);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _clipboard=__webpack_require__(460);var _clipboard2=_interopRequireDefault(_clipboard);var _OutputContainer=__webpack_require__(461);var _OutputContainer2=_interopRequireDefault(_OutputContainer);var _ShareOutputContainer=__webpack_require__(462);var _ShareOutputContainer2=_interopRequireDefault(_ShareOutputContainer);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Output=function(){function Output(container,id){(0,_classCallCheck3.default)(this,Output);this.id=id;this.outputContainer=(0,_jquery2.default)("<div/>").addClass("tmc-output").addClass("hidden");this.wrapper=(0,_jquery2.default)("<div/>").addClass("tmc-output-wrapper").addClass("hidden");this.wrapper.append(this.outputContainer);(0,_jquery2.default)(container).append(this.wrapper);var gameArea=document.getElementById("game-"+this.id);this.hintContainer=gameArea.querySelector(".game-hint")}(0,_createClass3.default)(Output,[{key:"render",value:function render(text){var templateOptions={lines:text,title:"Ohjelman tulostus"};this._render(templateOptions)}},{key:"renderError",value:function renderError(errors){var templateOptions={lines:(0,_from2.default)(errors),title:"Korjaa koodistasi syntaksivirheet"};this._render(templateOptions)}},{key:"_render",value:function _render(templateOptions){var _this=this;this.templateOptions=templateOptions;templateOptions.hint=this.hint;templateOptions.passed=this.passed;this.clear();var html=(0,_jquery2.default)((0,_OutputContainer2.default)(templateOptions));html.find(".close").click(function(){_this.close()});this.outputContainer.append(html);this.wrapper.removeClass("hidden");this.outputContainer.removeClass("hidden")}},{key:"_renderGameHint",value:function _renderGameHint(){var _this2=this;var hintIcon='<i class="fa fa-lightbulb-o" aria-hidden="true"></i>';window.setTimeout(function(){_this2.hintContainer.innerHTML=hintIcon+_this2.hint},5e3)}},{key:"addHint",value:function addHint(hint,isGame){this.hint=hint;if(isGame){this._renderGameHint()}else{this._render(this.templateOptions)}}},{key:"addCompleteMessage",value:function addCompleteMessage(isGame){var _this3=this;this.passed=true;if(isGame){var hintIcon='<i class="fa fa-thumbs-o-up" aria-hidden="true"></i>';window.setTimeout(function(){_this3.hintContainer.innerHTML=hintIcon+"Tehtävä meni läpi."},5e3)}else{this.hint="Tehtävä meni läpi.";this._render(this.templateOptions)}}},{key:"renderShare",value:function renderShare(shareUrl){var _this4=this;this.clear();var newTemplate=_ShareOutputContainer2.default;var html=(0,_jquery2.default)(newTemplate({link_url:shareUrl}));html.find(".close").click(function(){_this4.close()});new _clipboard2.default(".copy-btn");this.outputContainer.append(html);this.outputContainer.removeClass("hidden");this.wrapper.removeClass("hidden")}},{key:"clear",value:function clear(){this.outputContainer.empty();this.hintContainer.textContent=""}},{key:"clearMetadata",value:function clearMetadata(){this.hint=undefined;this.passed=false}},{key:"close",value:function close(){this.outputContainer.addClass("hidden");this.wrapper.addClass("hidden")}},{key:"showShare",value:function showShare(shareUrl){this.renderShare(shareUrl)}}]);return Output}();exports.default=Output},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(457),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(9);__webpack_require__(458);module.exports=__webpack_require__(17).Array.from},function(module,exports,__webpack_require__){"use strict";var ctx=__webpack_require__(18);var $export=__webpack_require__(15);var toObject=__webpack_require__(52);var call=__webpack_require__(61);var isArrayIter=__webpack_require__(62);var toLength=__webpack_require__(42);var createProperty=__webpack_require__(459);var getIterFn=__webpack_require__(63);$export($export.S+$export.F*!__webpack_require__(74)(function(iter){Array.from(iter)}),"Array",{from:function from(arrayLike){var O=toObject(arrayLike);var C=typeof this=="function"?this:Array;var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var index=0;var iterFn=getIterFn(O);var length,result,step,iterator;if(mapping)mapfn=ctx(mapfn,aLen>2?arguments[2]:undefined,2);if(iterFn!=undefined&&!(C==Array&&isArrayIter(iterFn))){for(iterator=iterFn.call(O),result=new C;!(step=iterator.next()).done;index++){createProperty(result,index,mapping?call(iterator,mapfn,[step.value,index],true):step.value)}}else{length=toLength(O.length);for(result=new C(length);length>index;index++){createProperty(result,index,mapping?mapfn(O[index],index):O[index])}}result.length=index;return result}})},function(module,exports,__webpack_require__){"use strict";var $defineProperty=__webpack_require__(21);var createDesc=__webpack_require__(29);module.exports=function(object,index,value){if(index in object)$defineProperty.f(object,index,createDesc(0,value));else object[index]=value}},function(module,exports){module.exports=Clipboard},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({1:function(container,depth0,helpers,partials,data){return" <li>"+container.escapeExpression(container.lambda(depth0,depth0))+"</li>\n"},3:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=depth0!=null?depth0:container.nullContext||{},lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return" <div class='magic-hint'><i class=\"fa "+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"passed"):depth0,{name:"if",hash:{},fn:container.program(4,data,0),inverse:container.program(6,data,0),data:data,loc:{start:{line:15,column:41},end:{line:15,column:98}}}))!=null?stack1:"")+'" aria-hidden="true"></i>\n'+container.escapeExpression((helper=(helper=lookupProperty(helpers,"hint")||(depth0!=null?lookupProperty(depth0,"hint"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(alias1,{name:"hint",hash:{},data:data,loc:{start:{line:16,column:0},end:{line:16,column:8}}}):helper))+"</div>\n"},4:function(container,depth0,helpers,partials,data){return"fa-thumbs-o-up"},6:function(container,depth0,helpers,partials,data){return"fa-lightbulb-o"},compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=depth0!=null?depth0:container.nullContext||{},lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return"<section class='output-actions'>\n <i class='fa fa-close close'></i>\n</section>\n<div class=\"output-title\">\n <h2>"+container.escapeExpression((helper=(helper=lookupProperty(helpers,"title")||(depth0!=null?lookupProperty(depth0,"title"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(alias1,{name:"title",hash:{},data:data,loc:{start:{line:5,column:6},end:{line:5,column:15}}}):helper))+"\n </h2>\n</div>\n<div class='output-content'>\n <ul class='program-output'>\n"+((stack1=lookupProperty(helpers,"each").call(alias1,depth0!=null?lookupProperty(depth0,"lines"):depth0,{name:"each",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data,loc:{start:{line:10,column:4},end:{line:12,column:13}}}))!=null?stack1:"")+" </ul>\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"hint"):depth0,{name:"if",hash:{},fn:container.program(3,data,0),inverse:container.noop,data:data,loc:{start:{line:14,column:2},end:{line:17,column:9}}}))!=null?stack1:"")+"</div>\n"},useData:true})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var helper,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return'<section class=\'output-actions\'>\n <i class=\'fa fa-close close\'></i>\n</section>\n\n<div class="output-content">\n <p>Linkki jaettuun koodiin:</p>\n <div class="shared-code-url-area">\n <input id="shared-code-url" value='+container.escapeExpression((helper=(helper=lookupProperty(helpers,"link_url")||(depth0!=null?lookupProperty(depth0,"link_url"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(depth0!=null?depth0:container.nullContext||{},{name:"link_url",hash:{},data:data,loc:{start:{line:8,column:38},end:{line:8,column:50}}}):helper))+'>\n <button class="copy-btn" data-clipboard-target="#shared-code-url">\n Kopioi osoite\n </button>\n </div>\n</div>\n'},useData:true})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _regenerator=__webpack_require__(2);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(5);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _getOwnPropertyNames=__webpack_require__(417);var _getOwnPropertyNames2=_interopRequireDefault(_getOwnPropertyNames);var _set=__webpack_require__(464);var _set2=_interopRequireDefault(_set);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _test_run=__webpack_require__(482);var _test_run2=_interopRequireDefault(_test_run);var _Code=__webpack_require__(486);var _Code2=_interopRequireDefault(_Code);var _Game=__webpack_require__(487);var _Game2=_interopRequireDefault(_Game);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _bowser=__webpack_require__(484);var _bowser2=_interopRequireDefault(_bowser);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Execution=function(){function Execution(exercise,output){(0,_classCallCheck3.default)(this,Execution);this.exercise=exercise;this.id=this.exercise.id,this.output=output;this.messages=[];this.errors=new _set2.default;this.gameFrameReady=false;this.gameFrame=document.getElementById("game-frame-"+this.id);this.files=this.exercise.getFiles();this.isGame=Execution.determineIsGame(this.files);this.code=this.concatenateFilesToCode(this.files);this.secureExecutionSupported=!(_bowser2.default.msie||_bowser2.default.msedge)}(0,_createClass3.default)(Execution,[{key:"run",value:function run(){this.output.clearMetadata();this.output.clear();this.gameFrame.src="";setTimeout(this.doRun.bind(this),100)}},{key:"doRun",value:function doRun(){this.startIframeListener();if(this.isGame){(0,_jquery2.default)("#game-area-"+this.id).html("");(0,_jquery2.default)("#game-"+this.id).addClass("active");(0,_jquery2.default)("#background-overlay").addClass("active");(0,_jquery2.default)("body").addClass("overlay-open")}var gameTemplateString=(0,_Game2.default)({id:this.id,code:this.code,isGame:this.isGame});if(this.secureExecutionSupported){this.gameFrame.src="data:text/html;charset=utf-8,"+encodeURI(gameTemplateString)}else{var escapedTemplate=gameTemplateString.replace(/'/g,'"');var iframe=document.createElement("iframe");iframe.className="game-sandbox";iframe.id="game-frame-"+this.exercise.id;(0,_jquery2.default)(this.gameFrame).replaceWith(iframe);iframe.contentWindow.document.open();iframe.contentWindow.document.write(gameTemplateString);iframe.contentWindow.document.close();this.gameFrame=iframe}this.createStopGameHandler();this.waitForGameIframe()}},{key:"waitForGameIframe",value:function waitForGameIframe(){if(this.gameFrameReady){this.gameFrame.contentWindow.postMessage(this.code,"*");console.info("Sent the code to be executed")}else{console.info("Asking if the frame is ready.");this.gameFrame.contentWindow.postMessage("ready","*");window.setTimeout(this.waitForGameIframe.bind(this),100)}}},{key:"createStopGameHandler",value:function createStopGameHandler(){var _this=this;(0,_jquery2.default)("#stop-game-"+this.id).click(function(e){e.preventDefault();_this.stopGame()})}},{key:"stopGame",value:function stopGame(){(0,_jquery2.default)("#background-overlay").removeClass("active");(0,_jquery2.default)("body").removeClass("overlay-open");(0,_jquery2.default)("#game-"+this.id).removeClass("active");this.stopIframeListener();this.gameFrame.src=""}},{key:"concatenateFilesToCode",value:function concatenateFilesToCode(files){var code=(0,_getOwnPropertyNames2.default)(files).filter(function(o){return o.endsWith(".js")&&!o.endsWith("test.js")}).filter(function(o){return o.indexOf(".tmproject.yml")==-1}).sort().map(function(o){return files[o].asText()}).join("\n");return(0,_Code2.default)({code:code,exerciseId:this.id,isGame:this.isGame})}},{key:"startIframeListener",value:function startIframeListener(){var _this2=this;this.iframeListener=function(e){if(e.data.source===_this2.id){if(e.data.ready===true){console.info("Setting the game frame to be ready...");_this2.gameFrameReady=true}if(e.data.message){_this2.messages.push(e.data.message);_this2.output.render(_this2.messages)}if(e.data.error){_this2.stopGame();_this2.errors.add(e.data.error);_this2.output.renderError(_this2.errors);_this2.onEvaluationDone()}if(e.data.stop){_this2.stopGame()}if(e.data.evaluationDone){_this2.onEvaluationDone()}}};window.addEventListener("message",this.iframeListener)}},{key:"stopIframeListener",value:function stopIframeListener(){if(this.iframeListener===undefined){throw new Error("There is no iframe listener.")}window.removeEventListener("message",this.iframeListener)}},{key:"onEvaluationDone",value:function(){var _ref=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(){var test_run,results,failed;return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:console.info("Evaluation done.");test_run=new _test_run2.default(this.files);_context.next=4;return test_run.run();case 4:results=_context.sent;failed=results.failed;if(failed.length>0){this.output.addHint(failed[0].error,this.isGame)}else{this.exercise.setComplete();this.output.addCompleteMessage(this.isGame)}case 7:case"end":return _context.stop()}}},_callee,this)}));function onEvaluationDone(){return _ref.apply(this,arguments)}return onEvaluationDone}()}],[{key:"determineIsGame",value:function determineIsGame(files){var gameFiles=(0,_getOwnPropertyNames2.default)(files).filter(function(o){return o.endsWith("update.js")||o.endsWith("update.hidden.js")});return gameFiles.length>0}}]);return Execution}();exports.default=Execution},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(465),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(8);__webpack_require__(9);__webpack_require__(53);__webpack_require__(466);__webpack_require__(475);__webpack_require__(478);__webpack_require__(480);module.exports=__webpack_require__(17).Set},function(module,exports,__webpack_require__){"use strict";var strong=__webpack_require__(467);var validate=__webpack_require__(469);var SET="Set";module.exports=__webpack_require__(470)(SET,function(get){return function Set(){return get(this,arguments.length>0?arguments[0]:undefined)}},{add:function add(value){return strong.def(validate(this,SET),value=value===0?0:value,value)}},strong)},function(module,exports,__webpack_require__){"use strict";var dP=__webpack_require__(21).f;var create=__webpack_require__(34);var redefineAll=__webpack_require__(72);var ctx=__webpack_require__(18);var anInstance=__webpack_require__(59);var forOf=__webpack_require__(60);var $iterDefine=__webpack_require__(13);var step=__webpack_require__(56);var setSpecies=__webpack_require__(73);var DESCRIPTORS=__webpack_require__(25);var fastKey=__webpack_require__(468).fastKey;var validate=__webpack_require__(469);var SIZE=DESCRIPTORS?"_s":"size";var getEntry=function(that,key){var index=fastKey(key);var entry;if(index!=="F")return that._i[index];for(entry=that._f;entry;entry=entry.n){if(entry.k==key)return entry}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i");that._t=NAME;that._i=create(null);that._f=undefined;that._l=undefined;that[SIZE]=0;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});redefineAll(C.prototype,{clear:function clear(){for(var that=validate(this,NAME),data=that._i,entry=that._f;entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i]}that._f=that._l=undefined;that[SIZE]=0},delete:function(key){var that=validate(this,NAME);var entry=getEntry(that,key);if(entry){var next=entry.n;var prev=entry.p;delete that._i[entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that._f==entry)that._f=next;if(that._l==entry)that._l=prev;that[SIZE]--}return!!entry},forEach:function forEach(callbackfn){validate(this,NAME);var f=ctx(callbackfn,arguments.length>1?arguments[1]:undefined,3);var entry;while(entry=entry?entry.n:this._f){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function has(key){return!!getEntry(validate(this,NAME),key)}});if(DESCRIPTORS)dP(C.prototype,"size",{get:function(){return validate(this,NAME)[SIZE]}});return C},def:function(that,key,value){var entry=getEntry(that,key);var prev,index;if(entry){entry.v=value}else{that._l=entry={i:index=fastKey(key,true),k:key,v:value,p:prev=that._l,n:undefined,r:false};if(!that._f)that._f=entry;if(prev)prev.n=entry;that[SIZE]++;if(index!=="F")that._i[index]=entry}return that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){$iterDefine(C,NAME,function(iterated,kind){this._t=validate(iterated,NAME);this._k=kind;this._l=undefined},function(){var that=this;var kind=that._k;var entry=that._l;while(entry&&entry.r)entry=entry.p;if(!that._t||!(that._l=entry=entry?entry.n:that._t._f)){that._t=undefined;return step(1)}if(kind=="keys")return step(0,entry.k);if(kind=="values")return step(0,entry.v);return step(0,[entry.k,entry.v])},IS_MAP?"entries":"values",!IS_MAP,true);setSpecies(NAME)}}},function(module,exports,__webpack_require__){var META=__webpack_require__(46)("meta");var isObject=__webpack_require__(23);var has=__webpack_require__(30);var setDesc=__webpack_require__(21).f;var id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!__webpack_require__(26)(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:"O"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it=="symbol"?it:(typeof it=="string"?"S":"P")+it;if(!has(it,META)){if(!isExtensible(it))return"F";if(!create)return"E";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(23);module.exports=function(it,TYPE){if(!isObject(it)||it._t!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required!");return it}},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(16);var $export=__webpack_require__(15);var meta=__webpack_require__(468);var fails=__webpack_require__(26);var hide=__webpack_require__(20);var redefineAll=__webpack_require__(72);var forOf=__webpack_require__(60);var anInstance=__webpack_require__(59);var isObject=__webpack_require__(23);var setToStringTag=__webpack_require__(49);var dP=__webpack_require__(21).f;var each=__webpack_require__(471)(0);var DESCRIPTORS=__webpack_require__(25);module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME];var C=Base;var ADDER=IS_MAP?"set":"add";var proto=C&&C.prototype;var O={};if(!DESCRIPTORS||typeof C!="function"||!(IS_WEAK||proto.forEach&&!fails(function(){(new C).entries().next()}))){C=common.getConstructor(wrapper,NAME,IS_MAP,ADDER);redefineAll(C.prototype,methods);meta.NEED=true}else{C=wrapper(function(target,iterable){anInstance(target,C,NAME,"_c");target._c=new Base;if(iterable!=undefined)forOf(iterable,IS_MAP,target[ADDER],target)});each("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(KEY){var IS_ADDER=KEY=="add"||KEY=="set";if(KEY in proto&&!(IS_WEAK&&KEY=="clear"))hide(C.prototype,KEY,function(a,b){anInstance(this,C,KEY);if(!IS_ADDER&&IS_WEAK&&!isObject(a))return KEY=="get"?undefined:false;var result=this._c[KEY](a===0?0:a,b);return IS_ADDER?this:result})});IS_WEAK||dP(C.prototype,"size",{get:function(){return this._c.size}})}setToStringTag(C,NAME);O[NAME]=C;$export($export.G+$export.W+$export.F,O);if(!IS_WEAK)common.setStrong(C,NAME,IS_MAP);return C}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(18);var IObject=__webpack_require__(39);var toObject=__webpack_require__(52);var toLength=__webpack_require__(42);var asc=__webpack_require__(472);module.exports=function(TYPE,$create){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;var create=$create||asc;return function($this,callbackfn,that){var O=toObject($this);var self=IObject(O);var f=ctx(callbackfn,that,3);var length=toLength(self.length);var index=0;var result=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},function(module,exports,__webpack_require__){var speciesConstructor=__webpack_require__(473);module.exports=function(original,length){return new(speciesConstructor(original))(length)}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(23);var isArray=__webpack_require__(474);var SPECIES=__webpack_require__(50)("species");module.exports=function(original){var C;if(isArray(original)){C=original.constructor;if(typeof C=="function"&&(C===Array||isArray(C.prototype)))C=undefined;if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined}}return C===undefined?Array:C}},function(module,exports,__webpack_require__){var cof=__webpack_require__(40);module.exports=Array.isArray||function isArray(arg){return cof(arg)=="Array"}},function(module,exports,__webpack_require__){var $export=__webpack_require__(15);$export($export.P+$export.R,"Set",{toJSON:__webpack_require__(476)("Set")})},function(module,exports,__webpack_require__){var classof=__webpack_require__(58);var from=__webpack_require__(477);module.exports=function(NAME){return function toJSON(){if(classof(this)!=NAME)throw TypeError(NAME+"#toJSON isn't generic");return from(this)}}},function(module,exports,__webpack_require__){var forOf=__webpack_require__(60);module.exports=function(iter,ITERATOR){var result=[];forOf(iter,false,result.push,result,ITERATOR);return result}},function(module,exports,__webpack_require__){__webpack_require__(479)("Set")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(15);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{of:function of(){var length=arguments.length;var A=new Array(length);while(length--)A[length]=arguments[length];return new this(A)}})}},function(module,exports,__webpack_require__){__webpack_require__(481)("Set")},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(15);var aFunction=__webpack_require__(19);var ctx=__webpack_require__(18);var forOf=__webpack_require__(60);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{from:function from(source){var mapFn=arguments[1];var mapping,A,n,cb;aFunction(this);mapping=mapFn!==undefined;if(mapping)aFunction(mapFn);if(source==undefined)return new this;A=[];if(mapping){n=0;cb=ctx(mapFn,arguments[2],2);forOf(source,false,function(nextItem){A.push(cb(nextItem,n++))})}else{forOf(source,false,A.push,A)}return new this(A)}})}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _promise=__webpack_require__(6);var _promise2=_interopRequireDefault(_promise);var _getOwnPropertyNames=__webpack_require__(417);var _getOwnPropertyNames2=_interopRequireDefault(_getOwnPropertyNames);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _test_runner_worker=__webpack_require__(483);var _test_runner_worker2=_interopRequireDefault(_test_runner_worker);var _bowser=__webpack_require__(484);var _bowser2=_interopRequireDefault(_bowser);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var TestRun=function(){function TestRun(files){var _this=this;(0,_classCallCheck3.default)(this,TestRun);var fileArray=(0,_getOwnPropertyNames2.default)(files).filter(function(o){return o.endsWith(".js")&&!o.endsWith("test.js")}).filter(function(o){return o.indexOf(".tmproject.yml")==-1}).map(function(o){return files[o]}).map(function(o){var nameSplit=o.name.split("/");return{name:nameSplit[nameSplit.length-1],content:o.asText()}});this.files={};fileArray.forEach(function(file){_this.files[file.name]=file.content});this.testSource=(0,_getOwnPropertyNames2.default)(files).filter(function(o){return o.endsWith(".js")&&o.endsWith("test.js")}).sort().map(function(o){return files[o].asText()}).join("\n")}(0,_createClass3.default)(TestRun,[{key:"run",value:function run(){var _this2=this;return new _promise2.default(function(resolve,reject){_this2.resolve=resolve;_this2.reject=reject;var workerString=(0,_test_runner_worker2.default)();var workerBlob=new Blob([workerString],{type:"text/javascript"});if(_bowser2.default.msie||_bowser2.default.msedge){_this2.worker=new Worker("/js/worker.min.js")}else{_this2.worker=new Worker(URL.createObjectURL(workerBlob))}_this2.worker.onmessage=_this2._handleResponse.bind(_this2)})}},{key:"_handleResponse",value:function _handleResponse(event){var response=event.data;if(response.status==="ready"){this._postData()}else if(response.status==="complete"){this._onComplete(response)}else{throw new Error("Worker sent an illegal message.")}}},{key:"_postData",value:function _postData(){var msg={files:this.files,testSource:this.testSource,url:location.protocol+"//"+location.host};this.worker.postMessage(msg)}},{key:"_onComplete",value:function _onComplete(testResults){this.resolve(testResults);this.passed=testResults.passed;this.failed=testResults.failed;this.complete=true;this.worker.terminate();console.info("Running tests complete! "+this.passed.length+" tests passed and "+this.failed.length+" failed.");if(this.failed.length!==0){console.info("Failed tests: ")}this.failed.forEach(function(failure){console.info(">> Title: %c"+failure.title+"%c, error: %c"+failure.error+"%c","color: blue","color: black","color: red","color: black")})}}]);return TestRun}();exports.default=TestRun},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){return"var files;\n\n// Helpers for importing code\nfunction fileContents(path) {\n return files[path];\n}\n\nfunction importingFile(path) {\n return function() {\n eval(fileContents(path));\n };\n}\n\nfunction setupEnvironment(mocha, chai) {\n const assert = chai.assert;\n\n mocha.setup('bdd');\n\n // Make chai to output student-friendly messages\n chai.use(function(chai, utils) {\n var Assertion = chai.Assertion;\n Assertion.overwriteMethod('throw', function(_super) {\n return function betterThrow (_, message) {\n try {\n var flag = utils.flag;\n _super.apply(this, arguments);\n } catch (e) {\n if (message === undefined) {\n throw e;\n }\n this.assert(flag(this, 'negate'), message, message, e.expected, e.actual);\n }\n }\n });\n\n Assertion.overwriteMethod('equal', function(_super) {\n return function betterEqual (_, message) {\n try {\n var flag = utils.flag;\n _super.apply(this, [arguments[0]]);\n } catch (e) {\n if (message === undefined) {\n throw e;\n }\n this.assert(flag(this, 'negate'), message, message, e.expected, e.actual);\n }\n }\n });\n\n Assertion.overwriteMethod('match', function(_super) {\n return function betterMatch (_, message) {\n try {\n var flag = utils.flag;\n _super.apply(this, [arguments[0]]);\n } catch (e) {\n if (message === undefined) {\n throw e;\n }\n this.assert(flag(this, 'negate'), message, message, e.expected, e.actual);\n }\n }\n });\n\n // Overwriting 'a' or 'an' breaks too many things\n Assertion.addMethod('type', function(type, message) {\n try {\n var flag = utils.flag;\n var obj = flag(this, 'object');\n new Assertion(obj).to.be.a(type);\n } catch (e) {\n if (message === undefined) {\n throw e;\n }\n this.assert(flag(this, 'negate'), message, message, e.expected, e.actual);\n }\n });\n });\n}\n\nfunction runTests(_testSource, mocha, chai) {\n const expect = chai.expect;\n eval(_testSource);\n mocha.run()\n .on('pass', function(test) {\n var pass = {\n result: test.state,\n title: test.title,\n }\n passed.push(pass);\n })\n .on('fail', function(test, error) {\n var fail = {\n result: test.state,\n timedOut: test.timedOut,\n title: test.title,\n error: error.message\n }\n failed.push(fail);\n })\n .on('end', function() {\n var result = {\n status: 'complete',\n passed: passed,\n failed: failed,\n };\n postMessage(result);\n });\n}\n\nvar passed = [];\nvar failed = [];\n\nonmessage = function(event) {\n var message = event.data;\n const url = message.url;\n\n importScripts(url + '/assets/js/mocha.min.js');\n importScripts( url + '/assets/js/chai.min.js');\n importScripts( url + '/assets/js/sinon.min.js');\n\n setupEnvironment(mocha, chai);\n\n // Dont't try to write test results to the document\n mocha.reporter(function(){})\n\n var testSource = message.testSource;\n files = message.files;\n runTests(testSource, mocha, chai);\n}\n\npostMessage({ status: 'ready'});\n"},useData:true})},function(module,exports,__webpack_require__){!function(root,name,definition){if(typeof module!="undefined"&&module.exports)module.exports=definition();else if(true)__webpack_require__(485)(name,definition);else root[name]=definition()}(this,"bowser",function(){var t=true;function detect(ua){function getFirstMatch(regex){var match=ua.match(regex);return match&&match.length>1&&match[1]||""}function getSecondMatch(regex){var match=ua.match(regex);return match&&match.length>1&&match[2]||""}var iosdevice=getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase(),likeAndroid=/like android/i.test(ua),android=!likeAndroid&&/android/i.test(ua),nexusMobile=/nexus\s*[0-6]\s*/i.test(ua),nexusTablet=!nexusMobile&&/nexus\s*[0-9]+/i.test(ua),chromeos=/CrOS/.test(ua),silk=/silk/i.test(ua),sailfish=/sailfish/i.test(ua),tizen=/tizen/i.test(ua),webos=/(web|hpw)(o|0)s/i.test(ua),windowsphone=/windows phone/i.test(ua),samsungBrowser=/SamsungBrowser/i.test(ua),windows=!windowsphone&&/windows/i.test(ua),mac=!iosdevice&&!silk&&/macintosh/i.test(ua),linux=!android&&!sailfish&&!tizen&&!webos&&/linux/i.test(ua),edgeVersion=getSecondMatch(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),versionIdentifier=getFirstMatch(/version\/(\d+(\.\d+)?)/i),tablet=/tablet/i.test(ua)&&!/tablet pc/i.test(ua),mobile=!tablet&&/[^-]mobi/i.test(ua),xbox=/xbox/i.test(ua),result;if(/opera/i.test(ua)){result={name:"Opera",opera:t,version:versionIdentifier||getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}}else if(/opr\/|opios/i.test(ua)){result={name:"Opera",opera:t,version:getFirstMatch(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||versionIdentifier}}else if(/SamsungBrowser/i.test(ua)){result={name:"Samsung Internet for Android",samsungBrowser:t,version:versionIdentifier||getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}}else if(/Whale/i.test(ua)){result={name:"NAVER Whale browser",whale:t,version:getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/MZBrowser/i.test(ua)){result={name:"MZ Browser",mzbrowser:t,version:getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/coast/i.test(ua)){result={name:"Opera Coast",coast:t,version:versionIdentifier||getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}}else if(/focus/i.test(ua)){result={name:"Focus",focus:t,version:getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/yabrowser/i.test(ua)){result={name:"Yandex Browser",yandexbrowser:t,version:versionIdentifier||getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}}else if(/ucbrowser/i.test(ua)){result={name:"UC Browser",ucbrowser:t,version:getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/mxios/i.test(ua)){result={name:"Maxthon",maxthon:t,version:getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/epiphany/i.test(ua)){result={name:"Epiphany",epiphany:t,version:getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/puffin/i.test(ua)){result={name:"Puffin",puffin:t,version:getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}}else if(/sleipnir/i.test(ua)){result={name:"Sleipnir",sleipnir:t,version:getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}}else if(/k-meleon/i.test(ua)){result={name:"K-Meleon",kMeleon:t,version:getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}}else if(windowsphone){result={name:"Windows Phone",osname:"Windows Phone",windowsphone:t};if(edgeVersion){result.msedge=t;result.version=edgeVersion}else{result.msie=t;result.version=getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i)}}else if(/msie|trident/i.test(ua)){result={name:"Internet Explorer",msie:t,version:getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i)}}else if(chromeos){result={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}}else if(/edg([ea]|ios)/i.test(ua)){result={name:"Microsoft Edge",msedge:t,version:edgeVersion}}else if(/vivaldi/i.test(ua)){result={name:"Vivaldi",vivaldi:t,version:getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i)||versionIdentifier}}else if(sailfish){result={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}}else if(/seamonkey\//i.test(ua)){result={name:"SeaMonkey",seamonkey:t,version:getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i)}}else if(/firefox|iceweasel|fxios/i.test(ua)){result={name:"Firefox",firefox:t,version:getFirstMatch(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)};if(/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)){result.firefoxos=t;result.osname="Firefox OS"}}else if(silk){result={name:"Amazon Silk",silk:t,version:getFirstMatch(/silk\/(\d+(\.\d+)?)/i)}}else if(/phantom/i.test(ua)){result={name:"PhantomJS",phantom:t,version:getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i)}}else if(/slimerjs/i.test(ua)){result={name:"SlimerJS",slimer:t,version:getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i)}}else if(/blackberry|\bbb\d+/i.test(ua)||/rim\stablet/i.test(ua)){result={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:versionIdentifier||getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}}else if(webos){result={name:"WebOS",osname:"WebOS",webos:t,version:versionIdentifier||getFirstMatch(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)};/touchpad\//i.test(ua)&&(result.touchpad=t)}else if(/bada/i.test(ua)){result={name:"Bada",osname:"Bada",bada:t,version:getFirstMatch(/dolfin\/(\d+(\.\d+)?)/i)}}else if(tizen){result={name:"Tizen",osname:"Tizen",tizen:t,version:getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||versionIdentifier}}else if(/qupzilla/i.test(ua)){result={name:"QupZilla",qupzilla:t,version:getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||versionIdentifier}}else if(/chromium/i.test(ua)){result={name:"Chromium",chromium:t,version:getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||versionIdentifier}}else if(/chrome|crios|crmo/i.test(ua)){result={name:"Chrome",chrome:t,version:getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}}else if(android){result={name:"Android",version:versionIdentifier}}else if(/safari|applewebkit/i.test(ua)){result={name:"Safari",safari:t};if(versionIdentifier){result.version=versionIdentifier}}else if(iosdevice){result={name:iosdevice=="iphone"?"iPhone":iosdevice=="ipad"?"iPad":"iPod"};if(versionIdentifier){result.version=versionIdentifier}}else if(/googlebot/i.test(ua)){result={name:"Googlebot",googlebot:t,version:getFirstMatch(/googlebot\/(\d+(\.\d+))/i)||versionIdentifier}}else{result={name:getFirstMatch(/^(.*)\/(.*) /),version:getSecondMatch(/^(.*)\/(.*) /)}}if(!result.msedge&&/(apple)?webkit/i.test(ua)){if(/(apple)?webkit\/537\.36/i.test(ua)){result.name=result.name||"Blink";result.blink=t}else{result.name=result.name||"Webkit";result.webkit=t}if(!result.version&&versionIdentifier){result.version=versionIdentifier}}else if(!result.opera&&/gecko\//i.test(ua)){result.name=result.name||"Gecko";result.gecko=t;result.version=result.version||getFirstMatch(/gecko\/(\d+(\.\d+)?)/i)}if(!result.windowsphone&&(android||result.silk)){result.android=t;result.osname="Android"}else if(!result.windowsphone&&iosdevice){result[iosdevice]=t;result.ios=t;result.osname="iOS"}else if(mac){result.mac=t;result.osname="macOS"}else if(xbox){result.xbox=t;result.osname="Xbox"}else if(windows){result.windows=t;result.osname="Windows"}else if(linux){result.linux=t;result.osname="Linux"}function getWindowsVersion(s){switch(s){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return undefined}}var osVersion="";if(result.windows){osVersion=getWindowsVersion(getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i))}else if(result.windowsphone){osVersion=getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i)}else if(result.mac){osVersion=getFirstMatch(/Mac OS X (\d+([_\.\s]\d+)*)/i);osVersion=osVersion.replace(/[_\s]/g,".")}else if(iosdevice){osVersion=getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i);osVersion=osVersion.replace(/[_\s]/g,".")}else if(android){osVersion=getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i)}else if(result.webos){osVersion=getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i)}else if(result.blackberry){osVersion=getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i)}else if(result.bada){osVersion=getFirstMatch(/bada\/(\d+(\.\d+)*)/i)}else if(result.tizen){osVersion=getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i)}if(osVersion){result.osversion=osVersion}var osMajorVersion=!result.windows&&osVersion.split(".")[0];if(tablet||nexusTablet||iosdevice=="ipad"||android&&(osMajorVersion==3||osMajorVersion>=4&&!mobile)||result.silk){result.tablet=t}else if(mobile||iosdevice=="iphone"||iosdevice=="ipod"||android||nexusMobile||result.blackberry||result.webos||result.bada){result.mobile=t}if(result.msedge||result.msie&&result.version>=10||result.yandexbrowser&&result.version>=15||result.vivaldi&&result.version>=1||result.chrome&&result.version>=20||result.samsungBrowser&&result.version>=4||result.whale&&compareVersions([result.version,"1.0"])===1||result.mzbrowser&&compareVersions([result.version,"6.0"])===1||result.focus&&compareVersions([result.version,"1.0"])===1||result.firefox&&result.version>=20||result.safari&&result.version>=6||result.opera&&result.version>=10||result.ios&&result.osversion&&result.osversion.split(".")[0]>=6||result.blackberry&&result.version>=10.1||result.chromium&&result.version>=20){result.a=t}else if(result.msie&&result.version<10||result.chrome&&result.version<20||result.firefox&&result.version<20||result.safari&&result.version<6||result.opera&&result.version<10||result.ios&&result.osversion&&result.osversion.split(".")[0]<6||result.chromium&&result.version<20){result.c=t}else result.x=t;return result}var bowser=detect(typeof navigator!=="undefined"?navigator.userAgent||"":"");bowser.test=function(browserList){for(var i=0;i<browserList.length;++i){var browserItem=browserList[i];if(typeof browserItem==="string"){if(browserItem in bowser){return true}}}return false};function getVersionPrecision(version){return version.split(".").length}function map(arr,iterator){var result=[],i;if(Array.prototype.map){return Array.prototype.map.call(arr,iterator)}for(i=0;i<arr.length;i++){result.push(iterator(arr[i]))}return result}function compareVersions(versions){var precision=Math.max(getVersionPrecision(versions[0]),getVersionPrecision(versions[1]));var chunks=map(versions,function(version){var delta=precision-getVersionPrecision(version);version=version+new Array(delta+1).join(".0");return map(version.split("."),function(chunk){return new Array(20-chunk.length).join("0")+chunk}).reverse()});while(--precision>=0){if(chunks[0][precision]>chunks[1][precision]){return 1}else if(chunks[0][precision]===chunks[1][precision]){if(precision===0){return 0}}else{return-1}}}function isUnsupportedBrowser(minVersions,strictMode,ua){var _bowser=bowser;if(typeof strictMode==="string"){ua=strictMode;strictMode=void 0}if(strictMode===void 0){strictMode=false}if(ua){_bowser=detect(ua)}var version=""+_bowser.version;for(var browser in minVersions){if(minVersions.hasOwnProperty(browser)){if(_bowser[browser]){if(typeof minVersions[browser]!=="string"){throw new Error("Browser version in the minVersion map should be a string: "+browser+": "+String(minVersions))}return compareVersions([version,minVersions[browser]])<0}}}return strictMode}function check(minVersions,strictMode,ua){return!isUnsupportedBrowser(minVersions,strictMode,ua)}bowser.isUnsupportedBrowser=isUnsupportedBrowser;bowser.compareVersions=compareVersions;bowser.check=check;bowser._detect=detect;bowser.detect=detect;return bowser})},function(module,exports){module.exports=function(){throw new Error("define cannot be used indirect")}},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({1:function(container,depth0,helpers,partials,data){var helper,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return" var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game-area-"+container.escapeExpression((helper=(helper=lookupProperty(helpers,"exerciseId")||(depth0!=null?lookupProperty(depth0,"exerciseId"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(depth0!=null?depth0:container.nullContext||{},{name:"exerciseId",hash:{},data:data,loc:{start:{line:4,column:63},end:{line:4,column:79}}}):helper))+"' , { preload: preload, create: create, update: update, render: render });\n"},3:function(container,depth0,helpers,partials,data){return' Function.prototype.oldCall = Function.prototype.call;\n var phaserMethods = [preload, create, update, render];\n phaserMethods.forEach(function(f) {\n if (typeof f === "function") {\n f.call = function() {\n try {\n this.oldCall(...arguments);\n } catch (e) {\n sendError(e.toLocaleString());\n throw e;\n }\n }\n }\n })\n'},compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=depth0!=null?depth0:container.nullContext||{},lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return"(function () { 'use strict'; }());\nvar console = { log: function(a){ showMessage(a) } };\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data,loc:{start:{line:3,column:0},end:{line:5,column:7}}}))!=null?stack1:"")+"\n"+((stack1=(helper=(helper=lookupProperty(helpers,"code")||(depth0!=null?lookupProperty(depth0,"code"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(alias1,{name:"code",hash:{},data:data,loc:{start:{line:7,column:0},end:{line:7,column:12}}}):helper))!=null?stack1:"")+"\n\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(3,data,0),inverse:container.noop,data:data,loc:{start:{line:9,column:0},end:{line:24,column:7}}}))!=null?stack1:"")},useData:true})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({1:function(container,depth0,helpers,partials,data){return' <script src="https://cdn.jsdelivr.net/phaser/2.4.4/phaser.js" crossorigin="anonymous"><\/script>\n'},3:function(container,depth0,helpers,partials,data){return" var isGame = true;\n"},5:function(container,depth0,helpers,partials,data){return" var isGame = false;\n"},7:function(container,depth0,helpers,partials,data){return" var ready = typeof Phaser !== 'undefined';\n"},9:function(container,depth0,helpers,partials,data){return" var ready = true;\n"},11:function(container,depth0,helpers,partials,data){return" // A dirty workaround to mitigate a missing DOMContentLoaded event.\n if (Phaser.Device._readyCheck) {\n Phaser.Device._readyCheck();\n }\n"},compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=depth0!=null?depth0:container.nullContext||{},alias2=container.hooks.helperMissing,alias3="function",alias4=container.escapeExpression,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return'<!DOCTYPE html>\n<html>\n<head>\n <meta charset="utf-8">\n <title>sandbox</title>\n <style type="text/css">\n body {\n margin: 0;\n }\n .game-area {\n width: 800px;\n height: 600px;\n }\n </style>\n <script src="https://cdn.polyfill.io/v2/polyfill.min.js"><\/script>\n'+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data,loc:{start:{line:16,column:2},end:{line:18,column:9}}}))!=null?stack1:"")+"\n <script>\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(3,data,0),inverse:container.program(5,data,0),data:data,loc:{start:{line:21,column:4},end:{line:25,column:11}}}))!=null?stack1:"")+" console.info('Game frame loaded');\n //var _url = (window.location != window.parent.location) ? document.referrer: document.location;\n var _url = '*';\n var programHasCommunicated = false;\n\n var sendError = function(message) {\n programHasCommunicated = true;\n if (message === NaN) {\n message = \"Ei ole numero\";\n }\n var msg = {\n source: "+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:37,column:16},end:{line:37,column:22}}}):helper))+',\n error: message\n }\n if (window.parent) {\n window.parent.postMessage(msg, _url);\n } else {\n console.warn("Unable to display a error message because I don\'t know who the main window is.");\n }\n }\n\n function evaluationDone() {\n var msg = {\n source: '+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:49,column:16},end:{line:49,column:22}}}):helper))+',\n evaluationDone: true,\n }\n\n if (window.parent) {\n window.parent.postMessage(msg, _url);\n } else {\n console.warn("Unable to send a message because I don\'t know the main window.");\n }\n }\n\n function _stopGame() {\n var msg = {\n source: '+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:62,column:16},end:{line:62,column:22}}}):helper))+",\n stop: true\n }\n if (window.parent) {\n window.parent.postMessage(msg, _url);\n } else {\n console.warn(\"Unable to to close the dialog because I don't know who the main window is.\");\n }\n }\n\n var _messageCount = 0;\n window.addEventListener('message', function(_event) {\n if (_event.data == 'ready') {\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(7,data,0),inverse:container.program(9,data,0),data:data,loc:{start:{line:75,column:8},end:{line:79,column:15}}}))!=null?stack1:"")+" if (_messageCount > 200) {\n ready = true;\n }\n var msg = {\n ready: ready,\n source: "+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:85,column:18},end:{line:85,column:24}}}):helper))+"\n }\n window.parent.postMessage(msg, _url);\n _messageCount++;\n return;\n }\n"+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"isGame"):depth0,{name:"if",hash:{},fn:container.program(11,data,0),inverse:container.noop,data:data,loc:{start:{line:91,column:6},end:{line:96,column:13}}}))!=null?stack1:"")+"\n var showMessage = function(message) {\n programHasCommunicated = true;\n if (message === undefined) {\n message = \"ei määritelty\";\n }\n if (message.constructor === Array) {\n message = JSON.stringify(message, null, ' ').replace(/\\n/g, '').replace('[ ', '[');\n }\n var msg = {\n source: "+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:107,column:18},end:{line:107,column:24}}}):helper))+",\n message: message\n }\n window.parent.postMessage(msg, _url);\n }\n\n try {\n console.info('Evaluating code...');\n eval(_event.data);\n } catch (error) {\n sendError(error.toString());\n }\n if (!"+alias4((helper=(helper=lookupProperty(helpers,"isGame")||(depth0!=null?lookupProperty(depth0,"isGame"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"isGame",hash:{},data:data,loc:{start:{line:119,column:11},end:{line:119,column:21}}}):helper))+" && !programHasCommunicated) {\n showMessage(\"Ohjelma ei tulostanut mitään.\");\n }\n evaluationDone();\n });\n\n function stopGameHandler() {\n if (document.getElementById('stop-game')) {\n document.getElementById('stop-game').addEventListener('click', _stopGame);\n } else {\n window.setTimeout(stopGameHandler, 100);\n }\n }\n\n stopGameHandler();\n\n window.onerror = function(errorMsg, url, lineNumber, column, errorObj) {\n if (url === window.location.href) {\n programHasCommunicated = true;\n sendError(errorMsg)\n }\n }\n <\/script>\n</head>\n\n<body>\n <div id=\"game-area-"+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:145,column:21},end:{line:145,column:27}}}):helper))+'" class="game-area"></div>\n</body>\n</html>\n'},useData:true})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _snapshot=__webpack_require__(454);var _snapshot2=_interopRequireDefault(_snapshot);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Share=function(){function Share(container,editor,exercise,spyware,output){(0,_classCallCheck3.default)(this,Share);this.editor=editor;this.exercise=exercise;this.spyware=spyware;this.container=container;this.output=output;this.button=(0,_jquery2.default)(".actions .share",this.container).first();this.baseUrl="https://ohjelmointikurssi.github.io/paste/?key="}(0,_createClass3.default)(Share,[{key:"handleClicks",value:function handleClicks(){this.button.click(this.shareOnClickHandler.bind(this))}},{key:"shareOnClickHandler",value:function shareOnClickHandler(){var _this=this;var button=(0,_jquery2.default)(".actions .share i",this.container);button.parent().prop("disabled",true);var text=button.parent().find(".button-text");var originalText=text.text();text.text("Jaetaan...");button.addClass("fa-spin");this.editor.saveActiveFile();this.editor.generateFullSnapshot(this.filename,"file_change",true);this.exercise.share(function(data){var urlParts=data.paste_url.split("/");var pasteKey=urlParts[urlParts.length-1];var shareUrl=_this.baseUrl+pasteKey;_this.output.showShare(shareUrl);button.removeClass("fa-spin");button.parent().prop("disabled",false);text.text(originalText)},function(){_this.output.close()});var data=_snapshot2.default.generateBase64Json({command:"tmc-web-client.share"});this.spyware.add(new _snapshot2.default(this.exercise,"project_action",data))}}]);return Share}();exports.default=Share},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({1:function(container,depth0,helpers,partials,data){return" completed"},3:function(container,depth0,helpers,partials,data){var alias1=container.lambda,alias2=container.escapeExpression,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return' <li data-id="'+alias2(alias1(depth0!=null?lookupProperty(depth0,"path"):depth0,depth0))+'">'+alias2(alias1(depth0!=null?lookupProperty(depth0,"name"):depth0,depth0))+"</li>\n"},compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=depth0!=null?depth0:container.nullContext||{},lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return"<div class='exercise-sidebar'>\n <div class='exercise-title-container'>\n <h1 class='name'>"+container.escapeExpression((helper=(helper=lookupProperty(helpers,"title")||(depth0!=null?lookupProperty(depth0,"title"):depth0))!=null?helper:container.hooks.helperMissing,typeof helper==="function"?helper.call(alias1,{name:"title",hash:{},data:data,loc:{start:{line:3,column:23},end:{line:3,column:32}}}):helper))+'</h1>\n <i class="fa fa-circle completion-status'+((stack1=lookupProperty(helpers,"if").call(alias1,depth0!=null?lookupProperty(depth0,"completed"):depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data,loc:{start:{line:4,column:46},end:{line:4,column:80}}}))!=null?stack1:"")+'" aria-hidden="true"></i>\n </div>\n <ul class=\'tab-bar\'>\n'+((stack1=lookupProperty(helpers,"each").call(alias1,depth0!=null?lookupProperty(depth0,"files"):depth0,{name:"each",hash:{},fn:container.program(3,data,0),inverse:container.noop,data:data,loc:{start:{line:7,column:8},end:{line:9,column:17}}}))!=null?stack1:"")+" </ul>\n\n <section class='actions'>\n <div class='run button'><i class=\"fa fa-play\"></i><span class='button-text'>Käynnistä</span></div>\n <div class='reset button'><i class=\"fa fa-undo\"></i><span class='button-text'>Nollaa</span></div>\n </section>\n <hr class=\"button-separator\">\n <section class='actions'>\n <div class='share button'><i class=\"fa fa-share-alt\"></i><span class='button-text'>Jaa</span></div>\n </section>\n</div>\n"},useData:true})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _promise=__webpack_require__(6);var _promise2=_interopRequireDefault(_promise);var _classCallCheck2=__webpack_require__(77);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(78);var _createClass3=_interopRequireDefault(_createClass2);var _jquery=__webpack_require__(413);var _jquery2=_interopRequireDefault(_jquery);var _constants=__webpack_require__(423);var _constants2=_interopRequireDefault(_constants);var _exercise=__webpack_require__(414);var _exercise2=_interopRequireDefault(_exercise);var _jszip=__webpack_require__(449);var _jszip2=_interopRequireDefault(_jszip);var _authentication=__webpack_require__(424);var _authentication2=_interopRequireDefault(_authentication);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Paste=function(){function Paste(id){(0,_classCallCheck3.default)(this,Paste);this.baseUrl=_constants2.default.server+"/paste/";this.id=id}(0,_createClass3.default)(Paste,[{key:"fetch",value:function fetch(){var _this=this;return new _promise2.default(function(resolve,reject){if(_this.exercise!==undefined){resolve();return}_jquery2.default.ajax({beforeSend:_authentication2.default.xhrBasicAuthentication,data:{api_version:_constants2.default.apiVersion,include_files:1},success:function success(paste){_this.data=paste;var solutionParts=paste.solution_url.split("/");var exerciseId=parseInt(solutionParts[solutionParts.length-2],10);_this.exercise=new _exercise2.default(exerciseId);resolve()},error:function error(){console.error("Could not download paste");reject()},url:""+_this.baseUrl+_this.id+".json"})})}},{key:"getZip",value:function getZip(){var zip=new _jszip2.default;this.data.files.forEach(function(file){zip.file(file.path,file.contents)});return zip}}]);return Paste}();exports.default=Paste},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(427);function __default(obj){return obj&&(obj.__esModule?obj["default"]:obj)}module.exports=(Handlebars["default"]||Handlebars).template({compiler:[8,">= 4.3.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=depth0!=null?depth0:container.nullContext||{},alias2=container.hooks.helperMissing,alias3="function",alias4=container.escapeExpression,lookupProperty=container.lookupProperty||function(parent,propertyName){if(Object.prototype.hasOwnProperty.call(parent,propertyName)){return parent[propertyName]}return undefined};return'<div class="exercise-area" id="exercise-'+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:1,column:40},end:{line:1,column:46}}}):helper))+"\">\n <div class=\"code-area tmc-exercise\" data-type='tmc-exercise' data-id='"+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:2,column:72},end:{line:2,column:78}}}):helper))+'\'></div>\n <div class="game" id="game-'+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:3,column:29},end:{line:3,column:35}}}):helper))+'">\n <span class="game-dialog-title">Tehtävän peli</span>\n <a id="stop-game-'+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:5,column:21},end:{line:5,column:27}}}):helper))+'" href="#" title="stop-game" class="close">\n <i class="fa fa-times-circle" aria-hidden="true"></i>\n </a>\n <iframe sandbox="allow-scripts" id="game-frame-'+alias4((helper=(helper=lookupProperty(helpers,"id")||(depth0!=null?lookupProperty(depth0,"id"):depth0))!=null?helper:alias2,typeof helper===alias3?helper.call(alias1,{name:"id",hash:{},data:data,loc:{start:{line:8,column:51},end:{line:8,column:57}}}):helper))+'" class="game-sandbox">\n </iframe>\n <span class="game-hint"></span>\n </div>\n</div>\n'},useData:true})},function(module,exports){}]);