{"version":3,"sources":["node_modules/browser-pack/_prelude.js","node_modules/FontFaceObserver/fontfaceobserver.standalone.js","app.js","node_modules/classlist-polyfill/src/index.js","node_modules/dom-classlist/index.js","node_modules/element-closest-polyfill/index.js","node_modules/es6-object-assign/index.js","node_modules/es6-promise/dist/es6-promise.js","node_modules/load-script/index.js","node_modules/lodash.merge/index.js","node_modules/lodash.throttle/index.js","node_modules/process/browser.js","node_modules/storm-outliner/dist/storm-outliner.min.js","node_modules/storm-toggler/dist/index.js","node_modules/storm-toggler/dist/lib/component-prototype.js","node_modules/storm-toggler/dist/lib/defaults.js","node_modules/storm-utils/dist/storm.utils.js","src/js/app.js","src/js/require/cookie-functions.js","src/js/require/storm-modal.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","l","b","document","addEventListener","attachEvent","m","body","removeEventListener","k","readyState","detachEvent","v","this","createElement","setAttribute","appendChild","createTextNode","h","g","style","cssText","w","y","offsetWidth","width","scrollLeft","scrollWidth","z","parentNode","A","family","weight","stretch","H","C","font","I","join","B","G","window","FontFace","prototype","load","x","D","Date","getTime","Promise","J","fonts","then","setTimeout","K","race","q","exec","navigator","userAgent","parseInt","d","removeChild","clearTimeout","F","E","hidden","dir","FontFaceObserver","check","2","self","createElementNS","view","classListProp","protoProp","elemCtrProto","Element","objCtr","Object","strTrim","String","trim","replace","arrIndexOf","Array","indexOf","item","len","DOMEx","type","message","name","DOMException","checkTokenAndGetIndex","classList","token","test","ClassList","elem","trimmedClasses","getAttribute","classes","split","push","_updateClassName","toString","classListProto","classListGetter","contains","add","tokens","arguments","updated","remove","index","splice","toggle","force","result","method","defineProperty","classListPropDesc","get","enumerable","configurable","ex","undefined","number","__defineGetter__","testElement","createMethod","original","DOMTokenList","_toggle","3","el","nodeType","checkToken","TypeError","SyntaxError","toArray","str","shift","arr","hasToken","4","matches","msMatchesSelector","webkitMatchesSelector","closest","s","parentElement","5","assign","target","firstSource","to","nextSource","keysArray","keys","nextIndex","nextKey","desc","getOwnPropertyDescriptor","polyfill","writable","value","6","process","global","factory","define","amd","ES6Promise","objectOrFunction","isFunction","setScheduler","scheduleFn","customSchedulerFn","setAsap","asapFn","asap","useNextTick","nextTick","flush","useVertxTimer","vertxNext","useMutationObserver","iterations","observer","BrowserMutationObserver","node","observe","characterData","data","useMessageChannel","channel","MessageChannel","port1","onmessage","port2","postMessage","useSetTimeout","globalSetTimeout","callback","queue","arg","attemptVertx","vertx","runOnLoop","runOnContext","onFulfillment","onRejection","_arguments","parent","child","constructor","noop","PROMISE_ID","makePromise","_state","invokeCallback","_result","subscribe","resolve","object","Constructor","promise","_resolve","selfFulfillment","cannotReturnOwn","getThen","error","GET_THEN_ERROR","tryThen","fulfillmentHandler","rejectionHandler","handleForeignThenable","thenable","sealed","fulfill","reason","_reject","_label","handleOwnThenable","FULFILLED","REJECTED","handleMaybeThenable","maybeThenable","then$$","publishRejection","_onerror","publish","PENDING","_subscribers","subscribers","settled","detail","ErrorObject","tryCatch","TRY_CATCH_ERROR","hasCallback","succeeded","failed","initializePromise","resolver","nextId","id","Enumerator","input","_instanceConstructor","isArray","_input","_remaining","_enumerate","validationError","all","entries","reject","_","needsResolver","needsNew","local","Function","P","promiseToString","cast","_isArray","scheduleFlush","browserWindow","browserGlobal","MutationObserver","WebKitMutationObserver","isNode","isWorker","Uint8ClampedArray","importScripts","Math","random","substring","_eachEntry","entry","resolve$$","_then","_settledAt","_willSettleAt","state","enumerator","_setScheduler","_setAsap","_asap","catch","_process","7","setAttributes","script","attrs","attr","stdOnEnd","cb","onload","onerror","src","ieOnEnd","onreadystatechange","opts","head","getElementsByTagName","charset","async","text","onend","8","apply","func","thisArg","args","baseTimes","iteratee","baseUnary","getValue","key","overArg","transform","Hash","clear","set","hashClear","__data__","nativeCreate","size","hashDelete","has","hashGet","HASH_UNDEFINED","hasOwnProperty","hashHas","hashSet","ListCache","listCacheClear","listCacheDelete","assocIndexOf","lastIndex","pop","listCacheGet","listCacheHas","listCacheSet","MapCache","mapCacheClear","hash","map","Map","string","mapCacheDelete","getMapData","mapCacheGet","mapCacheHas","mapCacheSet","Stack","stackClear","stackDelete","stackGet","stackHas","stackSet","pairs","LARGE_ARRAY_SIZE","arrayLikeKeys","inherited","isArr","isArg","isArguments","isBuff","isBuffer","isType","isTypedArray","skipIndexes","isIndex","assignMergeValue","eq","baseAssignValue","assignValue","objValue","array","baseGetTag","undefinedTag","nullTag","symToStringTag","getRawTag","objectToString","baseIsArguments","isObjectLike","argsTag","baseIsNative","isObject","isMasked","pattern","reIsNative","reIsHostCtor","toSource","baseIsTypedArray","isLength","typedArrayTags","baseKeysIn","nativeKeysIn","isProto","isPrototype","baseMerge","source","srcIndex","customizer","stack","baseFor","srcValue","baseMergeDeep","newValue","safeGet","keysIn","mergeFunc","stacked","isCommon","isTyped","isArrayLikeObject","copyArray","cloneBuffer","cloneTypedArray","isPlainObject","toPlainObject","initCloneObject","baseRest","start","setToString","overRest","identity","buffer","isDeep","slice","allocUnsafe","copy","cloneArrayBuffer","arrayBuffer","byteLength","Uint8Array","typedArray","byteOffset","copyObject","props","isNew","createAssigner","assigner","sources","guard","isIterateeCall","createBaseFor","fromRight","keysFunc","iterable","isKeyable","getNative","isOwn","tag","unmasked","nativeObjectToString","baseCreate","getPrototype","MAX_SAFE_INTEGER","reIsUint","isArrayLike","maskSrcKey","Ctor","proto","objectProto","nativeMax","otherArgs","shortOut","count","lastCalled","stamp","nativeNow","remaining","HOT_SPAN","HOT_COUNT","funcToString","other","funcTag","genTag","asyncTag","proxyTag","objectTag","objectCtorString","constant","stubFalse","arrayTag","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","reRegExpChar","freeGlobal","freeSelf","root","freeExports","freeModule","moduleExports","freeProcess","nodeUtil","types","binding","nodeIsTypedArray","arrayProto","funcProto","coreJsData","uid","IE_PROTO","RegExp","Buffer","Symbol","getPrototypeOf","objectCreate","create","propertyIsEnumerable","toStringTag","nativeIsBuffer","max","now","baseSetToString","merge","9","debounce","wait","options","invokeFunc","time","lastArgs","lastThis","lastInvokeTime","leadingEdge","timerId","timerExpired","leading","remainingWait","timeSinceLastCall","lastCallTime","timeSinceLastInvoke","maxing","nativeMin","maxWait","shouldInvoke","trailingEdge","trailing","cancel","debounced","isInvoking","FUNC_ERROR_TEXT","toNumber","throttle","isSymbol","symbolTag","NAN","valueOf","reTrim","isBinary","reIsBinary","reIsOctal","freeParseInt","reIsBadHex","min","10","defaultSetTimout","defaultClearTimeout","runTimeout","fun","cachedSetTimeout","runClearTimeout","marker","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","concat","queueIndex","drainQueue","timeout","run","Item","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","cwd","chdir","umask","11","StormOutliner","innerHTML","12","_interopRequireDefault","obj","__esModule","default","_defaults","_defaults2","_componentPrototype","_componentPrototype2","init","sel","els","querySelectorAll","btn","targetId","substr","settings","dataset","./lib/component-prototype","./lib/defaults","13","TRIGGER_EVENTS","TRIGGER_KEYCODES","_this","targetElement","getElementById","classTarget","documentElement","siblingBtns","focus","focusableChildren","getFocusableChildren","trapTab","boundKeyListener","keyListener","bind","statusClass","animatingClass","forEach","ev","keyCode","startOpen","focusableElements","toggleAttributes","isOpen","sibling","toggleState","manageFocus","_this2","lastFocused","delay","activeElement","focusedIndex","shiftKey","preventDefault","_this3","prehook","stopPropagation","14","15","StormUtils","property","sourceProperty","element","events","fn","immediate","context","later","ms","last","exe","loadJS","timer","xhr","url","http","XMLHttpRequest","params","open","setRequestHeader","status","responseText","send","serialize","form","field","nodeName","console","log","elements","disabled","j","selected","encodeURIComponent","checked","selector","escapeHTML","entityMap","&","<",">","\"","'","/","classlist","className","re","attributelist","16","UTILS","loadScript","tools","cookies","UI","Toggler","Modal","initCookieBanner","querySelector","STORM","err","CookieBanner","initCookieSettings","CookieSettings","initErrorSummary","ErrorSummary","initFonts","initQuiz","activateQuizPanel","panel","current","quizActiveRegion","children","replaceChild","quiz","quizQuestionContainers","quizStartButton","quizEnd","onclick","firstQuestion","questionContainer","question","questionIndex","questionindex","correct","nextQuestion","incorrectAnswer","questionText","questionAnchors","anchor","href","wallPanelId","click","preventScroll","initSmoothScroll","smoothScroll","initScrollPoints","ScrollPoints","offset","class","initTabsAccordion","StormTabAccordion","initEqualizer","StormEqualHeight","minHeight","initWall","Wall","initMap","googleMapsApiKey","rawLocation","mapLocation","location","OurMap","asyncGoogleMapAPI","latitude","longitude","APIKey","initParallax","Parallax","initPies","getBloodTypeWithRhesusText","bloodType","rhesusSymbol","pies","handler","bloodGroupList","pie","currentTargetPercentage","update","nextElementSibling","bloodGroupListItem","innerText","region","outerHTML","chart","EasyPieChart","barColor","scaleColor","lineWidth","lineCap","initNearMe","nearMe","myPosition","geolocation","getCurrentPosition","pos","crds","coords","submit","initLocationSearchForm","searchTermOverrides","willowbrae","armadale","dalbeattie","blackburn","blackhall","newport","marryat hall","pennyburn","murray","hillhouse","stonehouse","charleston","hilton","bowhouse","headerForm","onsubmit","searchTerm","currentTarget","toLowerCase","google","maps","Geocoder","geocode","address","results","GeocoderStatus","OK","lat","geometry","lng","footerForm","modalForm","initSearchUnderline","underlineTemplate","insertAdjacentHTML","previousElementSibling","textContent","initLocationDropdown","locations","dateAndTime","onchange","locationId","selectedIndex","items","JSON","parse","opt","date","stringify","initNavPrimary","initCards","card","link","cursor","loaded","elementId","./require/cookie-functions","./require/storm-modal","classlist-polyfill","dom-classlist","element-closest-polyfill","es6-object-assign","es6-promise","load-script","lodash.merge","lodash.throttle","storm-outliner","storm-toggler","storm-utils","17","_typeof","iterator","CookieFunctions","getDateForCookieExpiration","days","setTime","toGMTString","cookieJar","setCookie","getCookie","setDefaultConsentCookie","setConsentCookie","DEFAULT_COOKIE_CONSENT","approveAllCookieTypes","approvedConsent","essential","usage","getConsentCookie","consentCookieObj","consentCookie","cookieConsent","cookieType","cookie","COOKIE_CATEGORIES","deleteCookie","checkConsentCookieCategory","cookieName","cookieCategory","currentConsentCookie","checkConsentCookie","cookieValue","cookieString","protocol","nameEQ","charAt","decodeURIComponent","getCookieCategory","hostname","deleteUnconsentedCookies","currentConsent","ARRAffinity","cookies_policy","cookies_preferences_set","_ga","_gid","_gat","_ga_GYYSMG01V4","18","StormModal","instances","defaults","CONSTANTS","onClassName","modalSelector","styles","opacity","visibility","position","overflow","height","top","left","bottom","right","zIndex","togglers","toggler","change","setStyles","filter","offsetHeight","getClientRects","Number","close"],"mappings":"CAAA,WAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,MAAAA,GAAAJ,GAAA,EAAA,IAAAK,GAAA,GAAAC,OAAA,uBAAAN,EAAA,IAAA,MAAAK,GAAAE,KAAA,mBAAAF,EAAA,GAAAG,GAAAX,EAAAG,IAAAS,WAAAb,GAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,GAAAE,GAAAD,EAAAI,GAAA,GAAAL,EAAA,OAAAI,GAAAF,GAAAF,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,MAAAD,GAAAG,GAAAS,QAAA,IAAA,GAAAL,GAAA,kBAAAD,UAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,GAAA,OAAAD,GAAA,MAAAJ,OAAAiB,GAAA,SAAAT,EAAAU,EAAAJ,ICAA,WAAA,QAAAK,GAAAT,EAAAU,GAAAC,SAAAC,iBAAAZ,EAAAY,iBAAA,SAAAF,GAAA,GAAAV,EAAAa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mB,OAAO,aAC1C/G,SAASK,oBAAoB,UAAWK,KAAKwpB,YAAYC,KAAKzpB,OAC9DA,KAAKuqB,YAAYpB,QACjBnpB,KAAKwG,UAENA,OAAQ,WACP,GAAI9C,GAAO1D,IACX0D,GAAKwmB,QAAUxmB,EAAKwmB,OACpBxmB,EAAKy5B,YACLz5B,EAAKyH,KAAKjL,aAAa,eAAgBwD,EAAKwmB,WACzCvO,MAAM3c,KAAKM,SAAS4oB,iBAAiB,0BAA0B0B,QAAQ,SAASjiB,GAClFA,EAAGzH,aAAa,cAAewD,EAAKwmB,WAGtCgT,OAAQ,WACHl9B,KAAKkqB,OAGRlqB,KAAKw9B,QAFLx9B,KAAKqsB,OAI4B,kBAA3BrsB,MAAKsoB,SAAStc,UAA4BhM,KAAKsoB,SAAStc,SAAShN,KAAKgB,OAsBhF,QACC+nB,KAAMA,ejBi/KG","file":"app.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i=x?b():document.fonts.load(I(c,c.family),k).then(function(c){1<=c.length?a():setTimeout(e,25)},function(){b()})}e()}),K=new Promise(function(a,c){setTimeout(c,x)});Promise.race([K,J]).then(function(){a(c)},function(){b(c)})}else m(function(){function q(){var b;if(b=-1!=f&&-1!=g||-1!=f&&-1!=h||-1!=g&&-1!=\nh)(b=f!=g&&f!=h&&g!=h)||(null===B&&(b=/AppleWebKit\\/([0-9]+)(?:\\.([0-9]+))/.exec(window.navigator.userAgent),B=!!b&&(536>parseInt(b[1],10)||536===parseInt(b[1],10)&&11>=parseInt(b[2],10))),b=B&&(f==r&&g==r&&h==r||f==t&&g==t&&h==t||f==u&&g==u&&h==u)),b=!b;b&&(null!==d.parentNode&&d.parentNode.removeChild(d),clearTimeout(F),a(c))}function E(){if((new Date).getTime()-D>=x)null!==d.parentNode&&d.parentNode.removeChild(d),b(c);else{var a=document.hidden;if(!0===a||void 0===a)f=e.a.offsetWidth,g=n.a.offsetWidth,\nh=p.a.offsetWidth,q();F=setTimeout(E,50)}}var e=new v(k),n=new v(k),p=new v(k),f=-1,g=-1,h=-1,r=-1,t=-1,u=-1,d=document.createElement(\"div\"),F=0;d.dir=\"ltr\";w(e,I(c,\"sans-serif\"));w(n,I(c,\"serif\"));w(p,I(c,\"monospace\"));d.appendChild(e.a);d.appendChild(n.a);d.appendChild(p.a);document.body.appendChild(d);r=e.a.offsetWidth;t=n.a.offsetWidth;u=p.a.offsetWidth;E();z(e,function(a){f=a;q()});w(e,I(c,'\"'+c.family+'\",sans-serif'));z(n,function(a){g=a;q()});w(n,I(c,'\"'+c.family+'\",serif'));z(p,function(a){h=\na;q()});w(p,I(c,'\"'+c.family+'\",monospace'))})})};window.FontFaceObserver=A;window.FontFaceObserver.prototype.check=window.FontFaceObserver.prototype.load=A.prototype.load;\"undefined\"!==typeof module&&(module.exports=window.FontFaceObserver);}());\n","(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i=x?b():document.fonts.load(I(c,c.family),k).then(function(c){1<=c.length?a():setTimeout(e,25)},function(){b()})}e()}),K=new Promise(function(a,c){setTimeout(c,x)});Promise.race([K,J]).then(function(){a(c)},function(){b(c)})}else m(function(){function q(){var b;if(b=-1!=f&&-1!=g||-1!=f&&-1!=h||-1!=g&&-1!=\nh)(b=f!=g&&f!=h&&g!=h)||(null===B&&(b=/AppleWebKit\\/([0-9]+)(?:\\.([0-9]+))/.exec(window.navigator.userAgent),B=!!b&&(536>parseInt(b[1],10)||536===parseInt(b[1],10)&&11>=parseInt(b[2],10))),b=B&&(f==r&&g==r&&h==r||f==t&&g==t&&h==t||f==u&&g==u&&h==u)),b=!b;b&&(null!==d.parentNode&&d.parentNode.removeChild(d),clearTimeout(F),a(c))}function E(){if((new Date).getTime()-D>=x)null!==d.parentNode&&d.parentNode.removeChild(d),b(c);else{var a=document.hidden;if(!0===a||void 0===a)f=e.a.offsetWidth,g=n.a.offsetWidth,\nh=p.a.offsetWidth,q();F=setTimeout(E,50)}}var e=new v(k),n=new v(k),p=new v(k),f=-1,g=-1,h=-1,r=-1,t=-1,u=-1,d=document.createElement(\"div\"),F=0;d.dir=\"ltr\";w(e,I(c,\"sans-serif\"));w(n,I(c,\"serif\"));w(p,I(c,\"monospace\"));d.appendChild(e.a);d.appendChild(n.a);d.appendChild(p.a);document.body.appendChild(d);r=e.a.offsetWidth;t=n.a.offsetWidth;u=p.a.offsetWidth;E();z(e,function(a){f=a;q()});w(e,I(c,'\"'+c.family+'\",sans-serif'));z(n,function(a){g=a;q()});w(n,I(c,'\"'+c.family+'\",serif'));z(p,function(a){h=\na;q()});w(p,I(c,'\"'+c.family+'\",monospace'))})})};window.FontFaceObserver=A;window.FontFaceObserver.prototype.check=window.FontFaceObserver.prototype.load=A.prototype.load;\"undefined\"!==typeof module&&(module.exports=window.FontFaceObserver);}());\n\n},{}],2:[function(require,module,exports){\n/*\n * classList.js: Cross-browser full element.classList implementation.\n * 1.1.20170427\n *\n * By Eli Grey, http://eligrey.com\n * License: Dedicated to the public domain.\n * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md\n */\n\n/*global self, document, DOMException */\n\n/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */\n\nif (\"document\" in window.self) {\n\n// Full polyfill for browsers with no classList support\n// Including IE < Edge missing SVGElement.classList\nif (!(\"classList\" in document.createElement(\"_\")) \n\t|| document.createElementNS && !(\"classList\" in document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"))) {\n\n(function (view) {\n\n\"use strict\";\n\nif (!('Element' in view)) return;\n\nvar\n\t classListProp = \"classList\"\n\t, protoProp = \"prototype\"\n\t, elemCtrProto = view.Element[protoProp]\n\t, objCtr = Object\n\t, strTrim = String[protoProp].trim || function () {\n\t\treturn this.replace(/^\\s+|\\s+$/g, \"\");\n\t}\n\t, arrIndexOf = Array[protoProp].indexOf || function (item) {\n\t\tvar\n\t\t\t i = 0\n\t\t\t, len = this.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tif (i in this && this[i] === item) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}\n\t// Vendors: please allow content code to instantiate DOMExceptions\n\t, DOMEx = function (type, message) {\n\t\tthis.name = type;\n\t\tthis.code = DOMException[type];\n\t\tthis.message = message;\n\t}\n\t, checkTokenAndGetIndex = function (classList, token) {\n\t\tif (token === \"\") {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"SYNTAX_ERR\"\n\t\t\t\t, \"An invalid or illegal string was specified\"\n\t\t\t);\n\t\t}\n\t\tif (/\\s/.test(token)) {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"INVALID_CHARACTER_ERR\"\n\t\t\t\t, \"String contains an invalid character\"\n\t\t\t);\n\t\t}\n\t\treturn arrIndexOf.call(classList, token);\n\t}\n\t, ClassList = function (elem) {\n\t\tvar\n\t\t\t trimmedClasses = strTrim.call(elem.getAttribute(\"class\") || \"\")\n\t\t\t, classes = trimmedClasses ? trimmedClasses.split(/\\s+/) : []\n\t\t\t, i = 0\n\t\t\t, len = classes.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tthis.push(classes[i]);\n\t\t}\n\t\tthis._updateClassName = function () {\n\t\t\telem.setAttribute(\"class\", this.toString());\n\t\t};\n\t}\n\t, classListProto = ClassList[protoProp] = []\n\t, classListGetter = function () {\n\t\treturn new ClassList(this);\n\t}\n;\n// Most DOMException implementations don't allow calling DOMException's toString()\n// on non-DOMExceptions. Error's toString() is sufficient here.\nDOMEx[protoProp] = Error[protoProp];\nclassListProto.item = function (i) {\n\treturn this[i] || null;\n};\nclassListProto.contains = function (token) {\n\ttoken += \"\";\n\treturn checkTokenAndGetIndex(this, token) !== -1;\n};\nclassListProto.add = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tif (checkTokenAndGetIndex(this, token) === -1) {\n\t\t\tthis.push(token);\n\t\t\tupdated = true;\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.remove = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t\t, index\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tindex = checkTokenAndGetIndex(this, token);\n\t\twhile (index !== -1) {\n\t\t\tthis.splice(index, 1);\n\t\t\tupdated = true;\n\t\t\tindex = checkTokenAndGetIndex(this, token);\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.toggle = function (token, force) {\n\ttoken += \"\";\n\n\tvar\n\t\t result = this.contains(token)\n\t\t, method = result ?\n\t\t\tforce !== true && \"remove\"\n\t\t:\n\t\t\tforce !== false && \"add\"\n\t;\n\n\tif (method) {\n\t\tthis[method](token);\n\t}\n\n\tif (force === true || force === false) {\n\t\treturn force;\n\t} else {\n\t\treturn !result;\n\t}\n};\nclassListProto.toString = function () {\n\treturn this.join(\" \");\n};\n\nif (objCtr.defineProperty) {\n\tvar classListPropDesc = {\n\t\t get: classListGetter\n\t\t, enumerable: true\n\t\t, configurable: true\n\t};\n\ttry {\n\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t} catch (ex) { // IE 8 doesn't support enumerable:true\n\t\t// adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36\n\t\t// modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected\n\t\tif (ex.number === undefined || ex.number === -0x7FF5EC54) {\n\t\t\tclassListPropDesc.enumerable = false;\n\t\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t\t}\n\t}\n} else if (objCtr[protoProp].__defineGetter__) {\n\telemCtrProto.__defineGetter__(classListProp, classListGetter);\n}\n\n}(window.self));\n\n}\n\n// There is full or partial native classList support, so just check if we need\n// to normalize the add/remove and toggle APIs.\n\n(function () {\n\t\"use strict\";\n\n\tvar testElement = document.createElement(\"_\");\n\n\ttestElement.classList.add(\"c1\", \"c2\");\n\n\t// Polyfill for IE 10/11 and Firefox <26, where classList.add and\n\t// classList.remove exist but support only one argument at a time.\n\tif (!testElement.classList.contains(\"c2\")) {\n\t\tvar createMethod = function(method) {\n\t\t\tvar original = DOMTokenList.prototype[method];\n\n\t\t\tDOMTokenList.prototype[method] = function(token) {\n\t\t\t\tvar i, len = arguments.length;\n\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\ttoken = arguments[i];\n\t\t\t\t\toriginal.call(this, token);\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\t\tcreateMethod('add');\n\t\tcreateMethod('remove');\n\t}\n\n\ttestElement.classList.toggle(\"c3\", false);\n\n\t// Polyfill for IE 10 and Firefox <24, where classList.toggle does not\n\t// support the second argument.\n\tif (testElement.classList.contains(\"c3\")) {\n\t\tvar _toggle = DOMTokenList.prototype.toggle;\n\n\t\tDOMTokenList.prototype.toggle = function(token, force) {\n\t\t\tif (1 in arguments && !this.contains(token) === !force) {\n\t\t\t\treturn force;\n\t\t\t} else {\n\t\t\t\treturn _toggle.call(this, token);\n\t\t\t}\n\t\t};\n\n\t}\n\n\ttestElement = null;\n}());\n\n}\n\n},{}],3:[function(require,module,exports){\n/**\n * Module export\n *\n * @param {Element} el\n * @return {ClassList}\n */\n\nmodule.exports = function (el) {\n return new ClassList(el);\n};\n\n/**\n * Initialize a new ClassList for the given element\n *\n * @param {Element} el DOM Element\n */\nfunction ClassList(el) {\n if (!el || el.nodeType !== 1) {\n throw new Error('A DOM Element reference is required');\n }\n\n this.el = el;\n this.classList = el.classList;\n}\n\n/**\n * Check token validity\n *\n * @param token\n * @param [method]\n */\nfunction checkToken(token, method) {\n method = method || 'a method';\n\n if (typeof token != 'string') {\n throw new TypeError(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided (\\'' + token + '\\') is not a string.'\n );\n }\n if (token === \"\") {\n throw new SyntaxError(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided must not be empty.'\n );\n }\n if (/\\s/.test(token)) {\n throw new Error(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided (\\'' + token + '\\') contains HTML space ' +\n 'characters, which are not valid in tokens.'\n );\n }\n}\n\n/**\n * Return an array of the class names on the element.\n *\n * @return {Array}\n */\nClassList.prototype.toArray = function () {\n var str = (this.el.getAttribute('class') || '').replace(/^\\s+|\\s+$/g, '');\n var classes = str.split(/\\s+/);\n if ('' === classes[0]) { classes.shift(); }\n return classes;\n};\n\n/**\n * Add the given `token` to the class list if it's not already present.\n *\n * @param {String} token\n */\nClassList.prototype.add = function (token) {\n var classes, index, updated;\n checkToken(token, 'add');\n\n if (this.classList) {\n this.classList.add(token);\n }\n else {\n // fallback\n classes = this.toArray();\n index = classes.indexOf(token);\n if (index === -1) {\n classes.push(token);\n this.el.setAttribute('class', classes.join(' '));\n }\n }\n\n return;\n};\n\n/**\n * Check if the given `token` is in the class list.\n *\n * @param {String} token\n * @return {Boolean}\n */\nClassList.prototype.contains = function (token) {\n checkToken(token, 'contains');\n\n return this.classList ?\n this.classList.contains(token) :\n this.toArray().indexOf(token) > -1;\n};\n\n/**\n * Remove any class names that match the given `token`, when present.\n *\n * @param {String|RegExp} token\n */\nClassList.prototype.remove = function (token) {\n var arr, classes, i, index, len;\n\n if ('[object RegExp]' == Object.prototype.toString.call(token)) {\n arr = this.toArray();\n for (i = 0, len = arr.length; i < len; i++) {\n if (token.test(arr[i])) {\n this.remove(arr[i]);\n }\n }\n }\n else {\n checkToken(token, 'remove');\n\n if (this.classList) {\n this.classList.remove(token);\n }\n else {\n // fallback\n classes = this.toArray();\n index = classes.indexOf(token);\n if (index > -1) {\n classes.splice(index, 1);\n this.el.setAttribute('class', classes.join(' '));\n }\n }\n }\n\n return;\n};\n\n/**\n * Toggle the `token` in the class list. Optionally force state via `force`.\n *\n * Native `classList` is not used as some browsers that support `classList` do\n * not support `force`. Avoiding `classList` altogether keeps this function\n * simple.\n *\n * @param {String} token\n * @param {Boolean} [force]\n * @return {Boolean}\n */\nClassList.prototype.toggle = function (token, force) {\n checkToken(token, 'toggle');\n\n var hasToken = this.contains(token);\n var method = hasToken ? (force !== true && 'remove') : (force !== false && 'add');\n\n if (method) {\n this[method](token);\n }\n\n return (typeof force == 'boolean' ? force : !hasToken);\n};\n\n},{}],4:[function(require,module,exports){\nif (!Element.prototype.matches) {\r\n Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\r\n}\r\n\r\nif (!Element.prototype.closest) {\r\n Element.prototype.closest = function (s) {\r\n var el = this;\r\n\r\n do {\r\n if (el.matches(s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n}\r\n\n},{}],5:[function(require,module,exports){\n/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n\n},{}],6:[function(require,module,exports){\n(function (process,global){(function (){\n/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version 3.3.1\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global.ES6Promise = factory());\n}(this, (function () { 'use strict';\n\nfunction objectOrFunction(x) {\n return typeof x === 'function' || typeof x === 'object' && x !== null;\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\nvar _isArray = undefined;\nif (!Array.isArray) {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n} else {\n _isArray = Array.isArray;\n}\n\nvar isArray = _isArray;\n\nvar len = 0;\nvar vertxNext = undefined;\nvar customSchedulerFn = undefined;\n\nvar asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n};\n\nfunction setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n}\n\nfunction setAsap(asapFn) {\n asap = asapFn;\n}\n\nvar browserWindow = typeof window !== 'undefined' ? window : undefined;\nvar browserGlobal = browserWindow || {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nvar isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n}\n\n// vertx\nfunction useVertxTimer() {\n return function () {\n vertxNext(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n}\n\n// web worker\nfunction useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n}\n\nfunction useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n}\n\nvar queue = new Array(1000);\nfunction flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertx() {\n try {\n var r = require;\n var vertx = r('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n}\n\nvar scheduleFlush = undefined;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction then(onFulfillment, onRejection) {\n var _arguments = arguments;\n\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n if (_state) {\n (function () {\n var callback = _arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n })();\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n}\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nfunction resolve(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n _resolve(promise, object);\n return promise;\n}\n\nvar PROMISE_ID = Math.random().toString(36).substring(16);\n\nfunction noop() {}\n\nvar PENDING = void 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nvar GET_THEN_ERROR = new ErrorObject();\n\nfunction selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n}\n\nfunction cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n GET_THEN_ERROR.error = error;\n return GET_THEN_ERROR;\n }\n}\n\nfunction tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n}\n\nfunction handleForeignThenable(promise, thenable, then) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n _resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n\n _reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n _reject(promise, error);\n }\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n _reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return _resolve(promise, value);\n }, function (reason) {\n return _reject(promise, reason);\n });\n }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$) {\n if (maybeThenable.constructor === promise.constructor && then$$ === then && maybeThenable.constructor.resolve === resolve) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$ === GET_THEN_ERROR) {\n _reject(promise, GET_THEN_ERROR.error);\n } else if (then$$ === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$)) {\n handleForeignThenable(promise, maybeThenable, then$$);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n}\n\nfunction _resolve(promise, value) {\n if (promise === value) {\n _reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n}\n\nfunction publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n publish(promise);\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n}\n\nfunction _reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n\n asap(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\n parent._onerror = null;\n\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n}\n\nfunction publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = undefined,\n callback = undefined,\n detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nfunction ErrorObject() {\n this.error = null;\n}\n\nvar TRY_CATCH_ERROR = new ErrorObject();\n\nfunction tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = undefined,\n error = undefined,\n succeeded = undefined,\n failed = undefined;\n\n if (hasCallback) {\n value = tryCatch(callback, detail);\n\n if (value === TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n\n if (promise === value) {\n _reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n _resolve(promise, value);\n } else if (failed) {\n _reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n _reject(promise, value);\n }\n}\n\nfunction initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n _resolve(promise, value);\n }, function rejectPromise(reason) {\n _reject(promise, reason);\n });\n } catch (e) {\n _reject(promise, e);\n }\n}\n\nvar id = 0;\nfunction nextId() {\n return id++;\n}\n\nfunction makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n}\n\nfunction Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this._input = input;\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate();\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n _reject(this.promise, validationError());\n }\n}\n\nfunction validationError() {\n return new Error('Array Methods must be provided an Array');\n};\n\nEnumerator.prototype._enumerate = function () {\n var length = this.length;\n var _input = this._input;\n\n for (var i = 0; this._state === PENDING && i < length; i++) {\n this._eachEntry(_input[i], i);\n }\n};\n\nEnumerator.prototype._eachEntry = function (entry, i) {\n var c = this._instanceConstructor;\n var resolve$$ = c.resolve;\n\n if (resolve$$ === resolve) {\n var _then = getThen(entry);\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise) {\n var promise = new c(noop);\n handleMaybeThenable(promise, entry, _then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$) {\n return resolve$$(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$(entry), i);\n }\n};\n\nEnumerator.prototype._settledAt = function (state, i, value) {\n var promise = this.promise;\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n _reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n};\n\nEnumerator.prototype._willSettleAt = function (promise, i) {\n var enumerator = this;\n\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n};\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nfunction all(entries) {\n return new Enumerator(this, entries).promise;\n}\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nfunction race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n}\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n _reject(promise, reason);\n return promise;\n}\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {function} resolver\n Useful for tooling.\n @constructor\n*/\nfunction Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n}\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = resolve;\nPromise.reject = reject;\nPromise._setScheduler = setScheduler;\nPromise._setAsap = setAsap;\nPromise._asap = asap;\n\nPromise.prototype = {\n constructor: Promise,\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n \n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n \n Chaining\n --------\n \n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n \n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n \n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n \n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n \n Assimilation\n ------------\n \n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n \n If the assimliated promise rejects, then the downstream promise will also reject.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n \n Simple Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let result;\n \n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n \n Advanced Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let author, books;\n \n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n \n function foundBooks(books) {\n \n }\n \n function failure(reason) {\n \n }\n \n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n \n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n then: then,\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n \n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n \n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n \n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n \n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n 'catch': function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nfunction polyfill() {\n var local = undefined;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise;\n}\n\npolyfill();\n// Strange compat..\nPromise.polyfill = polyfill;\nPromise.Promise = Promise;\n\nreturn Promise;\n\n})));\n\n}).call(this)}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n\n},{\"_process\":10}],7:[function(require,module,exports){\n\nmodule.exports = function load (src, opts, cb) {\n var head = document.head || document.getElementsByTagName('head')[0]\n var script = document.createElement('script')\n\n if (typeof opts === 'function') {\n cb = opts\n opts = {}\n }\n\n opts = opts || {}\n cb = cb || function() {}\n\n script.type = opts.type || 'text/javascript'\n script.charset = opts.charset || 'utf8';\n script.async = 'async' in opts ? !!opts.async : true\n script.src = src\n\n if (opts.attrs) {\n setAttributes(script, opts.attrs)\n }\n\n if (opts.text) {\n script.text = '' + opts.text\n }\n\n var onend = 'onload' in script ? stdOnEnd : ieOnEnd\n onend(script, cb)\n\n // some good legacy browsers (firefox) fail the 'in' detection above\n // so as a fallback we always set onload\n // old IE will ignore this and new IE will set onload\n if (!script.onload) {\n stdOnEnd(script, cb);\n }\n\n head.appendChild(script)\n}\n\nfunction setAttributes(script, attrs) {\n for (var attr in attrs) {\n script.setAttribute(attr, attrs[attr]);\n }\n}\n\nfunction stdOnEnd (script, cb) {\n script.onload = function () {\n this.onerror = this.onload = null\n cb(null, script)\n }\n script.onerror = function () {\n // this.onload = null here is necessary\n // because even IE9 works not like others\n this.onerror = this.onload = null\n cb(new Error('Failed to load ' + this.src), script)\n }\n}\n\nfunction ieOnEnd (script, cb) {\n script.onreadystatechange = function () {\n if (this.readyState != 'complete' && this.readyState != 'loaded') return\n this.onreadystatechange = null\n cb(null, script) // there is no way to catch loading errors in IE8\n }\n}\n\n},{}],8:[function(require,module,exports){\n(function (global){(function (){\n/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = merge;\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n\n},{}],9:[function(require,module,exports){\n(function (global){(function (){\n/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n\n},{}],10:[function(require,module,exports){\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n},{}],11:[function(require,module,exports){\n!function(e,n){\"object\"==typeof exports?module.exports=n():e.StormOutliner=n()}(this,function(){\"use strict\";var e=document.getElementsByTagName(\"HEAD\")[0].appendChild(document.createElement(\"STYLE\"));document.addEventListener(\"mousedown\",function(){e.innerHTML=\"*:focus{outline:none !important}\"}),document.addEventListener(\"keydown\",function(){e.innerHTML=\"\"})});\n},{}],12:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _defaults = require('./lib/defaults');\n\nvar _defaults2 = _interopRequireDefault(_defaults);\n\nvar _componentPrototype = require('./lib/component-prototype');\n\nvar _componentPrototype2 = _interopRequireDefault(_componentPrototype);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * @name storm-toggler: Accessible UI state toggling\n * @version 1.3.2: Fri, 06 Oct 2017 11:11:32 GMT\n * @author stormid\n * @license MIT\n */\nvar init = function init(sel, opts) {\n\tvar els = [].slice.call(document.querySelectorAll(sel));\n\n\tif (!els.length) throw new Error('Toggler cannot be initialised, no augmentable elements found');\n\n\treturn els.map(function (el) {\n\t\treturn Object.assign(Object.create(_componentPrototype2.default), {\n\t\t\tbtn: el,\n\t\t\ttargetId: (el.getAttribute('href') || el.getAttribute('data-target')).substr(1),\n\t\t\tsettings: Object.assign({}, _defaults2.default, el.dataset, opts)\n\t\t}).init();\n\t});\n};\n\nexports.default = { init: init };\n\n},{\"./lib/component-prototype\":13,\"./lib/defaults\":14}],13:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nvar TRIGGER_EVENTS = ['click', 'keydown'],\n TRIGGER_KEYCODES = [13, 32];\n\nexports.default = {\n\tinit: function init() {\n\t\tvar _this = this;\n\n\t\tthis.targetElement = document.getElementById(this.targetId);\n\t\tthis.classTarget = !this.settings.local ? document.documentElement : this.targetElement.parentNode;\n\t\tthis.siblingBtns = [].slice.call(document.querySelectorAll('[href=\"#' + this.targetId + '\"], [data-target=\"#' + this.targetId + '\"]'));\n\t\tif (this.settings.focus) this.focusableChildren = this.getFocusableChildren();\n\t\tif (this.settings.trapTab) this.boundKeyListener = this.keyListener.bind(this);\n\n\t\tthis.statusClass = !this.settings.local ? 'on--' + this.targetId : 'active';\n\t\tthis.animatingClass = !this.settings.local ? 'animating--' + this.targetId : 'animating';\n\n\t\tthis.siblingBtns.forEach(function (btn) {\n\t\t\tbtn.setAttribute('role', 'button');\n\t\t\tbtn.setAttribute('aria-controls', _this.targetId);\n\t\t\tbtn.setAttribute('aria-expanded', 'false');\n\t\t});\n\n\t\tTRIGGER_EVENTS.forEach(function (ev) {\n\t\t\t_this.btn.addEventListener(ev, function (e) {\n\t\t\t\tif (!!e.keyCode && !~TRIGGER_KEYCODES.indexOf(e.keyCode)) return;\n\t\t\t\t_this.toggle(e);\n\t\t\t});\n\t\t});\n\t\tthis.settings.startOpen && this.toggle();\n\n\t\treturn this;\n\t},\n\tgetFocusableChildren: function getFocusableChildren() {\n\t\tvar focusableElements = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'];\n\n\t\treturn [].slice.call(this.targetElement.querySelectorAll(focusableElements.join(',')));\n\t},\n\n\ttoggleAttributes: function toggleAttributes() {\n\t\tthis.isOpen = !this.isOpen;\n\t\tthis.siblingBtns.forEach(function (sibling) {\n\t\t\tsibling.setAttribute('aria-expanded', sibling.getAttribute('aria-expanded') === 'true' ? 'false' : 'true');\n\t\t});\n\t},\n\ttoggleState: function toggleState() {\n\t\tthis.classTarget.classList.remove(this.animatingClass);\n\t\tthis.classTarget.classList.toggle(this.statusClass);\n\t},\n\tmanageFocus: function manageFocus() {\n\t\tvar _this2 = this;\n\n\t\tif (!this.isOpen) {\n\t\t\tthis.lastFocused = document.activeElement;\n\t\t\tthis.focusableChildren.length && window.setTimeout(function () {\n\t\t\t\treturn _this2.focusableChildren[0].focus();\n\t\t\t}, this.settings.delay);\n\t\t\tthis.settings.trapTab && document.addEventListener('keydown', this.boundKeyListener);\n\t\t} else {\n\t\t\tthis.settings.trapTab && document.removeEventListener('keydown', this.boundKeyListener);\n\t\t\tthis.focusableChildren.length && window.setTimeout(function () {\n\t\t\t\t_this2.lastFocused.focus();\n\t\t\t\t_this2.lastFocused = false;\n\t\t\t}, this.settings.delay);\n\t\t}\n\t},\n\ttrapTab: function trapTab(e) {\n\t\tvar focusedIndex = this.focusableChildren.indexOf(document.activeElement);\n\t\tif (e.shiftKey && focusedIndex === 0) {\n\t\t\te.preventDefault();\n\t\t\tthis.focusableChildren[this.focusableChildren.length - 1].focus();\n\t\t} else {\n\t\t\tif (!e.shiftKey && focusedIndex === this.focusableChildren.length - 1) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis.focusableChildren[0].focus();\n\t\t\t}\n\t\t}\n\t},\n\tkeyListener: function keyListener(e) {\n\t\tif (this.isOpen && e.keyCode === 27) {\n\t\t\te.preventDefault();\n\t\t\tthis.toggle();\n\t\t}\n\t\tif (this.isOpen && e.keyCode === 9) this.trapTab(e);\n\t},\n\n\ttoggle: function toggle(e) {\n\t\tvar _this3 = this;\n\n\t\tvar delay = this.classTarget.classList.contains(this.statusClass) ? this.settings.delay : 0;\n\n\t\t!!this.settings.prehook && typeof this.settings.prehook === 'function' && this.settings.prehook.call(this);\n\n\t\tif (e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t}\n\n\t\tthis.classTarget.classList.add(this.animatingClass);\n\n\t\twindow.setTimeout(function () {\n\t\t\t!!_this3.settings.focus && _this3.focusableChildren && _this3.manageFocus();\n\t\t\t_this3.toggleAttributes();\n\t\t\t_this3.toggleState();\n\t\t\t!!_this3.settings.callback && typeof _this3.settings.callback === 'function' && _this3.settings.callback.call(_this3);\n\t\t}, delay);\n\t}\n};\n\n},{}],14:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.default = {\n\tdelay: 0,\n\tstartOpen: false,\n\tlocal: false,\n\tprehook: false,\n\tcallback: false,\n\tfocus: true,\n\ttrapTab: false\n};\n\n},{}],15:[function(require,module,exports){\n/**\n * @name storm-utils: Common utility functions\n * @version 0.2.1: Tue, 27 Oct 2015 18:00:18 GMT\n * @author mjbp\n * @license MIT\n */(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.StormUtils = factory();\n }\n}(this, function() {\n\t'use strict';\n \n /**\n * @name classlist\n * @description Returns object that can add, remove, check for and toggle classes on an element\n * @params Each property of the object is a function that accepts a DOM element and a classname String\n *\n * @name attributelist\n * @description Returns object that can add, remove, and boolean toggle attributes on a DOM element\n */\n var classlist = {\n add : function(el, c) {\n el.className = el.className + ' ' + c;\n return this;\n },\n remove: function(el, c) {\n var re = new RegExp(\"(^|\\\\s+)\" + c + \"(\\\\s+|$)\");\n el.className = el.className.replace(re, ' ');\n return this;\n },\n has: function(el, c) {\n var re = new RegExp(\"(^|\\\\s+)\" + c + \"(\\\\s+|$)\");\n return re.test(el.className);\n },\n toggle: function(el, c) {\n if(classlist.has(el, c)) {\n classlist.remove(el, c);\n } else {\n el.className = el.className + ' ' + c;\n }\n return this;\n }\n },\n attributelist = {\n add: function(el, attrs) {\n for(var attr in attrs){\n el.setAttribute(attr, attrs[attr]);\n }\n return this;\n },\n toggle: function(el, attr) {\n el.setAttribute(attr, el.getAttribute(attr) === 'true' ? false : true);\n return this;\n }\n };\n \n /**\n * @name extend\n * @description Merges two (or more) objects, giving the last one precedence\n */\n function merge(target, source) {\n if ( typeof target !== 'object') {\n target = {};\n }\n \n for (var property in source) {\n if (source.hasOwnProperty(property)) {\n var sourceProperty = source[ property ];\n \n if ( typeof sourceProperty === 'object' ) {\n target[ property ] = merge( target[ property ], sourceProperty );\n continue;\n }\n target[property] = sourceProperty;\n }\n }\n for (var a = 2, l = arguments.length; a < l; a++) {\n merge(target, arguments[a]);\n }\n return target;\n }\n \n /**\n * @name on\n * @description batch attach events to an element\n * @param element, DOM node, to attach events to\n * @param events, String, comma separated events\n * @param fn, Function, \n */\n function on(element, events, fn) {\n events.split(' ').forEach(function(ev){\n element.addEventListener(ev, fn, false);\n });\n }\n \n /**\n * @name debounce\n * @description call function once after multiple invocations\n * @param fn, function to be called\n * @param wait, int, time to wait after last invocation before calling the function\n * @param immediate, boolean, whether to execute immediaely after last invocation or after another wait\n */\n function debounce(fn, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments,\n later = function() {\n timeout = null;\n if (!immediate) fn.apply(context, args);\n };\n if (immediate && !timeout) fn.apply(context, args);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(later, wait);\n };\n }\n \n /**\n * @name throttle\n * @description call a function with a maximum specified frequency\n * @param fn, function to be called\n * @param ms, int, minimum interval between calls\n */\n function throttle(fn, ms) {\n var timeout,\n last = 0;\n return function() {\n var a = arguments,\n t = this,\n now = +(new Date()),\n exe = function() { \n last = now; \n fn.apply(t,a); \n };\n window.clearTimeout(timeout);\n if(now >= last + ms) {\n exe();\n } else {\n timeout = window.setTimeout(exe, ms);\n }\n };\n }\n \n /**\n * @name loadJS\n * @description asynchronously load script files\n * @param src, String, src path of the script\n * @param cb, Function, callback function executed once the script is loaded or fails\n */\n function loadJS(src, cb) {\n var script = document.createElement('script'),\n timer = window.setTimeout(function() {\n cb('Script ' + src + ' failed to load in time.');\n }, 5000);\n \n script.src = src;\n script.onload = function() {\n window.clearTimeout(timer);\n cb();\n };\n document.body.appendChild(script);\n }\n \n /**\n * @name xhr\n * @description Make XMLHttpRequests\n * @param url, string, path to make the request to\n * @param method, string, HTTP method\n * @param cb, function, callback exectued after request is made\n * @param data, string, serialized form data\n */\n function xhr(url, method, cb, data) {\n\t\tvar http = new XMLHttpRequest(),\n\t\t\ttype = method || 'GET',\n\t\t\tparams = data || null;\n\t\t\n\t\tif(!!url) {\n\t\t\thttp.open(type, url, true);\n\t\t\t\n\t\t\tif(type === 'POST') {\n\t\t\t\thttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');\n\t\t\t}\n\t\t\t\n\t\t\thttp.onreadystatechange = function() {//Call a function when the state changes.\n\t\t\t\tif(http.readyState == 4 && http.status == 200) {\n\t\t\t\t\tif(!!cb) { cb(null, http.responseText); }\n\t\t\t\t}\n\t\t\t};\n\t\t\thttp.onerror = function(){\n\t\t\t\tif(!!cb) { cb('Error'); }\n\t\t\t};\n\t\t\thttp.send(params);\n\t\t}\n\t}\n \n /**\n * @name serialize\n * @description serialize a form, exactly the same result as jQuery's serialize()\n * @param form, DOM element, the form to serialize\n */\n function serialize(form){\n var field,\n s = [],\n len;\n if (!(typeof form == 'object' && form.nodeName == \"FORM\")) {\n return console.log('Cannot serialize form');\n }\n\n len = form.elements.length;\n for (var i =0; i < len; i++) {\n field = form.elements[i];\n if (field.name && !field.disabled && field.type != 'file' && field.type != 'reset' && field.type != 'submit' && field.type != 'button') {\n if (field.type == 'select-multiple') {\n for (var j = form.elements[i].options.length-1; j>=0; j--) {\n if(field.options[j].selected)\n s[s.length] = encodeURIComponent(field.name) + \"=\" + encodeURIComponent(field.options[j].value);\n }\n } else if ((field.type != 'checkbox' && field.type != 'radio') || field.checked) {\n s[s.length] = encodeURIComponent(field.name) + \"=\" + encodeURIComponent(field.value);\n }\n }\n }\n return s.join('&').replace(/%20/g, '+');\n }\n \n /**\n * @name closest\n * @description get the closest matching element up the DOM tree using element.matches()\n * @param el, DOM element, starting element\n * @param selector, DOM element, String, selector to test match\n */\n function closest(el, selector) {\n if (el.closest) {\n return el.closest(selector);\n }\n\n var matches = el.matches || el.msMatchesSelector;\n\n do {\n if (el.nodeType != 1) continue;\n if (matches.call(el, selector)) return el;\n } while (el = el.parentNode);\n\n return undefined;\n }\n \n /**\n * @name escapeHTML\n * @description escape HTML entities in a string\n * @param string, String, the string...\n */\n function escapeHTML(string) {\n var entityMap = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': '"',\n \"'\": ''',\n \"/\": '/'\n };\n return String(string).replace(/[&<>\"'\\/]/g, function (s) {\n return entityMap[s];\n });\n }\n \n return {\n throttle: throttle,\n debounce: debounce,\n merge: merge,\n on: on,\n classlist: classlist,\n attributelist: attributelist,\n loadJS: loadJS,\n serialize: serialize,\n xhr: xhr,\n closest: closest,\n escapeHTML: escapeHTML\n };\n }));\n},{}],16:[function(require,module,exports){\n(function (global){(function (){\n'use strict';\n\n//ƒpie//Closure to encapsulate all JS\n\n// polyfills\nrequire('classlist-polyfill');\nrequire('es6-object-assign').polyfill();\nrequire('es6-promise').polyfill();\nrequire('element-closest-polyfill');\n\nvar version = '1.0.1';\n\nvar UTILS = {\n merge: require('lodash.merge'),\n classlist: require('dom-classlist'),\n throttle: require('lodash.throttle'),\n loadScript: require('load-script'),\n tools: require('storm-utils'),\n cookies: require('./require/cookie-functions')\n},\n UI = function (w, d) {\n 'use strict';\n\n var ffo = require('FontFaceObserver'),\n //installed via npm install --save fontfaceobserver to node_modules\n Toggler = require('storm-toggler').default,\n //required from local directory\n //Modal = require('./require/modal'),\n Modal = require('./require/storm-modal'),\n initCookieBanner = function initCookieBanner() {\n //detect and return if not needed\n if (!d.querySelector('.cookie-banner')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/cookie-banner.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n CookieBanner.init('.cookie-banner');\n });\n },\n initCookieSettings = function initCookieSettings() {\n //detect and return if not needed\n if (!d.querySelector('[data-module=\"cookie-settings\"]')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/cookie-settings.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n CookieSettings.init('[data-module=\"cookie-settings\"]');\n });\n },\n initErrorSummary = function initErrorSummary() {\n //detect and return if not needed\n if (!d.querySelector('.error-summary')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/error-summary.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n new ErrorSummary('.error-summary');\n });\n },\n initFonts = function initFonts() {\n var ffo = new FontFaceObserver('Helvetica LT W01 Roman', {}).check().then(function () {\n d.documentElement.className = document.documentElement.className.replace(/\\bno-webfonts\\b/, '');\n }, function () {\n console.log('Font is not available after waiting 5 seconds');\n });\n },\n initQuiz = function initQuiz() {\n //detect and return if not needed\n if (!d.querySelector('.panel-quiz')) {\n return;\n }\n\n var quiz = d.querySelector('.panel-quiz');\n var quizQuestionContainers = quiz.querySelectorAll('.question-container');\n var quizStartButton = quiz.querySelector('#quiz-start');\n var quizEnd = quiz.querySelector('#quiz-end');\n var quizActiveRegion = quiz.querySelector('#quiz-active-region');\n\n function activateQuizPanel(panel) {\n var current = quizActiveRegion.children[0];\n quizActiveRegion.replaceChild(panel, current);\n panel.classList.add('active');\n }\n\n quizStartButton.onclick = function (e) {\n e.preventDefault();\n var firstQuestion = quizQuestionContainers[0];\n activateQuizPanel(firstQuestion.children[0]);\n };\n\n for (var i = 0; i < quizQuestionContainers.length; i++) {\n var questionContainer = quizQuestionContainers[i];\n var question = questionContainer.children[0];\n\n [].slice.call(question.querySelectorAll('button')).forEach(function (btn) {\n btn.addEventListener('click', function (e) {\n e.preventDefault();\n var questionIndex = parseInt(btn.dataset.questionindex);\n if (this.dataset.correct === \"true\") {\n if (questionIndex === quizQuestionContainers.length - 1) {\n activateQuizPanel(quizEnd);\n } else {\n var nextQuestion = quizQuestionContainers[questionIndex + 1];\n activateQuizPanel(nextQuestion.children[0]);\n }\n } else {\n var incorrectAnswer = quizQuestionContainers[questionIndex].children[0];\n activateQuizPanel(incorrectAnswer);\n }\n });\n });\n var questionText = question.querySelector('.question-text');\n if (questionText !== null) {\n var questionAnchors = questionText.querySelectorAll('a');\n if (questionAnchors.length > 0) {\n for (var j = 0; j < questionAnchors.length; j++) {\n var anchor = questionAnchors[j];\n anchor.onclick = function (e) {\n e.preventDefault();\n if (this.href.split('#').length > 1) {\n var wallPanelId = this.href.split('#')[1];\n if (d.getElementById(wallPanelId)) {\n d.getElementById(wallPanelId).click();\n d.getElementById(wallPanelId).focus({ preventScroll: true });\n }\n }\n };\n }\n }\n }\n }\n },\n initSmoothScroll = function initSmoothScroll() {\n //detect and return if not needed\n if (!d.querySelector('.js-smooth-scroll')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/smooth-scroll.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n smoothScroll.init();\n });\n },\n initScrollPoints = function initScrollPoints() {\n //detect and return if not needed\n if (!d.querySelector('.js-scroll-point')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/scrollpoints.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n ScrollPoints.init('.js-scroll-point', {\n offset: '15%',\n class: 'js-is-scrolled-in'\n });\n });\n },\n initTabsAccordion = function initTabsAccordion() {\n //detect and return if not needed\n if (!d.querySelector('.js-tab-accordion')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/tab-accordion.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n StormTabAccordion.init('.js-tab-accordion');\n });\n },\n initEqualizer = function initEqualizer() {\n //detect and return if not needed\n if (!d.querySelector('.js-equal-height')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/storm-equal-height.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n StormEqualHeight.init('.js-equal-height', { minHeight: 0 });\n });\n },\n initWall = function initWall() {\n //detect and return if not needed\n if (!d.querySelector('.js-wall')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/wall.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n Wall.init();\n });\n },\n initMap = function initMap() {\n //detect and return if not needed\n if (!d.querySelector('.js-map') && !window.googleMapsApiKey) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/map.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n\n var rawLocation = w.mapLocation;\n\n if (rawLocation) {\n var location = rawLocation.split(',');\n OurMap.asyncGoogleMapAPI(d.querySelector('.js-map'), [{\n \"id\": \"x\",\n \"title\": \"Location Title\",\n \"location\": {\n \"latitude\": location[0],\n \"longitude\": location[1]\n }\n }], {\n map: {\n APIKey: window.googleMapsApiKey\n }\n });\n } else {\n OurMap.asyncGoogleMapAPI(d.querySelector('.js-map'), [{\n \"id\": \"x\",\n \"title\": \"Location Title\",\n \"location\": {\n \"latitude\": \"55.944715\",\n \"longitude\": \"-3.197048\"\n }\n }], {\n map: {\n APIKey: window.googleMapsApiKey\n }\n });\n }\n });\n },\n initParallax = function initParallax() {\n //detect and return if not needed\n if (!d.querySelector('.js-parallax')) {\n return;\n }\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/parallax.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n Parallax.init(document.querySelector('.js-parallax'));\n });\n },\n initPies = function initPies() {\n //detect and return if not needed\n if (!d.querySelector('.js-chart')) {\n return;\n }\n\n // get accessible blood type name\n function getBloodTypeWithRhesusText(bloodType) {\n var rhesusSymbol = '';\n\n if (bloodType) {\n bloodType = bloodType.trim();\n rhesusSymbol = bloodType.slice(-1);\n }\n\n switch (rhesusSymbol) {\n case '-':\n return bloodType.slice(0, -1) + ' negative';\n case '+':\n return bloodType.slice(0, -1) + ' positive';\n }\n\n return '';\n }\n\n //loaded async as required\n STORM.UTILS.loadScript('/content/js/async/easypiechart.min.js?v=' + version, function (err) {\n if (err) {\n return console.log(err);\n }\n var pies = [],\n handler = function handler(e) {\n e.preventDefault();\n d.querySelector('.nav-tab__link--active').className = d.querySelector('.nav-tab__link--active').className.replace('nav-tab__link--active', '');\n e.target.className = e.target.className + ' nav-tab__link--active';\n var bloodGroupList = d.createElement('ul');\n\n pies.forEach(function (pie) {\n //console.log(pie.el.getAttribute('data-percentage-' + e.target.getAttribute('data-pie-value')));\n var currentTargetPercentage = pie.el.getAttribute('data-percentage-' + e.target.getAttribute('data-pie-value'));\n pie.update(currentTargetPercentage);\n pie.el.nextElementSibling.innerHTML = currentTargetPercentage + '%';\n\n var bloodGroupListItem = d.createElement('li');\n bloodGroupListItem.innerText = getBloodTypeWithRhesusText(pie.el.children[0].innerText) + ' ' + currentTargetPercentage + '%';\n bloodGroupList.appendChild(bloodGroupListItem);\n });\n\n var region = d.querySelector('#blood-group-region');\n region.innerHTML = bloodGroupList.outerHTML;\n };\n\n [].slice.call(d.querySelectorAll('.js-chart')).forEach(function (chart) {\n pies.push(new EasyPieChart(chart, {\n barColor: '#DB3325',\n scaleColor: false,\n lineWidth: 24,\n lineCap: 'circle'\n }));\n });\n [].slice.call(d.querySelectorAll('.js-pie__trigger')).forEach(function (btn) {\n btn.addEventListener('click', handler), false;\n btn.addEventListener('touchstart', handler), false;\n });\n });\n },\n initNearMe = function initNearMe() {\n if (!d.querySelector('.sessions-near-me')) {\n return;\n }\n var nearMe = d.querySelectorAll('.sessions-near-me');\n\n for (var i = 0; i < nearMe.length; i++) {\n var n = nearMe[i];\n var form = STORM.UTILS.tools.closest(n, 'form');\n var myPosition = form.querySelector('.my-position');\n n.onclick = function (e) {\n e.preventDefault();\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (pos) {\n var crds = pos.coords;\n myPosition.value = crds.latitude + \",\" + crds.longitude;\n myPosition.parentElement.submit();\n });\n }\n };\n }\n },\n initLocationSearchForm = function initLocationSearchForm() {\n var searchTermOverrides = {\n 'willowbrae': 'willowbrae, edinburgh',\n 'armadale': 'armadale, west lothian',\n 'dalbeattie': 'dalbeattie, dumfries',\n 'blackburn': 'blackburn, west lothian',\n 'blackhall': 'blackhall, edinburgh',\n 'newport': 'newport, fife',\n 'marryat hall': 'marryat hall, dundee',\n 'pennyburn': 'pennyburn, kilwinning',\n 'murray': 'murray, east kilbride',\n 'hillhouse': 'hillhouse, hamilton',\n 'stonehouse': 'stonehouse, ml9',\n 'charleston': 'charleston, iv3',\n 'hilton': 'hilton primary school, inverness',\n 'bowhouse': 'bowhouse, FK3'\n };\n\n if (d.querySelector('#header-location-search-form')) {\n var headerForm = d.querySelector('#header-location-search-form');\n headerForm.onsubmit = function (e) {\n e.preventDefault();\n var searchTerm = e.currentTarget[2].value.toLowerCase();\n if (searchTermOverrides[searchTerm]) {\n searchTerm = searchTermOverrides[searchTerm];\n }\n\n var myPosition = headerForm.querySelector('.my-position');\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\n if (status === google.maps.GeocoderStatus.OK) {\n var lat = results[0].geometry.location.lat();\n var lng = results[0].geometry.location.lng();\n myPosition.value = lat + \",\" + lng;\n myPosition.parentElement.submit();\n } else {\n myPosition.value = \"not-found\";\n myPosition.parentElement.submit();\n }\n });\n };\n }\n\n if (d.querySelector('#footer-location-search-form')) {\n var footerForm = d.querySelector('#footer-location-search-form');\n footerForm.onsubmit = function (e) {\n e.preventDefault();\n\n var searchTerm = e.currentTarget[2].value.toLowerCase();\n\n if (searchTermOverrides[searchTerm]) {\n searchTerm = searchTermOverrides[searchTerm];\n }\n\n var myPosition = footerForm.querySelector('.my-position');\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\n if (status === google.maps.GeocoderStatus.OK) {\n var lat = results[0].geometry.location.lat();\n var lng = results[0].geometry.location.lng();\n myPosition.value = lat + \",\" + lng;\n myPosition.parentElement.submit();\n } else {\n myPosition.value = \"not-found\";\n myPosition.parentElement.submit();\n }\n });\n };\n }\n\n if (d.querySelector('#modal-location-search-form')) {\n var modalForm = d.querySelector('#modal-location-search-form');\n modalForm.onsubmit = function (e) {\n e.preventDefault();\n\n var searchTerm = e.currentTarget[2].value.toLowerCase();\n\n if (searchTermOverrides[searchTerm]) {\n searchTerm = searchTermOverrides[searchTerm];\n }\n\n var myPosition = modalForm.querySelector('.my-position');\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\n if (status === google.maps.GeocoderStatus.OK) {\n var lat = results[0].geometry.location.lat();\n var lng = results[0].geometry.location.lng();\n myPosition.value = lat + \",\" + lng;\n myPosition.parentElement.submit();\n } else {\n myPosition.value = \"not-found\";\n myPosition.parentElement.submit();\n }\n });\n };\n }\n },\n initSearchUnderline = function initSearchUnderline() {\n var underlineTemplate = '';\n\n [].slice.call(d.querySelectorAll('.js-modal-input ')).forEach(function (input) {\n input.insertAdjacentHTML('beforebegin', underlineTemplate);\n input.addEventListener('keyup', function (e) {\n input.previousElementSibling.textContent = input.value;\n }, false);\n });\n },\n initLocationDropdown = function initLocationDropdown() {\n if (!!d.querySelector('#locations') && !!d.querySelector('#date-and-time')) {\n var locations = d.querySelector('#locations');\n var dateAndTime = d.querySelector('#date-and-time');\n locations.onchange = function () {\n var locationId = this.options[this.selectedIndex].value;\n var http = new XMLHttpRequest();\n http.open('POST', '/umbraco/surface/OnlineAppointmentCallback/GetLocationSessions', true);\n http.setRequestHeader('Content-type', 'application/json');\n http.onreadystatechange = function () {\n //Call a function when the state changes.\n if (http.readyState == 4 && http.status == 200) {\n var items = JSON.parse(http.responseText);\n console.log(items);\n dateAndTime.options.length = 0;\n var opt = d.createElement('option');\n opt.text = \"Select...\";\n opt.value = \"\";\n dateAndTime.add(opt);\n for (var item in items) {\n console.log(item);\n var date = d.createElement('option');\n date.text = items[item].date;\n date.value = items[item].date;\n dateAndTime.add(date);\n }\n }\n };\n\n http.onerror = function () {\n console.log(\"Error retrieving sessions\");\n };\n\n http.send(JSON.stringify({ locationId: locationId }));\n };\n }\n },\n initNavPrimary = function initNavPrimary() {\n // the storm-toggler library sets all togglers to have an aria-expanded value of false on page load\n // the code below sets this to true if the nav item has a sub-menu and is active\n if (!!d.querySelector('.nav-primary__item--has-subnav.active')) {\n var toggle = d.querySelector('.nav-primary__item--has-subnav.active .js-toggle__local');\n toggle.setAttribute('aria-expanded', 'true');\n }\n },\n initCards = function initCards() {\n //detect and return if not needed\n if (!d.querySelector('.js-card')) {\n return;\n }\n\n [].slice.call(d.querySelectorAll('.js-card')).forEach(function (card) {\n\n var link = card.querySelector('.js-card__link');\n card.style.cursor = 'pointer';\n card.addEventListener('click', function (e) {\n if (link !== e.target) {\n link.click();\n }\n });\n });\n },\n init = function init() {\n //initialise everything\n /*\r\n Modal('.js-modal-trigger-1', '.js-modal-overlay-1');\r\n Modal('.js-modal-trigger-2', '.js-modal-overlay-2');\r\n Modal('.js-modal-trigger-3', '.js-modal-overlay-3');\r\n */\n Modal.init('.js-modal');\n /*\r\n STORM.UI.modals = Modal.init('.js-modal', {\r\n callback: function(){\r\n STORM.UI.modals.forEach(function(modal){\r\n if(modal !== this && !!modal.isOpen){\r\n modal.close();\r\n }\r\n }.bind(this));\r\n }});\r\n */\n initCookieBanner();\n initCookieSettings();\n initFonts();\n initErrorSummary();\n initMap();\n initParallax();\n initPies();\n initTabsAccordion();\n initNearMe();\n initQuiz();\n initSmoothScroll();\n initScrollPoints();\n initLocationSearchForm();\n Toggler.init('.js-toggle', { trapTab: true });\n Toggler.init('.js-toggle__local', { local: true, delay: 0 });\n !!d.querySelector('.js-toggle__faq') && Toggler.init('.js-toggle__faq');\n !!d.querySelector('.js-toggle__search-filters') && Toggler.init('.js-toggle__search-filters');\n initNavPrimary();\n initSearchUnderline();\n initCards();\n require('storm-outliner');\n !!d.querySelector('.active .nav-secondary') && (d.documentElement.className += ' on--nav-secondary');\n },\n loaded = function loaded() {\n initWall();\n initEqualizer();\n initLocationDropdown();\n if (!!d.querySelector('.js-jump-to-wall')) {\n [].slice.call(d.querySelectorAll('.js-jump-to-wall')).forEach(function (el) {\n el.addEventListener('click', function (e) {\n e.preventDefault();\n var elementId = el.getAttribute('href').split('#')[1];\n d.getElementById(elementId).click();\n d.getElementById(elementId).focus({ preventScroll: true });\n });\n });\n }\n };\n\n //Interface with/entry point to site JS\n return {\n init: init,\n loaded: loaded\n };\n}(window, document, undefined);\n\n//expose globally\nglobal.STORM = {\n UTILS: UTILS,\n UI: UI\n};\n\n//Cut the mustard\n//Don't run any JS if the browser can't handle it\nif ('addEventListener' in window) {\n window.addEventListener('DOMContentLoaded', STORM.UI.init, false);\n window.addEventListener('load', STORM.UI.loaded, false);\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n\n},{\"./require/cookie-functions\":17,\"./require/storm-modal\":18,\"FontFaceObserver\":1,\"classlist-polyfill\":2,\"dom-classlist\":3,\"element-closest-polyfill\":4,\"es6-object-assign\":5,\"es6-promise\":6,\"load-script\":7,\"lodash.merge\":8,\"lodash.throttle\":9,\"storm-outliner\":11,\"storm-toggler\":12,\"storm-utils\":15}],17:[function(require,module,exports){\n(function (global){(function (){\n'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {\n module.exports = factory();\n } else {\n root.CookieFunctions = factory();\n }\n})(undefined, function () {\n 'use strict';\n\n var DEFAULT_COOKIE_CONSENT = {\n essential: true,\n usage: false // IMPORTANT - if set to false cookie-banner component must also be configured to initialize analytics\n };\n\n var COOKIE_CATEGORIES = {\n ARRAffinity: 'essential',\n cookies_policy: 'essential',\n cookies_preferences_set: 'essential',\n _ga: 'usage',\n _gid: 'usage',\n _gat: 'usage',\n _ga_GYYSMG01V4: 'usage'\n };\n\n function getDateForCookieExpiration(days) {\n var date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n return date.toGMTString();\n }\n\n /*\r\n Cookie methods\r\n ==============\r\n Usage:\r\n Setting a cookie:\r\n cookieJar('hobnob', 'tasty', { days: 30 });\r\n Reading a cookie:\r\n cookieJar('hobnob');\r\n Deleting a cookie:\r\n cookieJar('hobnob', null);\r\n */\n function cookieJar(name, value, options) {\n if (typeof value !== 'undefined') {\n if (value === false || value === null) {\n return setCookie(name, '', { days: -1 });\n } else {\n // Default expiry date of 30 days\n if (typeof options === 'undefined') {\n options = { days: 30 };\n }\n return setCookie(name, value, options);\n }\n } else {\n return getCookie(name);\n }\n }\n\n function setDefaultConsentCookie() {\n setConsentCookie(DEFAULT_COOKIE_CONSENT);\n }\n\n function approveAllCookieTypes() {\n var approvedConsent = {\n essential: true,\n usage: true\n };\n\n setCookie('cookies_policy', JSON.stringify(approvedConsent), { days: 365 });\n }\n\n function getConsentCookie() {\n var consentCookie = cookieJar('cookies_policy');\n var consentCookieObj;\n\n if (consentCookie) {\n try {\n consentCookieObj = JSON.parse(consentCookie);\n } catch (err) {\n return null;\n }\n\n if ((typeof consentCookieObj === 'undefined' ? 'undefined' : _typeof(consentCookieObj)) !== 'object' && consentCookieObj !== null) {\n consentCookieObj = JSON.parse(consentCookieObj);\n }\n } else {\n return null;\n }\n\n return consentCookieObj;\n }\n\n function setConsentCookie(options) {\n var cookieConsent = getConsentCookie();\n\n if (!cookieConsent) {\n cookieConsent = JSON.parse(JSON.stringify(DEFAULT_COOKIE_CONSENT));\n }\n\n for (var cookieType in options) {\n cookieConsent[cookieType] = options[cookieType];\n\n // Delete cookies of that type if consent being set to false\n if (!options[cookieType]) {\n for (var cookie in COOKIE_CATEGORIES) {\n if (COOKIE_CATEGORIES[cookie] === cookieType) {\n deleteCookie(cookie);\n }\n }\n }\n }\n\n setCookie('cookies_policy', JSON.stringify(cookieConsent), { days: 365 });\n }\n\n function checkConsentCookieCategory(cookieName, cookieCategory) {\n var currentConsentCookie = getConsentCookie();\n\n // If the consent cookie doesn't exist, but the cookie is in our known list, return true\n if (!currentConsentCookie && COOKIE_CATEGORIES[cookieName]) {\n return true;\n }\n\n currentConsentCookie = getConsentCookie();\n\n // Sometimes currentConsentCookie is malformed in some of the tests, so we need to handle these\n try {\n return currentConsentCookie[cookieCategory];\n } catch (e) {\n console.error(e);\n return false;\n }\n }\n\n function checkConsentCookie(cookieName, cookieValue) {\n // If we're setting the consent cookie OR deleting a cookie, allow by default\n if (cookieName === 'cookies_policy' || cookieValue === null || cookieValue === false) {\n return true;\n }\n\n if (COOKIE_CATEGORIES[cookieName]) {\n var cookieCategory = COOKIE_CATEGORIES[cookieName];\n\n return checkConsentCookieCategory(cookieName, cookieCategory);\n } else {\n // Deny the cookie if it is not known to us\n return false;\n }\n }\n\n function setCookie(name, value, options) {\n if (checkConsentCookie(name, value)) {\n if (typeof options === 'undefined') {\n options = {};\n }\n var cookieString = name + '=' + value + '; path=/';\n if (options.days) {\n cookieString = cookieString + '; expires=' + getDateForCookieExpiration(options.days);\n }\n if (document.location.protocol === 'https:') {\n cookieString = cookieString + '; Secure';\n }\n document.cookie = cookieString;\n }\n }\n\n function getCookie(name) {\n var nameEQ = name + '=';\n var cookies = document.cookie.split(';');\n for (var i = 0, len = cookies.length; i < len; i++) {\n var cookie = cookies[i];\n while (cookie.charAt(0) === ' ') {\n cookie = cookie.substring(1, cookie.length);\n }\n if (cookie.indexOf(nameEQ) === 0) {\n return decodeURIComponent(cookie.substring(nameEQ.length));\n }\n }\n return null;\n }\n\n function getCookieCategory(cookie) {\n return COOKIE_CATEGORIES[cookie];\n }\n\n function deleteCookie(cookie) {\n cookieJar(cookie, null);\n\n if (cookieJar(cookie)) {\n // We need to handle deleting cookies on the domain and the .domain\n document.cookie = cookie + '=;expires=' + getDateForCookieExpiration(-1) + ';domain=.' + global.location.hostname + ';path=/';\n }\n }\n\n function deleteUnconsentedCookies() {\n var currentConsent = getConsentCookie();\n\n for (var cookieType in currentConsent) {\n // Delete cookies of that type if consent being set to false\n if (!currentConsent[cookieType]) {\n for (var cookie in COOKIE_CATEGORIES) {\n if (COOKIE_CATEGORIES[cookie] === cookieType) {\n deleteCookie(cookie);\n }\n }\n }\n }\n }\n\n return {\n cookie: cookieJar,\n setCookie: setCookie,\n setDefaultConsentCookie: setDefaultConsentCookie,\n approveAllCookieTypes: approveAllCookieTypes,\n getCookieCategory: getCookieCategory,\n deleteUnconsentedCookies: deleteUnconsentedCookies,\n setConsentCookie: setConsentCookie,\n getConsentCookie: getConsentCookie\n };\n});\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n\n},{}],18:[function(require,module,exports){\n'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n/**\r\n * @name storm-modal: Accessible modal dialogue\r\n * @version 0.3.0: Wed, 29 Jun 2016 12:18:51 GMT\r\n * @author stormid\r\n * @license MIT\r\n */(function (root, factory) {\n\tif ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {\n\t\tmodule.exports = factory();\n\t} else {\n\t\troot.StormModal = factory();\n\t}\n})(undefined, function () {\n\t'use strict';\n\n\tvar instances = [],\n\t CONSTANTS = {\n\t\tTRIGGER_EVENTS: ['click', 'keydown'],\n\t\tTRIGGER_KEYCODES: [13, 32]\n\t},\n\t defaults = {\n\t\tonClassName: 'active',\n\t\tmodalSelector: 'js-modal',\n\t\tstyles: [{\n\t\t\topacity: 0,\n\t\t\tvisibility: 'hidden',\n\t\t\tposition: 'absolute',\n\t\t\toverflow: 'hidden',\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t}, {\n\t\t\topacity: 1,\n\t\t\tvisibility: 'visible',\n\t\t\toverflow: 'inherit',\n\t\t\tposition: 'fixed',\n\t\t\twidth: 'auto',\n\t\t\theight: 'auto',\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: 0,\n\t\t\tright: 0,\n\t\t\tzIndex: 9\n\t\t}],\n\t\tcallback: null\n\t},\n\t StormModal = {\n\t\tinit: function init() {\n\t\t\tthis.isOpen = false;\n\t\t\tthis.togglers = this.node.getAttribute('data-modal-toggler') && [].slice.call(document.querySelectorAll('.' + this.node.getAttribute('data-modal-toggler')));\n\n\t\t\tif (!!!this.togglers) {\n\t\t\t\tthrow new Error('Modal cannot be initialised, no modal toggler elements found');\n\t\t\t}\n\t\t\tthis.togglers.forEach(function (toggler) {\n\t\t\t\tCONSTANTS.TRIGGER_EVENTS.forEach(function (ev) {\n\t\t\t\t\ttoggler.addEventListener(ev, function (e) {\n\t\t\t\t\t\tif (!!e.keyCode && !~CONSTANTS.TRIGGER_KEYCODES.indexOf(e.keyCode)) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\tthis.change(this);\n\t\t\t\t\t}.bind(this), false);\n\t\t\t\t}.bind(this));\n\t\t\t}.bind(this));\n\t\t\tthis.focusableChildren = this.getFocusableChildren();\n\t\t\tthis.setStyles();\n\t\t\tthis.node.setAttribute('aria-hidden', true);\n\t\t\tthis.node.setAttribute('role', 'dialog');\n\t\t\tthis.node.setAttribute('aria-modal', 'true');\n\n\t\t\treturn this;\n\t\t},\n\t\tgetFocusableChildren: function getFocusableChildren() {\n\t\t\tvar focusableElements = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'];\n\t\t\treturn [].slice.call(this.node.querySelectorAll(focusableElements.join(','))).filter(function (child) {\n\t\t\t\treturn !!(child.offsetWidth || child.offsetHeight || child.getClientRects().length);\n\t\t\t});\n\t\t},\n\t\ttrapTab: function trapTab(e) {\n\t\t\tvar focusedIndex = this.focusableChildren.indexOf(document.activeElement);\n\t\t\tif (e.shiftKey && focusedIndex === 0) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis.focusableChildren[this.focusableChildren.length - 1].focus();\n\t\t\t} else {\n\t\t\t\tif (!e.shiftKey && focusedIndex === this.focusableChildren.length - 1) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tthis.focusableChildren[0].focus();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tsetStyles: function setStyles() {\n\t\t\tfor (var s in this.settings.styles[Number(this.isOpen)]) {\n\t\t\t\tthis.node.style[s] = this.settings.styles[Number(this.isOpen)][s];\n\t\t\t}\n\t\t},\n\t\tkeyListener: function keyListener(e) {\n\t\t\tif (this.isOpen && e.keyCode === 27) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis.change();\n\t\t\t}\n\t\t\tif (this.isOpen && e.keyCode === 9) {\n\t\t\t\tthis.trapTab(e);\n\t\t\t}\n\t\t},\n\t\topen: function open() {\n\t\t\tdocument.documentElement.classList.add('on--modal');\n\t\t\tdocument.addEventListener('keydown', this.keyListener.bind(this));\n\t\t\tthis.lastFocused = document.activeElement;\n\t\t\twindow.setTimeout(function () {\n\t\t\t\tthis.focusableChildren[0].focus();\n\t\t\t}.bind(this), 0);\n\t\t\tthis.toggle();\n\t\t},\n\t\tclose: function close() {\n\t\t\tdocument.documentElement.classList.remove('on--modal');\n\t\t\tdocument.removeEventListener('keydown', this.keyListener.bind(this));\n\t\t\tthis.lastFocused.focus();\n\t\t\tthis.toggle();\n\t\t},\n\t\ttoggle: function toggle() {\n\t\t\tvar self = this;\n\t\t\tself.isOpen = !self.isOpen;\n\t\t\tself.setStyles();\n\t\t\tself.node.setAttribute('aria-hidden', !self.isOpen);\n\t\t\t[].slice.call(document.querySelectorAll('.js-modal-aria-hidden')).forEach(function (el) {\n\t\t\t\tel.setAttribute('aria-hidden', self.isOpen);\n\t\t\t});\n\t\t},\n\t\tchange: function change() {\n\t\t\tif (!this.isOpen) {\n\t\t\t\tthis.open();\n\t\t\t} else {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t\ttypeof this.settings.callback === 'function' && this.settings.callback.call(this);\n\t\t}\n\n\t};\n\n\tfunction init(sel, opts) {\n\t\tvar els = [].slice.call(document.querySelectorAll(sel));\n\n\t\tif (els.length === 0) {\n\t\t\tthrow new Error('Modal cannot be initialised, no trigger elements found');\n\t\t}\n\n\t\tinstances = els.map(function (el) {\n\t\t\treturn Object.assign(Object.create(StormModal), {\n\t\t\t\tnode: el,\n\t\t\t\tsettings: Object.assign({}, defaults, opts)\n\t\t\t}).init();\n\t\t});\n\n\t\treturn instances;\n\t}\n\n\treturn {\n\t\tinit: init\n\t};\n});\n\n},{}]},{},[16])\n\n","/*\n * classList.js: Cross-browser full element.classList implementation.\n * 1.1.20170427\n *\n * By Eli Grey, http://eligrey.com\n * License: Dedicated to the public domain.\n * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md\n */\n\n/*global self, document, DOMException */\n\n/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */\n\nif (\"document\" in window.self) {\n\n// Full polyfill for browsers with no classList support\n// Including IE < Edge missing SVGElement.classList\nif (!(\"classList\" in document.createElement(\"_\")) \n\t|| document.createElementNS && !(\"classList\" in document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"))) {\n\n(function (view) {\n\n\"use strict\";\n\nif (!('Element' in view)) return;\n\nvar\n\t classListProp = \"classList\"\n\t, protoProp = \"prototype\"\n\t, elemCtrProto = view.Element[protoProp]\n\t, objCtr = Object\n\t, strTrim = String[protoProp].trim || function () {\n\t\treturn this.replace(/^\\s+|\\s+$/g, \"\");\n\t}\n\t, arrIndexOf = Array[protoProp].indexOf || function (item) {\n\t\tvar\n\t\t\t i = 0\n\t\t\t, len = this.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tif (i in this && this[i] === item) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}\n\t// Vendors: please allow content code to instantiate DOMExceptions\n\t, DOMEx = function (type, message) {\n\t\tthis.name = type;\n\t\tthis.code = DOMException[type];\n\t\tthis.message = message;\n\t}\n\t, checkTokenAndGetIndex = function (classList, token) {\n\t\tif (token === \"\") {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"SYNTAX_ERR\"\n\t\t\t\t, \"An invalid or illegal string was specified\"\n\t\t\t);\n\t\t}\n\t\tif (/\\s/.test(token)) {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"INVALID_CHARACTER_ERR\"\n\t\t\t\t, \"String contains an invalid character\"\n\t\t\t);\n\t\t}\n\t\treturn arrIndexOf.call(classList, token);\n\t}\n\t, ClassList = function (elem) {\n\t\tvar\n\t\t\t trimmedClasses = strTrim.call(elem.getAttribute(\"class\") || \"\")\n\t\t\t, classes = trimmedClasses ? trimmedClasses.split(/\\s+/) : []\n\t\t\t, i = 0\n\t\t\t, len = classes.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tthis.push(classes[i]);\n\t\t}\n\t\tthis._updateClassName = function () {\n\t\t\telem.setAttribute(\"class\", this.toString());\n\t\t};\n\t}\n\t, classListProto = ClassList[protoProp] = []\n\t, classListGetter = function () {\n\t\treturn new ClassList(this);\n\t}\n;\n// Most DOMException implementations don't allow calling DOMException's toString()\n// on non-DOMExceptions. Error's toString() is sufficient here.\nDOMEx[protoProp] = Error[protoProp];\nclassListProto.item = function (i) {\n\treturn this[i] || null;\n};\nclassListProto.contains = function (token) {\n\ttoken += \"\";\n\treturn checkTokenAndGetIndex(this, token) !== -1;\n};\nclassListProto.add = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tif (checkTokenAndGetIndex(this, token) === -1) {\n\t\t\tthis.push(token);\n\t\t\tupdated = true;\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.remove = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t\t, index\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tindex = checkTokenAndGetIndex(this, token);\n\t\twhile (index !== -1) {\n\t\t\tthis.splice(index, 1);\n\t\t\tupdated = true;\n\t\t\tindex = checkTokenAndGetIndex(this, token);\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.toggle = function (token, force) {\n\ttoken += \"\";\n\n\tvar\n\t\t result = this.contains(token)\n\t\t, method = result ?\n\t\t\tforce !== true && \"remove\"\n\t\t:\n\t\t\tforce !== false && \"add\"\n\t;\n\n\tif (method) {\n\t\tthis[method](token);\n\t}\n\n\tif (force === true || force === false) {\n\t\treturn force;\n\t} else {\n\t\treturn !result;\n\t}\n};\nclassListProto.toString = function () {\n\treturn this.join(\" \");\n};\n\nif (objCtr.defineProperty) {\n\tvar classListPropDesc = {\n\t\t get: classListGetter\n\t\t, enumerable: true\n\t\t, configurable: true\n\t};\n\ttry {\n\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t} catch (ex) { // IE 8 doesn't support enumerable:true\n\t\t// adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36\n\t\t// modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected\n\t\tif (ex.number === undefined || ex.number === -0x7FF5EC54) {\n\t\t\tclassListPropDesc.enumerable = false;\n\t\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t\t}\n\t}\n} else if (objCtr[protoProp].__defineGetter__) {\n\telemCtrProto.__defineGetter__(classListProp, classListGetter);\n}\n\n}(window.self));\n\n}\n\n// There is full or partial native classList support, so just check if we need\n// to normalize the add/remove and toggle APIs.\n\n(function () {\n\t\"use strict\";\n\n\tvar testElement = document.createElement(\"_\");\n\n\ttestElement.classList.add(\"c1\", \"c2\");\n\n\t// Polyfill for IE 10/11 and Firefox <26, where classList.add and\n\t// classList.remove exist but support only one argument at a time.\n\tif (!testElement.classList.contains(\"c2\")) {\n\t\tvar createMethod = function(method) {\n\t\t\tvar original = DOMTokenList.prototype[method];\n\n\t\t\tDOMTokenList.prototype[method] = function(token) {\n\t\t\t\tvar i, len = arguments.length;\n\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\ttoken = arguments[i];\n\t\t\t\t\toriginal.call(this, token);\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\t\tcreateMethod('add');\n\t\tcreateMethod('remove');\n\t}\n\n\ttestElement.classList.toggle(\"c3\", false);\n\n\t// Polyfill for IE 10 and Firefox <24, where classList.toggle does not\n\t// support the second argument.\n\tif (testElement.classList.contains(\"c3\")) {\n\t\tvar _toggle = DOMTokenList.prototype.toggle;\n\n\t\tDOMTokenList.prototype.toggle = function(token, force) {\n\t\t\tif (1 in arguments && !this.contains(token) === !force) {\n\t\t\t\treturn force;\n\t\t\t} else {\n\t\t\t\treturn _toggle.call(this, token);\n\t\t\t}\n\t\t};\n\n\t}\n\n\ttestElement = null;\n}());\n\n}\n","/**\n * Module export\n *\n * @param {Element} el\n * @return {ClassList}\n */\n\nmodule.exports = function (el) {\n return new ClassList(el);\n};\n\n/**\n * Initialize a new ClassList for the given element\n *\n * @param {Element} el DOM Element\n */\nfunction ClassList(el) {\n if (!el || el.nodeType !== 1) {\n throw new Error('A DOM Element reference is required');\n }\n\n this.el = el;\n this.classList = el.classList;\n}\n\n/**\n * Check token validity\n *\n * @param token\n * @param [method]\n */\nfunction checkToken(token, method) {\n method = method || 'a method';\n\n if (typeof token != 'string') {\n throw new TypeError(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided (\\'' + token + '\\') is not a string.'\n );\n }\n if (token === \"\") {\n throw new SyntaxError(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided must not be empty.'\n );\n }\n if (/\\s/.test(token)) {\n throw new Error(\n 'Failed to execute \\'' + method + '\\' on \\'ClassList\\': ' +\n 'the token provided (\\'' + token + '\\') contains HTML space ' +\n 'characters, which are not valid in tokens.'\n );\n }\n}\n\n/**\n * Return an array of the class names on the element.\n *\n * @return {Array}\n */\nClassList.prototype.toArray = function () {\n var str = (this.el.getAttribute('class') || '').replace(/^\\s+|\\s+$/g, '');\n var classes = str.split(/\\s+/);\n if ('' === classes[0]) { classes.shift(); }\n return classes;\n};\n\n/**\n * Add the given `token` to the class list if it's not already present.\n *\n * @param {String} token\n */\nClassList.prototype.add = function (token) {\n var classes, index, updated;\n checkToken(token, 'add');\n\n if (this.classList) {\n this.classList.add(token);\n }\n else {\n // fallback\n classes = this.toArray();\n index = classes.indexOf(token);\n if (index === -1) {\n classes.push(token);\n this.el.setAttribute('class', classes.join(' '));\n }\n }\n\n return;\n};\n\n/**\n * Check if the given `token` is in the class list.\n *\n * @param {String} token\n * @return {Boolean}\n */\nClassList.prototype.contains = function (token) {\n checkToken(token, 'contains');\n\n return this.classList ?\n this.classList.contains(token) :\n this.toArray().indexOf(token) > -1;\n};\n\n/**\n * Remove any class names that match the given `token`, when present.\n *\n * @param {String|RegExp} token\n */\nClassList.prototype.remove = function (token) {\n var arr, classes, i, index, len;\n\n if ('[object RegExp]' == Object.prototype.toString.call(token)) {\n arr = this.toArray();\n for (i = 0, len = arr.length; i < len; i++) {\n if (token.test(arr[i])) {\n this.remove(arr[i]);\n }\n }\n }\n else {\n checkToken(token, 'remove');\n\n if (this.classList) {\n this.classList.remove(token);\n }\n else {\n // fallback\n classes = this.toArray();\n index = classes.indexOf(token);\n if (index > -1) {\n classes.splice(index, 1);\n this.el.setAttribute('class', classes.join(' '));\n }\n }\n }\n\n return;\n};\n\n/**\n * Toggle the `token` in the class list. Optionally force state via `force`.\n *\n * Native `classList` is not used as some browsers that support `classList` do\n * not support `force`. Avoiding `classList` altogether keeps this function\n * simple.\n *\n * @param {String} token\n * @param {Boolean} [force]\n * @return {Boolean}\n */\nClassList.prototype.toggle = function (token, force) {\n checkToken(token, 'toggle');\n\n var hasToken = this.contains(token);\n var method = hasToken ? (force !== true && 'remove') : (force !== false && 'add');\n\n if (method) {\n this[method](token);\n }\n\n return (typeof force == 'boolean' ? force : !hasToken);\n};\n","if (!Element.prototype.matches) {\r\n Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\r\n}\r\n\r\nif (!Element.prototype.closest) {\r\n Element.prototype.closest = function (s) {\r\n var el = this;\r\n\r\n do {\r\n if (el.matches(s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n}\r\n","/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version 3.3.1\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global.ES6Promise = factory());\n}(this, (function () { 'use strict';\n\nfunction objectOrFunction(x) {\n return typeof x === 'function' || typeof x === 'object' && x !== null;\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\nvar _isArray = undefined;\nif (!Array.isArray) {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n} else {\n _isArray = Array.isArray;\n}\n\nvar isArray = _isArray;\n\nvar len = 0;\nvar vertxNext = undefined;\nvar customSchedulerFn = undefined;\n\nvar asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n};\n\nfunction setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n}\n\nfunction setAsap(asapFn) {\n asap = asapFn;\n}\n\nvar browserWindow = typeof window !== 'undefined' ? window : undefined;\nvar browserGlobal = browserWindow || {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nvar isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n}\n\n// vertx\nfunction useVertxTimer() {\n return function () {\n vertxNext(flush);\n };\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n}\n\n// web worker\nfunction useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n}\n\nfunction useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n}\n\nvar queue = new Array(1000);\nfunction flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertx() {\n try {\n var r = require;\n var vertx = r('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n}\n\nvar scheduleFlush = undefined;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction then(onFulfillment, onRejection) {\n var _arguments = arguments;\n\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n if (_state) {\n (function () {\n var callback = _arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n })();\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n}\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nfunction resolve(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n _resolve(promise, object);\n return promise;\n}\n\nvar PROMISE_ID = Math.random().toString(36).substring(16);\n\nfunction noop() {}\n\nvar PENDING = void 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nvar GET_THEN_ERROR = new ErrorObject();\n\nfunction selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n}\n\nfunction cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n GET_THEN_ERROR.error = error;\n return GET_THEN_ERROR;\n }\n}\n\nfunction tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n}\n\nfunction handleForeignThenable(promise, thenable, then) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n _resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n\n _reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n _reject(promise, error);\n }\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n _reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return _resolve(promise, value);\n }, function (reason) {\n return _reject(promise, reason);\n });\n }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$) {\n if (maybeThenable.constructor === promise.constructor && then$$ === then && maybeThenable.constructor.resolve === resolve) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$ === GET_THEN_ERROR) {\n _reject(promise, GET_THEN_ERROR.error);\n } else if (then$$ === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$)) {\n handleForeignThenable(promise, maybeThenable, then$$);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n}\n\nfunction _resolve(promise, value) {\n if (promise === value) {\n _reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n}\n\nfunction publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n publish(promise);\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n}\n\nfunction _reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n\n asap(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\n parent._onerror = null;\n\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n}\n\nfunction publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = undefined,\n callback = undefined,\n detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nfunction ErrorObject() {\n this.error = null;\n}\n\nvar TRY_CATCH_ERROR = new ErrorObject();\n\nfunction tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = undefined,\n error = undefined,\n succeeded = undefined,\n failed = undefined;\n\n if (hasCallback) {\n value = tryCatch(callback, detail);\n\n if (value === TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n\n if (promise === value) {\n _reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n _resolve(promise, value);\n } else if (failed) {\n _reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n _reject(promise, value);\n }\n}\n\nfunction initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n _resolve(promise, value);\n }, function rejectPromise(reason) {\n _reject(promise, reason);\n });\n } catch (e) {\n _reject(promise, e);\n }\n}\n\nvar id = 0;\nfunction nextId() {\n return id++;\n}\n\nfunction makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n}\n\nfunction Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this._input = input;\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate();\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n _reject(this.promise, validationError());\n }\n}\n\nfunction validationError() {\n return new Error('Array Methods must be provided an Array');\n};\n\nEnumerator.prototype._enumerate = function () {\n var length = this.length;\n var _input = this._input;\n\n for (var i = 0; this._state === PENDING && i < length; i++) {\n this._eachEntry(_input[i], i);\n }\n};\n\nEnumerator.prototype._eachEntry = function (entry, i) {\n var c = this._instanceConstructor;\n var resolve$$ = c.resolve;\n\n if (resolve$$ === resolve) {\n var _then = getThen(entry);\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise) {\n var promise = new c(noop);\n handleMaybeThenable(promise, entry, _then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$) {\n return resolve$$(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$(entry), i);\n }\n};\n\nEnumerator.prototype._settledAt = function (state, i, value) {\n var promise = this.promise;\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n _reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n};\n\nEnumerator.prototype._willSettleAt = function (promise, i) {\n var enumerator = this;\n\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n};\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nfunction all(entries) {\n return new Enumerator(this, entries).promise;\n}\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nfunction race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n}\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n _reject(promise, reason);\n return promise;\n}\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {function} resolver\n Useful for tooling.\n @constructor\n*/\nfunction Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n}\n\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = resolve;\nPromise.reject = reject;\nPromise._setScheduler = setScheduler;\nPromise._setAsap = setAsap;\nPromise._asap = asap;\n\nPromise.prototype = {\n constructor: Promise,\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n \n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n \n Chaining\n --------\n \n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n \n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n \n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n \n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n \n Assimilation\n ------------\n \n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n \n If the assimliated promise rejects, then the downstream promise will also reject.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n \n Simple Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let result;\n \n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n \n Advanced Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let author, books;\n \n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n \n function foundBooks(books) {\n \n }\n \n function failure(reason) {\n \n }\n \n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n \n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n then: then,\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n \n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n \n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n \n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n \n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n 'catch': function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nfunction polyfill() {\n var local = undefined;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise;\n}\n\npolyfill();\n// Strange compat..\nPromise.polyfill = polyfill;\nPromise.Promise = Promise;\n\nreturn Promise;\n\n})));\n//# sourceMappingURL=es6-promise.map","\nmodule.exports = function load (src, opts, cb) {\n var head = document.head || document.getElementsByTagName('head')[0]\n var script = document.createElement('script')\n\n if (typeof opts === 'function') {\n cb = opts\n opts = {}\n }\n\n opts = opts || {}\n cb = cb || function() {}\n\n script.type = opts.type || 'text/javascript'\n script.charset = opts.charset || 'utf8';\n script.async = 'async' in opts ? !!opts.async : true\n script.src = src\n\n if (opts.attrs) {\n setAttributes(script, opts.attrs)\n }\n\n if (opts.text) {\n script.text = '' + opts.text\n }\n\n var onend = 'onload' in script ? stdOnEnd : ieOnEnd\n onend(script, cb)\n\n // some good legacy browsers (firefox) fail the 'in' detection above\n // so as a fallback we always set onload\n // old IE will ignore this and new IE will set onload\n if (!script.onload) {\n stdOnEnd(script, cb);\n }\n\n head.appendChild(script)\n}\n\nfunction setAttributes(script, attrs) {\n for (var attr in attrs) {\n script.setAttribute(attr, attrs[attr]);\n }\n}\n\nfunction stdOnEnd (script, cb) {\n script.onload = function () {\n this.onerror = this.onload = null\n cb(null, script)\n }\n script.onerror = function () {\n // this.onload = null here is necessary\n // because even IE9 works not like others\n this.onerror = this.onload = null\n cb(new Error('Failed to load ' + this.src), script)\n }\n}\n\nfunction ieOnEnd (script, cb) {\n script.onreadystatechange = function () {\n if (this.readyState != 'complete' && this.readyState != 'loaded') return\n this.onreadystatechange = null\n cb(null, script) // there is no way to catch loading errors in IE8\n }\n}\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = merge;\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","!function(e,n){\"object\"==typeof exports?module.exports=n():e.StormOutliner=n()}(this,function(){\"use strict\";var e=document.getElementsByTagName(\"HEAD\")[0].appendChild(document.createElement(\"STYLE\"));document.addEventListener(\"mousedown\",function(){e.innerHTML=\"*:focus{outline:none !important}\"}),document.addEventListener(\"keydown\",function(){e.innerHTML=\"\"})});","/**\n * @name storm-toggler: Accessible UI state toggling\n * @version 1.3.2: Fri, 06 Oct 2017 11:11:32 GMT\n * @author stormid\n * @license MIT\n */\nimport defaults from './lib/defaults';\nimport componentPrototype from './lib/component-prototype';\n\nconst init = (sel, opts) => {\n\tlet els = [].slice.call(document.querySelectorAll(sel));\n\t\n\tif(!els.length) throw new Error('Toggler cannot be initialised, no augmentable elements found');\n\n\treturn els.map((el) => {\n\t\treturn Object.assign(Object.create(componentPrototype), {\n\t\t\tbtn: el,\n\t\t\ttargetId: (el.getAttribute('href')|| el.getAttribute('data-target')).substr(1),\n\t\t\tsettings: Object.assign({}, defaults, el.dataset, opts)\n\t\t}).init();\n\t});\n};\n\nexport default { init };","const TRIGGER_EVENTS = ['click', 'keydown'],\n TRIGGER_KEYCODES = [13, 32];\n\nexport default {\n\tinit() {\n\t\tthis.targetElement = document.getElementById(this.targetId);\n\t\tthis.classTarget = (!this.settings.local) ? document.documentElement : this.targetElement.parentNode;\n\t\tthis.siblingBtns = [].slice.call(document.querySelectorAll('[href=\"#' + this.targetId + '\"], [data-target=\"#' + this.targetId + '\"]'));\n\t\tif(this.settings.focus) this.focusableChildren = this.getFocusableChildren();\n\t\tif(this.settings.trapTab) this.boundKeyListener = this.keyListener.bind(this);\n\n\t\tthis.statusClass = !this.settings.local ? `on--${this.targetId}` : 'active';\n\t\tthis.animatingClass = !this.settings.local ? `animating--${this.targetId}` : 'animating';\n\n\t\tthis.siblingBtns.forEach(btn => {\n\t\t\tbtn.setAttribute('role','button');\n\t\t\tbtn.setAttribute('aria-controls', this.targetId);\n\t\t\tbtn.setAttribute('aria-expanded', 'false');\n\t\t});\n\n TRIGGER_EVENTS.forEach(ev => {\n\t\t this.btn.addEventListener(ev, e => {\n if(!!e.keyCode && !~TRIGGER_KEYCODES.indexOf(e.keyCode)) return;\n this.toggle(e);\n });\n });\n\t\tthis.settings.startOpen && this.toggle();\n\t\t\n\t\treturn this;\n\t},\n\tgetFocusableChildren() {\n\t\tconst focusableElements = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'];\n\n\t\treturn [].slice.call(this.targetElement.querySelectorAll(focusableElements.join(',')));\n\t},\n\ttoggleAttributes: function(){\n\t\tthis.isOpen = !this.isOpen;\n\t\tthis.siblingBtns.forEach(sibling => {\n\t\t\tsibling.setAttribute('aria-expanded', sibling.getAttribute('aria-expanded') === 'true' ? 'false' : 'true');\n\t\t});\n\t},\n\ttoggleState: function(){\n\t\tthis.classTarget.classList.remove(this.animatingClass);\n\t\tthis.classTarget.classList.toggle(this.statusClass);\n\t},\n\tmanageFocus: function(){\n\t\tif(!this.isOpen){\n\t\t\tthis.lastFocused = document.activeElement;\n\t\t\tthis.focusableChildren.length && window.setTimeout(() => this.focusableChildren[0].focus(), this.settings.delay);\n\t\t\tthis.settings.trapTab && document.addEventListener('keydown', this.boundKeyListener);\n\t\t}\n\t\telse {\n\t\t\tthis.settings.trapTab && document.removeEventListener('keydown', this.boundKeyListener);\n\t\t\tthis.focusableChildren.length && window.setTimeout(() => {\n\t\t\t\tthis.lastFocused.focus();\n\t\t\t\tthis.lastFocused = false;\n\t\t\t}, this.settings.delay);\n\t\t}\n\t},\n\ttrapTab: function(e){\n\t\tlet focusedIndex = this.focusableChildren.indexOf(document.activeElement);\n\t\tif(e.shiftKey && focusedIndex === 0) {\n\t\t\te.preventDefault();\n\t\t\tthis.focusableChildren[this.focusableChildren.length - 1].focus();\n\t\t} else {\n\t\t\tif(!e.shiftKey && focusedIndex === this.focusableChildren.length - 1) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis.focusableChildren[0].focus();\n\t\t\t}\n\t\t}\n\t},\n\tkeyListener(e){\n\t\tif (this.isOpen && e.keyCode === 27) {\n\t\t\te.preventDefault();\n\t\t\tthis.toggle();\n\t\t}\n\t\tif (this.isOpen && e.keyCode === 9) this.trapTab(e);\n\t},\n\ttoggle: function(e){\n\t\tlet delay = this.classTarget.classList.contains(this.statusClass) ? this.settings.delay : 0;\n\n\t\t(!!this.settings.prehook && typeof this.settings.prehook === 'function') && this.settings.prehook.call(this);\n\t\t\n\t\tif(e){\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t}\n\t\t\n\t\tthis.classTarget.classList.add(this.animatingClass);\n\t\t\n\t\twindow.setTimeout(() => {\n\t\t\t(!!this.settings.focus && this.focusableChildren) && this.manageFocus();\n\t\t\tthis.toggleAttributes();\n\t\t\tthis.toggleState();\n\t\t\t(!!this.settings.callback && typeof this.settings.callback === 'function') && this.settings.callback.call(this);\n\t\t}, delay);\n\t}\n}","export default {\n\tdelay: 0,\n\tstartOpen: false,\n\tlocal: false,\n\tprehook: false,\n\tcallback: false,\n\tfocus: true,\n\ttrapTab: false\n};","/**\n * @name storm-utils: Common utility functions\n * @version 0.2.1: Tue, 27 Oct 2015 18:00:18 GMT\n * @author mjbp\n * @license MIT\n */(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.StormUtils = factory();\n }\n}(this, function() {\n\t'use strict';\n \n /**\n * @name classlist\n * @description Returns object that can add, remove, check for and toggle classes on an element\n * @params Each property of the object is a function that accepts a DOM element and a classname String\n *\n * @name attributelist\n * @description Returns object that can add, remove, and boolean toggle attributes on a DOM element\n */\n var classlist = {\n add : function(el, c) {\n el.className = el.className + ' ' + c;\n return this;\n },\n remove: function(el, c) {\n var re = new RegExp(\"(^|\\\\s+)\" + c + \"(\\\\s+|$)\");\n el.className = el.className.replace(re, ' ');\n return this;\n },\n has: function(el, c) {\n var re = new RegExp(\"(^|\\\\s+)\" + c + \"(\\\\s+|$)\");\n return re.test(el.className);\n },\n toggle: function(el, c) {\n if(classlist.has(el, c)) {\n classlist.remove(el, c);\n } else {\n el.className = el.className + ' ' + c;\n }\n return this;\n }\n },\n attributelist = {\n add: function(el, attrs) {\n for(var attr in attrs){\n el.setAttribute(attr, attrs[attr]);\n }\n return this;\n },\n toggle: function(el, attr) {\n el.setAttribute(attr, el.getAttribute(attr) === 'true' ? false : true);\n return this;\n }\n };\n \n /**\n * @name extend\n * @description Merges two (or more) objects, giving the last one precedence\n */\n function merge(target, source) {\n if ( typeof target !== 'object') {\n target = {};\n }\n \n for (var property in source) {\n if (source.hasOwnProperty(property)) {\n var sourceProperty = source[ property ];\n \n if ( typeof sourceProperty === 'object' ) {\n target[ property ] = merge( target[ property ], sourceProperty );\n continue;\n }\n target[property] = sourceProperty;\n }\n }\n for (var a = 2, l = arguments.length; a < l; a++) {\n merge(target, arguments[a]);\n }\n return target;\n }\n \n /**\n * @name on\n * @description batch attach events to an element\n * @param element, DOM node, to attach events to\n * @param events, String, comma separated events\n * @param fn, Function, \n */\n function on(element, events, fn) {\n events.split(' ').forEach(function(ev){\n element.addEventListener(ev, fn, false);\n });\n }\n \n /**\n * @name debounce\n * @description call function once after multiple invocations\n * @param fn, function to be called\n * @param wait, int, time to wait after last invocation before calling the function\n * @param immediate, boolean, whether to execute immediaely after last invocation or after another wait\n */\n function debounce(fn, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments,\n later = function() {\n timeout = null;\n if (!immediate) fn.apply(context, args);\n };\n if (immediate && !timeout) fn.apply(context, args);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(later, wait);\n };\n }\n \n /**\n * @name throttle\n * @description call a function with a maximum specified frequency\n * @param fn, function to be called\n * @param ms, int, minimum interval between calls\n */\n function throttle(fn, ms) {\n var timeout,\n last = 0;\n return function() {\n var a = arguments,\n t = this,\n now = +(new Date()),\n exe = function() { \n last = now; \n fn.apply(t,a); \n };\n window.clearTimeout(timeout);\n if(now >= last + ms) {\n exe();\n } else {\n timeout = window.setTimeout(exe, ms);\n }\n };\n }\n \n /**\n * @name loadJS\n * @description asynchronously load script files\n * @param src, String, src path of the script\n * @param cb, Function, callback function executed once the script is loaded or fails\n */\n function loadJS(src, cb) {\n var script = document.createElement('script'),\n timer = window.setTimeout(function() {\n cb('Script ' + src + ' failed to load in time.');\n }, 5000);\n \n script.src = src;\n script.onload = function() {\n window.clearTimeout(timer);\n cb();\n };\n document.body.appendChild(script);\n }\n \n /**\n * @name xhr\n * @description Make XMLHttpRequests\n * @param url, string, path to make the request to\n * @param method, string, HTTP method\n * @param cb, function, callback exectued after request is made\n * @param data, string, serialized form data\n */\n function xhr(url, method, cb, data) {\n\t\tvar http = new XMLHttpRequest(),\n\t\t\ttype = method || 'GET',\n\t\t\tparams = data || null;\n\t\t\n\t\tif(!!url) {\n\t\t\thttp.open(type, url, true);\n\t\t\t\n\t\t\tif(type === 'POST') {\n\t\t\t\thttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');\n\t\t\t}\n\t\t\t\n\t\t\thttp.onreadystatechange = function() {//Call a function when the state changes.\n\t\t\t\tif(http.readyState == 4 && http.status == 200) {\n\t\t\t\t\tif(!!cb) { cb(null, http.responseText); }\n\t\t\t\t}\n\t\t\t};\n\t\t\thttp.onerror = function(){\n\t\t\t\tif(!!cb) { cb('Error'); }\n\t\t\t};\n\t\t\thttp.send(params);\n\t\t}\n\t}\n \n /**\n * @name serialize\n * @description serialize a form, exactly the same result as jQuery's serialize()\n * @param form, DOM element, the form to serialize\n */\n function serialize(form){\n var field,\n s = [],\n len;\n if (!(typeof form == 'object' && form.nodeName == \"FORM\")) {\n return console.log('Cannot serialize form');\n }\n\n len = form.elements.length;\n for (var i =0; i < len; i++) {\n field = form.elements[i];\n if (field.name && !field.disabled && field.type != 'file' && field.type != 'reset' && field.type != 'submit' && field.type != 'button') {\n if (field.type == 'select-multiple') {\n for (var j = form.elements[i].options.length-1; j>=0; j--) {\n if(field.options[j].selected)\n s[s.length] = encodeURIComponent(field.name) + \"=\" + encodeURIComponent(field.options[j].value);\n }\n } else if ((field.type != 'checkbox' && field.type != 'radio') || field.checked) {\n s[s.length] = encodeURIComponent(field.name) + \"=\" + encodeURIComponent(field.value);\n }\n }\n }\n return s.join('&').replace(/%20/g, '+');\n }\n \n /**\n * @name closest\n * @description get the closest matching element up the DOM tree using element.matches()\n * @param el, DOM element, starting element\n * @param selector, DOM element, String, selector to test match\n */\n function closest(el, selector) {\n if (el.closest) {\n return el.closest(selector);\n }\n\n var matches = el.matches || el.msMatchesSelector;\n\n do {\n if (el.nodeType != 1) continue;\n if (matches.call(el, selector)) return el;\n } while (el = el.parentNode);\n\n return undefined;\n }\n \n /**\n * @name escapeHTML\n * @description escape HTML entities in a string\n * @param string, String, the string...\n */\n function escapeHTML(string) {\n var entityMap = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': '"',\n \"'\": ''',\n \"/\": '/'\n };\n return String(string).replace(/[&<>\"'\\/]/g, function (s) {\n return entityMap[s];\n });\n }\n \n return {\n throttle: throttle,\n debounce: debounce,\n merge: merge,\n on: on,\n classlist: classlist,\n attributelist: attributelist,\n loadJS: loadJS,\n serialize: serialize,\n xhr: xhr,\n closest: closest,\n escapeHTML: escapeHTML\n };\n }));","//ƒpie//Closure to encapsulate all JS\r\n\r\n// polyfills\r\nrequire('classlist-polyfill');\r\nrequire('es6-object-assign').polyfill();\r\nrequire('es6-promise').polyfill();\r\nrequire('element-closest-polyfill');\r\n\r\nvar version = '1.0.1';\r\n\r\nvar UTILS = {\r\n merge: require('lodash.merge'),\r\n classlist: require('dom-classlist'),\r\n throttle: require('lodash.throttle'),\r\n loadScript: require('load-script'),\r\n tools: require('storm-utils'),\r\n cookies: require('./require/cookie-functions')\r\n},\r\n UI = (function (w, d) {\r\n 'use strict';\r\n var ffo = require('FontFaceObserver'), //installed via npm install --save fontfaceobserver to node_modules\r\n Toggler = require('storm-toggler').default, //required from local directory\r\n //Modal = require('./require/modal'),\r\n Modal = require('./require/storm-modal'),\r\n initCookieBanner = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.cookie-banner'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/cookie-banner.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n CookieBanner.init('.cookie-banner');\r\n });\r\n },\r\n initCookieSettings = function() {\r\n //detect and return if not needed\r\n if (!(d.querySelector('[data-module=\"cookie-settings\"]'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/cookie-settings.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n CookieSettings.init('[data-module=\"cookie-settings\"]');\r\n });\r\n },\r\n initErrorSummary = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.error-summary'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/error-summary.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n new ErrorSummary('.error-summary');\r\n });\r\n },\r\n initFonts = function () {\r\n var ffo = new FontFaceObserver('Helvetica LT W01 Roman', {})\r\n .check()\r\n .then(function () {\r\n d.documentElement.className = document.documentElement.className.replace(/\\bno-webfonts\\b/, '');\r\n }, function () {\r\n console.log('Font is not available after waiting 5 seconds');\r\n });\r\n },\r\n initQuiz = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.panel-quiz'))) { return; }\r\n\r\n var quiz = d.querySelector('.panel-quiz');\r\n var quizQuestionContainers = quiz.querySelectorAll('.question-container');\r\n var quizStartButton = quiz.querySelector('#quiz-start');\r\n var quizEnd = quiz.querySelector('#quiz-end');\r\n var quizActiveRegion = quiz.querySelector('#quiz-active-region');\r\n\r\n function activateQuizPanel(panel) {\r\n var current = quizActiveRegion.children[0];\r\n quizActiveRegion.replaceChild(panel, current);\r\n panel.classList.add('active');\r\n }\r\n\r\n quizStartButton.onclick = function (e) {\r\n e.preventDefault();\r\n var firstQuestion = quizQuestionContainers[0];\r\n activateQuizPanel(firstQuestion.children[0]);\r\n };\r\n\r\n for (var i = 0; i < quizQuestionContainers.length; i++) {\r\n var questionContainer = quizQuestionContainers[i];\r\n var question = questionContainer.children[0];\r\n\r\n [].slice.call(question.querySelectorAll('button')).forEach(function (btn) {\r\n btn.addEventListener('click', function (e) {\r\n e.preventDefault();\r\n var questionIndex = parseInt(btn.dataset.questionindex);\r\n if (this.dataset.correct === \"true\") {\r\n if (questionIndex === quizQuestionContainers.length - 1) {\r\n activateQuizPanel(quizEnd);\r\n }\r\n else {\r\n var nextQuestion = quizQuestionContainers[questionIndex + 1];\r\n activateQuizPanel(nextQuestion.children[0]);\r\n }\r\n } else {\r\n var incorrectAnswer = quizQuestionContainers[questionIndex].children[0];\r\n activateQuizPanel(incorrectAnswer);\r\n }\r\n });\r\n });\r\n var questionText = question.querySelector('.question-text');\r\n if (questionText !== null) {\r\n var questionAnchors = questionText.querySelectorAll('a');\r\n if (questionAnchors.length > 0) {\r\n for (var j = 0; j < questionAnchors.length; j++) {\r\n var anchor = questionAnchors[j];\r\n anchor.onclick = function (e) {\r\n e.preventDefault();\r\n if (this.href.split('#').length > 1) {\r\n var wallPanelId = this.href.split('#')[1];\r\n if (d.getElementById(wallPanelId)) {\r\n d.getElementById(wallPanelId).click();\r\n d.getElementById(wallPanelId).focus({ preventScroll: true });\r\n }\r\n }\r\n };\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n },\r\n initSmoothScroll = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-smooth-scroll'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/smooth-scroll.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n smoothScroll.init();\r\n });\r\n },\r\n initScrollPoints = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-scroll-point'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/scrollpoints.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n ScrollPoints.init('.js-scroll-point', {\r\n offset: '15%',\r\n class: 'js-is-scrolled-in',\r\n });\r\n\r\n });\r\n },\r\n initTabsAccordion = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-tab-accordion'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/tab-accordion.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n StormTabAccordion.init('.js-tab-accordion');\r\n });\r\n },\r\n initEqualizer = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-equal-height'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/storm-equal-height.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n StormEqualHeight.init('.js-equal-height', { minHeight: 0 });\r\n });\r\n },\r\n initWall = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-wall'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/wall.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n Wall.init();\r\n });\r\n },\r\n initMap = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-map')) && !window.googleMapsApiKey) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/map.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n\r\n var rawLocation = w.mapLocation;\r\n\r\n if (rawLocation) {\r\n var location = rawLocation.split(',');\r\n OurMap.asyncGoogleMapAPI(d.querySelector('.js-map'), [\r\n {\r\n \"id\": \"x\",\r\n \"title\": \"Location Title\",\r\n \"location\": {\r\n \"latitude\": location[0],\r\n \"longitude\": location[1]\r\n },\r\n }\r\n ], {\r\n map: {\r\n APIKey: window.googleMapsApiKey\r\n }\r\n });\r\n }\r\n else {\r\n OurMap.asyncGoogleMapAPI(d.querySelector('.js-map'), [\r\n {\r\n \"id\": \"x\",\r\n \"title\": \"Location Title\",\r\n \"location\": {\r\n \"latitude\": \"55.944715\",\r\n \"longitude\": \"-3.197048\"\r\n },\r\n }\r\n ], {\r\n map: {\r\n APIKey: window.googleMapsApiKey\r\n }\r\n });\r\n }\r\n\r\n });\r\n },\r\n initParallax = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-parallax'))) { return; }\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/parallax.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n Parallax.init(document.querySelector('.js-parallax'));\r\n });\r\n },\r\n initPies = function () {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-chart'))) { return; }\r\n\r\n // get accessible blood type name\r\n function getBloodTypeWithRhesusText(bloodType) {\r\n var rhesusSymbol = '';\r\n\r\n if (bloodType) {\r\n bloodType = bloodType.trim();\r\n rhesusSymbol = bloodType.slice(-1);\r\n }\r\n\r\n switch (rhesusSymbol) {\r\n case '-':\r\n return bloodType.slice(0, -1) + ' negative';\r\n case '+':\r\n return bloodType.slice(0, -1) + ' positive';\r\n }\r\n\r\n return '';\r\n }\r\n\r\n //loaded async as required\r\n STORM.UTILS.loadScript(`/content/js/async/easypiechart.min.js?v=${version}`, function (err) {\r\n if (err) {\r\n return console.log(err);\r\n }\r\n var pies = [],\r\n handler = function (e) {\r\n e.preventDefault();\r\n d.querySelector('.nav-tab__link--active').className = d.querySelector('.nav-tab__link--active').className.replace('nav-tab__link--active', '');\r\n e.target.className = e.target.className + ' nav-tab__link--active';\r\n var bloodGroupList = d.createElement('ul');\r\n\r\n pies.forEach(function (pie) {\r\n //console.log(pie.el.getAttribute('data-percentage-' + e.target.getAttribute('data-pie-value')));\r\n var currentTargetPercentage = pie.el.getAttribute('data-percentage-' + e.target.getAttribute('data-pie-value'));\r\n pie.update(currentTargetPercentage);\r\n pie.el.nextElementSibling.innerHTML = currentTargetPercentage + '%';\r\n\r\n var bloodGroupListItem = d.createElement('li');\r\n bloodGroupListItem.innerText = getBloodTypeWithRhesusText(pie.el.children[0].innerText) + ' ' + currentTargetPercentage + '%';\r\n bloodGroupList.appendChild(bloodGroupListItem);\r\n });\r\n\r\n var region = d.querySelector('#blood-group-region');\r\n region.innerHTML = bloodGroupList.outerHTML;\r\n };\r\n\r\n [].slice.call(d.querySelectorAll('.js-chart')).forEach(function (chart) {\r\n pies.push(new EasyPieChart(chart, {\r\n barColor: '#DB3325',\r\n scaleColor: false,\r\n lineWidth: 24,\r\n lineCap: 'circle'\r\n }));\r\n });\r\n [].slice.call(d.querySelectorAll('.js-pie__trigger')).forEach(function (btn) {\r\n btn.addEventListener('click', handler), false;\r\n btn.addEventListener('touchstart', handler), false;\r\n });\r\n\r\n });\r\n },\r\n initNearMe = function () {\r\n if (!(d.querySelector('.sessions-near-me'))) { return; }\r\n var nearMe = d.querySelectorAll('.sessions-near-me');\r\n\r\n for (var i = 0; i < nearMe.length; i++) {\r\n var n = nearMe[i];\r\n var form = STORM.UTILS.tools.closest(n, 'form');\r\n var myPosition = form.querySelector('.my-position');\r\n n.onclick = function (e) {\r\n e.preventDefault();\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(function (pos) {\r\n var crds = pos.coords;\r\n myPosition.value = crds.latitude + \",\" + crds.longitude;\r\n myPosition.parentElement.submit();\r\n });\r\n }\r\n };\r\n }\r\n },\r\n initLocationSearchForm = function () {\r\n var searchTermOverrides = {\r\n 'willowbrae': 'willowbrae, edinburgh',\r\n 'armadale': 'armadale, west lothian',\r\n 'dalbeattie': 'dalbeattie, dumfries',\r\n 'blackburn': 'blackburn, west lothian',\r\n 'blackhall': 'blackhall, edinburgh',\r\n 'newport': 'newport, fife',\r\n 'marryat hall': 'marryat hall, dundee',\r\n 'pennyburn': 'pennyburn, kilwinning',\r\n 'murray': 'murray, east kilbride',\r\n 'hillhouse': 'hillhouse, hamilton',\r\n 'stonehouse': 'stonehouse, ml9',\r\n 'charleston': 'charleston, iv3',\r\n 'hilton': 'hilton primary school, inverness',\r\n 'bowhouse': 'bowhouse, FK3'\r\n };\r\n\r\n if (d.querySelector('#header-location-search-form')) {\r\n var headerForm = d.querySelector('#header-location-search-form');\r\n headerForm.onsubmit = function (e) {\r\n e.preventDefault();\r\n var searchTerm = e.currentTarget[2].value.toLowerCase();\r\n if (searchTermOverrides[searchTerm]) {\r\n searchTerm = searchTermOverrides[searchTerm];\r\n }\r\n\r\n var myPosition = headerForm.querySelector('.my-position');\r\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\r\n if (status === google.maps.GeocoderStatus.OK) {\r\n var lat = results[0].geometry.location.lat();\r\n var lng = results[0].geometry.location.lng();\r\n myPosition.value = lat + \",\" + lng;\r\n myPosition.parentElement.submit();\r\n } else {\r\n myPosition.value = \"not-found\";\r\n myPosition.parentElement.submit();\r\n }\r\n });\r\n }\r\n }\r\n\r\n if (d.querySelector('#footer-location-search-form')) {\r\n var footerForm = d.querySelector('#footer-location-search-form');\r\n footerForm.onsubmit = function (e) {\r\n e.preventDefault();\r\n\r\n var searchTerm = e.currentTarget[2].value.toLowerCase();\r\n\r\n if (searchTermOverrides[searchTerm]) {\r\n searchTerm = searchTermOverrides[searchTerm];\r\n }\r\n\r\n var myPosition = footerForm.querySelector('.my-position');\r\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\r\n if (status === google.maps.GeocoderStatus.OK) {\r\n var lat = results[0].geometry.location.lat();\r\n var lng = results[0].geometry.location.lng();\r\n myPosition.value = lat + \",\" + lng;\r\n myPosition.parentElement.submit();\r\n } else {\r\n myPosition.value = \"not-found\";\r\n myPosition.parentElement.submit();\r\n }\r\n });\r\n }\r\n }\r\n\r\n if (d.querySelector('#modal-location-search-form')) {\r\n var modalForm = d.querySelector('#modal-location-search-form');\r\n modalForm.onsubmit = function (e) {\r\n e.preventDefault();\r\n\r\n var searchTerm = e.currentTarget[2].value.toLowerCase();\r\n\r\n if (searchTermOverrides[searchTerm]) {\r\n searchTerm = searchTermOverrides[searchTerm];\r\n }\r\n\r\n var myPosition = modalForm.querySelector('.my-position');\r\n new google.maps.Geocoder().geocode({ 'address': searchTerm + \", Scotland\" }, function (results, status) {\r\n if (status === google.maps.GeocoderStatus.OK) {\r\n var lat = results[0].geometry.location.lat();\r\n var lng = results[0].geometry.location.lng();\r\n myPosition.value = lat + \",\" + lng;\r\n myPosition.parentElement.submit();\r\n } else {\r\n myPosition.value = \"not-found\";\r\n myPosition.parentElement.submit();\r\n }\r\n });\r\n };\r\n }\r\n },\r\n initSearchUnderline = function () {\r\n var underlineTemplate = '';\r\n\r\n [].slice.call(d.querySelectorAll('.js-modal-input ')).forEach(function (input) {\r\n input.insertAdjacentHTML('beforebegin', underlineTemplate);\r\n input.addEventListener('keyup', function (e) {\r\n input.previousElementSibling.textContent = input.value;\r\n }, false);\r\n });\r\n },\r\n initLocationDropdown = function () {\r\n if (!!d.querySelector('#locations') && !!d.querySelector('#date-and-time')) {\r\n var locations = d.querySelector('#locations');\r\n var dateAndTime = d.querySelector('#date-and-time');\r\n locations.onchange = function () {\r\n var locationId = this.options[this.selectedIndex].value;\r\n var http = new XMLHttpRequest();\r\n http.open('POST', '/umbraco/surface/OnlineAppointmentCallback/GetLocationSessions', true);\r\n http.setRequestHeader('Content-type', 'application/json');\r\n http.onreadystatechange = function () {//Call a function when the state changes.\r\n if (http.readyState == 4 && http.status == 200) {\r\n var items = JSON.parse(http.responseText);\r\n console.log(items);\r\n dateAndTime.options.length = 0;\r\n var opt = d.createElement('option');\r\n opt.text = \"Select...\";\r\n opt.value = \"\";\r\n dateAndTime.add(opt);\r\n for (var item in items) {\r\n console.log(item);\r\n var date = d.createElement('option');\r\n date.text = items[item].date;\r\n date.value = items[item].date;\r\n dateAndTime.add(date);\r\n }\r\n }\r\n };\r\n\r\n http.onerror = function () {\r\n console.log(\"Error retrieving sessions\");\r\n };\r\n\r\n http.send(JSON.stringify({ locationId: locationId }));\r\n };\r\n }\r\n },\r\n initNavPrimary = function () {\r\n // the storm-toggler library sets all togglers to have an aria-expanded value of false on page load\r\n // the code below sets this to true if the nav item has a sub-menu and is active\r\n if (!!d.querySelector('.nav-primary__item--has-subnav.active')) {\r\n var toggle = d.querySelector('.nav-primary__item--has-subnav.active .js-toggle__local');\r\n toggle.setAttribute('aria-expanded', 'true');\r\n }\r\n },\r\n initCards = function() {\r\n //detect and return if not needed\r\n if (!(d.querySelector('.js-card'))) { return; } \r\n\r\n [].slice.call(d.querySelectorAll('.js-card')).forEach(function (card) {\r\n \r\n let link = card.querySelector('.js-card__link');\r\n card.style.cursor = 'pointer';\r\n card.addEventListener('click', e => { \r\n if (link !== e.target) {\r\n link.click();\r\n }\r\n });\r\n });\r\n },\r\n init = function () {\r\n //initialise everything\r\n /*\r\n Modal('.js-modal-trigger-1', '.js-modal-overlay-1');\r\n Modal('.js-modal-trigger-2', '.js-modal-overlay-2');\r\n Modal('.js-modal-trigger-3', '.js-modal-overlay-3');\r\n */\r\n Modal.init('.js-modal');\r\n /*\r\n STORM.UI.modals = Modal.init('.js-modal', {\r\n callback: function(){\r\n STORM.UI.modals.forEach(function(modal){\r\n if(modal !== this && !!modal.isOpen){\r\n modal.close();\r\n }\r\n }.bind(this));\r\n }});\r\n */\r\n initCookieBanner();\r\n initCookieSettings();\r\n initFonts();\r\n initErrorSummary();\r\n initMap();\r\n initParallax();\r\n initPies();\r\n initTabsAccordion();\r\n initNearMe();\r\n initQuiz();\r\n initSmoothScroll();\r\n initScrollPoints();\r\n initLocationSearchForm();\r\n Toggler.init('.js-toggle', { trapTab: true });\r\n Toggler.init('.js-toggle__local', { local: true, delay: 0 });\r\n !!d.querySelector('.js-toggle__faq') && Toggler.init('.js-toggle__faq');\r\n !!d.querySelector('.js-toggle__search-filters') && Toggler.init('.js-toggle__search-filters');\r\n initNavPrimary();\r\n initSearchUnderline();\r\n initCards();\r\n require('storm-outliner');\r\n !!d.querySelector('.active .nav-secondary') && (d.documentElement.className += ' on--nav-secondary');\r\n },\r\n loaded = function () {\r\n initWall();\r\n initEqualizer();\r\n initLocationDropdown();\r\n if (!!d.querySelector('.js-jump-to-wall')) {\r\n [].slice.call(d.querySelectorAll('.js-jump-to-wall')).forEach(function (el) {\r\n el.addEventListener('click', function (e) {\r\n e.preventDefault();\r\n var elementId = el.getAttribute('href').split('#')[1];\r\n d.getElementById(elementId).click();\r\n d.getElementById(elementId).focus({ preventScroll: true });\r\n });\r\n });\r\n }\r\n };\r\n\r\n //Interface with/entry point to site JS\r\n return {\r\n init: init,\r\n loaded: loaded\r\n };\r\n\r\n }(window, document, undefined));\r\n\r\n//expose globally\r\nglobal.STORM = {\r\n UTILS: UTILS,\r\n UI: UI\r\n};\r\n\r\n//Cut the mustard\r\n//Don't run any JS if the browser can't handle it\r\nif ('addEventListener' in window) {\r\n window.addEventListener('DOMContentLoaded', STORM.UI.init, false);\r\n window.addEventListener('load', STORM.UI.loaded, false);\r\n}\r\n","(function(root, factory) {\r\n if (typeof define === 'function' && define.amd) {\r\n define([], factory);\r\n } else if (typeof exports === 'object') {\r\n module.exports = factory();\r\n } else {\r\n root.CookieFunctions = factory();\r\n }\r\n }(this, function() {\r\n 'use strict';\r\n\r\n var DEFAULT_COOKIE_CONSENT = {\r\n essential: true,\r\n usage: false // IMPORTANT - if set to false cookie-banner component must also be configured to initialize analytics\r\n }\r\n \r\n var COOKIE_CATEGORIES = {\r\n ARRAffinity: 'essential',\r\n cookies_policy: 'essential',\r\n cookies_preferences_set: 'essential',\r\n _ga: 'usage',\r\n _gid: 'usage',\r\n _gat: 'usage',\r\n _ga_GYYSMG01V4: 'usage'\r\n }\r\n \r\n function getDateForCookieExpiration(days) {\r\n var date = new Date()\r\n date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000))\r\n return date.toGMTString()\r\n }\r\n \r\n /*\r\n Cookie methods\r\n ==============\r\n \r\n Usage:\r\n \r\n Setting a cookie:\r\n cookieJar('hobnob', 'tasty', { days: 30 });\r\n \r\n Reading a cookie:\r\n cookieJar('hobnob');\r\n \r\n Deleting a cookie:\r\n cookieJar('hobnob', null);\r\n */\r\n function cookieJar(name, value, options) {\r\n if (typeof value !== 'undefined') {\r\n if (value === false || value === null) {\r\n return setCookie(name, '', { days: -1 })\r\n } else {\r\n // Default expiry date of 30 days\r\n if (typeof options === 'undefined') {\r\n options = { days: 30 }\r\n }\r\n return setCookie(name, value, options)\r\n }\r\n } else {\r\n return getCookie(name)\r\n }\r\n }\r\n \r\n function setDefaultConsentCookie () {\r\n setConsentCookie(DEFAULT_COOKIE_CONSENT)\r\n }\r\n \r\n function approveAllCookieTypes () {\r\n var approvedConsent = {\r\n essential: true,\r\n usage: true\r\n }\r\n \r\n setCookie('cookies_policy', JSON.stringify(approvedConsent), { days: 365 })\r\n }\r\n \r\n function getConsentCookie () {\r\n var consentCookie = cookieJar('cookies_policy')\r\n var consentCookieObj\r\n \r\n if (consentCookie) {\r\n try {\r\n consentCookieObj = JSON.parse(consentCookie)\r\n } catch (err) {\r\n return null\r\n }\r\n \r\n if (typeof consentCookieObj !== 'object' && consentCookieObj !== null) {\r\n consentCookieObj = JSON.parse(consentCookieObj)\r\n }\r\n } else {\r\n return null\r\n }\r\n \r\n return consentCookieObj\r\n }\r\n \r\n function setConsentCookie(options) {\r\n var cookieConsent = getConsentCookie()\r\n \r\n if (!cookieConsent) {\r\n cookieConsent = JSON.parse(JSON.stringify(DEFAULT_COOKIE_CONSENT))\r\n }\r\n \r\n for (var cookieType in options) {\r\n cookieConsent[cookieType] = options[cookieType]\r\n \r\n // Delete cookies of that type if consent being set to false\r\n if (!options[cookieType]) {\r\n for (var cookie in COOKIE_CATEGORIES) {\r\n if (COOKIE_CATEGORIES[cookie] === cookieType) {\r\n deleteCookie(cookie)\r\n }\r\n }\r\n }\r\n }\r\n \r\n setCookie('cookies_policy', JSON.stringify(cookieConsent), { days: 365 })\r\n }\r\n \r\n function checkConsentCookieCategory(cookieName, cookieCategory) {\r\n var currentConsentCookie = getConsentCookie()\r\n \r\n // If the consent cookie doesn't exist, but the cookie is in our known list, return true\r\n if (!currentConsentCookie && COOKIE_CATEGORIES[cookieName]) {\r\n return true\r\n }\r\n \r\n currentConsentCookie = getConsentCookie()\r\n \r\n // Sometimes currentConsentCookie is malformed in some of the tests, so we need to handle these\r\n try {\r\n return currentConsentCookie[cookieCategory]\r\n } catch (e) {\r\n console.error(e)\r\n return false\r\n }\r\n }\r\n \r\n function checkConsentCookie(cookieName, cookieValue) {\r\n // If we're setting the consent cookie OR deleting a cookie, allow by default\r\n if (cookieName === 'cookies_policy' || (cookieValue === null || cookieValue === false)) {\r\n return true\r\n }\r\n \r\n if (COOKIE_CATEGORIES[cookieName]) {\r\n var cookieCategory = COOKIE_CATEGORIES[cookieName]\r\n \r\n return checkConsentCookieCategory(cookieName, cookieCategory)\r\n } else {\r\n // Deny the cookie if it is not known to us\r\n return false\r\n }\r\n }\r\n \r\n function setCookie(name, value, options) {\r\n if (checkConsentCookie(name, value)) {\r\n if (typeof options === 'undefined') {\r\n options = {}\r\n }\r\n var cookieString = name + '=' + value + '; path=/'\r\n if (options.days) {\r\n cookieString = cookieString + '; expires=' + getDateForCookieExpiration(options.days)\r\n }\r\n if (document.location.protocol === 'https:') {\r\n cookieString = cookieString + '; Secure'\r\n }\r\n document.cookie = cookieString\r\n }\r\n }\r\n \r\n function getCookie(name) {\r\n var nameEQ = name + '='\r\n var cookies = document.cookie.split(';')\r\n for (var i = 0, len = cookies.length; i < len; i++) {\r\n var cookie = cookies[i]\r\n while (cookie.charAt(0) === ' ') {\r\n cookie = cookie.substring(1, cookie.length)\r\n }\r\n if (cookie.indexOf(nameEQ) === 0) {\r\n return decodeURIComponent(cookie.substring(nameEQ.length))\r\n }\r\n }\r\n return null\r\n }\r\n \r\n function getCookieCategory(cookie) {\r\n return COOKIE_CATEGORIES[cookie]\r\n }\r\n \r\n function deleteCookie(cookie) {\r\n cookieJar(cookie, null)\r\n \r\n if (cookieJar(cookie)) {\r\n // We need to handle deleting cookies on the domain and the .domain\r\n document.cookie = cookie + '=;expires=' + getDateForCookieExpiration(-1) + ';domain=.' + global.location.hostname + ';path=/'\r\n }\r\n }\r\n \r\n function deleteUnconsentedCookies() {\r\n var currentConsent = getConsentCookie()\r\n \r\n for (var cookieType in currentConsent) {\r\n // Delete cookies of that type if consent being set to false\r\n if (!currentConsent[cookieType]) {\r\n for (var cookie in COOKIE_CATEGORIES) {\r\n if (COOKIE_CATEGORIES[cookie] === cookieType) {\r\n deleteCookie(cookie)\r\n }\r\n }\r\n }\r\n }\r\n } \r\n \r\n return {\r\n cookie: cookieJar,\r\n setCookie: setCookie,\r\n setDefaultConsentCookie: setDefaultConsentCookie,\r\n approveAllCookieTypes: approveAllCookieTypes,\r\n getCookieCategory: getCookieCategory,\r\n deleteUnconsentedCookies: deleteUnconsentedCookies,\r\n setConsentCookie: setConsentCookie,\r\n getConsentCookie: getConsentCookie\r\n };\r\n }));","/**\r\n * @name storm-modal: Accessible modal dialogue\r\n * @version 0.3.0: Wed, 29 Jun 2016 12:18:51 GMT\r\n * @author stormid\r\n * @license MIT\r\n */(function(root, factory) {\r\n if (typeof exports === 'object') {\r\n module.exports = factory();\r\n } else {\r\n root.StormModal = factory();\r\n }\r\n}(this, function() {\r\n\t'use strict';\r\n \r\n var instances = [],\r\n\t\tCONSTANTS = {\r\n\t\t\tTRIGGER_EVENTS: ['click', 'keydown'],\r\n\t\t\tTRIGGER_KEYCODES: [13, 32]\r\n\t\t},\r\n defaults = {\r\n\t\t\tonClassName: 'active',\r\n\t\t\tmodalSelector: 'js-modal',\r\n\t\t\tstyles: [ {\r\n\t\t\t\topacity: 0,\r\n\t\t\t\tvisibility: 'hidden',\r\n\t\t\t\tposition: 'absolute',\r\n\t\t\t\toverflow: 'hidden',\r\n\t\t\t\twidth: 0,\r\n\t\t\t\theight:0\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\topacity:1,\r\n\t\t\t\tvisibility: 'visible',\r\n\t\t\t\toverflow: 'inherit',\r\n\t\t\t\tposition: 'fixed',\r\n\t\t\t\twidth: 'auto',\r\n\t\t\t\theight: 'auto',\r\n\t\t\t\ttop: 0,\r\n\t\t\t\tleft: 0,\r\n\t\t\t\tbottom: 0,\r\n\t\t\t\tright: 0,\r\n\t\t\t\tzIndex: 9\r\n\t\t\t}],\r\n\t\t\tcallback: null\r\n },\r\n StormModal = {\r\n init: function() {\r\n\t\t\t\tthis.isOpen = false;\r\n\t\t\t\tthis.togglers = this.node.getAttribute('data-modal-toggler') && [].slice.call(document.querySelectorAll('.' + this.node.getAttribute('data-modal-toggler')));\r\n\t\t\t\t\r\n\t\t\t\tif(!!!this.togglers) {\r\n\t\t\t\t\tthrow new Error('Modal cannot be initialised, no modal toggler elements found');\r\n\t\t\t\t}\r\n this.togglers.forEach(function(toggler){\r\n\t\t\t\t\tCONSTANTS.TRIGGER_EVENTS.forEach(function(ev){\r\n\t\t\t\t\t\ttoggler.addEventListener(ev, function(e){\r\n\t\t\t\t\t\t\tif(!!e.keyCode && !~CONSTANTS.TRIGGER_KEYCODES.indexOf(e.keyCode)) { return; }\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\tthis.change(this);\r\n\t\t\t\t\t\t}.bind(this), false);\r\n\t\t\t\t\t}.bind(this));\r\n\t\t\t\t}.bind(this));\r\n\t\t\t\tthis.focusableChildren = this.getFocusableChildren();\r\n\t\t\t\tthis.setStyles();\r\n\t\t\t\tthis.node.setAttribute('aria-hidden', true);\r\n\t\t\t\tthis.node.setAttribute('role', 'dialog');\r\n\t\t\t\tthis.node.setAttribute('aria-modal', 'true');\r\n\r\n\t\t\t\treturn this;\r\n },\r\n\t\t\tgetFocusableChildren: function() {\r\n\t\t\t\tvar focusableElements = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'];\r\n\t\t\t\treturn [].slice.call(this.node.querySelectorAll(focusableElements.join(','))).filter(function (child) {\r\n\t\t\t\t return !!(child.offsetWidth || child.offsetHeight || child.getClientRects().length);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\ttrapTab: function(e){\r\n\t\t\t\tvar focusedIndex = this.focusableChildren.indexOf(document.activeElement);\r\n\t\t\t\tif(e.shiftKey && focusedIndex === 0) {\r\n\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\tthis.focusableChildren[this.focusableChildren.length - 1].focus();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(!e.shiftKey && focusedIndex === this.focusableChildren.length - 1) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t \tthis.focusableChildren[0].focus();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsetStyles: function() {\r\n\t\t\t\tfor(var s in this.settings.styles[Number(this.isOpen)]) {\r\n\t\t\t\t\tthis.node.style[s] = this.settings.styles[Number(this.isOpen)][s];\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tkeyListener: function(e){\r\n\t\t\t\tif (this.isOpen && e.keyCode === 27) {\r\n\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\tthis.change();\r\n\t\t\t\t}\r\n\t\t\t\tif (this.isOpen && e.keyCode === 9) {\r\n\t\t\t\t\tthis.trapTab(e);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\topen: function() {\r\n\t\t\t\tdocument.documentElement.classList.add('on--modal');\r\n\t\t\t\tdocument.addEventListener('keydown', this.keyListener.bind(this));\r\n\t\t\t\tthis.lastFocused = document.activeElement;\r\n\t\t\t\twindow.setTimeout(function(){this.focusableChildren[0].focus();}.bind(this), 0);\t\t\t\t\r\n\t\t\t\tthis.toggle();\r\n\t\t\t},\r\n\t\t\tclose: function(){\r\n\t\t\t\tdocument.documentElement.classList.remove('on--modal');\r\n\t\t\t\tdocument.removeEventListener('keydown', this.keyListener.bind(this));\r\n\t\t\t\tthis.lastFocused.focus();\t\t\t\t\r\n\t\t\t\tthis.toggle();\t\t\t\t\r\n\t\t\t},\r\n\t\t\ttoggle: function(){\r\n\t\t\t\tvar self = this;\r\n\t\t\t\tself.isOpen = !self.isOpen;\r\n\t\t\t\tself.setStyles();\r\n\t\t\t\tself.node.setAttribute('aria-hidden', !self.isOpen);\r\n\t\t\t\t[].slice.call(document.querySelectorAll('.js-modal-aria-hidden')).forEach(function(el){\r\n\t\t\t\t\tel.setAttribute('aria-hidden', self.isOpen);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tchange: function() {\r\n\t\t\t\tif(!this.isOpen){\r\n\t\t\t\t\tthis.open();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.close();\r\n\t\t\t\t}\r\n\t\t\t\ttypeof this.settings.callback === 'function' && this.settings.callback.call(this);\r\n\t\t\t},\r\n\r\n };\r\n \r\n function init(sel, opts) {\r\n var els = [].slice.call(document.querySelectorAll(sel));\r\n \r\n if(els.length === 0) {\r\n throw new Error('Modal cannot be initialised, no trigger elements found');\r\n }\r\n\t\t\r\n\t\tinstances = els.map(function(el){\r\n\t\t\treturn Object.assign(Object.create(StormModal), {\r\n\t\t\t\tnode: el,\r\n\t\t\t\tsettings: Object.assign({}, defaults, opts)\r\n\t\t\t}).init();\r\n\t\t});\r\n \r\n\t\treturn instances;\r\n }\r\n\t\r\n\treturn {\r\n\t\tinit: init\r\n\t};\r\n\t\r\n }));"]}