@kne-components/components-core 0.2.74 → 0.2.76

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 (136) hide show
  1. package/build/asset-manifest.json +96 -96
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1045.76e1b443.chunk.css → 1045.560ae715.chunk.css} +2 -2
  6. package/build/static/css/{1045.76e1b443.chunk.css.map → 1045.560ae715.chunk.css.map} +1 -1
  7. package/build/static/css/1046.94a23cff.chunk.css +2 -0
  8. package/build/static/css/{1046.6aa99e8a.chunk.css.map → 1046.94a23cff.chunk.css.map} +1 -1
  9. package/build/static/css/1153.48f404cb.chunk.css +2 -0
  10. package/build/static/css/{1153.aaf7f5fb.chunk.css.map → 1153.48f404cb.chunk.css.map} +1 -1
  11. package/build/static/css/1554.5d981cc2.chunk.css +2 -0
  12. package/build/static/css/{1554.457fb347.chunk.css.map → 1554.5d981cc2.chunk.css.map} +1 -1
  13. package/build/static/css/2716.1f1fc277.chunk.css +2 -0
  14. package/build/static/css/{2716.c1930658.chunk.css.map → 2716.1f1fc277.chunk.css.map} +1 -1
  15. package/build/static/css/374.19e3f788.chunk.css +12 -0
  16. package/build/static/css/{374.921aa895.chunk.css.map → 374.19e3f788.chunk.css.map} +1 -1
  17. package/build/static/css/3834.f5d5a602.chunk.css +2 -0
  18. package/build/static/css/{3834.306d0659.chunk.css.map → 3834.f5d5a602.chunk.css.map} +1 -1
  19. package/build/static/css/3900.cdfb90b7.chunk.css +2 -0
  20. package/build/static/css/{3900.3a1ef63a.chunk.css.map → 3900.cdfb90b7.chunk.css.map} +1 -1
  21. package/build/static/css/4194.79deec85.chunk.css +2 -0
  22. package/build/static/css/{4194.a60b7059.chunk.css.map → 4194.79deec85.chunk.css.map} +1 -1
  23. package/build/static/css/4602.0cd507c4.chunk.css +2 -0
  24. package/build/static/css/{4602.115bc4ba.chunk.css.map → 4602.0cd507c4.chunk.css.map} +1 -1
  25. package/build/static/css/4666.19be337a.chunk.css +2 -0
  26. package/build/static/css/{4666.534276a5.chunk.css.map → 4666.19be337a.chunk.css.map} +1 -1
  27. package/build/static/css/{5371.d77b62ab.chunk.css → 5371.f63c8c53.chunk.css} +2 -2
  28. package/build/static/css/{5371.d77b62ab.chunk.css.map → 5371.f63c8c53.chunk.css.map} +1 -1
  29. package/build/static/css/5807.394a44b3.chunk.css +2 -0
  30. package/build/static/css/{5807.7397285b.chunk.css.map → 5807.394a44b3.chunk.css.map} +1 -1
  31. package/build/static/css/5965.7cd4be86.chunk.css +2 -0
  32. package/build/static/css/{5965.7766c46f.chunk.css.map → 5965.7cd4be86.chunk.css.map} +1 -1
  33. package/build/static/css/{624.c41f055d.chunk.css → 624.2af9fcc1.chunk.css} +2 -2
  34. package/build/static/css/{624.c41f055d.chunk.css.map → 624.2af9fcc1.chunk.css.map} +1 -1
  35. package/build/static/css/6756.2e5636e7.chunk.css +2 -0
  36. package/build/static/css/{6756.7242273d.chunk.css.map → 6756.2e5636e7.chunk.css.map} +1 -1
  37. package/build/static/css/7227.32fda2eb.chunk.css +2 -0
  38. package/build/static/css/{7227.2243b914.chunk.css.map → 7227.32fda2eb.chunk.css.map} +1 -1
  39. package/build/static/css/{7253.d9da3109.chunk.css → 7253.25e2e965.chunk.css} +2 -2
  40. package/build/static/css/{7253.d9da3109.chunk.css.map → 7253.25e2e965.chunk.css.map} +1 -1
  41. package/build/static/css/7277.f11f2389.chunk.css +2 -0
  42. package/build/static/css/{7277.16b9c9e3.chunk.css.map → 7277.f11f2389.chunk.css.map} +1 -1
  43. package/build/static/css/{7334.0278bbdf.chunk.css → 7334.1117e798.chunk.css} +2 -2
  44. package/build/static/css/{7334.0278bbdf.chunk.css.map → 7334.1117e798.chunk.css.map} +1 -1
  45. package/build/static/css/{7866.41e51102.chunk.css → 7866.75e34e44.chunk.css} +2 -2
  46. package/build/static/css/{7866.41e51102.chunk.css.map → 7866.75e34e44.chunk.css.map} +1 -1
  47. package/build/static/css/{8503.b6d6994f.chunk.css → 8503.ced236c0.chunk.css} +2 -2
  48. package/build/static/css/{8503.b6d6994f.chunk.css.map → 8503.ced236c0.chunk.css.map} +1 -1
  49. package/build/static/js/1045.cbe65297.chunk.js +2 -0
  50. package/build/static/js/{1045.ecf0a729.chunk.js.map → 1045.cbe65297.chunk.js.map} +1 -1
  51. package/build/static/js/{1046.90e3b99d.chunk.js → 1046.8907af00.chunk.js} +2 -2
  52. package/build/static/js/{1046.90e3b99d.chunk.js.map → 1046.8907af00.chunk.js.map} +1 -1
  53. package/build/static/js/{1125.e4ede100.chunk.js → 1125.70205c79.chunk.js} +2 -2
  54. package/build/static/js/1125.70205c79.chunk.js.map +1 -0
  55. package/build/static/js/{1153.f212e889.chunk.js → 1153.7a57cdf9.chunk.js} +3 -3
  56. package/build/static/js/{1153.f212e889.chunk.js.map → 1153.7a57cdf9.chunk.js.map} +1 -1
  57. package/build/static/js/1554.70060f3b.chunk.js +3 -0
  58. package/build/static/js/{1554.2b024678.chunk.js.map → 1554.70060f3b.chunk.js.map} +1 -1
  59. package/build/static/js/2716.a1f6d720.chunk.js +3 -0
  60. package/build/static/js/{2716.3f10c809.chunk.js.map → 2716.a1f6d720.chunk.js.map} +1 -1
  61. package/build/static/js/{374.ede75515.chunk.js → 374.f3ab13d1.chunk.js} +2 -2
  62. package/build/static/js/374.f3ab13d1.chunk.js.map +1 -0
  63. package/build/static/js/3834.60580996.chunk.js +2 -0
  64. package/build/static/js/{3834.4ee001a9.chunk.js.map → 3834.60580996.chunk.js.map} +1 -1
  65. package/build/static/js/{3856.32ab28ef.chunk.js → 3856.7e1e170e.chunk.js} +2 -2
  66. package/build/static/js/{3856.32ab28ef.chunk.js.map → 3856.7e1e170e.chunk.js.map} +1 -1
  67. package/build/static/js/3900.5476f255.chunk.js +2 -0
  68. package/build/static/js/{3900.fa61da54.chunk.js.map → 3900.5476f255.chunk.js.map} +1 -1
  69. package/build/static/js/{4194.3692981d.chunk.js → 4194.5560c9c7.chunk.js} +2 -2
  70. package/build/static/js/4194.5560c9c7.chunk.js.map +1 -0
  71. package/build/static/js/4602.4da35976.chunk.js +2 -0
  72. package/build/static/js/{4602.9e770e74.chunk.js.map → 4602.4da35976.chunk.js.map} +1 -1
  73. package/build/static/js/{4666.7dfbc5cf.chunk.js → 4666.14624afe.chunk.js} +3 -3
  74. package/build/static/js/{4666.7dfbc5cf.chunk.js.map → 4666.14624afe.chunk.js.map} +1 -1
  75. package/build/static/js/5371.f2970153.chunk.js +2 -0
  76. package/build/static/js/{5371.2bb0a3dd.chunk.js.map → 5371.f2970153.chunk.js.map} +1 -1
  77. package/build/static/js/5807.64607efa.chunk.js +2 -0
  78. package/build/static/js/{5807.eaf92579.chunk.js.map → 5807.64607efa.chunk.js.map} +1 -1
  79. package/build/static/js/{5965.50e2a86a.chunk.js → 5965.987db1bf.chunk.js} +2 -2
  80. package/build/static/js/{5965.50e2a86a.chunk.js.map → 5965.987db1bf.chunk.js.map} +1 -1
  81. package/build/static/js/{624.fbce11de.chunk.js → 624.55290385.chunk.js} +2 -2
  82. package/build/static/js/{624.fbce11de.chunk.js.map → 624.55290385.chunk.js.map} +1 -1
  83. package/build/static/js/7227.37efe1a0.chunk.js +3 -0
  84. package/build/static/js/{7227.1e10b7f9.chunk.js.map → 7227.37efe1a0.chunk.js.map} +1 -1
  85. package/build/static/js/7253.951b8db9.chunk.js +2 -0
  86. package/build/static/js/{7253.2e0c2414.chunk.js.map → 7253.951b8db9.chunk.js.map} +1 -1
  87. package/build/static/js/7277.a131b1bc.chunk.js +2 -0
  88. package/build/static/js/{7277.34e02099.chunk.js.map → 7277.a131b1bc.chunk.js.map} +1 -1
  89. package/build/static/js/7334.17c6a220.chunk.js +2 -0
  90. package/build/static/js/{7334.cf82ee9b.chunk.js.map → 7334.17c6a220.chunk.js.map} +1 -1
  91. package/build/static/js/{7866.f40cc9e3.chunk.js → 7866.37a80caf.chunk.js} +2 -2
  92. package/build/static/js/{7866.f40cc9e3.chunk.js.map → 7866.37a80caf.chunk.js.map} +1 -1
  93. package/build/static/js/8503.ba53f994.chunk.js +2 -0
  94. package/build/static/js/{8503.a6282b9d.chunk.js.map → 8503.ba53f994.chunk.js.map} +1 -1
  95. package/build/static/js/{8731.221ca09a.chunk.js → 8731.b1984a02.chunk.js} +2 -2
  96. package/build/static/js/{8731.221ca09a.chunk.js.map → 8731.b1984a02.chunk.js.map} +1 -1
  97. package/build/static/js/main.ef08d24b.js +2 -0
  98. package/build/static/js/{main.85168f2e.js.map → main.ef08d24b.js.map} +1 -1
  99. package/package.json +2 -2
  100. package/build/static/css/1046.6aa99e8a.chunk.css +0 -2
  101. package/build/static/css/1153.aaf7f5fb.chunk.css +0 -2
  102. package/build/static/css/1554.457fb347.chunk.css +0 -2
  103. package/build/static/css/2716.c1930658.chunk.css +0 -2
  104. package/build/static/css/374.921aa895.chunk.css +0 -12
  105. package/build/static/css/3834.306d0659.chunk.css +0 -2
  106. package/build/static/css/3900.3a1ef63a.chunk.css +0 -2
  107. package/build/static/css/4194.a60b7059.chunk.css +0 -2
  108. package/build/static/css/4602.115bc4ba.chunk.css +0 -2
  109. package/build/static/css/4666.534276a5.chunk.css +0 -2
  110. package/build/static/css/5807.7397285b.chunk.css +0 -2
  111. package/build/static/css/5965.7766c46f.chunk.css +0 -2
  112. package/build/static/css/6756.7242273d.chunk.css +0 -2
  113. package/build/static/css/7227.2243b914.chunk.css +0 -2
  114. package/build/static/css/7277.16b9c9e3.chunk.css +0 -2
  115. package/build/static/js/1045.ecf0a729.chunk.js +0 -2
  116. package/build/static/js/1125.e4ede100.chunk.js.map +0 -1
  117. package/build/static/js/1554.2b024678.chunk.js +0 -3
  118. package/build/static/js/2716.3f10c809.chunk.js +0 -3
  119. package/build/static/js/374.ede75515.chunk.js.map +0 -1
  120. package/build/static/js/3834.4ee001a9.chunk.js +0 -2
  121. package/build/static/js/3900.fa61da54.chunk.js +0 -2
  122. package/build/static/js/4194.3692981d.chunk.js.map +0 -1
  123. package/build/static/js/4602.9e770e74.chunk.js +0 -2
  124. package/build/static/js/5371.2bb0a3dd.chunk.js +0 -2
  125. package/build/static/js/5807.eaf92579.chunk.js +0 -2
  126. package/build/static/js/7227.1e10b7f9.chunk.js +0 -3
  127. package/build/static/js/7253.2e0c2414.chunk.js +0 -2
  128. package/build/static/js/7277.34e02099.chunk.js +0 -2
  129. package/build/static/js/7334.cf82ee9b.chunk.js +0 -2
  130. package/build/static/js/8503.a6282b9d.chunk.js +0 -2
  131. package/build/static/js/main.85168f2e.js +0 -2
  132. /package/build/static/js/{1153.f212e889.chunk.js.LICENSE.txt → 1153.7a57cdf9.chunk.js.LICENSE.txt} +0 -0
  133. /package/build/static/js/{1554.2b024678.chunk.js.LICENSE.txt → 1554.70060f3b.chunk.js.LICENSE.txt} +0 -0
  134. /package/build/static/js/{2716.3f10c809.chunk.js.LICENSE.txt → 2716.a1f6d720.chunk.js.LICENSE.txt} +0 -0
  135. /package/build/static/js/{4666.7dfbc5cf.chunk.js.LICENSE.txt → 4666.14624afe.chunk.js.LICENSE.txt} +0 -0
  136. /package/build/static/js/{7227.1e10b7f9.chunk.js.LICENSE.txt → 7227.37efe1a0.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1125],{51125:(t,e,i)=>{"use strict";i.r(e),i.d(e,{Enum:()=>$,EnumResource:()=>q,default:()=>H,preset:()=>C,useEnumLoader:()=>P,useEnumResource:()=>U});var s=i(73884),n=i.n(s),r=i(83694),o=i(96418),a=i.n(o),h=i(87558),l=i.n(h),c=i(39835),u=i.n(c),d=i(9376),f=i.n(d),p=i(22717),g=i.n(p);const v="object"===typeof performance&&performance&&"function"===typeof performance.now?performance:Date,m=new Set,y="object"===typeof process&&process?process:{},x=(t,e,i,s)=>{"function"===typeof y.emitWarning?y.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let w=globalThis.AbortController,S=globalThis.AbortSignal;if("undefined"===typeof w){S=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},w=class{constructor(){e()}signal=(()=>new S)();abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==y.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,x("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const b=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),z=t=>b(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?A:null:null;class A extends Array{constructor(t){super(t),this.fill(0)}}class _{heap;length;static#t=!1;static create(t){const e=z(t);if(!e)return[];_.#t=!0;const i=new _(t,e);return _.#t=!1,i}constructor(t,e){if(!_.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class L{#e;#i;#s;#n;#r;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#h;#l;#c;#u;#d;#f;#p;#g;#v;#m;#y;#x;#w;#S;#b;#z;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#w,sizes:t.#y,keyMap:t.#l,keyList:t.#c,valList:t.#u,next:t.#d,prev:t.#f,get head(){return t.#p},get tail(){return t.#g},free:t.#v,isBackgroundFetch:e=>t.#A(e),backgroundFetch:(e,i,s,n)=>t.#_(e,i,s,n),moveToTail:e=>t.#L(e),indexes:e=>t.#F(e),rindexes:e=>t.#O(e),isStale:e=>t.#T(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#h}get size(){return this.#a}get fetchMethod(){return this.#r}get memoMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#n}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:h,disposeAfter:l,noDisposeOnSet:c,noUpdateTTL:u,maxSize:d=0,maxEntrySize:f=0,sizeCalculation:p,fetchMethod:g,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:A,ignoreFetchAbort:F}=t;if(0!==e&&!b(e))throw new TypeError("max option must be a nonnegative integer");const O=e?z(e):Array;if(!O)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=d,this.maxEntrySize=f||this.#i,this.sizeCalculation=p,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!==typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!==typeof v)throw new TypeError("memoMethod must be a function if defined");if(this.#o=v,void 0!==g&&"function"!==typeof g)throw new TypeError("fetchMethod must be a function if specified");if(this.#r=g,this.#b=!!g,this.#l=new Map,this.#c=new Array(e).fill(void 0),this.#u=new Array(e).fill(void 0),this.#d=new O(e),this.#f=new O(e),this.#p=0,this.#g=0,this.#v=_.create(e),this.#a=0,this.#h=0,"function"===typeof h&&(this.#s=h),"function"===typeof l?(this.#n=l,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#S=!!this.#s,this.#z=!!this.#n,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!F,0!==this.maxEntrySize){if(0!==this.#i&&!b(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#k()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=b(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!m.has(t))(t)){m.add(t);x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,L)}}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#E(){var t=this;const e=new A(this.#e),i=new A(this.#e);this.#w=e,this.#x=i,this.#D=function(s,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.now();if(i[s]=0!==n?r:0,e[s]=n,0!==n&&t.ttlAutopurge){const e=setTimeout((()=>{t.#T(s)&&t.#M(t.#c[s],"expire")}),n+1);e.unref&&e.unref()}},this.#C=t=>{i[t]=0!==e[t]?v.now():0},this.#j=(t,r)=>{if(e[r]){const o=e[r],a=i[r];if(!o||!a)return;t.ttl=o,t.start=a,t.now=s||n();const h=t.now-a;t.remainingTTL=o-h}};let s=0;const n=()=>{const t=v.now();if(this.ttlResolution>0){s=t;const e=setTimeout((()=>s=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=t=>{const r=this.#l.get(t);if(void 0===r)return 0;const o=e[r],a=i[r];if(!o||!a)return 1/0;return o-((s||n())-a)},this.#T=t=>{const r=i[t],o=e[t];return!!o&&!!r&&(s||n())-r>o}}#C=()=>{};#j=()=>{};#D=()=>{};#T=()=>!1;#k(){const t=new A(this.#e);this.#h=0,this.#y=t,this.#R=e=>{this.#h-=t[e],t[e]=0},this.#W=(t,e,i,s)=>{if(this.#A(e))return 0;if(!b(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!==typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!b(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#B=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#h>i;)this.#I(!0)}this.#h+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#h)}}#R=t=>{};#B=(t,e,i)=>{};#W=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};#F(){var t=this;let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){if(t.#a)for(let i=t.#g;t.#N(i)&&(!e&&t.#T(i)||(yield i),i!==t.#p);)i=t.#f[i]}()}#O(){var t=this;let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){if(t.#a)for(let i=t.#p;t.#N(i)&&(!e&&t.#T(i)||(yield i),i!==t.#g);)i=t.#d[i]}()}#N(t){return void 0!==t&&this.#l.get(this.#c[t])===t}*entries(){for(const t of this.#F())void 0===this.#u[t]||void 0===this.#c[t]||this.#A(this.#u[t])||(yield[this.#c[t],this.#u[t]])}*rentries(){for(const t of this.#O())void 0===this.#u[t]||void 0===this.#c[t]||this.#A(this.#u[t])||(yield[this.#c[t],this.#u[t]])}*keys(){for(const t of this.#F()){const e=this.#c[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*rkeys(){for(const t of this.#O()){const e=this.#c[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*values(){for(const t of this.#F()){void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}}*rvalues(){for(const t of this.#O()){void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const i of this.#F()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#c[i],this))return this.get(this.#c[i],e)}}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const i of this.#F()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}rforEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const i of this.#O()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}purgeStale(){let t=!1;for(const e of this.#O({allowStale:!0}))this.#T(e)&&(this.#M(this.#c[e],"expire"),t=!0);return t}info(t){const e=this.#l.get(t);if(void 0===e)return;const i=this.#u[e],s=this.#A(i)?i.__staleWhileFetching:i;if(void 0===s)return;const n={value:s};if(this.#w&&this.#x){const t=this.#w[e],i=this.#x[e];if(t&&i){const e=t-(v.now()-i);n.ttl=e,n.start=Date.now()}}return this.#y&&(n.size=this.#y[e]),n}dump(){const t=[];for(const e of this.#F({allowStale:!0})){const i=this.#c[e],s=this.#u[e],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const r={value:n};if(this.#w&&this.#x){r.ttl=this.#w[e];const t=v.now()-this.#x[e];r.start=Math.floor(Date.now()-t)}this.#y&&(r.size=this.#y[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=v.now()-t}this.set(e,i.value,i)}}set(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:h=this.noUpdateTTL}=i;const l=this.#W(t,e,i.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#M(t,"set"),this;let c=0===this.#a?void 0:this.#l.get(t);if(void 0===c)c=0===this.#a?this.#g:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#I(!1):this.#a,this.#c[c]=t,this.#u[c]=e,this.#l.set(t,c),this.#d[this.#g]=c,this.#f[c]=this.#g,this.#g=c,this.#a++,this.#B(c,l,a),a&&(a.set="add"),h=!1;else{this.#L(c);const i=this.#u[c];if(e!==i){if(this.#b&&this.#A(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#S&&this.#s?.(e,t,"set"),this.#z&&this.#m?.push([e,t,"set"]))}else r||(this.#S&&this.#s?.(i,t,"set"),this.#z&&this.#m?.push([i,t,"set"]));if(this.#R(c),this.#B(c,l,a),this.#u[c]=e,a){a.set="replace";const t=i&&this.#A(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#w||this.#E(),this.#w&&(h||this.#D(c,s,n),a&&this.#j(a,c)),!r&&this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}return this}pop(){try{for(;this.#a;){const t=this.#u[this.#p];if(this.#I(!0),this.#A(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}}}#I(t){const e=this.#p,i=this.#c[e],s=this.#u[e];return this.#b&&this.#A(s)?s.__abortController.abort(new Error("evicted")):(this.#S||this.#z)&&(this.#S&&this.#s?.(s,i,"evict"),this.#z&&this.#m?.push([s,i,"evict"])),this.#R(e),t&&(this.#c[e]=void 0,this.#u[e]=void 0,this.#v.push(e)),1===this.#a?(this.#p=this.#g=0,this.#v.length=0):this.#p=this.#d[e],this.#l.delete(i),this.#a--,e}has(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#l.get(t);if(void 0!==n){const t=this.#u[n];if(this.#A(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#T(n))return i&&this.#C(n),s&&(s.has="hit",this.#j(s,n)),!0;s&&(s.has="stale",this.#j(s,n))}else s&&(s.has="miss");return!1}peek(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0===s||!i&&this.#T(s))return;const n=this.#u[s];return this.#A(n)?n.__staleWhileFetching:n}#_(t,e,i,s){var n=this;const r=void 0===e?void 0:this.#u[e];if(this.#A(r))return r;const o=new w,{signal:a}=i;a?.addEventListener("abort",(()=>o.abort(a.reason)),{signal:o.signal});const h={signal:o.signal,options:i,context:s},l=function(s){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{aborted:a}=o.signal,l=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(a&&!r?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),a&&!l&&!r)return c(o.signal.reason);const d=u;return n.#u[e]===u&&(void 0===s?d.__staleWhileFetching?n.#u[e]=d.__staleWhileFetching:n.#M(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),n.set(t,s,h.options))),s},c=s=>{const{aborted:n}=o.signal,r=n&&i.allowStaleOnFetchAbort,a=r||i.allowStaleOnFetchRejection,h=a||i.noDeleteOnFetchRejection,l=u;if(this.#u[e]===u){!h||void 0===l.__staleWhileFetching?this.#M(t,"fetch"):r||(this.#u[e]=l.__staleWhileFetching)}if(a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const u=new Promise(((e,s)=>{const n=this.#r?.(t,r,h);n&&n instanceof Promise&&n.then((t=>e(void 0===t?void 0:t)),s),o.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),d=Object.assign(u,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,d,{...h.options,status:void 0}),e=this.#l.get(t)):this.#u[e]=d,d}#A(t){if(!this.#b)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof w}async fetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:m}=e;if(!this.#b)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:v});const y={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:h,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:v,signal:m};let x=this.#l.get(t);if(void 0===x){v&&(v.fetch="miss");const e=this.#_(t,x,y,p);return e.__returned=e}{const e=this.#u[x];if(this.#A(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#T(x);if(!g&&!n)return v&&(v.fetch="hit"),this.#L(x),s&&this.#C(x),v&&this.#j(v,x),e;const r=this.#_(t,x,y,p),o=void 0!==r.__staleWhileFetching&&i;return v&&(v.fetch=n?"stale":"refresh",o&&n&&(v.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}async forceFetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.#o;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...r}=e,o=this.get(t,r);if(!n&&void 0!==o)return o;const a=i(t,o,{options:r,context:s});return this.set(t,a,r),a}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,o=this.#l.get(t);if(void 0!==o){const e=this.#u[o],a=this.#A(e);return r&&this.#j(r,o),this.#T(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.#M(t,"expire"),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#L(o),s&&this.#C(o),e))}r&&(r.get="miss")}#G(t,e){this.#f[e]=t,this.#d[t]=e}#L(t){t!==this.#g&&(t===this.#p?this.#p=this.#d[t]:this.#G(this.#f[t],this.#d[t]),this.#G(this.#g,t),this.#g=t)}delete(t){return this.#M(t,"delete")}#M(t,e){let i=!1;if(0!==this.#a){const s=this.#l.get(t);if(void 0!==s)if(i=!0,1===this.#a)this.#U(e);else{this.#R(s);const i=this.#u[s];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#S||this.#z)&&(this.#S&&this.#s?.(i,t,e),this.#z&&this.#m?.push([i,t,e])),this.#l.delete(t),this.#c[s]=void 0,this.#u[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#p)this.#p=this.#d[s];else{const t=this.#f[s];this.#d[t]=this.#d[s];const e=this.#d[s];this.#f[e]=this.#f[s]}this.#a--,this.#v.push(s)}}if(this.#z&&this.#m?.length){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}return i}clear(){return this.#U("delete")}#U(t){for(const e of this.#O({allowStale:!0})){const i=this.#u[e];if(this.#A(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#c[e];this.#S&&this.#s?.(i,s,t),this.#z&&this.#m?.push([i,s,t])}}if(this.#l.clear(),this.#u.fill(void 0),this.#c.fill(void 0),this.#w&&this.#x&&(this.#w.fill(0),this.#x.fill(0)),this.#y&&this.#y.fill(0),this.#p=0,this.#g=0,this.#v.length=0,this.#h=0,this.#a=0,this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}}}var F=i(34677),O=i.n(F),T=i(39129);function k(){return k=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},k.apply(null,arguments)}function E(t,e){if(null==t)return{};var i={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.includes(s))continue;i[s]=t[s]}return i}const D={base:{},cache:{max:100}};let M=new L(D.cache);const C=t=>{O()(D,t),M=new L(D.cache)},j=()=>M,R=["moduleName","children","format"],W=["moduleName","name","format","force","children"],B=["data"],I=["request","children"],N=["data"],G=t=>{let{value:e,format:i,language:s,locale:n}=t;var r;if(!e)return"";const o=(null==(r=e.translation)?void 0:r[s||n])||e.description;return"origin"===i?e:"option"===i?Object.assign({},e,{label:o}):o},U=()=>{const{enums:t}=(0,r.usePreset)();return a()((async e=>{let{moduleNames:i,language:s}=e;return await Promise.all(i.map((async e=>{const i=Object.assign({},D.base,t)[e];if(!i)return console.warn(`\u679a\u4e3e[${e}]\u7684loader\u6ca1\u6709\u88ab\u6b63\u786e\u8bbe\u7f6e`),null;const n=await("function"===typeof i?i({target:e,language:s,locale:s}):i);if(Array.isArray(n))return new Map(n.map((t=>[t.value.toString(),t])));if(n instanceof Map)return n;throw new Error("\u83b7\u53d6\u5230\u7684resource\u7c7b\u578b\u4e0d\u6b63\u786e\uff0c\u4ec5\u652f\u6301Array\u6216Map")})))}))},P=()=>{const t=U();return a()((async e=>{let{requests:i,format:s,language:n}=e;const r=j(),o=t=>Symbol.for(`${t.moduleName}_${t.value}_${n}_${t.format||s}`),a=u()(i,(t=>!t.force&&r.has(o(t))?"cached":"uncached")),h=a.uncached||[],l=a.cached||[],c=[],d=f()(h.map((t=>{let{moduleName:e}=t;return e}))),p=g()(await t({moduleNames:d,language:n}),((t,e,i)=>{t[d[i]]=e}),{});return l.forEach((t=>{const e=r.get(o(t)),s=i.indexOf(t);c[s]=e})),h.forEach((t=>{const e=(t=>{if(r.has(o(t)))return r.get(o(t));const e=p[t.moduleName].get(t.value),i=G({value:e,format:t.format||s,language:n});return i&&r.set(o(t),i),i})(t),a=i.indexOf(t);c[a]=e})),c}))},q=t=>{const e=Object.assign({},{format:"origin"},t),{moduleName:i,children:s,format:o}=e,a=E(e,R),h=U(),{language:c,locale:u}=(0,r.useGlobalContext)();return n().createElement(l(),k({},a,{data:{moduleName:i},loader:t=>{let{data:e}=t;const{moduleName:i}=Object.assign({},e);return h({moduleNames:Array.isArray(i)?i:[i],language:c||u})},render:t=>{let{data:e}=t;return"function"===typeof s?s(Array.isArray(i)?e.map((t=>Array.from(t.values()).map((t=>G({value:t,format:o,language:c,locale:u}))))):Array.from(e[0].values()).map((t=>G({value:t,format:o,language:c,locale:u})))):s}}))},H=t=>{const e=Object.assign({},{force:!1},t),{moduleName:i,name:s,format:o,force:a,children:h}=e,c=E(e,W),{language:u,locale:d}=(0,r.useGlobalContext)(),f=P();return(0,T.isEmpty)(s)?n().createElement(q,{moduleName:i,format:o||"origin"},h):n().createElement(l(),k({},c,{loader:t=>{let{data:e}=t;const{requests:i,language:s,format:n}=Object.assign({},e);return f({requests:i,language:s,format:n})},data:{requests:[{moduleName:i,value:s,force:a,format:"function"===typeof h?"origin":o||"default"}],language:u||d||window.navigator.language},render:t=>{let{data:e}=t,s=E(t,B);return"function"===typeof h?h(Array.isArray(i)?e:e[0],s):h||e}}))},$=t=>{const e=Object.assign({},{format:"default"},t),{request:i,children:s}=e,o=E(e,I),{language:a,locale:h}=(0,r.useGlobalContext)(),c=P();return n().createElement(l(),k({},o,{loader:t=>{let{data:e}=t;const{requests:i,format:s,language:n}=Object.assign({},e);return c({requests:i,language:n,format:s})},data:{requests:Array.isArray(i)?i:[i],language:a||h||window.navigator.language},render:t=>{let{data:e}=t,n=E(t,N);return"function"===typeof s?s(Array.isArray(i)?e:e[0],n):s||e.join(",")}}))}},31170:t=>{t.exports=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},94710:t=>{t.exports=function(t,e,i,s){for(var n=-1,r=null==t?0:t.length;++n<r;){var o=t[n];e(s,o,i(o),t)}return s}},75866:(t,e,i)=>{var s=i(88468);t.exports=function(t,e){return!!(null==t?0:t.length)&&s(t,e,0)>-1}},41558:t=>{t.exports=function(t,e,i){for(var s=-1,n=null==t?0:t.length;++s<n;)if(i(e,t[s]))return!0;return!1}},63868:(t,e,i)=>{var s=i(71775),n=i(93211);t.exports=function(t,e,i){(void 0!==i&&!n(t[e],i)||void 0===i&&!(e in t))&&s(t,e,i)}},78420:(t,e,i)=>{var s=i(71775),n=i(93211),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var o=t[e];r.call(t,e)&&n(o,i)&&(void 0!==i||e in t)||s(t,e,i)}},32952:(t,e,i)=>{var s=i(45652);t.exports=function(t,e,i,n){return s(t,(function(t,s,r){e(n,t,i(t),r)})),n}},71775:(t,e,i)=>{var s=i(5654);t.exports=function(t,e,i){"__proto__"==e&&s?s(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},45652:(t,e,i)=>{var s=i(94664),n=i(76516)(s);t.exports=n},75816:t=>{t.exports=function(t,e,i,s){for(var n=t.length,r=i+(s?1:-1);s?r--:++r<n;)if(e(t[r],r,t))return r;return-1}},88468:(t,e,i)=>{var s=i(75816),n=i(40644),r=i(94020);t.exports=function(t,e,i){return e===e?r(t,e,i):s(t,n,i)}},40644:t=>{t.exports=function(t){return t!==t}},58122:(t,e,i)=>{var s=i(46686),n=i(36140),r=i(43516),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!s(t))return r(t);var e=n(t),i=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&i.push(a);return i}},23253:(t,e,i)=>{var s=i(5538),n=i(63868),r=i(94258),o=i(83223),a=i(46686),h=i(30474),l=i(53737);t.exports=function t(e,i,c,u,d){e!==i&&r(i,(function(r,h){if(d||(d=new s),a(r))o(e,i,h,c,t,u,d);else{var f=u?u(l(e,h),r,h+"",e,i,d):void 0;void 0===f&&(f=r),n(e,h,f)}}),h)}},83223:(t,e,i)=>{var s=i(63868),n=i(44353),r=i(38710),o=i(91980),a=i(20310),h=i(22777),l=i(54052),c=i(76272),u=i(44543),d=i(11629),f=i(46686),p=i(12322),g=i(51268),v=i(53737),m=i(91609);t.exports=function(t,e,i,y,x,w,S){var b=v(t,i),z=v(e,i),A=S.get(z);if(A)s(t,i,A);else{var _=w?w(b,z,i+"",t,e,S):void 0,L=void 0===_;if(L){var F=l(z),O=!F&&u(z),T=!F&&!O&&g(z);_=z,F||O||T?l(b)?_=b:c(b)?_=o(b):O?(L=!1,_=n(z,!0)):T?(L=!1,_=r(z,!0)):_=[]:p(z)||h(z)?(_=b,h(b)?_=m(b):f(b)&&!d(b)||(_=a(z))):L=!1}L&&(S.set(z,_),x(_,z,y,w,S),S.delete(z)),s(t,i,_)}}},55647:(t,e,i)=>{var s=i(33279),n=i(55636),r=i(46350);t.exports=function(t,e){return r(n(t,e,s),t+"")}},28325:(t,e,i)=>{var s=i(22541),n=i(5654),r=i(33279),o=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:s(e),writable:!0})}:r;t.exports=o},64416:(t,e,i)=>{var s=i(18902),n=i(75866),r=i(41558),o=i(58114),a=i(68182),h=i(52074);t.exports=function(t,e,i){var l=-1,c=n,u=t.length,d=!0,f=[],p=f;if(i)d=!1,c=r;else if(u>=200){var g=e?null:a(t);if(g)return h(g);d=!1,c=o,p=new s}else p=e?[]:f;t:for(;++l<u;){var v=t[l],m=e?e(v):v;if(v=i||0!==v?v:0,d&&m===m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),f.push(v)}else c(p,m,i)||(p!==f&&p.push(m),f.push(v))}return f}},61516:(t,e,i)=>{var s=i(22929);t.exports=function(t){var e=new t.constructor(t.byteLength);return new s(e).set(new s(t)),e}},44353:(t,e,i)=>{t=i.nmd(t);var s=i(56552),n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?s.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var i=t.length,s=a?a(i):new t.constructor(i);return t.copy(s),s}},38710:(t,e,i)=>{var s=i(61516);t.exports=function(t,e){var i=e?s(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}},91980:t=>{t.exports=function(t,e){var i=-1,s=t.length;for(e||(e=Array(s));++i<s;)e[i]=t[i];return e}},96614:(t,e,i)=>{var s=i(78420),n=i(71775);t.exports=function(t,e,i,r){var o=!i;i||(i={});for(var a=-1,h=e.length;++a<h;){var l=e[a],c=r?r(i[l],t[l],l,i,t):void 0;void 0===c&&(c=t[l]),o?n(i,l,c):s(i,l,c)}return i}},19449:(t,e,i)=>{var s=i(94710),n=i(32952),r=i(9096),o=i(54052);t.exports=function(t,e){return function(i,a){var h=o(i)?s:n,l=e?e():{};return h(i,t,r(a,2),l)}}},84570:(t,e,i)=>{var s=i(55647),n=i(60929);t.exports=function(t){return s((function(e,i){var s=-1,r=i.length,o=r>1?i[r-1]:void 0,a=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&n(i[0],i[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++s<r;){var h=i[s];h&&t(e,h,s,o)}return e}))}},76516:(t,e,i)=>{var s=i(6571);t.exports=function(t,e){return function(i,n){if(null==i)return i;if(!s(i))return t(i,n);for(var r=i.length,o=e?r:-1,a=Object(i);(e?o--:++o<r)&&!1!==n(a[o],o,a););return i}}},68182:(t,e,i)=>{var s=i(72070),n=i(75713),r=i(52074),o=s&&1/r(new s([,-0]))[1]==1/0?function(t){return new s(t)}:n;t.exports=o},5654:(t,e,i)=>{var s=i(87937),n=function(){try{var t=s(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=n},20310:(t,e,i)=>{var s=i(21817),n=i(85990),r=i(36140);t.exports=function(t){return"function"!=typeof t.constructor||r(t)?{}:s(n(t))}},60929:(t,e,i)=>{var s=i(93211),n=i(6571),r=i(69194),o=i(46686);t.exports=function(t,e,i){if(!o(i))return!1;var a=typeof e;return!!("number"==a?n(i)&&r(e,i.length):"string"==a&&e in i)&&s(i[e],t)}},43516:t=>{t.exports=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}},55636:(t,e,i)=>{var s=i(31170),n=Math.max;t.exports=function(t,e,i){return e=n(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=n(r.length-e,0),h=Array(a);++o<a;)h[o]=r[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=r[o];return l[e]=i(h),s(t,this,l)}}},53737:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}},46350:(t,e,i)=>{var s=i(28325),n=i(86578)(s);t.exports=n},86578:t=>{var e=Date.now;t.exports=function(t){var i=0,s=0;return function(){var n=e(),r=16-(n-s);if(s=n,r>0){if(++i>=800)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}},94020:t=>{t.exports=function(t,e,i){for(var s=i-1,n=t.length;++s<n;)if(t[s]===e)return s;return-1}},22541:t=>{t.exports=function(t){return function(){return t}}},39835:(t,e,i)=>{var s=i(71775),n=i(19449),r=Object.prototype.hasOwnProperty,o=n((function(t,e,i){r.call(t,i)?t[i].push(e):s(t,i,[e])}));t.exports=o},76272:(t,e,i)=>{var s=i(6571),n=i(22761);t.exports=function(t){return n(t)&&s(t)}},12322:(t,e,i)=>{var s=i(16913),n=i(85990),r=i(22761),o=Function.prototype,a=Object.prototype,h=o.toString,l=a.hasOwnProperty,c=h.call(Object);t.exports=function(t){if(!r(t)||"[object Object]"!=s(t))return!1;var e=n(t);if(null===e)return!0;var i=l.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&h.call(i)==c}},30474:(t,e,i)=>{var s=i(73204),n=i(58122),r=i(6571);t.exports=function(t){return r(t)?s(t,!0):n(t)}},34677:(t,e,i)=>{var s=i(23253),n=i(84570)((function(t,e,i){s(t,e,i)}));t.exports=n},75713:t=>{t.exports=function(){}},91609:(t,e,i)=>{var s=i(96614),n=i(30474);t.exports=function(t){return s(t,n(t))}},9376:(t,e,i)=>{var s=i(64416);t.exports=function(t){return t&&t.length?s(t):[]}}}]);
2
- //# sourceMappingURL=1125.e4ede100.chunk.js.map
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1125],{51125:(t,e,i)=>{"use strict";i.r(e),i.d(e,{Enum:()=>$,EnumResource:()=>q,default:()=>H,preset:()=>C,useEnumLoader:()=>P,useEnumResource:()=>U});var s=i(73884),n=i.n(s),r=i(83694),o=i(96418),a=i.n(o),h=i(87558),l=i.n(h),c=i(39835),u=i.n(c),d=i(9376),f=i.n(d),p=i(22717),g=i.n(p);const v="object"===typeof performance&&performance&&"function"===typeof performance.now?performance:Date,m=new Set,y="object"===typeof process&&process?process:{},x=(t,e,i,s)=>{"function"===typeof y.emitWarning?y.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let S=globalThis.AbortController,w=globalThis.AbortSignal;if("undefined"===typeof S){w=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},S=class{constructor(){e()}signal=(()=>new w)();abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==y.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,x("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const b=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),z=t=>b(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?A:null:null;class A extends Array{constructor(t){super(t),this.fill(0)}}class _{heap;length;static#t=!1;static create(t){const e=z(t);if(!e)return[];_.#t=!0;const i=new _(t,e);return _.#t=!1,i}constructor(t,e){if(!_.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class L{#e;#i;#s;#n;#r;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#h;#l;#c;#u;#d;#f;#p;#g;#v;#m;#y;#x;#S;#w;#b;#z;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#S,sizes:t.#y,keyMap:t.#l,keyList:t.#c,valList:t.#u,next:t.#d,prev:t.#f,get head(){return t.#p},get tail(){return t.#g},free:t.#v,isBackgroundFetch:e=>t.#A(e),backgroundFetch:(e,i,s,n)=>t.#_(e,i,s,n),moveToTail:e=>t.#L(e),indexes:e=>t.#F(e),rindexes:e=>t.#O(e),isStale:e=>t.#T(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#h}get size(){return this.#a}get fetchMethod(){return this.#r}get memoMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#n}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:h,disposeAfter:l,noDisposeOnSet:c,noUpdateTTL:u,maxSize:d=0,maxEntrySize:f=0,sizeCalculation:p,fetchMethod:g,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:A,ignoreFetchAbort:F}=t;if(0!==e&&!b(e))throw new TypeError("max option must be a nonnegative integer");const O=e?z(e):Array;if(!O)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=d,this.maxEntrySize=f||this.#i,this.sizeCalculation=p,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!==typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!==typeof v)throw new TypeError("memoMethod must be a function if defined");if(this.#o=v,void 0!==g&&"function"!==typeof g)throw new TypeError("fetchMethod must be a function if specified");if(this.#r=g,this.#b=!!g,this.#l=new Map,this.#c=new Array(e).fill(void 0),this.#u=new Array(e).fill(void 0),this.#d=new O(e),this.#f=new O(e),this.#p=0,this.#g=0,this.#v=_.create(e),this.#a=0,this.#h=0,"function"===typeof h&&(this.#s=h),"function"===typeof l?(this.#n=l,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#w=!!this.#s,this.#z=!!this.#n,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!F,0!==this.maxEntrySize){if(0!==this.#i&&!b(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#k()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=b(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!b(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!m.has(t))(t)){m.add(t);x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,L)}}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#E(){var t=this;const e=new A(this.#e),i=new A(this.#e);this.#S=e,this.#x=i,this.#D=function(s,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.now();if(i[s]=0!==n?r:0,e[s]=n,0!==n&&t.ttlAutopurge){const e=setTimeout((()=>{t.#T(s)&&t.#M(t.#c[s],"expire")}),n+1);e.unref&&e.unref()}},this.#C=t=>{i[t]=0!==e[t]?v.now():0},this.#j=(t,r)=>{if(e[r]){const o=e[r],a=i[r];if(!o||!a)return;t.ttl=o,t.start=a,t.now=s||n();const h=t.now-a;t.remainingTTL=o-h}};let s=0;const n=()=>{const t=v.now();if(this.ttlResolution>0){s=t;const e=setTimeout((()=>s=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=t=>{const r=this.#l.get(t);if(void 0===r)return 0;const o=e[r],a=i[r];if(!o||!a)return 1/0;return o-((s||n())-a)},this.#T=t=>{const r=i[t],o=e[t];return!!o&&!!r&&(s||n())-r>o}}#C=()=>{};#j=()=>{};#D=()=>{};#T=()=>!1;#k(){const t=new A(this.#e);this.#h=0,this.#y=t,this.#R=e=>{this.#h-=t[e],t[e]=0},this.#W=(t,e,i,s)=>{if(this.#A(e))return 0;if(!b(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!==typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!b(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#B=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#h>i;)this.#I(!0)}this.#h+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#h)}}#R=t=>{};#B=(t,e,i)=>{};#W=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};#F(){var t=this;let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){if(t.#a)for(let i=t.#g;t.#N(i)&&(!e&&t.#T(i)||(yield i),i!==t.#p);)i=t.#f[i]}()}#O(){var t=this;let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){if(t.#a)for(let i=t.#p;t.#N(i)&&(!e&&t.#T(i)||(yield i),i!==t.#g);)i=t.#d[i]}()}#N(t){return void 0!==t&&this.#l.get(this.#c[t])===t}*entries(){for(const t of this.#F())void 0===this.#u[t]||void 0===this.#c[t]||this.#A(this.#u[t])||(yield[this.#c[t],this.#u[t]])}*rentries(){for(const t of this.#O())void 0===this.#u[t]||void 0===this.#c[t]||this.#A(this.#u[t])||(yield[this.#c[t],this.#u[t]])}*keys(){for(const t of this.#F()){const e=this.#c[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*rkeys(){for(const t of this.#O()){const e=this.#c[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*values(){for(const t of this.#F()){void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}}*rvalues(){for(const t of this.#O()){void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const i of this.#F()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#c[i],this))return this.get(this.#c[i],e)}}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const i of this.#F()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}rforEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const i of this.#O()){const s=this.#u[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}purgeStale(){let t=!1;for(const e of this.#O({allowStale:!0}))this.#T(e)&&(this.#M(this.#c[e],"expire"),t=!0);return t}info(t){const e=this.#l.get(t);if(void 0===e)return;const i=this.#u[e],s=this.#A(i)?i.__staleWhileFetching:i;if(void 0===s)return;const n={value:s};if(this.#S&&this.#x){const t=this.#S[e],i=this.#x[e];if(t&&i){const e=t-(v.now()-i);n.ttl=e,n.start=Date.now()}}return this.#y&&(n.size=this.#y[e]),n}dump(){const t=[];for(const e of this.#F({allowStale:!0})){const i=this.#c[e],s=this.#u[e],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const r={value:n};if(this.#S&&this.#x){r.ttl=this.#S[e];const t=v.now()-this.#x[e];r.start=Math.floor(Date.now()-t)}this.#y&&(r.size=this.#y[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=v.now()-t}this.set(e,i.value,i)}}set(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:h=this.noUpdateTTL}=i;const l=this.#W(t,e,i.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#M(t,"set"),this;let c=0===this.#a?void 0:this.#l.get(t);if(void 0===c)c=0===this.#a?this.#g:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#I(!1):this.#a,this.#c[c]=t,this.#u[c]=e,this.#l.set(t,c),this.#d[this.#g]=c,this.#f[c]=this.#g,this.#g=c,this.#a++,this.#B(c,l,a),a&&(a.set="add"),h=!1;else{this.#L(c);const i=this.#u[c];if(e!==i){if(this.#b&&this.#A(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#w&&this.#s?.(e,t,"set"),this.#z&&this.#m?.push([e,t,"set"]))}else r||(this.#w&&this.#s?.(i,t,"set"),this.#z&&this.#m?.push([i,t,"set"]));if(this.#R(c),this.#B(c,l,a),this.#u[c]=e,a){a.set="replace";const t=i&&this.#A(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#S||this.#E(),this.#S&&(h||this.#D(c,s,n),a&&this.#j(a,c)),!r&&this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}return this}pop(){try{for(;this.#a;){const t=this.#u[this.#p];if(this.#I(!0),this.#A(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}}}#I(t){const e=this.#p,i=this.#c[e],s=this.#u[e];return this.#b&&this.#A(s)?s.__abortController.abort(new Error("evicted")):(this.#w||this.#z)&&(this.#w&&this.#s?.(s,i,"evict"),this.#z&&this.#m?.push([s,i,"evict"])),this.#R(e),t&&(this.#c[e]=void 0,this.#u[e]=void 0,this.#v.push(e)),1===this.#a?(this.#p=this.#g=0,this.#v.length=0):this.#p=this.#d[e],this.#l.delete(i),this.#a--,e}has(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#l.get(t);if(void 0!==n){const t=this.#u[n];if(this.#A(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#T(n))return i&&this.#C(n),s&&(s.has="hit",this.#j(s,n)),!0;s&&(s.has="stale",this.#j(s,n))}else s&&(s.has="miss");return!1}peek(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0===s||!i&&this.#T(s))return;const n=this.#u[s];return this.#A(n)?n.__staleWhileFetching:n}#_(t,e,i,s){var n=this;const r=void 0===e?void 0:this.#u[e];if(this.#A(r))return r;const o=new S,{signal:a}=i;a?.addEventListener("abort",(()=>o.abort(a.reason)),{signal:o.signal});const h={signal:o.signal,options:i,context:s},l=function(s){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{aborted:a}=o.signal,l=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(a&&!r?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),a&&!l&&!r)return c(o.signal.reason);const d=u;return n.#u[e]===u&&(void 0===s?d.__staleWhileFetching?n.#u[e]=d.__staleWhileFetching:n.#M(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),n.set(t,s,h.options))),s},c=s=>{const{aborted:n}=o.signal,r=n&&i.allowStaleOnFetchAbort,a=r||i.allowStaleOnFetchRejection,h=a||i.noDeleteOnFetchRejection,l=u;if(this.#u[e]===u){!h||void 0===l.__staleWhileFetching?this.#M(t,"fetch"):r||(this.#u[e]=l.__staleWhileFetching)}if(a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const u=new Promise(((e,s)=>{const n=this.#r?.(t,r,h);n&&n instanceof Promise&&n.then((t=>e(void 0===t?void 0:t)),s),o.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),d=Object.assign(u,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,d,{...h.options,status:void 0}),e=this.#l.get(t)):this.#u[e]=d,d}#A(t){if(!this.#b)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof S}async fetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:m}=e;if(!this.#b)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:v});const y={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:h,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:v,signal:m};let x=this.#l.get(t);if(void 0===x){v&&(v.fetch="miss");const e=this.#_(t,x,y,p);return e.__returned=e}{const e=this.#u[x];if(this.#A(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#T(x);if(!g&&!n)return v&&(v.fetch="hit"),this.#L(x),s&&this.#C(x),v&&this.#j(v,x),e;const r=this.#_(t,x,y,p),o=void 0!==r.__staleWhileFetching&&i;return v&&(v.fetch=n?"stale":"refresh",o&&n&&(v.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}async forceFetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.#o;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...r}=e,o=this.get(t,r);if(!n&&void 0!==o)return o;const a=i(t,o,{options:r,context:s});return this.set(t,a,r),a}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,o=this.#l.get(t);if(void 0!==o){const e=this.#u[o],a=this.#A(e);return r&&this.#j(r,o),this.#T(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.#M(t,"expire"),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#L(o),s&&this.#C(o),e))}r&&(r.get="miss")}#G(t,e){this.#f[e]=t,this.#d[t]=e}#L(t){t!==this.#g&&(t===this.#p?this.#p=this.#d[t]:this.#G(this.#f[t],this.#d[t]),this.#G(this.#g,t),this.#g=t)}delete(t){return this.#M(t,"delete")}#M(t,e){let i=!1;if(0!==this.#a){const s=this.#l.get(t);if(void 0!==s)if(i=!0,1===this.#a)this.#U(e);else{this.#R(s);const i=this.#u[s];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#w||this.#z)&&(this.#w&&this.#s?.(i,t,e),this.#z&&this.#m?.push([i,t,e])),this.#l.delete(t),this.#c[s]=void 0,this.#u[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#p)this.#p=this.#d[s];else{const t=this.#f[s];this.#d[t]=this.#d[s];const e=this.#d[s];this.#f[e]=this.#f[s]}this.#a--,this.#v.push(s)}}if(this.#z&&this.#m?.length){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}return i}clear(){return this.#U("delete")}#U(t){for(const e of this.#O({allowStale:!0})){const i=this.#u[e];if(this.#A(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#c[e];this.#w&&this.#s?.(i,s,t),this.#z&&this.#m?.push([i,s,t])}}if(this.#l.clear(),this.#u.fill(void 0),this.#c.fill(void 0),this.#S&&this.#x&&(this.#S.fill(0),this.#x.fill(0)),this.#y&&this.#y.fill(0),this.#p=0,this.#g=0,this.#v.length=0,this.#h=0,this.#a=0,this.#z&&this.#m){const t=this.#m;let e;for(;e=t?.shift();)this.#n?.(...e)}}}var F=i(34677),O=i.n(F),T=i(39129);function k(){return k=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},k.apply(null,arguments)}function E(t,e){if(null==t)return{};var i={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.includes(s))continue;i[s]=t[s]}return i}const D={base:{},cache:{max:100}};let M=new L(D.cache);const C=t=>{O()(D,t),M=new L(D.cache)},j=()=>M,R=["moduleName","children","format"],W=["moduleName","name","format","force","children"],B=["data"],I=["request","children"],N=["data"],G=t=>{let{value:e,format:i,language:s,locale:n}=t;var r;if(!e)return"";const o=(null==(r=e.translation)?void 0:r[s||n])||e.description;return"origin"===i?e:"option"===i?Object.assign({},e,{label:o}):o},U=()=>{const{enums:t}=(0,r.usePreset)();return a()((async e=>{let{moduleNames:i,language:s}=e;return await Promise.all(i.map((async e=>{const i=Object.assign({},D.base,t)[e];if(!i)return console.warn(`\u679a\u4e3e[${e}]\u7684loader\u6ca1\u6709\u88ab\u6b63\u786e\u8bbe\u7f6e`),null;const n=await("function"===typeof i?i({target:e,language:s,locale:s}):i);if(Array.isArray(n))return new Map(n.map((t=>[String(t.value),t])));if(n instanceof Map)return n;throw new Error("\u83b7\u53d6\u5230\u7684resource\u7c7b\u578b\u4e0d\u6b63\u786e\uff0c\u4ec5\u652f\u6301Array\u6216Map")})))}))},P=()=>{const t=U();return a()((async e=>{let{requests:i,format:s,language:n}=e;const r=j(),o=t=>Symbol.for(`${t.moduleName}_${t.value}_${n}_${t.format||s}`),a=u()(i,(t=>!t.force&&r.has(o(t))?"cached":"uncached")),h=a.uncached||[],l=a.cached||[],c=[],d=f()(h.map((t=>{let{moduleName:e}=t;return e}))),p=g()(await t({moduleNames:d,language:n}),((t,e,i)=>{t[d[i]]=e}),{});return l.forEach((t=>{const e=r.get(o(t)),s=i.indexOf(t);c[s]=e})),h.forEach((t=>{const e=(t=>{if(r.has(o(t)))return r.get(o(t));const e=p[t.moduleName].get(String(t.value)),i=G({value:e,format:t.format||s,language:n});return i&&r.set(o(t),i),i})(t),a=i.indexOf(t);c[a]=e})),c}))},q=t=>{const e=Object.assign({},{format:"origin"},t),{moduleName:i,children:s,format:o}=e,a=E(e,R),h=U(),{language:c,locale:u}=(0,r.useGlobalContext)();return n().createElement(l(),k({},a,{data:{moduleName:i},loader:t=>{let{data:e}=t;const{moduleName:i}=Object.assign({},e);return h({moduleNames:Array.isArray(i)?i:[i],language:c||u})},render:t=>{let{data:e}=t;return"function"===typeof s?s(Array.isArray(i)?e.map((t=>Array.from(t.values()).map((t=>G({value:t,format:o,language:c,locale:u}))))):Array.from(e[0].values()).map((t=>G({value:t,format:o,language:c,locale:u})))):s}}))},H=t=>{const e=Object.assign({},{force:!1},t),{moduleName:i,name:s,format:o,force:a,children:h}=e,c=E(e,W),{language:u,locale:d}=(0,r.useGlobalContext)(),f=P();return(0,T.isEmpty)(s)?n().createElement(q,{moduleName:i,format:o||"origin"},h):n().createElement(l(),k({},c,{loader:t=>{let{data:e}=t;const{requests:i,language:s,format:n}=Object.assign({},e);return f({requests:i,language:s,format:n})},data:{requests:[{moduleName:i,value:s,force:a,format:"function"===typeof h?"origin":o||"default"}],language:u||d||window.navigator.language},render:t=>{let{data:e}=t,s=E(t,B);return"function"===typeof h?h(Array.isArray(i)?e:e[0],s):h||e}}))},$=t=>{const e=Object.assign({},{format:"default"},t),{request:i,children:s}=e,o=E(e,I),{language:a,locale:h}=(0,r.useGlobalContext)(),c=P();return n().createElement(l(),k({},o,{loader:t=>{let{data:e}=t;const{requests:i,format:s,language:n}=Object.assign({},e);return c({requests:i,language:n,format:s})},data:{requests:Array.isArray(i)?i:[i],language:a||h||window.navigator.language},render:t=>{let{data:e}=t,n=E(t,N);return"function"===typeof s?s(Array.isArray(i)?e:e[0],n):s||e.join(",")}}))}},31170:t=>{t.exports=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},94710:t=>{t.exports=function(t,e,i,s){for(var n=-1,r=null==t?0:t.length;++n<r;){var o=t[n];e(s,o,i(o),t)}return s}},75866:(t,e,i)=>{var s=i(88468);t.exports=function(t,e){return!!(null==t?0:t.length)&&s(t,e,0)>-1}},41558:t=>{t.exports=function(t,e,i){for(var s=-1,n=null==t?0:t.length;++s<n;)if(i(e,t[s]))return!0;return!1}},63868:(t,e,i)=>{var s=i(71775),n=i(93211);t.exports=function(t,e,i){(void 0!==i&&!n(t[e],i)||void 0===i&&!(e in t))&&s(t,e,i)}},78420:(t,e,i)=>{var s=i(71775),n=i(93211),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var o=t[e];r.call(t,e)&&n(o,i)&&(void 0!==i||e in t)||s(t,e,i)}},32952:(t,e,i)=>{var s=i(45652);t.exports=function(t,e,i,n){return s(t,(function(t,s,r){e(n,t,i(t),r)})),n}},71775:(t,e,i)=>{var s=i(5654);t.exports=function(t,e,i){"__proto__"==e&&s?s(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},45652:(t,e,i)=>{var s=i(94664),n=i(76516)(s);t.exports=n},75816:t=>{t.exports=function(t,e,i,s){for(var n=t.length,r=i+(s?1:-1);s?r--:++r<n;)if(e(t[r],r,t))return r;return-1}},88468:(t,e,i)=>{var s=i(75816),n=i(40644),r=i(94020);t.exports=function(t,e,i){return e===e?r(t,e,i):s(t,n,i)}},40644:t=>{t.exports=function(t){return t!==t}},58122:(t,e,i)=>{var s=i(46686),n=i(36140),r=i(43516),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!s(t))return r(t);var e=n(t),i=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&i.push(a);return i}},23253:(t,e,i)=>{var s=i(5538),n=i(63868),r=i(94258),o=i(83223),a=i(46686),h=i(30474),l=i(53737);t.exports=function t(e,i,c,u,d){e!==i&&r(i,(function(r,h){if(d||(d=new s),a(r))o(e,i,h,c,t,u,d);else{var f=u?u(l(e,h),r,h+"",e,i,d):void 0;void 0===f&&(f=r),n(e,h,f)}}),h)}},83223:(t,e,i)=>{var s=i(63868),n=i(44353),r=i(38710),o=i(91980),a=i(20310),h=i(22777),l=i(54052),c=i(76272),u=i(44543),d=i(11629),f=i(46686),p=i(12322),g=i(51268),v=i(53737),m=i(91609);t.exports=function(t,e,i,y,x,S,w){var b=v(t,i),z=v(e,i),A=w.get(z);if(A)s(t,i,A);else{var _=S?S(b,z,i+"",t,e,w):void 0,L=void 0===_;if(L){var F=l(z),O=!F&&u(z),T=!F&&!O&&g(z);_=z,F||O||T?l(b)?_=b:c(b)?_=o(b):O?(L=!1,_=n(z,!0)):T?(L=!1,_=r(z,!0)):_=[]:p(z)||h(z)?(_=b,h(b)?_=m(b):f(b)&&!d(b)||(_=a(z))):L=!1}L&&(w.set(z,_),x(_,z,y,S,w),w.delete(z)),s(t,i,_)}}},55647:(t,e,i)=>{var s=i(33279),n=i(55636),r=i(46350);t.exports=function(t,e){return r(n(t,e,s),t+"")}},28325:(t,e,i)=>{var s=i(22541),n=i(5654),r=i(33279),o=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:s(e),writable:!0})}:r;t.exports=o},64416:(t,e,i)=>{var s=i(18902),n=i(75866),r=i(41558),o=i(58114),a=i(68182),h=i(52074);t.exports=function(t,e,i){var l=-1,c=n,u=t.length,d=!0,f=[],p=f;if(i)d=!1,c=r;else if(u>=200){var g=e?null:a(t);if(g)return h(g);d=!1,c=o,p=new s}else p=e?[]:f;t:for(;++l<u;){var v=t[l],m=e?e(v):v;if(v=i||0!==v?v:0,d&&m===m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),f.push(v)}else c(p,m,i)||(p!==f&&p.push(m),f.push(v))}return f}},61516:(t,e,i)=>{var s=i(22929);t.exports=function(t){var e=new t.constructor(t.byteLength);return new s(e).set(new s(t)),e}},44353:(t,e,i)=>{t=i.nmd(t);var s=i(56552),n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?s.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var i=t.length,s=a?a(i):new t.constructor(i);return t.copy(s),s}},38710:(t,e,i)=>{var s=i(61516);t.exports=function(t,e){var i=e?s(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}},91980:t=>{t.exports=function(t,e){var i=-1,s=t.length;for(e||(e=Array(s));++i<s;)e[i]=t[i];return e}},96614:(t,e,i)=>{var s=i(78420),n=i(71775);t.exports=function(t,e,i,r){var o=!i;i||(i={});for(var a=-1,h=e.length;++a<h;){var l=e[a],c=r?r(i[l],t[l],l,i,t):void 0;void 0===c&&(c=t[l]),o?n(i,l,c):s(i,l,c)}return i}},19449:(t,e,i)=>{var s=i(94710),n=i(32952),r=i(9096),o=i(54052);t.exports=function(t,e){return function(i,a){var h=o(i)?s:n,l=e?e():{};return h(i,t,r(a,2),l)}}},84570:(t,e,i)=>{var s=i(55647),n=i(60929);t.exports=function(t){return s((function(e,i){var s=-1,r=i.length,o=r>1?i[r-1]:void 0,a=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&n(i[0],i[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++s<r;){var h=i[s];h&&t(e,h,s,o)}return e}))}},76516:(t,e,i)=>{var s=i(6571);t.exports=function(t,e){return function(i,n){if(null==i)return i;if(!s(i))return t(i,n);for(var r=i.length,o=e?r:-1,a=Object(i);(e?o--:++o<r)&&!1!==n(a[o],o,a););return i}}},68182:(t,e,i)=>{var s=i(72070),n=i(75713),r=i(52074),o=s&&1/r(new s([,-0]))[1]==1/0?function(t){return new s(t)}:n;t.exports=o},5654:(t,e,i)=>{var s=i(87937),n=function(){try{var t=s(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=n},20310:(t,e,i)=>{var s=i(21817),n=i(85990),r=i(36140);t.exports=function(t){return"function"!=typeof t.constructor||r(t)?{}:s(n(t))}},60929:(t,e,i)=>{var s=i(93211),n=i(6571),r=i(69194),o=i(46686);t.exports=function(t,e,i){if(!o(i))return!1;var a=typeof e;return!!("number"==a?n(i)&&r(e,i.length):"string"==a&&e in i)&&s(i[e],t)}},43516:t=>{t.exports=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}},55636:(t,e,i)=>{var s=i(31170),n=Math.max;t.exports=function(t,e,i){return e=n(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=n(r.length-e,0),h=Array(a);++o<a;)h[o]=r[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=r[o];return l[e]=i(h),s(t,this,l)}}},53737:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}},46350:(t,e,i)=>{var s=i(28325),n=i(86578)(s);t.exports=n},86578:t=>{var e=Date.now;t.exports=function(t){var i=0,s=0;return function(){var n=e(),r=16-(n-s);if(s=n,r>0){if(++i>=800)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}},94020:t=>{t.exports=function(t,e,i){for(var s=i-1,n=t.length;++s<n;)if(t[s]===e)return s;return-1}},22541:t=>{t.exports=function(t){return function(){return t}}},39835:(t,e,i)=>{var s=i(71775),n=i(19449),r=Object.prototype.hasOwnProperty,o=n((function(t,e,i){r.call(t,i)?t[i].push(e):s(t,i,[e])}));t.exports=o},76272:(t,e,i)=>{var s=i(6571),n=i(22761);t.exports=function(t){return n(t)&&s(t)}},12322:(t,e,i)=>{var s=i(16913),n=i(85990),r=i(22761),o=Function.prototype,a=Object.prototype,h=o.toString,l=a.hasOwnProperty,c=h.call(Object);t.exports=function(t){if(!r(t)||"[object Object]"!=s(t))return!1;var e=n(t);if(null===e)return!0;var i=l.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&h.call(i)==c}},30474:(t,e,i)=>{var s=i(73204),n=i(58122),r=i(6571);t.exports=function(t){return r(t)?s(t,!0):n(t)}},34677:(t,e,i)=>{var s=i(23253),n=i(84570)((function(t,e,i){s(t,e,i)}));t.exports=n},75713:t=>{t.exports=function(){}},91609:(t,e,i)=>{var s=i(96614),n=i(30474);t.exports=function(t){return s(t,n(t))}},9376:(t,e,i)=>{var s=i(64416);t.exports=function(t){return t&&t.length?s(t):[]}}}]);
2
+ //# sourceMappingURL=1125.70205c79.chunk.js.map