@nocobase/app 2.0.0-alpha.2 → 2.0.0-alpha.4

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 (44) hide show
  1. package/dist/client/7482.3924bcd9.async.js +1 -0
  2. package/dist/client/9462.a7773548.async.js +35 -0
  3. package/dist/client/index.html +1 -1
  4. package/dist/client/index.html.tpl +1 -1
  5. package/dist/client/{npm._at_ant-design.0bc226be.async.js → npm._at_ant-design.c2d0554a.async.js} +1 -1
  6. package/dist/client/npm._at_babel.94b2dd75.async.js +3 -0
  7. package/dist/client/npm._at_floating-ui.c19fd4ef.async.js +1 -0
  8. package/dist/client/npm._at_rc-component.fcc6d966.async.js +8 -0
  9. package/dist/client/npm._at_react-spring.2682ca90.async.js +1 -0
  10. package/dist/client/npm._at_use-gesture.c2876964.async.js +1 -0
  11. package/dist/client/npm.ahooks.9a89c2a5.async.js +6 -0
  12. package/dist/client/npm.antd-mobile-icons.4b133b6b.async.js +1 -0
  13. package/dist/client/npm.antd-mobile.1a8a8320.async.js +2 -0
  14. package/dist/client/{npm.antd.8f85b075.async.js → npm.antd.acf65d87.async.js} +204 -204
  15. package/dist/client/npm.async-validator.32d9020f.async.js +12 -0
  16. package/dist/client/{npm.dayjs.772d2a39.async.js → npm.dayjs.549164ec.async.js} +1 -1
  17. package/dist/client/{npm.lodash.5dcc1c5e.async.js → npm.lodash.0ff318b3.async.js} +2 -2
  18. package/dist/client/npm.rc-cascader.641db835.async.js +4 -0
  19. package/dist/client/npm.rc-field-form.6a3cf561.async.js +1 -0
  20. package/dist/client/npm.rc-picker.baba6981.async.js +22 -0
  21. package/dist/client/npm.rc-table.ffbc8feb.async.js +22 -0
  22. package/dist/client/npm.rc-tree-select.866d1acb.async.js +5 -0
  23. package/dist/client/npm.rc-util.4aa445e4.async.js +35 -0
  24. package/dist/client/npm.unknown.1838c8f4.chunk.css +1 -0
  25. package/dist/client/p__index.1f505ad4.chunk.css +1 -0
  26. package/dist/client/p__index.390271c5.async.js +2316 -0
  27. package/dist/client/{umi.ce574f8c.js → umi.202472df.js} +18 -18
  28. package/package.json +6 -6
  29. package/dist/client/3130.8c624281.async.js +0 -35
  30. package/dist/client/npm._at_babel.aa6aa60c.async.js +0 -3
  31. package/dist/client/npm._at_rc-component.adfcb69e.async.js +0 -8
  32. package/dist/client/npm._at_react-spring.47360957.async.js +0 -1
  33. package/dist/client/npm._at_use-gesture.15164819.async.js +0 -1
  34. package/dist/client/npm.ahooks.7b545023.async.js +0 -6
  35. package/dist/client/npm.antd-mobile.9ba7b196.async.js +0 -1
  36. package/dist/client/npm.antd-style.f89528fc.async.js +0 -1
  37. package/dist/client/npm.babel-runtime.eed49798.async.js +0 -1
  38. package/dist/client/npm.rc-cascader.2d4909f4.async.js +0 -4
  39. package/dist/client/npm.rc-picker.c4dce7bc.async.js +0 -22
  40. package/dist/client/npm.rc-table.8e9124fe.async.js +0 -22
  41. package/dist/client/npm.rc-tree-select.c1fbaa19.async.js +0 -5
  42. package/dist/client/npm.rc-util.7f3dc7bf.async.js +0 -35
  43. package/dist/client/p__index.5eda2656.chunk.css +0 -1
  44. package/dist/client/p__index.751f234c.async.js +0 -2316
