-
Notifications
You must be signed in to change notification settings - Fork 112
/
node-rules.min.js
1 lines (1 loc) · 22.1 KB
/
node-rules.min.js
1
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).NodeRules=t.NodeRules||{})}(this,(function(t){"use strict";var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}var o=r,i=n;function u(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}"function"==typeof e.setTimeout&&(o=setTimeout),"function"==typeof e.clearTimeout&&(i=clearTimeout);var a,c=[],s=!1,f=-1;function l(){s&&a&&(s=!1,a.length?c=a.concat(c):f=-1,c.length&&h())}function h(){if(!s){var t=u(l);s=!0;for(var e=c.length;e;){for(a=c,c=[];++f<e;)a&&a[f].run();f=-1,e=c.length}a=null,s=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===n||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new _(t,e)),1!==c.length||s||u(h)}function _(t,e){this.fun=t,this.array=e}_.prototype.run=function(){this.fun.apply(null,this.array)};function v(){}var y=v,d=v,b=v,g=v,j=v,w=v,m=v;var O=e.performance||{},A=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return(new Date).getTime()};var T=new Date;var x={nextTick:p,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:y,addListener:d,once:b,off:g,removeListener:j,removeAllListeners:w,emit:m,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*A.call(O),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-T)/1e3}},z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k={},S={};!function(t,e){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Boolean]",a="[object Date]",c="[object Function]",s="[object GeneratorFunction]",f="[object Map]",l="[object Number]",h="[object Object]",p="[object Promise]",_="[object RegExp]",v="[object Set]",y="[object String]",d="[object Symbol]",b="[object WeakMap]",g="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",m="[object Float64Array]",O="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",x="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",E="[object Uint32Array]",R=/\w*$/,P=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,$={};$[i]=$["[object Array]"]=$[g]=$[j]=$[u]=$[a]=$[w]=$[m]=$[O]=$[A]=$[T]=$[f]=$[l]=$[h]=$[_]=$[v]=$[y]=$[d]=$[x]=$[k]=$[S]=$[E]=!0,$["[object Error]"]=$[c]=$[b]=!1;var M="object"==typeof z&&z&&z.Object===Object&&z,I="object"==typeof self&&self&&self.Object===Object&&self,L=M||I||Function("return this")(),U=e&&!e.nodeType&&e,B=U&&t&&!t.nodeType&&t,C=B&&B.exports===U;function D(t,e){return t.set(e[0],e[1]),t}function N(t,e){return t.add(e),t}function V(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function W(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function q(t,e){return function(r){return t(e(r))}}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var J,K=Array.prototype,Q=Function.prototype,X=Object.prototype,Y=L["__core-js_shared__"],Z=(J=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",tt=Q.toString,et=X.hasOwnProperty,rt=X.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=C?L.Buffer:void 0,it=L.Symbol,ut=L.Uint8Array,at=q(Object.getPrototypeOf,Object),ct=Object.create,st=X.propertyIsEnumerable,ft=K.splice,lt=Object.getOwnPropertySymbols,ht=ot?ot.isBuffer:void 0,pt=q(Object.keys,Object),_t=Bt(L,"DataView"),vt=Bt(L,"Map"),yt=Bt(L,"Promise"),dt=Bt(L,"Set"),bt=Bt(L,"WeakMap"),gt=Bt(Object,"create"),jt=Wt(_t),wt=Wt(vt),mt=Wt(yt),Ot=Wt(dt),At=Wt(bt),Tt=it?it.prototype:void 0,xt=Tt?Tt.valueOf:void 0;function zt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Et(t){this.__data__=new kt(t)}function Rt(t,e){var r=qt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Ht(t)}(t)&&et.call(t,"callee")&&(!st.call(t,"callee")||rt.call(t)==i)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!et.call(t,u)||o&&("length"==u||Nt(u,n))||r.push(u);return r}function Pt(t,e,r){var n=t[e];et.call(t,e)&&Gt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Ft(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function $t(t,e,r,n,o,p,b){var z;if(n&&(z=p?n(t,o,p,b):n(t)),void 0!==z)return z;if(!Qt(t))return t;var P=qt(t);if(P){if(z=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&et.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,z)}else{var F=Dt(t),M=F==c||F==s;if(Jt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(F==h||F==i||M&&!p){if(W(t))return p?t:{};if(z=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:(e=at(t),Qt(e)?ct(e):{});var e}(M?{}:t),!e)return function(t,e){return Lt(t,Ct(t),e)}(t,function(t,e){return t&&Lt(e,Xt(e),t)}(z,t))}else{if(!$[F])return p?t:{};z=function(t,e,r,n){var o=t.constructor;switch(e){case g:return It(t);case u:case a:return new o(+t);case j:return function(t,e){var r=e?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case w:case m:case O:case A:case T:case x:case k:case S:case E:return function(t,e){var r=e?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case f:return function(t,e,r){var n=e?r(G(t),!0):G(t);return V(n,D,new t.constructor)}(t,n,r);case l:case y:return new o(t);case _:return function(t){var e=new t.constructor(t.source,R.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return function(t,e,r){var n=e?r(H(t),!0):H(t);return V(n,N,new t.constructor)}(t,n,r);case d:return i=t,xt?Object(xt.call(i)):{}}var i}(t,F,$t,e)}}b||(b=new Et);var I=b.get(t);if(I)return I;if(b.set(t,z),!P)var L=r?function(t){return function(t,e,r){var n=e(t);return qt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Xt,Ct)}(t):Xt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(L||t,(function(o,i){L&&(o=t[i=o]),Pt(z,i,$t(o,e,r,n,i,t,b))})),z}function Mt(t){return!(!Qt(t)||(e=t,Z&&Z in e))&&(Kt(t)||W(t)?nt:P).test(Wt(t));var e}function It(t){var e=new t.constructor(t.byteLength);return new ut(e).set(new ut(t)),e}function Lt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],a=n?n(r[u],t[u],u,r,t):void 0;Pt(r,u,void 0===a?t[u]:a)}return r}function Ut(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Mt(r)?r:void 0}zt.prototype.clear=function(){this.__data__=gt?gt(null):{}},zt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},zt.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===n?void 0:r}return et.call(e,t)?e[t]:void 0},zt.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:et.call(e,t)},zt.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?n:e,this},kt.prototype.clear=function(){this.__data__=[]},kt.prototype.delete=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():ft.call(e,r,1),!0)},kt.prototype.get=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},kt.prototype.has=function(t){return Ft(this.__data__,t)>-1},kt.prototype.set=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new zt,map:new(vt||kt),string:new zt}},St.prototype.delete=function(t){return Ut(this,t).delete(t)},St.prototype.get=function(t){return Ut(this,t).get(t)},St.prototype.has=function(t){return Ut(this,t).has(t)},St.prototype.set=function(t,e){return Ut(this,t).set(t,e),this},Et.prototype.clear=function(){this.__data__=new kt},Et.prototype.delete=function(t){return this.__data__.delete(t)},Et.prototype.get=function(t){return this.__data__.get(t)},Et.prototype.has=function(t){return this.__data__.has(t)},Et.prototype.set=function(t,e){var n=this.__data__;if(n instanceof kt){var o=n.__data__;if(!vt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new St(o)}return n.set(t,e),this};var Ct=lt?q(lt,Object):function(){return[]},Dt=function(t){return rt.call(t)};function Nt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function Wt(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(_t&&Dt(new _t(new ArrayBuffer(1)))!=j||vt&&Dt(new vt)!=f||yt&&Dt(yt.resolve())!=p||dt&&Dt(new dt)!=v||bt&&Dt(new bt)!=b)&&(Dt=function(t){var e=rt.call(t),r=e==h?t.constructor:void 0,n=r?Wt(r):void 0;if(n)switch(n){case jt:return j;case wt:return f;case mt:return p;case Ot:return v;case At:return b}return e});var qt=Array.isArray;function Ht(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Kt(t)}var Jt=ht||function(){return!1};function Kt(t){var e=Qt(t)?rt.call(t):"";return e==c||e==s}function Qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Xt(t){return Ht(t)?Rt(t):function(t){if(!Vt(t))return pt(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return $t(t,!0,!0)}}({get exports(){return S},set exports(t){S=t}},S);var E={};function R(t){return t&&t.__esModule?t:{default:t}}!function(t,e){var r=200,n="__lodash_hash_undefined__",o=1,i=2,u=9007199254740991,a="[object Arguments]",c="[object Array]",s="[object AsyncFunction]",f="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",_="[object GeneratorFunction]",v="[object Map]",y="[object Number]",d="[object Null]",b="[object Object]",g="[object Promise]",j="[object Proxy]",w="[object RegExp]",m="[object Set]",O="[object String]",A="[object Symbol]",T="[object Undefined]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",E=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[a]=P[c]=P[k]=P[f]=P[S]=P[l]=P[h]=P[p]=P[v]=P[y]=P[b]=P[w]=P[m]=P[O]=P[x]=!1;var F="object"==typeof z&&z&&z.Object===Object&&z,$="object"==typeof self&&self&&self.Object===Object&&self,M=F||$||Function("return this")(),I=e&&!e.nodeType&&e,L=I&&t&&!t.nodeType&&t,U=L&&L.exports===I,B=U&&F.process,C=function(){try{return B&&B.binding&&B.binding("util")}catch(t){}}(),D=C&&C.isTypedArray;function N(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function V(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function W(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var G,q,H,J=Array.prototype,K=Function.prototype,Q=Object.prototype,X=M["__core-js_shared__"],Y=K.toString,Z=Q.hasOwnProperty,tt=(G=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",et=Q.toString,rt=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=U?M.Buffer:void 0,ot=M.Symbol,it=M.Uint8Array,ut=Q.propertyIsEnumerable,at=J.splice,ct=ot?ot.toStringTag:void 0,st=Object.getOwnPropertySymbols,ft=nt?nt.isBuffer:void 0,lt=(q=Object.keys,H=Object,function(t){return q(H(t))}),ht=Ct(M,"DataView"),pt=Ct(M,"Map"),_t=Ct(M,"Promise"),vt=Ct(M,"Set"),yt=Ct(M,"WeakMap"),dt=Ct(Object,"create"),bt=Wt(ht),gt=Wt(pt),jt=Wt(_t),wt=Wt(vt),mt=Wt(yt),Ot=ot?ot.prototype:void 0,At=Ot?Ot.valueOf:void 0;function Tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function zt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new zt;++e<r;)this.add(t[e])}function St(t){var e=this.__data__=new xt(t);this.size=e.size}function Et(t,e){var r=Ht(t),n=!r&&qt(t),o=!r&&!n&&Jt(t),i=!r&&!n&&!o&&Zt(t),u=r||n||o||i,a=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var s in t)!e&&!Z.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Vt(s,c))||a.push(s);return a}function Rt(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function Pt(t){return null==t?void 0===t?T:d:ct&&ct in Object(t)?function(t){var e=Z.call(t,ct),r=t[ct];try{t[ct]=void 0;var n=!0}catch(t){}var o=et.call(t);n&&(e?t[ct]=r:delete t[ct]);return o}(t):function(t){return et.call(t)}(t)}function Ft(t){return Yt(t)&&Pt(t)==a}function $t(t,e,r,n,u){return t===e||(null==t||null==e||!Yt(t)&&!Yt(e)?t!=t&&e!=e:function(t,e,r,n,u,s){var p=Ht(t),_=Ht(e),d=p?c:Nt(t),g=_?c:Nt(e),j=(d=d==a?b:d)==b,T=(g=g==a?b:g)==b,x=d==g;if(x&&Jt(t)){if(!Jt(e))return!1;p=!0,j=!1}if(x&&!j)return s||(s=new St),p||Zt(t)?Lt(t,e,r,n,u,s):function(t,e,r,n,u,a,c){switch(r){case S:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!a(new it(t),new it(e)));case f:case l:case y:return Gt(+t,+e);case h:return t.name==e.name&&t.message==e.message;case w:case O:return t==e+"";case v:var s=V;case m:var p=n&o;if(s||(s=W),t.size!=e.size&&!p)return!1;var _=c.get(t);if(_)return _==e;n|=i,c.set(t,e);var d=Lt(s(t),s(e),n,u,a,c);return c.delete(t),d;case A:if(At)return At.call(t)==At.call(e)}return!1}(t,e,d,r,n,u,s);if(!(r&o)){var z=j&&Z.call(t,"__wrapped__"),E=T&&Z.call(e,"__wrapped__");if(z||E){var R=z?t.value():t,P=E?e.value():e;return s||(s=new St),u(R,P,r,n,s)}}if(!x)return!1;return s||(s=new St),function(t,e,r,n,i,u){var a=r&o,c=Ut(t),s=c.length,f=Ut(e),l=f.length;if(s!=l&&!a)return!1;var h=s;for(;h--;){var p=c[h];if(!(a?p in e:Z.call(e,p)))return!1}var _=u.get(t);if(_&&u.get(e))return _==e;var v=!0;u.set(t,e),u.set(e,t);var y=a;for(;++h<s;){var d=t[p=c[h]],b=e[p];if(n)var g=a?n(b,d,p,e,t,u):n(d,b,p,t,e,u);if(!(void 0===g?d===b||i(d,b,r,n,u):g)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,r,n,u,s)}(t,e,r,n,$t,u))}function Mt(t){return!(!Xt(t)||function(t){return!!tt&&tt in t}(t))&&(Kt(t)?rt:E).test(Wt(t))}function It(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Q,e!==n)return lt(t);var e,r,n,o=[];for(var i in Object(t))Z.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Lt(t,e,r,n,u,a){var c=r&o,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var h=-1,p=!0,_=r&i?new kt:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var v=t[h],y=e[h];if(n)var d=c?n(y,v,h,e,t,a):n(v,y,h,t,e,a);if(void 0!==d){if(d)continue;p=!1;break}if(_){if(!N(e,(function(t,e){if(o=e,!_.has(o)&&(v===t||u(v,t,r,n,a)))return _.push(e);var o}))){p=!1;break}}else if(v!==y&&!u(v,y,r,n,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function Ut(t){return function(t,e,r){var n=e(t);return Ht(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,te,Dt)}function Bt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ct(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Mt(r)?r:void 0}Tt.prototype.clear=function(){this.__data__=dt?dt(null):{},this.size=0},Tt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Tt.prototype.get=function(t){var e=this.__data__;if(dt){var r=e[t];return r===n?void 0:r}return Z.call(e,t)?e[t]:void 0},Tt.prototype.has=function(t){var e=this.__data__;return dt?void 0!==e[t]:Z.call(e,t)},Tt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=dt&&void 0===e?n:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,r=Rt(e,t);return!(r<0)&&(r==e.length-1?e.pop():at.call(e,r,1),--this.size,!0)},xt.prototype.get=function(t){var e=this.__data__,r=Rt(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return Rt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var r=this.__data__,n=Rt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},zt.prototype.clear=function(){this.size=0,this.__data__={hash:new Tt,map:new(pt||xt),string:new Tt}},zt.prototype.delete=function(t){var e=Bt(this,t).delete(t);return this.size-=e?1:0,e},zt.prototype.get=function(t){return Bt(this,t).get(t)},zt.prototype.has=function(t){return Bt(this,t).has(t)},zt.prototype.set=function(t,e){var r=Bt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,n),this},kt.prototype.has=function(t){return this.__data__.has(t)},St.prototype.clear=function(){this.__data__=new xt,this.size=0},St.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var o=n.__data__;if(!pt||o.length<r-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new zt(o)}return n.set(t,e),this.size=n.size,this};var Dt=st?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}(st(t),(function(e){return ut.call(t,e)})))}:function(){return[]},Nt=Pt;function Vt(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Wt(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(ht&&Nt(new ht(new ArrayBuffer(1)))!=S||pt&&Nt(new pt)!=v||_t&&Nt(_t.resolve())!=g||vt&&Nt(new vt)!=m||yt&&Nt(new yt)!=x)&&(Nt=function(t){var e=Pt(t),r=e==b?t.constructor:void 0,n=r?Wt(r):"";if(n)switch(n){case bt:return S;case gt:return v;case jt:return g;case wt:return m;case mt:return x}return e});var qt=Ft(function(){return arguments}())?Ft:function(t){return Yt(t)&&Z.call(t,"callee")&&!ut.call(t,"callee")},Ht=Array.isArray;var Jt=ft||function(){return!1};function Kt(t){if(!Xt(t))return!1;var e=Pt(t);return e==p||e==_||e==s||e==j}function Qt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Xt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yt(t){return null!=t&&"object"==typeof t}var Zt=D?function(t){return function(e){return t(e)}}(D):function(t){return Yt(t)&&Qt(t.length)&&!!P[Pt(t)]};function te(t){return null!=(e=t)&&Qt(e.length)&&!Kt(e)?Et(t):It(t);var e}t.exports=function(t,e){return $t(t,e)}}({get exports(){return E},set exports(t){E=t}},E),Object.defineProperty(k,"__esModule",{value:!0});var P=Object.defineProperty,F=(t,e,r)=>(((t,e,r)=>{e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r),$=R(S),M=R(E),I=k.RuleEngine=class{constructor(t,e){F(this,"rules",[]),F(this,"activeRules",[]),F(this,"ignoreFactChanges",!1),t&&this.register(t),e&&(this.ignoreFactChanges=e.ignoreFactChanges||!1)}init(){this.rules=[],this.activeRules=[]}register(t){Array.isArray(t)?this.rules.push(...t):null!==t&&"object"==typeof t&&this.rules.push(t),this.sync()}sync(){this.activeRules=this.rules.filter((t=>{if(void 0===t.on&&(t.on=!0),!0===t.on)return t})),this.activeRules.sort(((t,e)=>t.priority&&e.priority?e.priority-t.priority:0))}execute(t,e){const r=this;let n=!1;const o=$.default.call(void 0,t);let i=$.default.call(void 0,t),u=this.activeRules;const a=[],c=this.ignoreFactChanges;!function t(s){const f={rule:()=>u[s],when:t=>{if(t){const t=u[s].consequence;t.ruleRef=u[s].id||u[s].name||`index_${s}`,r.nextTick((()=>{a.push(t.ruleRef),t.call(o,f,o)}))}else r.nextTick((()=>{f.next()}))},restart:()=>t(0),stop:()=>(n=!0,t(0)),next:()=>{c||M.default.call(void 0,i,o)?r.nextTick((()=>t(s+1))):(i=$.default.call(void 0,o),r.nextTick((()=>{f.restart()})))}};if(u=r.activeRules,s<u.length&&!n){u[s].condition.call(o,f,o)}else r.nextTick((()=>{o.matchPath=a,e(o)}))}(0)}nextTick(t){(null==x?void 0:p)?null==x||p(t):setTimeout(t,0)}findRules(t){return void 0===t?this.rules:(Object.keys(t).forEach((e=>void 0===t[e]&&delete t[e])),this.rules.filter((e=>Object.keys(t).some((r=>t[r]===e[r])))))}turn(t,e){const r=this.findRules(e);for(let e=0,n=r.length;e<n;e++)r[e].on="on"===t.toLowerCase();this.sync()}prioritize(t,e){const r=this.findRules(e);for(let e=0,n=r.length;e<n;e++)r[e].priority=t;this.sync()}};t.RuleEngine=I,t.default=k,Object.defineProperty(t,"__esModule",{value:!0})}));