@knapsack/app
Version:
Build Design Systems on top of knapsack, by Basalt
2 lines • 17.4 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~custom-page-KXWAf~pattern-view-page-WE7TE~8bd24e62"],{"../node_modules/@miksu/prettier/lib/main/massage-ast.js":function(e,r,t){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function massageAST(e,r,t){if(Array.isArray(e))return e.map((function(e){return massageAST(e,r,t)})).filter((function(e){return e}));if(!e||"object"!==_typeof(e))return e;for(var n={},o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];"function"!=typeof e[i]&&(n[i]=massageAST(e[i],r,e))}if(r.printer.massageAstNode){var s=r.printer.massageAstNode(e,n,t);if(null===s)return;if(s)return s}return n}},"../node_modules/@miksu/prettier/lib/main/multiparser.js":function(e,r,t){var n=t("../node_modules/@miksu/prettier/lib/main/options.js").normalize,o=t("../node_modules/@miksu/prettier/lib/main/comments.js");e.exports={printSubtree:function printSubtree(e,r,a,i){if(a.printer.embed)return a.printer.embed(e,r,(function(e,r){return function textToDoc(e,r,a,i){var s=n(Object.assign({},a,r,{parentParser:a.parser,embeddedInHtml:!(!a.embeddedInHtml&&"html"!==a.parser&&"vue"!==a.parser&&"angular"!==a.parser&&"lwc"!==a.parser),originalText:e}),{passThrough:!0}),c=t("../node_modules/@miksu/prettier/lib/main/parser.js").parse(e,s),l=c.ast;e=c.text;var u=l.comments;return delete l.comments,o.attach(u,l,e,s),i(l,s)}(e,r,a,i)}),a)}}},"../node_modules/@miksu/prettier/lib/main/options-normalizer.js":function(e,r,t){function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _possibleConstructorReturn(e,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):r}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,r){return e.__proto__=r,e})(e,r)}var n,o=t("../node_modules/vnopts/lib/index.js"),a=t("../node_modules/leven/index.js"),i=t("../node_modules/@miksu/prettier/node_modules/chalk/index.js"),s={key:function key(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function value(e){return o.apiDescriptor.value(e)},pair:function pair(e){var r=e.key,t=e.value;return!1===t?"--no-".concat(r):!0===t?s.key(r):""===t?"".concat(s.key(r)," without an argument"):"".concat(s.key(r),"=").concat(t)}},c=function(e){function FlagSchema(e){var r,t=e.name,n=e.flags;return function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FlagSchema),(r=_possibleConstructorReturn(this,_getPrototypeOf(FlagSchema).call(this,{name:t,choices:n})))._flags=n.slice().sort(),r}return function _inherits(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&_setPrototypeOf(e,r)}(FlagSchema,e),function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}(FlagSchema,[{key:"preprocess",value:function preprocess(e,r){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var t=this._flags.find((function(r){return a(r,e)<3}));if(t)return r.logger.warn(["Unknown flag ".concat(i.yellow(r.descriptor.value(e)),","),"did you mean ".concat(i.blue(r.descriptor.value(t)),"?")].join(" ")),t}return e}},{key:"expected",value:function expected(){return"a flag"}}]),FlagSchema}(o.ChoiceSchema);function normalizeOptions(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=t.logger,i=t.isCLI,c=void 0!==i&&i,l=t.passThrough,u=void 0!==l&&l,p=u?Array.isArray(u)?function(e,r){return-1===u.indexOf(e)?void 0:_defineProperty({},e,r)}:function(e,r){return _defineProperty({},e,r)}:o.levenUnknownHandler,f=c?s:o.apiDescriptor,d=function optionInfosToSchemas(e,r){var t=r.isCLI,n=[];t&&n.push(o.AnySchema.create({name:"_"}));var a=!0,i=!1,s=void 0;try{for(var c,l=e[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var u=c.value;n.push(optionInfoToSchema(u,{isCLI:t,optionInfos:e})),u.alias&&t&&n.push(o.AliasSchema.create({name:u.alias,sourceName:u.name}))}}catch(e){i=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}return n}(r,{isCLI:c}),m=new o.Normalizer(d,{logger:a,unknown:p,descriptor:f}),y=!1!==a;y&&n&&(m._hasDeprecationWarned=n);var b=m.normalize(e);return y&&(n=m._hasDeprecationWarned),b}function optionInfoToSchema(e,r){var t,n=r.isCLI,a=r.optionInfos,i={name:e.name},s={};switch(e.type){case"int":t=o.IntegerSchema,n&&(i.preprocess=function(e){return Number(e)});break;case"choice":t=o.ChoiceSchema,i.choices=e.choices.map((function(r){return"object"===_typeof(r)&&r.redirect?Object.assign({},r,{redirect:{to:{key:e.name,value:r.redirect}}}):r}));break;case"boolean":t=o.BooleanSchema;break;case"flag":t=c,i.flags=a.map((function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])})).reduce((function(e,r){return e.concat(r)}),[]);break;case"path":t=o.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=function(r,t,n){return e.exception(r)||t.validate(r,n)}:i.validate=function(e,r,t){return void 0===e||r.validate(e,t)},e.redirect&&(s.redirect=function(r){return r?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(s.deprecated=!0),n&&!e.array){var l=i.preprocess||function(e){return e};i.preprocess=function(e,r,t){return r.preprocess(l(Array.isArray(e)?e[e.length-1]:e),t)}}return e.array?o.ArraySchema.create(Object.assign(n?{preprocess:function preprocess(e){return[].concat(e)}}:{},s,{valueSchema:t.create(i)})):t.create(Object.assign({},i,s))}e.exports={normalizeApiOptions:function normalizeApiOptions(e,r,t){return normalizeOptions(e,r,t)},normalizeCliOptions:function normalizeCliOptions(e,r,t){return normalizeOptions(e,r,Object.assign({isCLI:!0},t))}}},"../node_modules/@miksu/prettier/lib/main/options.js":function(e,r,t){function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var n=t("../node_modules/normalize-path/index.js"),o=t("../node_modules/@miksu/prettier/lib/common/errors.js").UndefinedParserError,a=t("../node_modules/@miksu/prettier/lib/main/support.js").getSupportInfo,i=t("../node_modules/@miksu/prettier/lib/main/options-normalizer.js"),s=t("../node_modules/@miksu/prettier/lib/main/parser.js").resolveParser,c={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function inferParser(e,r){var t=n(e).split("/"),o=t[t.length-1].toLowerCase(),i=a(null,{plugins:r}).languages.find((function(e){return null!==e.since&&(e.extensions&&e.extensions.some((function(e){return o.endsWith(e)}))||e.filenames&&e.filenames.find((function(e){return e.toLowerCase()===o}))||-1===o.indexOf(".")&&e.interpreters&&-1!==e.interpreters.indexOf(""))}));return i&&i.parsers[0]}e.exports={normalize:function normalize(e,r){r=r||{};var t=Object.assign({},e),n=a(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,l=n.reduce((function(e,r){return void 0!==r.default?Object.assign(e,_defineProperty({},r.name,r.default)):e}),Object.assign({},c));if(!t.parser)if(t.filepath){if(t.parser=inferParser(t.filepath,t.plugins),!t.parser)throw new o("No parser could be inferred for file: ".concat(t.filepath))}else(r.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),t.parser="babel";var u=s(i.normalizeApiOptions(t,[n.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));t.astFormat=u.astFormat,t.locEnd=u.locEnd,t.locStart=u.locStart;var p=function getPlugin(e){var r=e.astFormat;if(!r)throw new Error("getPlugin() requires astFormat to be set");var t=e.plugins.find((function(e){return e.printers&&e.printers[r]}));if(!t)throw new Error("Couldn't find plugin for AST format \"".concat(r,'"'));return t}(t);t.printer=p.printers[t.astFormat];var f=n.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[p.name]})).reduce((function(e,r){return Object.assign(e,_defineProperty({},r.name,r.pluginDefaults[p.name]))}),{}),d=Object.assign({},l,f);return Object.keys(d).forEach((function(e){null==t[e]&&(t[e]=d[e])})),"json"===t.parser&&(t.trailingComma="none"),i.normalizeApiOptions(t,n,Object.assign({passThrough:Object.keys(c)},r))},hiddenDefaults:c,inferParser:inferParser}},"../node_modules/@miksu/prettier/lib/main/parser.js":function(module,exports,__webpack_require__){(function(process){var path=__webpack_require__("../node_modules/path-browserify/index.js"),ConfigError=__webpack_require__("../node_modules/@miksu/prettier/lib/common/errors.js").ConfigError,jsLoc=__webpack_require__("../node_modules/@miksu/prettier/lib/language-js/loc.js"),locStart=jsLoc.locStart,locEnd=jsLoc.locEnd,ownNames=Object.getOwnPropertyNames,ownDescriptor=Object.getOwnPropertyDescriptor;function getParsers(e){var r={},t=!0,n=!1,o=void 0;try{for(var a,i=e.plugins[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value;if(s.parsers){var c=!0,l=!1,u=void 0;try{for(var p,f=ownNames(s.parsers)[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var d=p.value;Object.defineProperty(r,d,ownDescriptor(s.parsers,d))}}catch(e){l=!0,u=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw u}}}}}catch(e){n=!0,o=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw o}}return r}function resolveParser(opts,parsers){if(parsers=parsers||getParsers(opts),"function"==typeof opts.parser)return{parse:opts.parser,astFormat:"estree",locStart:locStart,locEnd:locEnd};if("string"==typeof opts.parser){if(Object.prototype.hasOwnProperty.call(parsers,opts.parser))return parsers[opts.parser];if("universal"===Object({NODE_ENV:"production"}).PRETTIER_TARGET)throw new ConfigError("Couldn't resolve parser \"".concat(opts.parser,'". Parsers must be explicitly added to the standalone bundle.'));try{return{parse:eval("require")(path.resolve(process.cwd(),opts.parser)),astFormat:"estree",locStart:locStart,locEnd:locEnd}}catch(e){throw new ConfigError("Couldn't resolve parser \"".concat(opts.parser,'"'))}}}function parse(e,r){var t=getParsers(r),n=Object.keys(t).reduce((function(e,r){return Object.defineProperty(e,r,{enumerable:!0,get:function get(){return t[r].parse}})}),{}),o=resolveParser(r,t);try{return o.preprocess&&(e=o.preprocess(e,r)),{text:e,ast:o.parse(e,n,r)}}catch(r){var a=r.loc;if(a){var i=__webpack_require__("../node_modules/@babel/code-frame/lib/index.js");throw r.codeFrame=i.codeFrameColumns(e,a,{highlightCode:!0}),r.message+="\n"+r.codeFrame,r}throw r.stack}}module.exports={parse:parse,resolveParser:resolveParser}}).call(this,__webpack_require__("../node_modules/process/browser.js"))},"../node_modules/@miksu/prettier/lib/main/range-util.js":function(e,r,t){var n=t("../node_modules/@miksu/prettier/lib/main/comments.js");function findNodeAtOffset(e,r,t,o,a){o=o||function(){return!0},a=a||[];var i=t.locStart(e,t.locStart),s=t.locEnd(e,t.locEnd);if(i<=r&&r<=s){var c=!0,l=!1,u=void 0;try{for(var p,f=n.getSortedChildNodes(e,t)[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var d=findNodeAtOffset(p.value,r,t,o,[e].concat(a));if(d)return d}}catch(e){l=!0,u=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw u}}if(o(e))return{node:e,parentNodes:a}}}function isSourceElement(e,r){if(null==r)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(r.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(r.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(r.kind)>-1;case"vue":return"root"!==r.tag}return!1}e.exports={calculateRange:function calculateRange(e,r,t){var n,o=e.slice(r.rangeStart,r.rangeEnd),a=Math.max(r.rangeStart+o.search(/\S/),r.rangeStart);for(n=r.rangeEnd;n>r.rangeStart&&!e[n-1].match(/\S/);--n);var i=findNodeAtOffset(t,a,r,(function(e){return isSourceElement(r,e)})),s=findNodeAtOffset(t,n,r,(function(e){return isSourceElement(r,e)}));if(!i||!s)return{rangeStart:0,rangeEnd:0};var c=function findSiblingAncestors(e,r,t){var n=e.node,o=r.node;if(n===o)return{startNode:n,endNode:o};var a=!0,i=!1,s=void 0;try{for(var c,l=r.parentNodes[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var u=c.value;if(!("Program"!==u.type&&"File"!==u.type&&t.locStart(u)>=t.locStart(e.node)))break;o=u}}catch(e){i=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}var p=!0,f=!1,d=void 0;try{for(var m,y=e.parentNodes[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var b=m.value;if(!("Program"!==b.type&&"File"!==b.type&&t.locEnd(b)<=t.locEnd(r.node)))break;n=b}}catch(e){f=!0,d=e}finally{try{p||null==y.return||y.return()}finally{if(f)throw d}}return{startNode:n,endNode:o}}(i,s,r),l=c.startNode,u=c.endNode;return{rangeStart:Math.min(r.locStart(l,r.locStart),r.locStart(u,r.locStart)),rangeEnd:Math.max(r.locEnd(l,r.locEnd),r.locEnd(u,r.locEnd))}},findNodeAtOffset:findNodeAtOffset}},"../node_modules/@miksu/prettier/lib/main/support.js":function(e,r,t){var n=t("../node_modules/@miksu/prettier/node_modules/semver/semver.js"),o=t("../node_modules/@miksu/prettier/lib/utils/arrayify.js"),a=t("../node_modules/@miksu/prettier/package.json").version,i=t("../node_modules/@miksu/prettier/lib/main/core-options.js").options;e.exports={getSupportInfo:function getSupportInfo(e,r){r=Object.assign({plugins:[],showUnreleased:!1,showDeprecated:!1,showInternal:!1},r),e||(e=a.split("-",1)[0]);var t=r.plugins,s=o(Object.assign(t.reduce((function(e,r){return Object.assign(e,r.options)}),{}),i),"name").sort((function(e,r){return e.name===r.name?0:e.name<r.name?-1:1})).filter(filterSince).filter(filterDeprecated).map(mapDeprecated).map((function mapInternal(e){if(r.showInternal)return e;var t=Object.assign({},e);return delete t.cliName,delete t.cliCategory,delete t.cliDescription,t})).map((function(e){var r=Object.assign({},e);return Array.isArray(r.default)&&(r.default=1===r.default.length?r.default[0].value:r.default.filter(filterSince).sort((function(e,r){return n.compare(r.since,e.since)}))[0].value),Array.isArray(r.choices)&&(r.choices=r.choices.filter(filterSince).filter(filterDeprecated).map(mapDeprecated)),r})).map((function(e){var r=t.filter((function(r){return r.defaultOptions&&void 0!==r.defaultOptions[e.name]})).reduce((function(r,t){return r[t.name]=t.defaultOptions[e.name],r}),{});return Object.assign(e,{pluginDefaults:r})})),c=n.lt(e,"1.7.1"),l=n.lt(e,"1.16.0");return{languages:t.reduce((function(e,r){return e.concat(r.languages||[])}),[]).filter(filterSince).map((function(e){return"Markdown"===e.name?Object.assign({},e,{parsers:["markdown"]}):"TypeScript"===e.name?Object.assign({},e,{parsers:["typescript"]}):l&&-1!==e.parsers.indexOf("babel")?Object.assign({},e,{parsers:e.parsers.map((function(e){return"babel"===e?"babylon":e}))}):!c||"CSS"!==e.name&&"CSS"!==e.group?e:Object.assign({},e,{parsers:["postcss"]})})),options:s};function filterSince(t){return r.showUnreleased||!("since"in t)||t.since&&n.gte(e,t.since)}function filterDeprecated(t){return r.showDeprecated||!("deprecated"in t)||t.deprecated&&n.lt(e,t.deprecated)}function mapDeprecated(e){if(!e.deprecated||r.showDeprecated)return e;var t=Object.assign({},e);return delete t.deprecated,delete t.redirect,t}}}}}]);
//# sourceMappingURL=vendors~custom-page-KXWAf~pattern-view-page-WE7TE~8bd24e62.chunk.eaa5497fb7f7db0479e3.js.map