@@ -0,0 +1,3 @@
1
+ (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2570],{73897:function(n){function v(f,p){(p==null||p>f.length)&&(p=f.length);for(var h=0,a=Array(p);h<p;h++)a[h]=f[h];return a}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},85372:function(n){function v(f){if(Array.isArray(f))return f}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},63405:function(n,v,f){var p=f(73897);function h(a){if(Array.isArray(a))return p(a)}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},17156:function(n){function v(p,h,a,u,l,s,y){try{var _=p[s](y),g=_.value}catch(O){return void a(O)}_.done?h(g):Promise.resolve(g).then(u,l)}function f(p){return function(){var h=this,a=arguments;return new Promise(function(u,l){var s=p.apply(h,a);function y(g){v(s,u,l,y,_,"next",g)}function _(g){v(s,u,l,y,_,"throw",g)}y(void 0)})}}n.exports=f,n.exports.__esModule=!0,n.exports.default=n.exports},38416:function(n,v,f){var p=f(64062);function h(a,u,l){return(u=p(u))in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},10434:function(n){function v(){return n.exports=v=Object.assign?Object.assign.bind():function(f){for(var p=1;p<arguments.length;p++){var h=arguments[p];for(var a in h)({}).hasOwnProperty.call(h,a)&&(f[a]=h[a])}return f},n.exports.__esModule=!0,n.exports.default=n.exports,v.apply(null,arguments)}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},64836:function(n){function v(f){return f&&f.__esModule?f:{default:f}}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},75263:function(n,v,f){var p=f(18698).default;function h(u){if(typeof WeakMap!="function")return null;var l=new WeakMap,s=new WeakMap;return(h=function(_){return _?s:l})(u)}function a(u,l){if(!l&&u&&u.__esModule)return u;if(u===null||p(u)!="object"&&typeof u!="function")return{default:u};var s=h(l);if(s&&s.has(u))return s.get(u);var y={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in u)if(g!=="default"&&{}.hasOwnProperty.call(u,g)){var O=_?Object.getOwnPropertyDescriptor(u,g):null;O&&(O.get||O.set)?Object.defineProperty(y,g,O):y[g]=u[g]}return y.default=u,s&&s.set(u,y),y}n.exports=a,n.exports.__esModule=!0,n.exports.default=n.exports},79498:function(n){function v(f){if(typeof Symbol<"u"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},68872:function(n){function v(f,p){var h=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(h!=null){var a,u,l,s,y=[],_=!0,g=!1;try{if(l=(h=h.call(f)).next,p===0){if(Object(h)!==h)return;_=!1}else for(;!(_=(a=l.call(h)).done)&&(y.push(a.value),y.length!==p);_=!0);}catch(O){g=!0,u=O}finally{try{if(!_&&h.return!=null&&(s=h.return(),Object(s)!==s))return}finally{if(g)throw u}}return y}}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},12218:function(n){function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},42281:function(n){function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},42122:function(n,v,f){var p=f(38416);function h(u,l){var s=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);l&&(y=y.filter(function(_){return Object.getOwnPropertyDescriptor(u,_).enumerable})),s.push.apply(s,y)}return s}function a(u){for(var l=1;l<arguments.length;l++){var s=arguments[l]!=null?arguments[l]:{};l%2?h(Object(s),!0).forEach(function(y){p(u,y,s[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach(function(y){Object.defineProperty(u,y,Object.getOwnPropertyDescriptor(s,y))})}return u}n.exports=a,n.exports.__esModule=!0,n.exports.default=n.exports},70215:function(n,v,f){var p=f(7071);function h(a,u){if(a==null)return{};var l,s,y=p(a,u);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(s=0;s<_.length;s++)l=_[s],u.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(y[l]=a[l])}return y}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},7071:function(n){function v(f,p){if(f==null)return{};var h={};for(var a in f)if({}.hasOwnProperty.call(f,a)){if(p.includes(a))continue;h[a]=f[a]}return h}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},17061:function(n,v,f){var p=f(18698).default;function h(){"use strict";n.exports=h=function(){return u},n.exports.__esModule=!0,n.exports.default=n.exports;var a,u={},l=Object.prototype,s=l.hasOwnProperty,y=Object.defineProperty||function(e,t,r){e[t]=r.value},_=typeof Symbol=="function"?Symbol:{},g=_.iterator||"@@iterator",O=_.asyncIterator||"@@asyncIterator",k=_.toStringTag||"@@toStringTag";function w(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{w({},"")}catch{w=function(r,o,c){return r[o]=c}}function Y(e,t,r,o){var c=t&&t.prototype instanceof W?t:W,i=Object.create(c.prototype),d=new D(o||[]);return y(i,"_invoke",{value:$(e,r,d)}),i}function G(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(o){return{type:"throw",arg:o}}}u.wrap=Y;var Z="suspendedStart",B="suspendedYield",H="executing",S="completed",m={};function W(){}function T(){}function j(){}var N={};w(N,g,function(){return this});var F=Object.getPrototypeOf,A=F&&F(F(R([])));A&&A!==l&&s.call(A,g)&&(N=A);var M=j.prototype=W.prototype=Object.create(N);function K(e){["next","throw","return"].forEach(function(t){w(e,t,function(r){return this._invoke(t,r)})})}function I(e,t){function r(c,i,d,x){var b=G(e[c],e,i);if(b.type!=="throw"){var E=b.arg,L=E.value;return L&&p(L)=="object"&&s.call(L,"__await")?t.resolve(L.__await).then(function(P){r("next",P,d,x)},function(P){r("throw",P,d,x)}):t.resolve(L).then(function(P){E.value=P,d(E)},function(P){return r("throw",P,d,x)})}x(b.arg)}var o;y(this,"_invoke",{value:function(i,d){function x(){return new t(function(b,E){r(i,d,b,E)})}return o=o?o.then(x,x):x()}})}function $(e,t,r){var o=Z;return function(c,i){if(o===H)throw Error("Generator is already running");if(o===S){if(c==="throw")throw i;return{value:a,done:!0}}for(r.method=c,r.arg=i;;){var d=r.delegate;if(d){var x=U(d,r);if(x){if(x===m)continue;return x}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(o===Z)throw o=S,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);o=H;var b=G(e,t,r);if(b.type==="normal"){if(o=r.done?S:B,b.arg===m)continue;return{value:b.arg,done:r.done}}b.type==="throw"&&(o=S,r.method="throw",r.arg=b.arg)}}}function U(e,t){var r=t.method,o=e.iterator[r];if(o===a)return t.delegate=null,r==="throw"&&e.iterator.return&&(t.method="return",t.arg=a,U(e,t),t.method==="throw")||r!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var c=G(o,e.iterator,t.arg);if(c.type==="throw")return t.method="throw",t.arg=c.arg,t.delegate=null,m;var i=c.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,t.method!=="return"&&(t.method="next",t.arg=a),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function R(e){if(e||e===""){var t=e[g];if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var r=-1,o=function c(){for(;++r<e.length;)if(s.call(e,r))return c.value=e[r],c.done=!1,c;return c.value=a,c.done=!0,c};return o.next=o}}throw new TypeError(p(e)+" is not iterable")}return T.prototype=j,y(M,"constructor",{value:j,configurable:!0}),y(j,"constructor",{value:T,configurable:!0}),T.displayName=w(j,k,"GeneratorFunction"),u.isGeneratorFunction=function(e){var t=typeof e=="function"&&e.constructor;return!!t&&(t===T||(t.displayName||t.name)==="GeneratorFunction")},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,w(e,k,"GeneratorFunction")),e.prototype=Object.create(M),e},u.awrap=function(e){return{__await:e}},K(I.prototype),w(I.prototype,O,function(){return this}),u.AsyncIterator=I,u.async=function(e,t,r,o,c){c===void 0&&(c=Promise);var i=new I(Y(e,t,r,o),c);return u.isGeneratorFunction(t)?i:i.next().then(function(d){return d.done?d.value:i.next()})},K(M),w(M,k,"Generator"),w(M,g,function(){return this}),w(M,"toString",function(){return"[object Generator]"}),u.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function c(){for(;r.length;){var i=r.pop();if(i in t)return c.value=i,c.done=!1,c}return c.done=!0,c}},u.values=R,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(C),!t)for(var r in this)r.charAt(0)==="t"&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=a)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(E,L){return d.type="throw",d.arg=t,r.next=E,L&&(r.method="next",r.arg=a),!!L}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],d=i.completion;if(i.tryLoc==="root")return o("end");if(i.tryLoc<=this.prev){var x=s.call(i,"catchLoc"),b=s.call(i,"finallyLoc");if(x&&b){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(x){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!b)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&s.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var i=c;break}}i&&(t==="break"||t==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var d=i?i.completion:{};return d.type=t,d.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(d)},complete:function(t,r){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),C(o),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if(c.type==="throw"){var i=c.arg;C(o)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:R(t),resultName:r,nextLoc:o},this.method==="next"&&(this.arg=a),m}},u}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},27424:function(n,v,f){var p=f(85372),h=f(68872),a=f(86116),u=f(12218);function l(s,y){return p(s)||h(s,y)||a(s,y)||u()}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports},861:function(n,v,f){var p=f(63405),h=f(79498),a=f(86116),u=f(42281);function l(s){return p(s)||h(s)||a(s)||u()}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports},95036:function(n,v,f){var p=f(18698).default;function h(a,u){if(p(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var s=l.call(a,u||"default");if(p(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},64062:function(n,v,f){var p=f(18698).default,h=f(95036);function a(u){var l=h(u,"string");return p(l)=="symbol"?l:l+""}n.exports=a,n.exports.__esModule=!0,n.exports.default=n.exports},18698:function(n){function v(f){"@babel/helpers - typeof";return n.exports=v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},n.exports.__esModule=!0,n.exports.default=n.exports,v(f)}n.exports=v,n.exports.__esModule=!0,n.exports.default=n.exports},86116:function(n,v,f){var p=f(73897);function h(a,u){if(a){if(typeof a=="string")return p(a,u);var l={}.toString.call(a).slice(8,-1);return l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set"?Array.from(a):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?p(a,u):void 0}}n.exports=h,n.exports.__esModule=!0,n.exports.default=n.exports},15861:function(n,v,f){"use strict";f.d(v,{Z:function(){return h}});function p(a,u,l,s,y,_,g){try{var O=a[_](g),k=O.value}catch(w){return void l(w)}O.done?u(k):Promise.resolve(k).then(s,y)}function h(a){return function(){var u=this,l=arguments;return new Promise(function(s,y){var _=a.apply(u,l);function g(k){p(_,s,y,g,O,"next",k)}function O(k){p(_,s,y,g,O,"throw",k)}g(void 0)})}}},36459:function(n,v,f){"use strict";f.d(v,{Z:function(){return p}});function p(h){if(h==null)throw new TypeError("Cannot destructure "+h)}},91:function(n,v,f){"use strict";f.d(v,{Z:function(){return h}});function p(a,u){if(a==null)return{};var l={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(u.includes(s))continue;l[s]=a[s]}return l}function h(a,u){if(a==null)return{};var l,s,y=p(a,u);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(s=0;s<_.length;s++)l=_[s],u.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(y[l]=a[l])}return y}},74165:function(n,v,f){"use strict";f.d(v,{Z:function(){return h}});var p=f(71002);function h(){"use strict";h=function(){return u};var a,u={},l=Object.prototype,s=l.hasOwnProperty,y=Object.defineProperty||function(e,t,r){e[t]=r.value},_=typeof Symbol=="function"?Symbol:{},g=_.iterator||"@@iterator",O=_.asyncIterator||"@@asyncIterator",k=_.toStringTag||"@@toStringTag";function w(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{w({},"")}catch{w=function(r,o,c){return r[o]=c}}function Y(e,t,r,o){var c=t&&t.prototype instanceof W?t:W,i=Object.create(c.prototype),d=new D(o||[]);return y(i,"_invoke",{value:$(e,r,d)}),i}function G(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(o){return{type:"throw",arg:o}}}u.wrap=Y;var Z="suspendedStart",B="suspendedYield",H="executing",S="completed",m={};function W(){}function T(){}function j(){}var N={};w(N,g,function(){return this});var F=Object.getPrototypeOf,A=F&&F(F(R([])));A&&A!==l&&s.call(A,g)&&(N=A);var M=j.prototype=W.prototype=Object.create(N);function K(e){["next","throw","return"].forEach(function(t){w(e,t,function(r){return this._invoke(t,r)})})}function I(e,t){function r(c,i,d,x){var b=G(e[c],e,i);if(b.type!=="throw"){var E=b.arg,L=E.value;return L&&(0,p.Z)(L)=="object"&&s.call(L,"__await")?t.resolve(L.__await).then(function(P){r("next",P,d,x)},function(P){r("throw",P,d,x)}):t.resolve(L).then(function(P){E.value=P,d(E)},function(P){return r("throw",P,d,x)})}x(b.arg)}var o;y(this,"_invoke",{value:function(i,d){function x(){return new t(function(b,E){r(i,d,b,E)})}return o=o?o.then(x,x):x()}})}function $(e,t,r){var o=Z;return function(c,i){if(o===H)throw Error("Generator is already running");if(o===S){if(c==="throw")throw i;return{value:a,done:!0}}for(r.method=c,r.arg=i;;){var d=r.delegate;if(d){var x=U(d,r);if(x){if(x===m)continue;return x}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(o===Z)throw o=S,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);o=H;var b=G(e,t,r);if(b.type==="normal"){if(o=r.done?S:B,b.arg===m)continue;return{value:b.arg,done:r.done}}b.type==="throw"&&(o=S,r.method="throw",r.arg=b.arg)}}}function U(e,t){var r=t.method,o=e.iterator[r];if(o===a)return t.delegate=null,r==="throw"&&e.iterator.return&&(t.method="return",t.arg=a,U(e,t),t.method==="throw")||r!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var c=G(o,e.iterator,t.arg);if(c.type==="throw")return t.method="throw",t.arg=c.arg,t.delegate=null,m;var i=c.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,t.method!=="return"&&(t.method="next",t.arg=a),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function R(e){if(e||e===""){var t=e[g];if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var r=-1,o=function c(){for(;++r<e.length;)if(s.call(e,r))return c.value=e[r],c.done=!1,c;return c.value=a,c.done=!0,c};return o.next=o}}throw new TypeError((0,p.Z)(e)+" is not iterable")}return T.prototype=j,y(M,"constructor",{value:j,configurable:!0}),y(j,"constructor",{value:T,configurable:!0}),T.displayName=w(j,k,"GeneratorFunction"),u.isGeneratorFunction=function(e){var t=typeof e=="function"&&e.constructor;return!!t&&(t===T||(t.displayName||t.name)==="GeneratorFunction")},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,w(e,k,"GeneratorFunction")),e.prototype=Object.create(M),e},u.awrap=function(e){return{__await:e}},K(I.prototype),w(I.prototype,O,function(){return this}),u.AsyncIterator=I,u.async=function(e,t,r,o,c){c===void 0&&(c=Promise);var i=new I(Y(e,t,r,o),c);return u.isGeneratorFunction(t)?i:i.next().then(function(d){return d.done?d.value:i.next()})},K(M),w(M,k,"Generator"),w(M,g,function(){return this}),w(M,"toString",function(){return"[object Generator]"}),u.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function c(){for(;r.length;){var i=r.pop();if(i in t)return c.value=i,c.done=!1,c}return c.done=!0,c}},u.values=R,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(C),!t)for(var r in this)r.charAt(0)==="t"&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=a)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(E,L){return d.type="throw",d.arg=t,r.next=E,L&&(r.method="next",r.arg=a),!!L}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],d=i.completion;if(i.tryLoc==="root")return o("end");if(i.tryLoc<=this.prev){var x=s.call(i,"catchLoc"),b=s.call(i,"finallyLoc");if(x&&b){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(x){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!b)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&s.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var i=c;break}}i&&(t==="break"||t==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var d=i?i.completion:{};return d.type=t,d.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(d)},complete:function(t,r){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),C(o),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if(c.type==="throw"){var i=c.arg;C(o)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:R(t),resultName:r,nextLoc:o},this.method==="next"&&(this.arg=a),m}},u}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[3167],{85983:function(pt,at,et){et.d(at,{Cp:function(){return dt},RR:function(){return Y},cv:function(){return V},dr:function(){return K},oo:function(){return q},uY:function(){return tt},x7:function(){return X}});var a=et(71347);function ut(r,l,p){let{reference:m,floating:f}=r;const s=(0,a.Qq)(l),b=(0,a.Wh)(l),A=(0,a.I4)(b),o=(0,a.k3)(l),h=s==="y",v=m.x+m.width/2-f.width/2,d=m.y+m.height/2-f.height/2,y=m[A]/2-f[A]/2;let u;switch(o){case"top":u={x:v,y:m.y-f.height};break;case"bottom":u={x:v,y:m.y+m.height};break;case"right":u={x:m.x+m.width,y:d};break;case"left":u={x:m.x-f.width,y:d};break;default:u={x:m.x,y:m.y}}switch((0,a.hp)(l)){case"start":u[b]-=y*(p&&h?-1:1);break;case"end":u[b]+=y*(p&&h?-1:1);break}return u}const q=async(r,l,p)=>{const{placement:m="bottom",strategy:f="absolute",middleware:s=[],platform:b}=p,A=s.filter(Boolean),o=await(b.isRTL==null?void 0:b.isRTL(l));let h=await b.getElementRects({reference:r,floating:l,strategy:f}),{x:v,y:d}=ut(h,m,o),y=m,u={},w=0;for(let E=0;E<A.length;E++){const{name:C,fn:P}=A[E],{x:L,y:T,data:D,reset:k}=await P({x:v,y:d,initialPlacement:m,placement:y,strategy:f,middlewareData:u,rects:h,platform:b,elements:{reference:r,floating:l}});if(v=L??v,d=T??d,u={...u,[C]:{...u[C],...D}},k&&w<=50){w++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(h=k.rects===!0?await b.getElementRects({reference:r,floating:l,strategy:f}):k.rects),{x:v,y:d}=ut(h,y,o)),E=-1;continue}}return{x:v,y:d,placement:y,strategy:f,middlewareData:u}};async function F(r,l){var p;l===void 0&&(l={});const{x:m,y:f,platform:s,rects:b,elements:A,strategy:o}=r,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:d="floating",altBoundary:y=!1,padding:u=0}=(0,a.ku)(l,r),w=(0,a.yd)(u),C=A[y?d==="floating"?"reference":"floating":d],P=(0,a.JB)(await s.getClippingRect({element:(p=await(s.isElement==null?void 0:s.isElement(C)))==null||p?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(A.floating)),boundary:h,rootBoundary:v,strategy:o})),L=d==="floating"?{...b.floating,x:m,y:f}:b.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(A.floating)),D=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},k=(0,a.JB)(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:T,strategy:o}):L);return{top:(P.top-k.top+w.top)/D.y,bottom:(k.bottom-P.bottom+w.bottom)/D.y,left:(P.left-k.left+w.left)/D.x,right:(k.right-P.right+w.right)/D.x}}const X=r=>({name:"arrow",options:r,async fn(l){const{x:p,y:m,placement:f,rects:s,platform:b,elements:A,middlewareData:o}=l,{element:h,padding:v=0}=(0,a.ku)(r,l)||{};if(h==null)return{};const d=(0,a.yd)(v),y={x:p,y:m},u=(0,a.Wh)(f),w=(0,a.I4)(u),E=await b.getDimensions(h),C=u==="y",P=C?"top":"left",L=C?"bottom":"right",T=C?"clientHeight":"clientWidth",D=s.reference[w]+s.reference[u]-y[u]-s.floating[w],k=y[u]-s.reference[u],_=await(b.getOffsetParent==null?void 0:b.getOffsetParent(h));let B=_?_[T]:0;(!B||!await(b.isElement==null?void 0:b.isElement(_)))&&(B=A.floating[T]||s.floating[w]);const H=D/2-k/2,z=B/2-E[w]/2-1,M=(0,a.VV)(d[P],z),W=(0,a.VV)(d[L],z),t=M,e=B-E[w]-W,n=B/2-E[w]/2+H,i=(0,a.uZ)(t,n,e),c=!o.arrow&&(0,a.hp)(f)!=null&&n!=i&&s.reference[w]/2-(n<t?M:W)-E[w]/2<0,x=c?n<t?n-t:n-e:0;return{[u]:y[u]+x,data:{[u]:i,centerOffset:n-i-x,...c&&{alignmentOffset:x}},reset:c}}});function ft(r,l,p){return(r?[...p.filter(f=>getAlignment(f)===r),...p.filter(f=>getAlignment(f)!==r)]:p.filter(f=>getSide(f)===f)).filter(f=>r?getAlignment(f)===r||(l?getOppositeAlignmentPlacement(f)!==f:!1):!0)}const J=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(l){var p,m,f;const{rects:s,middlewareData:b,placement:A,platform:o,elements:h}=l,{crossAxis:v=!1,alignment:d,allowedPlacements:y=placements,autoAlignment:u=!0,...w}=evaluate(r,l),E=d!==void 0||y===placements?ft(d||null,u,y):y,C=await F(l,w),P=((p=b.autoPlacement)==null?void 0:p.index)||0,L=E[P];if(L==null)return{};const T=getAlignmentSides(L,s,await(o.isRTL==null?void 0:o.isRTL(h.floating)));if(A!==L)return{reset:{placement:E[0]}};const D=[C[getSide(L)],C[T[0]],C[T[1]]],k=[...((m=b.autoPlacement)==null?void 0:m.overflows)||[],{placement:L,overflows:D}],_=E[P+1];if(_)return{data:{index:P+1,overflows:k},reset:{placement:_}};const B=k.map(M=>{const W=getAlignment(M.placement);return[M.placement,W&&v?M.overflows.slice(0,2).reduce((t,e)=>t+e,0):M.overflows[0],M.overflows]}).sort((M,W)=>M[1]-W[1]),z=((f=B.filter(M=>M[2].slice(0,getAlignment(M[0])?2:3).every(W=>W<=0))[0])==null?void 0:f[0])||B[0][0];return z!==A?{data:{index:P+1,overflows:k},reset:{placement:z}}:{}}}},Y=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(l){var p,m;const{placement:f,middlewareData:s,rects:b,initialPlacement:A,platform:o,elements:h}=l,{mainAxis:v=!0,crossAxis:d=!0,fallbackPlacements:y,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:E=!0,...C}=(0,a.ku)(r,l);if((p=s.arrow)!=null&&p.alignmentOffset)return{};const P=(0,a.k3)(f),L=(0,a.k3)(A)===A,T=await(o.isRTL==null?void 0:o.isRTL(h.floating)),D=y||(L||!E?[(0,a.pw)(A)]:(0,a.gy)(A));!y&&w!=="none"&&D.push(...(0,a.KX)(A,E,w,T));const k=[A,...D],_=await F(l,C),B=[];let H=((m=s.flip)==null?void 0:m.overflows)||[];if(v&&B.push(_[P]),d){const t=(0,a.i8)(f,b,T);B.push(_[t[0]],_[t[1]])}if(H=[...H,{placement:f,overflows:B}],!B.every(t=>t<=0)){var z,M;const t=(((z=s.flip)==null?void 0:z.index)||0)+1,e=k[t];if(e)return{data:{index:t,overflows:H},reset:{placement:e}};let n=(M=H.filter(i=>i.overflows[0]<=0).sort((i,c)=>i.overflows[1]-c.overflows[1])[0])==null?void 0:M.placement;if(!n)switch(u){case"bestFit":{var W;const i=(W=H.map(c=>[c.placement,c.overflows.filter(x=>x>0).reduce((x,g)=>x+g,0)]).sort((c,x)=>c[1]-x[1])[0])==null?void 0:W[0];i&&(n=i);break}case"initialPlacement":n=A;break}if(f!==n)return{reset:{placement:n}}}return{}}}};function rt(r,l){return{top:r.top-l.height,right:r.right-l.width,bottom:r.bottom-l.height,left:r.left-l.width}}function Z(r){return a.mA.some(l=>r[l]>=0)}const dt=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(l){const{rects:p}=l,{strategy:m="referenceHidden",...f}=(0,a.ku)(r,l);switch(m){case"referenceHidden":{const s=await F(l,{...f,elementContext:"reference"}),b=rt(s,p.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:Z(b)}}}case"escaped":{const s=await F(l,{...f,altBoundary:!0}),b=rt(s,p.floating);return{data:{escapedOffsets:b,escaped:Z(b)}}}default:return{}}}}};function nt(r){const l=min(...r.map(s=>s.left)),p=min(...r.map(s=>s.top)),m=max(...r.map(s=>s.right)),f=max(...r.map(s=>s.bottom));return{x:l,y:p,width:m-l,height:f-p}}function st(r){const l=r.slice().sort((f,s)=>f.y-s.y),p=[];let m=null;for(let f=0;f<l.length;f++){const s=l[f];!m||s.y-m.y>m.height/2?p.push([s]):p[p.length-1].push(s),m=s}return p.map(f=>rectToClientRect(nt(f)))}const ot=function(r){return r===void 0&&(r={}),{name:"inline",options:r,async fn(l){const{placement:p,elements:m,rects:f,platform:s,strategy:b}=l,{padding:A=2,x:o,y:h}=evaluate(r,l),v=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(m.reference))||[]),d=st(v),y=rectToClientRect(nt(v)),u=getPaddingObject(A);function w(){if(d.length===2&&d[0].left>d[1].right&&o!=null&&h!=null)return d.find(C=>o>C.left-u.left&&o<C.right+u.right&&h>C.top-u.top&&h<C.bottom+u.bottom)||y;if(d.length>=2){if(getSideAxis(p)==="y"){const M=d[0],W=d[d.length-1],t=getSide(p)==="top",e=M.top,n=W.bottom,i=t?M.left:W.left,c=t?M.right:W.right,x=c-i,g=n-e;return{top:e,bottom:n,left:i,right:c,width:x,height:g,x:i,y:e}}const C=getSide(p)==="left",P=max(...d.map(M=>M.right)),L=min(...d.map(M=>M.left)),T=d.filter(M=>C?M.left===L:M.right===P),D=T[0].top,k=T[T.length-1].bottom,_=L,B=P,H=B-_,z=k-D;return{top:D,bottom:k,left:_,right:B,width:H,height:z,x:_,y:D}}return y}const E=await s.getElementRects({reference:{getBoundingClientRect:w},floating:m.floating,strategy:b});return f.reference.x!==E.reference.x||f.reference.y!==E.reference.y||f.reference.width!==E.reference.width||f.reference.height!==E.reference.height?{reset:{rects:E}}:{}}}};async function U(r,l){const{placement:p,platform:m,elements:f}=r,s=await(m.isRTL==null?void 0:m.isRTL(f.floating)),b=(0,a.k3)(p),A=(0,a.hp)(p),o=(0,a.Qq)(p)==="y",h=["left","top"].includes(b)?-1:1,v=s&&o?-1:1,d=(0,a.ku)(l,r);let{mainAxis:y,crossAxis:u,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return A&&typeof w=="number"&&(u=A==="end"?w*-1:w),o?{x:u*v,y:y*h}:{x:y*h,y:u*v}}const V=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(l){var p,m;const{x:f,y:s,placement:b,middlewareData:A}=l,o=await U(l,r);return b===((p=A.offset)==null?void 0:p.placement)&&(m=A.arrow)!=null&&m.alignmentOffset?{}:{x:f+o.x,y:s+o.y,data:{...o,placement:b}}}}},tt=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(l){const{x:p,y:m,placement:f}=l,{mainAxis:s=!0,crossAxis:b=!1,limiter:A={fn:C=>{let{x:P,y:L}=C;return{x:P,y:L}}},...o}=(0,a.ku)(r,l),h={x:p,y:m},v=await F(l,o),d=(0,a.Qq)((0,a.k3)(f)),y=(0,a.Rn)(d);let u=h[y],w=h[d];if(s){const C=y==="y"?"top":"left",P=y==="y"?"bottom":"right",L=u+v[C],T=u-v[P];u=(0,a.uZ)(L,u,T)}if(b){const C=d==="y"?"top":"left",P=d==="y"?"bottom":"right",L=w+v[C],T=w-v[P];w=(0,a.uZ)(L,w,T)}const E=A.fn({...l,[y]:u,[d]:w});return{...E,data:{x:E.x-p,y:E.y-m}}}}},K=function(r){return r===void 0&&(r={}),{options:r,fn(l){const{x:p,y:m,placement:f,rects:s,middlewareData:b}=l,{offset:A=0,mainAxis:o=!0,crossAxis:h=!0}=(0,a.ku)(r,l),v={x:p,y:m},d=(0,a.Qq)(f),y=(0,a.Rn)(d);let u=v[y],w=v[d];const E=(0,a.ku)(A,l),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(o){const T=y==="y"?"height":"width",D=s.reference[y]-s.floating[T]+C.mainAxis,k=s.reference[y]+s.reference[T]-C.mainAxis;u<D?u=D:u>k&&(u=k)}if(h){var P,L;const T=y==="y"?"width":"height",D=["top","left"].includes((0,a.k3)(f)),k=s.reference[d]-s.floating[T]+(D&&((P=b.offset)==null?void 0:P[d])||0)+(D?0:C.crossAxis),_=s.reference[d]+s.reference[T]+(D?0:((L=b.offset)==null?void 0:L[d])||0)-(D?C.crossAxis:0);w<k?w=k:w>_&&(w=_)}return{[y]:u,[d]:w}}}},mt=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(l){const{placement:p,rects:m,platform:f,elements:s}=l,{apply:b=()=>{},...A}=evaluate(r,l),o=await F(l,A),h=getSide(p),v=getAlignment(p),d=getSideAxis(p)==="y",{width:y,height:u}=m.floating;let w,E;h==="top"||h==="bottom"?(w=h,E=v===(await(f.isRTL==null?void 0:f.isRTL(s.floating))?"start":"end")?"left":"right"):(E=h,w=v==="end"?"top":"bottom");const C=u-o[w],P=y-o[E],L=!l.middlewareData.shift;let T=C,D=P;if(d){const _=y-o.left-o.right;D=v||L?min(P,_):_}else{const _=u-o.top-o.bottom;T=v||L?min(C,_):_}if(L&&!v){const _=max(o.left,0),B=max(o.right,0),H=max(o.top,0),z=max(o.bottom,0);d?D=y-2*(_!==0||B!==0?_+B:max(o.left,o.right)):T=u-2*(H!==0||z!==0?H+z:max(o.top,o.bottom))}await b({...l,availableWidth:D,availableHeight:T});const k=await f.getDimensions(s.floating);return y!==k.width||u!==k.height?{reset:{rects:!0}}:{}}}}},63853:function(pt,at,et){et.d(at,{Me:function(){return M},oo:function(){return W}});var a=et(71347),ut=et(85983);function q(t){return ft(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(ft(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ft(t){return t instanceof Node||t instanceof F(t).Node}function J(t){return t instanceof Element||t instanceof F(t).Element}function Y(t){return t instanceof HTMLElement||t instanceof F(t).HTMLElement}function rt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function Z(t){const{overflow:e,overflowX:n,overflowY:i,display:c}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(c)}function dt(t){return["table","td","th"].includes(q(t))}function nt(t){const e=ot(),n=V(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function st(t){let e=K(t);for(;Y(e)&&!U(e);){if(nt(e))return e;e=K(e)}return null}function ot(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function U(t){return["html","body","#document"].includes(q(t))}function V(t){return F(t).getComputedStyle(t)}function tt(t){return J(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if(q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||rt(t)&&t.host||X(t);return rt(e)?e.host:e}function mt(t){const e=K(t);return U(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&Z(e)?e:mt(e)}function r(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const c=mt(t),x=c===((i=t.ownerDocument)==null?void 0:i.body),g=F(c);return x?e.concat(g,g.visualViewport||[],Z(c)?c:[],g.frameElement&&n?r(g.frameElement):[]):e.concat(c,r(c,[],n))}function l(t){const e=V(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const c=Y(t),x=c?t.offsetWidth:n,g=c?t.offsetHeight:i,R=(0,a.NM)(n)!==x||(0,a.NM)(i)!==g;return R&&(n=x,i=g),{width:n,height:i,$:R}}function p(t){return J(t)?t:t.contextElement}function m(t){const e=p(t);if(!Y(e))return(0,a.ze)(1);const n=e.getBoundingClientRect(),{width:i,height:c,$:x}=l(e);let g=(x?(0,a.NM)(n.width):n.width)/i,R=(x?(0,a.NM)(n.height):n.height)/c;return(!g||!Number.isFinite(g))&&(g=1),(!R||!Number.isFinite(R))&&(R=1),{x:g,y:R}}const f=(0,a.ze)(0);function s(t){const e=F(t);return!ot()||!e.visualViewport?f:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function b(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function A(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const c=t.getBoundingClientRect(),x=p(t);let g=(0,a.ze)(1);e&&(i?J(i)&&(g=m(i)):g=m(t));const R=b(x,n,i)?s(x):(0,a.ze)(0);let O=(c.left+R.x)/g.x,S=(c.top+R.y)/g.y,Q=c.width/g.x,j=c.height/g.y;if(x){const it=F(x),$=i&&J(i)?F(i):i;let G=it.frameElement;for(;G&&i&&$!==it;){const I=m(G),ct=G.getBoundingClientRect(),N=V(G),lt=ct.left+(G.clientLeft+parseFloat(N.paddingLeft))*I.x,gt=ct.top+(G.clientTop+parseFloat(N.paddingTop))*I.y;O*=I.x,S*=I.y,Q*=I.x,j*=I.y,O+=lt,S+=gt,G=F(G).frameElement}}return(0,a.JB)({width:Q,height:j,x:O,y:S})}function o(t){let{rect:e,offsetParent:n,strategy:i}=t;const c=Y(n),x=X(n);if(n===x)return e;let g={scrollLeft:0,scrollTop:0},R=(0,a.ze)(1);const O=(0,a.ze)(0);if((c||!c&&i!=="fixed")&&((q(n)!=="body"||Z(x))&&(g=tt(n)),Y(n))){const S=A(n);R=m(n),O.x=S.x+n.clientLeft,O.y=S.y+n.clientTop}return{width:e.width*R.x,height:e.height*R.y,x:e.x*R.x-g.scrollLeft*R.x+O.x,y:e.y*R.y-g.scrollTop*R.y+O.y}}function h(t){return Array.from(t.getClientRects())}function v(t){return A(X(t)).left+tt(t).scrollLeft}function d(t){const e=X(t),n=tt(t),i=t.ownerDocument.body,c=(0,a.Fp)(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),x=(0,a.Fp)(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let g=-n.scrollLeft+v(t);const R=-n.scrollTop;return V(i).direction==="rtl"&&(g+=(0,a.Fp)(e.clientWidth,i.clientWidth)-c),{width:c,height:x,x:g,y:R}}function y(t,e){const n=F(t),i=X(t),c=n.visualViewport;let x=i.clientWidth,g=i.clientHeight,R=0,O=0;if(c){x=c.width,g=c.height;const S=ot();(!S||S&&e==="fixed")&&(R=c.offsetLeft,O=c.offsetTop)}return{width:x,height:g,x:R,y:O}}function u(t,e){const n=A(t,!0,e==="fixed"),i=n.top+t.clientTop,c=n.left+t.clientLeft,x=Y(t)?m(t):(0,a.ze)(1),g=t.clientWidth*x.x,R=t.clientHeight*x.y,O=c*x.x,S=i*x.y;return{width:g,height:R,x:O,y:S}}function w(t,e,n){let i;if(e==="viewport")i=y(t,n);else if(e==="document")i=d(X(t));else if(J(e))i=u(e,n);else{const c=s(t);i={...e,x:e.x-c.x,y:e.y-c.y}}return(0,a.JB)(i)}function E(t,e){const n=K(t);return n===e||!J(n)||U(n)?!1:V(n).position==="fixed"||E(n,e)}function C(t,e){const n=e.get(t);if(n)return n;let i=r(t,[],!1).filter(R=>J(R)&&q(R)!=="body"),c=null;const x=V(t).position==="fixed";let g=x?K(t):t;for(;J(g)&&!U(g);){const R=V(g),O=nt(g);!O&&R.position==="fixed"&&(c=null),(x?!O&&!c:!O&&R.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Z(g)&&!O&&E(t,g))?i=i.filter(Q=>Q!==g):c=R,g=K(g)}return e.set(t,i),i}function P(t){let{element:e,boundary:n,rootBoundary:i,strategy:c}=t;const g=[...n==="clippingAncestors"?C(e,this._c):[].concat(n),i],R=g[0],O=g.reduce((S,Q)=>{const j=w(e,Q,c);return S.top=(0,a.Fp)(j.top,S.top),S.right=(0,a.VV)(j.right,S.right),S.bottom=(0,a.VV)(j.bottom,S.bottom),S.left=(0,a.Fp)(j.left,S.left),S},w(e,R,c));return{width:O.right-O.left,height:O.bottom-O.top,x:O.left,y:O.top}}function L(t){return l(t)}function T(t,e,n){const i=Y(e),c=X(e),x=n==="fixed",g=A(t,!0,x,e);let R={scrollLeft:0,scrollTop:0};const O=(0,a.ze)(0);if(i||!i&&!x)if((q(e)!=="body"||Z(c))&&(R=tt(e)),i){const S=A(e,!0,x,e);O.x=S.x+e.clientLeft,O.y=S.y+e.clientTop}else c&&(O.x=v(c));return{x:g.left+R.scrollLeft-O.x,y:g.top+R.scrollTop-O.y,width:g.width,height:g.height}}function D(t,e){return!Y(t)||V(t).position==="fixed"?null:e?e(t):t.offsetParent}function k(t,e){const n=F(t);if(!Y(t))return n;let i=D(t,e);for(;i&&dt(i)&&V(i).position==="static";)i=D(i,e);return i&&(q(i)==="html"||q(i)==="body"&&V(i).position==="static"&&!nt(i))?n:i||st(t)||n}const _=async function(t){let{reference:e,floating:n,strategy:i}=t;const c=this.getOffsetParent||k,x=this.getDimensions;return{reference:T(e,await c(n),i),floating:{x:0,y:0,...await x(n)}}};function B(t){return V(t).direction==="rtl"}const H={convertOffsetParentRelativeRectToViewportRelativeRect:o,getDocumentElement:X,getClippingRect:P,getOffsetParent:k,getElementRects:_,getClientRects:h,getDimensions:L,getScale:m,isElement:J,isRTL:B};function z(t,e){let n=null,i;const c=X(t);function x(){clearTimeout(i),n&&n.disconnect(),n=null}function g(R,O){R===void 0&&(R=!1),O===void 0&&(O=1),x();const{left:S,top:Q,width:j,height:it}=t.getBoundingClientRect();if(R||e(),!j||!it)return;const $=(0,a.GW)(Q),G=(0,a.GW)(c.clientWidth-(S+j)),I=(0,a.GW)(c.clientHeight-(Q+it)),ct=(0,a.GW)(S),lt={rootMargin:-$+"px "+-G+"px "+-I+"px "+-ct+"px",threshold:(0,a.Fp)(0,(0,a.VV)(1,O))||1};let gt=!0;function xt(wt){const ht=wt[0].intersectionRatio;if(ht!==O){if(!gt)return g();ht?g(!1,ht):i=setTimeout(()=>{g(!1,1e-7)},100)}gt=!1}try{n=new IntersectionObserver(xt,{...lt,root:c.ownerDocument})}catch{n=new IntersectionObserver(xt,lt)}n.observe(t)}return g(!0),x}function M(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:x=!0,elementResize:g=typeof ResizeObserver=="function",layoutShift:R=typeof IntersectionObserver=="function",animationFrame:O=!1}=i,S=p(t),Q=c||x?[...S?r(S):[],...r(e)]:[];Q.forEach(N=>{c&&N.addEventListener("scroll",n,{passive:!0}),x&&N.addEventListener("resize",n)});const j=S&&R?z(S,n):null;let it=-1,$=null;g&&($=new ResizeObserver(N=>{let[lt]=N;lt&&lt.target===S&&$&&($.unobserve(e),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{$&&$.observe(e)})),n()}),S&&!O&&$.observe(S),$.observe(e));let G,I=O?A(t):null;O&&ct();function ct(){const N=A(t);I&&(N.x!==I.x||N.y!==I.y||N.width!==I.width||N.height!==I.height)&&n(),I=N,G=requestAnimationFrame(ct)}return n(),()=>{Q.forEach(N=>{c&&N.removeEventListener("scroll",n),x&&N.removeEventListener("resize",n)}),j&&j(),$&&$.disconnect(),$=null,O&&cancelAnimationFrame(G)}}const W=(t,e,n)=>{const i=new Map,c={platform:H,...n},x={...c.platform,_c:i};return(0,ut.oo)(t,e,{...c,platform:x})}},71347:function(pt,at,et){et.d(at,{Fp:function(){return X},GW:function(){return J},I4:function(){return V},JB:function(){return A},KX:function(){return m},NM:function(){return ft},Qq:function(){return tt},Rn:function(){return U},VV:function(){return F},Wh:function(){return K},gy:function(){return r},hp:function(){return ot},i8:function(){return mt},k3:function(){return st},ku:function(){return nt},mA:function(){return a},pw:function(){return f},uZ:function(){return dt},yd:function(){return b},ze:function(){return Y}});const a=["top","right","bottom","left"],ut=null,q=null,F=Math.min,X=Math.max,ft=Math.round,J=Math.floor,Y=o=>({x:o,y:o}),rt={left:"right",right:"left",bottom:"top",top:"bottom"},Z={start:"end",end:"start"};function dt(o,h,v){return X(o,F(h,v))}function nt(o,h){return typeof o=="function"?o(h):o}function st(o){return o.split("-")[0]}function ot(o){return o.split("-")[1]}function U(o){return o==="x"?"y":"x"}function V(o){return o==="y"?"height":"width"}function tt(o){return["top","bottom"].includes(st(o))?"y":"x"}function K(o){return U(tt(o))}function mt(o,h,v){v===void 0&&(v=!1);const d=ot(o),y=K(o),u=V(y);let w=y==="x"?d===(v?"end":"start")?"right":"left":d==="start"?"bottom":"top";return h.reference[u]>h.floating[u]&&(w=f(w)),[w,f(w)]}function r(o){const h=f(o);return[l(o),h,l(h)]}function l(o){return o.replace(/start|end/g,h=>Z[h])}function p(o,h,v){const d=["left","right"],y=["right","left"],u=["top","bottom"],w=["bottom","top"];switch(o){case"top":case"bottom":return v?h?y:d:h?d:y;case"left":case"right":return h?u:w;default:return[]}}function m(o,h,v,d){const y=ot(o);let u=p(st(o),v==="start",d);return y&&(u=u.map(w=>w+"-"+y),h&&(u=u.concat(u.map(l)))),u}function f(o){return o.replace(/left|right|bottom|top/g,h=>rt[h])}function s(o){return{top:0,right:0,bottom:0,left:0,...o}}function b(o){return typeof o!="number"?s(o):{top:o,right:o,bottom:o,left:o}}function A(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}}}]);
@@ -0,0 +1,8 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4509],{30266:function(Ht,Te,C){C.d(Te,{Z:function(){return Ee}});function Z(o){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(o)}function k(o,e){if(Z(o)!="object"||!o)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,e||"default");if(Z(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function fe(o){var e=k(o,"string");return Z(e)=="symbol"?e:e+""}function S(o,e,n){return(e=fe(e))in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function _(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);e&&(l=l.filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable})),n.push.apply(n,l)}return n}function A(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_(Object(n),!0).forEach(function(l){S(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Ue(o,e){(e==null||e>o.length)&&(e=o.length);for(var n=0,l=Array(e);n<e;n++)l[n]=o[n];return l}function b(o){if(Array.isArray(o))return Ue(o)}function ae(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function M(o,e){if(o){if(typeof o=="string")return Ue(o,e);var n={}.toString.call(o).slice(8,-1);return n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set"?Array.from(o):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(o,e):void 0}}function I(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(o){return b(o)||ae(o)||M(o)||I()}function H(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function q(o,e){for(var n=0;n<e.length;n++){var l=e[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,fe(l.key),l)}}function ee(o,e,n){return e&&q(o.prototype,e),n&&q(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function ve(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var V=ve();function Re(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function W(o,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},W(o,e)}function be(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&W(o,e)}function Q(o){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(o)}function he(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(he=function(){return!!o})()}function Ne(o,e){if(e&&(Z(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Re(o)}function De(o){var e=he();return function(){var n,l=Q(o);if(e){var v=Q(this).constructor;n=Reflect.construct(l,arguments,v)}else n=l.apply(this,arguments);return Ne(this,n)}}function ue(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}function ge(o,e,n){if(he())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,e);var v=new(o.bind.apply(o,l));return n&&W(v,n.prototype),v}function te(o){var e=typeof Map=="function"?new Map:void 0;return te=function(l){if(l===null||!ue(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(l))return e.get(l);e.set(l,v)}function v(){return ge(l,arguments,Q(this).constructor)}return v.prototype=Object.create(l.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),W(v,l)},te(o)}var Le=C(34155),we=/%[sdj%]/g,ze=function(){};typeof Le<"u";function Ve(o){if(!o||!o.length)return null;var e={};return o.forEach(function(n){var l=n.field;e[l]=e[l]||[],e[l].push(n)}),e}function xe(o){for(var e=arguments.length,n=new Array(e>1?e-1:0),l=1;l<e;l++)n[l-1]=arguments[l];var v=0,d=n.length;if(typeof o=="function")return o.apply(null,n);if(typeof o=="string"){var g=o.replace(we,function(p){if(p==="%%")return"%";if(v>=d)return p;switch(p){case"%s":return String(n[v++]);case"%d":return Number(n[v++]);case"%j":try{return JSON.stringify(n[v++])}catch{return"[Circular]"}break;default:return p}});return g}return o}function lt(o){return o==="string"||o==="url"||o==="hex"||o==="email"||o==="date"||o==="pattern"}function Se(o,e){return!!(o==null||e==="array"&&Array.isArray(o)&&!o.length||lt(e)&&typeof o=="string"&&!o)}function bt(o){return Object.keys(o).length===0}function wt(o,e,n){var l=[],v=0,d=o.length;function g(p){l.push.apply(l,R(p||[])),v++,v===d&&n(l)}o.forEach(function(p){e(p,g)})}function pt(o,e,n){var l=0,v=o.length;function d(g){if(g&&g.length){n(g);return}var p=l;l=l+1,p<v?e(o[p],d):n([])}d([])}function St(o){var e=[];return Object.keys(o).forEach(function(n){e.push.apply(e,R(o[n]||[]))}),e}var Ye=function(o){be(n,o);var e=De(n);function n(l,v){var d;return H(this,n),d=e.call(this,"Async Validation Error"),S(Re(d),"errors",void 0),S(Re(d),"fields",void 0),d.errors=l,d.fields=v,d}return ee(n)}(te(Error));function Mt(o,e,n,l,v){if(e.first){var d=new Promise(function(Pe,Ae){var P=function(pe){return l(pe),pe.length?Ae(new Ye(pe,Ve(pe))):Pe(v)},Oe=St(o);pt(Oe,n,P)});return d.catch(function(Pe){return Pe}),d}var g=e.firstFields===!0?Object.keys(o):e.firstFields||[],p=Object.keys(o),oe=p.length,ke=0,le=[],ce=new Promise(function(Pe,Ae){var P=function(O){if(le.push.apply(le,O),ke++,ke===oe)return l(le),le.length?Ae(new Ye(le,Ve(le))):Pe(v)};p.length||(l(le),Pe(v)),p.forEach(function(Oe){var O=o[Oe];g.indexOf(Oe)!==-1?pt(O,n,P):wt(O,n,P)})});return ce.catch(function(Pe){return Pe}),ce}function U(o){return!!(o&&o.message!==void 0)}function F(o,e){for(var n=o,l=0;l<e.length;l++){if(n==null)return n;n=n[e[l]]}return n}function L(o,e){return function(n){var l;return o.fullFields?l=F(e,o.fullFields):l=e[n.field||o.fullField],U(n)?(n.field=n.field||o.fullField,n.fieldValue=l,n):{message:typeof n=="function"?n():n,fieldValue:l,field:n.field||o.fullField}}}function $(o,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var l=e[n];Z(l)==="object"&&Z(o[n])==="object"?o[n]=A(A({},o[n]),l):o[n]=l}}return o}var J="enum",We=function(e,n,l,v,d){e[J]=Array.isArray(e[J])?e[J]:[],e[J].indexOf(n)===-1&&v.push(xe(d.messages[J],e.fullField,e[J].join(", ")))},Fe=We,vt=function(e,n,l,v,d){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||v.push(xe(d.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var g=new RegExp(e.pattern);g.test(n)||v.push(xe(d.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},ct=vt,i=function(e,n,l,v,d){var g=typeof e.len=="number",p=typeof e.min=="number",oe=typeof e.max=="number",ke=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,le=n,ce=null,Pe=typeof n=="number",Ae=typeof n=="string",P=Array.isArray(n);if(Pe?ce="number":Ae?ce="string":P&&(ce="array"),!ce)return!1;P&&(le=n.length),Ae&&(le=n.replace(ke,"_").length),g?le!==e.len&&v.push(xe(d.messages[ce].len,e.fullField,e.len)):p&&!oe&&le<e.min?v.push(xe(d.messages[ce].min,e.fullField,e.min)):oe&&!p&&le>e.max?v.push(xe(d.messages[ce].max,e.fullField,e.max)):p&&oe&&(le<e.min||le>e.max)&&v.push(xe(d.messages[ce].range,e.fullField,e.min,e.max))},a=i,t=function(e,n,l,v,d,g){e.required&&(!l.hasOwnProperty(e.field)||Se(n,g||e.type))&&v.push(xe(d.messages.required,e.fullField))},r=t,u,s=function(){if(u)return u;var o="[a-fA-F\\d:]",e=function(nt){return nt&&nt.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(o,")|(?<=").concat(o,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",l="[a-fA-F\\d]{1,4}",v=["(?:".concat(l,":){7}(?:").concat(l,"|:)"),"(?:".concat(l,":){6}(?:").concat(n,"|:").concat(l,"|:)"),"(?:".concat(l,":){5}(?::").concat(n,"|(?::").concat(l,"){1,2}|:)"),"(?:".concat(l,":){4}(?:(?::").concat(l,"){0,1}:").concat(n,"|(?::").concat(l,"){1,3}|:)"),"(?:".concat(l,":){3}(?:(?::").concat(l,"){0,2}:").concat(n,"|(?::").concat(l,"){1,4}|:)"),"(?:".concat(l,":){2}(?:(?::").concat(l,"){0,3}:").concat(n,"|(?::").concat(l,"){1,5}|:)"),"(?:".concat(l,":){1}(?:(?::").concat(l,"){0,4}:").concat(n,"|(?::").concat(l,"){1,6}|:)"),"(?::(?:(?::".concat(l,"){0,5}:").concat(n,"|(?::").concat(l,"){1,7}|:))")],d="(?:%[0-9a-zA-Z]{1,})?",g="(?:".concat(v.join("|"),")").concat(d),p=new RegExp("(?:^".concat(n,"$)|(?:^").concat(g,"$)")),oe=new RegExp("^".concat(n,"$")),ke=new RegExp("^".concat(g,"$")),le=function(nt){return nt&&nt.exact?p:new RegExp("(?:".concat(e(nt)).concat(n).concat(e(nt),")|(?:").concat(e(nt)).concat(g).concat(e(nt),")"),"g")};le.v4=function(Ge){return Ge&&Ge.exact?oe:new RegExp("".concat(e(Ge)).concat(n).concat(e(Ge)),"g")},le.v6=function(Ge){return Ge&&Ge.exact?ke:new RegExp("".concat(e(Ge)).concat(g).concat(e(Ge)),"g")};var ce="(?:(?:[a-z]+:)?//)",Pe="(?:\\S+(?::\\S*)?@)?",Ae=le.v4().source,P=le.v6().source,Oe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",O="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",pe="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Me="(?::\\d{2,5})?",rt='(?:[/?#][^\\s"]*)?',je="(?:".concat(ce,"|www\\.)").concat(Pe,"(?:localhost|").concat(Ae,"|").concat(P,"|").concat(Oe).concat(O).concat(pe,")").concat(Me).concat(rt);return u=new RegExp("(?:^".concat(je,"$)"),"i"),u},h={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},y={integer:function(e){return y.number(e)&&parseInt(e,10)===e},float:function(e){return y.number(e)&&!y.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Z(e)==="object"&&!y.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(h.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(s())},hex:function(e){return typeof e=="string"&&!!e.match(h.hex)}},E=function(e,n,l,v,d){if(e.required&&n===void 0){r(e,n,l,v,d);return}var g=["integer","float","array","regexp","object","method","email","number","date","url","hex"],p=e.type;g.indexOf(p)>-1?y[p](n)||v.push(xe(d.messages.types[p],e.fullField,e.type)):p&&Z(n)!==e.type&&v.push(xe(d.messages.types[p],e.fullField,e.type))},D=E,z=function(e,n,l,v,d){(/^\s+$/.test(n)||n==="")&&v.push(xe(d.messages.whitespace,e.fullField))},X=z,N={required:r,whitespace:X,type:D,range:a,enum:Fe,pattern:ct},re=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d)}l(g)},j=re,se=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(n==null&&!e.required)return l();N.required(e,n,v,g,d,"array"),n!=null&&(N.type(e,n,v,g,d),N.range(e,n,v,g,d))}l(g)},Y=se,me=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&N.type(e,n,v,g,d)}l(g)},ye=me,Ze=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n,"date")&&!e.required)return l();if(N.required(e,n,v,g,d),!Se(n,"date")){var oe;n instanceof Date?oe=n:oe=new Date(n),N.type(e,oe,v,g,d),oe&&N.range(e,oe.getTime(),v,g,d)}}l(g)},G=Ze,ne="enum",Xe=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&N[ne](e,n,v,g,d)}l(g)},qe=Xe,Ce=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&(N.type(e,n,v,g,d),N.range(e,n,v,g,d))}l(g)},_e=Ce,it=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&(N.type(e,n,v,g,d),N.range(e,n,v,g,d))}l(g)},dt=it,et=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&N.type(e,n,v,g,d)}l(g)},Dt=et,Nt=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(n===""&&(n=void 0),Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&(N.type(e,n,v,g,d),N.range(e,n,v,g,d))}l(g)},$e=Nt,Pt=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),n!==void 0&&N.type(e,n,v,g,d)}l(g)},Ot=Pt,tt=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n,"string")&&!e.required)return l();N.required(e,n,v,g,d),Se(n,"string")||N.pattern(e,n,v,g,d)}l(g)},de=tt,kt=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n)&&!e.required)return l();N.required(e,n,v,g,d),Se(n)||N.type(e,n,v,g,d)}l(g)},Ut=kt,or=function(e,n,l,v,d){var g=[],p=Array.isArray(n)?"array":Z(n);N.required(e,n,v,g,d,p),l(g)},c=or,m=function(e,n,l,v,d){var g=[],p=e.required||!e.required&&v.hasOwnProperty(e.field);if(p){if(Se(n,"string")&&!e.required)return l();N.required(e,n,v,g,d,"string"),Se(n,"string")||(N.type(e,n,v,g,d),N.range(e,n,v,g,d),N.pattern(e,n,v,g,d),e.whitespace===!0&&N.whitespace(e,n,v,g,d))}l(g)},f=m,w=function(e,n,l,v,d){var g=e.type,p=[],oe=e.required||!e.required&&v.hasOwnProperty(e.field);if(oe){if(Se(n,g)&&!e.required)return l();N.required(e,n,v,p,d,g),Se(n,g)||N.type(e,n,v,p,d)}l(p)},x=w,B={string:f,method:Dt,number:$e,boolean:ye,regexp:Ut,integer:dt,float:_e,array:Y,object:Ot,enum:qe,pattern:de,date:G,url:x,hex:x,email:x,required:c,any:j},K=function(){function o(e){H(this,o),S(this,"rules",null),S(this,"_messages",V),this.define(e)}return ee(o,[{key:"define",value:function(n){var l=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Z(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(v){var d=n[v];l.rules[v]=Array.isArray(d)?d:[d]})}},{key:"messages",value:function(n){return n&&(this._messages=$(ve(),n)),this._messages}},{key:"validate",value:function(n){var l=this,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},g=n,p=v,oe=d;if(typeof p=="function"&&(oe=p,p={}),!this.rules||Object.keys(this.rules).length===0)return oe&&oe(null,g),Promise.resolve(g);function ke(P){var Oe=[],O={};function pe(rt){if(Array.isArray(rt)){var je;Oe=(je=Oe).concat.apply(je,R(rt))}else Oe.push(rt)}for(var Me=0;Me<P.length;Me++)pe(P[Me]);Oe.length?(O=Ve(Oe),oe(Oe,O)):oe(null,g)}if(p.messages){var le=this.messages();le===V&&(le=ve()),$(le,p.messages),p.messages=le}else p.messages=this.messages();var ce={},Pe=p.keys||Object.keys(this.rules);Pe.forEach(function(P){var Oe=l.rules[P],O=g[P];Oe.forEach(function(pe){var Me=pe;typeof Me.transform=="function"&&(g===n&&(g=A({},g)),O=g[P]=Me.transform(O),O!=null&&(Me.type=Me.type||(Array.isArray(O)?"array":Z(O)))),typeof Me=="function"?Me={validator:Me}:Me=A({},Me),Me.validator=l.getValidationMethod(Me),Me.validator&&(Me.field=P,Me.fullField=Me.fullField||P,Me.type=l.getType(Me),ce[P]=ce[P]||[],ce[P].push({rule:Me,value:O,source:g,field:P}))})});var Ae={};return Mt(ce,p,function(P,Oe){var O=P.rule,pe=(O.type==="object"||O.type==="array")&&(Z(O.fields)==="object"||Z(O.defaultField)==="object");pe=pe&&(O.required||!O.required&&P.value),O.field=P.field;function Me(at,ft){return A(A({},ft),{},{fullField:"".concat(O.fullField,".").concat(at),fullFields:O.fullFields?[].concat(R(O.fullFields),[at]):[at]})}function rt(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=Array.isArray(at)?at:[at];!p.suppressWarning&&ft.length&&o.warning("async-validator:",ft),ft.length&&O.message!==void 0&&(ft=[].concat(O.message));var mt=ft.map(L(O,g));if(p.first&&mt.length)return Ae[O.field]=1,Oe(mt);if(!pe)Oe(mt);else{if(O.required&&!P.value)return O.message!==void 0?mt=[].concat(O.message).map(L(O,g)):p.error&&(mt=[p.error(O,xe(p.messages.required,O.field))]),Oe(mt);var ot={};O.defaultField&&Object.keys(P.value).map(function(Ct){ot[Ct]=O.defaultField}),ot=A(A({},ot),P.rule.fields);var gt={};Object.keys(ot).forEach(function(Ct){var ut=ot[Ct],yt=Array.isArray(ut)?ut:[ut];gt[Ct]=yt.map(Me.bind(null,Ct))});var Ie=new o(gt);Ie.messages(p.messages),P.rule.options&&(P.rule.options.messages=p.messages,P.rule.options.error=p.error),Ie.validate(P.value,P.rule.options||p,function(Ct){var ut=[];mt&&mt.length&&ut.push.apply(ut,R(mt)),Ct&&Ct.length&&ut.push.apply(ut,R(Ct)),Oe(ut.length?ut:null)})}}var je;if(O.asyncValidator)je=O.asyncValidator(O,P.value,rt,P.source,p);else if(O.validator){try{je=O.validator(O,P.value,rt,P.source,p)}catch(at){var Ge,nt;(Ge=(nt=console).error)===null||Ge===void 0||Ge.call(nt,at),p.suppressValidatorError||setTimeout(function(){throw at},0),rt(at.message)}je===!0?rt():je===!1?rt(typeof O.message=="function"?O.message(O.fullField||O.field):O.message||"".concat(O.fullField||O.field," fails")):je instanceof Array?rt(je):je instanceof Error&&rt(je.message)}je&&je.then&&je.then(function(){return rt()},function(at){return rt(at)})},function(P){ke(P)},g)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!B.hasOwnProperty(n.type))throw new Error(xe("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var l=Object.keys(n),v=l.indexOf("message");return v!==-1&&l.splice(v,1),l.length===1&&l[0]==="required"?B.required:B[this.getType(n)]||void 0}}]),o}();S(K,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");B[e]=n}),S(K,"warning",ze),S(K,"messages",V),S(K,"validators",B);var Ee=K},39899:function(Ht,Te,C){C.r(Te),C.d(Te,{Color:function(){return V},ColorBlock:function(){return ge},default:function(){return ct}});var Z=C(87462),k=C(4942),fe=C(97685),S=C(67294),_=C(1413),A=C(15671),Ue=C(43144),b=C(32531),ae=C(29388),M=C(91),I=C(71002),R=C(24327),H=["b"],q=["v"],ee=function(a){return Math.round(Number(a||0))},ve=function(a){if(a instanceof R.FastColor)return a;if(a&&(0,I.Z)(a)==="object"&&"h"in a&&"b"in a){var t=a,r=t.b,u=(0,M.Z)(t,H);return(0,_.Z)((0,_.Z)({},u),{},{v:r})}return typeof a=="string"&&/hsb/.test(a)?a.replace(/hsb/,"hsv"):a},V=function(i){(0,b.Z)(t,i);var a=(0,ae.Z)(t);function t(r){return(0,A.Z)(this,t),a.call(this,ve(r))}return(0,Ue.Z)(t,[{key:"toHsbString",value:function(){var u=this.toHsb(),s=ee(u.s*100),h=ee(u.b*100),y=ee(u.h),E=u.a,D="hsb(".concat(y,", ").concat(s,"%, ").concat(h,"%)"),z="hsba(".concat(y,", ").concat(s,"%, ").concat(h,"%, ").concat(E.toFixed(E===0?0:2),")");return E===1?D:z}},{key:"toHsb",value:function(){var u=this.toHsv(),s=u.v,h=(0,M.Z)(u,q);return(0,_.Z)((0,_.Z)({},h),{},{b:s,a:this.a})}}]),t}(R.FastColor),Re="rc-color-picker",W=function(a){return a instanceof V?a:new V(a)},be=W("#1677ff"),Q=function(a){var t=a.offset,r=a.targetRef,u=a.containerRef,s=a.color,h=a.type,y=u.current.getBoundingClientRect(),E=y.width,D=y.height,z=r.current.getBoundingClientRect(),X=z.width,N=z.height,re=X/2,j=N/2,se=(t.x+re)/E,Y=1-(t.y+j)/D,me=s.toHsb(),ye=se,Ze=(t.x+re)/E*360;if(h)switch(h){case"hue":return W((0,_.Z)((0,_.Z)({},me),{},{h:Ze<=0?0:Ze}));case"alpha":return W((0,_.Z)((0,_.Z)({},me),{},{a:ye<=0?0:ye}))}return W({h:me.h,s:se<=0?0:se,b:Y>=1?1:Y,a:me.a})},he=function(a,t){var r=a.toHsb();switch(t){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:a.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},Ne=C(93967),De=C.n(Ne),ue=function(a){var t=a.color,r=a.prefixCls,u=a.className,s=a.style,h=a.onClick,y="".concat(r,"-color-block");return S.createElement("div",{className:De()(y,u),style:s,onClick:h},S.createElement("div",{className:"".concat(y,"-inner"),style:{background:t}}))},ge=ue;function te(i){var a="touches"in i?i.touches[0]:i,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:a.pageX-t,pageY:a.pageY-r}}function Le(i){var a=i.targetRef,t=i.containerRef,r=i.direction,u=i.onDragChange,s=i.onDragChangeComplete,h=i.calculate,y=i.color,E=i.disabledDrag,D=(0,S.useState)({x:0,y:0}),z=(0,fe.Z)(D,2),X=z[0],N=z[1],re=(0,S.useRef)(null),j=(0,S.useRef)(null);(0,S.useEffect)(function(){N(h())},[y]),(0,S.useEffect)(function(){return function(){document.removeEventListener("mousemove",re.current),document.removeEventListener("mouseup",j.current),document.removeEventListener("touchmove",re.current),document.removeEventListener("touchend",j.current),re.current=null,j.current=null}},[]);var se=function(G){var ne=te(G),Xe=ne.pageX,qe=ne.pageY,Ce=t.current.getBoundingClientRect(),_e=Ce.x,it=Ce.y,dt=Ce.width,et=Ce.height,Dt=a.current.getBoundingClientRect(),Nt=Dt.width,$e=Dt.height,Pt=Nt/2,Ot=$e/2,tt=Math.max(0,Math.min(Xe-_e,dt))-Pt,de=Math.max(0,Math.min(qe-it,et))-Ot,kt={x:tt,y:r==="x"?X.y:de};if(Nt===0&&$e===0||Nt!==$e)return!1;u==null||u(kt)},Y=function(G){G.preventDefault(),se(G)},me=function(G){G.preventDefault(),document.removeEventListener("mousemove",re.current),document.removeEventListener("mouseup",j.current),document.removeEventListener("touchmove",re.current),document.removeEventListener("touchend",j.current),re.current=null,j.current=null,s==null||s()},ye=function(G){document.removeEventListener("mousemove",re.current),document.removeEventListener("mouseup",j.current),!E&&(se(G),document.addEventListener("mousemove",Y),document.addEventListener("mouseup",me),document.addEventListener("touchmove",Y),document.addEventListener("touchend",me),re.current=Y,j.current=me)};return[X,ye]}var we=Le,ze=C(56790),Ve=function(a){var t=a.size,r=t===void 0?"default":t,u=a.color,s=a.prefixCls;return S.createElement("div",{className:De()("".concat(s,"-handler"),(0,k.Z)({},"".concat(s,"-handler-sm"),r==="small")),style:{backgroundColor:u}})},xe=Ve,lt=function(a){var t=a.children,r=a.style,u=a.prefixCls;return S.createElement("div",{className:"".concat(u,"-palette"),style:(0,_.Z)({position:"relative"},r)},t)},Se=lt,bt=(0,S.forwardRef)(function(i,a){var t=i.children,r=i.x,u=i.y;return S.createElement("div",{ref:a,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(u,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),wt=bt,pt=function(a){var t=a.color,r=a.onChange,u=a.prefixCls,s=a.onChangeComplete,h=a.disabled,y=(0,S.useRef)(),E=(0,S.useRef)(),D=(0,S.useRef)(t),z=(0,ze.zX)(function(se){var Y=Q({offset:se,targetRef:E,containerRef:y,color:t});D.current=Y,r(Y)}),X=we({color:t,containerRef:y,targetRef:E,calculate:function(){return he(t)},onDragChange:z,onDragChangeComplete:function(){return s==null?void 0:s(D.current)},disabledDrag:h}),N=(0,fe.Z)(X,2),re=N[0],j=N[1];return S.createElement("div",{ref:y,className:"".concat(u,"-select"),onMouseDown:j,onTouchStart:j},S.createElement(Se,{prefixCls:u},S.createElement(wt,{x:re.x,y:re.y,ref:E},S.createElement(xe,{color:t.toRgbString(),prefixCls:u})),S.createElement("div",{className:"".concat(u,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},St=pt,Ye=function(a,t){var r=(0,ze.C8)(a,{value:t}),u=(0,fe.Z)(r,2),s=u[0],h=u[1],y=(0,S.useMemo)(function(){return W(s)},[s]);return[y,h]},Mt=Ye,U=function(a){var t=a.colors,r=a.children,u=a.direction,s=u===void 0?"to right":u,h=a.type,y=a.prefixCls,E=(0,S.useMemo)(function(){return t.map(function(D,z){var X=W(D);return h==="alpha"&&z===t.length-1&&(X=new V(X.setA(1))),X.toRgbString()}).join(",")},[t,h]);return S.createElement("div",{className:"".concat(y,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(s,", ").concat(E,")")}},r)},F=U,L=function(a){var t=a.prefixCls,r=a.colors,u=a.disabled,s=a.onChange,h=a.onChangeComplete,y=a.color,E=a.type,D=(0,S.useRef)(),z=(0,S.useRef)(),X=(0,S.useRef)(y),N=function(ne){return E==="hue"?ne.getHue():ne.a*100},re=(0,ze.zX)(function(G){var ne=Q({offset:G,targetRef:z,containerRef:D,color:y,type:E});X.current=ne,s(N(ne))}),j=we({color:y,targetRef:z,containerRef:D,calculate:function(){return he(y,E)},onDragChange:re,onDragChangeComplete:function(){h(N(X.current))},direction:"x",disabledDrag:u}),se=(0,fe.Z)(j,2),Y=se[0],me=se[1],ye=S.useMemo(function(){if(E==="hue"){var G=y.toHsb();G.s=1,G.b=1,G.a=1;var ne=new V(G);return ne}return y},[y,E]),Ze=S.useMemo(function(){return r.map(function(G){return"".concat(G.color," ").concat(G.percent,"%")})},[r]);return S.createElement("div",{ref:D,className:De()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(E)),onMouseDown:me,onTouchStart:me},S.createElement(Se,{prefixCls:t},S.createElement(wt,{x:Y.x,y:Y.y,ref:z},S.createElement(xe,{size:"small",color:ye.toHexString(),prefixCls:t})),S.createElement(F,{colors:Ze,type:E,prefixCls:t})))},$=L;function J(i){return S.useMemo(function(){var a=i||{},t=a.slider;return[t||$]},[i])}var We=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Fe=(0,S.forwardRef)(function(i,a){var t=i.value,r=i.defaultValue,u=i.prefixCls,s=u===void 0?Re:u,h=i.onChange,y=i.onChangeComplete,E=i.className,D=i.style,z=i.panelRender,X=i.disabledAlpha,N=X===void 0?!1:X,re=i.disabled,j=re===void 0?!1:re,se=i.components,Y=J(se),me=(0,fe.Z)(Y,1),ye=me[0],Ze=Mt(r||be,t),G=(0,fe.Z)(Ze,2),ne=G[0],Xe=G[1],qe=(0,S.useMemo)(function(){return ne.setA(1).toRgbString()},[ne]),Ce=function(de,kt){t||Xe(de),h==null||h(de,kt)},_e=function(de){return new V(ne.setHue(de))},it=function(de){return new V(ne.setA(de/100))},dt=function(de){Ce(_e(de),{type:"hue",value:de})},et=function(de){Ce(it(de),{type:"alpha",value:de})},Dt=function(de){y&&y(_e(de))},Nt=function(de){y&&y(it(de))},$e=De()("".concat(s,"-panel"),E,(0,k.Z)({},"".concat(s,"-panel-disabled"),j)),Pt={prefixCls:s,disabled:j,color:ne},Ot=S.createElement(S.Fragment,null,S.createElement(St,(0,Z.Z)({onChange:Ce},Pt,{onChangeComplete:y})),S.createElement("div",{className:"".concat(s,"-slider-container")},S.createElement("div",{className:De()("".concat(s,"-slider-group"),(0,k.Z)({},"".concat(s,"-slider-group-disabled-alpha"),N))},S.createElement(ye,(0,Z.Z)({},Pt,{type:"hue",colors:We,min:0,max:359,value:ne.getHue(),onChange:dt,onChangeComplete:Dt})),!N&&S.createElement(ye,(0,Z.Z)({},Pt,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:qe}],min:0,max:100,value:ne.a*100,onChange:et,onChangeComplete:Nt}))),S.createElement(ge,{color:ne.toRgbString(),prefixCls:s})));return S.createElement("div",{className:$e,style:D,ref:a},typeof z=="function"?z(Ot):Ot)}),vt=Fe,ct=vt},11157:function(Ht,Te,C){C.d(Te,{kr:function(){return Ue},jM:function(){return I},qp:function(){return b}});var Z=C(97685),k=C(66680),fe=C(8410),S=C(91881),_=C(67294),A=C(73935);function Ue(ve){var V=_.createContext(void 0),Re=function(be){var Q=be.value,he=be.children,Ne=_.useRef(Q);Ne.current=Q;var De=_.useState(function(){return{getValue:function(){return Ne.current},listeners:new Set}}),ue=(0,Z.Z)(De,1),ge=ue[0];return(0,fe.Z)(function(){(0,A.unstable_batchedUpdates)(function(){ge.listeners.forEach(function(te){te(Q)})})},[Q]),_.createElement(V.Provider,{value:ge},he)};return{Context:V,Provider:Re,defaultValue:ve}}function b(ve,V){var Re=(0,k.Z)(typeof V=="function"?V:function(te){if(V===void 0)return te;if(!Array.isArray(V))return te[V];var Le={};return V.forEach(function(we){Le[we]=te[we]}),Le}),W=_.useContext(ve==null?void 0:ve.Context),be=W||{},Q=be.listeners,he=be.getValue,Ne=_.useRef();Ne.current=Re(W?he():ve==null?void 0:ve.defaultValue);var De=_.useState({}),ue=(0,Z.Z)(De,2),ge=ue[1];return(0,fe.Z)(function(){if(!W)return;function te(Le){var we=Re(Le);(0,S.Z)(Ne.current,we,!0)||ge({})}return Q.add(te),function(){Q.delete(te)}},[W]),Ne.current}var ae=C(87462),M=C(42550);function I(){var ve=_.createContext(null);function V(){return _.useContext(ve)}function Re(be,Q){var he=(0,M.Yr)(be),Ne=function(ue,ge){var te=he?{ref:ge}:{},Le=_.useRef(0),we=_.useRef(ue),ze=V();return ze!==null?_.createElement(be,(0,ae.Z)({},ue,te)):((!Q||Q(we.current,ue))&&(Le.current+=1),we.current=ue,_.createElement(ve.Provider,{value:Le.current},_.createElement(be,(0,ae.Z)({},ue,te))))};return he?_.forwardRef(Ne):Ne}function W(be,Q){var he=(0,M.Yr)(be),Ne=function(ue,ge){var te=he?{ref:ge}:{};return V(),_.createElement(be,(0,ae.Z)({},ue,te))};return he?_.memo(_.forwardRef(Ne),Q):_.memo(Ne,Q)}return{makeImmutable:Re,responseImmutable:W,useImmutableMark:V}}var R=I(),H=R.makeImmutable,q=R.responseImmutable,ee=R.useImmutableMark},8150:function(Ht,Te,C){C.d(Te,{ZP:function(){return b},FH:function(){return ae}});var Z=C(15671),k=C(43144),fe=C(4942),S=C(55252),_=function(){function M(I){if((0,Z.Z)(this,M),(0,fe.Z)(this,"origin",""),(0,fe.Z)(this,"negative",void 0),(0,fe.Z)(this,"integer",void 0),(0,fe.Z)(this,"decimal",void 0),(0,fe.Z)(this,"decimalLen",void 0),(0,fe.Z)(this,"empty",void 0),(0,fe.Z)(this,"nan",void 0),(0,S.xb)(I)){this.empty=!0;return}if(this.origin=String(I),I==="-"||Number.isNaN(I)){this.nan=!0;return}var R=I;if((0,S.CC)(R)&&(R=Number(R)),R=typeof R=="string"?R:(0,S.vP)(R),(0,S.mE)(R)){var H=(0,S._V)(R);this.negative=H.negative;var q=H.trimStr.split(".");this.integer=BigInt(q[0]);var ee=q[1]||"0";this.decimal=BigInt(ee),this.decimalLen=ee.length}else this.nan=!0}return(0,k.Z)(M,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(R){var H="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(R,"0"));return BigInt(H)}},{key:"negate",value:function(){var R=new M(this.toString());return R.negative=!R.negative,R}},{key:"cal",value:function(R,H,q){var ee=Math.max(this.getDecimalStr().length,R.getDecimalStr().length),ve=this.alignDecimal(ee),V=R.alignDecimal(ee),Re=H(ve,V).toString(),W=q(ee),be=(0,S._V)(Re),Q=be.negativeStr,he=be.trimStr,Ne="".concat(Q).concat(he.padStart(W+1,"0"));return new M("".concat(Ne.slice(0,-W),".").concat(Ne.slice(-W)))}},{key:"add",value:function(R){if(this.isInvalidate())return new M(R);var H=new M(R);return H.isInvalidate()?this:this.cal(H,function(q,ee){return q+ee},function(q){return q})}},{key:"multi",value:function(R){var H=new M(R);return this.isInvalidate()||H.isInvalidate()?new M(NaN):this.cal(H,function(q,ee){return q*ee},function(q){return q*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(R){return this.toString()===(R==null?void 0:R.toString())}},{key:"lessEquals",value:function(R){return this.add(R.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return R?this.isInvalidate()?"":(0,S._V)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),M}(),A=function(){function M(I){if((0,Z.Z)(this,M),(0,fe.Z)(this,"origin",""),(0,fe.Z)(this,"number",void 0),(0,fe.Z)(this,"empty",void 0),(0,S.xb)(I)){this.empty=!0;return}this.origin=String(I),this.number=Number(I)}return(0,k.Z)(M,[{key:"negate",value:function(){return new M(-this.toNumber())}},{key:"add",value:function(R){if(this.isInvalidate())return new M(R);var H=Number(R);if(Number.isNaN(H))return this;var q=this.number+H;if(q>Number.MAX_SAFE_INTEGER)return new M(Number.MAX_SAFE_INTEGER);if(q<Number.MIN_SAFE_INTEGER)return new M(Number.MIN_SAFE_INTEGER);var ee=Math.max((0,S.NX)(this.number),(0,S.NX)(H));return new M(q.toFixed(ee))}},{key:"multi",value:function(R){var H=Number(R);if(this.isInvalidate()||Number.isNaN(H))return new M(NaN);var q=this.number*H;if(q>Number.MAX_SAFE_INTEGER)return new M(Number.MAX_SAFE_INTEGER);if(q<Number.MIN_SAFE_INTEGER)return new M(Number.MIN_SAFE_INTEGER);var ee=Math.max((0,S.NX)(this.number),(0,S.NX)(H));return new M(q.toFixed(ee))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(R){return this.toNumber()===(R==null?void 0:R.toNumber())}},{key:"lessEquals",value:function(R){return this.add(R.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return R?this.isInvalidate()?"":(0,S.vP)(this.number):this.origin}}]),M}(),Ue=C(10432);function b(M){return(0,Ue.L)()?new _(M):new A(M)}function ae(M,I,R){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(M==="")return"";var q=(0,S._V)(M),ee=q.negativeStr,ve=q.integerStr,V=q.decimalStr,Re="".concat(I).concat(V),W="".concat(ee).concat(ve);if(R>=0){var be=Number(V[R]);if(be>=5&&!H){var Q=b(M).add("".concat(ee,"0.").concat("0".repeat(R)).concat(10-be));return ae(Q.toString(),I,R,H)}return R===0?W:"".concat(W).concat(I).concat(V.padEnd(R,"0").slice(0,R))}return Re===".0"?W:"".concat(W).concat(Re)}},98847:function(Ht,Te,C){var Z=C(8150);Te.ZP=Z.ZP},55252:function(Ht,Te,C){C.d(Te,{CC:function(){return S},NX:function(){return _},_V:function(){return fe},mE:function(){return Ue},vP:function(){return A},xb:function(){return k}});var Z=C(10432);function k(b){return!b&&b!==0&&!Number.isNaN(b)||!String(b).trim()}function fe(b){var ae=b.trim(),M=ae.startsWith("-");M&&(ae=ae.slice(1)),ae=ae.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ae.startsWith(".")&&(ae="0".concat(ae));var I=ae||"0",R=I.split("."),H=R[0]||"0",q=R[1]||"0";H==="0"&&q==="0"&&(M=!1);var ee=M?"-":"";return{negative:M,negativeStr:ee,trimStr:I,integerStr:H,decimalStr:q,fullStr:"".concat(ee).concat(I)}}function S(b){var ae=String(b);return!Number.isNaN(Number(ae))&&ae.includes("e")}function _(b){var ae=String(b);if(S(b)){var M=Number(ae.slice(ae.indexOf("e-")+2)),I=ae.match(/\.(\d+)/);return I!=null&&I[1]&&(M+=I[1].length),M}return ae.includes(".")&&Ue(ae)?ae.length-ae.indexOf(".")-1:0}function A(b){var ae=String(b);if(S(b)){if(b>Number.MAX_SAFE_INTEGER)return String((0,Z.L)()?BigInt(b).toString():Number.MAX_SAFE_INTEGER);if(b<Number.MIN_SAFE_INTEGER)return String((0,Z.L)()?BigInt(b).toString():Number.MIN_SAFE_INTEGER);ae=b.toFixed(_(ae))}return fe(ae).fullStr}function Ue(b){return typeof b=="number"?!Number.isNaN(b):b?/^\s*-?\d+(\.\d+)?\s*$/.test(b)||/^\s*-?\d+\.\s*$/.test(b)||/^\s*-?\.\d+\s*$/.test(b):!1}},10432:function(Ht,Te,C){C.d(Te,{L:function(){return Z}});function Z(){return typeof BigInt=="function"}},63199:function(Ht,Te,C){C.r(Te),C.d(Te,{default:function(){return Re},useMutateObserver:function(){return ee}});var Z=C(97685),k=C(67294),fe=C(8410),S=C(42550),_=C(34203),A=C(66680),Ue=C(15671),b=C(43144),ae=C(32531),M=C(29388),I=function(W){(0,ae.Z)(Q,W);var be=(0,M.Z)(Q);function Q(){return(0,Ue.Z)(this,Q),be.apply(this,arguments)}return(0,b.Z)(Q,[{key:"render",value:function(){return this.props.children}}]),Q}(k.Component),R=I,H=C(98924),q={subtree:!0,childList:!0,attributeFilter:["style","class"]};function ee(W,be){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q;k.useEffect(function(){if(!(!(0,H.Z)()||!W)){var he,Ne=Array.isArray(W)?W:[W];return"MutationObserver"in window&&(he=new MutationObserver(be),Ne.forEach(function(De){he.observe(De,Q)})),function(){var De,ue;(De=he)===null||De===void 0||De.takeRecords(),(ue=he)===null||ue===void 0||ue.disconnect()}}},[Q,W])}var ve=function(be){var Q=be.children,he=be.options,Ne=be.onMutate,De=Ne===void 0?function(){}:Ne,ue=(0,A.Z)(De),ge=k.useRef(null),te=k.useRef(null),Le=k.isValidElement(Q)&&(0,S.Yr)(Q),we=(0,S.x1)(te,Le?Q.ref:null),ze=k.useState(null),Ve=(0,Z.Z)(ze,2),xe=Ve[0],lt=Ve[1];return ee(xe,ue,he),(0,fe.Z)(function(){lt((0,_.Z)(te.current)||(0,_.Z)(ge.current))}),Q?k.createElement(R,{ref:ge},Le?k.cloneElement(Q,{ref:we}):Q):null},V=ve,Re=V},2788:function(Ht,Te,C){C.d(Te,{Z:function(){return De}});var Z=C(97685),k=C(67294),fe=C(73935),S=C(98924),_=C(80334),A=C(42550),Ue=k.createContext(null),b=Ue,ae=C(74902),M=C(8410),I=[];function R(ue,ge){var te=k.useState(function(){if(!(0,S.Z)())return null;var Ye=document.createElement("div");return Ye}),Le=(0,Z.Z)(te,1),we=Le[0],ze=k.useRef(!1),Ve=k.useContext(b),xe=k.useState(I),lt=(0,Z.Z)(xe,2),Se=lt[0],bt=lt[1],wt=Ve||(ze.current?void 0:function(Ye){bt(function(Mt){var U=[Ye].concat((0,ae.Z)(Mt));return U})});function pt(){we.parentElement||document.body.appendChild(we),ze.current=!0}function St(){var Ye;(Ye=we.parentElement)===null||Ye===void 0||Ye.removeChild(we),ze.current=!1}return(0,M.Z)(function(){return ue?Ve?Ve(pt):pt():St(),St},[ue]),(0,M.Z)(function(){Se.length&&(Se.forEach(function(Ye){return Ye()}),bt(I))},[Se]),[we,wt]}var H=C(44958),q=C(74204);function ee(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ve="rc-util-locker-".concat(Date.now()),V=0;function Re(ue){var ge=!!ue,te=k.useState(function(){return V+=1,"".concat(ve,"_").concat(V)}),Le=(0,Z.Z)(te,1),we=Le[0];(0,M.Z)(function(){if(ge){var ze=(0,q.o)(document.body).width,Ve=ee();(0,H.hq)(`
3
+ html body {
4
+ overflow-y: hidden;
5
+ `.concat(Ve?"width: calc(100% - ".concat(ze,"px);"):"",`
6
+ }`),we)}else(0,H.jL)(we);return function(){(0,H.jL)(we)}},[ge,we])}var W=!1;function be(ue){return typeof ue=="boolean"&&(W=ue),W}var Q=function(ge){return ge===!1?!1:!(0,S.Z)()||!ge?null:typeof ge=="string"?document.querySelector(ge):typeof ge=="function"?ge():ge},he=k.forwardRef(function(ue,ge){var te=ue.open,Le=ue.autoLock,we=ue.getContainer,ze=ue.debug,Ve=ue.autoDestroy,xe=Ve===void 0?!0:Ve,lt=ue.children,Se=k.useState(te),bt=(0,Z.Z)(Se,2),wt=bt[0],pt=bt[1],St=wt||te;k.useEffect(function(){(xe||te)&&pt(te)},[te,xe]);var Ye=k.useState(function(){return Q(we)}),Mt=(0,Z.Z)(Ye,2),U=Mt[0],F=Mt[1];k.useEffect(function(){var r=Q(we);F(r??null)});var L=R(St&&!U,ze),$=(0,Z.Z)(L,2),J=$[0],We=$[1],Fe=U??J;Re(Le&&te&&(0,S.Z)()&&(Fe===J||Fe===document.body));var vt=null;if(lt&&(0,A.Yr)(lt)&&ge){var ct=lt;vt=ct.ref}var i=(0,A.x1)(vt,ge);if(!St||!(0,S.Z)()||U===void 0)return null;var a=Fe===!1||be(),t=lt;return ge&&(t=k.cloneElement(lt,{ref:i})),k.createElement(b.Provider,{value:We},a?t:(0,fe.createPortal)(t,Fe))}),Ne=he,De=Ne},92266:function(Ht,Te,C){C.r(Te),C.d(Te,{DEFAULT_BACKGROUND_COLOR:function(){return Ne},DEFAULT_FRONT_COLOR:function(){return De},DEFAULT_IMG_SCALE:function(){return we},DEFAULT_LEVEL:function(){return he},DEFAULT_MARGIN_SIZE:function(){return Le},DEFAULT_MINVERSION:function(){return ge},DEFAULT_NEED_MARGIN:function(){return ue},DEFAULT_SIZE:function(){return Q},ERROR_LEVEL_MAP:function(){return be},QRCodeCanvas:function(){return Fe},QRCodeSVG:function(){return ct},SPEC_MARGIN_SIZE:function(){return te},excavateModules:function(){return Ve},generatePath:function(){return ze},getImageSettings:function(){return xe},getMarginSize:function(){return lt},isSupportPath2d:function(){return Se}});function Z(i,a){(a==null||a>i.length)&&(a=i.length);for(var t=0,r=Array(a);t<a;t++)r[t]=i[t];return r}function k(i,a){if(i){if(typeof i=="string")return Z(i,a);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Z(i,a):void 0}}function fe(i,a){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=k(i))||a&&i&&typeof i.length=="number"){t&&(i=t);var r=0,u=function(){};return{s:u,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(D){throw D},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,h=!0,y=!1;return{s:function(){t=t.call(i)},n:function(){var D=t.next();return h=D.done,D},e:function(D){y=!0,s=D},f:function(){try{h||t.return==null||t.return()}finally{if(y)throw s}}}}function S(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function _(i){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_(i)}function A(i,a){if(_(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,a||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function Ue(i){var a=A(i,"string");return _(a)=="symbol"?a:a+""}function b(i,a){for(var t=0;t<a.length;t++){var r=a[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Ue(r.key),r)}}function ae(i,a,t){return a&&b(i.prototype,a),t&&b(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function M(i,a,t){return(a=Ue(a))in i?Object.defineProperty(i,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[a]=t,i}var I,R;function H(i,a,t){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(var r=a-1;r>=0;r--)t.push(i>>>r&1)}function q(i,a){return(i>>>a&1)!=0}function ee(i){if(!i)throw new Error("Assertion error")}var ve=function(){function i(a,t){S(this,i),M(this,"modeBits",void 0),M(this,"numBitsCharCount",void 0),this.modeBits=a,this.numBitsCharCount=t}return ae(i,[{key:"numCharCountBits",value:function(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}]),i}();I=ve,M(ve,"NUMERIC",new I(1,[10,12,14])),M(ve,"ALPHANUMERIC",new I(2,[9,11,13])),M(ve,"BYTE",new I(4,[8,16,16])),M(ve,"KANJI",new I(8,[8,10,12])),M(ve,"ECI",new I(7,[0,0,0]));var V=ae(function i(a,t){S(this,i),M(this,"ordinal",void 0),M(this,"formatBits",void 0),this.ordinal=a,this.formatBits=t});R=V,M(V,"LOW",new R(0,1)),M(V,"MEDIUM",new R(1,0)),M(V,"QUARTILE",new R(2,3)),M(V,"HIGH",new R(3,2));var Re=function(){function i(a,t,r){if(S(this,i),M(this,"mode",void 0),M(this,"numChars",void 0),M(this,"bitData",void 0),this.mode=a,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return ae(i,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r=[],u=fe(t),s;try{for(u.s();!(s=u.n()).done;){var h=s.value;H(h,8,r)}}catch(y){u.e(y)}finally{u.f()}return new i(ve.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!i.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],u=0;u<t.length;){var s=Math.min(t.length-u,3);H(parseInt(t.substring(u,u+s),10),s*3+1,r),u+=s}return new i(ve.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!i.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],u;for(u=0;u+2<=t.length;u+=2){var s=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u))*45;s+=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u+1)),H(s,11,r)}return u<t.length&&H(i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u)),6,r),new i(ve.ALPHANUMERIC,t.length,r)}},{key:"makeSegments",value:function(t){return t==""?[]:i.isNumeric(t)?[i.makeNumeric(t)]:i.isAlphanumeric(t)?[i.makeAlphanumeric(t)]:[i.makeBytes(i.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)H(t,8,r);else if(t<16384)H(2,2,r),H(t,14,r);else if(t<1e6)H(6,3,r),H(t,21,r);else throw new RangeError("ECI assignment value out of range");return new i(ve.ECI,0,r)}},{key:"isNumeric",value:function(t){return i.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return i.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(t,r){var u=0,s=fe(t),h;try{for(s.s();!(h=s.n()).done;){var y=h.value,E=y.mode.numCharCountBits(r);if(y.numChars>=1<<E)return 1/0;u+=4+E+y.bitData.length}}catch(D){s.e(D)}finally{s.f()}return u}},{key:"toUtf8ByteArray",value:function(t){for(var r=encodeURI(t),u=[],s=0;s<r.length;s++)r.charAt(s)!="%"?u.push(r.charCodeAt(s)):(u.push(parseInt(r.substring(s+1,s+3),16)),s+=2);return u}}]),i}();M(Re,"NUMERIC_REGEX",/^[0-9]*$/),M(Re,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),M(Re,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var W=function(){function i(a,t,r,u){S(this,i),M(this,"size",void 0),M(this,"mask",void 0),M(this,"modules",[]),M(this,"isFunction",[]),M(this,"version",void 0),M(this,"errorCorrectionLevel",void 0);var s=u;if(this.version=a,this.errorCorrectionLevel=t,a<i.MIN_VERSION||a>i.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var h=[],y=0;y<this.size;y++)h.push(!1);for(var E=0;E<this.size;E++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();var D=this.addEccAndInterleave(r);if(this.drawCodewords(D),s==-1)for(var z=1e9,X=0;X<8;X++){this.applyMask(X),this.drawFormatBits(X);var N=this.getPenaltyScore();N<z&&(s=X,z=N),this.applyMask(X)}ee(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}return ae(i,[{key:"getModule",value:function(t,r){return 0<=t&&t<this.size&&0<=r&&r<this.size&&this.modules[r][t]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),u=r.length,s=0;s<u;s++)for(var h=0;h<u;h++)s==0&&h==0||s==0&&h==u-1||s==u-1&&h==0||this.drawAlignmentPattern(r[s],r[h]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(t){for(var r=this.errorCorrectionLevel.formatBits<<3|t,u=r,s=0;s<10;s++)u=u<<1^(u>>>9)*1335;var h=(r<<10|u)^21522;ee(h>>>15==0);for(var y=0;y<=5;y++)this.setFunctionModule(8,y,q(h,y));this.setFunctionModule(8,7,q(h,6)),this.setFunctionModule(8,8,q(h,7)),this.setFunctionModule(7,8,q(h,8));for(var E=9;E<15;E++)this.setFunctionModule(14-E,8,q(h,E));for(var D=0;D<8;D++)this.setFunctionModule(this.size-1-D,8,q(h,D));for(var z=8;z<15;z++)this.setFunctionModule(8,this.size-15+z,q(h,z));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var t=this.version,r=0;r<12;r++)t=t<<1^(t>>>11)*7973;var u=this.version<<12|t;ee(u>>>18==0);for(var s=0;s<18;s++){var h=q(u,s),y=this.size-11+s%3,E=Math.floor(s/3);this.setFunctionModule(y,E,h),this.setFunctionModule(E,y,h)}}}},{key:"drawFinderPattern",value:function(t,r){for(var u=-4;u<=4;u++)for(var s=-4;s<=4;s++){var h=Math.max(Math.abs(s),Math.abs(u)),y=t+s,E=r+u;0<=y&&y<this.size&&0<=E&&E<this.size&&this.setFunctionModule(y,E,h!=2&&h!=4)}}},{key:"drawAlignmentPattern",value:function(t,r){for(var u=-2;u<=2;u++)for(var s=-2;s<=2;s++)this.setFunctionModule(t+s,r+u,Math.max(Math.abs(s),Math.abs(u))!=1)}},{key:"setFunctionModule",value:function(t,r,u){this.modules[r][t]=u,this.isFunction[r][t]=!0}},{key:"addEccAndInterleave",value:function(t){var r=this.version,u=this.errorCorrectionLevel;if(t.length!=i.getNumDataCodewords(r,u))throw new RangeError("Invalid argument");for(var s=i.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][r],h=i.ECC_CODEWORDS_PER_BLOCK[u.ordinal][r],y=Math.floor(i.getNumRawDataModules(r)/8),E=s-y%s,D=Math.floor(y/s),z=[],X=i.reedSolomonComputeDivisor(h),N=0,re=0;N<s;N++){var j=t.slice(re,re+D-h+(N<E?0:1));re+=j.length;var se=i.reedSolomonComputeRemainder(j,X);N<E&&j.push(0),z.push(j.concat(se))}for(var Y=[],me=function(G){z.forEach(function(ne,Xe){(G!=D-h||Xe>=E)&&Y.push(ne[G])})},ye=0;ye<z[0].length;ye++)me(ye);return ee(Y.length==y),Y}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(i.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(var s=0;s<this.size;s++)for(var h=0;h<2;h++){var y=u-h,E=(u+1&2)==0,D=E?this.size-1-s:s;!this.isFunction[D][y]&&r<t.length*8&&(this.modules[D][y]=q(t[r>>>3],7-(r&7)),r++)}}ee(r==t.length*8)}},{key:"applyMask",value:function(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var u=0;u<this.size;u++){var s=void 0;switch(t){case 0:s=(u+r)%2==0;break;case 1:s=r%2==0;break;case 2:s=u%3==0;break;case 3:s=(u+r)%3==0;break;case 4:s=(Math.floor(u/3)+Math.floor(r/2))%2==0;break;case 5:s=u*r%2+u*r%3==0;break;case 6:s=(u*r%2+u*r%3)%2==0;break;case 7:s=((u+r)%2+u*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][u]&&s&&(this.modules[r][u]=!this.modules[r][u])}}},{key:"getPenaltyScore",value:function(){for(var t=0,r=0;r<this.size;r++){for(var u=!1,s=0,h=[0,0,0,0,0,0,0],y=0;y<this.size;y++)this.modules[r][y]==u?(s++,s==5?t+=i.PENALTY_N1:s>5&&t++):(this.finderPenaltyAddHistory(s,h),u||(t+=this.finderPenaltyCountPatterns(h)*i.PENALTY_N3),u=this.modules[r][y],s=1);t+=this.finderPenaltyTerminateAndCount(u,s,h)*i.PENALTY_N3}for(var E=0;E<this.size;E++){for(var D=!1,z=0,X=[0,0,0,0,0,0,0],N=0;N<this.size;N++)this.modules[N][E]==D?(z++,z==5?t+=i.PENALTY_N1:z>5&&t++):(this.finderPenaltyAddHistory(z,X),D||(t+=this.finderPenaltyCountPatterns(X)*i.PENALTY_N3),D=this.modules[N][E],z=1);t+=this.finderPenaltyTerminateAndCount(D,z,X)*i.PENALTY_N3}for(var re=0;re<this.size-1;re++)for(var j=0;j<this.size-1;j++){var se=this.modules[re][j];se==this.modules[re][j+1]&&se==this.modules[re+1][j]&&se==this.modules[re+1][j+1]&&(t+=i.PENALTY_N2)}var Y=0,me=fe(this.modules),ye;try{for(me.s();!(ye=me.n()).done;){var Ze=ye.value;Y=Ze.reduce(function(Xe,qe){return Xe+(qe?1:0)},Y)}}catch(Xe){me.e(Xe)}finally{me.f()}var G=this.size*this.size,ne=Math.ceil(Math.abs(Y*20-G*10)/G)-1;return ee(0<=ne&&ne<=9),t+=ne*i.PENALTY_N4,ee(0<=t&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var t=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,u=[6],s=this.size-7;u.length<t;s-=r)u.splice(1,0,s);return u}},{key:"finderPenaltyCountPatterns",value:function(t){var r=t[1];ee(r<=this.size*3);var u=r>0&&t[2]==r&&t[3]==r*3&&t[4]==r&&t[5]==r;return(u&&t[0]>=r*4&&t[6]>=r?1:0)+(u&&t[6]>=r*4&&t[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(t,r,u){var s=r;return t&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}},{key:"finderPenaltyAddHistory",value:function(t,r){var u=t;r[0]==0&&(u+=this.size),r.pop(),r.unshift(u)}}],[{key:"encodeText",value:function(t,r){var u=Re.makeSegments(t);return i.encodeSegments(u,r)}},{key:"encodeBinary",value:function(t,r){var u=Re.makeBytes(t);return i.encodeSegments([u],r)}},{key:"encodeSegments",value:function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(i.MIN_VERSION<=u&&u<=s&&s<=i.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");var E,D;for(E=u;;E++){var z=i.getNumDataCodewords(E,r)*8,X=Re.getTotalBits(t,E);if(X<=z){D=X;break}if(E>=s)throw new RangeError("Data too long")}for(var N=r,re=0,j=[V.MEDIUM,V.QUARTILE,V.HIGH];re<j.length;re++){var se=j[re];y&&D<=i.getNumDataCodewords(E,se)*8&&(N=se)}var Y=[],me=fe(t),ye;try{for(me.s();!(ye=me.n()).done;){var Ze=ye.value;H(Ze.mode.modeBits,4,Y),H(Ze.numChars,Ze.mode.numCharCountBits(E),Y);var G=fe(Ze.getData()),ne;try{for(G.s();!(ne=G.n()).done;){var Xe=ne.value;Y.push(Xe)}}catch(it){G.e(it)}finally{G.f()}}}catch(it){me.e(it)}finally{me.f()}ee(Y.length==D);var qe=i.getNumDataCodewords(E,N)*8;ee(Y.length<=qe),H(0,Math.min(4,qe-Y.length),Y),H(0,(8-Y.length%8)%8,Y),ee(Y.length%8==0);for(var Ce=236;Y.length<qe;Ce^=253)H(Ce,8,Y);for(var _e=[];_e.length*8<Y.length;)_e.push(0);return Y.forEach(function(it,dt){return _e[dt>>>3]|=it<<7-(dt&7)}),new i(E,N,_e,h)}},{key:"getNumRawDataModules",value:function(t){if(t<i.MIN_VERSION||t>i.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*t+128)*t+64;if(t>=2){var u=Math.floor(t/7)+2;r-=(25*u-10)*u-55,t>=7&&(r-=36)}return ee(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(t,r){return Math.floor(i.getNumRawDataModules(t)/8)-i.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*i.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var r=[],u=0;u<t-1;u++)r.push(0);r.push(1);for(var s=1,h=0;h<t;h++){for(var y=0;y<r.length;y++)r[y]=i.reedSolomonMultiply(r[y],s),y+1<r.length&&(r[y]^=r[y+1]);s=i.reedSolomonMultiply(s,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(t,r){var u=r.map(function(){return 0}),s=fe(t),h;try{var y=function(){var D=h.value,z=D^u.shift();u.push(0),r.forEach(function(X,N){return u[N]^=i.reedSolomonMultiply(X,z)})};for(s.s();!(h=s.n()).done;)y()}catch(E){s.e(E)}finally{s.f()}return u}},{key:"reedSolomonMultiply",value:function(t,r){if(t>>>8||r>>>8)throw new RangeError("Byte out of range");for(var u=0,s=7;s>=0;s--)u=u<<1^(u>>>7)*285,u^=(r>>>s&1)*t;return ee(u>>>8==0),u}}]),i}();M(W,"MIN_VERSION",1),M(W,"MAX_VERSION",40),M(W,"PENALTY_N1",3),M(W,"PENALTY_N2",3),M(W,"PENALTY_N3",40),M(W,"PENALTY_N4",10),M(W,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),M(W,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var be={L:V.LOW,M:V.MEDIUM,Q:V.QUARTILE,H:V.HIGH},Q=128,he="L",Ne="#FFFFFF",De="#000000",ue=!1,ge=1,te=4,Le=0,we=.1;function ze(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=[];return i.forEach(function(r,u){var s=null;r.forEach(function(h,y){if(!h&&s!==null){t.push("M".concat(s+a," ").concat(u+a,"h").concat(y-s,"v1H").concat(s+a,"z")),s=null;return}if(y===r.length-1){if(!h)return;s===null?t.push("M".concat(y+a,",").concat(u+a," h1v1H").concat(y+a,"z")):t.push("M".concat(s+a,",").concat(u+a," h").concat(y+1-s,"v1H").concat(s+a,"z"));return}h&&s===null&&(s=y)})}),t.join("")}function Ve(i,a){return i.slice().map(function(t,r){return r<a.y||r>=a.y+a.h?t:t.map(function(u,s){return s<a.x||s>=a.x+a.w?u:!1})})}function xe(i,a,t,r){if(r==null)return null;var u=i.length+t*2,s=Math.floor(a*we),h=u/a,y=(r.width||s)*h,E=(r.height||s)*h,D=r.x==null?i.length/2-y/2:r.x*h,z=r.y==null?i.length/2-E/2:r.y*h,X=r.opacity==null?1:r.opacity,N=null;if(r.excavate){var re=Math.floor(D),j=Math.floor(z),se=Math.ceil(y+D-re),Y=Math.ceil(E+z-j);N={x:re,y:j,w:se,h:Y}}var me=r.crossOrigin;return{x:D,y:z,h:E,w:y,excavation:N,opacity:X,crossOrigin:me}}function lt(i,a){return a!=null?Math.floor(a):i?te:Le}var Se=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function bt(){return bt=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bt.apply(null,arguments)}function wt(i,a){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),t.push.apply(t,r)}return t}function pt(i){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?wt(Object(t),!0).forEach(function(r){M(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function St(i){if(Array.isArray(i))return i}function Ye(i,a){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,u,s,h,y=[],E=!0,D=!1;try{if(s=(t=t.call(i)).next,a===0){if(Object(t)!==t)return;E=!1}else for(;!(E=(r=s.call(t)).done)&&(y.push(r.value),y.length!==a);E=!0);}catch(z){D=!0,u=z}finally{try{if(!E&&t.return!=null&&(h=t.return(),Object(h)!==h))return}finally{if(D)throw u}}return y}}function Mt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(i,a){return St(i)||Ye(i,a)||k(i,a)||Mt()}function F(i,a){if(i==null)return{};var t={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(a.indexOf(r)!==-1)continue;t[r]=i[r]}return t}function L(i,a){if(i==null)return{};var t,r,u=F(i,a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(r=0;r<s.length;r++)t=s[r],a.indexOf(t)===-1&&{}.propertyIsEnumerable.call(i,t)&&(u[t]=i[t])}return u}var $=C(67294);function J(i){var a=i.value,t=i.level,r=i.minVersion,u=i.includeMargin,s=i.marginSize,h=i.imageSettings,y=i.size,E=(0,$.useMemo)(function(){var j=Re.makeSegments(a);return W.encodeSegments(j,be[t],r)},[a,t,r]),D=(0,$.useMemo)(function(){var j=E.getModules(),se=lt(u,s),Y=j.length+se*2,me=xe(j,y,se,h);return{cells:j,margin:se,numCells:Y,calculatedImageSettings:me}},[E,y,h,u,s]),z=D.cells,X=D.margin,N=D.numCells,re=D.calculatedImageSettings;return{qrcode:E,margin:X,cells:z,numCells:N,calculatedImageSettings:re}}var We=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Fe=$.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?Q:u,h=a.level,y=h===void 0?he:h,E=a.bgColor,D=E===void 0?Ne:E,z=a.fgColor,X=z===void 0?De:z,N=a.includeMargin,re=N===void 0?ue:N,j=a.minVersion,se=j===void 0?ge:j,Y=a.marginSize,me=a.style,ye=a.imageSettings,Ze=L(a,We),G=ye==null?void 0:ye.src,ne=(0,$.useRef)(null),Xe=(0,$.useRef)(null),qe=(0,$.useCallback)(function(tt){ne.current=tt,typeof t=="function"?t(tt):t&&(t.current=tt)},[t]),Ce=(0,$.useState)(!1),_e=U(Ce,2),it=_e[1],dt=J({value:r,level:y,minVersion:se,includeMargin:re,marginSize:Y,imageSettings:ye,size:s}),et=dt.margin,Dt=dt.cells,Nt=dt.numCells,$e=dt.calculatedImageSettings;(0,$.useEffect)(function(){if(ne.current!=null){var tt=ne.current,de=tt.getContext("2d");if(!de)return;var kt=Dt,Ut=Xe.current,or=$e!=null&&Ut!==null&&Ut.complete&&Ut.naturalHeight!==0&&Ut.naturalWidth!==0;or&&$e.excavation!=null&&(kt=Ve(Dt,$e.excavation));var c=window.devicePixelRatio||1;tt.height=tt.width=s*c;var m=s/Nt*c;de.scale(m,m),de.fillStyle=D,de.fillRect(0,0,Nt,Nt),de.fillStyle=X,Se?de.fill(new Path2D(ze(kt,et))):Dt.forEach(function(f,w){f.forEach(function(x,B){x&&de.fillRect(B+et,w+et,1,1)})}),$e&&(de.globalAlpha=$e.opacity),or&&de.drawImage(Ut,$e.x+et,$e.y+et,$e.w,$e.h)}}),(0,$.useEffect)(function(){it(!1)},[G]);var Pt=pt({height:s,width:s},me),Ot=null;return G!=null&&(Ot=$.createElement("img",{src:G,key:G,style:{display:"none"},onLoad:function(){it(!0)},ref:Xe,crossOrigin:$e==null?void 0:$e.crossOrigin})),$.createElement($.Fragment,null,$.createElement("canvas",bt({style:Pt,height:s,width:s,ref:qe,role:"img"},Ze)),Ot)});Fe.displayName="QRCodeCanvas";var vt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],ct=$.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?Q:u,h=a.level,y=h===void 0?he:h,E=a.bgColor,D=E===void 0?Ne:E,z=a.fgColor,X=z===void 0?De:z,N=a.includeMargin,re=N===void 0?ue:N,j=a.minVersion,se=j===void 0?ge:j,Y=a.title,me=a.marginSize,ye=a.imageSettings,Ze=L(a,vt),G=J({value:r,level:y,minVersion:se,includeMargin:re,marginSize:me,imageSettings:ye,size:s}),ne=G.margin,Xe=G.cells,qe=G.numCells,Ce=G.calculatedImageSettings,_e=Xe,it=null;ye!=null&&Ce!=null&&(Ce.excavation!=null&&(_e=Ve(Xe,Ce.excavation)),it=$.createElement("image",{href:ye.src,height:Ce.h,width:Ce.w,x:Ce.x+ne,y:Ce.y+ne,preserveAspectRatio:"none",opacity:Ce.opacity,crossOrigin:Ce.crossOrigin}));var dt=ze(_e,ne);return $.createElement("svg",bt({height:s,width:s,viewBox:"0 0 ".concat(qe," ").concat(qe),ref:t,role:"img"},Ze),!!Y&&$.createElement("title",null,Y),$.createElement("path",{fill:D,d:"M0,0 h".concat(qe,"v").concat(qe,"H0z"),shapeRendering:"crispEdges"}),$.createElement("path",{fill:X,d:dt,shapeRendering:"crispEdges"}),it)});ct.displayName="QRCodeSVG"},20991:function(Ht,Te,C){C.r(Te),C.d(Te,{default:function(){return Mt}});var Z=C(1413),k=C(87462),fe=C(71002),S=C(97685),_=C(91),A=C(67294),Ue=C(2788),b=C(29371),ae=C(93967),M=C.n(ae),I=C(8410),R=C(21770);function H(U){return U!==null&&(0,fe.Z)(U)==="object"}function q(U,F,L){if(U===!1||F===!1&&(!H(U)||!U.closeIcon))return null;var $=typeof F!="boolean"?F:void 0;if(H(U)){var J;return(0,Z.Z)((0,Z.Z)({},U),{},{closeIcon:(J=U.closeIcon)!==null&&J!==void 0?J:$})}return L||U||F?{closeIcon:$}:"empty"}function ee(U,F,L,$){return A.useMemo(function(){var J=q(U,F,!1),We=q(L,$,!0);return J!=="empty"?J:We},[L,$,U,F])}var ve=C(66680);function V(U){var F=window.innerWidth||document.documentElement.clientWidth,L=window.innerHeight||document.documentElement.clientHeight,$=U.getBoundingClientRect(),J=$.top,We=$.right,Fe=$.bottom,vt=$.left;return J>=0&&vt>=0&&We<=F&&Fe<=L}function Re(U,F,L){var $;return($=L??F)!==null&&$!==void 0?$:U===null?"center":"bottom"}function W(U){return typeof U=="number"&&!Number.isNaN(U)}function be(U,F,L,$){var J=(0,A.useState)(void 0),We=(0,S.Z)(J,2),Fe=We[0],vt=We[1];(0,I.Z)(function(){var h=typeof U=="function"?U():U;vt(h||null)});var ct=(0,A.useState)(null),i=(0,S.Z)(ct,2),a=i[0],t=i[1],r=(0,ve.Z)(function(){if(Fe){!V(Fe)&&F&&Fe.scrollIntoView($);var h=Fe.getBoundingClientRect(),y=h.left,E=h.top,D=h.width,z=h.height,X={left:y,top:E,width:D,height:z,radius:0};t(function(N){return JSON.stringify(N)!==JSON.stringify(X)?X:N})}else t(null)}),u=function(y){var E;return(E=Array.isArray(L==null?void 0:L.offset)?L==null?void 0:L.offset[y]:L==null?void 0:L.offset)!==null&&E!==void 0?E:6};(0,I.Z)(function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},[Fe,F,r]);var s=(0,A.useMemo)(function(){if(!a)return a;var h=u(0),y=u(1),E=W(L==null?void 0:L.radius)?L==null?void 0:L.radius:2;return{left:a.left-h,top:a.top-y,width:a.width+h*2,height:a.height+y*2,radius:E}},[a,L]);return[s,Fe]}var Q=C(7028),he={fill:"transparent",pointerEvents:"auto"},Ne=function(F){var L=F.prefixCls,$=F.rootClassName,J=F.pos,We=F.showMask,Fe=F.style,vt=Fe===void 0?{}:Fe,ct=F.fill,i=ct===void 0?"rgba(0,0,0,0.5)":ct,a=F.open,t=F.animated,r=F.zIndex,u=F.disabledInteraction,s=(0,Q.Z)(),h="".concat(L,"-mask-").concat(s),y=(0,fe.Z)(t)==="object"?t==null?void 0:t.placeholder:t,E=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),D=E?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return A.createElement(Ue.Z,{open:a,autoLock:!0},A.createElement("div",{className:M()("".concat(L,"-mask"),$),style:(0,Z.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:r,pointerEvents:J&&!u?"none":"auto"},vt)},We?A.createElement("svg",{style:{width:"100%",height:"100%"}},A.createElement("defs",null,A.createElement("mask",{id:h},A.createElement("rect",(0,k.Z)({x:"0",y:"0"},D,{fill:"white"})),J&&A.createElement("rect",{x:J.left,y:J.top,rx:J.radius,width:J.width,height:J.height,fill:"black",className:y?"".concat(L,"-placeholder-animated"):""}))),A.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:i,mask:"url(#".concat(h,")")}),J&&A.createElement(A.Fragment,null,A.createElement("rect",(0,k.Z)({},he,{x:"0",y:"0",width:"100%",height:J.top})),A.createElement("rect",(0,k.Z)({},he,{x:"0",y:"0",width:J.left,height:"100%"})),A.createElement("rect",(0,k.Z)({},he,{x:"0",y:J.top+J.height,width:"100%",height:"calc(100vh - ".concat(J.top+J.height,"px)")})),A.createElement("rect",(0,k.Z)({},he,{x:J.left+J.width,y:"0",width:"calc(100vw - ".concat(J.left+J.width,"px)"),height:"100%"})))):null))},De=Ne,ue={adjustX:1,adjustY:1},ge=[0,0],te={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,F={};return Object.keys(te).forEach(function(L){F[L]=(0,Z.Z)((0,Z.Z)({},te[L]),{},{autoArrow:U,targetOffset:ge})}),F}var we=Le(),ze=C(74902),Ve=C(64217);function xe(U){var F,L=U.prefixCls,$=U.current,J=U.total,We=U.title,Fe=U.description,vt=U.onClose,ct=U.onPrev,i=U.onNext,a=U.onFinish,t=U.className,r=U.closable,u=(0,Ve.Z)(r||{},!0),s=(F=r==null?void 0:r.closeIcon)!==null&&F!==void 0?F:A.createElement("span",{className:"".concat(L,"-close-x")},"\xD7"),h=!!r;return A.createElement("div",{className:M()("".concat(L,"-content"),t)},A.createElement("div",{className:"".concat(L,"-inner")},h&&A.createElement("button",(0,k.Z)({type:"button",onClick:vt,"aria-label":"Close"},u,{className:"".concat(L,"-close")}),s),A.createElement("div",{className:"".concat(L,"-header")},A.createElement("div",{className:"".concat(L,"-title")},We)),A.createElement("div",{className:"".concat(L,"-description")},Fe),A.createElement("div",{className:"".concat(L,"-footer")},A.createElement("div",{className:"".concat(L,"-sliders")},J>1?(0,ze.Z)(Array.from({length:J}).keys()).map(function(y,E){return A.createElement("span",{key:y,className:E===$?"active":""})}):null),A.createElement("div",{className:"".concat(L,"-buttons")},$!==0?A.createElement("button",{className:"".concat(L,"-prev-btn"),onClick:ct},"Prev"):null,$===J-1?A.createElement("button",{className:"".concat(L,"-finish-btn"),onClick:a},"Finish"):A.createElement("button",{className:"".concat(L,"-next-btn"),onClick:i},"Next")))))}var lt=function(F){var L=F.current,$=F.renderPanel;return A.createElement(A.Fragment,null,typeof $=="function"?$(F,L):A.createElement(xe,F))},Se=lt,bt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],wt={left:"50%",top:"50%",width:1,height:1},pt={block:"center",inline:"center"},St=function(F){var L=F.prefixCls,$=L===void 0?"rc-tour":L,J=F.steps,We=J===void 0?[]:J,Fe=F.defaultCurrent,vt=F.current,ct=F.onChange,i=F.onClose,a=F.onFinish,t=F.open,r=F.mask,u=r===void 0?!0:r,s=F.arrow,h=s===void 0?!0:s,y=F.rootClassName,E=F.placement,D=F.renderPanel,z=F.gap,X=F.animated,N=F.scrollIntoViewOptions,re=N===void 0?pt:N,j=F.zIndex,se=j===void 0?1001:j,Y=F.closeIcon,me=F.closable,ye=F.builtinPlacements,Ze=F.disabledInteraction,G=(0,_.Z)(F,bt),ne=A.useRef(),Xe=(0,R.Z)(0,{value:vt,defaultValue:Fe}),qe=(0,S.Z)(Xe,2),Ce=qe[0],_e=qe[1],it=(0,R.Z)(void 0,{value:t,postState:function(pe){return Ce<0||Ce>=We.length?!1:pe??!0}}),dt=(0,S.Z)(it,2),et=dt[0],Dt=dt[1],Nt=A.useState(et),$e=(0,S.Z)(Nt,2),Pt=$e[0],Ot=$e[1],tt=A.useRef(et);(0,I.Z)(function(){et&&(tt.current||_e(0),Ot(!0)),tt.current=et},[et]);var de=We[Ce]||{},kt=de.target,Ut=de.placement,or=de.style,c=de.arrow,m=de.className,f=de.mask,w=de.scrollIntoViewOptions,x=w===void 0?pt:w,B=de.closeIcon,K=de.closable,Ee=ee(K,B,me,Y),o=et&&(f??u),e=x??re,n=be(kt,t,z,e),l=(0,S.Z)(n,2),v=l[0],d=l[1],g=Re(d,E,Ut),p=d?typeof c>"u"?h:c:!1,oe=(0,fe.Z)(p)==="object"?p.pointAtCenter:!1;(0,I.Z)(function(){var O;(O=ne.current)===null||O===void 0||O.forceAlign()},[oe,Ce]);var ke=function(pe){_e(pe),ct==null||ct(pe)},le=(0,A.useMemo)(function(){return ye?typeof ye=="function"?ye({arrowPointAtCenter:oe}):ye:Le(oe)},[ye,oe]);if(d===void 0||!Pt)return null;var ce=function(){Dt(!1),i==null||i(Ce)},Pe=function(){return A.createElement(Se,(0,k.Z)({arrow:p,key:"content",prefixCls:$,total:We.length,renderPanel:D,onPrev:function(){ke(Ce-1)},onNext:function(){ke(Ce+1)},onClose:ce,current:Ce,onFinish:function(){ce(),a==null||a()}},We[Ce],{closable:Ee}))},Ae=typeof o=="boolean"?o:!!o,P=typeof o=="boolean"?void 0:o,Oe=function(pe){return pe||d||document.body};return A.createElement(A.Fragment,null,A.createElement(De,{zIndex:se,prefixCls:$,pos:v,showMask:Ae,style:P==null?void 0:P.style,fill:P==null?void 0:P.color,open:et,animated:X,rootClassName:y,disabledInteraction:Ze}),A.createElement(b.Z,(0,k.Z)({},G,{builtinPlacements:le,ref:ne,popupStyle:or,popupPlacement:g,popupVisible:et,popupClassName:M()(y,m),prefixCls:$,popup:Pe,forceRender:!1,destroyPopupOnHide:!0,zIndex:se,getTriggerDOMNode:Oe,arrow:!!p}),A.createElement(Ue.Z,{open:et,autoLock:!0},A.createElement("div",{className:M()(y,"".concat($,"-target-placeholder")),style:(0,Z.Z)((0,Z.Z)({},v||wt),{},{position:"fixed",pointerEvents:"none"})}))))},Ye=St,Mt=Ye},29371:function(Ht,Te,C){C.d(Te,{Z:function(){return or}});var Z=C(1413),k=C(97685),fe=C(91),S=C(2788),_=C(93967),A=C.n(_),Ue=C(48555),b=C(67294),ae=C.t(b,2),M=C(73935);function I(c){return c instanceof HTMLElement||c instanceof SVGElement}function R(c){return c&&_typeof(c)==="object"&&I(c.nativeElement)?c.nativeElement:I(c)?c:null}function H(c){var m=R(c);if(m)return m;if(c instanceof React.Component){var f;return(f=ReactDOM.findDOMNode)===null||f===void 0?void 0:f.call(ReactDOM,c)}return null}function q(c){var m;return c==null||(m=c.getRootNode)===null||m===void 0?void 0:m.call(c)}function ee(c){return q(c)instanceof ShadowRoot}function ve(c){return ee(c)?q(c):null}function V(c){var m=b.useRef();m.current=c;var f=b.useCallback(function(){for(var w,x=arguments.length,B=new Array(x),K=0;K<x;K++)B[K]=arguments[K];return(w=m.current)===null||w===void 0?void 0:w.call.apply(w,[m].concat(B))},[]);return f}function Re(){var c=(0,Z.Z)({},ae);return c.useId}var W=0;function be(){}var Q=Re(),he=Q?function(m){var f=Q();return m||f}:function(m){var f=b.useState("ssr-id"),w=(0,k.Z)(f,2),x=w[0],B=w[1];return b.useEffect(function(){var K=W;W+=1,B("rc_unique_".concat(K))},[]),m||x};function Ne(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var De=Ne()?b.useLayoutEffect:b.useEffect,ue=function(m,f){var w=b.useRef(!0);De(function(){return m(w.current)},f),De(function(){return w.current=!1,function(){w.current=!0}},[])},ge=function(m,f){ue(function(w){if(!w)return m()},f)},te=ue,Le=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var c=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c==null?void 0:c.substr(0,4))},we=C(87462),ze=C(62874),Ve=C(71002),xe=C(59864);function lt(c,m,f){var w=b.useRef({});return(!("value"in w.current)||f(w.current.condition,m))&&(w.current.value=c(),w.current.condition=m),w.current.value}var Se=Symbol.for("react.element"),bt=Symbol.for("react.transitional.element"),wt=Symbol.for("react.fragment");function pt(c){return c&&(0,Ve.Z)(c)==="object"&&(c.$$typeof===Se||c.$$typeof===bt)&&c.type===wt}var St=Number(b.version.split(".")[0]),Ye=function(m,f){typeof m=="function"?m(f):(0,Ve.Z)(m)==="object"&&m&&"current"in m&&(m.current=f)},Mt=function(){for(var m=arguments.length,f=new Array(m),w=0;w<m;w++)f[w]=arguments[w];var x=f.filter(Boolean);return x.length<=1?x[0]:function(B){f.forEach(function(K){Ye(K,B)})}},U=function(){for(var m=arguments.length,f=new Array(m),w=0;w<m;w++)f[w]=arguments[w];return lt(function(){return Mt.apply(void 0,f)},f,function(x,B){return x.length!==B.length||x.every(function(K,Ee){return K!==B[Ee]})})},F=function(m){var f,w;if(!m)return!1;if(L(m)&&St>=19)return!0;var x=(0,xe.isMemo)(m)?m.type.type:m.type;return!(typeof x=="function"&&!((f=x.prototype)!==null&&f!==void 0&&f.render)&&x.$$typeof!==xe.ForwardRef||typeof m=="function"&&!((w=m.prototype)!==null&&w!==void 0&&w.render)&&m.$$typeof!==xe.ForwardRef)};function L(c){return(0,b.isValidElement)(c)&&!pt(c)}var $=function(m){return L(m)&&F(m)},J=function(m){if(m&&L(m)){var f=m;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null};function We(c){var m=c.prefixCls,f=c.align,w=c.arrow,x=c.arrowPos,B=w||{},K=B.className,Ee=B.content,o=x.x,e=o===void 0?0:o,n=x.y,l=n===void 0?0:n,v=b.useRef();if(!f||!f.points)return null;var d={position:"absolute"};if(f.autoArrow!==!1){var g=f.points[0],p=f.points[1],oe=g[0],ke=g[1],le=p[0],ce=p[1];oe===le||!["t","b"].includes(oe)?d.top=l:oe==="t"?d.top=0:d.bottom=0,ke===ce||!["l","r"].includes(ke)?d.left=e:ke==="l"?d.left=0:d.right=0}return b.createElement("div",{ref:v,className:A()("".concat(m,"-arrow"),K),style:d},Ee)}function Fe(c){var m=c.prefixCls,f=c.open,w=c.zIndex,x=c.mask,B=c.motion;return x?b.createElement(ze.ZP,(0,we.Z)({},B,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(K){var Ee=K.className;return b.createElement("div",{style:{zIndex:w},className:A()("".concat(m,"-mask"),Ee)})}):null}var vt=b.memo(function(c){var m=c.children;return m},function(c,m){return m.cache}),ct=vt,i=b.forwardRef(function(c,m){var f=c.popup,w=c.className,x=c.prefixCls,B=c.style,K=c.target,Ee=c.onVisibleChanged,o=c.open,e=c.keepDom,n=c.fresh,l=c.onClick,v=c.mask,d=c.arrow,g=c.arrowPos,p=c.align,oe=c.motion,ke=c.maskMotion,le=c.forceRender,ce=c.getPopupContainer,Pe=c.autoDestroy,Ae=c.portal,P=c.zIndex,Oe=c.onMouseEnter,O=c.onMouseLeave,pe=c.onPointerEnter,Me=c.onPointerDownCapture,rt=c.ready,je=c.offsetX,Ge=c.offsetY,nt=c.offsetR,at=c.offsetB,ft=c.onAlign,mt=c.onPrepare,ot=c.stretch,gt=c.targetWidth,Ie=c.targetHeight,Ct=typeof f=="function"?f():f,ut=o||e,yt=(ce==null?void 0:ce.length)>0,Be=b.useState(!ce||!yt),Ft=(0,k.Z)(Be,2),hr=Ft[0],Or=Ft[1];if(te(function(){!hr&&yt&&K&&Or(!0)},[hr,yt,K]),!hr)return null;var Jt="auto",Zt={left:"-1000vw",top:"-1000vh",right:Jt,bottom:Jt};if(rt||!o){var ur,gr=p.points,Tt=p.dynamicInset||((ur=p._experimental)===null||ur===void 0?void 0:ur.dynamicInset),Yt=Tt&&gr[0][1]==="r",Wt=Tt&&gr[0][0]==="b";Yt?(Zt.right=nt,Zt.left=Jt):(Zt.left=je,Zt.right=Jt),Wt?(Zt.bottom=at,Zt.top=Jt):(Zt.top=Ge,Zt.bottom=Jt)}var xt={};return ot&&(ot.includes("height")&&Ie?xt.height=Ie:ot.includes("minHeight")&&Ie&&(xt.minHeight=Ie),ot.includes("width")&&gt?xt.width=gt:ot.includes("minWidth")&&gt&&(xt.minWidth=gt)),o||(xt.pointerEvents="none"),b.createElement(Ae,{open:le||ut,getContainer:ce&&function(){return ce(K)},autoDestroy:Pe},b.createElement(Fe,{prefixCls:x,open:o,zIndex:P,mask:v,motion:ke}),b.createElement(Ue.Z,{onResize:ft,disabled:!o},function(Fr){return b.createElement(ze.ZP,(0,we.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:le,leavedClassName:"".concat(x,"-hidden")},oe,{onAppearPrepare:mt,onEnterPrepare:mt,visible:o,onVisibleChanged:function(zt){var Xt;oe==null||(Xt=oe.onVisibleChanged)===null||Xt===void 0||Xt.call(oe,zt),Ee(zt)}}),function(sr,zt){var Xt=sr.className,yr=sr.style,Rt=A()(x,Xt,w);return b.createElement("div",{ref:Mt(Fr,m,zt),className:Rt,style:(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},Zt),xt),yr),{},{boxSizing:"border-box",zIndex:P},B),onMouseEnter:Oe,onMouseLeave:O,onPointerEnter:pe,onClick:l,onPointerDownCapture:Me},d&&b.createElement(We,{prefixCls:x,arrow:d,arrowPos:g,align:p}),b.createElement(ct,{cache:!o&&!n},Ct))})}))}),a=i,t=b.forwardRef(function(c,m){var f=c.children,w=c.getTriggerDOMNode,x=F(f),B=b.useCallback(function(Ee){Ye(m,w?w(Ee):Ee)},[w]),K=U(B,J(f));return x?b.cloneElement(f,{ref:K}):f}),r=t,u=b.createContext(null),s=u;function h(c){return c?Array.isArray(c)?c:[c]:[]}function y(c,m,f,w){return b.useMemo(function(){var x=h(f??m),B=h(w??m),K=new Set(x),Ee=new Set(B);return c&&(K.has("hover")&&(K.delete("hover"),K.add("click")),Ee.has("hover")&&(Ee.delete("hover"),Ee.add("click"))),[K,Ee]},[c,m,f,w])}var E=function(c){if(!c)return!1;if(c instanceof Element){if(c.offsetParent)return!0;if(c.getBBox){var m=c.getBBox(),f=m.width,w=m.height;if(f||w)return!0}if(c.getBoundingClientRect){var x=c.getBoundingClientRect(),B=x.width,K=x.height;if(B||K)return!0}}return!1};function D(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?c[0]===m[0]:c[0]===m[0]&&c[1]===m[1]}function z(c,m,f,w){for(var x=f.points,B=Object.keys(c),K=0;K<B.length;K+=1){var Ee,o=B[K];if(D((Ee=c[o])===null||Ee===void 0?void 0:Ee.points,x,w))return"".concat(m,"-placement-").concat(o)}return""}function X(c,m,f,w){return m||(f?{motionName:"".concat(c,"-").concat(f)}:w?{motionName:w}:null)}function N(c){return c.ownerDocument.defaultView}function re(c){for(var m=[],f=c==null?void 0:c.parentElement,w=["hidden","scroll","clip","auto"];f;){var x=N(f).getComputedStyle(f),B=x.overflowX,K=x.overflowY,Ee=x.overflow;[B,K,Ee].some(function(o){return w.includes(o)})&&m.push(f),f=f.parentElement}return m}function j(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(c)?m:c}function se(c){return j(parseFloat(c),0)}function Y(c,m){var f=(0,Z.Z)({},c);return(m||[]).forEach(function(w){if(!(w instanceof HTMLBodyElement||w instanceof HTMLHtmlElement)){var x=N(w).getComputedStyle(w),B=x.overflow,K=x.overflowClipMargin,Ee=x.borderTopWidth,o=x.borderBottomWidth,e=x.borderLeftWidth,n=x.borderRightWidth,l=w.getBoundingClientRect(),v=w.offsetHeight,d=w.clientHeight,g=w.offsetWidth,p=w.clientWidth,oe=se(Ee),ke=se(o),le=se(e),ce=se(n),Pe=j(Math.round(l.width/g*1e3)/1e3),Ae=j(Math.round(l.height/v*1e3)/1e3),P=(g-p-le-ce)*Pe,Oe=(v-d-oe-ke)*Ae,O=oe*Ae,pe=ke*Ae,Me=le*Pe,rt=ce*Pe,je=0,Ge=0;if(B==="clip"){var nt=se(K);je=nt*Pe,Ge=nt*Ae}var at=l.x+Me-je,ft=l.y+O-Ge,mt=at+l.width+2*je-Me-rt-P,ot=ft+l.height+2*Ge-O-pe-Oe;f.left=Math.max(f.left,at),f.top=Math.max(f.top,ft),f.right=Math.min(f.right,mt),f.bottom=Math.min(f.bottom,ot)}}),f}function me(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(m),w=f.match(/^(.*)\%$/);return w?c*(parseFloat(w[1])/100):parseFloat(f)}function ye(c,m){var f=m||[],w=(0,k.Z)(f,2),x=w[0],B=w[1];return[me(c.width,x),me(c.height,B)]}function Ze(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[c[0],c[1]]}function G(c,m){var f=m[0],w=m[1],x,B;return f==="t"?B=c.y:f==="b"?B=c.y+c.height:B=c.y+c.height/2,w==="l"?x=c.x:w==="r"?x=c.x+c.width:x=c.x+c.width/2,{x,y:B}}function ne(c,m){var f={t:"b",b:"t",l:"r",r:"l"};return c.map(function(w,x){return x===m?f[w]||"c":w}).join("")}function Xe(c,m,f,w,x,B,K){var Ee=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:x[w]||{}}),o=(0,k.Z)(Ee,2),e=o[0],n=o[1],l=b.useRef(0),v=b.useMemo(function(){return m?re(m):[]},[m]),d=b.useRef({}),g=function(){d.current={}};c||g();var p=V(function(){if(m&&f&&c){let Bt=function(xr,dr){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Br,jr=Be.x+xr,on=Be.y+dr,In=jr+Yt,Dn=on+Tt,xn=Math.max(jr,mr.left),T=Math.max(on,mr.top),ie=Math.min(In,mr.right),Je=Math.min(Dn,mr.bottom);return Math.max(0,(ie-xn)*(Je-T))},an=function(){pr=Be.y+Ke,wr=pr+Tt,ar=Be.x+He,Rr=ar+Yt};var le,ce,Pe,Ae,P=m,Oe=P.ownerDocument,O=N(P),pe=O.getComputedStyle(P),Me=pe.width,rt=pe.height,je=pe.position,Ge=P.style.left,nt=P.style.top,at=P.style.right,ft=P.style.bottom,mt=P.style.overflow,ot=(0,Z.Z)((0,Z.Z)({},x[w]),B),gt=Oe.createElement("div");(le=P.parentElement)===null||le===void 0||le.appendChild(gt),gt.style.left="".concat(P.offsetLeft,"px"),gt.style.top="".concat(P.offsetTop,"px"),gt.style.position=je,gt.style.height="".concat(P.offsetHeight,"px"),gt.style.width="".concat(P.offsetWidth,"px"),P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";var Ie;if(Array.isArray(f))Ie={x:f[0],y:f[1],width:0,height:0};else{var Ct,ut,yt=f.getBoundingClientRect();yt.x=(Ct=yt.x)!==null&&Ct!==void 0?Ct:yt.left,yt.y=(ut=yt.y)!==null&&ut!==void 0?ut:yt.top,Ie={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}var Be=P.getBoundingClientRect();Be.x=(ce=Be.x)!==null&&ce!==void 0?ce:Be.left,Be.y=(Pe=Be.y)!==null&&Pe!==void 0?Pe:Be.top;var Ft=Oe.documentElement,hr=Ft.clientWidth,Or=Ft.clientHeight,Jt=Ft.scrollWidth,Zt=Ft.scrollHeight,ur=Ft.scrollTop,gr=Ft.scrollLeft,Tt=Be.height,Yt=Be.width,Wt=Ie.height,xt=Ie.width,Fr={left:0,top:0,right:hr,bottom:Or},sr={left:-gr,top:-ur,right:Jt-gr,bottom:Zt-ur},zt=ot.htmlRegion,Xt="visible",yr="visibleFirst";zt!=="scroll"&&zt!==yr&&(zt=Xt);var Rt=zt===yr,ln=Y(sr,v),Qe=Y(Fr,v),Br=zt===Xt?Qe:ln,br=Rt?Qe:Br;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";var At=P.getBoundingClientRect();P.style.left=Ge,P.style.top=nt,P.style.right=at,P.style.bottom=ft,P.style.overflow=mt,(Ae=P.parentElement)===null||Ae===void 0||Ae.removeChild(gt);var lr=j(Math.round(Yt/parseFloat(Me)*1e3)/1e3),nr=j(Math.round(Tt/parseFloat(rt)*1e3)/1e3);if(lr===0||nr===0||I(f)&&!E(f))return;var cn=ot.offset,fn=ot.targetOffset,Hr=ye(Be,cn),Gt=(0,k.Z)(Hr,2),Qt=Gt[0],Vt=Gt[1],vn=ye(Ie,fn),Cr=(0,k.Z)(vn,2),$t=Cr[0],cr=Cr[1];Ie.x-=$t,Ie.y-=cr;var dn=ot.points||[],Ur=(0,k.Z)(dn,2),mn=Ur[0],hn=Ur[1],_t=Ze(hn),Lt=Ze(mn),Zr=G(Ie,_t),It=G(Be,Lt),fr=(0,Z.Z)({},ot),He=Zr.x-It.x+Qt,Ke=Zr.y-It.y+Vt,Kt=Bt(He,Ke),Er=Bt(He,Ke,Qe),Lr=G(Ie,["t","l"]),jt=G(Be,["t","l"]),Wr=G(Ie,["b","r"]),kr=G(Be,["b","r"]),vr=ot.overflow||{},Gr=vr.adjustX,gn=vr.adjustY,Tr=vr.shiftX,Pr=vr.shiftY,zr=function(dr){return typeof dr=="boolean"?dr:dr>=0},pr,wr,ar,Rr;an();var Sr=zr(gn),Qr=Lt[0]===_t[0];if(Sr&&Lt[0]==="t"&&(wr>br.bottom||d.current.bt)){var Et=Ke;Qr?Et-=Tt-Wt:Et=Lr.y-kr.y-Vt;var Kr=Bt(He,Et),yn=Bt(He,Et,Qe);Kr>Kt||Kr===Kt&&(!Rt||yn>=Er)?(d.current.bt=!0,Ke=Et,Vt=-Vt,fr.points=[ne(Lt,0),ne(_t,0)]):d.current.bt=!1}if(Sr&&Lt[0]==="b"&&(pr<br.top||d.current.tb)){var Mr=Ke;Qr?Mr+=Tt-Wt:Mr=Wr.y-jt.y-Vt;var qr=Bt(He,Mr),bn=Bt(He,Mr,Qe);qr>Kt||qr===Kt&&(!Rt||bn>=Er)?(d.current.tb=!0,Ke=Mr,Vt=-Vt,fr.points=[ne(Lt,0),ne(_t,0)]):d.current.tb=!1}var Jr=zr(Gr),Yr=Lt[1]===_t[1];if(Jr&&Lt[1]==="l"&&(Rr>br.right||d.current.rl)){var Nr=He;Yr?Nr-=Yt-xt:Nr=Lr.x-kr.x-Qt;var Xr=Bt(Nr,Ke),Ar=Bt(Nr,Ke,Qe);Xr>Kt||Xr===Kt&&(!Rt||Ar>=Er)?(d.current.rl=!0,He=Nr,Qt=-Qt,fr.points=[ne(Lt,1),ne(_t,1)]):d.current.rl=!1}if(Jr&&Lt[1]==="r"&&(ar<br.left||d.current.lr)){var ir=He;Yr?ir+=Yt-xt:ir=Wr.x-jt.x-Qt;var _r=Bt(ir,Ke),en=Bt(ir,Ke,Qe);_r>Kt||_r===Kt&&(!Rt||en>=Er)?(d.current.lr=!0,He=ir,Qt=-Qt,fr.points=[ne(Lt,1),ne(_t,1)]):d.current.lr=!1}an();var er=Tr===!0?0:Tr;typeof er=="number"&&(ar<Qe.left&&(He-=ar-Qe.left-Qt,Ie.x+xt<Qe.left+er&&(He+=Ie.x-Qe.left+xt-er)),Rr>Qe.right&&(He-=Rr-Qe.right-Qt,Ie.x>Qe.right-er&&(He+=Ie.x-Qe.right+er)));var qt=Pr===!0?0:Pr;typeof qt=="number"&&(pr<Qe.top&&(Ke-=pr-Qe.top-Vt,Ie.y+Wt<Qe.top+qt&&(Ke+=Ie.y-Qe.top+Wt-qt)),wr>Qe.bottom&&(Ke-=wr-Qe.bottom-Vt,Ie.y>Qe.bottom-qt&&(Ke+=Ie.y-Qe.bottom+qt)));var Ir=Be.x+He,Dr=Ir+Yt,tr=Be.y+Ke,Cn=tr+Tt,tn=Ie.x,En=tn+xt,Vr=Ie.y,pn=Vr+Wt,wn=Math.max(Ir,tn),Sn=Math.min(Dr,En),rn=(wn+Sn)/2,Mn=rn-Ir,Nn=Math.max(tr,Vr),nn=Math.min(Cn,pn),Pn=(Nn+nn)/2,Rn=Pn-tr;K==null||K(m,fr);var $r=At.right-Be.x-(He+Be.width),rr=At.bottom-Be.y-(Ke+Be.height);lr===1&&(He=Math.round(He),$r=Math.round($r)),nr===1&&(Ke=Math.round(Ke),rr=Math.round(rr));var An={ready:!0,offsetX:He/lr,offsetY:Ke/nr,offsetR:$r/lr,offsetB:rr/nr,arrowX:Mn/lr,arrowY:Rn/nr,scaleX:lr,scaleY:nr,align:fr};n(An)}}),oe=function(){l.current+=1;var ce=l.current;Promise.resolve().then(function(){l.current===ce&&p()})},ke=function(){n(function(ce){return(0,Z.Z)((0,Z.Z)({},ce),{},{ready:!1})})};return te(ke,[w]),te(function(){c||ke()},[c]),[e.ready,e.offsetX,e.offsetY,e.offsetR,e.offsetB,e.arrowX,e.arrowY,e.scaleX,e.scaleY,e.align,oe]}var qe=C(74902);function Ce(c,m,f,w,x){te(function(){if(c&&m&&f){let l=function(){w(),x()};var B=m,K=f,Ee=re(B),o=re(K),e=N(K),n=new Set([e].concat((0,qe.Z)(Ee),(0,qe.Z)(o)));return n.forEach(function(v){v.addEventListener("scroll",l,{passive:!0})}),e.addEventListener("resize",l,{passive:!0}),w(),function(){n.forEach(function(v){v.removeEventListener("scroll",l),e.removeEventListener("resize",l)})}}},[c,m,f])}var _e={},it=[],dt=function(m){it.push(m)};function et(c,m){if(!1)var f}function Dt(c,m){if(!1)var f}function Nt(){_e={}}function $e(c,m,f){!m&&!_e[f]&&(c(!1,f),_e[f]=!0)}function Pt(c,m){$e(et,c,m)}function Ot(c,m){$e(Dt,c,m)}Pt.preMessage=dt,Pt.resetWarned=Nt,Pt.noteOnce=Ot;var tt=null;function de(c,m,f,w,x,B,K,Ee){var o=b.useRef(c);o.current=c;var e=b.useRef(!1);b.useEffect(function(){if(m&&w&&(!x||B)){var l=function(){e.current=!1},v=function(Pe){var Ae;o.current&&!K(((Ae=Pe.composedPath)===null||Ae===void 0||(Ae=Ae.call(Pe))===null||Ae===void 0?void 0:Ae[0])||Pe.target)&&!e.current&&Ee(!1)},d=N(w);d.addEventListener("pointerdown",l,!0),d.addEventListener("mousedown",v,!0),d.addEventListener("contextmenu",v,!0);var g=ve(f);if(g&&(g.addEventListener("mousedown",v,!0),g.addEventListener("contextmenu",v,!0)),!1)var p,oe,ke,le;return function(){d.removeEventListener("pointerdown",l,!0),d.removeEventListener("mousedown",v,!0),d.removeEventListener("contextmenu",v,!0),g&&(g.removeEventListener("mousedown",v,!0),g.removeEventListener("contextmenu",v,!0))}}},[m,f,w,x,B]);function n(){e.current=!0}return n}var kt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ut(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.Z,m=b.forwardRef(function(f,w){var x=f.prefixCls,B=x===void 0?"rc-trigger-popup":x,K=f.children,Ee=f.action,o=Ee===void 0?"hover":Ee,e=f.showAction,n=f.hideAction,l=f.popupVisible,v=f.defaultPopupVisible,d=f.onPopupVisibleChange,g=f.afterPopupVisibleChange,p=f.mouseEnterDelay,oe=f.mouseLeaveDelay,ke=oe===void 0?.1:oe,le=f.focusDelay,ce=f.blurDelay,Pe=f.mask,Ae=f.maskClosable,P=Ae===void 0?!0:Ae,Oe=f.getPopupContainer,O=f.forceRender,pe=f.autoDestroy,Me=f.destroyPopupOnHide,rt=f.popup,je=f.popupClassName,Ge=f.popupStyle,nt=f.popupPlacement,at=f.builtinPlacements,ft=at===void 0?{}:at,mt=f.popupAlign,ot=f.zIndex,gt=f.stretch,Ie=f.getPopupClassNameFromAlign,Ct=f.fresh,ut=f.alignPoint,yt=f.onPopupClick,Be=f.onPopupAlign,Ft=f.arrow,hr=f.popupMotion,Or=f.maskMotion,Jt=f.popupTransitionName,Zt=f.popupAnimation,ur=f.maskTransitionName,gr=f.maskAnimation,Tt=f.className,Yt=f.getTriggerDOMNode,Wt=(0,fe.Z)(f,kt),xt=pe||Me||!1,Fr=b.useState(!1),sr=(0,k.Z)(Fr,2),zt=sr[0],Xt=sr[1];te(function(){Xt(Le())},[]);var yr=b.useRef({}),Rt=b.useContext(s),ln=b.useMemo(function(){return{registerSubPopup:function(ie,Je){yr.current[ie]=Je,Rt==null||Rt.registerSubPopup(ie,Je)}}},[Rt]),Qe=he(),Br=b.useState(null),br=(0,k.Z)(Br,2),At=br[0],lr=br[1],nr=b.useRef(null),cn=V(function(T){nr.current=T,I(T)&&At!==T&&lr(T),Rt==null||Rt.registerSubPopup(Qe,T)}),fn=b.useState(null),Hr=(0,k.Z)(fn,2),Gt=Hr[0],Qt=Hr[1],Vt=b.useRef(null),vn=V(function(T){I(T)&&Gt!==T&&(Qt(T),Vt.current=T)}),Cr=b.Children.only(K),$t=(Cr==null?void 0:Cr.props)||{},cr={},dn=V(function(T){var ie,Je,ht=Gt;return(ht==null?void 0:ht.contains(T))||((ie=ve(ht))===null||ie===void 0?void 0:ie.host)===T||T===ht||(At==null?void 0:At.contains(T))||((Je=ve(At))===null||Je===void 0?void 0:Je.host)===T||T===At||Object.values(yr.current).some(function(st){return(st==null?void 0:st.contains(T))||T===st})}),Ur=X(B,hr,Zt,Jt),mn=X(B,Or,gr,ur),hn=b.useState(v||!1),_t=(0,k.Z)(hn,2),Lt=_t[0],Zr=_t[1],It=l??Lt,fr=V(function(T){l===void 0&&Zr(T)});te(function(){Zr(l||!1)},[l]);var He=b.useRef(It);He.current=It;var Ke=b.useRef([]);Ke.current=[];var Kt=V(function(T){var ie;fr(T),((ie=Ke.current[Ke.current.length-1])!==null&&ie!==void 0?ie:It)!==T&&(Ke.current.push(T),d==null||d(T))}),Er=b.useRef(),Lr=function(){clearTimeout(Er.current)},jt=function(ie){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Lr(),Je===0?Kt(ie):Er.current=setTimeout(function(){Kt(ie)},Je*1e3)};b.useEffect(function(){return Lr},[]);var Wr=b.useState(!1),kr=(0,k.Z)(Wr,2),vr=kr[0],Gr=kr[1];te(function(T){(!T||It)&&Gr(!0)},[It]);var gn=b.useState(null),Tr=(0,k.Z)(gn,2),Pr=Tr[0],zr=Tr[1],pr=b.useState(null),wr=(0,k.Z)(pr,2),ar=wr[0],Rr=wr[1],Sr=function(ie){Rr([ie.clientX,ie.clientY])},Qr=Xe(It,At,ut&&ar!==null?ar:Gt,nt,ft,mt,Be),Et=(0,k.Z)(Qr,11),Kr=Et[0],yn=Et[1],Mr=Et[2],qr=Et[3],bn=Et[4],Jr=Et[5],Yr=Et[6],Nr=Et[7],Xr=Et[8],Ar=Et[9],ir=Et[10],_r=y(zt,o,e,n),en=(0,k.Z)(_r,2),er=en[0],qt=en[1],Ir=er.has("click"),Dr=qt.has("click")||qt.has("contextMenu"),tr=V(function(){vr||ir()}),Cn=function(){He.current&&ut&&Dr&&jt(!1)};Ce(It,Gt,At,tr,Cn),te(function(){tr()},[ar,nt]),te(function(){It&&!(ft!=null&&ft[nt])&&tr()},[JSON.stringify(mt)]);var tn=b.useMemo(function(){var T=z(ft,B,Ar,ut);return A()(T,Ie==null?void 0:Ie(Ar))},[Ar,Ie,ft,B,ut]);b.useImperativeHandle(w,function(){return{nativeElement:Vt.current,popupElement:nr.current,forceAlign:tr}});var En=b.useState(0),Vr=(0,k.Z)(En,2),pn=Vr[0],wn=Vr[1],Sn=b.useState(0),rn=(0,k.Z)(Sn,2),Mn=rn[0],Nn=rn[1],nn=function(){if(gt&&Gt){var ie=Gt.getBoundingClientRect();wn(ie.width),Nn(ie.height)}},Pn=function(){nn(),tr()},Rn=function(ie){Gr(!1),ir(),g==null||g(ie)},$r=function(){return new Promise(function(ie){nn(),zr(function(){return ie})})};te(function(){Pr&&(ir(),Pr(),zr(null))},[Pr]);function rr(T,ie,Je,ht){cr[T]=function(st){var un;ht==null||ht(st),jt(ie,Je);for(var On=arguments.length,Fn=new Array(On>1?On-1:0),sn=1;sn<On;sn++)Fn[sn-1]=arguments[sn];(un=$t[T])===null||un===void 0||un.call.apply(un,[$t,st].concat(Fn))}}(Ir||Dr)&&(cr.onClick=function(T){var ie;He.current&&Dr?jt(!1):!He.current&&Ir&&(Sr(T),jt(!0));for(var Je=arguments.length,ht=new Array(Je>1?Je-1:0),st=1;st<Je;st++)ht[st-1]=arguments[st];(ie=$t.onClick)===null||ie===void 0||ie.call.apply(ie,[$t,T].concat(ht))});var An=de(It,Dr,Gt,At,Pe,P,dn,jt),Bt=er.has("hover"),an=qt.has("hover"),xr,dr;Bt&&(rr("onMouseEnter",!0,p,function(T){Sr(T)}),rr("onPointerEnter",!0,p,function(T){Sr(T)}),xr=function(ie){(It||vr)&&At!==null&&At!==void 0&&At.contains(ie.target)&&jt(!0,p)},ut&&(cr.onMouseMove=function(T){var ie;(ie=$t.onMouseMove)===null||ie===void 0||ie.call($t,T)})),an&&(rr("onMouseLeave",!1,ke),rr("onPointerLeave",!1,ke),dr=function(){jt(!1,ke)}),er.has("focus")&&rr("onFocus",!0,le),qt.has("focus")&&rr("onBlur",!1,ce),er.has("contextMenu")&&(cr.onContextMenu=function(T){var ie;He.current&&qt.has("contextMenu")?jt(!1):(Sr(T),jt(!0)),T.preventDefault();for(var Je=arguments.length,ht=new Array(Je>1?Je-1:0),st=1;st<Je;st++)ht[st-1]=arguments[st];(ie=$t.onContextMenu)===null||ie===void 0||ie.call.apply(ie,[$t,T].concat(ht))}),Tt&&(cr.className=A()($t.className,Tt));var mr=(0,Z.Z)((0,Z.Z)({},$t),cr),jr={},on=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];on.forEach(function(T){Wt[T]&&(jr[T]=function(){for(var ie,Je=arguments.length,ht=new Array(Je),st=0;st<Je;st++)ht[st]=arguments[st];(ie=mr[T])===null||ie===void 0||ie.call.apply(ie,[mr].concat(ht)),Wt[T].apply(Wt,ht)})});var In=b.cloneElement(Cr,(0,Z.Z)((0,Z.Z)({},mr),jr)),Dn={x:Jr,y:Yr},xn=Ft?(0,Z.Z)({},Ft!==!0?Ft:{}):null;return b.createElement(b.Fragment,null,b.createElement(Ue.Z,{disabled:!It,ref:vn,onResize:Pn},b.createElement(r,{getTriggerDOMNode:Yt},In)),b.createElement(s.Provider,{value:ln},b.createElement(a,{portal:c,ref:cn,prefixCls:B,popup:rt,className:A()(je,tn),style:Ge,target:Gt,onMouseEnter:xr,onMouseLeave:dr,onPointerEnter:xr,zIndex:ot,open:It,keepDom:vr,fresh:Ct,onClick:yt,onPointerDownCapture:An,mask:Pe,motion:Ur,maskMotion:mn,onVisibleChanged:Rn,onPrepare:$r,forceRender:O,autoDestroy:xt,getPopupContainer:Oe,align:Ar,arrow:xn,arrowPos:Dn,ready:Kr,offsetX:yn,offsetY:Mr,offsetR:qr,offsetB:bn,onAlign:tr,stretch:gt,targetWidth:pn/Nr,targetHeight:Mn/Xr})))});return m}var or=Ut(S.Z)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7314],{95309:function(qn,sn,S){S.d(sn,{He:function(){return he},Ld:function(){return j},eC:function(){return fe},f3:function(){return Ie},iG:function(){return Ve},rS:function(){return ae},sb:function(){return V},ys:function(){return oe}});var on=S(5574),Le=S.n(on),fn=S(28785),ge=S.n(fn),ln=S(48374),Pe=S.n(ln),cn=S(31996),je=S.n(cn),Ue=S(26037),L=S.n(Ue),we=S(12444),te=S.n(we),N=S(72004),re=S.n(N),x=S(65736),Oe=S(67294),Se=Symbol.for("Animated:node"),J=function(y){return!!y&&y[Se]===y},oe=function(y){return y&&y[Se]},Ie=function(y,E){return(0,x.dE)(y,Se,E)},he=function(y){return y&&y[Se]&&y[Se].getPayload()},ve=function(){function P(){te()(this,P),this.payload=void 0,Ie(this,this)}return re()(P,[{key:"getPayload",value:function(){return this.payload||[]}}]),P}(),Ve=function(P){je()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this),m.done=!0,m.elapsedTime=void 0,m.lastPosition=void 0,m.lastVelocity=void 0,m.v0=void 0,m.durationProgress=0,m._value=A,x.is.num(m._value)&&(m.lastPosition=m._value),m}return re()(E,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(m,k){return x.is.num(m)&&(this.lastPosition=m,k&&(m=Math.round(m/k)*k,this.done&&(this.lastPosition=m))),this._value===m?!1:(this._value=m,!0)}},{key:"reset",value:function(){var m=this.done;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,m&&(this.lastVelocity=null),this.v0=null)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(ve),fe=function(P){je()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this,0),m._string=null,m._toString=void 0,m._toString=(0,x.mD)({output:[A,A]}),m}return re()(E,[{key:"getValue",value:function(){var m=this._string;return m??(this._string=this._toString(this._value))}},{key:"setValue",value:function(m){if(x.is.str(m)){if(m==this._string)return!1;this._string=m,this._value=1}else if(ge()(Pe()(E.prototype),"setValue",this).call(this,m))this._string=null;else return!1;return!0}},{key:"reset",value:function(m){m&&(this._toString=(0,x.mD)({output:[this.getValue(),m]})),this._value=0,ge()(Pe()(E.prototype),"reset",this).call(this)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(Ve),Te={dependencies:null},ae=function(P){je()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this),m.source=A,m.setValue(A),m}return re()(E,[{key:"getValue",value:function(m){var k={};return(0,x.rU)(this.source,function($,Q){J($)?k[Q]=$.getValue(m):(0,x.j$)($)?k[Q]=(0,x.je)($):m||(k[Q]=$)}),k}},{key:"setValue",value:function(m){this.source=m,this.payload=this._makePayload(m)}},{key:"reset",value:function(){this.payload&&(0,x.S6)(this.payload,function(m){return m.reset()})}},{key:"_makePayload",value:function(m){if(m){var k=new Set;return(0,x.rU)(m,this._addToPayload,k),Array.from(k)}}},{key:"_addToPayload",value:function(m){var k=this;Te.dependencies&&(0,x.j$)(m)&&Te.dependencies.add(m);var $=he(m);$&&(0,x.S6)($,function(Q){return k.add(Q)})}}]),E}(ve),o=function(P){je()(E,P);var y=L()(E);function E(A){return te()(this,E),y.call(this,A)}return re()(E,[{key:"getValue",value:function(){return this.source.map(function(m){return m.getValue()})}},{key:"setValue",value:function(m){var k=this.getPayload();return m.length==k.length?k.map(function($,Q){return $.setValue(m[Q])}).some(Boolean):(ge()(Pe()(E.prototype),"setValue",this).call(this,m.map(le)),!0)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(ae);function le(P){var y=(0,x.Df)(P)?fe:Ve;return y.create(P)}function V(P){var y=oe(P);return y?y.constructor:x.is.arr(P)?o:(0,x.Df)(P)?fe:Ve}function B(){return B=Object.assign?Object.assign.bind():function(P){for(var y=1;y<arguments.length;y++){var E=arguments[y];for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(P[A]=E[A])}return P},B.apply(this,arguments)}var ee=function(y,E){var A=!x.is.fun(y)||y.prototype&&y.prototype.isReactComponent;return(0,Oe.forwardRef)(function(m,k){var $=(0,Oe.useRef)(null),Q=A&&(0,Oe.useCallback)(function(de){$.current=Ge(k,de)},[k]),ce=Je(m,E),X=Le()(ce,2),K=X[0],H=X[1],U=(0,x.NW)(),me=function(){var Be=$.current;if(!(A&&!Be)){var be=Be?E.applyAnimatedValues(Be,K.getValue(!0)):!1;be===!1&&U()}},Xe=new ie(me,H),Re=(0,Oe.useRef)();(0,x.LI)(function(){return Re.current=Xe,(0,x.S6)(H,function(de){return(0,x.UI)(de,Xe)}),function(){Re.current&&((0,x.S6)(Re.current.deps,function(de){return(0,x.iL)(de,Re.current)}),x.Wn.cancel(Re.current.update))}}),(0,Oe.useEffect)(me,[]),(0,x.tf)(function(){return function(){var de=Re.current;(0,x.S6)(de.deps,function(Be){return(0,x.iL)(Be,de)})}});var We=E.getComponentProps(K.getValue());return Oe.createElement(y,B({},We,{ref:Q}))})},ie=function(){function P(y,E){te()(this,P),this.update=y,this.deps=E}return re()(P,[{key:"eventObserved",value:function(E){E.type=="change"&&x.Wn.write(this.update)}}]),P}();function Je(P,y){var E=new Set;return Te.dependencies=E,P.style&&(P=B({},P,{style:y.createAnimatedStyle(P.style)})),P=new ae(P),Te.dependencies=null,[P,E]}function Ge(P,y){return P&&(x.is.fun(P)?P(y):P.current=y),y}var qe=Symbol.for("AnimatedComponent"),j=function(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=E.applyAnimatedValues,m=A===void 0?function(){return!1}:A,k=E.createAnimatedStyle,$=k===void 0?function(H){return new ae(H)}:k,Q=E.getComponentProps,ce=Q===void 0?function(H){return H}:Q,X={applyAnimatedValues:m,createAnimatedStyle:$,getComponentProps:ce},K=function H(U){var me=D(U)||"Anonymous";return x.is.str(U)?U=H[U]||(H[U]=ee(U,X)):U=U[qe]||(U[qe]=ee(U,X)),U.displayName="Animated(".concat(me,")"),U};return(0,x.rU)(y,function(H,U){x.is.arr(y)&&(U=D(H)),K[U]=K(H)}),{animated:K}},D=function(y){return x.is.str(y)?y:y&&x.is.str(y.displayName)?y.displayName:x.is.fun(y)&&y.name||null}},99799:function(qn,sn,S){S.d(sn,{Globals:function(){return o.OH},to:function(){return Ot},useSpring:function(){return Qe}});var on=S(25098),Le=S.n(on),fn=S(19632),ge=S.n(fn),ln=S(5574),Pe=S.n(ln),cn=S(28785),je=S.n(cn),Ue=S(48374),L=S.n(Ue),we=S(31996),te=S.n(we),N=S(26037),re=S.n(N),x=S(12665),Oe=S.n(x),Se=S(15009),J=S.n(Se),oe=S(99289),Ie=S.n(oe),he=S(72004),ve=S.n(he),Ve=S(12444),fe=S.n(Ve),Te=S(96695),ae=S.n(Te),o=S(65736),le=S(67294),V=S(95309);function B(){return B=Object.assign?Object.assign.bind():function(u){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(u[s]=n[s])}return u},B.apply(this,arguments)}function ee(u){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return o.is.fun(u)?u.apply(void 0,n):u}var ie=function(r,n){return r===!0||!!(n&&r&&(o.is.fun(r)?r(n):(0,o.qo)(r).includes(n)))},Je=function(r,n){return o.is.obj(r)?n&&r[n]:r},Ge=function(r,n){return r.default===!0?r[n]:r.default?r.default[n]:void 0},qe=function(r){return r},j=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qe,s=D;r.default&&r.default!==!0&&(r=r.default,s=Object.keys(r));var a={},i=ae()(s),l;try{for(i.s();!(l=i.n()).done;){var h=l.value,p=n(r[h],h);o.is.und(p)||(a[h]=p)}}catch(v){i.e(v)}finally{i.f()}return a},D=["config","onProps","onStart","onChange","onPause","onResume","onRest"],P={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function y(u){var r={},n=0;if((0,o.rU)(u,function(s,a){P[a]||(r[a]=s,n++)}),n)return r}function E(u){var r=y(u);if(r){var n={to:r};return(0,o.rU)(u,function(s,a){return a in r||(n[a]=s)}),n}return B({},u)}function A(u){return u=(0,o.je)(u),o.is.arr(u)?u.map(A):(0,o.Df)(u)?o.OH.createStringInterpolator({range:[0,1],output:[u,u]})(1):u}function m(u){for(var r in u)return!0;return!1}function k(u){return o.is.fun(u)||o.is.arr(u)&&o.is.obj(u[0])}function $(u,r){var n;(n=u.ref)==null||n.delete(u),r==null||r.delete(u)}function Q(u,r){if(r&&u.ref!==r){var n;(n=u.ref)==null||n.delete(u),r.add(u),u.ref=r}}function ce(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3;useIsomorphicLayoutEffect(function(){if(r){var s=0;each(u,function(i,l){var h=i.current;if(h.length){var p=n*r[l];isNaN(p)?p=s:s=p,each(h,function(v){each(v.queue,function(R){var I=R.delay;R.delay=function(O){return p+ee(I||0,O)}})}),i.start()}})}else{var a=Promise.resolve();each(u,function(i){var l=i.current;if(l.length){var h=l.map(function(p){var v=p.queue;return p.queue=[],v});a=a.then(function(){return each(l,function(p,v){return each(h[v]||[],function(R){return p.queue.push(R)})}),Promise.all(i.start())})}})}})}var X={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},K=B({},X.default,{mass:1,damping:1,easing:o.Z5.linear,clamp:!1}),H=ve()(function u(){fe()(this,u),this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,K)});function U(u,r,n){n&&(n=B({},n),me(n,r),r=B({},n,r)),me(u,r),Object.assign(u,r);for(var s in K)u[s]==null&&(u[s]=K[s]);var a=u.mass,i=u.frequency,l=u.damping;return o.is.und(i)||(i<.01&&(i=.01),l<0&&(l=0),u.tension=Math.pow(2*Math.PI/i,2)*a,u.friction=4*Math.PI*l*a/i),u}function me(u,r){if(!o.is.und(r.decay))u.duration=void 0;else{var n=!o.is.und(r.tension)||!o.is.und(r.friction);(n||!o.is.und(r.frequency)||!o.is.und(r.damping)||!o.is.und(r.mass))&&(u.duration=void 0,u.decay=void 0),n&&(u.frequency=void 0)}}var Xe=[],Re=ve()(function u(){fe()(this,u),this.changed=!1,this.values=Xe,this.toValues=null,this.fromValues=Xe,this.to=void 0,this.from=void 0,this.config=new H,this.immediate=!1});function We(u,r){var n=r.key,s=r.props,a=r.defaultProps,i=r.state,l=r.actions;return new Promise(function(h,p){var v,R,I,O=ie((v=s.cancel)!=null?v:a==null?void 0:a.cancel,n);if(O)f();else{o.is.und(s.pause)||(i.paused=ie(s.pause,n));var T=a==null?void 0:a.pause;T!==!0&&(T=i.paused||ie(T,n)),R=ee(s.delay||0,n),T?(i.resumeQueue.add(e),l.pause()):(l.resume(),e())}function t(){i.resumeQueue.add(e),i.timeouts.delete(I),I.cancel(),R=I.time-o.Wn.now()}function e(){R>0&&!o.OH.skipAnimation?(i.delayed=!0,I=o.Wn.setTimeout(f,R),i.pauseQueue.add(t),i.timeouts.add(I)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(t),i.timeouts.delete(I),u<=(i.cancelId||0)&&(O=!0);try{l.start(B({},s,{callId:u,cancel:O}),h)}catch(c){p(c)}}})}var de=function(r,n){return n.length==1?n[0]:n.some(function(s){return s.cancelled})?en(r.get()):n.every(function(s){return s.noop})?Be(r.get()):be(r.get(),n.every(function(s){return s.finished}))},Be=function(r){return{value:r,noop:!0,finished:!0,cancelled:!1}},be=function(r,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{value:r,finished:n,cancelled:s}},en=function(r){return{value:r,cancelled:!0,finished:!1}};function Ae(u,r,n,s){var a=r.callId,i=r.parentId,l=r.onRest,h=n.asyncTo,p=n.promise;return!i&&u===h&&!r.reset?p:n.promise=Ie()(J()().mark(function v(){var R,I,O,T,t,e,f,c;return J()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(n.asyncId=a,n.asyncTo=u,R=j(r,function(g,b){return b==="onRest"?void 0:g}),T=new Promise(function(g,b){return I=g,O=b}),t=function(b){var M=a<=(n.cancelId||0)&&en(s)||a!==n.asyncId&&be(s,!1);if(M)throw b.result=M,O(b),b},e=function(b,M){var w=new dn,F=new Fn;return Ie()(J()().mark(function W(){var Y,z;return J()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!o.OH.skipAnimation){Z.next=5;break}throw Fe(n),F.result=be(s,!1),O(F),F;case 5:return t(w),Y=o.is.obj(b)?B({},b):B({},M,{to:b}),Y.parentId=a,(0,o.rU)(R,function(ke,ue){o.is.und(Y[ue])&&(Y[ue]=ke)}),Z.next=11,s.start(Y);case 11:if(z=Z.sent,t(w),!n.paused){Z.next=16;break}return Z.next=16,new Promise(function(ke){n.resumeQueue.add(ke)});case 16:return Z.abrupt("return",z);case 17:case"end":return Z.stop()}},W)}))()},!o.OH.skipAnimation){d.next=9;break}return Fe(n),d.abrupt("return",be(s,!1));case 9:return d.prev=9,o.is.arr(u)?c=function(){var g=Ie()(J()().mark(function b(M){var w,F,W;return J()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:w=ae()(M),z.prev=1,w.s();case 3:if((F=w.n()).done){z.next=9;break}return W=F.value,z.next=7,e(W);case 7:z.next=3;break;case 9:z.next=14;break;case 11:z.prev=11,z.t0=z.catch(1),w.e(z.t0);case 14:return z.prev=14,w.f(),z.finish(14);case 17:case"end":return z.stop()}},b,null,[[1,11,14,17]])}));return function(b){return g.apply(this,arguments)}}()(u):c=Promise.resolve(u(e,s.stop.bind(s))),d.next=13,Promise.all([c.then(I),T]);case 13:f=be(s.get(),!0,!1),d.next=27;break;case 16:if(d.prev=16,d.t0=d.catch(9),!(d.t0 instanceof dn)){d.next=22;break}f=d.t0.result,d.next=27;break;case 22:if(!(d.t0 instanceof Fn)){d.next=26;break}f=d.t0.result,d.next=27;break;case 26:throw d.t0;case 27:return d.prev=27,a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?h:void 0,n.promise=i?p:void 0),d.finish(27);case 30:return o.is.fun(l)&&o.Wn.batchedUpdates(function(){l(f,s,s.item)}),d.abrupt("return",f);case 32:case"end":return d.stop()}},v,null,[[9,16,27,30]])}))()}function Fe(u,r){(0,o.yl)(u.timeouts,function(n){return n.cancel()}),u.pauseQueue.clear(),u.resumeQueue.clear(),u.asyncId=u.asyncTo=u.promise=void 0,r&&(u.cancelId=r)}var dn=function(u){te()(n,u);var r=re()(n);function n(){var s;return fe()(this,n),s=r.call(this,"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),s.result=void 0,s}return ve()(n)}(Oe()(Error)),Fn=function(u){te()(n,u);var r=re()(n);function n(){var s;return fe()(this,n),s=r.call(this,"SkipAnimationSignal"),s.result=void 0,s}return ve()(n)}(Oe()(Error)),An=function(r){return r instanceof wn},et=1,wn=function(u){te()(n,u);var r=re()(n);function n(){var s;fe()(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return s=r.call.apply(r,[this].concat(i)),s.id=et++,s.key=void 0,s._priority=0,s}return ve()(n,[{key:"priority",get:function(){return this._priority},set:function(a){this._priority!=a&&(this._priority=a,this._onPriorityChange(a))}},{key:"get",value:function(){var a=(0,V.ys)(this);return a&&a.getValue()}},{key:"to",value:function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return o.OH.to(this,i)}},{key:"interpolate",value:function(){(0,o.LW)();for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return o.OH.to(this,i)}},{key:"toJSON",value:function(){return this.get()}},{key:"observerAdded",value:function(a){a==1&&this._attach()}},{key:"observerRemoved",value:function(a){a==0&&this._detach()}},{key:"_attach",value:function(){}},{key:"_detach",value:function(){}},{key:"_onChange",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,o.k0)(this,{type:"change",parent:this,value:a,idle:i})}},{key:"_onPriorityChange",value:function(a){this.idle||o.fT.sort(this),(0,o.k0)(this,{type:"priority",parent:this,priority:a})}}]),n}(o.B0),Ye=Symbol.for("SpringPhase"),Kn=1,In=2,Rn=4,xn=function(r){return(r[Ye]&Kn)>0},Ce=function(r){return(r[Ye]&In)>0},nn=function(r){return(r[Ye]&Rn)>0},Ze=function(r,n){return n?r[Ye]|=In|Kn:r[Ye]&=~In},Mn=function(r,n){return n?r[Ye]|=Rn:r[Ye]&=~Rn},Cn=function(u){te()(n,u);var r=re()(n);function n(s,a){var i;if(fe()(this,n),i=r.call(this),i.key=void 0,i.animation=new Re,i.queue=void 0,i.defaultProps={},i._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},i._pendingCalls=new Set,i._lastCallId=0,i._lastToId=0,i._memoizedDuration=0,!o.is.und(s)||!o.is.und(a)){var l=o.is.obj(s)?B({},s):B({},a,{from:s});o.is.und(l.default)&&(l.default=!0),i.start(l)}return i}return ve()(n,[{key:"idle",get:function(){return!(Ce(this)||this._state.asyncTo)||nn(this)}},{key:"goal",get:function(){return(0,o.je)(this.animation.to)}},{key:"velocity",get:function(){var a=(0,V.ys)(this);return a instanceof V.iG?a.lastVelocity||0:a.getPayload().map(function(i){return i.lastVelocity||0})}},{key:"hasAnimated",get:function(){return xn(this)}},{key:"isAnimating",get:function(){return Ce(this)}},{key:"isPaused",get:function(){return nn(this)}},{key:"isDelayed",get:function(){return this._state.delayed}},{key:"advance",value:function(a){var i=this,l=!0,h=!1,p=this.animation,v=p.config,R=p.toValues,I=(0,V.He)(p.to);!I&&(0,o.j$)(p.to)&&(R=(0,o.qo)((0,o.je)(p.to))),p.values.forEach(function(e,f){if(!e.done){var c=e.constructor==V.eC?1:I?I[f].lastPosition:R[f],_=p.immediate,d=c;if(!_){if(d=e.lastPosition,v.tension<=0){e.done=!0;return}var g=e.elapsedTime+=a,b=p.fromValues[f],M=e.v0!=null?e.v0:e.v0=o.is.arr(v.velocity)?v.velocity[f]:v.velocity,w,F=v.precision||(b==c?.005:Math.min(1,Math.abs(c-b)*.001));if(o.is.und(v.duration))if(v.decay){var Y=v.decay===!0?.998:v.decay,z=Math.exp(-(1-Y)*g);d=b+M/(1-Y)*(1-z),_=Math.abs(e.lastPosition-d)<=F,w=M*z}else{w=e.lastVelocity==null?M:e.lastVelocity;for(var De=v.restVelocity||F/10,Z=v.clamp?0:v.bounce,ke=!o.is.und(Z),ue=b==c?e.v0>0:b<c,se,xe=!1,ne=1,mn=Math.ceil(a/ne),pn=0;pn<mn&&(se=Math.abs(w)>De,!(!se&&(_=Math.abs(c-d)<=F,_)));++pn){ke&&(xe=d==c||d>c==ue,xe&&(w=-w*Z,d=c));var gn=-v.tension*1e-6*(d-c),C=-v.friction*.001*w,G=(gn+C)/v.mass;w=w+G*ne,d=d+w*ne}}else{var W=1;v.duration>0&&(i._memoizedDuration!==v.duration&&(i._memoizedDuration=v.duration,e.durationProgress>0&&(e.elapsedTime=v.duration*e.durationProgress,g=e.elapsedTime+=a)),W=(v.progress||0)+g/i._memoizedDuration,W=W>1?1:W<0?0:W,e.durationProgress=W),d=b+v.easing(W)*(c-b),w=(d-e.lastPosition)/a,_=W==1}e.lastVelocity=w,Number.isNaN(d)&&(console.warn("Got NaN while animating:",i),_=!0)}I&&!I[f].done&&(_=!1),_?e.done=!0:l=!1,e.setValue(d,v.round)&&(h=!0)}});var O=(0,V.ys)(this),T=O.getValue();if(l){var t=(0,o.je)(p.to);(T!==t||h)&&!v.decay?(O.setValue(t),this._onChange(t)):h&&v.decay&&this._onChange(T),this._stop()}else h&&this._onChange(T)}},{key:"set",value:function(a){var i=this;return o.Wn.batchedUpdates(function(){i._stop(),i._focus(a),i._set(a)}),this}},{key:"pause",value:function(){this._update({pause:!0})}},{key:"resume",value:function(){this._update({pause:!1})}},{key:"finish",value:function(){var a=this;if(Ce(this)){var i=this.animation,l=i.to,h=i.config;o.Wn.batchedUpdates(function(){a._onStart(),h.decay||a._set(l,!1),a._stop()})}return this}},{key:"update",value:function(a){var i=this.queue||(this.queue=[]);return i.push(a),this}},{key:"start",value:function(a,i){var l=this,h;return o.is.und(a)?(h=this.queue||[],this.queue=[]):h=[o.is.obj(a)?a:B({},i,{to:a})],Promise.all(h.map(function(p){var v=l._update(p);return v})).then(function(p){return de(l,p)})}},{key:"stop",value:function(a){var i=this,l=this.animation.to;return this._focus(this.get()),Fe(this._state,a&&this._lastCallId),o.Wn.batchedUpdates(function(){return i._stop(l,a)}),this}},{key:"reset",value:function(){this._update({reset:!0})}},{key:"eventObserved",value:function(a){a.type=="change"?this._start():a.type=="priority"&&(this.priority=a.priority+1)}},{key:"_prepareNode",value:function(a){var i=this.key||"",l=a.to,h=a.from;l=o.is.obj(l)?l[i]:l,(l==null||k(l))&&(l=void 0),h=o.is.obj(h)?h[i]:h,h==null&&(h=void 0);var p={to:l,from:h};if(!xn(this)){if(a.reverse){var v=[h,l];l=v[0],h=v[1]}h=(0,o.je)(h),o.is.und(h)?(0,V.ys)(this)||this._set(l):this._set(h)}return p}},{key:"_update",value:function(a,i){var l=this,h=B({},a),p=this.key,v=this.defaultProps;h.default&&Object.assign(v,j(h,function(O,T){return/^on/.test(T)?Je(O,p):O})),_n(this,h,"onProps"),$e(this,"onProps",h,this);var R=this._prepareNode(h);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");var I=this._state;return We(++this._lastCallId,{key:p,props:h,defaultProps:v,state:I,actions:{pause:function(){nn(l)||(Mn(l,!0),(0,o.bl)(I.pauseQueue),$e(l,"onPause",be(l,Ke(l,l.animation.to)),l))},resume:function(){nn(l)&&(Mn(l,!1),Ce(l)&&l._resume(),(0,o.bl)(I.resumeQueue),$e(l,"onResume",be(l,Ke(l,l.animation.to)),l))},start:this._merge.bind(this,R)}}).then(function(O){if(h.loop&&O.finished&&!(i&&O.noop)){var T=kn(h);if(T)return l._update(T,!0)}return O})}},{key:"_merge",value:function(a,i,l){var h=this;if(i.cancel)return this.stop(!0),l(en(this));var p=!o.is.und(a.to),v=!o.is.und(a.from);if(p||v)if(i.callId>this._lastToId)this._lastToId=i.callId;else return l(en(this));var R=this.key,I=this.defaultProps,O=this.animation,T=O.to,t=O.from,e=a.to,f=e===void 0?T:e,c=a.from,_=c===void 0?t:c;if(v&&!p&&(!i.default||o.is.und(f))&&(f=_),i.reverse){var d=[_,f];f=d[0],_=d[1]}var g=!(0,o.Xy)(_,t);g&&(O.from=_),_=(0,o.je)(_);var b=!(0,o.Xy)(f,T);b&&this._focus(f);var M=k(i.to),w=O.config,F=w.decay,W=w.velocity;(p||v)&&(w.velocity=0),i.config&&!M&&U(w,ee(i.config,R),i.config!==I.config?ee(I.config,R):void 0);var Y=(0,V.ys)(this);if(!Y||o.is.und(f))return l(be(this,!0));var z=o.is.und(i.reset)?v&&!i.default:!o.is.und(_)&&ie(i.reset,R),De=z?_:this.get(),Z=A(f),ke=o.is.num(Z)||o.is.arr(Z)||(0,o.Df)(Z),ue=!M&&(!ke||ie(I.immediate||i.immediate,R));if(b){var se=(0,V.sb)(f);if(se!==Y.constructor)if(ue)Y=this._set(Z);else throw Error("Cannot animate between ".concat(Y.constructor.name," and ").concat(se.name,', as the "to" prop suggests'))}var xe=Y.constructor,ne=(0,o.j$)(f),mn=!1;if(!ne){var pn=z||!xn(this)&&g;(b||pn)&&(mn=(0,o.Xy)(A(De),Z),ne=!mn),(!(0,o.Xy)(O.immediate,ue)&&!ue||!(0,o.Xy)(w.decay,F)||!(0,o.Xy)(w.velocity,W))&&(ne=!0)}if(mn&&Ce(this)&&(O.changed&&!z?ne=!0:ne||this._stop(T)),!M&&((ne||(0,o.j$)(T))&&(O.values=Y.getPayload(),O.toValues=(0,o.j$)(f)?null:xe==V.eC?[1]:(0,o.qo)(Z)),O.immediate!=ue&&(O.immediate=ue,!ue&&!z&&this._set(T)),ne)){var gn=O.onRest;(0,o.S6)(tt,function(G){return _n(h,i,G)});var C=be(this,Ke(this,T));(0,o.bl)(this._pendingCalls,C),this._pendingCalls.add(l),O.changed&&o.Wn.batchedUpdates(function(){O.changed=!z,gn==null||gn(C,h),z?ee(I.onRest,C):O.onStart==null||O.onStart(C,h)})}z&&this._set(De),M?l(Ae(i.to,i,this._state,this)):ne?this._start():Ce(this)&&!b?this._pendingCalls.add(l):l(Be(De))}},{key:"_focus",value:function(a){var i=this.animation;a!==i.to&&((0,o.Ll)(this)&&this._detach(),i.to=a,(0,o.Ll)(this)&&this._attach())}},{key:"_attach",value:function(){var a=0,i=this.animation.to;(0,o.j$)(i)&&((0,o.UI)(i,this),An(i)&&(a=i.priority+1)),this.priority=a}},{key:"_detach",value:function(){var a=this.animation.to;(0,o.j$)(a)&&(0,o.iL)(a,this)}},{key:"_set",value:function(a){var i=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,h=(0,o.je)(a);if(!o.is.und(h)){var p=(0,V.ys)(this);if(!p||!(0,o.Xy)(h,p.getValue())){var v=(0,V.sb)(h);!p||p.constructor!=v?(0,V.f3)(this,v.create(h)):p.setValue(h),p&&o.Wn.batchedUpdates(function(){i._onChange(h,l)})}}return(0,V.ys)(this)}},{key:"_onStart",value:function(){var a=this.animation;a.changed||(a.changed=!0,$e(this,"onStart",be(this,Ke(this,a.to)),this))}},{key:"_onChange",value:function(a,i){i||(this._onStart(),ee(this.animation.onChange,a,this)),ee(this.defaultProps.onChange,a,this),je()(L()(n.prototype),"_onChange",this).call(this,a,i)}},{key:"_start",value:function(){var a=this.animation;(0,V.ys)(this).reset((0,o.je)(a.to)),a.immediate||(a.fromValues=a.values.map(function(i){return i.lastPosition})),Ce(this)||(Ze(this,!0),nn(this)||this._resume())}},{key:"_resume",value:function(){o.OH.skipAnimation?this.finish():o.fT.start(this)}},{key:"_stop",value:function(a,i){if(Ce(this)){Ze(this,!1);var l=this.animation;(0,o.S6)(l.values,function(p){p.done=!0}),l.toValues&&(l.onChange=l.onPause=l.onResume=void 0),(0,o.k0)(this,{type:"idle",parent:this});var h=i?en(this.get()):be(this.get(),Ke(this,a??l.to));(0,o.bl)(this._pendingCalls,h),l.changed&&(l.changed=!1,$e(this,"onRest",h,this))}}}]),n}(wn);function Ke(u,r){var n=A(r),s=A(u.get());return(0,o.Xy)(s,n)}function kn(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.loop,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.to,s=ee(r);if(s){var a=s!==!0&&E(s),i=(a||u).reverse,l=!a||a.reset;return tn(B({},u,{loop:r,default:!1,pause:void 0,to:!i||k(n)?n:void 0,from:l?u.from:void 0,reset:l},a))}}function tn(u){var r=u=E(u),n=r.to,s=r.from,a=new Set;return o.is.obj(n)&&$n(n,a),o.is.obj(s)&&$n(s,a),u.keys=a.size?Array.from(a):null,u}function nt(u){var r=tn(u);return o.is.und(r.default)&&(r.default=j(r)),r}function $n(u,r){(0,o.rU)(u,function(n,s){return n!=null&&r.add(s)})}var tt=["onStart","onRest","onChange","onPause","onResume"];function _n(u,r,n){u.animation[n]=r[n]!==Ge(r,n)?Je(r[n],u.key):void 0}function $e(u,r){for(var n,s,a,i,l,h,p=arguments.length,v=new Array(p>2?p-2:0),R=2;R<p;R++)v[R-2]=arguments[R];(a=(i=u.animation)[r])==null||(n=a).call.apply(n,[i].concat(v)),(l=(h=u.defaultProps)[r])==null||(s=l).call.apply(s,[h].concat(v))}var zn=["onStart","onChange","onRest"],Nn=1,jn=function(){function u(r,n){fe()(this,u),this.id=Nn++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),r&&this.start(B({default:!0},r))}return ve()(u,[{key:"idle",get:function(){return!this._state.asyncTo&&Object.values(this.springs).every(function(n){return n.idle&&!n.isDelayed&&!n.isPaused})}},{key:"item",get:function(){return this._item},set:function(n){this._item=n}},{key:"get",value:function(){var n={};return this.each(function(s,a){return n[a]=s.get()}),n}},{key:"set",value:function(n){for(var s in n){var a=n[s];o.is.und(a)||this.springs[s].set(a)}}},{key:"update",value:function(n){return n&&this.queue.push(tn(n)),this}},{key:"start",value:function(n){var s=this.queue;return n?s=(0,o.qo)(n).map(tn):this.queue=[],this._flush?this._flush(this,s):(Gn(this,s),rn(this,s))}},{key:"stop",value:function(n,s){if(n!==!!n&&(s=n),s){var a=this.springs;(0,o.S6)((0,o.qo)(s),function(i){return a[i].stop(!!n)})}else Fe(this._state,this._lastAsyncId),this.each(function(i){return i.stop(!!n)});return this}},{key:"pause",value:function(n){if(o.is.und(n))this.start({pause:!0});else{var s=this.springs;(0,o.S6)((0,o.qo)(n),function(a){return s[a].pause()})}return this}},{key:"resume",value:function(n){if(o.is.und(n))this.start({pause:!1});else{var s=this.springs;(0,o.S6)((0,o.qo)(n),function(a){return s[a].resume()})}return this}},{key:"each",value:function(n){(0,o.rU)(this.springs,n)}},{key:"_onFrame",value:function(){var n=this,s=this._events,a=s.onStart,i=s.onChange,l=s.onRest,h=this._active.size>0,p=this._changed.size>0;(h&&!this._started||p&&!this._started)&&(this._started=!0,(0,o.yl)(a,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=n.get(),T(t,n,n._item)}));var v=!h&&this._started,R=p||v&&l.size?this.get():null;p&&i.size&&(0,o.yl)(i,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=R,T(t,n,n._item)}),v&&(this._started=!1,(0,o.yl)(l,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=R,T(t,n,n._item)}))}},{key:"eventObserved",value:function(n){if(n.type=="change")this._changed.add(n.parent),n.idle||this._active.add(n.parent);else if(n.type=="idle")this._active.delete(n.parent);else return;o.Wn.onFrame(this._onFrame)}}]),u}();function rn(u,r){return Promise.all(r.map(function(n){return Hn(u,n)})).then(function(n){return de(u,n)})}function Hn(u,r,n){return hn.apply(this,arguments)}function hn(){return hn=Ie()(J()().mark(function u(r,n,s){var a,i,l,h,p,v,R,I,O,T,t,e,f;return J()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a=n.keys,i=n.to,l=n.from,h=n.loop,p=n.onRest,v=n.onResolve,R=o.is.obj(n.default)&&n.default,h&&(n.loop=!1),i===!1&&(n.to=null),l===!1&&(n.from=null),I=o.is.arr(i)||o.is.fun(i)?i:void 0,I?(n.to=void 0,n.onRest=void 0,R&&(R.onRest=void 0)):(0,o.S6)(zn,function(d){var g=n[d];if(o.is.fun(g)){var b=r._events[d];n[d]=function(M){var w=M.finished,F=M.cancelled,W=b.get(g);W?(w||(W.finished=!1),F&&(W.cancelled=!0)):b.set(g,{value:null,finished:w||!1,cancelled:F||!1})},R&&(R[d]=n[d])}}),O=r._state,n.pause===!O.paused?(O.paused=n.pause,(0,o.bl)(n.pause?O.pauseQueue:O.resumeQueue)):O.paused&&(n.pause=!0),T=(a||Object.keys(r.springs)).map(function(d){return r.springs[d].start(n)}),t=n.cancel===!0||Ge(n,"cancel")===!0,(I||t&&O.asyncId)&&T.push(We(++r._lastAsyncId,{props:n,state:O,actions:{pause:o.ZT,resume:o.ZT,start:function(g,b){t?(Fe(O,r._lastAsyncId),b(en(r))):(g.onRest=p,b(Ae(I,g,O,r)))}}})),!O.paused){_.next=15;break}return _.next=15,new Promise(function(d){O.resumeQueue.add(d)});case 15:return _.t0=de,_.t1=r,_.next=19,Promise.all(T);case 19:if(_.t2=_.sent,e=(0,_.t0)(_.t1,_.t2),!(h&&e.finished&&!(s&&e.noop))){_.next=26;break}if(f=kn(n,h,i),!f){_.next=26;break}return Gn(r,[f]),_.abrupt("return",Hn(r,f,!0));case 26:return v&&o.Wn.batchedUpdates(function(){return v(e,r,r.item)}),_.abrupt("return",e);case 28:case"end":return _.stop()}},u)})),hn.apply(this,arguments)}function ze(u,r){var n=B({},u.springs);return r&&(0,o.S6)((0,o.qo)(r),function(s){o.is.und(s.keys)&&(s=tn(s)),o.is.obj(s.to)||(s=B({},s,{to:void 0})),Tn(n,s,function(a){return Qn(a)})}),Ne(u,n),n}function Ne(u,r){(0,o.rU)(r,function(n,s){u.springs[s]||(u.springs[s]=n,(0,o.UI)(n,u))})}function Qn(u,r){var n=new Cn;return n.key=u,r&&(0,o.UI)(n,r),n}function Tn(u,r,n){r.keys&&(0,o.S6)(r.keys,function(s){var a=u[s]||(u[s]=n(s));a._prepareNode(r)})}function Gn(u,r){(0,o.S6)(r,function(n){Tn(u.springs,n,function(s){return Qn(s,u)})})}function He(u,r){if(u==null)return{};var n={},s=Object.keys(u),a,i;for(i=0;i<s.length;i++)a=s[i],!(r.indexOf(a)>=0)&&(n[a]=u[a]);return n}var rt=["children"],vn=function(r){var n=r.children,s=He(r,rt),a=(0,le.useContext)(yn),i=s.pause||!!a.pause,l=s.immediate||!!a.immediate;s=(0,o.Pr)(function(){return{pause:i,immediate:l}},[i,l]);var h=yn.Provider;return le.createElement(h,{value:s},n)},yn=at(vn,{});vn.Provider=yn.Provider,vn.Consumer=yn.Consumer;function at(u,r){return Object.assign(u,le.createContext(r)),u.Provider._context=u,u.Consumer._context=u,u}var Dn=function(){var r=[],n=function(i){(0,o.ZR)();var l=[];return(0,o.S6)(r,function(h,p){if(o.is.und(i))l.push(h.start());else{var v=s(i,h,p);v&&l.push(h.start(v))}}),l};n.current=r,n.add=function(a){r.includes(a)||r.push(a)},n.delete=function(a){var i=r.indexOf(a);~i&&r.splice(i,1)},n.pause=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.pause.apply(i,ge()(a))}),this},n.resume=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.resume.apply(i,ge()(a))}),this},n.set=function(a){(0,o.S6)(r,function(i){return i.set(a)})},n.start=function(a){var i=this,l=[];return(0,o.S6)(r,function(h,p){if(o.is.und(a))l.push(h.start());else{var v=i._getProps(a,h,p);v&&l.push(h.start(v))}}),l},n.stop=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.stop.apply(i,ge()(a))}),this},n.update=function(a){var i=this;return(0,o.S6)(r,function(l,h){return l.update(i._getProps(a,l,h))}),this};var s=function(i,l,h){return o.is.fun(i)?i(h,l):i};return n._getProps=s,n};function Ln(u,r,n){var s=arguments,a=o.is.fun(r)&&r;a&&!n&&(n=[]);var i=(0,le.useMemo)(function(){return a||s.length==3?Dn():void 0},[]),l=(0,le.useRef)(0),h=(0,o.NW)(),p=(0,le.useMemo)(function(){return{ctrls:[],queue:[],flush:function(d,g){var b=ze(d,g),M=l.current>0&&!p.queue.length&&!Object.keys(b).some(function(w){return!d.springs[w]});return M?rn(d,g):new Promise(function(w){Ne(d,b),p.queue.push(function(){w(rn(d,g))}),h()})}}},[]),v=(0,le.useRef)(ge()(p.ctrls)),R=[],I=(0,o.zH)(u)||0;(0,le.useMemo)(function(){(0,o.S6)(v.current.slice(u,I),function(_){$(_,i),_.stop(!0)}),v.current.length=u,O(I,u)},[u]),(0,le.useMemo)(function(){O(0,Math.min(I,u))},n);function O(_,d){for(var g=_;g<d;g++){var b=v.current[g]||(v.current[g]=new jn(null,p.flush)),M=a?a(g,b):r[g];M&&(R[g]=nt(M))}}var T=v.current.map(function(_,d){return ze(_,R[d])}),t=(0,le.useContext)(vn),e=(0,o.zH)(t),f=t!==e&&m(t);(0,o.LI)(function(){l.current++,p.ctrls=v.current;var _=p.queue;_.length&&(p.queue=[],(0,o.S6)(_,function(d){return d()})),(0,o.S6)(v.current,function(d,g){i==null||i.add(d),f&&d.start({default:t});var b=R[g];b&&(Q(d,b.ref),d.ref?d.queue.push(b):d.start(b))})}),(0,o.tf)(function(){return function(){(0,o.S6)(p.ctrls,function(_){return _.stop(!0)})}});var c=T.map(function(_){return B({},_)});return i?[c,i]:c}function Qe(u,r){var n=o.is.fun(u),s=Ln(1,n?u:[u],n?r||[]:r),a=Pe()(s,2),i=Pe()(a[0],1),l=i[0],h=a[1];return n||arguments.length==2?[l,h]:l}var it=function(){return Dn()},ut=function(){return useState(it)[0]},bt=function(r,n){var s=useConstant(function(){return new Cn(r,n)});return useOnce(function(){return function(){s.stop()}}),s};function En(u,r,n){var s=is.fun(r)&&r;s&&!n&&(n=[]);var a=!0,i=void 0,l=Ln(u,function(v,R){var I=s?s(v,R):r;return i=I.ref,a=a&&I.reverse,I},n||[{}]);if(useIsomorphicLayoutEffect(function(){each(l[1].current,function(v,R){var I=l[1].current[R+(a?1:-1)];if(Q(v,i),v.ref){I&&v.update({to:I.springs});return}I?v.start({to:I.springs}):v.start()})},n),s||arguments.length==3){var h,p=(h=i)!=null?h:l[1];return p._getProps=function(v,R,I){var O=is.fun(v)?v(I,R):v;if(O){var T=p.current[I+(O.reverse?1:-1)];return T&&(O.to=T.springs),O}},l}return l[0]}var _e;(function(u){u.MOUNT="mount",u.ENTER="enter",u.UPDATE="update",u.LEAVE="leave"})(_e||(_e={}));function st(u,r,n){var s=arguments,a=is.fun(r)&&r,i=a?a():r,l=i.reset,h=i.sort,p=i.trail,v=p===void 0?0:p,R=i.expires,I=R===void 0?!0:R,O=i.exitBeforeEnter,T=O===void 0?!1:O,t=i.onDestroyed,e=i.ref,f=i.config,c=useMemo(function(){return a||s.length==3?Dn():void 0},[]),_=toArray(u),d=[],g=useRef(null),b=l?null:g.current;useIsomorphicLayoutEffect(function(){g.current=d}),useOnce(function(){return each(d,function(C){c==null||c.add(C.ctrl),C.ctrl.ref=c}),function(){each(g.current,function(C){C.expired&&clearTimeout(C.expirationId),$(C.ctrl,c),C.ctrl.stop(!0)})}});var M=ot(_,a?a():r,b),w=l&&g.current||[];useIsomorphicLayoutEffect(function(){return each(w,function(C){var G=C.ctrl,q=C.item,Me=C.key;$(G,c),ee(t,q,Me)})});var F=[];if(b&&each(b,function(C,G){C.expired?(clearTimeout(C.expirationId),w.push(C)):(G=F[G]=M.indexOf(C.key),~G&&(d[G]=C))}),each(_,function(C,G){d[G]||(d[G]={key:M[G],item:C,phase:_e.MOUNT,ctrl:new jn},d[G].ctrl.item=C)}),F.length){var W=-1,Y=a?a():r,z=Y.leave;each(F,function(C,G){var q=b[G];~C?(W=d.indexOf(q),d[W]=B({},q,{item:_[C]})):z&&d.splice(++W,0,q)})}is.fun(h)&&d.sort(function(C,G){return h(C.item,G.item)});var De=-v,Z=useForceUpdate(),ke=j(r),ue=new Map,se=useRef(new Map),xe=useRef(!1);each(d,function(C,G){var q=C.key,Me=C.phase,ye=a?a():r,Ee,pe,xt=ee(ye.delay||0,q);if(Me==_e.MOUNT)Ee=ye.enter,pe=_e.ENTER;else{var At=M.indexOf(q)<0;if(Me!=_e.LEAVE)if(At)Ee=ye.leave,pe=_e.LEAVE;else if(Ee=ye.update)pe=_e.UPDATE;else return;else if(!At)Ee=ye.enter,pe=_e.ENTER;else return}if(Ee=ee(Ee,C.item,G),Ee=is.obj(Ee)?E(Ee):{to:Ee},!Ee.config){var Mt=f||ke.config;Ee.config=ee(Mt,C.item,G,pe)}De+=v;var bn=B({},ke,{delay:xt+De,ref:e,immediate:ye.immediate,reset:!1},Ee);if(pe==_e.ENTER&&is.und(bn.from)){var vt=a?a():r,Ct=is.und(vt.initial)||b?vt.from:vt.initial;bn.from=ee(Ct,C.item,G)}var kt=bn.onResolve;bn.onResolve=function(It){ee(kt,It);var mt=g.current,un=mt.find(function(Bn){return Bn.key===q});if(un&&!(It.cancelled&&un.phase!=_e.UPDATE)&&un.ctrl.idle){var Rt=mt.every(function(Bn){return Bn.ctrl.idle});if(un.phase==_e.LEAVE){var pt=ee(I,un.item);if(pt!==!1){var gt=pt===!0?0:pt;if(un.expired=!0,!Rt&&gt>0){gt<=2147483647&&(un.expirationId=setTimeout(Z,gt));return}}}Rt&&mt.some(function(Bn){return Bn.expired})&&(se.current.delete(un),T&&(xe.current=!0),Z())}};var wt=ze(C.ctrl,bn);pe===_e.LEAVE&&T?se.current.set(C,{phase:pe,springs:wt,payload:bn}):ue.set(C,{phase:pe,springs:wt,payload:bn})});var ne=useContext(vn),mn=usePrev(ne),pn=ne!==mn&&m(ne);useIsomorphicLayoutEffect(function(){pn&&each(d,function(C){C.ctrl.start({default:ne})})},[ne]),each(ue,function(C,G){if(se.current.size){var q=d.findIndex(function(Me){return Me.key===G.key});d.splice(q,1)}}),useIsomorphicLayoutEffect(function(){each(se.current.size?se.current:ue,function(C,G){var q=C.phase,Me=C.payload,ye=G.ctrl;G.phase=q,c==null||c.add(ye),pn&&q==_e.ENTER&&ye.start({default:ne}),Me&&(Q(ye,Me.ref),(ye.ref||c)&&!xe.current?ye.update(Me):(ye.start(Me),xe.current&&(xe.current=!1)))})},l?void 0:n);var gn=function(G){return React.createElement(React.Fragment,null,d.map(function(q,Me){var ye=ue.get(q)||q.ctrl,Ee=ye.springs,pe=G(B({},Ee),q.item,q,Me);return pe&&pe.type?React.createElement(pe.type,B({},pe.props,{key:is.str(q.key)||is.num(q.key)?q.key:q.ctrl.id,ref:pe.ref})):pe}))};return c?[gn,c]:gn}var Un=1;function ot(u,r,n){var s=r.key,a=r.keys,i=a===void 0?s:a;if(i===null){var l=new Set;return u.map(function(h){var p=n&&n.find(function(v){return v.item===h&&v.phase!==_e.LEAVE&&!l.has(v)});return p?(l.add(p),p.key):Un++})}return is.und(i)?u:is.fun(i)?u.map(i):toArray(i)}var ft=null,Xn=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.container,s=He(r,ft),a=Qe(function(){return B({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0},s)},[]),i=_slicedToArray(a,2),l=i[0],h=i[1];return useIsomorphicLayoutEffect(function(){var p=onScroll(function(v){var R=v.x,I=v.y;h.start({scrollX:R.current,scrollXProgress:R.progress,scrollY:I.current,scrollYProgress:I.progress})},{container:(n==null?void 0:n.current)||void 0});return function(){each(Object.values(l),function(v){return v.stop()}),p()}},[]),l},Yn=null,yt=function(r){var n=r.container,s=He(r,Yn),a=Qe(function(){return B({width:0,height:0},s)},[]),i=_slicedToArray(a,2),l=i[0],h=i[1];return useIsomorphicLayoutEffect(function(){var p=onResize(function(v){var R=v.width,I=v.height;h.start({width:R,height:I,immediate:l.width.get()===0||l.height.get()===0})},{container:(n==null?void 0:n.current)||void 0});return function(){each(Object.values(l),function(v){return v.stop()}),p()}},[]),l},lt=null,ct=null,dt={any:0,all:1};function Et(u,r){var n=useState(!1),s=_slicedToArray(n,2),a=s[0],i=s[1],l=useRef(),h=is.fun(u)&&u,p=h?h():{},v=p.to,R=v===void 0?{}:v,I=p.from,O=I===void 0?{}:I,T=He(p,lt),t=h?r:u,e=Qe(function(){return B({from:O},T)},[]),f=_slicedToArray(e,2),c=f[0],_=f[1];return useIsomorphicLayoutEffect(function(){var d=l.current,g=t??{},b=g.root,M=g.once,w=g.amount,F=w===void 0?"any":w,W=He(g,ct);if(!(!d||M&&a||typeof IntersectionObserver>"u")){var Y=new WeakMap,z=function(){R&&_.start(R),i(!0);var ue=function(){O&&_.start(O),i(!1)};return M?void 0:ue},De=function(ue){ue.forEach(function(se){var xe=Y.get(se.target);if(se.isIntersecting!==!!xe)if(se.isIntersecting){var ne=z();is.fun(ne)?Y.set(se.target,ne):Z.unobserve(se.target)}else xe&&(xe(),Y.delete(se.target))})},Z=new IntersectionObserver(De,B({root:b&&b.current||void 0,threshold:typeof F=="number"||Array.isArray(F)?F:dt[F]},W));return Z.observe(d),function(){return Z.unobserve(d)}}},[t]),h?[l,c]:[l,a]}var an=null;function Vn(u){var r=u.children,n=He(u,an);return r(Qe(n))}var _t=null;function Pt(u){var r=u.items,n=u.children,s=He(u,_t),a=En(r.length,s);return r.map(function(i,l){var h=n(i,l);return is.fun(h)?h(a[l]):h})}var Pn=null;function On(u){var r=u.items,n=u.children,s=He(u,Pn);return st(r,s)(n)}var Wn=function(u){te()(n,u);var r=re()(n);function n(s,a){var i;fe()(this,n),i=r.call(this),i.key=void 0,i.idle=!0,i.calc=void 0,i._active=new Set,i.source=s,i.calc=o.mD.apply(void 0,ge()(a));var l=i._get(),h=(0,V.sb)(l);return(0,V.f3)(Le()(i),h.create(l)),i}return ve()(n,[{key:"advance",value:function(a){var i=this._get(),l=this.get();(0,o.Xy)(i,l)||((0,V.ys)(this).setValue(i),this._onChange(i,this.idle)),!this.idle&&Zn(this._active)&&Jn(this)}},{key:"_get",value:function(){var a=o.is.arr(this.source)?this.source.map(o.je):(0,o.qo)((0,o.je)(this.source));return this.calc.apply(this,ge()(a))}},{key:"_start",value:function(){var a=this;this.idle&&!Zn(this._active)&&(this.idle=!1,(0,o.S6)((0,V.He)(this),function(i){i.done=!1}),o.OH.skipAnimation?(o.Wn.batchedUpdates(function(){return a.advance()}),Jn(this)):o.fT.start(this))}},{key:"_attach",value:function(){var a=this,i=1;(0,o.S6)((0,o.qo)(this.source),function(l){(0,o.j$)(l)&&(0,o.UI)(l,a),An(l)&&(l.idle||a._active.add(l),i=Math.max(i,l.priority+1))}),this.priority=i,this._start()}},{key:"_detach",value:function(){var a=this;(0,o.S6)((0,o.qo)(this.source),function(i){(0,o.j$)(i)&&(0,o.iL)(i,a)}),this._active.clear(),Jn(this)}},{key:"eventObserved",value:function(a){a.type=="change"?a.idle?this.advance():(this._active.add(a.parent),this._start()):a.type=="idle"?this._active.delete(a.parent):a.type=="priority"&&(this.priority=(0,o.qo)(this.source).reduce(function(i,l){return Math.max(i,(An(l)?l.priority:0)+1)},0))}}]),n}(wn);function ht(u){return u.idle!==!1}function Zn(u){return!u.size||Array.from(u).every(ht)}function Jn(u){u.idle||(u.idle=!0,(0,o.S6)((0,V.He)(u),function(r){r.done=!0}),(0,o.k0)(u,{type:"idle",parent:u}))}var Ot=function(r){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return new Wn(r,s)},St=function(r){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return deprecateInterpolate(),new Wn(r,s)};o.OH.assign({createStringInterpolator:o.qS,to:function(r,n){return new Wn(r,n)}});var Sn=o.fT.advance},65736:function(qn,sn,S){S.d(sn,{B0:function(){return vn},OH:function(){return ce},UI:function(){return at},k0:function(){return rt},O9:function(){return en},mD:function(){return tn},qS:function(){return ft},dE:function(){return ee},ZR:function(){return dt},LW:function(){return lt},S6:function(){return Ge},rU:function(){return qe},Z5:function(){return Hn},yl:function(){return D},bl:function(){return P},fT:function(){return me},Ll:function(){return Gn},je:function(){return Tn},j$:function(){return Qn},is:function(){return ie},Df:function(){return Et},Xy:function(){return Je},ZT:function(){return B},Wn:function(){return L},iL:function(){return Dn},qo:function(){return j},NW:function(){return h},LI:function(){return i},Pr:function(){return p},tf:function(){return R},zH:function(){return O}});var on=S(5574),Le=S.n(on),fn=S(72004),ge=S.n(fn),ln=S(12444),Pe=S.n(ln),cn=S(19632),je=S.n(cn),Ue=ae(),L=function(e){return he(e,Ue)},we=ae();L.write=function(t){return he(t,we)};var te=ae();L.onStart=function(t){return he(t,te)};var N=ae();L.onFrame=function(t){return he(t,N)};var re=ae();L.onFinish=function(t){return he(t,re)};var x=[];L.setTimeout=function(t,e){var f=L.now()+e,c=function d(){var g=x.findIndex(function(b){return b.cancel==d});~g&&x.splice(g,1),oe-=~g?1:0},_={time:f,handler:t,cancel:c};return x.splice(Oe(f),0,_),oe+=1,ve(),_};var Oe=function(e){return~(~x.findIndex(function(f){return f.time>e})||~x.length)};L.cancel=function(t){te.delete(t),N.delete(t),re.delete(t),Ue.delete(t),we.delete(t)},L.sync=function(t){Ie=!0,L.batchedUpdates(t),Ie=!1},L.throttle=function(t){var e;function f(){try{t.apply(void 0,je()(e))}finally{e=null}}function c(){for(var _=arguments.length,d=new Array(_),g=0;g<_;g++)d[g]=arguments[g];e=d,L.onStart(f)}return c.handler=t,c.cancel=function(){te.delete(f),e=null},c};var Se=typeof window<"u"?window.requestAnimationFrame:function(){};L.use=function(t){return Se=t},L.now=typeof performance<"u"?function(){return performance.now()}:Date.now,L.batchedUpdates=function(t){return t()},L.catch=console.error,L.frameLoop="always",L.advance=function(){L.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Te()};var J=-1,oe=0,Ie=!1;function he(t,e){Ie?(e.delete(t),t(0)):(e.add(t),ve())}function ve(){J<0&&(J=0,L.frameLoop!=="demand"&&Se(fe))}function Ve(){J=-1}function fe(){~J&&(Se(fe),L.batchedUpdates(Te))}function Te(){var t=J;J=L.now();var e=Oe(J);if(e&&(o(x.splice(0,e),function(f){return f.handler()}),oe-=e),!oe){Ve();return}te.flush(),Ue.flush(t?Math.min(64,J-t):16.667),N.flush(),we.flush(),re.flush()}function ae(){var t=new Set,e=t;return{add:function(c){oe+=e==t&&!t.has(c)?1:0,t.add(c)},delete:function(c){return oe-=e==t&&t.has(c)?1:0,t.delete(c)},flush:function(c){e.size&&(t=new Set,oe-=e.size,o(e,function(_){return _(c)&&t.add(_)}),oe+=t.size,e=t)}}}function o(t,e){t.forEach(function(f){try{e(f)}catch(c){L.catch(c)}})}var le={count:function(){return oe},isRunning:function(){return J>=0},clear:function(){J=-1,x=[],te=ae(),Ue=ae(),N=ae(),we=ae(),re=ae(),oe=0}},V=S(67294);function B(){}var ee=function(e,f,c){return Object.defineProperty(e,f,{value:c,writable:!0,configurable:!0})},ie={arr:Array.isArray,obj:function(e){return!!e&&e.constructor.name==="Object"},fun:function(e){return typeof e=="function"},str:function(e){return typeof e=="string"},num:function(e){return typeof e=="number"},und:function(e){return e===void 0}};function Je(t,e){if(ie.arr(t)){if(!ie.arr(e)||t.length!==e.length)return!1;for(var f=0;f<t.length;f++)if(t[f]!==e[f])return!1;return!0}return t===e}var Ge=function(e,f){return e.forEach(f)};function qe(t,e,f){if(ie.arr(t)){for(var c=0;c<t.length;c++)e.call(f,t[c],"".concat(c));return}for(var _ in t)t.hasOwnProperty(_)&&e.call(f,t[_],_)}var j=function(e){return ie.und(e)?[]:ie.arr(e)?e:[e]};function D(t,e){if(t.size){var f=Array.from(t);t.clear(),Ge(f,e)}}var P=function(e){for(var f=arguments.length,c=new Array(f>1?f-1:0),_=1;_<f;_++)c[_-1]=arguments[_];return D(e,function(d){return d.apply(void 0,c)})},y=function(){return typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)},E,A,m=null,k=!1,$=B,Q=function(e){e.to&&(A=e.to),e.now&&(L.now=e.now),e.colors!==void 0&&(m=e.colors),e.skipAnimation!=null&&(k=e.skipAnimation),e.createStringInterpolator&&(E=e.createStringInterpolator),e.requestAnimationFrame&&L.use(e.requestAnimationFrame),e.batchedUpdates&&(L.batchedUpdates=e.batchedUpdates),e.willAdvance&&($=e.willAdvance),e.frameLoop&&(L.frameLoop=e.frameLoop)},ce=Object.freeze({__proto__:null,get createStringInterpolator(){return E},get to(){return A},get colors(){return m},get skipAnimation(){return k},get willAdvance(){return $},assign:Q}),X=new Set,K=[],H=[],U=0,me={get idle(){return!X.size&&!K.length},start:function(e){U>e.priority?(X.add(e),L.onStart(Xe)):(Re(e),L(de))},advance:de,sort:function(e){if(U)L.onFrame(function(){return me.sort(e)});else{var f=K.indexOf(e);~f&&(K.splice(f,1),We(e))}},clear:function(){K=[],X.clear()}};function Xe(){X.forEach(Re),X.clear(),L(de)}function Re(t){K.includes(t)||We(t)}function We(t){K.splice(Be(K,function(e){return e.priority>t.priority}),0,t)}function de(t){for(var e=H,f=0;f<K.length;f++){var c=K[f];U=c.priority,c.idle||($(c),c.advance(t),c.idle||e.push(c))}return U=0,H=K,H.length=0,K=e,K.length>0}function Be(t,e){var f=t.findIndex(e);return f<0?t.length:f}var be=function(e,f,c){return Math.min(Math.max(c,e),f)},en={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ae="[-+]?\\d*\\.?\\d+",Fe=Ae+"%";function dn(){for(var t=arguments.length,e=new Array(t),f=0;f<t;f++)e[f]=arguments[f];return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Fn=new RegExp("rgb"+dn(Ae,Ae,Ae)),An=new RegExp("rgba"+dn(Ae,Ae,Ae,Ae)),et=new RegExp("hsl"+dn(Ae,Fe,Fe)),wn=new RegExp("hsla"+dn(Ae,Fe,Fe,Ae)),Ye=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Kn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,In=/^#([0-9a-fA-F]{6})$/,Rn=/^#([0-9a-fA-F]{8})$/;function xn(t){var e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=In.exec(t))?parseInt(e[1]+"ff",16)>>>0:m&&m[t]!==void 0?m[t]:(e=Fn.exec(t))?(Ze(e[1])<<24|Ze(e[2])<<16|Ze(e[3])<<8|255)>>>0:(e=An.exec(t))?(Ze(e[1])<<24|Ze(e[2])<<16|Ze(e[3])<<8|Cn(e[4]))>>>0:(e=Ye.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Rn.exec(t))?parseInt(e[1],16)>>>0:(e=Kn.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=et.exec(t))?(nn(Mn(e[1]),Ke(e[2]),Ke(e[3]))|255)>>>0:(e=wn.exec(t))?(nn(Mn(e[1]),Ke(e[2]),Ke(e[3]))|Cn(e[4]))>>>0:null}function Ce(t,e,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?t+(e-t)*6*f:f<1/2?e:f<2/3?t+(e-t)*(2/3-f)*6:t}function nn(t,e,f){var c=f<.5?f*(1+e):f+e-f*e,_=2*f-c,d=Ce(_,c,t+1/3),g=Ce(_,c,t),b=Ce(_,c,t-1/3);return Math.round(d*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8}function Ze(t){var e=parseInt(t,10);return e<0?0:e>255?255:e}function Mn(t){var e=parseFloat(t);return(e%360+360)%360/360}function Cn(t){var e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ke(t){var e=parseFloat(t);return e<0?0:e>100?1:e/100}function kn(t){var e=xn(t);if(e===null)return t;e=e||0;var f=(e&4278190080)>>>24,c=(e&16711680)>>>16,_=(e&65280)>>>8,d=(e&255)/255;return"rgba(".concat(f,", ").concat(c,", ").concat(_,", ").concat(d,")")}var tn=function t(e,f,c){if(ie.fun(e))return e;if(ie.arr(e))return t({range:e,output:f,extrapolate:c});if(ie.str(e.output[0]))return E(e);var _=e,d=_.output,g=_.range||[0,1],b=_.extrapolateLeft||_.extrapolate||"extend",M=_.extrapolateRight||_.extrapolate||"extend",w=_.easing||function(F){return F};return function(F){var W=$n(F,g);return nt(F,g[W],g[W+1],d[W],d[W+1],w,b,M,_.map)}};function nt(t,e,f,c,_,d,g,b,M){var w=M?M(t):t;if(w<e){if(g==="identity")return w;g==="clamp"&&(w=e)}if(w>f){if(b==="identity")return w;b==="clamp"&&(w=f)}return c===_?c:e===f?t<=e?c:_:(e===-1/0?w=-w:f===1/0?w=w-e:w=(w-e)/(f-e),w=d(w),c===-1/0?w=-w:_===1/0?w=w+c:w=w*(_-c)+c,w)}function $n(t,e){for(var f=1;f<e.length-1&&!(e[f]>=t);++f);return f-1}var tt=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"end";return function(c){c=f==="end"?Math.min(c,.999):Math.max(c,.001);var _=c*e,d=f==="end"?Math.floor(_):Math.ceil(_);return be(0,1,d/e)}},_n=1.70158,$e=_n*1.525,zn=_n+1,Nn=2*Math.PI/3,jn=2*Math.PI/4.5,rn=function(e){var f=7.5625,c=2.75;return e<1/c?f*e*e:e<2/c?f*(e-=1.5/c)*e+.75:e<2.5/c?f*(e-=2.25/c)*e+.9375:f*(e-=2.625/c)*e+.984375},Hn={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-Math.pow(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-Math.pow(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-Math.pow(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},easeInSine:function(e){return 1-Math.cos(e*Math.PI/2)},easeOutSine:function(e){return Math.sin(e*Math.PI/2)},easeInOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},easeInExpo:function(e){return e===0?0:Math.pow(2,10*e-10)},easeOutExpo:function(e){return e===1?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},easeInCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},easeInBack:function(e){return zn*e*e*e-_n*e*e},easeOutBack:function(e){return 1+zn*Math.pow(e-1,3)+_n*Math.pow(e-1,2)},easeInOutBack:function(e){return e<.5?Math.pow(2*e,2)*(($e+1)*2*e-$e)/2:(Math.pow(2*e-2,2)*(($e+1)*(e*2-2)+$e)+2)/2},easeInElastic:function(e){return e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Nn)},easeOutElastic:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Nn)+1},easeInOutElastic:function(e){return e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*jn))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*jn)/2+1},easeInBounce:function(e){return 1-rn(1-e)},easeOutBounce:rn,easeInOutBounce:function(e){return e<.5?(1-rn(1-2*e))/2:(1+rn(2*e-1))/2},steps:tt};function hn(){return hn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var f=arguments[e];for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(t[c]=f[c])}return t},hn.apply(this,arguments)}var ze=Symbol.for("FluidValue.get"),Ne=Symbol.for("FluidValue.observers"),Qn=function(e){return!!(e&&e[ze])},Tn=function(e){return e&&e[ze]?e[ze]():e},Gn=function(e){return e[Ne]||null};function He(t,e){t.eventObserved?t.eventObserved(e):t(e)}function rt(t,e){var f=t[Ne];f&&f.forEach(function(c){He(c,e)})}var vn=ge()(function t(e){if(Pe()(this,t),this[ze]=void 0,this[Ne]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");yn(this,e)}),yn=function(e,f){return Ln(e,ze,f)};function at(t,e){if(t[ze]){var f=t[Ne];f||Ln(t,Ne,f=new Set),f.has(e)||(f.add(e),t.observerAdded&&t.observerAdded(f.size,e))}return e}function Dn(t,e){var f=t[Ne];if(f&&f.has(e)){var c=f.size-1;c?f.delete(e):t[Ne]=null,t.observerRemoved&&t.observerRemoved(c,e)}}var Ln=function(e,f,c){return Object.defineProperty(e,f,{value:c,writable:!0,configurable:!0})},Qe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,it=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ut=new RegExp("(".concat(Qe.source,")(%|[a-z]+)"),"i"),bt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,En=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_e=function t(e){var f=st(e),c=Le()(f,2),_=c[0],d=c[1];if(!_||y())return e;var g=window.getComputedStyle(document.documentElement).getPropertyValue(_);if(g)return g.trim();if(d&&d.startsWith("--")){var b=window.getComputedStyle(document.documentElement).getPropertyValue(d);return b||e}else{if(d&&En.test(d))return t(d);if(d)return d}return e},st=function(e){var f=En.exec(e);if(!f)return[,];var c=Le()(f,3),_=c[1],d=c[2];return[_,d]},Un,ot=function(e,f,c,_,d){return"rgba(".concat(Math.round(f),", ").concat(Math.round(c),", ").concat(Math.round(_),", ").concat(d,")")},ft=function(e){Un||(Un=m?new RegExp("(".concat(Object.keys(m).join("|"),")(?!\\w)"),"g"):/^\b$/);var f=e.output.map(function(g){return Tn(g).replace(En,_e).replace(it,kn).replace(Un,kn)}),c=f.map(function(g){return g.match(Qe).map(Number)}),_=c[0].map(function(g,b){return c.map(function(M){if(!(b in M))throw Error('The arity of each "output" value must be equal');return M[b]})}),d=_.map(function(g){return tn(hn({},e,{output:g}))});return function(g){var b,M=!ut.test(f[0])&&((b=f.find(function(F){return ut.test(F)}))==null?void 0:b.replace(Qe,"")),w=0;return f[0].replace(Qe,function(){return"".concat(d[w++](g)).concat(M||"")}).replace(bt,ot)}},Xn="react-spring: ",Yn=function(e){var f=e,c=!1;if(typeof f!="function")throw new TypeError("".concat(Xn,"once requires a function parameter"));return function(){c||(f.apply(void 0,arguments),c=!0)}},yt=Yn(console.warn);function lt(){yt("".concat(Xn,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var ct=Yn(console.warn);function dt(){ct("".concat(Xn,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions'))}function Et(t){return ie.str(t)&&(t[0]=="#"||/\d/.test(t)||!y()&&En.test(t)||t in(m||{}))}var an,Vn=new WeakMap,_t=function(e){return e.forEach(function(f){var c=f.target,_=f.contentRect,d;return(d=Vn.get(c))==null?void 0:d.forEach(function(g){return g(_)})})};function Pt(t,e){an||typeof ResizeObserver<"u"&&(an=new ResizeObserver(_t));var f=Vn.get(e);return f||(f=new Set,Vn.set(e,f)),f.add(t),an&&an.observe(e),function(){var c=Vn.get(e);c&&(c.delete(t),!c.size&&an&&an.unobserve(e))}}var Pn=new Set,On,Wn=function(){var e=function(){Pn.forEach(function(c){return c({width:window.innerWidth,height:window.innerHeight})})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},ht=function(e){return Pn.add(e),On||(On=Wn()),function(){Pn.delete(e),!Pn.size&&On&&(On(),On=void 0)}},Zn=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.container,_=c===void 0?document.documentElement:c;return _===document.documentElement?ht(e):Pt(e,_)},Jn=function(e,f,c){return f-e===0?1:(c-e)/(f-e)},Ot={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},St=null,Sn=new WeakMap,u=new WeakMap,r=new WeakMap,n=function(e){return e===document.documentElement?window:e},s=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.container,_=c===void 0?document.documentElement:c,d=r.get(_);d||(d=new Set,r.set(_,d));var g=new St(e,_);if(d.add(g),!Sn.has(_)){var b=function(){var W;return(W=d)==null||W.forEach(function(Y){return Y.advance()}),!0};Sn.set(_,b);var M=n(_);window.addEventListener("resize",b,{passive:!0}),_!==document.documentElement&&u.set(_,Zn(b,{container:_})),M.addEventListener("scroll",b,{passive:!0})}var w=Sn.get(_);return raf(w),function(){raf.cancel(w);var F=r.get(_);if(F&&(F.delete(g),!F.size)){var W=Sn.get(_);if(Sn.delete(_),W){var Y;n(_).removeEventListener("scroll",W),window.removeEventListener("resize",W),(Y=u.get(_))==null||Y()}}}};function a(t){var e=useRef(null);return e.current===null&&(e.current=t()),e.current}var i=y()?V.useEffect:V.useLayoutEffect,l=function(){var e=(0,V.useRef)(!1);return i(function(){return e.current=!0,function(){e.current=!1}},[]),e};function h(){var t=(0,V.useState)()[1],e=l();return function(){e.current&&t(Math.random())}}function p(t,e){var f=(0,V.useState)(function(){return{inputs:e,result:t()}}),c=Le()(f,1),_=c[0],d=(0,V.useRef)(),g=d.current,b=g;if(b){var M=!!(e&&b.inputs&&v(e,b.inputs));M||(b={inputs:e,result:t()})}else b=_;return(0,V.useEffect)(function(){d.current=b,g==_&&(_.inputs=_.result=void 0)},[b]),b.result}function v(t,e){if(t.length!==e.length)return!1;for(var f=0;f<t.length;f++)if(t[f]!==e[f])return!1;return!0}var R=function(e){return(0,V.useEffect)(e,I)},I=[];function O(t){var e=(0,V.useRef)();return(0,V.useEffect)(function(){e.current=t}),e.current}var T=function(){var e=useState(null),f=_slicedToArray(e,2),c=f[0],_=f[1];return i(function(){var d=window.matchMedia("(prefers-reduced-motion)"),g=function(M){_(M.matches),Q({skipAnimation:M.matches})};return g(d),d.addEventListener("change",g),function(){d.removeEventListener("change",g)}},[]),c}},36740:function(qn,sn,S){S.d(sn,{Globals:function(){return we.Globals},animated:function(){return qe},to:function(){return we.to},useSpring:function(){return we.useSpring}});var on=S(5574),Le=S.n(on),fn=S(72004),ge=S.n(fn),ln=S(12444),Pe=S.n(ln),cn=S(31996),je=S.n(cn),Ue=S(26037),L=S.n(Ue),we=S(99799),te=S(73935),N=S(65736),re=S(95309);function x(j,D){if(j==null)return{};var P={},y=Object.keys(j),E,A;for(A=0;A<y.length;A++)E=y[A],!(D.indexOf(E)>=0)&&(P[E]=j[E]);return P}var Oe=["style","children","scrollTop","scrollLeft","viewBox"],Se=/^--/;function J(j,D){return D==null||typeof D=="boolean"||D===""?"":typeof D=="number"&&D!==0&&!Se.test(j)&&!(he.hasOwnProperty(j)&&he[j])?D+"px":(""+D).trim()}var oe={};function Ie(j,D){if(!j.nodeType||!j.setAttribute)return!1;var P=j.nodeName==="filter"||j.parentNode&&j.parentNode.nodeName==="filter",y=D,E=y.style,A=y.children,m=y.scrollTop,k=y.scrollLeft,$=y.viewBox,Q=x(y,Oe),ce=Object.values(Q),X=Object.keys(Q).map(function(U){return P||j.hasAttribute(U)?U:oe[U]||(oe[U]=U.replace(/([A-Z])/g,function(me){return"-"+me.toLowerCase()}))});A!==void 0&&(j.textContent=A);for(var K in E)if(E.hasOwnProperty(K)){var H=J(K,E[K]);Se.test(K)?j.style.setProperty(K,H):j.style[K]=H}X.forEach(function(U,me){j.setAttribute(U,ce[me])}),m!==void 0&&(j.scrollTop=m),k!==void 0&&(j.scrollLeft=k),$!==void 0&&j.setAttribute("viewBox",$)}var he={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=function(D,P){return D+P.charAt(0).toUpperCase()+P.substring(1)},Ve=["Webkit","Ms","Moz","O"];he=Object.keys(he).reduce(function(j,D){return Ve.forEach(function(P){return j[ve(P,D)]=j[D]}),j},he);var fe=["x","y","z"],Te=/^(matrix|translate|scale|rotate|skew)/,ae=/^(translate)/,o=/^(rotate|skew)/,le=function(D,P){return N.is.num(D)&&D!==0?D+P:D},V=function j(D,P){return N.is.arr(D)?D.every(function(y){return j(y,P)}):N.is.num(D)?D===P:parseFloat(D)===P},B=function(j){je()(P,j);var D=L()(P);function P(y){Pe()(this,P);var E=y.x,A=y.y,m=y.z,k=x(y,fe),$=[],Q=[];return(E||A||m)&&($.push([E||0,A||0,m||0]),Q.push(function(ce){return["translate3d(".concat(ce.map(function(X){return le(X,"px")}).join(","),")"),V(ce,0)]})),(0,N.rU)(k,function(ce,X){if(X==="transform")$.push([ce||""]),Q.push(function(H){return[H,H===""]});else if(Te.test(X)){if(delete k[X],N.is.und(ce))return;var K=ae.test(X)?"px":o.test(X)?"deg":"";$.push((0,N.qo)(ce)),Q.push(X==="rotate3d"?function(H){var U=Le()(H,4),me=U[0],Xe=U[1],Re=U[2],We=U[3];return["rotate3d(".concat(me,",").concat(Xe,",").concat(Re,",").concat(le(We,K),")"),V(We,0)]}:function(H){return["".concat(X,"(").concat(H.map(function(U){return le(U,K)}).join(","),")"),V(H,X.startsWith("scale")?1:0)]})}}),$.length&&(k.transform=new ee($,Q)),D.call(this,k)}return ge()(P)}(re.rS),ee=function(j){je()(P,j);var D=L()(P);function P(y,E){var A;return Pe()(this,P),A=D.call(this),A._value=null,A.inputs=y,A.transforms=E,A}return ge()(P,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var E=this,A="",m=!0;return(0,N.S6)(this.inputs,function(k,$){var Q=(0,N.je)(k[0]),ce=E.transforms[$](N.is.arr(Q)?Q:k.map(N.je)),X=Le()(ce,2),K=X[0],H=X[1];A+=" "+K,m=m&&H}),m?"none":A}},{key:"observerAdded",value:function(E){var A=this;E==1&&(0,N.S6)(this.inputs,function(m){return(0,N.S6)(m,function(k){return(0,N.j$)(k)&&(0,N.UI)(k,A)})})}},{key:"observerRemoved",value:function(E){var A=this;E==0&&(0,N.S6)(this.inputs,function(m){return(0,N.S6)(m,function(k){return(0,N.j$)(k)&&(0,N.iL)(k,A)})})}},{key:"eventObserved",value:function(E){E.type=="change"&&(this._value=null),(0,N.k0)(this,E)}}]),P}(N.B0),ie=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Je=["scrollTop","scrollLeft"];we.Globals.assign({batchedUpdates:te.unstable_batchedUpdates,createStringInterpolator:N.qS,colors:N.O9});var Ge=(0,re.Ld)(ie,{applyAnimatedValues:Ie,createAnimatedStyle:function(D){return new B(D)},getComponentProps:function(D){var P=x(D,Je);return P}}),qe=Ge.animated}}]);