mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-10-20 18:56:22 +00:00
Bump dev (no lerna) (#376)
This commit is contained in:
1 parent
4089bca9d5
commit
7953d92bfc
7 files changed
+317
-189
No files matched your search
+52
@@ -0,0 +1,52 @@
|
||||
/* eslint-disable */
|
||||
module.exports = {
|
||||
name: "@yarnpkg/plugin-version",
|
||||
factory: function (require) {
|
||||
var plugin;plugin=(()=>{var __webpack_modules__={3354:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P});var r=t(966);
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */function i(e,n,t,r){var i,u=arguments.length,o=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(u<3?i(o):u>3?i(n,t,o):i(n,t))||o);return u>3&&o&&Object.defineProperty(n,t,o),o}var u=t(2594),o=t(8042),a=t(4688),l=t(9145),s=t(9513),c=t.n(s);const f=/^(>=|[~^]|)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$/;var d;async function p(e){const n=new Map,t=e.configuration.get("deferredVersionFolder");if(!a.xfs.existsSync(t))return new Map;const i=await a.xfs.readdirPromise(t);for(const u of i){if(!u.endsWith(".yml"))continue;const i=a.ppath.join(t,u),o=await a.xfs.readFilePromise(i,"utf8"),s=(0,l.parseSyml)(o);for(const[t,u]of Object.entries(s.releases||{})){const o=r.structUtils.parseIdent(t),l=e.tryWorkspaceByIdent(o);if(null===l)throw new Error(`Assertion failed: Expected a release definition file to only reference existing workspaces (${a.ppath.basename(i)} references ${t})`);if(null===l.manifest.version)throw new Error(`Assertion failed: Expected the workspace to have a version (${r.structUtils.prettyLocator(e.configuration,l.anchoredLocator)})`);const s=n.get(l),f=_(l.manifest.version,u);if(null===f)throw new Error(`Assertion failed: Expected ${l.manifest.version} to support being bumped via strategy ${u}`);const d=void 0!==s?c().gt(f,s)?f:s:f;n.set(l,d)}}return n}async function h(e,{allowEmpty:n=!1}={}){const t=e.configuration;if(null===t.projectCwd)throw new o.UsageError("This command can only be run from within a Yarn project");const i=await async function(e){let n,t=null,r=e;do{n=r,await a.xfs.existsPromise(a.ppath.join(n,".git"))&&(t=n),r=a.ppath.dirname(n)}while(null===t&&r!==n);return t}(t.projectCwd),u=null!==i?await async function(e,{baseRefs:n}){if(0===n.length)throw new o.UsageError("Can't run this command with zero base refs specified.");const t=[];for(const i of n){const{code:n}=await r.execUtils.execvp("git",["merge-base",i,"HEAD"],{cwd:e});0===n&&t.push(i)}if(0===t.length)throw new o.UsageError("No ancestor could be found between any of HEAD and "+n.join(", "));const{stdout:i}=await r.execUtils.execvp("git",["merge-base","HEAD",...t],{cwd:e,strict:!0}),u=i.trim(),{stdout:a}=await r.execUtils.execvp("git",["show","--quiet","--pretty=format:%s",u],{cwd:e,strict:!0});return{hash:u,title:a.trim()}}(i,{baseRefs:t.get("changesetBaseRefs")}):null,s=null!==i?await async function(e,{base:n,project:t}){const i=r.miscUtils.buildIgnorePattern(t.configuration.get("changesetIgnorePatterns")),{stdout:u}=await r.execUtils.execvp("git",["diff","--name-only",""+n],{cwd:e,strict:!0}),o=u.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(n=>a.ppath.resolve(e,a.npath.toPortablePath(n))),{stdout:l}=await r.execUtils.execvp("git",["ls-files","--others","--exclude-standard"],{cwd:e,strict:!0}),s=l.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(n=>a.ppath.resolve(e,a.npath.toPortablePath(n))),c=[...new Set([...o,...s].sort())];return i?c.filter(e=>!a.ppath.relative(t.cwd,e).match(i)):c}(i,{base:u.hash,project:e}):[],c=t.get("deferredVersionFolder"),f=s.filter(e=>null!==a.ppath.contains(c,e));if(f.length>1)throw new o.UsageError("Your current branch contains multiple versioning files; this isn't supported:\n- "+f.join("\n- "));const p=new Set(r.miscUtils.mapAndFilter(s,n=>{const t=e.tryWorkspaceByFilePath(n);return null===t?r.miscUtils.mapAndFilter.skip:t}));if(0===f.length&&0===p.size&&!n)return null;const h=1===f.length?f[0]:a.ppath.join(c,r.hashUtils.makeHash(Math.random().toString()).slice(0,8)+".yml"),m=a.xfs.existsSync(h)?await a.xfs.readFilePromise(h,"utf8"):"{}",v=(0,l.parseSyml)(m),_=new Map;for(const n of v.declined||[]){const t=r.structUtils.parseIdent(n),i=e.getWorkspaceByIdent(t);_.set(i,d.DECLINE)}for(const[n,t]of Object.entries(v.releases||{})){const i=r.structUtils.parseIdent(n),u=e.getWorkspaceByIdent(i);_.set(u,t)}return{project:e,root:i,baseHash:null!==u?u.hash:null,baseTitle:null!==u?u.title:null,changedFiles:new Set(s),changedWorkspaces:p,releaseRoots:new Set([...p].filter(e=>null!==e.manifest.version)),releases:_,async saveAll(){const n={},t=[],i=[];for(const u of e.workspaces){if(null===u.manifest.version)continue;const e=r.structUtils.stringifyIdent(u.locator),o=_.get(u);o===d.DECLINE?t.push(e):void 0!==o?n[e]=o:p.has(u)&&i.push(e)}await a.xfs.mkdirPromise(a.ppath.dirname(h),{recursive:!0}),await a.xfs.changeFilePromise(h,(0,l.stringifySyml)(new l.stringifySyml.PreserveOrdering({releases:Object.keys(n).length>0?n:void 0,declined:t.length>0?t:void 0,undecided:i.length>0?i:void 0})))}}}function m(e){const n=new Set;for(const t of e.changedWorkspaces)null!==t.manifest.version&&(e.releases.has(t)||n.add(t));return n}function v(e,{include:n=new Set}={}){const t=[],i=Line truncated
|
||||
/** @license React v0.20.4
|
||||
* react-reconciler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
e.exports=function n(r){"use strict";var i=t(9381),u=t(7382),o=t(5201);function a(e,n,t,r,i,u,o,a){if(!e){if(e=void 0,void 0===n)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,r,i,u,o,a],s=0;(e=Error(n.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function l(e){for(var n=arguments.length-1,t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<n;r++)t+="&args[]="+encodeURIComponent(arguments[r+1]);a(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",t)}var s=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;s.hasOwnProperty("ReactCurrentDispatcher")||(s.ReactCurrentDispatcher={current:null});var c="function"==typeof Symbol&&Symbol.for,f=c?Symbol.for("react.element"):60103,d=c?Symbol.for("react.portal"):60106,p=c?Symbol.for("react.fragment"):60107,h=c?Symbol.for("react.strict_mode"):60108,m=c?Symbol.for("react.profiler"):60114,v=c?Symbol.for("react.provider"):60109,_=c?Symbol.for("react.context"):60110,b=c?Symbol.for("react.concurrent_mode"):60111,g=c?Symbol.for("react.forward_ref"):60112,y=c?Symbol.for("react.suspense"):60113,D=c?Symbol.for("react.memo"):60115,w=c?Symbol.for("react.lazy"):60116,E="function"==typeof Symbol&&Symbol.iterator;function T(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case b:return"ConcurrentMode";case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case y:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case _:return"Context.Consumer";case v:return"Context.Provider";case g:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case D:return C(e.type);case w:if(e=1===e._status?e._result:null)return C(e)}return null}function k(e){var n=e;if(e.alternate)for(;n.return;)n=n.return;else{if(0!=(2&n.effectTag))return 1;for(;n.return;)if(0!=(2&(n=n.return).effectTag))return 1}return 3===n.tag?2:3}function M(e){2!==k(e)&&l("188")}function S(e){var n=e.alternate;if(!n)return 3===(n=k(e))&&l("188"),1===n?null:e;for(var t=e,r=n;;){var i=t.return,u=i?i.alternate:null;if(!i||!u)break;if(i.child===u.child){for(var o=i.child;o;){if(o===t)return M(i),e;if(o===r)return M(i),n;o=o.sibling}l("188")}if(t.return!==r.return)t=i,r=u;else{o=!1;for(var a=i.child;a;){if(a===t){o=!0,t=i,r=u;break}if(a===r){o=!0,r=i,t=u;break}a=a.sibling}if(!o){for(a=u.child;a;){if(a===t){o=!0,t=u,r=i;break}if(a===r){o=!0,r=u,t=i;break}a=a.sibling}o||l("189")}}t.alternate!==r&&l("190")}return 3!==t.tag&&l("188"),t.stateNode.current===t?e:n}function A(e){if(!(e=S(e)))return null;for(var n=e;;){if(5===n.tag||6===n.tag)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===e)break;for(;!n.sibling;){if(!n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}var x=r.getPublicInstance,P=r.getRootHostContext,R=r.getChildHostContext,N=r.prepareForCommit,F=r.resetAfterCommit,O=r.createInstance,L=r.appendInitialChild,I=r.finalizeInitialChildren,B=r.prepareUpdate,U=r.shouldSetTextContent,j=r.shouldDeprioritizeSubtree,W=r.createTextInstance,z=r.scheduleDeferredCallback,H=r.cancelDeferredCallback,G=r.shouldYield,Y=r.setTimeout,q=r.clearTimeout,V=r.noTimeout,$=r.schedulePassiveEffects,X=r.cancelPassiveEffects,K=r.now,J=r.isPrimaryRenderer,Q=r.supportsMutation,Z=r.supportsPersistence,ee=r.supportsHydration,ne=r.appendChild,te=r.appendChildToContainer,re=r.commitTextUpdate,ie=r.commitMount,ue=r.commitUpdate,oe=r.insertBefore,ae=r.insertInContainerBefore,le=r.removeChild,se=r.removeChildFromContainer,ce=r.resetTextContent,fe=r.hideInstance,de=r.hideTextInstance,pe=r.unhideInstance,he=r.unhideTextInstance,me=r.cloneInstance,ve=r.createContainerChildSet,_e=r.appendChildToContainerChildSet,be=r.finalizeContainerChildren,ge=r.replaceContainerChildren,ye=r.cloneHiddenInstance,De=r.cloneUnhiddenInstance,we=r.createHiddenTextInstance,Ee=r.canHydrateInstance,Te=r.canHydrateTextInstance,Ce=r.getNextHydratableSibling,ke=r.getFirstHydratableChild,Me=r.hydrateInstance,Se=r.hydrateTextInstance,Ae=/^(.*)[\\\/]/;function xe(e){var n="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var t="";break e;default:var r=e._debugOwner,i=e._debugSource,u=C(e.type);t=null,r&&(t=C(r.type)),r=u,u="",i?u=" (at "+i.fileName.replace(Ae,"")+":"+i.lineNumber+")":t&&(u=" (created by "+t+")"),t="\n in "+(r||"Unknown")+u}n+=t,e=e.return}while(e);return n}new Set;var Pe=[],Re=-1;function Ne(e){0>Re||(e.current=Pe[Re],Pe[Re]=null,Re--)}function Fe(e,n){Re++,Pe[Re]=e.current,e.current=n}var Oe={},Le={current:Oe},Ie={current:!1},Be=Oe;function Ue(e,n){var t=e.typLine truncated
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,u){for(var o,a,l=i(e),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))t.call(o,c)&&(l[c]=o[c]);if(n){a=n(o);for(var f=0;f<a.length;f++)r.call(o,a[f])&&(l[a[f]]=o[a[f]])}}return l}},4767:(e,n,t)=>{"use strict";const r=t(2658);e.exports=(e,n)=>{if(!0===n)throw new TypeError("The second argument is now an options object");if("function"!=typeof e)throw new TypeError("Expected a function");let t;n=n||{};let i=!1;const u=e.displayName||e.name||"<anonymous>",o=function(){if(i){if(!0===n.throw)throw new Error(`Function \`${u}\` can only be called once`);return t}return i=!0,t=e.apply(this,arguments),e=null,t};return r(o,e),o}},6976:(e,n,t)=>{"use strict";var r=t(9090);function i(){}function u(){}u.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,u,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:u,resetWarningCache:i};return t.PropTypes=t,t}},6271:(e,n,t)=>{e.exports=t(6976)()},9090:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6099:(e,n,t)=>{"use strict";
|
||||
/** @license React v16.13.1
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var r=t(9381),i="function"==typeof Symbol&&Symbol.for,u=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||b}function D(){}function w(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||b}y.prototype.isReactComponent={},y.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,n,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=y.prototype;var E=w.prototype=new D;E.constructor=w,r(E,y.prototype),E.isPureReactComponent=!0;var T={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function M(e,n,t){var r,i={},o=null,a=null;if(null!=n)for(r in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(o=""+n.key),n)C.call(n,r)&&!k.hasOwnProperty(r)&&(i[r]=n[r]);var l=arguments.length-2;if(1===l)i.children=t;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:u,type:e,key:o,ref:a,props:i,_owner:T.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var A=/\/+/g,x=[];function P(e,n,t,r){if(x.length){var i=x.pop();return i.result=e,i.keyPrefix=n,i.func=t,i.context=r,i.count=0,i}return{result:e,keyPrefix:n,func:t,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function N(e,n,t){return null==e?0:function e(n,t,r,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var l=!1;if(null===n)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case u:case o:l=!0}}if(l)return r(i,n,""===t?"."+F(n,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(n))for(var s=0;s<n.length;s++){var c=t+F(a=n[s],s);l+=e(a,c,r,i)}else if(null===n||"object"!=typeof n?c=null:c="function"==typeof(c=v&&n[v]||n["@@iterator"])?c:null,"function"==typeof c)for(n=c.call(n),s=0;!(a=n.next()).done;)l+=e(a=a.value,c=t+F(a,s++),r,i);else if("object"===a)throw r=""+n,Error(_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r,""));return l}(e,"",n,t)}function F(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return n[e]}))}(e.key):n.toString(36)}function O(e,n){e.func.call(e.context,n,e.count++)}function L(e,n,t){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,n,e.count++),Array.isArray(e)?I(e,r,t,(function(e){return e})):null!=e&&(S(e)&&(e=function(e,n){return{$$typeof:u,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||n&&n.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+t)),r.push(e))}function I(e,n,t,r,i){var u="";null!=t&&(u=(""+t).replace(A,"$&/")+"/"),N(e,L,n=P(n,u,r,i)),R(n)}var B={current:null};function U(){var e=B.current;if(null===e)throw Error(_(321));return e}var j={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:function(e,n,t){if(null==e)return e;var r=[];return I(e,r,null,n,t),r},forEach:function(e,n,t){if(null==e)return e;N(e,O,n=P(null,null,n,t)),R(n)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var n=[];return I(e,n,null,(function(e){return e})),n},only:function(e){if(!S(e))throw Error(_(143));return e}},n.Component=y,n.Fragment=a,n.Profiler=s,n.PureComponent=w,n.StrictMode=l,n.Suspense=p,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,n.cloneElement=function(e,n,t){if(null==e)throw Error(_(267,e));var i=r({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=T.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in n)C.call(n,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)i.children=t;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:u,Line truncated
|
||||
/** @license React v0.13.6
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/Object.defineProperty(n,"__esModule",{value:!0});var t=null,r=!1,i=3,u=-1,o=-1,a=!1,l=!1;function s(){if(!a){var e=t.expirationTime;l?E():l=!0,w(d,e)}}function c(){var e=t,n=t.next;if(t===n)t=null;else{var r=t.previous;t=r.next=n,n.previous=r}e.next=e.previous=null,r=e.callback,n=e.expirationTime,e=e.priorityLevel;var u=i,a=o;i=e,o=n;try{var l=r()}finally{i=u,o=a}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:n,next:null,previous:null},null===t)t=l.next=l.previous=l;else{r=null,e=t;do{if(e.expirationTime>=n){r=e;break}e=e.next}while(e!==t);null===r?r=t:r===t&&(t=l,s()),(n=r.previous).next=r.previous=l,l.next=r,l.previous=n}}function f(){if(-1===u&&null!==t&&1===t.priorityLevel){a=!0;try{do{c()}while(null!==t&&1===t.priorityLevel)}finally{a=!1,null!==t?s():l=!1}}}function d(e){a=!0;var i=r;r=e;try{if(e)for(;null!==t;){var u=n.unstable_now();if(!(t.expirationTime<=u))break;do{c()}while(null!==t&&t.expirationTime<=u)}else if(null!==t)do{c()}while(null!==t&&!T())}finally{a=!1,r=i,null!==t?s():l=!1,f()}}var p,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,_="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,g="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function y(e){p=b((function(n){_(h),e(n)})),h=v((function(){g(p),e(n.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var D=performance;n.unstable_now=function(){return D.now()}}else n.unstable_now=function(){return m.now()};var w,E,T,C=null;if("undefined"!=typeof window?C=window:"undefined"!=typeof global&&(C=global),C&&C._schedMock){var k=C._schedMock;w=k[0],E=k[1],T=k[2],n.unstable_now=k[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var M=null,S=function(e){if(null!==M)try{M(e)}finally{M=null}};w=function(e){null!==M?setTimeout(w,0,e):(M=e,setTimeout(S,0,!1))},E=function(){M=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var A=null,x=!1,P=-1,R=!1,N=!1,F=0,O=33,L=33;T=function(){return F<=n.unstable_now()};var I=new MessageChannel,B=I.port2;I.port1.onmessage=function(){x=!1;var e=A,t=P;A=null,P=-1;var r=n.unstable_now(),i=!1;if(0>=F-r){if(!(-1!==t&&t<=r))return R||(R=!0,y(U)),A=e,void(P=t);i=!0}if(null!==e){N=!0;try{e(i)}finally{N=!1}}};var U=function(e){if(null!==A){y(U);var n=e-F+L;n<L&&O<L?(8>n&&(n=8),L=n<O?O:n):O=n,F=e+L,x||(x=!0,B.postMessage(void 0))}else R=!1};w=function(e,n){A=e,P=n,N||0>n?B.postMessage(void 0):R||(R=!0,y(U))},E=function(){A=null,x=!1,P=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=u;i=e,u=n.unstable_now();try{return t()}finally{i=r,u=o,f()}},n.unstable_next=function(e){switch(i){case 1:case 2:case 3:var t=3;break;default:t=i}var r=i,o=u;i=t,u=n.unstable_now();try{return e()}finally{i=r,u=o,f()}},n.unstable_scheduleCallback=function(e,r){var o=-1!==u?u:n.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(i){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===t)t=e.next=e.previous=e,s();else{o=null;var a=t;do{if(a.expirationTime>r){o=a;break}a=a.next}while(a!==t);null===o?o=t:o===t&&(t=e,s()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},n.unstable_cancelCallback=function(e){var n=e.next;if(null!==n){if(n===e)t=null;else{e===t&&(t=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=i;return function(){var r=i,o=u;i=t,u=n.unstable_now();try{return e.apply(this,arguments)}finally{i=r,u=o,f()}}},n.unstable_getCurrentPriorityLevel=function(){return i},n.unstable_shouldYield=function(){return!r&&(null!==t&&t.expirationTime<o||T())},n.unstable_continueExecution=function(){null!==t&&s()},n.unstable_pauseExecution=function(){},n.unstable_getFirstCallbackNode=function(){return t}},5201:(e,n,t)=>{"use strict";e.exports=t(8992)},6458:(e,n,t)=>{var r,i=t(2357),u=t(8082),o=t(8614);function a(){c&&(c=!1,u.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,n,t){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,n,t))}"function"!=typeof o&&(o=o.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emit
Line truncated
|
||||
return plugin;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
module.exports = {
|
||||
name: "@yarnpkg/plugin-workspace-tools",
|
||||
factory: function (require) {
|
||||
var plugin;plugin=(()=>{"use strict";var e={115:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});function o(e,t,n,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}var r=n(594),a=n(966),s=n(42),i=n(440);class l extends r.BaseCommand{constructor(){super(...arguments),this.workspaces=[],this.json=!1,this.production=!1,this.all=!1}async execute(){const e=await a.Configuration.find(this.context.cwd,this.context.plugins),{project:t,workspace:n}=await a.Project.find(e,this.context.cwd),o=await a.Cache.find(e);let s;if(this.all)s=new Set(t.workspaces);else if(0===this.workspaces.length){if(!n)throw new r.WorkspaceRequiredError(t.cwd,this.context.cwd);s=new Set([n])}else s=new Set(this.workspaces.map(e=>t.getWorkspaceByIdent(a.structUtils.parseIdent(e))));for(const e of s)for(const n of a.Manifest.hardDependencies)for(const o of e.manifest.getForScope(n).values()){const e=t.tryWorkspaceByDescriptor(o);null!==e&&s.add(e)}for(const e of t.workspaces)s.has(e)?this.production&&e.manifest.devDependencies.clear():(e.manifest.dependencies.clear(),e.manifest.devDependencies.clear(),e.manifest.peerDependencies.clear());return(await a.StreamReport.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!0},async e=>{await t.install({cache:o,report:e,persistProject:!1}),await t.persistInstallStateFile()})).exitCode()}}l.usage=s.Command.Usage({category:"Workspace-related commands",description:"install a single workspace and its dependencies",details:"\n This command will run an install as if the specified workspaces (and all other workspaces they depend on) were the only ones in the project. If no workspaces are explicitly listed, the active one will be assumed.\n\n Note that this command is only very moderately useful when using zero-installs, since the cache will contain all the packages anyway - meaning that the only difference between a full install and a focused install would just be a few extra lines in the `.pnp.js` file, at the cost of introducing an extra complexity.\n\n If the `-A,--all` flag is set, the entire project will be installed. Combine with `--production` to replicate the old `yarn install --production`.\n "}),l.schema=i.object().shape({all:i.bool(),workspaces:i.array().when("all",{is:!0,then:i.array().max(0,"Cannot specify workspaces when using the --all flag"),otherwise:i.array()})}),o([s.Command.Rest()],l.prototype,"workspaces",void 0),o([s.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],l.prototype,"json",void 0),o([s.Command.Boolean("--production",{description:"Only install regular dependencies by omitting dev dependencies"})],l.prototype,"production",void 0),o([s.Command.Boolean("-A,--all",{description:"Install the entire project"})],l.prototype,"all",void 0),o([s.Command.Path("workspaces","focus")],l.prototype,"execute",null);var p=n(401),u=n.n(p),c=n(87),d=n(578),f=n.n(d);const h=(e,t)=>{const n=[];for(const o of e.workspacesCwds){const e=t.workspacesByCwd.get(o);e&&n.push(e,...h(e,t))}return n};class g extends r.BaseCommand{constructor(){super(...arguments),this.args=[],this.allLegacy=!1,this.verbose=!1,this.parallel=!1,this.interlaced=!1,this.topological=!1,this.topologicalDev=!1,this.include=[],this.exclude=[],this.private=!0}async execute(){var e;const t=await a.Configuration.find(this.context.cwd,this.context.plugins),{project:n,workspace:o}=await a.Project.find(t,this.context.cwd),i=null!==(e=this.all)&&void 0!==e?e:this.allLegacy;if(!i&&!o)throw new r.WorkspaceRequiredError(n.cwd,this.context.cwd);const l=this.cli.process([this.commandName,...this.args]),p=1===l.path.length&&"run"===l.path[0]&&void 0!==l.scriptName?l.scriptName:null;if(0===l.path.length)throw new s.UsageError("Invalid subcommand name for iteration - use the 'run' keyword if you wish to execute a script");const d=i?n.topLevelWorkspace:o,g=[d,...h(d,n)],y=[];for(const e of g)p&&!e.manifest.scripts.has(p)||p===process.env.npm_lifecycle_event&&e.cwd===o.cwd||this.include.length>0&&!u().isMatch(a.structUtils.stringifyIdent(e.locator),this.include)||this.exclude.length>0&&u().isMatch(a.structUtils.stringifyIdent(e.locator),this.exclude)||!1===this.private&&!0===e.manifest.private||y.push(e);let R=this.interlaced;this.parallel||(R=!0);const m=new Map,_=new Set,E=this.parallel?Math.max(1,(0,c.cpus)().length/2):1,C=f()(this.jobs||E);let b=0,x=null,v=!1;const S=await a.StreamReport.start({configuration:t,stdout:this.context.stdout},async e=>{const o=async(n,{commandIndex:o})=>{if(v)return-1;!this.parallel&&this.verbose&&o>1&&e.reportSeparator();const r=function(e,{configuration:t,commandIndex:n,verbose:o}){if(!o)return null;const r=a.structUtils.convertToIdent(e.locator),s=`[${a.structUtils.stringifyIdent(r)}]:`,i=["#2ELine truncated
|
||||
/*!
|
||||
* fill-range <https://github.com/jonschlinkert/fill-range>
|
||||
*
|
||||
* Copyright (c) 2014-present, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const o=n(669),r=n(615),a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,i=e=>Number.isInteger(+e),l=e=>{let t=""+e,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},p=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},u=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},c=(e,t,n,o)=>{if(n)return r(e,t,{wrap:!1,...o});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},d=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,o=n.capture?"":"?:";return t?`(${o}${e.join("|")})`:e.join("|")}return r(e,t,n)},f=(...e)=>new RangeError("Invalid range arguments: "+o.inspect(...e)),h=(e,t,n)=>{if(!0===n.strictRanges)throw f([e,t]);return[]},g=(e,t,n=1,o={})=>{let r=Number(e),a=Number(t);if(!Number.isInteger(r)||!Number.isInteger(a)){if(!0===o.strictRanges)throw f([e,t]);return[]}0===r&&(r=0),0===a&&(a=0);let s=r>a,i=String(e),h=String(t),g=String(n);n=Math.max(Math.abs(n),1);let A=l(i)||l(h)||l(g),y=A?Math.max(i.length,h.length,g.length):0,R=!1===A&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,o),m=o.transform||(e=>t=>!0===e?Number(t):String(t))(R);if(o.toRegex&&1===n)return c(u(e,y),u(t,y),!0,o);let _={negatives:[],positives:[]},E=[],C=0;for(;s?r>=a:r<=a;)!0===o.toRegex&&n>1?_[(b=r)<0?"negatives":"positives"].push(Math.abs(b)):E.push(p(m(r,C),y,R)),r=s?r-n:r+n,C++;var b;return!0===o.toRegex?n>1?((e,t)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let n,o=t.capture?"":"?:",r="",a="";return e.positives.length&&(r=e.positives.join("|")),e.negatives.length&&(a=`-(${o}${e.negatives.join("|")})`),n=r&&a?`${r}|${a}`:r||a,t.wrap?`(${o}${n})`:n})(_,o):d(E,null,{wrap:!1,...o}):E},A=(e,t,n,o={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return h(e,t,o);if("function"==typeof n)return A(e,t,1,{transform:n});if(a(n))return A(e,t,0,n);let r={...o};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,i(n)?i(e)&&i(t)?g(e,t,n,r):((e,t,n=1,o={})=>{if(!i(e)&&e.length>1||!i(t)&&t.length>1)return h(e,t,o);let r=o.transform||(e=>String.fromCharCode(e)),a=(""+e).charCodeAt(0),s=(""+t).charCodeAt(0),l=a>s,p=Math.min(a,s),u=Math.max(a,s);if(o.toRegex&&1===n)return c(p,u,!1,o);let f=[],g=0;for(;l?a>=s:a<=s;)f.push(r(a,g)),a=l?a-n:a+n,g++;return!0===o.toRegex?d(f,null,{wrap:!1,options:o}):f})(e,t,Math.max(Math.abs(n),1),r):null==n||a(n)?A(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};e.exports=A},761:e=>{
|
||||
/*!
|
||||
* is-number <https://github.com/jonschlinkert/is-number>
|
||||
*
|
||||
* Copyright (c) 2014-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},401:(e,t,n)=>{const o=n(669),r=n(235),a=n(722),s=n(598),i=e=>"string"==typeof e&&(""===e||"./"===e),l=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let o=new Set,r=new Set,s=new Set,i=0,l=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let p=a(String(t[s]),{...n,onResult:l},!0),u=p.state.negated||p.state.negatedExtglob;u&&i++;for(let t of e){let e=p(t,!0);(u?!e.isMatch:e.isMatch)&&(u?o.add(e.output):(o.delete(e.output),r.add(e.output)))}}let p=(i===t.length?[...s]:[...r]).filter(e=>!o.has(e));if(n&&0===p.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map(e=>e.replace(/\\/g,"")):t}return p};l.match=l,l.matcher=(e,t)=>a(e,t),l.any=l.isMatch=(e,t,n)=>a(t,n)(e),l.not=(e,t,n={})=>{t=[].concat(t).map(String);let o=new Set,r=[],a=l(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}});for(let e of r)a.includes(e)||o.add(e);return[...o]},l.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${o.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>l.contains(e,t,n));if("string"==typeof t){if(i(e)||i(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...n,contains:!0})},l.matchKeys=(e,t,n)=>{if(!s.isObject(e))throw new TypeError("Expected the first argument to be an object");let o=l(Object.keys(e),t,n),r={};for(let t of o)r[t]=e[t];return r},l.some=(e,t,n)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(o.some(e=>t(e)))return!0}return!1},l.every=(e,t,n)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(!o.every(e=>t(e)))return!1}return!0},l.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${o.inspect(e)}"`);return[].concat(t).every(t=>a(t,n)(e))},l.capture=(e,t,n)=>{let o=s.isWindows(n),r=a.makeRe(String(e),{...n,capture:!0}).exec(o?s.toPosixSlashes(t):t);if(r)return r.slice(1).map(e=>void 0===e?"":e)},l.makeRe=(...e)=>a.makeRe(...e),l.scan=(...e)=>a.scan(...e),l.parse=(e,t)=>{let n=[];for(let o of[].concat(e||[]))for(let e of r(String(o),t))n.push(a.parse(e,t));return n},l.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:r(e,t)},l.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return l.braces(e,{...t,expand:!0})},e.exports=l},578:(e,t,n)=>{const o=n(550),r=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=[];let n=0;const r=()=>{n--,t.length>0&&t.shift()()},a=(e,t,...a)=>{n++;const s=o(e,...a);t(s),s.then(r,r)},s=(o,...r)=>new Promise(s=>((o,r,...s)=>{n<e?a(o,r,...s):t.push(a.bind(null,o,r,...s))})(o,s,...r));return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length}}),s};e.exports=r,e.exports.default=r},550:e=>{e.exports=(e,...t)=>new Promise(n=>{n(e(...t))})},722:(e,t,n)=>{e.exports=n(828)},86:(e,t,n)=>{const o=n(622),r={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},a={...r,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LLine truncated
|
||||
/*!
|
||||
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
||||
*
|
||||
* Copyright (c) 2015-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
const o=n(761),r=(e,t,n)=>{if(!1===o(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===o(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let a={relaxZeros:!0,...n};"boolean"==typeof a.strictZeros&&(a.relaxZeros=!1===a.strictZeros);let l=e+":"+t+"="+String(a.relaxZeros)+String(a.shorthand)+String(a.capture)+String(a.wrap);if(r.cache.hasOwnProperty(l))return r.cache[l].result;let p=Math.min(e,t),u=Math.max(e,t);if(1===Math.abs(p-u)){let n=e+"|"+t;return a.capture?`(${n})`:!1===a.wrap?n:`(?:${n})`}let c=h(e)||h(t),d={min:e,max:t,a:p,b:u},f=[],g=[];if(c&&(d.isPadded=c,d.maxLen=String(d.max).length),p<0){g=s(u<0?Math.abs(u):1,Math.abs(p),d,a),p=d.a=0}return u>=0&&(f=s(p,u,d,a)),d.negatives=g,d.positives=f,d.result=function(e,t,n){let o=i(e,t,"-",!1,n)||[],r=i(t,e,"",!1,n)||[],a=i(e,t,"-?",!0,n)||[];return o.concat(a).concat(r).join("|")}(g,f,a),!0===a.capture?d.result=`(${d.result})`:!1!==a.wrap&&f.length+g.length>1&&(d.result=`(?:${d.result})`),r.cache[l]=d,d.result};function a(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let o=function(e,t){let n=[];for(let o=0;o<e.length;o++)n.push([e[o],t[o]]);return n}(e,t),r=o.length,a="",s=0;for(let e=0;e<r;e++){let[t,r]=o[e];t===r?a+=t:"0"!==t||"9"!==r?a+=f(t,r,n):s++}return s&&(a+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:a,count:[s],digits:r}}function s(e,t,n,o){let r,s=function(e,t){let n=1,o=1,r=u(e,n),a=new Set([t]);for(;e<=r&&r<=t;)a.add(r),n+=1,r=u(e,n);for(r=c(t+1,o)-1;e<r&&r<=t;)a.add(r),o+=1,r=c(t+1,o)-1;return a=[...a],a.sort(l),a}(e,t),i=[],p=e;for(let e=0;e<s.length;e++){let t=s[e],l=a(String(p),String(t),o),u="";n.isPadded||!r||r.pattern!==l.pattern?(n.isPadded&&(u=g(t,n,o)),l.string=u+l.pattern+d(l.count),i.push(l),p=t+1,r=l):(r.count.length>1&&r.count.pop(),r.count.push(l.count[0]),r.string=r.pattern+d(r.count),p=t+1)}return i}function i(e,t,n,o,r){let a=[];for(let r of e){let{string:e}=r;o||p(t,"string",e)||a.push(n+e),o&&p(t,"string",e)&&a.push(n+e)}return a}function l(e,t){return e>t?1:t>e?-1:0}function p(e,t,n){return e.some(e=>e[t]===n)}function u(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function c(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function f(e,t,n){return`[${e}${t-e==1?"":"-"}${t}]`}function h(e){return/^-?(0+)\d/.test(e)}function g(e,t,n){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),r=!1!==n.relaxZeros;switch(o){case 0:return"";case 1:return r?"0?":"0";case 2:return r?"0{0,2}":"00";default:return r?`0{0,${o}}`:`0{${o}}`}}r.cache={},r.clearCache=()=>r.cache={},e.exports=r},594:e=>{e.exports=require("@yarnpkg/cli")},966:e=>{e.exports=require("@yarnpkg/core")},42:e=>{e.exports=require("clipanion")},87:e=>{e.exports=require("os")},622:e=>{e.exports=require("path")},669:e=>{e.exports=require("util")},440:e=>{e.exports=require("yup")}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(115)})();
|
||||
return plugin;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user