@knapsack/app
Version:
Build Design Systems on top of knapsack, by Basalt
2 lines • 20.4 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~main~033841df"],{"../packages/core/node_modules/handlebars/dist/cjs/handlebars.js":function(e,t,r){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars.runtime.js")),s=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js")),o=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js"),n=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js"),i=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js")),l=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js")),p=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js")),c=a.default.create;function create(){var e=c();return e.compile=function(t,r){return n.compile(t,r,e)},e.precompile=function(t,r){return n.precompile(t,r,e)},e.AST=s.default,e.Compiler=n.Compiler,e.JavaScriptCompiler=i.default,e.Parser=o.parser,e.parse=o.parse,e.parseWithoutProcessing=o.parseWithoutProcessing,e}var u=create();u.create=create,p.default(u),u.Visitor=l.default,u.default=u,t.default=u,e.exports=t.default},"../packages/core/node_modules/handlebars/dist/cjs/handlebars.runtime.js":function(e,t,r){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}t.__esModule=!0;var a=_interopRequireWildcard(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/base.js")),s=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/safe-string.js")),o=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/exception.js")),n=_interopRequireWildcard(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/utils.js")),i=_interopRequireWildcard(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/runtime.js")),l=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js"));function create(){var e=new a.HandlebarsEnvironment;return n.extend(e,a),e.SafeString=s.default,e.Exception=o.default,e.Utils=n,e.escapeExpression=n.escapeExpression,e.VM=i,e.template=function(t){return i.template(t,e)},e}var p=create();p.create=create,l.default(p),p.default=p,t.default=p,e.exports=t.default},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/base.js":function(e,t,r){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=HandlebarsEnvironment;var a=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/utils.js"),s=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/exception.js")),o=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/helpers.js"),n=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/decorators.js"),i=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/logger.js")),l=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js");t.VERSION="4.7.3";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function HandlebarsEnvironment(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},o.registerDefaultHelpers(this),n.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:i.default,log:i.default.log,registerHelper:function registerHelper(e,t){if("[object Object]"===a.toString.call(e)){if(t)throw new s.default("Arg not supported with multiple helpers");a.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function unregisterHelper(e){delete this.helpers[e]},registerPartial:function registerPartial(e,t){if("[object Object]"===a.toString.call(e))a.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function unregisterPartial(e){delete this.partials[e]},registerDecorator:function registerDecorator(e,t){if("[object Object]"===a.toString.call(e)){if(t)throw new s.default("Arg not supported with multiple decorators");a.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function unregisterDecorator(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function resetLoggedPropertyAccesses(){l.resetLoggedProperties()}};var p=i.default.log;t.log=p,t.createFrame=a.createFrame,t.logger=i.default},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js":function(e,t,r){t.__esModule=!0;var a={helpers:{helperExpression:function helperExpression(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function scopedId(e){return/^\.|this\b/.test(e.original)},simpleId:function simpleId(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js":function(e,t,r){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=parseWithoutProcessing,t.parse=function parse(e,t){var r=parseWithoutProcessing(e,t);return new s.default(t).accept(r)};var a=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js")),s=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js")),o=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js")),n=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/utils.js");t.parser=a.default;var i={};function parseWithoutProcessing(e,t){return"Program"===e.type?e:(a.default.yy=i,i.locInfo=function(e){return new i.SourceLocation(t&&t.srcName,e)},a.default.parse(e))}n.extend(i,o)},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js":function(e,t,r){t.__esModule=!0;var a=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/utils.js"),s=void 0;try{}catch(e){}function castChunk(e,t,r){if(a.isArray(e)){for(var s=[],o=0,n=e.length;o<n;o++)s.push(t.wrap(e[o],r));return s}return"boolean"==typeof e||"number"==typeof e?e+"":e}function CodeGen(e){this.srcFile=e,this.source=[]}s||((s=function(e,t,r,a){this.src="",a&&this.add(a)}).prototype={add:function add(e){a.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function prepend(e){a.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function toStringWithSourceMap(){return{code:this.toString()}},toString:function toString(){return this.src}}),CodeGen.prototype={isEmpty:function isEmpty(){return!this.source.length},prepend:function prepend(e,t){this.source.unshift(this.wrap(e,t))},push:function push(e,t){this.source.push(this.wrap(e,t))},merge:function merge(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function each(e){for(var t=0,r=this.source.length;t<r;t++)e(this.source[t])},empty:function empty(){var e=this.currentLocation||{start:{}};return new s(e.start.line,e.start.column,this.srcFile)},wrap:function wrap(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof s?e:(e=castChunk(e,this,t),new s(t.start.line,t.start.column,this.srcFile,e))},functionCall:function functionCall(e,t,r){return r=this.generateList(r),this.wrap([e,t?"."+t+"(":"(",r,")"])},quotedString:function quotedString(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function objectLiteral(e){var t=this,r=[];Object.keys(e).forEach((function(a){var s=castChunk(e[a],t);"undefined"!==s&&r.push([t.quotedString(a),":",s])}));var a=this.generateList(r);return a.prepend("{"),a.add("}"),a},generateList:function generateList(e){for(var t=this.empty(),r=0,a=e.length;r<a;r++)r&&t.add(","),t.add(castChunk(e[r],this));return t},generateArray:function generateArray(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=CodeGen,e.exports=t.default},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js":function(e,t,r){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Compiler=Compiler,t.precompile=function precompile(e,t,r){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0);t.compat&&(t.useDepths=!0);var s=r.parse(e,t),o=(new r.Compiler).compile(s,t);return(new r.JavaScriptCompiler).compile(o,t)},t.compile=function compile(e,t,r){void 0===t&&(t={});if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0);t.compat&&(t.useDepths=!0);var o=void 0;function compileInput(){var a=r.parse(e,t),s=(new r.Compiler).compile(a,t),o=(new r.JavaScriptCompiler).compile(s,t,void 0,!0);return r.template(o)}function ret(e,t){return o||(o=compileInput()),o.call(this,e,t)}return ret._setup=function(e){return o||(o=compileInput()),o._setup(e)},ret._child=function(e,t,r,a){return o||(o=compileInput()),o._child(e,t,r,a)},ret};var a=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/exception.js")),s=r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/utils.js"),o=_interopRequireDefault(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js")),n=[].slice;function Compiler(){}function argEquals(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!argEquals(e[r],t[r]))return!1;return!0}}function transformLiteralToPath(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}Compiler.prototype={compiler:Compiler,equals:function equals(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var r=0;r<t;r++){var a=this.opcodes[r],s=e.opcodes[r];if(a.opcode!==s.opcode||!argEquals(a.args,s.args))return!1}t=this.children.length;for(r=0;r<t;r++)if(!this.children[r].equals(e.children[r]))return!1;return!0},guid:0,compile:function compile(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function compileProgram(e){var t=(new this.compiler).compile(e,this.options),r=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[r]=t,this.useDepths=this.useDepths||t.useDepths,r},accept:function accept(e){if(!this[e.type])throw new a.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function Program(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,r=t.length,a=0;a<r;a++)this.accept(t[a]);return this.options.blockParams.shift(),this.isSimple=1===r,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function BlockStatement(e){transformLiteralToPath(e);var t=e.program,r=e.inverse;t=t&&this.compileProgram(t),r=r&&this.compileProgram(r);var a=this.classifySexpr(e);"helper"===a?this.helperSexpr(e,t,r):"simple"===a?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,r),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function DecoratorBlock(e){var t=e.program&&this.compileProgram(e.program),r=this.setupFullMustacheParams(e,t,void 0),a=e.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,a.original)},PartialStatement:function PartialStatement(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var r=e.params;if(r.length>1)throw new a.default("Unsupported number of partial arguments: "+r.length,e);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var s=e.name.original,o="SubExpression"===e.name.type;o&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var n=e.indent||"";this.options.preventIndent&&n&&(this.opcode("appendContent",n),n=""),this.opcode("invokePartial",o,s,n),this.opcode("append")},PartialBlockStatement:function PartialBlockStatement(e){this.PartialStatement(e)},MustacheStatement:function MustacheStatement(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function Decorator(e){this.DecoratorBlock(e)},ContentStatement:function ContentStatement(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function CommentStatement(){},SubExpression:function SubExpression(e){transformLiteralToPath(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function ambiguousSexpr(e,t,r){var a=e.path,s=a.parts[0],o=null!=t||null!=r;this.opcode("getContext",a.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",r),a.strict=!0,this.accept(a),this.opcode("invokeAmbiguous",s,o)},simpleSexpr:function simpleSexpr(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function helperSexpr(e,t,r){var s=this.setupFullMustacheParams(e,t,r),n=e.path,i=n.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",s.length,i);else{if(this.options.knownHelpersOnly)throw new a.default("You specified knownHelpersOnly, but used the unknown helper "+i,e);n.strict=!0,n.falsy=!0,this.accept(n),this.opcode("invokeHelper",s.length,n.original,o.default.helpers.simpleId(n))}},PathExpression:function PathExpression(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],r=o.default.helpers.scopedId(e),a=!e.depth&&!r&&this.blockParamIndex(t);a?this.opcode("lookupBlockParam",a,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,r):this.opcode("pushContext")},StringLiteral:function StringLiteral(e){this.opcode("pushString",e.value)},NumberLiteral:function NumberLiteral(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function BooleanLiteral(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function UndefinedLiteral(){this.opcode("pushLiteral","undefined")},NullLiteral:function NullLiteral(){this.opcode("pushLiteral","null")},Hash:function Hash(e){var t=e.pairs,r=0,a=t.length;for(this.opcode("pushHash");r<a;r++)this.pushParam(t[r].value);for(;r--;)this.opcode("assignToHash",t[r].key);this.opcode("popHash")},opcode:function opcode(e){this.opcodes.push({opcode:e,args:n.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function addDepth(e){e&&(this.useDepths=!0)},classifySexpr:function classifySexpr(e){var t=o.default.helpers.simpleId(e.path),r=t&&!!this.blockParamIndex(e.path.parts[0]),a=!r&&o.default.helpers.helperExpression(e),s=!r&&(a||t);if(s&&!a){var n=e.path.parts[0],i=this.options;i.knownHelpers[n]?a=!0:i.knownHelpersOnly&&(s=!1)}return a?"helper":s?"ambiguous":"simple"},pushParams:function pushParams(e){for(var t=0,r=e.length;t<r;t++)this.pushParam(e[t])},pushParam:function pushParam(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var r=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(r=this.blockParamIndex(e.parts[0])),r){var a=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,a)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function setupFullMustacheParams(e,t,r,a){var s=e.params;return this.pushParams(s),this.opcode("pushProgram",t),this.opcode("pushProgram",r),e.hash?this.accept(e.hash):this.opcode("emptyHash",a),s},blockParamIndex:function blockParamIndex(e){for(var t=0,r=this.options.blockParams.length;t<r;t++){var a=this.options.blockParams[t],o=a&&s.indexOf(a,e);if(a&&o>=0)return[t,o]}}}},"../packages/core/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js":function(e,t,r){t.__esModule=!0,t.SourceLocation=function SourceLocation(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function id(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function stripFlags(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function stripComment(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function preparePath(e,t,r){r=this.locInfo(r);for(var s=e?"@":"",o=[],n=0,i=0,l=t.length;i<l;i++){var p=t[i].part,c=t[i].original!==p;if(s+=(t[i].separator||"")+p,c||".."!==p&&"."!==p&&"this"!==p)o.push(p);else{if(o.length>0)throw new a.default("Invalid path: "+s,{loc:r});".."===p&&n++}}return{type:"PathExpression",data:e,depth:n,parts:o,original:s,loc:r}},t.prepareMustache=function prepareMustache(e,t,r,a,s,o){var n=a.charAt(3)||a.charAt(2),i="{"!==n&&"&"!==n;return{type:/\*/.test(a)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:i,strip:s,loc:this.locInfo(o)}},t.prepareRawBlock=function prepareRawBlock(e,t,r,a){validateClose(e,r),a=this.locInfo(a);var s={type:"Program",body:t,strip:{},loc:a};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:a}},t.prepareBlock=function prepareBlock(e,t,r,s,o,n){s&&s.path&&validateClose(e,s);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,p=void 0;if(r){if(i)throw new a.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=s.strip),p=r.strip,l=r.program}o&&(o=l,l=t,t=o);return{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:p,closeStrip:s&&s.strip,loc:this.locInfo(n)}},t.prepareProgram=function prepareProgram(e,t){if(!t&&e.length){var r=e[0].loc,a=e[e.length-1].loc;r&&a&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:a.end.line,column:a.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function preparePartialBlock(e,t,r,a){return validateClose(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(a)}};var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("../packages/core/node_modules/handlebars/dist/cjs/handlebars/exception.js"));function validateClose(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new a.default(e.path.original+" doesn't match "+t,r)}}}}]);
//# sourceMappingURL=vendors~main~033841df.chunk.eaa5497fb7f7db0479e3.js.map