You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
216 KiB

  1. (self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[7883],{322:e=>{"use strict";e.exports={CharacterClass:function(e){for(var u=e.node,r={},n=0;n<u.expressions.length;n++){var d=e.getChild(n),t=d.jsonEncode();r.hasOwnProperty(t)&&(d.remove(),n--),r[t]=!0}}}},1379:e=>{"use strict";e.exports=function e(u){if(null===u||"object"!=typeof u)return u;var r=void 0;for(var n in r=Array.isArray(u)?[]:{},u)r[n]=e(u[n]);return r}},2003:(e,u,r)=>{"use strict";var n=function(){function e(e,u){for(var r=0;r<u.length;r++){var n=u[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(u,r,n){return r&&e(u.prototype,r),n&&e(u,n),u}}(),d=r(20042),t=r(23810),a=r(29171),s=function(){function e(u){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=u,this._source=null,this._string=null,this._regexp=null,this._extra=r}return n(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=d.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=d.generate(this._ast)),this._string}}]),e}();e.exports={TransformResult:s,transform:function(e,u){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=t.parse(e,{captureLocations:!0})),a.traverse(r,u),new s(r)}}},3211:(e,u,r)=>{"use strict";r.d(u,{yS:()=>I});var n,d=r(94364),t=r(34999),a=r(20043);function s(e){return"number"==typeof e?e:1===e.length?e[0]:[e[0],e[e.length-1]]}function i(e){const u=Array.isArray(e)?e:e.toString().split(".");if("all"===u[0])return[1/0,0,0];let r=null,n=null;const d=[0,0,0];for(let e=0;e<3;e++)if(r=u[e],void 0!==r){if(n="number"==typeof r?r:parseInt(r,10),isNaN(n))return null;d[e]=n}return d}function f(e,u,r){const[n,d,t]=e,[a,s,i]=u,{ignoreMinor:f,ignorePatch:o,allowHigherVersions:c}=r;if(a===1/0)return!0;const l=!f,v=l&&!o;return c?!(v&&t<i||l&&d<s)&&n>=a:!(v&&t!==i||l&&d!==s)&&n===a}function o(e,u,r=0){const n=e.length;for(let d=r;d<n;d++)if(e[d]!==u[d])return!1;return!0}function c(e){if(null===e||"object"!=typeof e)return e;const u=Array.isArray(e)?[]:{};let r;for(r in e)u[r]=c(e[r]);return u}function l(e){return[].concat(...e)}function v(...e){const u=l(e).filter(Boolean);return 1===u.length?u[0]:{type:"Alternative",expressions:u}}function b(e){return{type:"Char",kind:"simple",value:String(e),codePoint:NaN}}function p(e,u){return{type:"ClassRange",from:e,to:u}}function m(...e){return{type:"CharacterClass",expressions:l(e).filter(Boolean)}}function h(e){return{type:"Group",capturing:!0,expression:e,number:null}}function y(...e){const u=function(...e){const u=l(e).filter(Boolean);if(1===u.length)return u[0];const r={type:"Disjunction",left:null,right:u.pop()};return u.reduceRight((e,u,r)=>0===r?(e.left=u,e):(e.left={type:"Disjunction",left:null,right:u},e.left),r),r}(...e);return"Disjunction"===u.type?h(u):u}function g(){return{type:"Char",kind:"meta",value:"\\d",codePoint:NaN}}function C(e={type:"Quantifier",kind:"+",greedy:!0}){const u=function(e,u){return{type:"Repetition",expression:{type:"Char",kind:"meta",value:"\\d",codePoint:NaN},quantifier:u}}(0,e);return u}function B(e){return v(Array.from(String(e),b))}function _(e){if("Group"===e.type&&"Repetition"===e.expression.type){const{expression:u,quantifier:r}=e.expression;return"Char"===u.type&&"\\d"===u.value&&"+"===r.kind&&r.greedy}return!1}function x(e,u){return!(!e||"Char"!==e.type)&&(void 0===u||u instanceof RegExp&&u.test(e.value)||String(u)===e.value)}function j(e){if("CharacterClass"===e.type&&1===e.expressions.length){const[u]=e.expressions;return"ClassRange"===u.type&&x(u.from,/\d/)&
  2. //# sourceMappingURL=7883-7883.js.map?v=997db7438626223d9bde