@nocobase/plugin-multi-keyword-filter 2.2.16 → 2.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/client/103.b39ee70786cb13a7.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/client-v2/103.dfed67c95bcd8a1d.js +10 -0
  4. package/dist/client-v2/index.js +1 -1
  5. package/dist/externalVersion.js +4 -4
  6. package/dist/node_modules/qs/.editorconfig +4 -1
  7. package/dist/node_modules/qs/.github/SECURITY.md +11 -0
  8. package/dist/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  9. package/dist/node_modules/qs/dist/qs.js +90 -2036
  10. package/dist/node_modules/qs/lib/index.js +1 -1
  11. package/dist/node_modules/qs/lib/parse.js +215 -66
  12. package/dist/node_modules/qs/lib/stringify.js +90 -32
  13. package/dist/node_modules/qs/lib/utils.js +189 -53
  14. package/dist/node_modules/qs/node_modules/es-define-property/.eslintrc +13 -0
  15. package/dist/node_modules/qs/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  16. package/dist/node_modules/qs/node_modules/es-define-property/.nycrc +9 -0
  17. package/dist/node_modules/qs/node_modules/es-define-property/index.d.ts +3 -0
  18. package/dist/node_modules/qs/node_modules/es-define-property/index.js +14 -0
  19. package/dist/node_modules/qs/node_modules/es-define-property/package.json +81 -0
  20. package/dist/node_modules/qs/node_modules/es-define-property/test/index.js +56 -0
  21. package/dist/node_modules/qs/node_modules/side-channel/.editorconfig +9 -0
  22. package/dist/node_modules/qs/node_modules/side-channel/.eslintrc +12 -0
  23. package/dist/node_modules/qs/node_modules/side-channel/.github/FUNDING.yml +12 -0
  24. package/dist/node_modules/qs/node_modules/side-channel/.nycrc +13 -0
  25. package/dist/node_modules/qs/node_modules/side-channel/index.d.ts +14 -0
  26. package/dist/node_modules/qs/node_modules/side-channel/index.js +46 -0
  27. package/dist/node_modules/qs/node_modules/side-channel/package.json +85 -0
  28. package/dist/node_modules/qs/node_modules/side-channel/test/index.js +120 -0
  29. package/dist/node_modules/qs/node_modules/side-channel-list/.editorconfig +9 -0
  30. package/dist/node_modules/qs/node_modules/side-channel-list/.eslintrc +11 -0
  31. package/dist/node_modules/qs/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  32. package/dist/node_modules/qs/node_modules/side-channel-list/.nycrc +13 -0
  33. package/dist/node_modules/qs/node_modules/side-channel-list/index.d.ts +13 -0
  34. package/dist/node_modules/qs/node_modules/side-channel-list/index.js +111 -0
  35. package/dist/node_modules/qs/node_modules/side-channel-list/list.d.ts +14 -0
  36. package/dist/node_modules/qs/node_modules/side-channel-list/package.json +77 -0
  37. package/dist/node_modules/qs/node_modules/side-channel-list/test/index.js +154 -0
  38. package/dist/node_modules/qs/package.json +1 -1
  39. package/dist/node_modules/qs/test/empty-keys-cases.js +261 -31
  40. package/dist/node_modules/qs/test/parse.js +1281 -57
  41. package/dist/node_modules/qs/test/stringify.js +851 -58
  42. package/dist/node_modules/qs/test/utils.js +505 -3
  43. package/package.json +5 -2
  44. package/dist/client/103.513149b773e262dc.js +0 -10
  45. package/dist/client-v2/103.8bcbf628d0af8457.js +0 -10
  46. package/dist/node_modules/qs/.eslintrc +0 -38
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/client-v2"),require("react"),require("antd")):"function"==typeof define&&define.amd?define("@nocobase/plugin-multi-keyword-filter/client-v2",["@ant-design/icons","@nocobase/flow-engine","@nocobase/client-v2","react","antd"],t):"object"==typeof exports?exports["@nocobase/plugin-multi-keyword-filter/client-v2"]=t(require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/client-v2"),require("react"),require("antd")):e["@nocobase/plugin-multi-keyword-filter/client-v2"]=t(e["@ant-design/icons"],e["@nocobase/flow-engine"],e["@nocobase/client-v2"],e.react,e.antd)}(self,function(e,t,r,n,o){return function(){var i,a,l,c={792:function(e,t,r){"use strict";var n=r(894),o=r(20),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},20:function(e,t,r){"use strict";var n=r(460),o=r(894),i=r(710),a=o("%TypeError%"),l=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,l),p=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,c,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var s=function(){return u(n,l,arguments)};p?p(e.exports,"apply",{value:s}):e.exports.apply=s},866:function(e,t,r){"use strict";var n=r(894)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},710:function(e,t,r){"use strict";var n=r(894),o=r(356),i=r(866)(),a=r(906),l=n("%TypeError%"),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||c(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},356:function(e,t,r){"use strict";var n=r(13)(),o=r(894),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var a=o("%SyntaxError%"),l=o("%TypeError%"),c=r(906);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],f=!!c&&c(e,t);if(i)i(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===o&&f?f.writable:!o});else if(!p&&(n||o||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},13:function(e,t,r){"use strict";var n=r(894)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},552:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var c=o(arguments,1),u=r(0,l.length-c.length),p=[],f=0;f<u;f++)p[f]="$"+f;if(a=Function("binder","return function ("+i(p,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,n(c,arguments));return Object(t)===t?t:this}return l.apply(e,n(c,arguments))}),l.prototype){var s=function(){};s.prototype=l.prototype,a.prototype=new s,s.prototype=null}return a}},460:function(e,t,r){"use strict";var n=r(552);e.exports=Function.prototype.bind||n},894:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},p=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(40)(),s=r(675)(),y=Object.getPrototypeOf||(s?function(e){return e.__proto__}:null),b={},d="u">typeof Uint8Array&&y?y(Uint8Array):n,g={"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":b,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&f&&y?y(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&f&&y?y(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&y?y(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet};if(y)try{null.error}catch(e){var m=y(y(e));g["%Error.prototype%"]=m}var h=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(r=y(o.prototype))}return g[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(460),w=r(204),S=O.call(Function.call,Array.prototype.concat),j=O.call(Function.apply,Array.prototype.splice),P=O.call(Function.call,String.prototype.replace),A=O.call(Function.call,String.prototype.slice),x=O.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,_=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return P(e,E,function(e,t,r,o){n[n.length]=r?P(o,k,"$1"):t||e}),n},I=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(g,n)){var i=g[n];if(i===b&&(i=h(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=_(e),n=r.length>0?r[0]:"",i=I("%"+n+"%",t),l=i.name,u=i.value,p=!1,f=i.alias;f&&(n=f[0],j(r,S([0,1],f)));for(var s=1,y=!0;s<r.length;s+=1){var b=r[s],d=A(b,0,1),m=A(b,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==b&&y||(p=!0),n+="."+b,w(g,l="%"+n+"%"))u=g[l];else if(null!=u){if(!(b in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&s+1>=r.length){var h=c(u,b);u=(y=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:u[b]}else y=w(u,b),u=u[b];y&&!p&&(g[l]=u)}}return u}},906:function(e,t,r){"use strict";var n=r(894)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},675:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},40:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,o=r(674);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},674:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},204:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty;e.exports=r(460).call(n,o)},458:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&c&&"function"==typeof c.get?c.get:null,p=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,h=String.prototype.slice,v=String.prototype.replace,O=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,j=Array.prototype.concat,P=Array.prototype.join,A=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var C=r(445),D=C.custom,M=L(D)?D:null;function U(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function B(e){return"[object Array]"===G(e)&&(!R||!("object"==typeof e&&R in e))}function W(e){return"[object RegExp]"===G(e)&&(!R||!("object"==typeof e&&R in e))}function L(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var c,d,O,S,x,k=n||{};if(q(k,"quoteStyle")&&"single"!==k.quoteStyle&&"double"!==k.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(k,"maxStringLength")&&("number"==typeof k.maxStringLength?k.maxStringLength<0&&k.maxStringLength!==1/0:null!==k.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var D=!q(k,"customInspect")||k.customInspect;if("boolean"!=typeof D&&"symbol"!==D)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(k,"indent")&&null!==k.indent&&" "!==k.indent&&!(parseInt(k.indent,10)===k.indent&&k.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(k,"numericSeparator")&&"boolean"!=typeof k.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=k.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(h.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}return U(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",r)}(t,k);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var Y=String(t);return $?T(t,Y):Y}if("bigint"==typeof t){var Z=String(t)+"n";return $?T(t,Z):Z}var ee=void 0===k.depth?5:k.depth;if(void 0===o&&(o=0),o>=ee&&ee>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var et=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=P.call(Array(e.indent+1)," ")}return{base:r,prev:P.call(Array(t+1),r)}}(k,o);if(void 0===l)l=[];else if(H(l,t)>=0)return"[Circular]";function er(t,r,n){if(r&&(l=A.call(l)).push(r),n){var i={depth:k.depth};return q(k,"quoteStyle")&&(i.quoteStyle=k.quoteStyle),e(t,i,o+1,l)}return e(t,k,o+1,l)}if("function"==typeof t&&!W(t)){var en=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=X(t,er);return"[Function"+(en?": "+en:" (anonymous)")+"]"+(eo.length>0?" { "+P.call(eo,", ")+" }":"")}if(L(t)){var ei=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||I?ei:z(ei)}if((ea=t)&&"object"==typeof ea&&("u">typeof HTMLElement&&ea instanceof HTMLElement||"string"==typeof ea.nodeName&&"function"==typeof ea.getAttribute)){for(var ea,el,ec="<"+w.call(String(t.nodeName)),eu=t.attributes||[],ep=0;ep<eu.length;ep++){ec+=" "+eu[ep].name+"="+U((el=eu[ep].value,v.call(String(el),/"/g,"&quot;")),"double",k)}return ec+=">",t.childNodes&&t.childNodes.length&&(ec+="..."),ec+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ef=X(t,er);return et&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(ef)?"["+K(ef,et)+"]":"[ "+P.call(ef,", ")+" ]"}if("[object Error]"===G(c=t)&&(!R||!("object"==typeof c&&R in c))){var es=X(t,er);return"cause"in Error.prototype||!("cause"in t)||F.call(t,"cause")?0===es.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(es,", ")+" }":"{ ["+String(t)+"] "+P.call(j.call("[cause]: "+er(t.cause),es),", ")+" }"}if("object"==typeof t&&D){if(M&&"function"==typeof t[M]&&C)return C(t,{depth:ee-o});else if("symbol"!==D&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ey=[];return a&&a.call(t,function(e,r){ey.push(er(r,t,!0)+" => "+er(e,t))}),J("Map",i.call(t),ey,et)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eb=[];return p&&p.call(t,function(e){eb.push(er(e,t))}),J("Set",u.call(t),eb,et)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===G(d=t)&&(!R||!("object"==typeof d&&R in d)))return z(er(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return z(er(E.call(t)));if("[object Boolean]"===G(O=t)&&(!R||!("object"==typeof O&&R in O)))return z(b.call(t));if("[object String]"===G(S=t)&&(!R||!("object"==typeof S&&R in S)))return z(er(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(x=t)&&(!R||!("object"==typeof x&&R in x)))&&!W(t)){var ed=X(t,er),eg=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,em=t instanceof Object?"":"null prototype",eh=!eg&&R&&Object(t)===t&&R in t?h.call(G(t),8,-1):em?"Object":"",ev=(eg||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eh||em?"["+P.call(j.call([],eh||[],em||[]),": ")+"] ":"");return 0===ed.length?ev+"{}":et?ev+"{"+K(ed,et)+"}":ev+"{ "+P.call(ed,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return $.call(e,t)}function G(e){return d.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function V(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function z(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):P.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function X(e,t){var r,n=B(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=q(e,i)?t(e[i],e):""}var a="function"==typeof k?k(e):[];if(I){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var c in e)if(q(e,c)&&(!n||String(Number(c))!==c||!(c<e.length)))if(I&&r["$"+c]instanceof Symbol)continue;else S.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e));if("function"==typeof k)for(var u=0;u<a.length;u++)F.call(e,a[u])&&o.push("["+t(a[u])+"]: "+t(e[a[u]],e));return o}},136:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},600:function(e,t,r){"use strict";var n=r(477),o=r(347);e.exports={formats:r(136),parse:o,stringify:n}},347:function(e,t,r){"use strict";var n=r(361),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,u),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<p.length;++y)0===p[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[y]?s="utf-8":"utf8=%26%2310003%3B"===p[y]&&(s="iso-8859-1"),f=y,y=p.length);for(y=0;y<p.length;++y)if(y!==f){var y,b,d,g=p[y],m=g.indexOf("]="),h=-1===m?g.indexOf("="):m+1;-1===h?(b=t.decoder(g,a.decoder,s,"key"),d=t.strictNullHandling?null:""):(b=t.decoder(g.slice(0,h),a.decoder,s,"key"),d=n.maybeMap(l(g.slice(h+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),d&&t.interpretNumericEntities&&"iso-8859-1"===s&&(d=d.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(d=i(d)?[d]:d),o.call(r,b)?r[b]=n.combine(r[b],d):r[b]=d}return r},u=function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&c!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},p=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=l?i.slice(0,l.index):i,p=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var f=0;r.depth>0&&null!==(l=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(l[1])}return l&&p.push("["+i.slice(l.index)+"]"),u(p,t,r,n)}},f=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?c(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],s=p(u,o[u],r,"string"==typeof e);i=n.merge(i,s,r)}return!0===r.allowSparse?i:n.compact(i)}},477:function(e,t,r){"use strict";var n=r(921),o=r(361),i=r(136),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,p=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},d=function e(t,r,i,a,l,u,f,s,d,g,m,h,v,O,w,S){for(var j,P,A=t,x=S,E=0,k=!1;void 0!==(x=x.get(b))&&!k;){var _=x.get(t);if(E+=1,void 0!==_)if(_===E)throw RangeError("Cyclic object value");else k=!0;void 0===x.get(b)&&(E=0)}if("function"==typeof s?A=s(r,A):A instanceof Date?A=m(A):"comma"===i&&c(A)&&(A=o.maybeMap(A,function(e){return e instanceof Date?m(e):e})),null===A){if(l)return f&&!O?f(r,y.encoder,w,"key",h):r;A=""}if("string"==typeof(j=A)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(A))return f?[v(O?r:f(r,y.encoder,w,"key",h))+"="+v(f(A,y.encoder,w,"value",h))]:[v(r)+"="+v(String(A))];var I=[];if(void 0===A)return I;if("comma"===i&&c(A))O&&f&&(A=o.maybeMap(A,f)),P=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(s))P=s;else{var R=Object.keys(A);P=d?R.sort(d):R}for(var F=a&&c(A)&&1===A.length?r+"[]":r,N=0;N<P.length;++N){var T=P[N],C="object"==typeof T&&void 0!==T.value?T.value:A[T];if(!u||null!==C){var D=c(A)?"function"==typeof i?i(F,T):F:F+(g?"."+T:"["+T+"]");S.set(t,E);var M=n();M.set(b,S),p(I,e(C,D,i,a,l,u,"comma"===i&&O&&c(A)?null:f,s,d,g,m,h,v,O,w,M))}}return I},g=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=y.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,o,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var u=[];if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=l[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var s="comma"===f&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var y=n(),b=0;b<r.length;++b){var m=r[b];a.skipNulls&&null===i[m]||p(u,d(i[m],m,f,s,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var h=u.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""}},361:function(e,t,r){"use strict";var n=r(136),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],p=i[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:i,prop:u}),r.push(p))}return l(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<l.length;++u){var p=l.charCodeAt(u);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){c+=l.charAt(u);continue}if(p<128){c+=a[p];continue}if(p<2048){c+=a[192|p>>6]+a[128|63&p];continue}if(p<55296||p>=57344){c+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p];continue}u+=1,c+=a[240|(p=65536+((1023&p)<<10|1023&l.charCodeAt(u)))>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},921:function(e,t,r){"use strict";var n=r(894),o=r(792),i=r(458),a=n("%TypeError%"),l=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),b=o("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},g=function(e,t){var r=d(e,t);return r&&r.value},m=function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return s(t,n)}else if(r)return g(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(c){if(t)return b(t,n)}else if(r)return!!d(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):c?(t||(t=new c),y(t,n,o)):(r||(r={key:{},next:null}),m(r,n,o))}};return n}},375:function(t){"use strict";t.exports=e},485:function(e){"use strict";e.exports=r},694:function(e){"use strict";e.exports=t},59:function(e){"use strict";e.exports=o},155:function(e){"use strict";e.exports=n},445:function(){}},u={};function p(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,p),r.exports}p.m=c,p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce(function(t,r){return p.f[r](e,t),t},[]))},p.u=function(e){return""+e+".8bcbf628d0af8457.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f={},p.l=function(e,t,r,n){if(f[e])return void f[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var c=a[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-multi-keyword-filter/client-v2:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-rspack","@nocobase/plugin-multi-keyword-filter/client-v2:"+r),o.src=e),f[e]=[t];var u=function(t,r){o.onerror=o.onload=null,clearTimeout(s);var n=f[e];if(delete f[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),i&&document.head.appendChild(o)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.g.importScripts&&(s=p.g.location+"");var f,s,y=p.g.document;if(!s&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(s=y.currentScript.src),!s)){var b=y.getElementsByTagName("script");if(b.length)for(var d=b.length-1;d>-1&&(!s||!/^http(s?):/.test(s));)s=b[d--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");p.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},p.f.j=function(e,t){var r=p.o(i,e)?i[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var n=new Promise(function(t,n){r=i[e]=[t,n]});t.push(r[2]=n);var o=p.p+p.u(e),a=Error();p.l(o,function(t){if(p.o(i,e)&&(0!==(r=i[e])&&(i[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",a.name="ChunkLoadError",a.type=n,a.request=o,r[1](a)}},"chunk-"+e,e)}},a=function(e,t){var r,n,o=t[0],a=t[1],l=t[2],c=0;if(o.some(function(e){return 0!==i[e]})){for(r in a)p.o(a,r)&&(p.m[r]=a[r]);l&&l(p)}for(e&&e(t);c<o.length;c++)n=o[c],p.o(i,n)&&i[n]&&i[n][0](),i[n]=0},(l=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var g={};return!function(){"use strict";var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var r=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");r.indexOf("/static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/")>=0&&(e=r.replace(/\/[^\/]+$/,"/"))}if(!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",l=a.indexOf(i);e=l>=0?a.slice(0,l+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/"}p.p=e}(),!function(){"use strict";p.r(g),p.d(g,{default:function(){return F}});var e=p(375),t=p(485),r=p(59),n=p(155),o=p.n(n),i=p(600),a=p.n(i);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var u=function(e){var t,r,n,o,i=e.url||"",u=(function(e){if(Array.isArray(e))return e}(t=i.split("?"))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return l(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return(i+a().stringify(e.params,{strictNullHandling:!0,arrayFormat:"brackets"})).length<=2e3?e:(u&&(e.params=c({},a().parse(u,{strictNullHandling:!0}),e.params)),n=c({},(r=e.data)&&(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!Array.isArray(r)?e.data:{}),o=o={__params__:e.params,__method__:e.method},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),e.data=n,e.params={},e.method="post",e)},f=p(694),s=JSON.parse('{"UU":"@nocobase/plugin-multi-keyword-filter"}');function y(){var e=(0,f.useFlowEngine)();return function(t,r){var n,o;return e.context.t(t,(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),o=o={ns:[s.UU,"client"]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}}function b(e){return"string"==typeof e?e.trim():e}function d(e){return String(b(e))}function m(e){return/^[+-]?\d+$/.test(e)}function h(e){return/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(e)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=function(t){var i,a,l,c=t.fieldInterface,u=function(e,t){if(null==e)return{};var r,n,o,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(o=0,r=Reflect.ownKeys(Object(e));o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(t,["fieldInterface"]),f=(0,n.useRef)(null),s=w((0,n.useState)(!1),2),g=s[0],v=s[1],S=w((0,n.useState)(!1),2),j=S[0],P=S[1],A=w((0,n.useState)([]),2),x=A[0],E=A[1],k=w((0,n.useState)([]),2),_=k[0],I=k[1],R=w((0,n.useState)([]),2),F=R[0],N=R[1],T=y(),C=function(e,r){var n;null==(n=t.onChange)||n.call(t,"integer"===c||"id"===c?e.map(d).filter(m):"number"===c?e.map(d).filter(h):"percent"===c?e.map(b).map(function(e){return parseFloat(String(e))}).filter(function(e){return!Number.isNaN(e)}):e.map(b).filter(function(e){return""!==e}),r)},D=function(e,t){var r=new Set;return e.forEach(function(e){t.forEach(function(t){var n=e[t];null!=n&&""!==n&&r.add(String(n))})}),Array.from(r).join("\n")},M=function(e){if(!e)return void r.message.warning(T("noValidKeywords"));var t=e.split("\n").filter(Boolean);C(t),r.message.success(T("importSuccess",{count:t.length}))};return o().createElement(o().Fragment,null,o().createElement(r.Space.Compact,{block:!0},o().createElement(r.Select,(i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({mode:"tags",tokenSeparators:["\n"],placeholder:T("keywordsInputPlaceholder"),allowClear:!0,suffixIcon:null,maxTagCount:"responsive",open:!!(null==(l=u.value)?void 0:l.length)&&void 0},u),a=a={onChange:function(e,t){C(e,t)}},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(a,e))}),i)),o().createElement(r.Tooltip,{title:T("importExcel")},o().createElement(r.Button,{onClick:function(){var e;null==(e=f.current)||e.click()},loading:g,icon:o().createElement(e.UploadOutlined,null)}))),o().createElement("input",{type:"file",ref:f,hidden:!0,accept:".xlsx,.xls",onChange:function(e){var t;return(t=function(){var t,n,o,i,a,l;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:c(0)}),l(a,"throw",{value:c(1)}),l(a,"return",{value:c(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function c(l){return function(c){var u=[l,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(c){var u,f,s,y;switch(c.label){case 0:if(!(n=null==(t=e.target.files)?void 0:t[0]))return[2];c.label=1;case 1:return c.trys.push([1,4,5,6]),v(!0),[4,p.e("103").then(p.bind(p,802))];case 2:return o=c.sent(),[4,(u=n,f=o,new Promise(function(e,t){var r=new FileReader;r.onload=function(r){try{var n,o=null==(n=r.target)?void 0:n.result,i=f.read(o,{type:"array"}),a=i.SheetNames[0],l=i.Sheets[a],c=f.utils.sheet_to_json(l,{defval:""});e(c)}catch(e){t(e)}},r.onerror=function(e){return t(e)},r.readAsArrayBuffer(u)}))];case 3:if(0===(i=c.sent()).length)return r.message.error(T("excelFileEmpty")),[2];return E(a=Object.keys(i[0])),N(i),1===a.length?M((s=i,y=a[0],s.map(function(e){return e[y]}).filter(function(e){return null!=e&&""!==e}).join("\n"))):P(!0),[3,6];case 4:return l=c.sent(),console.error(T("errorParsingExcel"),l),r.message.error(T("failedToParseExcel")),[3,6];case 5:return v(!1),e.target.value="",[7];case 6:return[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){O(i,n,o,a,l,"next",e)}function l(e){O(i,n,o,a,l,"throw",e)}a(void 0)})})()}}),o().createElement(r.Modal,{title:T("selectExcelColumns"),open:j,onOk:function(){0===_.length?r.message.warning(T("selectAtLeastOneColumn")):(M(D(F,_)),P(!1))},onCancel:function(){return P(!1)},okText:T("confirm"),cancelText:T("cancel")},o().createElement(r.Alert,{type:"info",description:o().createElement(r.Typography,null,o().createElement("ul",null,T("tips").split("\n").map(function(e){return o().createElement("li",{key:e},e)})))}),o().createElement(r.Select,{mode:"multiple",value:_,onChange:function(e){return I(e)},placeholder:T("selectColumnsPlaceholder"),options:x.map(function(e){return{label:e,value:e}})})))};function j(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function P(e,t,r){return(P=k()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&x(o,r.prototype),o}).apply(null,arguments)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t="function"==typeof Map?new Map:void 0;return(E=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return P(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var _=["input","phone","email","uuid","sequence","integer","number","id","percent","nanoid"];function I(t){var n=t.type,i=y(),a="等于任意一个"===i("equalsAny"),l=i("in"===n?"equalsAny":"notEqualsAny");return o().createElement("div",null,l," ",o().createElement(r.Tooltip,{title:o().createElement("div",null,i("providedByPlugin",{pluginName:i("pluginName")})," ",o().createElement("a",{href:"https://".concat(a?"docs-cn":"docs",".nocobase.com/handbook/multi-keyword-filter"),target:"_blank",rel:"noopener noreferrer"},o().createElement(e.LinkOutlined,null)))},o().createElement(e.QuestionCircleOutlined,null)))}function R(e,t){return{label:o().createElement(I,{type:t}),value:"in"===t?"$in":"$notIn",schema:{"x-component":"MultipleKeywordsInput","x-component-props":{fieldInterface:e}}}}var F=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=A(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,k()?Reflect.construct(e,t||[],A(this).constructor):e.apply(this,t))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&x(r,e),t=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:c(0)}),l(a,"throw",{value:c(1)}),l(a,"return",{value:c(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function c(l){return function(c){var u=[l,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){return e=this,_.forEach(function(t){e.app.addFieldInterfaceOperator(t,R(t,"in")),e.app.addFieldInterfaceOperator(t,R(t,"notIn"))}),this.app.addComponents({MultipleKeywordsInput:S}),setTimeout(function(){e.app.apiClient.axios.interceptors.request.use(u)}),[2]})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){j(i,n,o,a,l,"next",e)}function l(e){j(i,n,o,a,l,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(E(t.Plugin))}(),g}()});
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ant-design/icons"),require("react"),require("antd"),require("@nocobase/flow-engine"),require("@nocobase/client-v2")):"function"==typeof define&&define.amd?define("@nocobase/plugin-multi-keyword-filter/client-v2",["@ant-design/icons","react","antd","@nocobase/flow-engine","@nocobase/client-v2"],e):"object"==typeof exports?exports["@nocobase/plugin-multi-keyword-filter/client-v2"]=e(require("@ant-design/icons"),require("react"),require("antd"),require("@nocobase/flow-engine"),require("@nocobase/client-v2")):t["@nocobase/plugin-multi-keyword-filter/client-v2"]=e(t["@ant-design/icons"],t.react,t.antd,t["@nocobase/flow-engine"],t["@nocobase/client-v2"])}(self,function(t,e,r,o,n){return function(){var i,a,c,l={6255:function(t,e,r){"use strict";var o=r(2460),n=r(8633),i=r(7821);t.exports=r(1826)||o.call(i,n)},8633:function(t){"use strict";t.exports=Function.prototype.apply},7821:function(t){"use strict";t.exports=Function.prototype.call},5889:function(t,e,r){"use strict";var o=r(2460),n=r(4002),i=r(7821),a=r(6255);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},1826:function(t){"use strict";t.exports="u">typeof Reflect&&Reflect&&Reflect.apply},4781:function(t,e,r){"use strict";var o,n=r(5889),i=r(7955);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(t){return l(null==t?t:c(t))}},4965:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},7955:function(t,e,r){"use strict";var o=r(4965);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},8096:function(t){"use strict";t.exports=EvalError},8052:function(t){"use strict";t.exports=Error},7049:function(t){"use strict";t.exports=RangeError},1977:function(t){"use strict";t.exports=ReferenceError},2873:function(t){"use strict";t.exports=SyntaxError},4002:function(t){"use strict";t.exports=TypeError},1621:function(t){"use strict";t.exports=URIError},8983:function(t){"use strict";t.exports=Object},1552:function(t){"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r},n=function(t,e){for(var r=[],o=e||0,n=0;o<t.length;o+=1,n+=1)r[n]=t[o];return r},i=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};t.exports=function(t){var a,c=this;if("function"!=typeof c||"[object Function]"!==e.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var l=n(arguments,1),p=r(0,c.length-l.length),u=[],y=0;y<p;y++)u[y]="$"+y;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=c.apply(this,o(l,arguments));return Object(e)===e?e:this}return c.apply(t,o(l,arguments))}),c.prototype){var f=function(){};f.prototype=c.prototype,a.prototype=new f,f.prototype=null}return a}},2460:function(t,e,r){"use strict";var o=r(1552);t.exports=Function.prototype.bind||o},2079:function(t,e,r){"use strict";t.exports=r(8983).getPrototypeOf||null},1065:function(t){"use strict";t.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},3439:function(t,e,r){"use strict";var o=r(1065),n=r(2079),i=r(4781);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},2204:function(t,e,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty;t.exports=r(2460).call(o,n)},8105:function(t){"use strict";t.exports=Math.abs},8299:function(t){"use strict";t.exports=Math.floor},4116:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},5243:function(t){"use strict";t.exports=Math.max},9465:function(t){"use strict";t.exports=Math.min},5587:function(t){"use strict";t.exports=Math.pow},6221:function(t){"use strict";t.exports=Math.round},9068:function(t,e,r){"use strict";var o=r(4116);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},458:function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,y="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,b=Function.prototype.toString,g=String.prototype.match,h=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,S=RegExp.prototype.test,A=Array.prototype.concat,P=Array.prototype.join,j=Array.prototype.slice,E=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k?"object":"symbol")?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var n=String(o),i=h.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=r(9445),U=N.custom,T=q(U)?U:null,L={__proto__:null,double:'"',single:"'"},C={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,e,r){var o=L[r.quoteStyle||e];return o+t+o}function W(t){return!R||!("object"==typeof t&&(R in t||void 0!==t[R]))}function G(t){return"[object Array]"===H(t)&&W(t)}function $(t){return"[object RegExp]"===H(t)&&W(t)}function q(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,c){var l,m,w,S,E,_=o||{};if(V(_,"quoteStyle")&&!V(L,_.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(_,"maxStringLength")&&("number"==typeof _.maxStringLength?_.maxStringLength<0&&_.maxStringLength!==1/0:null!==_.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=!V(_,"customInspect")||_.customInspect;if("boolean"!=typeof U&&"symbol"!==U)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(_,"indent")&&null!==_.indent&&" "!==_.indent&&!(parseInt(_.indent,10)===_.indent&&_.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(_,"numericSeparator")&&"boolean"!=typeof _.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var K=_.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength;return t(h.call(e,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=C[r.quoteStyle||"single"];return n.lastIndex=0,B(v.call(v.call(e,n,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(e,_);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var te=String(e);return K?D(e,te):te}if("bigint"==typeof e){var tr=String(e)+"n";return K?D(e,tr):tr}var to=void 0===_.depth?5:_.depth;if(void 0===n&&(n=0),n>=to&&to>0&&"object"==typeof e)return G(e)?"[Array]":"[Object]";var tn=function(t,e){var r;if(" "===t.indent)r=" ";else{if("number"!=typeof t.indent||!(t.indent>0))return null;r=P.call(Array(t.indent+1)," ")}return{base:r,prev:P.call(Array(e+1),r)}}(_,n);if(void 0===c)c=[];else if(z(c,e)>=0)return"[Circular]";function ti(e,r,o){if(r&&(c=j.call(c)).push(r),o){var i={depth:_.depth};return V(_,"quoteStyle")&&(i.quoteStyle=_.quoteStyle),t(e,i,n+1,c)}return t(e,_,n+1,c)}if("function"==typeof e&&!$(e)){var ta=function(t){if(t.name)return t.name;var e=g.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tc=tt(e,ti);return"[Function"+(ta?": "+ta:" (anonymous)")+"]"+(tc.length>0?" { "+P.call(tc,", ")+" }":"")}if(q(e)){var tl=k?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||k?tl:Q(tl)}if((tp=e)&&"object"==typeof tp&&("u">typeof HTMLElement&&tp instanceof HTMLElement||"string"==typeof tp.nodeName&&"function"==typeof tp.getAttribute)){for(var tp,tu,ty="<"+O.call(String(e.nodeName)),tf=e.attributes||[],ts=0;ts<tf.length;ts++){ty+=" "+tf[ts].name+"="+B((tu=tf[ts].value,v.call(String(tu),/"/g,"&quot;")),"double",_)}return ty+=">",e.childNodes&&e.childNodes.length&&(ty+="..."),ty+="</"+O.call(String(e.nodeName))+">"}if(G(e)){if(0===e.length)return"[]";var td=tt(e,ti);return tn&&!function(t){for(var e=0;e<t.length;e++)if(z(t[e],"\n")>=0)return!1;return!0}(td)?"["+Z(td,tn)+"]":"[ "+P.call(td,", ")+" ]"}if("[object Error]"===H(l=e)&&W(l)){var tm=tt(e,ti);return"cause"in Error.prototype||!("cause"in e)||F.call(e,"cause")?0===tm.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(tm,", ")+" }":"{ ["+String(e)+"] "+P.call(A.call("[cause]: "+ti(e.cause),tm),", ")+" }"}if("object"==typeof e&&U){if(T&&"function"==typeof e[T]&&N)return N(e,{depth:to-n});else if("symbol"!==U&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var tb=[];return a&&a.call(e,function(t,r){tb.push(ti(r,e,!0)+" => "+ti(t,e))}),Y("Map",i.call(e),tb,tn)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var tg=[];return u&&u.call(e,function(t){tg.push(ti(t,e))}),Y("Set",p.call(e),tg,tn)}if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{y.call(t,y)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if("[object Number]"===H(m=e)&&W(m))return Q(ti(Number(e)));if(function(t){if(!t||"object"!=typeof t||!x)return!1;try{return x.call(t),!0}catch(t){}return!1}(e))return Q(ti(x.call(e)));if("[object Boolean]"===H(w=e)&&W(w))return Q(d.call(e));if("[object String]"===H(S=e)&&W(S))return Q(ti(String(e)));if("u">typeof window&&e===window)return"{ [object Window] }";if("u">typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!("[object Date]"===H(E=e)&&W(E))&&!$(e)){var th=tt(e,ti),tv=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,tw=e instanceof Object?"":"null prototype",tO=!tv&&R&&Object(e)===e&&R in e?h.call(H(e),8,-1):tw?"Object":"",tS=(tv||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(tO||tw?"["+P.call(A.call([],tO||[],tw||[]),": ")+"] ":"");return 0===th.length?tS+"{}":tn?tS+"{"+Z(th,tn)+"}":tS+"{ "+P.call(th,", ")+" }"}return String(e)};var K=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return K.call(t,e)}function H(t){return m.call(t)}function z(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return -1}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Q(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function Y(t,e,r,o){return t+" ("+e+") {"+(o?Z(r,o):P.call(r,", "))+"}"}function Z(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+P.call(t,","+r)+"\n"+e.prev}function tt(t,e){var r,o=G(t),n=[];if(o){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=V(t,i)?e(t[i],t):""}var a="function"==typeof _?_(t):[];if(k){r={};for(var c=0;c<a.length;c++)r["$"+a[c]]=a[c]}for(var l in t)if(V(t,l)&&(!o||String(Number(l))!==l||!(l<t.length)))if(k&&r["$"+l]instanceof Symbol)continue;else S.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t));if("function"==typeof _)for(var p=0;p<a.length;p++)F.call(t,a[p])&&n.push("["+e(a[p])+"]: "+e(t[a[p]],t));return n}},5136:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},5600:function(t,e,r){"use strict";var o=r(2477),n=r(1347);t.exports={formats:r(5136),parse:n,stringify:o}},1347:function(t,e,r){"use strict";var o=r(6361),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1){if(e.throwOnLimitExceeded)for(var o=0,n=t.indexOf(",");n>-1;){if((o+=1)>=e.arrayLimit)throw RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");n=t.indexOf(",",n+1)}return t.split(",")}if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},l=function(t,e){var r={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=e.parameterLimit===1/0?void 0:e.parameterLimit,u=l.split(e.delimiter,e.throwOnLimitExceeded&&void 0!==p?p+1:p);if(e.throwOnLimitExceeded&&void 0!==p&&u.length>p)throw RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var y=-1,f=e.charset;if(e.charsetSentinel)for(s=0;s<u.length;++s)0===u[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[s]?f="utf-8":"utf8=%26%2310003%3B"===u[s]&&(f="iso-8859-1"),y=s,s=u.length);for(s=0;s<u.length;++s)if(s!==y){var s,d,m,b=u[s],g=b.indexOf("]="),h=-1===g?b.indexOf("="):g+1;if(-1===h?(d=e.decoder(b,a.decoder,f,"key"),m=e.strictNullHandling?null:""):null!==(d=e.decoder(b.slice(0,h),a.decoder,f,"key"))&&(m=o.maybeMap(c(b.slice(h+1),e,i(r[d])?r[d].length:0),function(t){return e.decoder(t,a.decoder,f,"value")})),m&&e.interpretNumericEntities&&"iso-8859-1"===f&&(m=String(m).replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})),b.indexOf("[]=")>-1&&(m=i(m)?[m]:m),e.comma&&i(m)&&m.length>e.arrayLimit&&(m=o.combine([],m,e.arrayLimit,e.plainObjects,e.throwOnLimitExceeded)),null!==d){var v=n.call(r,d);v&&("combine"===e.duplicates||b.indexOf("[]=")>-1)?r[d]=o.combine(r[d],m,e.arrayLimit,e.plainObjects,e.throwOnLimitExceeded):v&&"last"!==e.duplicates||(r[d]=m)}}return r},p=function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var l=n?e:c(e,r,i),p=t.length-1;p>=0;--p){var u,y=t[p];if("[]"===y&&r.parseArrays)u=o.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:o.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f="["===y.charAt(0)&&"]"===y.charAt(y.length-1)?y.slice(1,-1):y,s=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(s,10),m=!isNaN(d)&&y!==s&&String(d)===s&&d>=0&&r.parseArrays;if(r.parseArrays||""!==s)if(m&&d<r.arrayLimit)(u=[])[d]=l;else if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else m?(u[d]=l,o.markOverflow(u,d)):"__proto__"!==s&&(u[s]=l);else u={0:l}}l=u}return l},u=function(t,e){var r=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(e.depth<=0){if(!e.plainObjects&&n.call(Object.prototype,r)&&!e.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!e.plainObjects&&n.call(Object.prototype,a)&&!e.allowPrototypes)return;o[o.length]=a}for(var c=r.length,l=i,p=0;l>=0&&p<e.depth;){for(var u=1,y=l+1,f=-1;y<c&&f<0;){var s=r.charCodeAt(y);91===s?u+=1:93===s&&0==(u-=1)&&(f=y),y+=1}if(f<0)return o[o.length]="["+r.slice(l)+"]",o;var d=r.slice(l,f+1),m=d.slice(1,-1);if(!e.plainObjects&&n.call(Object.prototype,m)&&!e.allowPrototypes)return;o[o.length]=d,p+=1,l=r.indexOf("[",f+1)}if(l>=0){if(!0===e.strictDepth)throw RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");o[o.length]="["+r.slice(l)+"]"}return o},y=function(t,e,r,o){if(t){var n=u(t,r);if(n)return p(n,e,r,o)}},f=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}};t.exports=function(t,e){var r=f(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof t?l(t,r):t,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),c=0;c<a.length;++c){var p=a[c],u=y(p,n[p],r,"string"==typeof t);i=o.merge(i,u,r)}return!0===r.allowSparse?i:o.compact(i)}},2477:function(t,e,r){"use strict";var o=r(2573),n=r(6361),i=r(5136),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,l(e)?e:[e])},y=Date.prototype.toISOString,f=i.default,s={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return y.call(t)},skipNulls:!1,strictNullHandling:!1},d={},m=function t(e,r,i,a,c,p,y,f,m,b,g,h,v,w,O,S,A,P,j,E){var x,_,I=e;if(E>j)throw RangeError("Input depth exceeded depth option of "+j);for(var k=P,R=0,F=!1;void 0!==(k=k.get(d))&&!F;){var M=k.get(e);if(R+=1,void 0!==M)if(M===R)throw RangeError("Cyclic object value");else F=!0;void 0===k.get(d)&&(R=0)}if((I="function"==typeof b?b(r,I):I)instanceof Date?I=v(I):"comma"===i&&l(I)&&(I=n.maybeMap(I,function(t){return t instanceof Date?v(t):t})),null===I){if(p)return O(m&&!S?m(r,s.encoder,A,"key",w):r);I=""}if("string"==typeof(x=I)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||n.isBuffer(I))return m?[O(S?r:m(r,s.encoder,A,"key",w))+"="+O(m(I,s.encoder,A,"value",w))]:[O(r)+"="+O(String(I))];var D=[];if(void 0===I)return D;if("comma"===i&&l(I))S&&m&&(I=n.maybeMap(I,function(t){return null==t?t:m(t)})),_=[{value:I.length>0?I.join(",")||null:void 0}];else if(l(b))_=b;else{var N=Object.keys(I);_=g?N.sort(g):N}var U=f?String(r).replace(/\./g,"%2E"):String(r),T=a&&l(I)&&1===I.length?U+"[]":U;if(c&&l(I)&&0===I.length&&0===Object.keys(I).length)return T+"[]";for(var L=0;L<_.length;++L){var C=_[L],B="object"==typeof C&&C&&void 0!==C.value?C.value:I[C];if(!y||null!==B){var W=h&&f?String(C).replace(/\./g,"%2E"):String(C),G=l(I)?"function"==typeof i?i(T,W):T:T+(h?"."+W:"["+W+"]");P.set(e,R);var $=o();$.set(d,P),u(D,t(B,G,i,a,c,p,y,f,"comma"===i&&S&&l(I)?null:m,b,g,h,v,w,O,S,A,$,j,E+1))}}return D},b=function(t){if(!t)return s;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw TypeError("Encoder has to be a function.");var e,r=t.charset||s.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw TypeError("Unknown format option provided.");o=t.format}var n=i.formatters[o],p=s.filter;if(("function"==typeof t.filter||l(t.filter))&&(p=t.filter),e=t.arrayFormat in c?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":s.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||s.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:s.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:s.allowEmptyArrays,arrayFormat:e,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?s.delimiter:t.delimiter,depth:"number"==typeof t.depth?t.depth:s.depth,encode:"boolean"==typeof t.encode?t.encode:s.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:s.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:s.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:s.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:s.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:s.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}};t.exports=function(t,e){var r,n=t,i=b(e);"function"==typeof i.filter?n=(0,i.filter)("",n):l(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof n||null===n)return"";var p=c[i.arrayFormat],y="comma"===p&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var f=o(),s=0;s<r.length;++s){var d=r[s];if(null!=d){var g=n[d];i.skipNulls&&null===g||u(a,m(g,i.encodeDotInKeys?String(d).replace(/\./g,"%2E"):String(d),p,y,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f,i.depth,0))}}var h=a.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B"+i.delimiter:v+="utf8=%E2%9C%93"+i.delimiter),h.length>0?v+h:""}},6361:function(t,e,r){"use strict";var o=r(5136),n=r(2573),i=r(6290),a=Object.prototype.hasOwnProperty,c=Array.isArray,l=n(),p=function(t,e){return l.set(t,e),t},u=function(t){return l.has(t)},y=function(t){return l.get(t)},f=function(t,e){l.set(t,e)},s=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),d=function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(c(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&(o[o.length]=r[n]);e.obj[e.prop]=o}}},m=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},b=function(t,e,r){"__proto__"===e&&i?i(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};t.exports={arrayToObject:m,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return b(t,r,e[r]),t},t)},combine:function(t,e,r,o,n){if(u(t)){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");for(var i=c(e)?e:[e],a=y(t),l=0;l<i.length;++l)t[a+=1]=i[l];return f(t,a),t}var s=[].concat(t,e);if(s.length>r){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return p(m(s,{plainObjects:o}),s.length-1)}return s},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=n(),o=0;o<e.length;++o)for(var i=e[o],a=i.obj[i.prop],c=Object.keys(a),l=0;l<c.length;++l){var p=c[l],u=a[p];"object"!=typeof u||null===u||r.has(u)||(e[e.length]={obj:a,prop:p},r.set(u,!0))}return d(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var c="",l=0;l<a.length;l+=1024){var p=a.length>=1024?a.slice(l,l+1024):a;if(l+1024<a.length){var u=p.charCodeAt(p.length-1);u>=55296&&u<=56319&&(p=p.slice(0,-1),l-=1)}for(var y=[],f=0;f<p.length;++f){var d=p.charCodeAt(f);if(45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)){y[y.length]=p.charAt(f);continue}if(d<128){y[y.length]=s[d];continue}if(d<2048){y[y.length]=s[192|d>>6]+s[128|63&d];continue}if(d<55296||d>=57344){y[y.length]=s[224|d>>12]+s[128|d>>6&63]+s[128|63&d];continue}f+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(f)),y[y.length]=s[240|d>>18]+s[128|d>>12&63]+s[128|d>>6&63]+s[128|63&d]}c+=y.join("")}return c},isBuffer:function(t){return!!t&&"object"==typeof t&&!!(t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))},isOverflow:u,isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},markOverflow:p,maybeMap:function(t,e){if(c(t)){for(var r=[],o=0;o<t.length;o+=1)r[r.length]=e(t[o]);return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(c(e)){var n=e.length;if(o&&"number"==typeof o.arrayLimit&&n>=o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(m(e.concat(r),o),n)}e[n]=r}else if(!e||"object"!=typeof e)return[e,r];else if(u(e)){var i=y(e)+1;e[i]=r,f(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!a.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e){if(u(r)){for(var l=Object.keys(r),s=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},d=0;d<l.length;d++)s[parseInt(l[d],10)+1]=r[l[d]];return p(s,y(r)+1)}var g=[e].concat(r);if(o&&"number"==typeof o.arrayLimit&&g.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(m(g,o),g.length-1)}return g}var h=e;if(c(e)&&!c(r)&&(h=m(e,o)),c(e)&&c(r)){if(r.forEach(function(r,n){if(a.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=t(i,r,o):e[e.length]=r}else e[n]=r}),o&&"number"==typeof o.arrayLimit&&e.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(m(e,o),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var i=r[n];if(a.call(e,n)?b(e,n,t(e[n],i,o)):b(e,n,i),u(r)&&!u(e)&&p(e,y(r)),u(e)){var c=parseInt(n,10);String(c)===n&&c>=0&&c>y(e)&&f(e,c)}return e},h)}}},6290:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},6624:function(t,e,r){"use strict";var o=r(458),n=r(4002),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},a=function(t,e){if(t){var r=i(t,e);return r&&r.value}},c=function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},l=function(t,e){if(t)return i(t,e,!0)};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=l(t,e);return r&&t&&!t.next&&(t=void 0),!!r},get:function(e){return a(t,e)},has:function(e){var r;return!!(r=t)&&!!i(r,e)},set:function(e,r){t||(t={next:void 0}),c(t,e,r)}};return e}},2573:function(t,e,r){"use strict";var o=r(4002),n=r(458),i=r(6624),a=r(3822),c=r(4454)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+(t&&Object(t)===t?"the given object key":n(t)))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},3822:function(t,e,r){"use strict";var o=r(2236),n=r(9859),i=r(458),a=r(4002),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),y=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=y(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new c),p(t,e,r)}};return e}},9859:function(t,e,r){"use strict";var o=r(2236),n=r(5889),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},5216:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},569:function(t){"use strict";t.exports=Object},2236:function(t,e,r){"use strict";var o,n=r(569),i=r(8052),a=r(8096),c=r(7049),l=r(1977),p=r(2873),u=r(4002),y=r(1621),f=r(8105),s=r(8299),d=r(5243),m=r(9465),b=r(5587),g=r(6221),h=r(9068),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},O=r(1868),S=r(5216),A=function(){throw new u},P=O?function(){try{return arguments.callee,A}catch(t){try{return O(arguments,"callee").get}catch(t){return A}}}():A,j=r(2842)(),E=r(3439),x=r(2079),_=r(1065),I=r(8633),k=r(7821),R={},F="u">typeof Uint8Array&&E?E(Uint8Array):o,M={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"u"<typeof Atomics?o:Atomics,"%BigInt%":"u"<typeof BigInt?o:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?o:Float16Array,"%Float32Array%":"u"<typeof Float32Array?o:Float32Array,"%Float64Array%":"u"<typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"u"<typeof Int8Array?o:Int8Array,"%Int16Array%":"u"<typeof Int16Array?o:Int16Array,"%Int32Array%":"u"<typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"u"<typeof Map?o:Map,"%MapIteratorPrototype%":"u">typeof Map&&j&&E?E(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?o:Promise,"%Proxy%":"u"<typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?o:Set,"%SetIteratorPrototype%":"u">typeof Set&&j&&E?E(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":P,"%TypedArray%":F,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?o:Uint32Array,"%URIError%":y,"%WeakMap%":"u"<typeof WeakMap?o:WeakMap,"%WeakRef%":"u"<typeof WeakRef?o:WeakRef,"%WeakSet%":"u"<typeof WeakSet?o:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":x,"%Math.abs%":f,"%Math.floor%":s,"%Math.max%":d,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":h,"%Reflect.getPrototypeOf%":_};if(E)try{null.error}catch(t){var D=E(E(t));M["%Error.prototype%"]=D}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return M[e]=r,r},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=r(2460),L=r(2204),C=T.call(k,Array.prototype.concat),B=T.call(I,Array.prototype.splice),W=T.call(k,String.prototype.replace),G=T.call(k,String.prototype.slice),$=T.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,V=function(t){var e=G(t,0,1),r=G(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,q,function(t,e,r,n){o[o.length]=r?W(n,K,"$1"):e||t}),o},H=function(t,e){var r,o=t;if(L(U,o)&&(o="%"+(r=U[o])[0]+"%"),L(M,o)){var n=M[o];if(n===R&&(n=N(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(t),o=r.length>0?r[0]:"",n=H("%"+o+"%",e),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],B(r,C([0,1],l)));for(var y=1,f=!0;y<r.length;y+=1){var s=r[y],d=G(s,0,1),m=G(s,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new p("property names with quotes must have matching quotes");if("constructor"!==s&&f||(c=!0),o+="."+s,L(M,i="%"+o+"%"))a=M[i];else if(null!=a){if(!(s in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&y+1>=r.length){var b=O(a,s);a=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[s]}else f=L(a,s),a=a[s];f&&!c&&(M[i]=a)}}return a}},3848:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},1868:function(t,e,r){"use strict";var o=r(3848);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},2842:function(t,e,r){"use strict";var o="u">typeof Symbol&&Symbol,n=r(2496);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},2496:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},4454:function(t,e,r){"use strict";var o=r(6644),n=r(4555),i=r(458),a=r(3822),c=r(4002),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),y=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new c("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?y(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),u(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},4555:function(t,e,r){"use strict";var o=r(6644),n=r(5889),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},1368:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},4529:function(t){"use strict";t.exports=Object},6644:function(t,e,r){"use strict";var o,n=r(4529),i=r(8052),a=r(8096),c=r(7049),l=r(1977),p=r(2873),u=r(4002),y=r(1621),f=r(8105),s=r(8299),d=r(5243),m=r(9465),b=r(5587),g=r(6221),h=r(9068),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},O=r(4628),S=r(1368),A=function(){throw new u},P=O?function(){try{return arguments.callee,A}catch(t){try{return O(arguments,"callee").get}catch(t){return A}}}():A,j=r(6354)(),E=r(3439),x=r(2079),_=r(1065),I=r(8633),k=r(7821),R={},F="u">typeof Uint8Array&&E?E(Uint8Array):o,M={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"u"<typeof Atomics?o:Atomics,"%BigInt%":"u"<typeof BigInt?o:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?o:Float16Array,"%Float32Array%":"u"<typeof Float32Array?o:Float32Array,"%Float64Array%":"u"<typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"u"<typeof Int8Array?o:Int8Array,"%Int16Array%":"u"<typeof Int16Array?o:Int16Array,"%Int32Array%":"u"<typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"u"<typeof Map?o:Map,"%MapIteratorPrototype%":"u">typeof Map&&j&&E?E(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?o:Promise,"%Proxy%":"u"<typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?o:Set,"%SetIteratorPrototype%":"u">typeof Set&&j&&E?E(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":P,"%TypedArray%":F,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?o:Uint32Array,"%URIError%":y,"%WeakMap%":"u"<typeof WeakMap?o:WeakMap,"%WeakRef%":"u"<typeof WeakRef?o:WeakRef,"%WeakSet%":"u"<typeof WeakSet?o:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":x,"%Math.abs%":f,"%Math.floor%":s,"%Math.max%":d,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":h,"%Reflect.getPrototypeOf%":_};if(E)try{null.error}catch(t){var D=E(E(t));M["%Error.prototype%"]=D}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return M[e]=r,r},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=r(2460),L=r(2204),C=T.call(k,Array.prototype.concat),B=T.call(I,Array.prototype.splice),W=T.call(k,String.prototype.replace),G=T.call(k,String.prototype.slice),$=T.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,V=function(t){var e=G(t,0,1),r=G(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,q,function(t,e,r,n){o[o.length]=r?W(n,K,"$1"):e||t}),o},H=function(t,e){var r,o=t;if(L(U,o)&&(o="%"+(r=U[o])[0]+"%"),L(M,o)){var n=M[o];if(n===R&&(n=N(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(t),o=r.length>0?r[0]:"",n=H("%"+o+"%",e),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],B(r,C([0,1],l)));for(var y=1,f=!0;y<r.length;y+=1){var s=r[y],d=G(s,0,1),m=G(s,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new p("property names with quotes must have matching quotes");if("constructor"!==s&&f||(c=!0),o+="."+s,L(M,i="%"+o+"%"))a=M[i];else if(null!=a){if(!(s in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&y+1>=r.length){var b=O(a,s);a=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[s]}else f=L(a,s),a=a[s];f&&!c&&(M[i]=a)}}return a}},9120:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},4628:function(t,e,r){"use strict";var o=r(9120);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},6354:function(t,e,r){"use strict";var o="u">typeof Symbol&&Symbol,n=r(9640);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},9640:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7375:function(e){"use strict";e.exports=t},3485:function(t){"use strict";t.exports=n},7694:function(t){"use strict";t.exports=o},2059:function(t){"use strict";t.exports=r},9155:function(t){"use strict";t.exports=e},9445:function(){}},p={};function u(t){var e=p[t];if(void 0!==e)return e.exports;var r=p[t]={exports:{}};return l[t](r,r.exports,u),r.exports}u.m=l,u.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(e,{a:e}),e},u.d=function(t,e){for(var r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.f={},u.e=function(t){return Promise.all(Object.keys(u.f).reduce(function(e,r){return u.f[r](t,e),e},[]))},u.u=function(t){return""+t+".dfed67c95bcd8a1d.js"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},y={},u.l=function(t,e,r,o){if(y[t])return void y[t].push(e);if(void 0!==r)for(var n,i,a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var l=a[c];if(l.getAttribute("src")==t||l.getAttribute("data-rspack")=="@nocobase/plugin-multi-keyword-filter/client-v2:"+r){n=l;break}}n||(i=!0,(n=document.createElement("script")).timeout=120,u.nc&&n.setAttribute("nonce",u.nc),n.setAttribute("data-rspack","@nocobase/plugin-multi-keyword-filter/client-v2:"+r),n.src=t),y[t]=[e];var p=function(e,r){n.onerror=n.onload=null,clearTimeout(f);var o=y[t];if(delete y[t],n.parentNode&&n.parentNode.removeChild(n),o&&o.forEach(function(t){return t(r)}),e)return e(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=p.bind(null,n.onerror),n.onload=p.bind(null,n.onload),i&&document.head.appendChild(n)},u.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.g.importScripts&&(f=u.g.location+"");var y,f,s=u.g.document;if(!f&&s&&(s.currentScript&&"SCRIPT"===s.currentScript.tagName.toUpperCase()&&(f=s.currentScript.src),!f)){var d=s.getElementsByTagName("script");if(d.length)for(var m=d.length-1;m>-1&&(!f||!/^http(s?):/.test(f));)f=d[m--].src}if(!f)throw Error("Automatic publicPath is not supported in this browser");u.p=f.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},u.f.j=function(t,e){var r=u.o(i,t)?i[t]:void 0;if(0!==r)if(r)e.push(r[2]);else{var o=new Promise(function(e,o){r=i[t]=[e,o]});e.push(r[2]=o);var n=u.p+u.u(t),a=Error();u.l(n,function(e){if(u.o(i,t)&&(0!==(r=i[t])&&(i[t]=void 0),r)){var o=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+n+")",a.name="ChunkLoadError",a.type=o,a.request=n,r[1](a)}},"chunk-"+t,t)}},a=function(t,e){var r,o,n=e[0],a=e[1],c=e[2],l=0;if(n.some(function(t){return 0!==i[t]})){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);c&&c(u)}for(t&&t(e);l<n.length;l++)o=n[l],u.o(i,o)&&i[o]&&i[o][0](),i[o]=0},(c=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2||[]).forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c));var b={};return!function(){"use strict";var t="",e="u">typeof document?document.currentScript:null;if(e&&e.src){var r=e.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");r.indexOf("/static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/")>=0&&(t=r.replace(/\/[^\/]+$/,"/"))}if(!t){var o=window.__webpack_public_path__||"";o&&("/"!==o.charAt(o.length-1)&&(o+="/"),t=o+"static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/")}if(!t){var n=window.__nocobase_modern_client_prefix__||"v",i="/"+(n=String(n).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(t=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",c=a.indexOf(i);t=c>=0?a.slice(0,c+1):"/"}t&&(t=t.replace(RegExp("/"+n+"/?$"),"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t+="static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/"}u.p=t}(),!function(){"use strict";u.r(b),u.d(b,{default:function(){return F}});var t=u(7375),e=u(3485),r=u(2059),o=u(9155),n=u.n(o),i=u(5600),a=u.n(i);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){var o;o=r[e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return t}var p=function(t){var e,r,o,n,i=t.url||"",p=(function(t){if(Array.isArray(t))return t}(e=i.split("?"))||function(t){var e,r,o=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n=[],i=!0,a=!1;try{for(o=o.call(t);!(i=(e=o.next()).done)&&(n.push(e.value),2!==n.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(a)throw r}}return n}}(e)||function(t){if(t){if("string"==typeof t)return c(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return(i+a().stringify(t.params,{strictNullHandling:!0,arrayFormat:"brackets"})).length<=2e3?t:(p&&(t.params=l({},a().parse(p,{strictNullHandling:!0}),t.params)),o=l({},(r=t.data)&&(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!Array.isArray(r)?t.data:{}),n=n={__params__:t.params,__method__:t.method},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e})(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))}),t.data=o,t.params={},t.method="post",t)},y=u(7694),f=JSON.parse('{"UU":"@nocobase/plugin-multi-keyword-filter"}');function s(){var t=(0,y.useFlowEngine)();return function(e,r){var o,n;return t.context.t(e,(o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){var o;o=r[e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return t}({},r),n=n={ns:[f.UU,"client"]},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e})(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))}),o))}}function d(t){return"string"==typeof t?t.trim():t}function m(t){return String(d(t))}function g(t){return/^[+-]?\d+$/.test(t)}function h(t){return/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(t)}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function w(t,e,r,o,n,i,a){try{var c=t[i](a),l=c.value}catch(t){r(t);return}c.done?e(l):Promise.resolve(l).then(o,n)}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,o,n=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=function(e){var i,a,c,l=e.fieldInterface,p=function(t,e){if(null==t)return{};var r,o,n,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(n=0,r=Reflect.ownKeys(Object(t));n<r.length;n++)o=r[n],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o]);return i}if(i=function(t,e){if(null==t)return{};var r,o,n={},i=Object.getOwnPropertyNames(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r]);return n}(t,e),Object.getOwnPropertySymbols)for(n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)o=r[n],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o]);return i}(e,["fieldInterface"]),y=(0,o.useRef)(null),f=O((0,o.useState)(!1),2),b=f[0],v=f[1],S=O((0,o.useState)(!1),2),A=S[0],P=S[1],j=O((0,o.useState)([]),2),E=j[0],x=j[1],_=O((0,o.useState)([]),2),I=_[0],k=_[1],R=O((0,o.useState)([]),2),F=R[0],M=R[1],D=s(),N=function(t,r){var o;null==(o=e.onChange)||o.call(e,"integer"===l||"id"===l?t.map(m).filter(g):"number"===l?t.map(m).filter(h):"percent"===l?t.map(d).map(function(t){return parseFloat(String(t))}).filter(function(t){return!Number.isNaN(t)}):t.map(d).filter(function(t){return""!==t}),r)},U=function(t,e){var r=new Set;return t.forEach(function(t){e.forEach(function(e){var o=t[e];null!=o&&""!==o&&r.add(String(o))})}),Array.from(r).join("\n")},T=function(t){if(!t)return void r.message.warning(D("noValidKeywords"));var e=t.split("\n").filter(Boolean);N(e),r.message.success(D("importSuccess",{count:e.length}))};return n().createElement(n().Fragment,null,n().createElement(r.Space.Compact,{block:!0},n().createElement(r.Select,(i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){var o;o=r[e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return t}({mode:"tags",tokenSeparators:["\n"],placeholder:D("keywordsInputPlaceholder"),allowClear:!0,suffixIcon:null,maxTagCount:"responsive",open:!!(null==(c=p.value)?void 0:c.length)&&void 0},p),a=a={onChange:function(t,e){N(t,e)}},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e})(Object(a)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(a,t))}),i)),n().createElement(r.Tooltip,{title:D("importExcel")},n().createElement(r.Button,{onClick:function(){var t;null==(t=y.current)||t.click()},loading:b,icon:n().createElement(t.UploadOutlined,null)}))),n().createElement("input",{type:"file",ref:y,hidden:!0,accept:".xlsx,.xls",onChange:function(t){var e;return(e=function(){var e,o,n,i,a,c;return function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:l(0)}),c(a,"throw",{value:l(1)}),c(a,"return",{value:l(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function l(c){return function(l){var p=[c,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,p[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&p[0]?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[2&p[0],n.value]),p[0]){case 0:case 1:n=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===p[0]||2===p[0])){i=0;continue}if(3===p[0]&&(!n||p[1]>n[0]&&p[1]<n[3])){i.label=p[1];break}if(6===p[0]&&i.label<n[1]){i.label=n[1],n=p;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(p);break}n[2]&&i.ops.pop(),i.trys.pop();continue}p=e.call(t,i)}catch(t){p=[6,t],o=0}finally{r=n=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(l){var p,y,f,s;switch(l.label){case 0:if(!(o=null==(e=t.target.files)?void 0:e[0]))return[2];l.label=1;case 1:return l.trys.push([1,4,5,6]),v(!0),[4,u.e("103").then(u.bind(u,1802))];case 2:return n=l.sent(),[4,(p=o,y=n,new Promise(function(t,e){var r=new FileReader;r.onload=function(r){try{var o,n=null==(o=r.target)?void 0:o.result,i=y.read(n,{type:"array"}),a=i.SheetNames[0],c=i.Sheets[a],l=y.utils.sheet_to_json(c,{defval:""});t(l)}catch(t){e(t)}},r.onerror=function(t){return e(t)},r.readAsArrayBuffer(p)}))];case 3:if(0===(i=l.sent()).length)return r.message.error(D("excelFileEmpty")),[2];return x(a=Object.keys(i[0])),M(i),1===a.length?T((f=i,s=a[0],f.map(function(t){return t[s]}).filter(function(t){return null!=t&&""!==t}).join("\n"))):P(!0),[3,6];case 4:return c=l.sent(),console.error(D("errorParsingExcel"),c),r.message.error(D("failedToParseExcel")),[3,6];case 5:return v(!1),t.target.value="",[7];case 6:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(o,n){var i=e.apply(t,r);function a(t){w(i,o,n,a,c,"next",t)}function c(t){w(i,o,n,a,c,"throw",t)}a(void 0)})})()}}),n().createElement(r.Modal,{title:D("selectExcelColumns"),open:A,onOk:function(){0===I.length?r.message.warning(D("selectAtLeastOneColumn")):(T(U(F,I)),P(!1))},onCancel:function(){return P(!1)},okText:D("confirm"),cancelText:D("cancel")},n().createElement(r.Alert,{type:"info",description:n().createElement(r.Typography,null,n().createElement("ul",null,D("tips").split("\n").map(function(t){return n().createElement("li",{key:t},t)})))}),n().createElement(r.Select,{mode:"multiple",value:I,onChange:function(t){return k(t)},placeholder:D("selectColumnsPlaceholder"),options:E.map(function(t){return{label:t,value:t}})})))};function A(t,e,r,o,n,i,a){try{var c=t[i](a),l=c.value}catch(t){r(t);return}c.done?e(l):Promise.resolve(l).then(o,n)}function P(t,e,r){return(P=_()?Reflect.construct:function(t,e,r){var o=[null];o.push.apply(o,e);var n=new(Function.bind.apply(t,o));return r&&E(n,r.prototype),n}).apply(null,arguments)}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e="function"==typeof Map?new Map:void 0;return(x=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return P(t,arguments,j(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,t)})(t)}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}var I=["input","phone","email","uuid","sequence","integer","number","id","percent","nanoid"];function k(e){var o=e.type,i=s(),a="等于任意一个"===i("equalsAny"),c=i("in"===o?"equalsAny":"notEqualsAny");return n().createElement("div",null,c," ",n().createElement(r.Tooltip,{title:n().createElement("div",null,i("providedByPlugin",{pluginName:i("pluginName")})," ",n().createElement("a",{href:"https://".concat(a?"docs-cn":"docs",".nocobase.com/handbook/multi-keyword-filter"),target:"_blank",rel:"noopener noreferrer"},n().createElement(t.LinkOutlined,null)))},n().createElement(t.QuestionCircleOutlined,null)))}function R(t,e){return{label:n().createElement(k,{type:e}),value:"in"===e?"$in":"$notIn",schema:{"x-component":"MultipleKeywordsInput","x-component-props":{fieldInterface:t}}}}var F=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=j(t),function(t,e){var r;if(e&&("object"==((r=e)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,_()?Reflect.construct(t,e||[],j(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&E(r,t),e=[{key:"load",value:function(){var t;return(t=function(){var t;return function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:l(0)}),c(a,"throw",{value:l(1)}),c(a,"return",{value:l(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function l(c){return function(l){var p=[c,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,p[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&p[0]?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[2&p[0],n.value]),p[0]){case 0:case 1:n=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===p[0]||2===p[0])){i=0;continue}if(3===p[0]&&(!n||p[1]>n[0]&&p[1]<n[3])){i.label=p[1];break}if(6===p[0]&&i.label<n[1]){i.label=n[1],n=p;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(p);break}n[2]&&i.ops.pop(),i.trys.pop();continue}p=e.call(t,i)}catch(t){p=[6,t],o=0}finally{r=n=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(e){return t=this,I.forEach(function(e){t.app.addFieldInterfaceOperator(e,R(e,"in")),t.app.addFieldInterfaceOperator(e,R(e,"notIn"))}),this.app.addComponents({MultipleKeywordsInput:S}),setTimeout(function(){t.app.apiClient.axios.interceptors.request.use(p)}),[2]})},function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function a(t){A(i,o,n,a,c,"next",t)}function c(t){A(i,o,n,a,c,"throw",t)}a(void 0)})}).call(this)}}],function(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(r.prototype,e),r}(x(e.Plugin))}(),b}()});
@@ -12,11 +12,11 @@ module.exports = {
12
12
  "react": "18.2.0",
13
13
  "@ant-design/icons": "5.6.1",
14
14
  "@formily/react": "2.3.7",
15
- "@nocobase/client": "2.2.16",
15
+ "@nocobase/client": "2.2.18",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/flow-engine": "2.2.16",
18
- "@nocobase/client-v2": "2.2.16",
17
+ "@nocobase/flow-engine": "2.2.18",
18
+ "@nocobase/client-v2": "2.2.18",
19
19
  "koa": "3.2.0",
20
- "@nocobase/server": "2.2.16",
20
+ "@nocobase/server": "2.2.18",
21
21
  "axios": "1.7.7"
22
22
  };
@@ -7,7 +7,7 @@ end_of_line = lf
7
7
  charset = utf-8
8
8
  trim_trailing_whitespace = true
9
9
  insert_final_newline = true
10
- max_line_length = 160
10
+ max_line_length = 180
11
11
  quote_type = single
12
12
 
13
13
  [test/*]
@@ -41,3 +41,6 @@ max_line_length = off
41
41
 
42
42
  [.nycrc]
43
43
  indent_style = tab
44
+
45
+ [tea.yaml]
46
+ indent_size = 2
@@ -0,0 +1,11 @@
1
+ # Security
2
+
3
+ Please file a private vulnerability report via GitHub, email [@ljharb](https://github.com/ljharb), or see https://tidelift.com/security if you have a potential security vulnerability to report.
4
+
5
+ ## Incident Response Plan
6
+
7
+ Please see our [Incident Response Plan](https://github.com/ljharb/.github/blob/main/INCIDENT_RESPONSE_PLAN.md).
8
+
9
+ ## Threat Model
10
+
11
+ Please see [THREAT_MODEL.md](./THREAT_MODEL.md).
@@ -0,0 +1,78 @@
1
+ ## Threat Model for qs (querystring parsing library)
2
+
3
+ ### 1. Library Overview
4
+
5
+ - **Library Name:** qs
6
+ - **Brief Description:** A JavaScript library for parsing and stringifying URL query strings, supporting nested objects and arrays. It is widely used in Node.js and web applications for processing query parameters[2][6][8].
7
+ - **Key Public APIs/Functions:** `qs.parse()`, `qs.stringify()`
8
+
9
+ ### 2. Define Scope
10
+
11
+ This threat model focuses on the core parsing and stringifying functionality, specifically the handling of nested objects and arrays, option validation, and cycle management in stringification.
12
+
13
+ ### 3. Conceptual System Diagram
14
+
15
+ ```
16
+ Caller Application → qs.parse(input, options) → Parsing Engine → Output Object
17
+ │
18
+ └→ Options Handling
19
+
20
+ Caller Application → qs.stringify(obj, options) → Stringifying Engine → Output String
21
+ │
22
+ └→ Options Handling
23
+ └→ Cycle Tracking
24
+ ```
25
+
26
+ **Trust Boundaries:**
27
+ - **Input string (parse):** May come from untrusted sources (e.g., user input, network requests)
28
+ - **Input object (stringify):** The calling application's own data, not a direct untrusted channel. May contain cycles (handled by the cycle detector). Deeply-nested non-cyclic input surfaces as a catchable synchronous `RangeError` (stack overflow), not unbounded resource consumption; callers that serialize externally-influenced objects should bound their depth/size beforehand.
29
+ - **Options:** Provided by the caller
30
+ - **Cycle Tracking:** Used only during stringification to detect and handle circular references
31
+
32
+ ### 4. Identify Assets
33
+
34
+ - **Integrity of parsed output:** Prevent malicious manipulation of the output object structure, especially ensuring builtins/globals are not modified as a result of parse[3][4][8].
35
+ - **Confidentiality of processed data:** Avoid leaking sensitive information through errors or output.
36
+ - **Availability/performance for host application:** Prevent crashes or resource exhaustion in the consuming application.
37
+ - **Security of host application:** Prevent the library from being a vector for attacks (e.g., prototype pollution, DoS).
38
+ - **Reputation of library:** Maintain trust by avoiding supply chain attacks and vulnerabilities[1].
39
+
40
+ ### 5. Identify Threats
41
+
42
+ | Component / API / Interaction | S | T | R | I | D | E |
43
+ |---------------------------------------|----|----|----|----|----|----|
44
+ | Public API Call (`parse`) | – | ✓ | – | ✓ | ✓ | ✓ |
45
+ | Public API Call (`stringify`) | – | ✓ | – | ✓ | ✓ | – |
46
+ | Options Handling | ✓ | ✓ | – | ✓ | – | ✓ |
47
+ | Dependency Interaction | – | – | – | – | ✓ | – |
48
+
49
+ **Key Threats:**
50
+ - **Tampering:** Malicious input can, if not prevented, alter parsed output (e.g., prototype pollution via `__proto__`, modification of builtins/globals)[3][4][8].
51
+ - **Information Disclosure:** Error messages may expose internal details or sensitive data.
52
+ - **Denial of Service:** Large or malformed input can exhaust memory or CPU.
53
+ - **Elevation of Privilege:** Prototype pollution can lead to unintended privilege escalation in the host application[3][4][8].
54
+
55
+ ### 6. Mitigation/Countermeasures
56
+
57
+ | Threat Identified | Proposed Mitigation |
58
+ |---------------------------------------------------|---------------------|
59
+ | Tampering (malicious input, prototype pollution) | Strict input validation; keep `allowPrototypes: false` by default; use `plainObjects` for output; ensure builtins/globals are never modified by parse[4][8]. |
60
+ | Information Disclosure (error messages) | Generic error messages without stack traces or internal paths. |
61
+ | Denial of Service (memory/CPU exhaustion) | `arrayLimit`, `parameterLimit`, and depth limiting apply with safe defaults. Note that `arrayLimit` is a representation threshold (array vs. object), and `parameterLimit` bounds only the number of `&`-delimited parameters - neither caps the elements produced by `comma: true` splitting. For a hard cap that rejects oversized untrusted input, opt in to `throwOnLimitExceeded: true` (default `false`), and always bound input size at the transport layer[7]. On the `stringify` side, the input is the caller's own object rather than an untrusted string, so unbounded nesting manifests as a catchable `RangeError` (stack overflow) rather than exhaustion; callers serializing externally-influenced objects should bound depth/size beforehand, and may opt into `stringify`'s `depth` option (default `Infinity`) for a deterministic, catchable error. |
62
+ | Elevation of Privilege (prototype pollution) | Keep `allowPrototypes: false`; validate options against allowlist; use `plainObjects` to avoid prototype pollution[4][8]. |
63
+
64
+ ### 7. Risk Ranking
65
+
66
+ - **High:** Denial of Service via array parsing or malformed input (historical vulnerability)
67
+ - **Medium:** Prototype pollution via options or input (if `allowPrototypes` enabled)
68
+ - **Low:** Information disclosure in errors
69
+
70
+ ### 8. Next Steps & Review
71
+
72
+ 1. **Audit option validation logic.**
73
+ 2. **Depth limiting:** `parse` enforces a `depth` bound by default (with `strictDepth` to throw); `stringify` offers an opt-in `depth` bound (default `Infinity`, since its input is caller-produced) for defense-in-depth.
74
+ 3. **Implement fuzz testing for parser and stringifier edge cases.**
75
+ 4. **Regularly review dependencies for vulnerabilities.**
76
+ 5. **Keep documentation and threat model up to date.**
77
+ 6. **Ensure builtins/globals are never modified as a result of parse.**
78
+ 7. **Support round-trip consistency between parse and stringify as a non-security goal, with the right options[5][9].**