UNPKG

@warp-works/warpjs-survey-tool-plugin

Version:
25 lines 140 kB
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=383)}({0:function(t,e,n){"use strict";t.exports=n(94).default},100:function(t,e,n){"use strict";e.__esModule=!0;var r=n(3),o=n(6),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(t){t.registerHelper("if",function(t,e){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return r.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||r.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},t.exports=e.default},101:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)e.push(arguments[r]);var o=1;null!=n.hash.level?o=n.hash.level:n.data&&null!=n.data.level&&(o=n.data.level),e[0]=o,t.log.apply(t,e)})},t.exports=e.default},102:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e,n){return t?n.lookupProperty(t,e):t})},t.exports=e.default},103:function(t,e,n){"use strict";e.__esModule=!0;var r=n(3),o=n(6),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");r.isFunction(t)&&(t=t.call(this));var n=e.fn;if(r.isEmpty(t))return e.inverse(this);var o=e.data;return e.data&&e.ids&&(o=r.createFrame(e.data),o.contextPath=r.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:o,blockParams:r.blockParams([t],[o&&o.contextPath])})})},t.exports=e.default},104:function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.extend.apply(void 0,[Object.create(null)].concat(e))}e.__esModule=!0,e.createNewLookupObject=r;var o=n(3)},105:function(t,e,n){"use strict";function r(t,e){return"function"!=typeof t?t:function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)}}e.__esModule=!0,e.wrapHelper=r},106:function(t,e,n){"use strict";(function(n){e.__esModule=!0,e.default=function(t){var e=void 0!==n?n:window,r=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=r),t}},t.exports=e.default}).call(e,n(4))},107:function(t,e,n){"use strict";function r(t){var e=t&&t[0]||1,n=m.COMPILER_REVISION;if(!(e>=m.LAST_COMPATIBLE_COMPILER_REVISION&&e<=m.COMPILER_REVISION)){if(e<m.LAST_COMPATIBLE_COMPILER_REVISION){var r=m.REVISION_CHANGES[n],o=m.REVISION_CHANGES[e];throw new y.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new y.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function o(t,e){function n(n,r,o){o.hash&&(r=v.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=e.VM.resolvePartial.call(this,n,r,o);var i=v.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),a=e.VM.invokePartial.call(this,n,r,i);if(null==a&&e.compile&&(o.partials[o.name]=e.compile(n,t.compilerOptions,e),a=o.partials[o.name](r,i)),null!=a){if(o.indent){for(var s=a.split("\n"),l=0,u=s.length;l<u&&(s[l]||l+1!==u);l++)s[l]=o.indent+s[l];a=s.join("\n")}return a}throw new y.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")}function r(e){function n(e){return""+t.main(a,e,a.helpers,a.partials,i,l,s)}var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=o.data;r._setup(o),!o.partial&&t.useData&&(i=u(e,i));var s=void 0,l=t.useBlockParams?[]:void 0;return t.useDepths&&(s=o.depths?e!=o.depths[0]?[e].concat(o.depths):o.depths:[e]),(n=c(t.main,n,a,o.depths||[],i,l))(e,o)}if(!e)throw new y.default("No environment passed to template");if(!t||!t.main)throw new y.default("Unknown template object: "+(void 0===t?"undefined":d(t)));t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var o=t.compiler&&7===t.compiler[0],a={strict:function(t,e,n){if(!(t&&e in t))throw new y.default('"'+e+'" not defined in '+t,{loc:n});return a.lookupProperty(t,e)},lookupProperty:function(t,e){var n=t[e];return null==n?n:Object.prototype.hasOwnProperty.call(t,e)?n:w.resultIsAllowed(n,a.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,r=0;r<n;r++){if(null!=(t[r]&&a.lookupProperty(t[r],e)))return t[r][e]}},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:v.escapeExpression,invokePartial:n,fn:function(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,r,o){var a=this.programs[t],s=this.fn(t);return e||o||r||n?a=i(this,t,s,e,n,r,o):a||(a=this.programs[t]=i(this,t,s)),a},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=v.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};return r.isTop=!0,r._setup=function(n){if(n.partial)a.protoAccessControl=n.protoAccessControl,a.helpers=n.helpers,a.partials=n.partials,a.decorators=n.decorators,a.hooks=n.hooks;else{var r=v.extend({},e.helpers,n.helpers);p(r,a),a.helpers=r,t.usePartial&&(a.partials=a.mergeIfNeeded(n.partials,e.partials)),(t.usePartial||t.useDecorators)&&(a.decorators=v.extend({},e.decorators,n.decorators)),a.hooks={},a.protoAccessControl=w.createProtoAccessControl(n);var i=n.allowCallsToHelperMissing||o;g.moveHelperToHooks(a,"helperMissing",i),g.moveHelperToHooks(a,"blockHelperMissing",i)}},r._child=function(e,n,r,o){if(t.useBlockParams&&!r)throw new y.default("must pass block params");if(t.useDepths&&!o)throw new y.default("must pass parent depths");return i(a,e,t[e],n,0,r,o)},r}function i(t,e,n,r,o,i,a){function s(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return!a||e==a[0]||e===t.nullContext&&null===a[0]||(s=[e].concat(a)),n(t,e,t.helpers,t.partials,o.data||r,i&&[o.blockParams].concat(i),s)}return s=c(n,s,t,a,r,i),s.program=e,s.depth=a?a.length:0,s.blockParams=o||0,s}function a(t,e,n){return t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],t}function s(t,e,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==l&&function(){n.data=m.createFrame(n.data);var t=n.fn;o=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=m.createFrame(n.data),n.data["partial-block"]=r,t(e,n)},t.partials&&(n.partials=v.extend({},n.partials,t.partials))}(),void 0===t&&o&&(t=o),void 0===t)throw new y.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)}function l(){return""}function u(t,e){return e&&"root"in e||(e=e?m.createFrame(e):{},e.root=t),e}function c(t,e,n,r,o,i){if(t.decorator){var a={};e=t.decorator(e,a,n,r&&r[0],o,i,r),v.extend(e,a)}return e}function p(t,e){Object.keys(t).forEach(function(n){var r=t[n];t[n]=f(r,e)})}function f(t,e){var n=e.lookupProperty;return b.wrapHelper(t,function(t){return v.extend({lookupProperty:n},t)})}var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.checkRevision=r,e.template=o,e.wrapProgram=i,e.resolvePartial=a,e.invokePartial=s,e.noop=l;var h=n(3),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(h),_=n(6),y=function(t){return t&&t.__esModule?t:{default:t}}(_),m=n(37),g=n(38),b=n(105),w=n(39)},108:function(t,e,n){"use strict";function r(t){this.string=t}e.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},e.default=r,t.exports=e.default},114:function(t,e,n){"use strict";(function(t,e){!function(t,n){function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return u[l]=r,s(l),l++}function o(t){delete u[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(c)setTimeout(a,0,t);else{var e=u[t];if(e){c=!0;try{i(e)}finally{o(t),c=!1}}}}if(!t.setImmediate){var s,l=1,u={},c=!1,p=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var t=p.documentElement;s=function(e){var n=p.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),f.setImmediate=r,f.clearImmediate=o}}("undefined"==typeof self?void 0===t?void 0:t:self)}).call(e,n(4),n(17))},115:function(t,e,n){"use strict";function r(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return o(a(s(t),8*t.length))}function o(t){for(var e=[],n=32*t.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);e.push(a)}return e}function i(t){return 14+(t+64>>>9<<4)+1}function a(t,e){t[e>>5]|=128<<e%32,t[i(e)-1]=e;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,s=0;s<t.length;s+=16){var u=n,c=r,v=o,_=a;n=p(n,r,o,a,t[s],7,-680876936),a=p(a,n,r,o,t[s+1],12,-389564586),o=p(o,a,n,r,t[s+2],17,606105819),r=p(r,o,a,n,t[s+3],22,-1044525330),n=p(n,r,o,a,t[s+4],7,-176418897),a=p(a,n,r,o,t[s+5],12,1200080426),o=p(o,a,n,r,t[s+6],17,-1473231341),r=p(r,o,a,n,t[s+7],22,-45705983),n=p(n,r,o,a,t[s+8],7,1770035416),a=p(a,n,r,o,t[s+9],12,-1958414417),o=p(o,a,n,r,t[s+10],17,-42063),r=p(r,o,a,n,t[s+11],22,-1990404162),n=p(n,r,o,a,t[s+12],7,1804603682),a=p(a,n,r,o,t[s+13],12,-40341101),o=p(o,a,n,r,t[s+14],17,-1502002290),r=p(r,o,a,n,t[s+15],22,1236535329),n=f(n,r,o,a,t[s+1],5,-165796510),a=f(a,n,r,o,t[s+6],9,-1069501632),o=f(o,a,n,r,t[s+11],14,643717713),r=f(r,o,a,n,t[s],20,-373897302),n=f(n,r,o,a,t[s+5],5,-701558691),a=f(a,n,r,o,t[s+10],9,38016083),o=f(o,a,n,r,t[s+15],14,-660478335),r=f(r,o,a,n,t[s+4],20,-405537848),n=f(n,r,o,a,t[s+9],5,568446438),a=f(a,n,r,o,t[s+14],9,-1019803690),o=f(o,a,n,r,t[s+3],14,-187363961),r=f(r,o,a,n,t[s+8],20,1163531501),n=f(n,r,o,a,t[s+13],5,-1444681467),a=f(a,n,r,o,t[s+2],9,-51403784),o=f(o,a,n,r,t[s+7],14,1735328473),r=f(r,o,a,n,t[s+12],20,-1926607734),n=d(n,r,o,a,t[s+5],4,-378558),a=d(a,n,r,o,t[s+8],11,-2022574463),o=d(o,a,n,r,t[s+11],16,1839030562),r=d(r,o,a,n,t[s+14],23,-35309556),n=d(n,r,o,a,t[s+1],4,-1530992060),a=d(a,n,r,o,t[s+4],11,1272893353),o=d(o,a,n,r,t[s+7],16,-155497632),r=d(r,o,a,n,t[s+10],23,-1094730640),n=d(n,r,o,a,t[s+13],4,681279174),a=d(a,n,r,o,t[s],11,-358537222),o=d(o,a,n,r,t[s+3],16,-722521979),r=d(r,o,a,n,t[s+6],23,76029189),n=d(n,r,o,a,t[s+9],4,-640364487),a=d(a,n,r,o,t[s+12],11,-421815835),o=d(o,a,n,r,t[s+15],16,530742520),r=d(r,o,a,n,t[s+2],23,-995338651),n=h(n,r,o,a,t[s],6,-198630844),a=h(a,n,r,o,t[s+7],10,1126891415),o=h(o,a,n,r,t[s+14],15,-1416354905),r=h(r,o,a,n,t[s+5],21,-57434055),n=h(n,r,o,a,t[s+12],6,1700485571),a=h(a,n,r,o,t[s+3],10,-1894986606),o=h(o,a,n,r,t[s+10],15,-1051523),r=h(r,o,a,n,t[s+1],21,-2054922799),n=h(n,r,o,a,t[s+8],6,1873313359),a=h(a,n,r,o,t[s+15],10,-30611744),o=h(o,a,n,r,t[s+6],15,-1560198380),r=h(r,o,a,n,t[s+13],21,1309151649),n=h(n,r,o,a,t[s+4],6,-145523070),a=h(a,n,r,o,t[s+11],10,-1120210379),o=h(o,a,n,r,t[s+2],15,718787259),r=h(r,o,a,n,t[s+9],21,-343485551),n=l(n,u),r=l(r,c),o=l(o,v),a=l(a,_)}return[n,r,o,a]}function s(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(i(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}function l(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function u(t,e){return t<<e|t>>>32-e}function c(t,e,n,r,o,i){return l(u(l(l(e,t),l(r,i)),o),n)}function p(t,e,n,r,o,i,a){return c(e&n|~e&r,t,e,o,i,a)}function f(t,e,n,r,o,i,a){return c(e&r|n&~r,t,e,o,i,a)}function d(t,e,n,r,o,i,a){return c(e^n^r,t,e,o,i,a)}function h(t,e,n,r,o,i,a){return c(n^(e|~r),t,e,o,i,a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},116:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="00000000-0000-0000-0000-000000000000"},117:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},118:function(t,e,n){"use strict";function r(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:return e^n^r;case 2:return e&n^e&r^n&r;case 3:return e^n^r}}function o(t,e){return t<<e|t>>>32-e}function i(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var i=unescape(encodeURIComponent(t));t=[];for(var a=0;a<i.length;++a)t.push(i.charCodeAt(a))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var s=t.length/4+2,l=Math.ceil(s/16),u=new Array(l),c=0;c<l;++c){for(var p=new Uint32Array(16),f=0;f<16;++f)p[f]=t[64*c+4*f]<<24|t[64*c+4*f+1]<<16|t[64*c+4*f+2]<<8|t[64*c+4*f+3];u[c]=p}u[l-1][14]=8*(t.length-1)/Math.pow(2,32),u[l-1][14]=Math.floor(u[l-1][14]),u[l-1][15]=8*(t.length-1)&4294967295;for(var d=0;d<l;++d){for(var h=new Uint32Array(80),v=0;v<16;++v)h[v]=u[d][v];for(var _=16;_<80;++_)h[_]=o(h[_-3]^h[_-8]^h[_-14]^h[_-16],1);for(var y=n[0],m=n[1],g=n[2],b=n[3],w=n[4],j=0;j<80;++j){var C=Math.floor(j/20),k=o(y,5)+r(C,m,g,b)+w+e[C]+h[j]>>>0;w=b,b=g,g=o(m,30)>>>0,m=y,y=k}n[0]=n[0]+y>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},119:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){var r=e&&n||0,o=e||new Array(16);t=t||{};var s=t.node||i,u=void 0!==t.clockseq?t.clockseq:a;if(null==s||null==u){var d=t.random||(t.rng||l.default)();null==s&&(s=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==u&&(u=a=16383&(d[6]<<8|d[7]))}var h=void 0!==t.msecs?t.msecs:Date.now(),v=void 0!==t.nsecs?t.nsecs:f+1,_=h-p+(v-f)/1e4;if(_<0&&void 0===t.clockseq&&(u=u+1&16383),(_<0||h>p)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=h,f=v,a=u,h+=122192928e5;var y=(1e4*(268435455&h)+v)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=255&y;var m=h/4294967296*1e4&268435455;o[r++]=m>>>8&255,o[r++]=255&m,o[r++]=m>>>24&15|16,o[r++]=m>>>16&255,o[r++]=u>>>8|128,o[r++]=255&u;for(var g=0;g<6;++g)o[r+g]=s[g];return e||(0,c.default)(o)}Object.defineProperty(e,"__esModule",{value:!0});var i,a,s=n(42),l=r(s),u=n(14),c=r(u),p=0,f=0;e.default=o},12:function(t,e,n){"use strict";var r=n(32);t.exports=function(t){return r.get(t)||[]}},120:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(43),i=r(o),a=n(115),s=r(a),l=(0,i.default)("v3",48,s.default);e.default=l},121:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){t=t||{};var r=t.random||(t.rng||a.default)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return(0,l.default)(r)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(42),a=r(i),s=n(14),l=r(s);e.default=o},122:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(43),i=r(o),a=n(118),s=r(a),l=(0,i.default)("v5",80,s.default);e.default=l},123:function(t,e,n){"use strict";function r(t){if(!(0,i.default)(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(15),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r},125:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return"<button type='button' class='close-copyright' aria-label='Close'>\n  <span>&times;</span>\n</button>\n<h3>Authors and Legal Notice</h3><p>Copyright © 2018 Industrial Internet Consortium, a program of the Object Management Group, Inc. (OMG®). All rights reserved.The Maturity Model Explorer is a work product of the Industrial Internet Consortium Business Strategy and Solutions Lifecycle Working Group, chaired by Dirk Slama (Bosch), Jacques Durand (Fujitsu) and Jim Morrish (Independent) and is provided AS-IS and WITHOUT WARRANTIES.</p><p>All copying, distribution and use are subject to the limited License, Permission, Disclaimer and other terms stated in the Industrial Internet Consortium “Use of Information–Terms, Conditions & Notices,” as posted at <a href='http://www.iiconsortium.org/legal/index.htm#use_info'>http://www.iiconsortium.org/legal/index.htm#use_info</a>. If you do not accept these terms, you are not permitted to use the Maturity Model Explorer.</p><p>The Ignite Methodology was used as a reference and modified to create this content. Ignite is Open Source, based on the Creative Commons Attribution 3.0 Unported License (CC BY 3.0): <a href='https://creativecommons.org/licenses/by/3.0/'>https://creativecommons.org/licenses/by/3.0/</a>. The Ignite project can be found at: <a href='https://projects.eclipse.org/projects/iot.ignite'>https://projects.eclipse.org/projects/iot.ignite</a>.</p><p><em>Authors</em>: The following persons have contributed substantial to the content used in the Maturity Model online service: Jim Morrish (Independent), Peter Klement (XMPro).</p>"},useData:!0})},126:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return"<button type='button' class='close-copyright' aria-label='Close'>\n  <span>&times;</span>\n</button>\n<h3>Authors and Legal Notice</h3><p>Copyright © 2018 Industrial Internet Consortium, a program of the Object Management Group, Inc. (OMG®). All rights reserved.The IPT online project assessment tool is a work product of the Industrial Internet Consortium Business Strategy and Solutions Lifecycle Working Group, chaired by Dirk Slama (Bosch), Jacques Durand (Fujitsu) and Jim Morrish (Nokia) and is provided AS-IS and WITHOUT WARRANTIES.</p><p>All copying, distribution and use are subject to the limited License, Permission, Disclaimer and other terms stated in the Industrial Internet Consortium “Use of Information–Terms, Conditions & Notices,” as posted at <a href='http://www.iiconsortium.org/legal/index.htm#use_info'>http://www.iiconsortium.org/legal/index.htm#use_info</a>. If you do not accept these terms, you are not permitted to use the IPT online project assessment tool.</p><p>The Ignite Methodology was used as a reference and modified to create this content. Ignite is Open Source, based on the Creative Commons Attribution 3.0 Unported License (CC BY 3.0): <a href='https://creativecommons.org/licenses/by/3.0/'>https://creativecommons.org/licenses/by/3.0/</a>. The Ignite project can be found at: <a href='https://projects.eclipse.org/projects/iot.ignite'>https://projects.eclipse.org/projects/iot.ignite</a>.</p><p><em>Authors</em>: The following persons have contributed substantial to the content used in the IPT online service: Dirk Slama (Bosch), Frank Puhlmann (Bosch), Philipp Richert (Bosch), Jacques Durand (Fujitsu), Stan Schneider (RTI), Reinier Torenbeek (RTI), Erich Clauer (SAP SE).</p>"},useData:!0})},127:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="bg-warning text-warning">Loading <span class="glyphicon glyphicon-hourglass"></span>...</div>\n'},useData:!0})},128:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,o,i){var a;return'<div class="survey-tool">\n  <div class="container-fluid">\n    <div class="row title-section">\n      <div class="logo-container">\n        <a class="warpjs-home-link" href="">\n          <div class="logo"></div>\n        </a>\n      </div>\n      <div class="title-container">\n        <div class="survey-type-title-container survey-type-default">\n          <div class="title-icon ipt-icon"></div>\n          <div class="icon-text-right">\n            <h2>Project Explorer</h2>\n          </div>\n        </div>\n        <div class="survey-type-title-container survey-type-ipt">\n          <div class="title-icon ipt-icon"></div>\n          <div class="icon-text-right">\n            <h2>IIC Project Explorer</h2>\n          </div>\n        </div>\n        <div class="survey-type-title-container survey-type-ai">\n          <div class="title-icon ipt-icon"></div>\n          <div class="icon-text-right">\n            <h2>AI Project Explorer</h2>\n          </div>\n        </div>\n        <div class="survey-type-title-container survey-type-mm">\n          <div class="title-icon mm-icon"></div>\n          <div class="icon-text-right">\n            <h2>Maturity Assessment</h2>\n          </div>\n        </div>\n      </div>\n      <div class="progress-header-container">\n        <div class="details-button-container">\n          <button class="details-button">\n            <span class="glyphicon glyphicon-cog"></span>\n          </button>\n        </div>\n        <div class="progress-container">\n          <span class="progress-label">Progress</span>\n          <div class="progress-bar-container">\n            <div class="progress-bar"></div>\n          </div>\n          <h3 class="ipt-title"></h3>\n        </div>\n      </div>\n      <div class="header-buttons-container">\n        <div class="blue-button-container">\n          <button class="blue-button spider-button" data-toggle="tooltip" title="Overview" data-placement="bottom"></button>\n          <button class="blue-button progress-results-button summary-results" data-result="1">Summary</button>\n          <button class="blue-button progress-results-button details-results" data-result="2">Details</button>\n          <button class="blue-button progress-results-button guidance-results" data-result="3"></button>\n          <button class="blue-button copyright tooltip-wide" data-toggle="tooltip" data-html="true" title="'+(null!=(a=t.invokePartial(n(126),e,{name:"copyright",data:i,helpers:r,partials:o,decorators:t.decorators}))?a:"")+'" data-placement="bottom">&copy;</button>\n          <button class="blue-button copyright-mm tooltip-wide" data-toggle="tooltip" data-html="true" title="'+(null!=(a=t.invokePartial(n(125),e,{name:"copyright-mm",data:i,helpers:r,partials:o,decorators:t.decorators}))?a:"")+'" data-placement="bottom">&copy;</button>\n        </div>\n      </div>\n    </div>\n    <div class="ipt-container">\n      <div class="col-xs-12 ipt-body">\n'+(null!=(a=t.invokePartial(n(127),e,{name:"loading",data:i,indent:"        ",helpers:r,partials:o,decorators:t.decorators}))?a:"")+"      </div>\n    </div>\n  </div>\n</div>\n"},usePartial:!0,useData:!0})},14:function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}Object.defineProperty(e,"__esModule",{value:!0});for(var o=n(15),i=function(t){return t&&t.__esModule?t:{default:t}}(o),a=[],s=0;s<256;++s)a.push((s+256).toString(16).substr(1));e.default=r},15:function(t,e,n){"use strict";function r(t){return"string"==typeof t&&i.default.test(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(117),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r},17:function(t,e,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(p===setTimeout)return setTimeout(t,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function a(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){_&&h&&(_=!1,h.length?v=h.concat(v):y=-1,v.length&&l())}function l(){if(!_){var t=i(s);_=!0;for(var e=v.length;e;){for(h=v,v=[];++y<e;)h&&h[y].run();y=-1,e=v.length}h=null,_=!1,a(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var p,f,d=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(t){p=r}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var h,v=[],_=!1,y=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new u(t,e)),1!==v.length||_||i(l)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},19:function(t,e,n){"use strict";var r=n(32);t.exports=function(t,e){return r.set(t,e)}},20:function(t,e,n){"use strict";t.exports=function(t){return"mm"===t||t.startsWith("mm:")}},29:function(t,e,n){"use strict";t.exports={NAVIGATION:Object.freeze({BACK:"back",NEXT:"next"}),specializedTemplates:{introCategory:"Introduction",description:"Project Description",details:"Levels of Detail",create:"Privacy",spider:"Spider Diagram",personas:"Personas",modules:"Modules"},TITLES:Object.freeze({IPT:"IIC Project Explorer",MM:"Maturity Assessment",AI:"AI Project Explorer"})}},3:function(t,e,n){"use strict";function r(t){return f[t]}function o(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}function i(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function a(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return h.test(t)?t.replace(d,r):t}function s(t){return!t&&0!==t||!(!y(t)||0!==t.length)}function l(t){var e=o({},t);return e._parent=t,e}function u(t,e){return t.path=e,t}function c(t,e){return(t?t+".":"")+e}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.extend=o,e.indexOf=i,e.escapeExpression=a,e.isEmpty=s,e.createFrame=l,e.blockParams=u,e.appendContextPath=c;var f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},d=/[&<>"'`=]/g,h=/[&<>"'`=]/,v=Object.prototype.toString;e.toString=v;var _=function(t){return"function"==typeof t};_(/x/)&&(e.isFunction=_=function(t){return"function"==typeof t&&"[object Function]"===v.call(t)}),e.isFunction=_;var y=Array.isArray||function(t){return!(!t||"object"!==(void 0===t?"undefined":p(t)))&&"[object Array]"===v.call(t)};e.isArray=y},30:function(t,e,n){"use strict";var r=n(67),o=n(68),i=n(69);t.exports=Object.freeze({postRender:function(t,e){return r(t,e)},preRender:function(t){return o(t)},setSurveyContent:function(t,e,n){return i(t,e,n)}})},31:function(t,e,n){"use strict";(function(n,r,o){var i,a,s,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/* @preserve
 * The MIT License (MIT)
 * 
 * Copyright (c) 2013-2018 Petka Antonov
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * 
 */
!function(n){if("object"==l(e)&&void 0!==t)t.exports=n();else{a=[],i=n,void 0!==(s="function"==typeof i?i.apply(e,a):i)&&(t.exports=s)}}(function(){var t,e,i;return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return o(n||t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,r){function o(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=p}function i(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function a(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function s(t){this._normalQueue._pushOne(t),this._queueTick()}function l(t){for(;t.length()>0;)u(t)}function u(t){var e=t.shift();if("function"!=typeof e)e._settlePromises();else{var n=t.shift(),r=t.shift();e.call(n,r)}}var c;try{throw new Error}catch(t){c=t}var p=t("./schedule"),f=t("./queue");o.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},o.prototype.hasCustomScheduler=function(){return this._customScheduler},o.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},o.prototype.fatalError=function(t,e){e?(n.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),n.exit(2)):this.throwLater(t)},o.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},o.prototype.invokeLater=i,o.prototype.invoke=a,o.prototype.settlePromises=s,o.prototype._drainQueues=function(){l(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,l(this._lateQueue)},o.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},o.prototype._reset=function(){this._isTickUsed=!1},e.exports=o,e.exports.firstLineError=c},{"./queue":26,"./schedule":29}],3:[function(t,e,n){e.exports=function(t,e,n,r){var o=!1,i=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(i,i,null,this,t)},s=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},l=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(i){o||(o=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var u=n(i),c=new t(e);c._propagateFrom(this,1);var p=this._target();if(c._setBoundTo(u),u instanceof t){var f={promiseRejectionQueued:!1,promise:c,target:p,bindingPromise:u};p._then(e,a,void 0,c,f),u._then(s,l,void 0,c,f),c._setOnCancel(u)}else c._resolveCallback(p);return c},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){function r(){try{Promise===i&&(Promise=o)}catch(t){}return i}var o;"undefined"!=typeof Promise&&(o=Promise);var i=t("./promise")();i.noConflict=r,e.exports=i},{"./promise":22}],5:[function(t,e,n){var r=Object.create;if(r){var o=r(null),i=r(null);o[" size"]=i[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var o="Object "+s.classString(t)+" has no method '"+s.toString(n)+"'";throw new e.TypeError(o)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function o(t){return t[this]}function i(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var a,s=t("./util"),l=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=i;else if(l){var r=a(t);e=null!==r?r:o}else e=o;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){e.exports=function(e,n,r,o){var i=t("./util"),a=i.tryCatch,s=i.errorObj,l=e._async;e.prototype.break=e.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(i.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"==typeof t){if(!e){var r=a(t).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),l.throwLater(r.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){e.exports=function(e){function n(t,n,s){return function(l){var u=s._boundValue();t:for(var c=0;c<t.length;++c){var p=t[c];if(p===Error||null!=p&&p.prototype instanceof Error){if(l instanceof p)return i(n).call(u,l)}else if("function"==typeof p){var f=i(p).call(u,l);if(f===a)return f;if(f)return i(n).call(u,l)}else if(r.isObject(l)){for(var d=o(p),h=0;h<d.length;++h){var v=d[h];if(p[v]!=l[v])continue t}return i(n).call(u,l)}}return e}}var r=t("./util"),o=t("./es5").keys,i=r.tryCatch,a=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(t,e,n){e.exports=function(t){function e(){this._trace=new e.CapturedTrace(r())}function n(){if(o)return new e}function r(){var t=i.length-1;if(t>=0)return i[t]}var o=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,i=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,l=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=i,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=l,o=!1},o=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,r){e.exports=function(e,r,o,i){function a(t,e){return{promise:e}}function s(){return!1}function u(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+q.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function c(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?q.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function p(){return this._onCancelField}function f(t){this._onCancelField=t}function d(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function v(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function _(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function y(){this._trace=new L(this._peekContext())}function m(t,e){if(W(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=S(t);q.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),q.notEnumerableProp(t,"__stackCleaned__",!0)}}}function g(){this._trace=void 0}function b(t,e,n,r,o){if(void 0===t&&null!==e&&et){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(e._trace){for(var s=e._trace.stack.split("\n"),l=x(s),u=l.length-1;u>=0;--u){var c=l[u];if(!$.test(c)){var p=c.match(z);p&&(i="at "+p[1]+":"+p[2]+":"+p[3]+" ");break}}if(l.length>0)for(var f=l[0],u=0;u<s.length;++u)if(s[u]===f){u>0&&(a="\n"+s[u-1]);break}}var d="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,e)}}function w(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),j(n)}function j(t,n,r){if(ft.warnings){var o,i=new B(t);if(n)r._attachExtraTrace(i);else if(ft.longStackTraces&&(o=e._peekContext()))o.attachExtraTrace(i);else{var a=S(i);i.stack=a.message+"\n"+a.stack.join("\n")}st("warning",i)||T(i,"",!0)}}function C(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function k(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function E(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],o=e.length-1,i=e[o],a=-1,s=r.length-1;s>=0;--s)if(r[s]===i){a=s;break}for(var s=a;s>=0;--s){var l=r[s];if(e[o]!==l)break;e.pop(),o--}e=r}}function x(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],o="    (No stack trace)"===r||K.test(r),i=o&&ut(r);o&&!i&&(Y&&" "!==r.charAt(0)&&(r="    "+r),e.push(r))}return e}function P(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if("    (No stack trace)"===r||K.test(r))break}return n>0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}function S(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?P(t):["    (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:x(e)}}function T(t,e,n){if("undefined"!=typeof console){var r;if(q.isObject(t)){var o=t.stack;r=e+J(o,t)}else r=e+String(t);"function"==typeof H?H(r,n):"function"!=typeof console.log&&"object"!==l(console.log)||console.log(r)}}function O(t,e,n,r){var o=!1;try{"function"==typeof e&&(o=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){V.throwLater(t)}"unhandledRejection"===t?st(t,n,r)||o||T(n,"Unhandled rejection "):st(t,r)}function F(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():q.toString(t);if(/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+A(e)+">, no stack trace)"}function A(t){return t.length<41?t:t.substr(0,38)+"..."}function R(){return"function"==typeof pt}function I(t){var e=t.match(ct);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function M(t,e){if(R()){for(var n,r,o=(t.stack||"").split("\n"),i=(e.stack||"").split("\n"),a=-1,s=-1,l=0;l<o.length;++l){var u=I(o[l]);if(u){n=u.fileName,a=u.line;break}}for(var l=0;l<i.length;++l){var u=I(i[l]);if(u){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(ut=function(t){if(G.test(t))return!0;var e=I(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}}function L(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);pt(this,L),e>32&&this.uncycle()}var D,U,H,N,V=e._async,B=t("./errors").Warning,q=t("./util"),Q=t("./es5"),W=q.canAttachTrace,G=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,$=/\((?:timers\.js):\d+:\d+\)/,z=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,K=null,J=null,Y=!1,X=!(0==q.env("BLUEBIRD_DEBUG")),Z=!(0==q.env("BLUEBIRD_WARNINGS")||!X&&!q.env("BLUEBIRD_WARNINGS")),tt=!(0==q.env("BLUEBIRD_LONG_STACK_TRACES")||!X&&!q.env("BLUEBIRD_LONG_STACK_TRACES")),et=0!=q.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Z||!!q.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){function t(){for(var t=0;t<r.length;++t)r[t]._notifyUnhandledRejection();n()}function n(){r.length=0}var r=[];N=function(e){r.push(e),setTimeout(t,1)},Q.defineProperty(e,"_unhandledRejectionCheck",{value:t}),Q.defineProperty(e,"_unhandledRejectionClear",{value:n})}(),e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),N(this))},e.prototype._notifyUnhandledRejectionIsHandled=function(){O("rejectionHandled",D,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),O("unhandledRejection",U,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return j(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var n=e._getContext();U=q.contextBind(n,t)},e.onUnhandledRejectionHandled=function(t){var n=e._getContext();D=q.contextBind(n,t)};var nt=function(){};e.longStackTraces=function(){if(V.haveItemsQueued()&&!ft.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!ft.longStackTraces&&R()){var t=e.prototype._captureStackTrace,n=e.prototype._attachExtraTrace,o=e.prototype._dereferenceTrace;ft.longStackTraces=!0,nt=function(){if(V.haveItemsQueued()&&!ft.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=n,e.prototype._dereferenceTrace=o,r.deactivateLongStackTraces(),ft.longStackTraces=!1},e.prototype._captureStackTrace=y,e.prototype._attachExtraTrace=m,e.prototype._dereferenceTrace=g,r.activateLongStackTraces()}},e.hasLongStackTraces=function(){return ft.longStackTraces&&R()};var rt={unhandledrejection:{before:function(){var t=q.global.onunhandledrejection;return q.global.onunhandledrejection=null,t},after:function(t){q.global.onunhandledrejection=t}},rejectionhandled:{before:function(){var t=q.global.onrejectionhandled;return q.global.onrejectionhandled=null,t},after:function(t){q.global.onrejectionhandled=t}}},ot=function(){var t=function(t,e){if(!t)return!q.global.dispatchEvent(e);var n;try{return n=t.before(),!q.global.dispatchEvent(e)}finally{t.after(n)}};try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return q.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r={detail:n,cancelable:!0},o=new CustomEvent(e,r);return Q.defineProperty(o,"promise",{value:n.promise}),Q.defineProperty(o,"reason",{value:n.reason}),t(rt[e],o)}}if("function"==typeof Event){var e=new Event("CustomEvent");return q.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=new Event(e,{cancelable:!0});return r.detail=n,Q.defineProperty(r,"promise",{value:n.promise}),Q.defineProperty(r,"reason",{value:n.reason}),t(rt[e],r)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),q.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!0,n),t(rt[e],r)}}catch(t){}return function(){return!1}}(),it=function(){return q.isNode?function(){return n.emit.apply(n,arguments)}:q.global?function(t){var e="on"+t.toLowerCase(),n=q.global[e];return!!n&&(n.apply(q.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),at={promiseCreated:a,promiseFulfilled:a,promiseRejected:a,promiseResolved:a,promiseCancelled:a,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:a},st=function(t){var e=!1;try{e=it.apply(null,arguments)}catch(t){V.throwLater(t),e=!0}var n=!1;try{n=ot(t,at[t].apply(null,arguments))}catch(t){V.throwLater(t),n=!0}return n||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&nt()),"warnings"in t){var n=t.warnings;ft.warnings=!!n,et=ft.warnings,q.isObject(n)&&"wForgottenReturn"in n&&(et=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!ft.cancellation){if(V.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=d,e.prototype._propagateFrom=h,e.prototype._onCancel=p,e.prototype._setOnCancel=f,e.prototype._attachCancellationCallback=c,e.prototype._execute=u,lt=h,ft.cancellation=!0}if("monitoring"in t&&(t.monitoring&&!ft.monitoring?(ft.monitoring=!0,e.prototype._fireEvent=st):!t.monitoring&&ft.monitoring&&(ft.monitoring=!1,e.prototype._fireEvent=s)),"asyncHooks"in t&&q.nodeSupportsAsyncResource){var r=ft.asyncHooks,a=!!t.asyncHooks;r!==a&&(ft.asyncHooks=a,a?o():i())}return e},e.prototype._fireEvent=s,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._dereferenceTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var lt=v,ut=function(){return!1},ct=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;q.inherits(L,Error),r.CapturedTrace=L,L.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,o=this;void 0!==o;++r)e.push(o),o=o._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var i=e[r].stack;void 0===n[i]&&(n[i]=r)}for(var r=0;r<t;++r){var a=e[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var l=r>0?e[r-1]:this;s<t-1?(l._parent=e[s+1],l._parent.uncycle(),l._length=l._parent._length+1):(l._parent=void 0,l._length=1);for(var u=l._length+1,c=r-2;c>=0;--c)e[c]._length=u,u++;return}}}},L.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=S(t),n=e.message,r=[e.stack],o=this;void 0!==o;)r.push(x(o.stack.split("\n"))),o=o._parent;E(r),k(r),q.notEnumerableProp(t,"stack",C(n,r)),q.notEnumerableProp(t,"__stackCleaned__",!0)}};var pt=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():F(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,K=t,J=e;var n=Error.captureStackTrace;return ut=function(t){return G.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return K=/@/,J=e,Y=!0,function(t){t.stack=(new Error).stack};var o;try{throw new Error}catch(t){o="stack"in t}return"stack"in r||!o||"number"!=typeof Error.stackTraceLimit?(J=function(t,e){return"string"==typeof t?t:"object"!==(void 0===e?"undefined":l(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?F(e):e.toString()},null):(K=t,J=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(H=function(t){console.warn(t)},q.isNode&&n.stderr.isTTY?H=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:q.isNode||"string"!=typeof(new Error).stack||(H=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var ft={warnings:Z,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return tt&&e.longStackTraces(),{asyncHooks:function(){return ft.asyncHooks},longStackTraces:function(){return ft.longStackTraces},warnings:function(){return ft.warnings},cancellation:function(){return ft.cancellation},monitoring:function(){return ft.monitoring},propagateFromFunction:function(){return lt},boundValueFunction:function(){return _},checkForgottenReturns:b,setBounds:M,warn:j,deprecated:w,CapturedTrace:L,fireDomEvent:ot,fireGlobalEvent:it}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,e,n){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var o=function(){return r};return this.caught(n,o)}}},{}],11:[function(t,e,n){e.exports=function(t,e){function n(){return i(this)}function r(t,n){return o(t,n,e,e)}var o=t.reduce,i=t.all;t.prototype.each=function(t){return o(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return o(this,t,e,e)},t.each=function(t,r){return o(t,r,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){function r(t,e){function n(r){if(!(this instanceof n))return new n(r);p(this,"message","string"==typeof r?r:e),p(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}function o(t){if(!(this instanceof o))return new o(t);p(this,"name","OperationalError"),p(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(p(this,"message",t.message),p(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var i,a,s=t("./es5"),l=s.freeze,u=t("./util"),c=u.inherits,p=u.notEnumerableProp,f=r("Warning","warning"),d=r("CancellationError","cancellation error"),h=r("TimeoutError","timeout error"),v=r("AggregateError","aggregate error");try{i=TypeError,a=RangeError}catch(t){i=r("TypeError","type error"),a=r("RangeError","range error")}for(var _="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<_.length;++y)"function"==typeof Array.prototype[_[y]]&&(v.prototype[_[y]]=Array.prototype[_[y]]);s.defineProperty(v.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),v.prototype.isOperational=!0;var m=0;v.prototype.toString=function(){var t=Array(4*m+1).join(" "),e="\n"+t+"AggregateError of:\n";m++,t=Array(4*m+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",o=r.split("\n"),i=0;i<o.length;++i)o[i]=t+o[i];r=o.join("\n"),e+=r+"\n"}return m--,e},c(o,Error);var g=Error.__BluebirdErrorTypes__;g||(g=l({CancellationError:d,TimeoutError:h,OperationalError:o,RejectionError:o,AggregateError:v}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:i,RangeError:a,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(t,e,n){var r=function(){return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var o={}.hasOwnProperty,i={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var n in t)o.call(t,n)&&e.push(n);return e},l=function(t,e){return{value:t[e]}},u=function(t,e,n){return t[e]=n.value,t},c=function(t){return t},p=function(t){try{return Object(t).constructor.prototype}catch(t){return a}},f=function(t){try{return"[object Array]"===i.call(t)}catch(t){return!1}};e.exports={isArray:f,keys:s,names:s,defineProperty:u,getDescriptor:l,freeze:c,getPrototypeOf:p,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,n){e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,o){return n(t,r,o,e)}}},{}],15:[function(t,e,n){e.exports=function(e,n,r){function o(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function i(t){this.finallyHandler=t}function a(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return u.call(this,this.promise._target()._settledValue())}function l(t){if(!a(this,t))return f.e=t,f}function u(t){var o=this.promise,u=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?u.call(o._boundValue()):u.call(o._boundValue(),t);if(c===r)return c;if(void 0!==c){o._setReturnedNonUndefined();var d=n(c,o);if(d instanceof e){if(null!=this.cancelPromise){if(d._isCancelled()){var h=new p("late cancellation observer");return o._attachExtraTrace(h),f.e=h,f}d.isPending()&&d._attachCancellationCallback(new i(this))}return d._then(s,l,void 0,this,void 0)}}}return o.isRejected()?(a(this),f.e=t,f):(a(this),t)}var c=t("./util"),p=e.CancellationError,f=c.errorObj,d=t("./catch_filter")(r);return o.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){a(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new o(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,u,u)},e.prototype.tap=function(t){return this._passThrough(t,1,u)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,u);var r,o=new Array(n-1),i=0;for(r=0;r<n-1;++r){var a=arguments[r];if(!c.isObject(a))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+c.classString(a)));o[i++]=a}o.length=i;var s=arguments[r];return this._passThrough(d(o,s,this),1,void 0,u)},o}},{"./catch_filter":7,"./util":36}],16:[function(t,e,n){e.exports=function(e,n,r,o,i,a){function s(t,n,r){for(var i=0;i<n.length;++i){r._pushContext();var a=d(n[i])(t);if(r._popContext(),a===f){r._pushContext();var s=e.reject(f.e);return r._popContext(),s}var l=o(a,r);if(l instanceof e)return l}return null}function l(t,n,o,i){if(a.cancellation()){var s=new e(r),l=this._finallyPromise=new e(r);this._promise=s.lastly(function(){return l}),s._captureStackTrace(),s._setOnCancel(this)}else{(this._promise=new e(r))._captureStackTrace()}this._stack=i,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof o?[o].concat(h):h,this._yieldedPromise=null,this._cancellationPhase=!1}var u=t("./errors"),c=u.TypeError,p=t("./util"),f=p.errorObj,d=p.tryCatch,h=[];p.inherits(l,i),l.prototype._isResolved=function(){return null===this._promise},l.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},l.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n=void 0!==this._generator.return;if(n)this._promise._pushContext(),t=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=d(this._generator.throw).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},l.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=d(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},l.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=d(this._generator.throw).call(this._generator,t);this._promise._popContext(),this._continue(e)},l.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},l.prototype.promise=function(){return this._promise},l.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},l.prototype._continue=function(t){var n=this._promise;if(t===f)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var i=o(r,this._promise);if(!(i instanceof e)&&null===(i=s(i,this._yieldHandlers,this._promise)))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));i=i._target();var a=i._bitField;0==(50397184&a)?(this._yieldedPromise=i,i._proxy(this,null)):0!=(33554432&a)?e._async.invoke(this._promiseFulfilled,this,i._value()):0!=(16777216&a)?e._async.invoke(this._promiseRejected,this,i._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeof t)throw new c("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=l,o=(new Error).stack;return function(){var e=t.apply(this,arguments),i=new r(void 0,void 0,n,o),a=i.promise();return i._generator=e,i._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new c("expecting a function but got "+p.classString(t));h.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var r=new l(t,this),o=r.promise();return r._run(e.spawn),o}}},{"./errors":12,"./util":36}],17:[function(t,e,n){e.exports=function(e,n,r,o,i){var a=t("./util");a.canEvaluate,a.tryCatch,a.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}var o=[].slice.call(arguments);t&&o.pop();var r=new n(o).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){e.exports=function(e,n,r,o,i,a){function s(t,n,r,o){this.constructor$(t),this._promise._captureStackTrace();var a=e._getContext();if(this._callback=c.contextBind(a,n),this._preservedValues=o===i?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0),c.isArray(t))for(var s=0;s<t.length;++s){var l=t[s];l instanceof e&&l.suppressUnhandledRejections()}}function u(t,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==o){if("object"!==(void 0===o?"undefined":l(o))||null===o)return e.reject(new TypeError("options argument must be an object but it is "+c.classString(o)));if("number"!=typeof o.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(o.concurrency)));a=o.concurrency}return a="number"==typeof a&&isFinite(a)&&a>=1?a:0,new s(t,n,a,i).promise()}var c=t("./util"),p=c.tryCatch,f=c.errorObj,d=e._async;c.inherits(s,n),s.prototype._asyncInit=function(){this._init$(void 0,-2)},s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,n){var r=this._values,i=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var u=this._promise,c=this._callback,d=u._boundValue();u._pushContext();var h=p(c).call(d,t,n,i),v=u._popContext();if(a.checkForgottenReturns(h,v,null!==s?"Promise.filter":"Promise.map",u),h===f)return this._reject(h.e),!0;var _=o(h,this._promise);if(_ instanceof e){_=_._target();var y=_._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=_,_._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(_._reason()),!0):(this._cancel(),!0);h=_._value()}r[n]=h}return++this._totalResolved>=i&&(null!==s?this._filter(r,s):this._resolve(r),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},s.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),o=0,i=0;i<n;++i)t[i]&&(r[o++]=e[i]);r.length=o,this._resolve(r)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,n,r){return u(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){e.exports=function(e,n,r,o,i){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var o=s(t).apply(this,arguments),a=r._popContext();return i.checkForgottenReturns(o,a,"Promise.method",r),r._resolveFromSyncValue(o),r}},e.attempt=e.try=function(t){if("function"!=typeof t)return o("expecting a function but got "+a.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var l;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];l=a.isArray(u)?s(t).apply(c,u):s(t).call(c,u)}else l=s(t)();var p=r._popContext();return i.checkForgottenReturns(l,p,"Promise.try",r),r._resolveFromSyncValue(l),r},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function o(t){var e;if(r(t)){e=new u(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),o=0;o<n.length;++o){var i=n[o];p.test(i)||(e[i]=t[i])}return e}return a.markAsOriginatingFromRejection(t),t}function i(t,e){return function(n,r){if(null!==t){if(n){var i=o(s(n));t._attachExtraTrace(i),t._reject(i)}else if(e){var a=[].slice.call(arguments,1);t._fulfill(a)}else t._fulfill(r);t=null}}}var a=t("./util"),s=a.maybeWrapAsError,l=t("./errors"),u=l.OperationalError,c=t("./es5"),p=/^(?:name|message|stack|cause)$/;e.exports=i},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){e.exports=function(e){function n(t,e){var n=this;if(!i.isArray(t))return r.call(n,t,e);var o=s(e).apply(n._boundValue(),[null].concat(t));o===l&&a.throwLater(o.e)}function r(t,e){var n=this,r=n._boundValue(),o=void 0===t?s(e).call(r,null):s(e).call(r,null,t);o===l&&a.throwLater(o.e)}function o(t,e){var n=this;if(!t){var r=new Error(t+"");r.cause=t,t=r}var o=s(e).call(n._boundValue(),t);o===l&&a.throwLater(o.e)}var i=t("./util"),a=e._async,s=i.tryCatch,l=i.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var i=r;void 0!==e&&Object(e).spread&&(i=n),this._then(i,o,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e,r){e.exports=function(){function r(){}function o(t,e){if(null==t||t.constructor!==i)throw new x("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new x("expecting a function but got "+d.classString(e))}function i(t){t!==S&&o(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function a(t){this.promise._resolveCallback(t)}function s(t){this.promise._rejectCallback(t,!1)}function l(t){var e=new i(S);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u=function(){return new x("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},c=function(){return new i.PromiseInspection(this._target())},p=function(t){return i.reject(new x(t))},f={},d=t("./util");d.setReflectHandler(c);var h=function(){var t=n.domain;return void 0===t?null:t},v=function(){return null},_=function(){return{domain:h(),async:null}},y=d.isNode&&d.nodeSupportsAsyncResource?t("async_hooks").AsyncResource:null,m=function(){return{domain:h(),async:new y("Bluebird::Promise")}},g=d.isNode?_:v;d.notEnumerableProp(i,"_getContext",g);var b=function(){g=m,d.notEnumerableProp(i,"_getContext",m)},w=function(){g=_,d.notEnumerableProp(i,"_getContext",_)},j=t("./es5"),C=t("./async"),k=new C;j.defineProperty(i,"_async",{value:k});var E=t("./errors"),x=i.TypeError=E.TypeError;i.RangeError=E.RangeError;var P=i.CancellationError=E.CancellationError;i.TimeoutError=E.TimeoutError,i.OperationalError=E.OperationalError,i.RejectionError=E.OperationalError,i.AggregateError=E.AggregateError;var S=function(){},T={},O={},F=t("./thenables")(i,S),A=t("./promise_array")(i,S,F,p,r),R=t("./context")(i),I=R.create,M=t("./debuggability")(i,R,b,w),L=(M.CapturedTrace,t("./finally")(i,F,O)),D=t("./catch_filter")(O),U=t("./nodeback"),H=d.errorObj,N=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype.catch=function(t){var e=arguments.length;if(e>1){var n,r=new Array(e-1),o=0;for(n=0;n<e-1;++n){var i=arguments[n];if(!d.isObject(i))return p("Catch statement predicate: expecting an object but got "+d.classString(i));r[o++]=i}if(r.length=o,"function"!=typeof(t=arguments[n]))throw new x("The last argument to .catch() must be a function, got "+d.toString(t));return this.then(void 0,D(r,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(c,c,void 0,this,void 0)},i.prototype.then=function(t,e){if(M.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?p("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,T,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.getNewLibraryCopy=e.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(S);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=N(t)(U(e,n));return r===H&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new A(t).promise()},i.cast=function(t){var e=F(t);return e instanceof i||(e=new i(S),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(S);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new x("expecting a function but got "+d.classString(t));return k.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var a=void 0!==o,s=a?o:new i(S),l=this._target(),u=l._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&u)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var c=g();if(0!=(50397184&u)){var p,f,h=l._settlePromiseCtx;0!=(33554432&u)?(f=l._rejectionHandler0,p=t):0!=(16777216&u)?(f=l._fulfillmentHandler0,p=e,l._unsetRejectionIsUnhandled()):(h=l._settlePromiseLateCancellationObserver,f=new P("late cancellation observer"),l._attachExtraTrace(f),p=e),k.invoke(h,l,{handler:d.contextBind(c,p),promise:s,receiver:r,value:f})}else l._addCallbacks(t,e,s,r,c);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){if(!k.hasCustomScheduler()){var t=this._bitField;this._bitField=t|(536870912&t)>>2^134217728}},i.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==f)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,o=t._receiverAt(0);void 0===o&&(o=f),this._addCallbacks(e,n,r,o,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),o=t._promiseAt(e),i=t._receiverAt(e);void 0===i&&(i=f),this._addCallbacks(n,r,o,i,null)},i.prototype._addCallbacks=function(t,e,n,r,o){var i=this._length();if(i>=65531&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=d.contextBind(o,t)),"function"==typeof e&&(this._rejectionHandler0=d.contextBind(o,e));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=d.contextBind(o,t)),"function"==typeof e&&(this[a+1]=d.contextBind(o,e))}return this._setLength(i+1),i},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=F(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(u());var o=r._bitField;if(0==(50397184&o)){var a=this._length();a>0&&r._migrateCallback0(this);for(var s=1;s<a;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(n)}else if(0!=(33554432&o))this._fulfill(r._value());else if(0!=(16777216&o))this._reject(r._reason());else{var l=new P("late cancellation observer");r._attachExtraTrace(l),this._reject(l)}}},i.prototype._rejectCallback=function(t,e,n){var r=d.ensureErrorObject(t),o=r===t;if(!o&&!n&&M.warnings()){var i="a promise was rejected with a non-error: "+d.classString(t);this._warn(i,!0)}this._attachExtraTrace(r,!!e&&o),this._reject(t)},i.prototype._resolveFromExecutor=function(t){if(t!==S){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)}},i.prototype._settlePromiseFromHandler=function(t,e,n,r){var o=r._bitField;if(0==(65536&o)){r._pushContext();var i;e===T?n&&"number"==typeof n.length?i=N(t).apply(this._boundValue(),n):(i=H,i.e=new x("cannot .spread() a non-array: "+d.classString(n))):i=N(t).call(e,n);var a=r._popContext();o=r._bitField,0==(65536&o)&&(i===O?r._reject(n):i===H?r._rejectCallback(i.e,!1):(M.checkForgottenReturns(i,a,"",r,this),r._resolveCallback(i)))}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,n,o){var a=t instanceof i,s=this._bitField,l=0!=(134217728&s);0!=(65536&s)?(a&&t._invokeInternalOnCancel(),n instanceof L&&n.isFinallyHandler()?(n.cancelPromise=t,N(e).call(n,o)===H&&t._reject(H.e)):e===c?t._fulfill(c.call(n)):n instanceof r?n._promiseCancelled(t):a||t instanceof A?t._cancel():n.cancel()):"function"==typeof e?a?(l&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,n,o,t)):e.call(n,o,t):n instanceof r?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(o,t):n._promiseRejected(o,t)):a&&(l&&t._setAsyncGuaranteed(),0!=(33554432&s)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,r=t.receiver,o=t.value;"function"==typeof e?n instanceof i?this._settlePromiseFromHandler(e,r,o,n):e.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,n){var r=this._promise0,o=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,o,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():k.settlePromises(this),this._dereferenceTrace())}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return k.fatalError(t,d.isNode);(65535&e)>0?k.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n<t;n++){var r=this._fulfillmentHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,e)}},i.prototype._rejectPromises=function(t,e){for(var n=1;n<t;n++){var r=this._rejectionHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&j.defineProperty(i.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),i.defer=i.pending=function(){return M.deprecated("Promise.defer","new Promise"),{promise:new i(S),resolve:a,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",u),t("./method")(i,S,F,p,M),t("./bind")(i,S,F,M),t("./cancel")(i,A,p,M),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,A,F,S,k),i.Promise=i,i.version="3.7.2",t("./call_get.js")(i),t("./generators.js")(i,p,S,F,r,M),t("./map.js")(i,A,p,F,S,M),t("./nodeify.js")(i),t("./promisify.js")(i,S),t("./props.js")(i,A,F,p),t("./race.js")(i,S,F,p),t("./reduce.js")(i,A,p,F,S,M),t("./settle.js")(i,A,M),t("./some.js")(i,A,p),t("./timers.js")(i,S,M),t("./using.js")(i,p,F,I,S,M),t("./any.js")(i),t("./each.js")(i,S),t("./filter.js")(i,S),d.toFastProperties(i),d.toFastProperties(i.prototype),l({a:1}),l({b:2}),l({c:3}),l(1),l(function(){}),l(void 0),l(!1),l(new i(S)),M.setBounds(C.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(t,e,n){e.exports=function(e,n,r,o,i){function a(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function s(t){var r=this._promise=new e(n);t instanceof e&&(r._propagateFrom(t,3),t.suppressUnhandledRejections()),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var l=t("./util");l.isArray;return l.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(n,i){var s=r(this._values,this._promise);if(s instanceof e){s=s._target();var u=s._bitField;if(this._values=s,0==(50397184&u))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,i);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(s._reason()):this._cancel();s=s._value()}if(null===(s=l.asArray(s))){var c=o("expecting an array or an iterable object but got "+l.classString(s)).reason();return void this._promise._rejectCallback(c,!1)}if(0===s.length)return void(-5===i?this._resolveEmptyArray():this._resolve(a(i)));this._iterate(s)},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var o=this._promise,i=!1,a=null,s=0;s<n;++s){var l=r(t[s],o);l instanceof e?(l=l._target(),a=l._bitField):a=null,i?null!==a&&l.suppressUnhandledRejections():null!==a?0==(50397184&a)?(l._proxy(this,s),this._values[s]=l):i=0!=(33554432&a)?this._promiseFulfilled(l._value(),s):0!=(16777216&a)?this._promiseRejected(l._reason(),s):this._promiseCancelled(s):i=this._promiseFulfilled(l,s)}i||o._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e,n){e.exports=function(e,n){function r(t){return!j.test(t)}function o(t){try{return!0===t.__isPromisified__}catch(t){return!1}}function i(t,e,n){var r=h.getDataPropertyOrDefault(t,e+n,b);return!!r&&o(r)}function a(t,e,n){for(var r=0;r<t.length;r+=2){var o=t[r];if(n.test(o))for(var i=o.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===i)throw new g("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",e))}}function s(t,e,n,r){for(var s=h.inheritedDataKeys(t),l=[],u=0;u<s.length;++u){var c=s[u],p=t[c],f=r===C||C(c,p,t);"function"!=typeof p||o(p)||i(t,c,e)||!r(c,p,t,f)||l.push(c,p)}return a(l,e,n),l}function u(t,r,o,i,a,s){function l(){var o=r;r===d&&(o=this);var i=new e(n);i._captureStackTrace();var a="string"==typeof c&&this!==u?this[c]:t,l=v(i,s);try{a.apply(o,_(arguments,l))}catch(t){i._rejectCallback(y(t),!0,!0)}return i._isFateSealed()||i._setAsyncGuaranteed(),i}var u=function(){return this}(),c=t;return"string"==typeof c&&(t=i),h.notEnumerableProp(l,"__isPromisified__",!0),l}function c(t,e,n,r,o){for(var i=new RegExp(k(e)+"$"),a=s(t,e,i,n),l=0,u=a.length;l<u;l+=2){var c=a[l],p=a[l+1],f=c+e;if(r===E)t[f]=E(c,d,c,p,e,o);else{var v=r(p,function(){return E(c,d,c,p,e,o)});h.notEnumerableProp(v,"__isPromisified__",!0),t[f]=v}}return h.toFastProperties(t),t}function p(t,e,n){return E(t,e,void 0,t,null,n)}var f,d={},h=t("./util"),v=t("./nodeback"),_=h.withAppended,y=h.maybeWrapAsError,m=h.canEvaluate,g=t("./errors").TypeError,b={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],j=new RegExp("^(?:"+w.join("|")+")$"),C=function(t){return h.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},E=m?f:u;e.promisify=function(t,e){if("function"!=typeof t)throw new g("expecting a function but got "+h.classString(t));if(o(t))return t;e=Object(e);var n=void 0===e.context?d:e.context,i=!!e.multiArgs,a=p(t,n,i);return h.copyDescriptors(t,a,r),a},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!==(void 0===t?"undefined":l(t)))throw new g("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r="Async");var o=e.filter;"function"!=typeof o&&(o=C);var i=e.promisifier;if("function"!=typeof i&&(i=E),!h.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var a=h.inheritedDataKeys(t),s=0;s<a.length;++s){var u=t[a[s]];"constructor"!==a[s]&&h.isClass(u)&&(c(u.prototype,r,o,i,n),c(u,r,o,i,n))}return c(t,r,o,i,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,n){e.exports=function(e,n,r,o){function i(t){var e,n=!1;if(void 0!==s&&t instanceof s)e=p(t),n=!0;else{var r=c.keys(t),o=r.length;e=new Array(2*o);for(var i=0;i<o;++i){var a=r[i];e[i]=t[a],e[i+o]=a}}this.constructor$(e),this._isMap=n,this._init$(void 0,n?-6:-3)}function a(t){var n,a=r(t);return u(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new i(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):o("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}var s,l=t("./util"),u=l.isObject,c=t("./es5");"function"==typeof Map&&(s=Map);var p=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var o=new Array(2*r.size);return r.forEach(t,o),o}}(),f=function(t){for(var e=new s,n=t.length/2|0,r=0;r<n;++r){var o=t[n+r],i=t[r];e.set(o,i)}return e};l.inherits(i,n),i.prototype._init=function(){},i.prototype._promiseFulfilled=function(t,e){if(this._values[e]=t,++this._totalResolved>=this._length){var n;if(this._isMap)n=f(this._values);else{n={};for(var r=this.length(),o=0,i=this.length();o<i;++o)n[this._values[o+r]]=this._values[o]}return this._resolve(n),!0}return!1},i.prototype.shouldCopyValues=function(){return!1},i.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){function r(t,e,n,r,o){for(var i=0;i<o;++i)n[i+r]=t[i+e],t[i+e]=void 0}function o(t){this._capacity=t,this._length=0,this._front=0}o.prototype._willBeOverCapacity=function(t){return this._capacity<t},o.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1),this[this._front+e&this._capacity-1]=t,this._length=e+1},o.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var o=this._front+r-3;this._checkCapacity(r);var i=this._capacity-1;this[o+0&i]=t,this[o+1&i]=e,this[o+2&i]=n,this._length=r},o.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},o.prototype.length=function(){return this._length},o.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},o.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t,r(this,0,this,e,this._front+this._length&e-1)},e.exports=o},{}],27:[function(t,e,n){e.exports=function(e,n,r,o){function i(t,i){var l=r(t);if(l instanceof e)return s(l);if(null===(t=a.asArray(t)))return o("expecting an array or an iterable object but got "+a.classString(t));var u=new e(n);void 0!==i&&u._propagateFrom(i,3);for(var c=u._fulfill,p=u._reject,f=0,d=t.length;f<d;++f){var h=t[f];(void 0!==h||f in t)&&e.cast(h)._then(c,p,void 0,u,null)}return u}var a=t("./util"),s=function(t){return t.then(function(e){return i(e,t)})};e.race=function(t){return i(t,void 0)},e.prototype.race=function(){return i(this,void 0)}}},{"./util":36}],28:[function(t,e,n){e.exports=function(e,n,r,o,i,a){function s(t,n,r,o){this.constructor$(t);var a=e._getContext();this._fn=f.contextBind(a,n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=o===i?Array(this._length):0===o?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function u(t,e,n,o){return"function"!=typeof e?r("expecting a function but got "+f.classString(e)):new s(t,e,n,o).promise()}function c(t){this.accum=t,this.array._gotAccum(t);var n=o(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(t){var n=this.array,r=n._promise,o=d(n._fn);r._pushContext();var i;(i=void 0!==n._eachValues?o.call(r._boundValue(),t,this.index,this.length):o.call(r._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(n._currentCancellable=i);var s=r._popContext();return a.checkForgottenReturns(i,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),i}var f=t("./util"),d=f.tryCatch;f.inherits(s,n),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&null!==this._eachValues&&t!==i&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return null!==this._eachValues&&this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},s.prototype._iterate=function(t){this._values=t;var n,r,o=t.length;void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n;for(var i=r;i<o;++i){var a=t[i];a instanceof e&&a.suppressUnhandledRejections()}if(!n.isRejected())for(;r<o;++r){var s={accum:null,value:t[r],index:r,length:o,array:this};n=n._then(c,void 0,void 0,s,void 0),0==(127&r)&&n._setNoAsyncGuarantee()}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(l,l,void 0,n,this)},e.prototype.reduce=function(t,e){return u(this,t,e,null)},e.reduce=function(t,e,n,r){return u(t,e,n,r)}}},{"./util":36}],29:[function(t,e,i){var a,s=t("./util"),l=function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")},u=s.getNativePromise();if(s.isNode&&"undefined"==typeof MutationObserver){var c=r.setImmediate,p=n.nextTick;a=s.isRecentNode?function(t){c.call(r,t)}:function(t){p.call(n,t)}}else if("function"==typeof u&&"function"==typeof u.resolve){var f=u.resolve();a=function(t){f.then(t)}}else a="undefined"!=typeof MutationObserver&&("undefined"==typeof window||!window.navigator||!window.navigator.standalone&&!window.cordova)&&"classList"in document.documentElement?function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div");new MutationObserver(function(){t.classList.toggle("foo"),n=!1}).observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}():void 0!==o?function(t){o(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:l;e.exports=a},{"./util":36}],30:[function(t,e,n){e.exports=function(e,n,r){function o(t){this.constructor$(t)}var i=e.PromiseInspection;t("./util").inherits(o,n),o.prototype._promiseResolved=function(t,e){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,e){var n=new i;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},o.prototype._promiseRejected=function(t,e){var n=new i;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},e.allSettled=function(t){return new o(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){e.exports=function(e,n,r){function o(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function i(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var n=new o(t),i=n.promise();return n.setHowMany(e),n.init(),i}var a=t("./util"),s=t("./errors").RangeError,l=t("./errors").AggregateError,u=a.isArray,c={};a.inherits(o,n),o.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},o.prototype.init=function(){this._initialized=!0,this._init()},o.prototype.setUnwrap=function(){this._unwrap=!0},o.prototype.howMany=function(){return this._howMany},o.prototype.setHowMany=function(t){this._howMany=t},o.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},o.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},o.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},o.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new l,e=this.length();e<this._values.length;++e)this._values[e]!==c&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},o.prototype._fulfilled=function(){return this._totalResolved},o.prototype._rejected=function(){return this._values.length-this.length()},o.prototype._addRejected=function(t){this._values.push(t)},o.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},o.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},o.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},o.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return i(t,e)},e.prototype.some=function(t){return i(this,t)},e._SomePromiseArray=o}},{"./errors":12,"./util":36}],32:[function(t,e,n){e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},o=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return i.call(this._target())},t.prototype.isFulfilled=function(){return o.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){e.exports=function(e,n){function r(t,r){if(c(t)){if(t instanceof e)return t;var o=i(t);if(o===u){r&&r._pushContext();var l=e.reject(o.e);return r&&r._popContext(),l}if("function"==typeof o){if(a(t)){var l=new e(n);return t._then(l._fulfill,l._reject,void 0,l,null),l}return s(t,o,r)}}return t}function o(t){return t.then}function i(t){try{return o(t)}catch(t){return u.e=t,u}}function a(t){try{return p.call(t,"_promise0")}catch(t){return!1}}function s(t,r,o){function i(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,p,!0),s=null)}var s=new e(n),c=s;o&&o._pushContext(),s._captureStackTrace(),o&&o._popContext();var p=!0,f=l.tryCatch(r).call(t,i,a);return p=!1,s&&f===u&&(s._rejectCallback(f.e,!0,!0),s=null),c}var l=t("./util"),u=l.errorObj,c=l.isObject,p={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,n){e.exports=function(e,n,r){function o(t){this.handle=t}function i(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),l=e.TimeoutError;o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,i){var a,s;return void 0!==i?(a=e.resolve(i)._then(u,null,null,t,void 0),r.cancellation()&&i instanceof e&&a._setOnCancel(i)):(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new o(s)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return c(t,this)};var p=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new l("operation timed out"):new l(e),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,s,l=new o(setTimeout(function(){n.isPending()&&p(n,e,s)},t));return r.cancellation()?(s=this.then(),n=s._then(i,a,void 0,l,void 0),n._setOnCancel(l)):n=this._then(i,a,void 0,l,void 0),n}}},{"./util":36}],35:[function(t,e,n){e.exports=function(e,n,r,o,i,a){function s(t){setTimeout(function(){throw t},0)}function l(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function o(){if(a>=u)return c._fulfill();var i=l(t[a++]);if(i instanceof e&&i._isDisposable()){try{i=r(i._getDisposer().tryDispose(n),t.promise)}catch(t){return s(t)}if(i instanceof e)return i._then(o,s,null,null,null)}o()}var a=0,u=t.length,c=new e(i);return o(),c}function c(t,e,n){this._data=t,this._promise=e,this._context=n}function p(t,e,n){this.constructor$(t,e,n)}function f(t){return c.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var h=t("./util"),v=t("./errors").TypeError,_=t("./util").inherits,y=h.errorObj,m=h.tryCatch,g={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},c.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==g?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},c.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},_(p,c),p.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return n("you must pass at least 2 arguments to Promise.using");var o=arguments[t-1];if("function"!=typeof o)return n("expecting a function but got "+h.classString(o));var i,s=!0;2===t&&Array.isArray(arguments[0])?(i=arguments[0],t=i.length,s=!1):(i=arguments,t--);for(var l=new d(t),p=0;p<t;++p){var v=i[p];if(c.isDisposer(v)){var _=v;v=v.promise(),v._setDisposable(_)}else{var g=r(v);g instanceof e&&(v=g._then(f,null,null,{resources:l,index:p},void 0))}l[p]=v}for(var b=new Array(l.length),p=0;p<b.length;++p)b[p]=e.resolve(l[p]).reflect();var w=e.all(b).then(function(t){for(var e=0;e<t.length;++e){var n=t[e];if(n.isRejected())return y.e=n.error(),y;if(!n.isFulfilled())return void w.cancel();t[e]=n.value()}j._pushContext(),o=m(o);var r=s?o.apply(void 0,t):o(t),i=j._popContext();return a.checkForgottenReturns(r,i,"Promise.using",j),r}),j=w.lastly(function(){var t=new e.PromiseInspection(w);return u(l,t)});return l.promise=j,j._setOnCancel(l),j},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,o());throw new v}}},{"./errors":12,"./util":36}],36:[function(t,e,o){function i(){try{var t=A;return A=null,t.apply(this,arguments)}catch(t){return F.e=t,F}}function a(t){return A=t,i}function s(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function u(t){return"function"==typeof t||"object"===(void 0===t?"undefined":l(t))&&null!==t}function c(t){return s(t)?new Error(g(t)):t}function p(t,e){var n,r=t.length,o=new Array(r+1);for(n=0;n<r;++n)o[n]=t[n];return o[n]=e,o}function f(t,e,n){if(!T.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function d(t,e,n){if(s(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return T.defineProperty(t,e,r),t}function h(t){throw t}function v(t){try{if("function"==typeof t){var e=T.names(t.prototype),n=T.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),o=L.test(t+"")&&T.names(t).length>0;if(n||r||o)return!0}return!1}catch(t){return!1}}function _(t){function e(){}function n(){return l(r.foo)}e.prototype=t;var r=new e;return n(),n(),t}function y(t){return D.test(t)}function m(t,e,n){for(var r=new Array(t),o=0;o<t;++o)r[o]=e+o+n;return r}function g(t){try{return t+""}catch(t){return"[no string representation]"}}function b(t){return t instanceof Error||null!==t&&"object"===(void 0===t?"undefined":l(t))&&"string"==typeof t.message&&"string"==typeof t.name}function w(t){try{d(t,"isOperational",!0)}catch(t){}}function j(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===t.isOperational)}function C(t){return b(t)&&T.propertyIsWritable(t,"stack")}function k(t){return{}.toString.call(t)}function E(t,e,n){for(var r=T.names(t),o=0;o<r.length;++o){var i=r[o];if(n(i))try{T.defineProperty(e,i,T.getDescriptor(t,i))}catch(t){}}}function x(t){return B?n.env[t]:void 0}function P(){if("function"==typeof Promise)try{if("[object Promise]"===k(new Promise(function(){})))return Promise}catch(t){}}function S(t,e){if(null===t||"function"!=typeof e||e===q)return e;null!==t.domain&&(e=t.domain.bind(e));var n=t.async;if(null!==n){var r=e;e=function(){var t=new Array(2).concat([].slice.call(arguments));return t[0]=r,t[1]=this,n.runInAsyncScope.apply(n,t)}}return e}var T=t("./es5"),O="undefined"==typeof navigator,F={e:{}},A,R="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:void 0!==this?this:null,I=function(t,e){function n(){this.constructor=t,this.constructor$=e;for(var n in e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},M=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(T.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],o=Object.create(null);null!=t&&!e(t);){var i;try{i=n(t)}catch(t){return r}for(var a=0;a<i.length;++a){var s=i[a];if(!o[s]){o[s]=!0;var l=Object.getOwnPropertyDescriptor(t,s);null!=l&&null==l.get&&null==l.set&&r.push(s)}}t=T.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var o=[];t:for(var i in n)if(r.call(n,i))o.push(i);else{for(var a=0;a<t.length;++a)if(r.call(t[a],i))continue t;o.push(i)}return o}}(),L=/this\s*\.\s*\S+\s*=/,D=/^[a-z$_][a-z$_0-9]*$/i,U=function(){return"stack"in new Error?function(t){return C(t)?t:new Error(g(t))}:function(t){if(C(t))return t;try{throw new Error(g(t))}catch(t){return t}}}(),H=function(t){return T.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var N="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};H=function(t){return T.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?N(t):null}}var V=void 0!==n&&"[object process]"===k(n).toLowerCase(),B=void 0!==n&&void 0!==n.env,q,Q={setReflectHandler:function(t){q=t},isClass:v,isIdentifier:y,inheritedDataKeys:M,getDataPropertyOrDefault:f,thrower:h,isArray:T.isArray,asArray:H,notEnumerableProp:d,isPrimitive:s,isObject:u,isError:b,canEvaluate:O,errorObj:F,tryCatch:a,inherits:I,withAppended:p,maybeWrapAsError:c,toFastProperties:_,filledRange:m,toString:g,canAttachTrace:C,ensureErrorObject:U,originatesFromRejection:j,markAsOriginatingFromRejection:w,classString:k,copyDescriptors:E,isNode:V,hasEnvVariables:B,env:x,global:R,getNativePromise:P,contextBind:S};Q.isRecentNode=Q.isNode&&function(){var t;return n.versions&&n.versions.node?t=n.versions.node.split(".").map(Number):n.version&&(t=n.version.split(".").map(Number)),0===t[0]&&t[1]>10||t[0]>0}(),Q.nodeSupportsAsyncResource=Q.isNode&&function(){var e=!1;try{var n=t("async_hooks").AsyncResource;e="function"==typeof n.prototype.runInAsyncScope}catch(t){e=!1}return e}(),Q.isNode&&Q.toFastProperties(n);try{throw new Error}catch(t){Q.lastLineError=t}e.exports=Q},{"./es5":13,async_hooks:void 0}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(e,n(17),n(4),n(66).setImmediate)},32:function(t,e,n){"use strict";var r=n(74),o=window.localStorage;t.exports=Object.freeze({get:function(t){return JSON.parse(o.getItem(r(t))||null)},set:function(t,e){return o.setItem(r(t),JSON.stringify(e))}})},33:function(t,e,n){"use strict";var r=n(12),o=n(19);t.exports=function(t,e,n){var i=r(t).filter(function(t){return t.assessmentId!==e});o(t,i.concat(n))}},355:function(t,e,n){"use strict";var r=n(865);t.exports=function(t,e,n){if(n._embedded.feedbackQuestions){var o=window.WarpJS.modal(t,n._embedded.feedbackQuestions[0].id,n._embedded.feedbackQuestions[0].name,[{label:"Close"}]);t("> .modal-dialog > .modal-content > .modal-body",o).html(r({res:n})),o.modal("show")}}},366:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(a=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=(a=null!=e?s(e,"page"):e)?s(a,"_embedded"):a)?s(a,"items"):a)?s(a,"length"):a,{name:"if",hash:{},fn:t.program(2,o,0,i),inverse:t.program(13,o,0,i),data:o,blockParams:i,loc:{start:{line:2,column:2},end:{line:79,column:9}}}))?a:""},2:function(t,e,n,r,o,i){var a,s=t.lambda,l=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="container survey-tool-section"\n      data-survey-tool-url="'+l(s(null!=(a=null!=(a=null!=(a=null!=e?u(e,"page"):e)?u(a,"_links"):a)?u(a,"self"):a)?u(a,"href"):a,e))+'"\n      data-survey-tool-assessment-template-url="'+l(s(null!=(a=null!=(a=null!=(a=null!=e?u(e,"page"):e)?u(a,"_links"):a)?u(a,"assessmentTemplate"):a)?u(a,"href"):a,e))+'"\n      >\n'+(null!=(a=u(n,"each").call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?u(e,"page"):e)?u(a,"_embedded"):a)?u(a,"items"):a,{name:"each",hash:{},fn:t.program(3,o,1,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:7,column:6},end:{line:75,column:15}}}))?a:"")+"    </div>\n"},3:function(t,e,n,r,o,i){var a,s=t.lambda,l=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <div class="container-fluid survey-tool-item"\n          data-survey-tool-name="'+l(s(null!=(a=i[0][0])?c(a,"name"):a,e))+'"\n          data-survey-tool-survey-id="'+l(s(null!=(a=i[0][0])?c(a,"id"):a,e))+'"\n        >\n          <div class="row">\n            <div class="col-xs-12 survey-tool-item-name">\n              '+l(s(null!=(a=i[0][0])?c(a,"name"):a,e))+'\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-xs-12">\n              <div class="blue-button-container feedback-toggle-container">\n                <button class="user-feedback-toggle blue-button">Hide User Feedback</button>\n                <select class="select-detail-level">\n                  <option value="detail-level-3">Show only dimensions visible on level 3</option>\n                  <option value="detail-level-2">Show only dimensions visible on level 2</option>\n                  <option value="detail-level-1">Show only dimensions visible on level 1</option>\n                </select>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-xs-12">\n              <div class="table-result-label">\n                Results for "'+l(s(null!=(a=i[0][0])?c(a,"name"):a,e))+'"\n              </div>\n              <div class="table-question-label">\n                Relevant if the following dimension is high <span class="relevance-high glyphicon glyphicon-arrow-up"></span> or low <span class="relevance-low glyphicon glyphicon-arrow-down"></span>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-xs-12">\n              <div class="results-container" data-detail-level="detail-level-3">\n                <div class="results">\n                  <table class="feedback">\n'+(null!=(a=c(n,"each").call(u,null!=(a=null!=(a=i[0][0])?c(a,"_embedded"):a)?c(a,"results"):a,{name:"each",hash:{},fn:t.program(4,o,1,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:44,column:20},end:{line:67,column:29}}}))?a:"")+"                  </table>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n        "+(null!=(a=c(n,"unless").call(u,o&&c(o,"last"),{name:"unless",hash:{},fn:t.program(11,o,0,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:74,column:8},end:{line:74,column:40}}}))?a:"")+"\n"},4:function(t,e,n,r,o,i){var a,s=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                      <tr>\n                        <td class="headcol">\n                          '+t.escapeExpression(t.lambda(null!=(a=i[0][0])?l(a,"name"):a,e))+'\n                          <div class="thumb-container">\n'+(null!=(a=l(n,"if").call(s,null!=(a=i[0][0])?l(a,"ThumbsUp"):a,{name:"if",hash:{},fn:t.program(5,o,0,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:49,column:28},end:{line:54,column:35}}}))?a:"")+(null!=(a=l(n,"if").call(s,null!=(a=i[0][0])?l(a,"ThumbsDown"):a,{name:"if",hash:{},fn:t.program(7,o,0,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:55,column:28},end:{line:60,column:35}}}))?a:"")+"                          </div>\n                        </td>\n"+(null!=(a=l(n,"each").call(s,null!=(a=null!=(a=i[0][0])?l(a,"_embedded"):a)?l(a,"relevantQuestions"):a,{name:"each",hash:{},fn:t.program(9,o,1,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:63,column:24},end:{line:65,column:33}}}))?a:"")+"                      </tr>\n"},5:function(t,e,n,r,o,i){var a,s=t.lambda,l=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                              <button class="thumb thumbsup" data-warpjs-url="'+l(s(null!=(a=null!=(a=null!=(a=i[1][0])?u(a,"_links"):a)?u(a,"thumbsup"):a)?u(a,"href"):a,e))+'">\n                                '+l(s(null!=(a=i[1][0])?u(a,"ThumbsUp"):a,e))+'\n                                <span class="glyphicon glyphicon-thumbs-up"></span>\n                              </button>\n'},7:function(t,e,n,r,o,i){var a,s=t.lambda,l=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                              <button class="thumb thumbsdown" data-warpjs-url="'+l(s(null!=(a=null!=(a=null!=(a=i[1][0])?u(a,"_links"):a)?u(a,"thumbsdown"):a)?u(a,"href"):a,e))+'">\n                                '+l(s(null!=(a=i[1][0])?u(a,"ThumbsDown"):a,e))+'\n                                <span class="glyphicon glyphicon-thumbs-down"></span>\n                              </button>\n'},9:function(t,e,r,o,i,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(s=t.invokePartial(n(866),e,{name:"question-card",hash:{resultId:null!=(s=a[1][0])?l(s,"id"):s,card:a[0][0]},data:i,blockParams:a,indent:"                          ",helpers:r,partials:o,decorators:t.decorators}))?s:""},11:function(t,e,n,r,o){return"<hr>"},13:function(t,e,n,r,o){return"    TODO: NO surveys available.\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(a=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"detailedEnabled"):e,{name:"if",hash:{},fn:t.program(1,o,0,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:1,column:0},end:{line:80,column:7}}}))?a:""},usePartial:!0,useData:!0,useBlockParams:!0})},37:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},l.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}e.__esModule=!0,e.HandlebarsEnvironment=o;var i=n(3),a=n(6),s=r(a),l=n(38),u=n(95),c=n(40),p=r(c),f=n(39);e.VERSION="4.7.7";e.COMPILER_REVISION=8;e.LAST_COMPATIBLE_COMPILER_REVISION=7;var d={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};e.REVISION_CHANGES=d;o.prototype={constructor:o,logger:p.default,log:p.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new s.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){f.resetLoggedProperties()}};var h=p.default.log;e.log=h,e.createFrame=i.createFrame,e.logger=p.default},38:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){s.default(t),u.default(t),p.default(t),d.default(t),v.default(t),y.default(t),g.default(t)}function i(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])}e.__esModule=!0,e.registerDefaultHelpers=o,e.moveHelperToHooks=i;var a=n(97),s=r(a),l=n(98),u=r(l),c=n(99),p=r(c),f=n(100),d=r(f),h=n(101),v=r(h),_=n(102),y=r(_),m=n(103),g=r(m)},383:function(t,e,n){"use strict";var r=n(31),o=n(44),i=n(30),a=n(366),s=n(355);!function(t){t(document).ready(function(){var e=window.WarpJS.toast.loading(t,"Page is loading"),n=i.preRender(t);return r.resolve().then(function(){return window.WarpJS.getCurrentPageHAL(t)}).then(function(e){if(e.error)i.setSurveyContent(t,n,o(e.data));else{var r=a({page:e.data,detailedEnabled:null!==e.data.warpjsUser});i.setSurveyContent(t,n,r)}i.postRender(t,e.data)}).then(function(){n.on("click",".thumb",function(e){r.resolve().then(function(){return window.WarpJS.toast.loading(t,"Loading data...","Loading")}).then(function(n){return r.resolve().then(function(){return window.WarpJS.proxy.get(t,t(e.currentTarget).data("warpjsUrl"))}).then(function(n){return s(t,e.currentTarget,n)}).catch(function(e){console.error("Error:",e),window.WarpJS.toast.error(t,e.message,"Error getting data")}).finally(function(){return window.WarpJS.toast.close(t,n)})})}),n.on("click",".user-feedback-toggle",function(e){t(".results-container").toggleClass("hide-feedback")}),n.on("change",".select-detail-level",function(e){var n=t(e.target).val();t(".results-container").attr("data-detail-level",n)})}).finally(function(){return window.WarpJS.toast.close(t,e)})})}(jQuery)},39:function(t,e,n){"use strict";function r(t){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:l.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:l.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}}function o(t,e,n){return"function"==typeof t?i(e.methods,n):i(e.properties,n)}function i(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(a(e),!1)}function a(t){!0!==p[t]&&(p[t]=!0,c.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}function s(){Object.keys(p).forEach(function(t){delete p[t]})}e.__esModule=!0,e.createProtoAccessControl=r,e.resultIsAllowed=o,e.resetLoggedProperties=s;var l=n(104),u=n(40),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(u),p=Object.create(null)},4:function(t,e,n){"use strict";var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(r=window)}t.exports=r},40:function(t,e,n){"use strict";e.__esModule=!0;var r=n(3),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(o.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=o.lookupLevel(t),"undefined"!=typeof console&&o.lookupLevel(o.level)<=t){var e=o.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console[e].apply(console,r)}}};e.default=o,t.exports=e.default},41:function(t,e,n){"use strict";function r(t){if(!(0,i.default)(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}Object.defineProperty(e,"__esModule",{value:!0});var o=n(15),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r},42:function(t,e,n){"use strict";function r(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o,i=new Uint8Array(16)},43:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0,e.default=function(t,e,n){function r(t,r,i,s){if("string"==typeof t&&(t=o(t)),"string"==typeof r&&(r=(0,l.default)(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+t.length);if(u.set(r),u.set(t,r.length),u=n(u),u[6]=15&u[6]|e,u[8]=63&u[8]|128,i){s=s||0;for(var c=0;c<16;++c)i[s+c]=u[c];return i}return(0,a.default)(u)}try{r.name=t}catch(t){}return r.DNS=u,r.URL=c,r};var i=n(14),a=r(i),s=n(41),l=r(s),u=e.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",c=e.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},44:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="bg-danger text-danger">'+t.escapeExpression((i=null!=(i=a(n,"message")||(null!=e?a(e,"message"):e))?i:t.hooks.helperMissing,"function"==typeof i?i.call(null!=e?e:t.nullContext||{},{name:"message",hash:{},data:o,loc:{start:{line:1,column:35},end:{line:1,column:46}}}):i))+"</div>\n"},useData:!0})},57:function(t,e,n){"use strict";var r=n(77),o=n(20),i=n(79);t.exports=Object.freeze({classByKey:r,isIPT:function(t){return!o(t)},isMM:o,titleByKey:i})},58:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(119);Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r(o).default}});var i=n(120);Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r(i).default}});var a=n(121);Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r(a).default}});var s=n(122);Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return r(s).default}});var l=n(116);Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return r(l).default}});var u=n(123);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r(u).default}});var c=n(15);Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return r(c).default}});var p=n(14);Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r(p).default}});var f=n(41);Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r(f).default}})},6:function(t,e,n){"use strict";function r(t,e){var n=e&&e.loc,i=void 0,a=void 0,s=void 0,l=void 0;n&&(i=n.start.line,a=n.end.line,s=n.start.column,l=n.end.column,t+=" - "+i+":"+s);for(var u=Error.prototype.constructor.call(this,t),c=0;c<o.length;c++)this[o[c]]=u[o[c]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{n&&(this.lineNumber=i,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=s,this.endColumn=l))}catch(t){}}e.__esModule=!0;var o=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];r.prototype=new Error,e.default=r,t.exports=e.default},66:function(t,e,n){"use strict";(function(t){function r(t,e){this._id=t,this._clearFn=e}var o=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(114),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||void 0}).call(e,n(4))},67:function(t,e,n){"use strict";var r=n(7),o=n(57),i=o.classByKey,a=o.titleByKey;t.exports=function(t,e){var n=t("#warpjs-content-placeholder"),o=e._links.projectEmail?e._links.projectEmail.href:"";r.setCurrent(t,r.KEYS.USER,e.warpjsUser),r.setCurrent(t,r.KEYS.URL,e._links.self.href),r.setCurrent(t,r.KEYS.ASSESSMENT_TEMPLATE_URL,e._links.assessmentTemplate.href),r.setCurrent(t,r.KEYS.DEFAULT_SURVEY_ID,e.defaultSurveyId),r.setCurrent(t,r.KEYS.SURVEY_ID,e.surveyId),r.setCurrent(t,r.KEYS.ASSESSMENT_ID,e.assessmentId),r.setCurrent(t,r.KEYS.PROJECT_EMAIL_URL,o),t('.spider-button[data-toggle="tooltip"]',n).tooltip({trigger:"hover"}),t('.copyright[data-toggle="tooltip"], .copyright-mm[data-toggle="tooltip"]',n).tooltip({container:"body",trigger:"click"});var s=e._embedded.questionnaires&&e._embedded.questionnaires[0].key?e._embedded.questionnaires[0].key:null;if(s){var l=i(s);t(".survey-tool").addClass(l),t(".survey-tool."+l+" .survey-type-"+l+" h2").text(a(s)),"ai"!==s&&(t(".warpjs-home-link").attr("href",e._links.warpjsHomepage.href),t(".logo").addClass("logo-show"))}t(document).on("click",'.closed[data-toggle="tooltip"]',function(e){t(e.target).removeClass("closed"),t(e.target).addClass("open"),t(e.target).tooltip("open")}),t(document).on("click",'.open[data-toggle="tooltip"]',function(e){t(e.target).removeClass("open"),t(e.target).addClass("closed"),t(e.target).tooltip("close")}),t(document).on("click",".close-copyright",function(){t('[data-toggle="tooltip"]').tooltip("hide")})}},68:function(t,e,n){"use strict";var r=n(128);t.exports=function(t){var e=t("#warpjs-content-placeholder");return e.html(r()),t(".survey-tool").length&&t("#warpjs-top-banner").addClass("survey-tool-banner"),e}},69:function(t,e,n){"use strict";t.exports=function(t,e,n){t(".ipt-body",e).html(n)}},7:function(t,e,n){"use strict";var r=n(70);t.exports=Object.freeze({createAssessment:n(71),getAssessment:n(72),getAssessments:n(12),getCurrent:n(73),removeAssessment:n(75),setAssessments:n(19),setCurrent:n(76),updateAssessment:n(33),KEYS:r.KEYS})},70:function(t,e,n){"use strict";t.exports=Object.freeze({KEYS:Object.freeze({ASSESSMENT_ID:"assessmentId",ASSESSMENT_TEMPLATE_URL:"surveyToolAssessmentTemplateUrl",CUSTOM_MESSAGES:"customMessages",DEFAULT_ANSWERS:"defaultAnswers",DEFAULT_SURVEY_ID:"surveyToolDefaultSurveyId",PROJECT_EMAIL_URL:"surveyToolProjectEmail",QUESTIONNAIRES:"surveyToolQuestionnaires",SURVEY_ID:"surveyId",URL:"surveyToolUrl",USER:"warpjsUser"})})},71:function(t,e,n){"use strict";var r=n(58),o=r.v4,i=n(33);t.exports=function(t,e){var n=o(),r=e.generateDefaultAssessment(o,n);return i(t,n,r),n}},72:function(t,e,n){"use strict";var r=n(12);t.exports=function(t,e){return r(t).find(function(t){return t.assessmentId===e})}},73:function(t,e,n){"use strict";t.exports=function(t,e){return t("#warpjs-content-placeholder").data(e)}},74:function(t,e,n){"use strict";t.exports=function(t){return"warpjs-survey-tool-plugin-"+t}},75:function(t,e,n){"use strict";var r=n(12),o=n(19);t.exports=function(t,e){var n=r(t).filter(function(t){return t.assessmentId!==e});o(t,n)}},76:function(t,e,n){"use strict";t.exports=function(t,e,n){t("#warpjs-content-placeholder").data(e,n)}},77:function(t,e,n){"use strict";var r=n(20);t.exports=function(t){return r(t)?"mm":"ai"===t?"ai":"ipt"}},78:function(t,e,n){"use strict";t.exports=function(t){return t.startsWith("mm:")?t.slice(3).trim():t.startsWith("ipt:")?t.slice(4).trim():null}},79:function(t,e,n){"use strict";var r=n(29),o=r.TITLES,i=n(20),a=n(78);t.exports=function(t){return a(t)||(i(t)?o.MM:"ai"===t?o.AI:o.IPT)}},865:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"      <h2>"+t.escapeExpression(t.lambda(null!=(a=null!=(a=null!=(a=null!=(a=null!=e?s(e,"res"):e)?s(a,"_embedded"):a)?s(a,"feedbackQuestions"):a)?s(a,"0"):a)?s(a,"name"):a,e))+"</h2>\n"+(null!=(a=s(n,"each").call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=(a=null!=(a=null!=(a=null!=e?s(e,"res"):e)?s(a,"_embedded"):a)?s(a,"feedbackQuestions"):a)?s(a,"0"):a)?s(a,"_embedded"):a)?s(a,"feedbacks"):a,{name:"each",hash:{},fn:t.program(2,o,1,i),inverse:t.noop,data:o,blockParams:i,loc:{start:{line:5,column:6},end:{line:10,column:15}}}))?a:"")},2:function(t,e,n,r,o,i){var a,s=t.lambda,l=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <div>\n          <p class="feedback-date">'+l(s(null!=(a=i[0][0])?u(a,"date"):a,e))+'</p>\n          <p class="feeback-comment">'+l(s(null!=(a=i[0][0])?u(a,"comment"):a,e))+"</p>\n        </div>\n"},4:function(t,e,n,r,o){return"      <p>no questions</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="row">\n  <div class="col-sm-12 warpjs-list-container">\n'+(null!=(a=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?s(e,"res"):e)?s(a,"_embedded"):a)?s(a,"feedbackQuestions"):a,{name:"if",hash:{},fn:t.program(1,o,0,i),inverse:t.program(4,o,0,i),data:o,blockParams:i,loc:{start:{line:3,column:4},end:{line:13,column:11}}}))?a:"")+"  </div>\n</div>\n"},useData:!0,useBlockParams:!0})},866:function(t,e,n){var r=n(0);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i,a=t.lambda,s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <button class="thumb thumbsup" data-warpjs-url="'+s(a(null!=(i=null!=(i=null!=(i=null!=e?l(e,"card"):e)?l(i,"_links"):i)?l(i,"thumbsup"):i)?l(i,"href"):i,e))+'">\n          '+s(a(null!=(i=null!=e?l(e,"card"):e)?l(i,"ThumbsUp"):i,e))+'\n          <span class="glyphicon glyphicon-thumbs-up"></span>\n        </button>\n'},3:function(t,e,n,r,o){var i,a=t.lambda,s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <button class="thumb thumbsdown" data-warpjs-url="'+s(a(null!=(i=null!=(i=null!=(i=null!=e?l(e,"card"):e)?l(i,"_links"):i)?l(i,"thumbsdown"):i)?l(i,"href"):i,e))+'">\n          '+s(a(null!=(i=null!=e?l(e,"card"):e)?l(i,"ThumbsDown"):i,e))+'\n          <span class="glyphicon glyphicon-thumbs-down"></span>\n        </button>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i,a=t.lambda,s=t.escapeExpression,l=null!=e?e:t.nullContext||{},u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<td class="long detail-level-'+s(a(null!=(i=null!=e?u(e,"card"):e)?u(i,"detailLevel"):i,e))+'">\n  <div class="card bg-'+s(a(null!=(i=null!=e?u(e,"card"):e)?u(i,"commentResult"):i,e))+'">\n    <p>'+s(a(null!=(i=null!=e?u(e,"card"):e)?u(i,"name"):i,e))+'</p>\n    <div class="thumb-container">\n'+(null!=(i=u(n,"if").call(l,null!=(i=null!=e?u(e,"card"):e)?u(i,"ThumbsUp"):i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:5,column:6},end:{line:10,column:13}}}))?i:"")+(null!=(i=u(n,"if").call(l,null!=(i=null!=e?u(e,"card"):e)?u(i,"ThumbsDown"):i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o,loc:{start:{line:11,column:6},end:{line:16,column:13}}}))?i:"")+'      <div class="relevance '+s(a(null!=(i=null!=e?u(e,"card"):e)?u(i,"relevance"):i,e))+'">\n        <span class="relevance-high glyphicon glyphicon-arrow-up"></span>\n        <span class="relevance-low glyphicon glyphicon-arrow-down"></span>\n      </div>\n    </div>\n  </div>\n</td>'},useData:!0})},94:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(){var t=new s.HandlebarsEnvironment;return d.extend(t,s),t.SafeString=u.default,t.Exception=p.default,t.Utils=d,t.escapeExpression=d.escapeExpression,t.VM=v,t.template=function(e){return v.template(e,t)},t}e.__esModule=!0;var a=n(37),s=o(a),l=n(108),u=r(l),c=n(6),p=r(c),f=n(3),d=o(f),h=n(107),v=o(h),_=n(106),y=r(_),m=i();m.create=i,y.default(m),m.default=m,e.default=m,t.exports=e.default},95:function(t,e,n){"use strict";function r(t){i.default(t)}e.__esModule=!0,e.registerDefaultDecorators=r;var o=n(96),i=function(t){return t&&t.__esModule?t:{default:t}}(o)},96:function(t,e,n){"use strict";e.__esModule=!0;var r=n(3);e.default=function(t){t.registerDecorator("inline",function(t,e,n,o){var i=t;return e.partials||(e.partials={},i=function(o,i){var a=n.partials;n.partials=r.extend({},a,e.partials);var s=t(o,i);return n.partials=a,s}),e.partials[o.args[0]]=o.fn,i})},t.exports=e.default},97:function(t,e,n){"use strict";e.__esModule=!0;var r=n(3);e.default=function(t){t.registerHelper("blockHelperMissing",function(e,n){var o=n.inverse,i=n.fn;if(!0===e)return i(this);if(!1===e||null==e)return o(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(e,n)})},t.exports=e.default},98:function(t,e,n){"use strict";(function(r){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var i=n(3),a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a);e.default=function(t){t.registerHelper("each",function(t,e){function n(e,n,r){p&&(p.key=e,p.index=n,p.first=0===n,p.last=!!r,f&&(p.contextPath=f+e)),c+=a(t[e],{data:p,blockParams:i.blockParams([t[e],e],[f+e,null])})}if(!e)throw new s.default("Must pass iterator to #each");var a=e.fn,l=e.inverse,u=0,c="",p=void 0,f=void 0;if(e.data&&e.ids&&(f=i.appendContextPath(e.data.contextPath,e.ids[0])+"."),i.isFunction(t)&&(t=t.call(this)),e.data&&(p=i.createFrame(e.data)),t&&"object"===(void 0===t?"undefined":o(t)))if(i.isArray(t))for(var d=t.length;u<d;u++)u in t&&n(u,u,u===t.length-1);else if(r.Symbol&&t[r.Symbol.iterator]){for(var h=[],v=t[r.Symbol.iterator](),_=v.next();!_.done;_=v.next())h.push(_.value);t=h;for(var d=t.length;u<d;u++)n(u,u,u===t.length-1)}else!function(){var e=void 0;Object.keys(t).forEach(function(t){void 0!==e&&n(e,u-1),e=t,u++}),void 0!==e&&n(e,u-1,!0)}();return 0===u&&(c=l(this)),c})},t.exports=e.default}).call(e,n(4))},99:function(t,e,n){"use strict";e.__esModule=!0;var r=n(6),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default}});