@whyour/qinglong 0.3.2 → 0.4.0
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.
- package/README-en.md +47 -88
- package/README.md +48 -87
- package/package.json +5 -1
- package/sample/notify.js +19 -9
- package/sample/notify.py +89 -47
- package/shell/api.sh +15 -15
- package/shell/otask.sh +1 -1
- package/shell/update.sh +12 -13
- package/static/build/api/system.js +1 -2
- package/static/build/api/user.js +5 -1
- package/static/build/config/serverEnv.js +1 -1
- package/static/build/data/dependence.js +1 -1
- package/static/build/data/notify.js +2 -0
- package/static/build/data/open.js +1 -8
- package/static/build/loaders/express.js +1 -9
- package/static/build/loaders/initFile.js +24 -6
- package/static/build/loaders/sentry.js +7 -1
- package/static/build/schedule/addCron.js +2 -2
- package/static/build/schedule/health.js +2 -2
- package/static/build/services/cron.js +50 -44
- package/static/build/services/dependence.js +82 -79
- package/static/build/services/env.js +1 -1
- package/static/build/services/notify.js +5 -5
- package/static/build/services/open.js +1 -1
- package/static/build/services/schedule.js +42 -40
- package/static/build/services/subscription.js +7 -13
- package/static/build/services/system.js +2 -2
- package/static/build/shared/pLimit.js +16 -0
- package/static/build/shared/runCron.js +29 -0
- package/static/dist/{1571.a97c18af.async.js → 1571.68121491.async.js} +3 -3
- package/static/dist/{9371.27629d57.async.js → 1654.e06fbac5.async.js} +1 -1
- package/static/dist/2260.d9fbd460.async.js +1 -0
- package/static/dist/2536.a60b8e3c.async.js +1 -0
- package/static/dist/{2618.2d258f44.async.js → 2618.1484edc2.async.js} +2 -2
- package/static/dist/2715.80e099e1.async.js +1 -0
- package/static/dist/{3490.8aaeafbb.async.js → 3490.8d2d9399.async.js} +1 -1
- package/static/dist/3639.58c3a3f1.async.js +5 -0
- package/static/dist/3800.5488ae14.async.js +2 -0
- package/static/dist/3820.faa46a6a.async.js +1 -0
- package/static/dist/4124.8cba8410.async.js +1 -0
- package/static/dist/4163.a1d279c3.async.js +1 -0
- package/static/dist/4346.5ab6fdc1.async.js +1 -0
- package/static/dist/{4378.70f18b85.async.js → 4378.70083a42.async.js} +2 -2
- package/static/dist/4491.96ee9a9f.async.js +4 -0
- package/static/dist/4804.183d71af.async.js +27 -0
- package/static/dist/4925.eca85085.async.js +1 -0
- package/static/dist/5008.c612bbdb.async.js +11 -0
- package/static/dist/5035.2489750b.async.js +67 -0
- package/static/dist/5310.6c4eff46.async.js +1 -0
- package/static/dist/5484.826c5ee3.async.js +1 -0
- package/static/dist/5969.87aeb075.async.js +1 -0
- package/static/dist/6304.51c52839.async.js +1 -0
- package/static/dist/6433.69941426.async.js +22 -0
- package/static/dist/6661.5cda5ce0.async.js +1 -0
- package/static/dist/6805.798ec30a.async.js +1 -0
- package/static/dist/{412.7e4d2d42.async.js → 7382.305c10b2.async.js} +2 -2
- package/static/dist/{7393.b7603b10.async.js → 7393.d9ed4b3a.async.js} +1 -1
- package/static/dist/7567.a224d0a6.async.js +5 -0
- package/static/dist/{7742.eec663d7.async.js → 7742.dd8a0112.async.js} +2 -2
- package/static/dist/8037.386b415d.async.js +1 -0
- package/static/dist/8297.e6ac1ce9.async.js +1 -0
- package/static/dist/8432.5bbc2cdd.async.js +1 -0
- package/static/dist/858.d51fc4e2.async.js +1 -0
- package/static/dist/8612.84caf0a5.async.js +1 -0
- package/static/dist/{8966.d92806db.async.js → 8657.805a96f7.async.js} +2 -2
- package/static/dist/8844.8525fd2e.async.js +81 -0
- package/static/dist/9065.6684b5d0.async.js +1 -0
- package/static/dist/921.198cefa6.async.js +6 -0
- package/static/dist/{9504.06cb7ea5.async.js → 9504.6d4e29e7.async.js} +1 -1
- package/static/dist/9673.18a70227.async.js +3 -0
- package/static/dist/986.ab6a48a4.async.js +1 -0
- package/static/dist/index.html +1 -1
- package/static/dist/layouts__index.285d8505.chunk.css +1 -0
- package/static/dist/layouts__index.3db43e0b.async.js +1 -0
- package/static/dist/src__pages__404.8794c158.async.js +1 -0
- package/static/dist/{src__pages__config__index.b5bde963.async.js → src__pages__config__index.7fb61af5.async.js} +3 -3
- package/static/dist/{src__pages__crontab__index.be4295e5.async.js → src__pages__crontab__index.5cfa7d5b.async.js} +2 -2
- package/static/dist/src__pages__crontab__logModal.44ad577c.async.js +2 -0
- package/static/dist/src__pages__crontab__modal.6d17fdcf.async.js +5 -0
- package/static/dist/src__pages__crontab__viewCreateModal.3db14204.async.js +4 -0
- package/static/dist/src__pages__crontab__viewManageModal.9f899650.async.js +4 -0
- package/static/dist/src__pages__dependence__index.3b140a79.async.js +2 -0
- package/static/dist/src__pages__dependence__logModal.e49658d5.async.js +4 -0
- package/static/dist/src__pages__dependence__modal.94ff002a.async.js +5 -0
- package/static/dist/{src__pages__diff__index.200be0dc.async.js → src__pages__diff__index.240e4991.async.js} +3 -3
- package/static/dist/{src__pages__env__editNameModal.9898b16a.async.js → src__pages__env__editNameModal.047bb3ba.async.js} +2 -2
- package/static/dist/src__pages__env__index.48602d18.async.js +2 -0
- package/static/dist/src__pages__env__modal.8b48ffa4.async.js +5 -0
- package/static/dist/src__pages__error__index.c0477141.async.js +4 -0
- package/static/dist/{src__pages__initialization__index.bcf87634.chunk.css → src__pages__initialization__index.66819338.chunk.css} +1 -1
- package/static/dist/src__pages__initialization__index.978a7f09.async.js +21 -0
- package/static/dist/src__pages__log__index.ae245070.async.js +1 -0
- package/static/dist/src__pages__login__index.8eb4df8e.async.js +2 -0
- package/static/dist/{src__pages__script__editModal.9a8934a1.async.js → src__pages__script__editModal.02b12902.async.js} +2 -2
- package/static/dist/{src__pages__script__editNameModal.42003a2f.async.js → src__pages__script__editNameModal.2773cb7b.async.js} +2 -2
- package/static/dist/{src__pages__script__index.670d9577.async.js → src__pages__script__index.679510cd.async.js} +3 -3
- package/static/dist/{src__pages__script__renameModal.3b9285b0.async.js → src__pages__script__renameModal.ea3b6689.async.js} +2 -2
- package/static/dist/{src__pages__script__saveModal.475c369d.async.js → src__pages__script__saveModal.312a0beb.async.js} +2 -2
- package/static/dist/{src__pages__script__setting.d41d33ae.async.js → src__pages__script__setting.11abc6ae.async.js} +2 -2
- package/static/dist/src__pages__setting__about.1460b7fa.async.js +1 -0
- package/static/dist/{src__pages__setting__appModal.4edca962.async.js → src__pages__setting__appModal.74267529.async.js} +2 -2
- package/static/dist/src__pages__setting__checkUpdate.ce2e30bb.async.js +4 -0
- package/static/dist/src__pages__setting__index.9fcd6dc2.async.js +2 -0
- package/static/dist/src__pages__setting__loginLog.0708083b.async.js +18 -0
- package/static/dist/src__pages__setting__notification.15a286d0.async.js +21 -0
- package/static/dist/src__pages__setting__other.00a69cf4.async.js +1 -0
- package/static/dist/src__pages__setting__security.62b6b562.async.js +4 -0
- package/static/dist/src__pages__subscription__index.708b6c8f.async.js +2 -0
- package/static/dist/src__pages__subscription__logModal.3a1a8e58.async.js +2 -0
- package/static/dist/src__pages__subscription__modal.c034f25a.async.js +4 -0
- package/static/dist/umi.cb44a99a.js +11 -0
- package/version.yaml +10 -5
- package/static/dist/1655.37556417.async.js +0 -4
- package/static/dist/1766.e0c12c07.async.js +0 -27
- package/static/dist/2260.04ae2823.async.js +0 -1
- package/static/dist/2715.30714799.async.js +0 -1
- package/static/dist/3639.62e1ddf6.async.js +0 -5
- package/static/dist/3820.ad340d47.async.js +0 -1
- package/static/dist/4011.3a02258a.async.js +0 -22
- package/static/dist/4124.6a5a1531.async.js +0 -1
- package/static/dist/4163.5180a456.async.js +0 -1
- package/static/dist/4180.e830b6e6.async.js +0 -2
- package/static/dist/4925.4425d963.async.js +0 -1
- package/static/dist/5008.8fcc2d24.async.js +0 -11
- package/static/dist/5310.9c3e0c09.async.js +0 -1
- package/static/dist/5319.dd84246e.async.js +0 -1
- package/static/dist/5484.ac83d6b4.async.js +0 -1
- package/static/dist/5544.6baaab99.async.js +0 -81
- package/static/dist/6304.613145ef.async.js +0 -1
- package/static/dist/6661.f5843bf4.async.js +0 -1
- package/static/dist/6794.4c503d6d.async.js +0 -5
- package/static/dist/6805.f5be6007.async.js +0 -1
- package/static/dist/7461.ed40fa5f.async.js +0 -1
- package/static/dist/7466.15597d4f.async.js +0 -1
- package/static/dist/7938.4e3377e7.async.js +0 -67
- package/static/dist/8037.61d0095e.async.js +0 -1
- package/static/dist/8297.3d6c376d.async.js +0 -1
- package/static/dist/8352.e0fbb494.async.js +0 -1
- package/static/dist/8432.30267db1.async.js +0 -1
- package/static/dist/8447.d0f63993.async.js +0 -1
- package/static/dist/9065.0806f3e5.async.js +0 -1
- package/static/dist/9280.aacaa172.async.js +0 -6
- package/static/dist/9673.a1545ea3.async.js +0 -3
- package/static/dist/986.c108246f.async.js +0 -1
- package/static/dist/layouts__index.3de47467.chunk.css +0 -1
- package/static/dist/layouts__index.a6451a2c.async.js +0 -1
- package/static/dist/src__pages__404.b5140a4b.async.js +0 -1
- package/static/dist/src__pages__crontab__logModal.0f6a4945.async.js +0 -2
- package/static/dist/src__pages__crontab__modal.cb176c70.async.js +0 -5
- package/static/dist/src__pages__crontab__viewCreateModal.f2b8a69a.async.js +0 -4
- package/static/dist/src__pages__crontab__viewManageModal.b86bbb79.async.js +0 -4
- package/static/dist/src__pages__dependence__index.c17201d7.async.js +0 -2
- package/static/dist/src__pages__dependence__logModal.42c56e18.async.js +0 -4
- package/static/dist/src__pages__dependence__modal.58620a62.async.js +0 -5
- package/static/dist/src__pages__env__index.c79218f4.async.js +0 -2
- package/static/dist/src__pages__env__modal.07f411f1.async.js +0 -5
- package/static/dist/src__pages__error__index.2f9d7c50.async.js +0 -4
- package/static/dist/src__pages__initialization__index.af82f7e1.async.js +0 -21
- package/static/dist/src__pages__log__index.5e63a6b7.async.js +0 -1
- package/static/dist/src__pages__login__index.44d624a7.async.js +0 -2
- package/static/dist/src__pages__setting__about.7ca2707b.async.js +0 -1
- package/static/dist/src__pages__setting__checkUpdate.dd497877.async.js +0 -4
- package/static/dist/src__pages__setting__index.4a85066e.async.js +0 -2
- package/static/dist/src__pages__setting__loginLog.c8ddd712.async.js +0 -18
- package/static/dist/src__pages__setting__notification.e124b7ae.async.js +0 -21
- package/static/dist/src__pages__setting__other.a58b5fae.async.js +0 -1
- package/static/dist/src__pages__setting__security.aabc2d21.async.js +0 -4
- package/static/dist/src__pages__subscription__index.04531731.async.js +0 -2
- package/static/dist/src__pages__subscription__logModal.b86a5c9b.async.js +0 -2
- package/static/dist/src__pages__subscription__modal.ea198f81.async.js +0 -4
- package/static/dist/umi.29bfaff2.js +0 -11
- /package/static/dist/{8352.d2d0a2c7.chunk.css → 8612.d2d0a2c7.chunk.css} +0 -0
- /package/static/dist/{7394.59dcf306.chunk.css → 9439.59dcf306.chunk.css} +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[5544],{3513:function(K,U,g){"use strict";g.d(U,{Z:function(){return p}});var D=g(185),B=g(63313),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},j=N,I=g(46420),m=function(f,c){return B.createElement(I.Z,(0,D.Z)((0,D.Z)({},f),{},{ref:c,icon:j}))};m.displayName="UserOutlined";var p=B.forwardRef(m)},18323:function(K,U,g){"use strict";g.d(U,{Z:function(){return _r}});var D=function(t,r){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},D(t,r)};function B(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");D(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var N=function(){return N=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}return r},N.apply(this,arguments)};function j(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function I(t,r,e,n){var o=arguments.length,a=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,r,e,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}function m(t,r){return function(e,n){r(e,n,t)}}function p(t,r,e,n,o,a){function s(A){if(A!==void 0&&typeof A!="function")throw new TypeError("Function expected");return A}for(var l=n.kind,d=l==="getter"?"get":l==="setter"?"set":"value",u=!r&&t?n.static?t:t.prototype:null,v=r||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),E,y=!1,w=e.length-1;w>=0;w--){var C={};for(var S in n)C[S]=S==="access"?{}:n[S];for(var S in n.access)C.access[S]=n.access[S];C.addInitializer=function(A){if(y)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(A||null))};var R=(0,e[w])(l==="accessor"?{get:v.get,set:v.set}:v[d],C);if(l==="accessor"){if(R===void 0)continue;if(R===null||typeof R!="object")throw new TypeError("Object expected");(E=s(R.get))&&(v.get=E),(E=s(R.set))&&(v.set=E),(E=s(R.init))&&o.push(E)}else(E=s(R))&&(l==="field"?o.push(E):v[d]=E)}u&&Object.defineProperty(u,n.name,v),y=!0}function h(t,r,e){for(var n=arguments.length>2,o=0;o<r.length;o++)e=n?r[o].call(t,e):r[o].call(t);return n?e:void 0}function f(t){return typeof t=="symbol"?t:"".concat(t)}function c(t,r,e){return typeof r=="symbol"&&(r=r.description?"[".concat(r.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:e?"".concat(e," ",r):r})}function _(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function O(t,r,e,n){function o(a){return a instanceof e?a:new e(function(s){s(a)})}return new(e||(e=Promise))(function(a,s){function l(v){try{u(n.next(v))}catch(E){s(E)}}function d(v){try{u(n.throw(v))}catch(E){s(E)}}function u(v){v.done?a(v.value):o(v.value).then(l,d)}u((n=n.apply(t,r||[])).next())})}function L(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(v){return d([u,v])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(e=0)),e;)try{if(n=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,o=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=r.call(t,e)}catch(v){u=[6,v],o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Z=Object.create?function(t,r,e,n){n===void 0&&(n=e);var o=Object.getOwnPropertyDescriptor(r,e);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,o)}:function(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]};function T(t,r){for(var e in t)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&Z(r,t,e)}function X(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function le(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,a=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(s)throw s.error}}return a}function F(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(le(arguments[r]));return t}function He(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var a=arguments[r],s=0,l=a.length;s<l;s++,o++)n[o]=a[s];return n}function it(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,a;n<o;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return t.concat(a||Array.prototype.slice.call(r))}function Le(t){return this instanceof Le?(this.v=t,this):new Le(t)}function Lt(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,a=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(y){n[y]&&(o[y]=function(w){return new Promise(function(C,S){a.push([y,w,C,S])>1||l(y,w)})})}function l(y,w){try{d(n[y](w))}catch(C){E(a[0][3],C)}}function d(y){y.value instanceof Le?Promise.resolve(y.value.v).then(u,v):E(a[0][2],y)}function u(y){l("next",y)}function v(y){l("throw",y)}function E(y,w){y(w),a.shift(),a.length&&l(a[0][0],a[0][1])}}function ht(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,a){r[o]=t[o]?function(s){return(e=!e)?{value:Le(t[o](s)),done:!1}:a?a(s):s}:a}}function mt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof X=="function"?X(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(a){e[a]=t[a]&&function(s){return new Promise(function(l,d){s=t[a](s),o(l,d,s.done,s.value)})}}function o(a,s,l,d){Promise.resolve(d).then(function(u){a({value:u,done:l})},s)}}function yt(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}var Nt=Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r};function Ht(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&Z(r,t,e);return Nt(r,t),r}function en(t){return t&&t.__esModule?t:{default:t}}function $t(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function Wt(t,r,e,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?t!==r||!o:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,e):o?o.value=e:r.set(t,e),e}function Gt(t,r){if(r===null||typeof r!="object"&&typeof r!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?r===t:t.has(r)}var x=g(11527),i=g(63313),P=g.n(i),b="4.24.10",k=g(84163),$=g(57679);const ue=(t,r)=>{const e=Te(t),n=Te(r),o=e.pop(),a=n.pop(),s=fe(e,n);return s!==0?s:o&&a?fe(o.split("."),a.split(".")):o||a?o?-1:1:0},Re=t=>typeof t=="string"&&/^[v\d]/.test(t)&&Be.test(t),Xe=(t,r,e)=>{It(e);const n=ue(t,r);return xe[e].includes(n)},Ye=(t,r)=>{if(r.includes("||"))return r.split("||").some(R=>Ye(t,R));if(r.includes(" "))return r.trim().replace(/\s{2,}/g," ").split(" ").every(R=>Ye(t,R));const e=r.match(/^([<>=~^]+)/),n=e?e[1]:"=";if(n!=="^"&&n!=="~")return Xe(t,r,n);const[o,a,s,,l]=Te(t),[d,u,v,,E]=Te(r),y=[o,a,s],w=[d,u!=null?u:"x",v!=null?v:"x"];if(E&&(!l||fe(y,w)!==0||fe(l.split("."),E.split("."))===-1))return!1;const C=w.findIndex(R=>R!=="0")+1,S=n==="~"?2:C>1?C:1;return!(fe(y.slice(0,S),w.slice(0,S))!==0||fe(y.slice(S),w.slice(S))===-1)},Be=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Te=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const r=t.match(Be);if(!r)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return r.shift(),r},Ce=t=>t==="*"||t==="x"||t==="X",ce=t=>{const r=parseInt(t,10);return isNaN(r)?t:r},ye=(t,r)=>typeof t!=typeof r?[String(t),String(r)]:[t,r],be=(t,r)=>{if(Ce(t)||Ce(r))return 0;const[e,n]=ye(ce(t),ce(r));return e>n?1:e<n?-1:0},fe=(t,r)=>{for(let e=0;e<Math.max(t.length,r.length);e++){const n=be(t[e]||"0",r[e]||"0");if(n!==0)return n}return 0},xe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},Ve=Object.keys(xe),It=t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(Ve.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${Ve.join("|")}`)};var Ot=function(t,r){return Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},Ot(t,r)};function Ut(t,r){Ot(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var Se=function(){return Se=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}return r},Se.apply(this,arguments)};function tn(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function zr(t,r,e,n){var o=arguments.length,a=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,r,e,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}function Br(t,r){return function(e,n){r(e,n,t)}}function kr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Fr(t,r,e,n){function o(a){return a instanceof e?a:new e(function(s){s(a)})}return new(e||(e=Promise))(function(a,s){function l(v){try{u(n.next(v))}catch(E){s(E)}}function d(v){try{u(n.throw(v))}catch(E){s(E)}}function u(v){v.done?a(v.value):o(v.value).then(l,d)}u((n=n.apply(t,r||[])).next())})}function Hr(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(v){return d([u,v])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,o=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=r.call(t,e)}catch(v){u=[6,v],o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var nn=Object.create?function(t,r,e,n){n===void 0&&(n=e),Object.defineProperty(t,n,{enumerable:!0,get:function(){return r[e]}})}:function(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]};function $r(t,r){for(var e in t)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&nn(r,t,e)}function rn(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function On(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,a=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(s)throw s.error}}return a}function Wr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(On(arguments[r]));return t}function Gr(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var a=arguments[r],s=0,l=a.length;s<l;s++,o++)n[o]=a[s];return n}function jt(t){return this instanceof jt?(this.v=t,this):new jt(t)}function Ur(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,a=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(y){n[y]&&(o[y]=function(w){return new Promise(function(C,S){a.push([y,w,C,S])>1||l(y,w)})})}function l(y,w){try{d(n[y](w))}catch(C){E(a[0][3],C)}}function d(y){y.value instanceof jt?Promise.resolve(y.value.v).then(u,v):E(a[0][2],y)}function u(y){l("next",y)}function v(y){l("throw",y)}function E(y,w){y(w),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Xr(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,a){r[o]=t[o]?function(s){return(e=!e)?{value:jt(t[o](s)),done:o==="return"}:a?a(s):s}:a}}function Yr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof rn=="function"?rn(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(a){e[a]=t[a]&&function(s){return new Promise(function(l,d){s=t[a](s),o(l,d,s.done,s.value)})}}function o(a,s,l,d){Promise.resolve(d).then(function(u){a({value:u,done:l})},s)}}function Vr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}var Mn=Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r};function Kr(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&nn(r,t,e);return Mn(r,t),r}function Qr(t){return t&&t.__esModule?t:{default:t}}function Jr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function qr(t,r,e){if(!r.has(t))throw new TypeError("attempted to set private field on non-instance");return r.set(t,e),e}var Tn=g(6210),Dn=g.n(Tn);function An(t,r,e,n,o,a){a===void 0&&(a=0);var s=bt(t,r,a),l=s.width,d=s.height,u=Math.min(l,e),v=Math.min(d,n);return u>v*o?{width:v*o,height:v}:{width:u,height:u/o}}function Ln(t){return t.width>t.height?t.width/t.naturalWidth:t.height/t.naturalHeight}function Zt(t,r,e,n,o){o===void 0&&(o=0);var a=bt(r.width,r.height,o),s=a.width,l=a.height;return{x:on(t.x,s,e.width,n),y:on(t.y,l,e.height,n)}}function on(t,r,e,n){var o=r*n/2-e/2;return zt(t,-o,o)}function an(t,r){return Math.sqrt(Math.pow(t.y-r.y,2)+Math.pow(t.x-r.x,2))}function sn(t,r){return Math.atan2(r.y-t.y,r.x-t.x)*180/Math.PI}function Nn(t,r,e,n,o,a,s){a===void 0&&(a=0),s===void 0&&(s=!0);var l=s?In:jn,d=bt(r.width,r.height,a),u=bt(r.naturalWidth,r.naturalHeight,a),v={x:l(100,((d.width-e.width/o)/2-t.x/o)/d.width*100),y:l(100,((d.height-e.height/o)/2-t.y/o)/d.height*100),width:l(100,e.width/d.width*100/o),height:l(100,e.height/d.height*100/o)},E=Math.round(l(u.width,v.width*u.width/100)),y=Math.round(l(u.height,v.height*u.height/100)),w=u.width>=u.height*n,C=w?{width:Math.round(y*n),height:y}:{width:E,height:Math.round(E/n)},S=Se(Se({},C),{x:Math.round(l(u.width-C.width,v.x*u.width/100)),y:Math.round(l(u.height-C.height,v.y*u.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:S}}function In(t,r){return Math.min(t,Math.max(0,r))}function jn(t,r){return r}function Zn(t,r,e,n,o,a){var s=bt(r.width,r.height,e),l=zt(n.width/s.width*(100/t.width),o,a),d={x:l*s.width/2-n.width/2-s.width*l*(t.x/100),y:l*s.height/2-n.height/2-s.height*l*(t.y/100)};return{crop:d,zoom:l}}function zn(t,r,e){var n=Ln(r);return e.height>e.width?e.height/(t.height*n):e.width/(t.width*n)}function Bn(t,r,e,n,o,a){e===void 0&&(e=0);var s=bt(r.naturalWidth,r.naturalHeight,e),l=zt(zn(t,r,n),o,a),d=n.height>n.width?n.height/t.height:n.width/t.width,u={x:((s.width-t.width)/2-t.x)*d,y:((s.height-t.height)/2-t.y)*d};return{crop:u,zoom:l}}function un(t,r){return{x:(r.x+t.x)/2,y:(r.y+t.y)/2}}function kn(t){return t*Math.PI/180}function bt(t,r,e){var n=kn(e);return{width:Math.abs(Math.cos(n)*t)+Math.abs(Math.sin(n)*r),height:Math.abs(Math.sin(n)*t)+Math.abs(Math.cos(n)*r)}}function zt(t,r,e){return Math.min(Math.max(t,r),e)}function Bt(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.filter(function(e){return typeof e=="string"&&e.length>0}).join(" ").trim()}var Fn=`.reactEasyCrop_Container {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
user-select: none;
|
|
9
|
-
touch-action: none;
|
|
10
|
-
cursor: move;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.reactEasyCrop_Image,
|
|
17
|
-
.reactEasyCrop_Video {
|
|
18
|
-
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.reactEasyCrop_Contain {
|
|
22
|
-
max-width: 100%;
|
|
23
|
-
max-height: 100%;
|
|
24
|
-
margin: auto;
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
bottom: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
right: 0;
|
|
30
|
-
}
|
|
31
|
-
.reactEasyCrop_Cover_Horizontal {
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: auto;
|
|
34
|
-
}
|
|
35
|
-
.reactEasyCrop_Cover_Vertical {
|
|
36
|
-
width: auto;
|
|
37
|
-
height: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.reactEasyCrop_CropArea {
|
|
41
|
-
position: absolute;
|
|
42
|
-
left: 50%;
|
|
43
|
-
top: 50%;
|
|
44
|
-
transform: translate(-50%, -50%);
|
|
45
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
box-shadow: 0 0 0 9999em;
|
|
48
|
-
color: rgba(0, 0, 0, 0.5);
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.reactEasyCrop_CropAreaRound {
|
|
53
|
-
border-radius: 50%;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.reactEasyCrop_CropAreaGrid::before {
|
|
57
|
-
content: ' ';
|
|
58
|
-
box-sizing: border-box;
|
|
59
|
-
position: absolute;
|
|
60
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
61
|
-
top: 0;
|
|
62
|
-
bottom: 0;
|
|
63
|
-
left: 33.33%;
|
|
64
|
-
right: 33.33%;
|
|
65
|
-
border-top: 0;
|
|
66
|
-
border-bottom: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.reactEasyCrop_CropAreaGrid::after {
|
|
70
|
-
content: ' ';
|
|
71
|
-
box-sizing: border-box;
|
|
72
|
-
position: absolute;
|
|
73
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
74
|
-
top: 33.33%;
|
|
75
|
-
bottom: 33.33%;
|
|
76
|
-
left: 0;
|
|
77
|
-
right: 0;
|
|
78
|
-
border-left: 0;
|
|
79
|
-
border-right: 0;
|
|
80
|
-
}
|
|
81
|
-
`,Hn=1,$n=3,Wn=function(t){Ut(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.imageRef=P().createRef(),e.videoRef=P().createRef(),e.containerRef=null,e.styleRef=null,e.containerRect=null,e.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},e.dragStartPosition={x:0,y:0},e.dragStartCrop={x:0,y:0},e.gestureZoomStart=0,e.gestureRotationStart=0,e.isTouching=!1,e.lastPinchDistance=0,e.lastPinchRotation=0,e.rafDragTimeout=null,e.rafPinchTimeout=null,e.wheelTimer=null,e.currentDoc=typeof document!="undefined"?document:null,e.currentWindow=typeof window!="undefined"?window:null,e.resizeObserver=null,e.state={cropSize:null,hasWheelJustStarted:!1},e.initResizeObserver=function(){if(!(typeof window.ResizeObserver=="undefined"||!e.containerRef)){var n=!0;e.resizeObserver=new window.ResizeObserver(function(o){if(n){n=!1;return}e.computeSizes()}),e.resizeObserver.observe(e.containerRef)}},e.preventZoomSafari=function(n){return n.preventDefault()},e.cleanEvents=function(){e.currentDoc&&(e.currentDoc.removeEventListener("mousemove",e.onMouseMove),e.currentDoc.removeEventListener("mouseup",e.onDragStopped),e.currentDoc.removeEventListener("touchmove",e.onTouchMove),e.currentDoc.removeEventListener("touchend",e.onDragStopped),e.currentDoc.removeEventListener("gesturemove",e.onGestureMove),e.currentDoc.removeEventListener("gestureend",e.onGestureEnd))},e.clearScrollEvent=function(){e.containerRef&&e.containerRef.removeEventListener("wheel",e.onWheel),e.wheelTimer&&clearTimeout(e.wheelTimer)},e.onMediaLoad=function(){var n=e.computeSizes();n&&(e.emitCropData(),e.setInitialCrop(n)),e.props.onMediaLoaded&&e.props.onMediaLoaded(e.mediaSize)},e.setInitialCrop=function(n){if(e.props.initialCroppedAreaPercentages){var o=Zn(e.props.initialCroppedAreaPercentages,e.mediaSize,e.props.rotation,n,e.props.minZoom,e.props.maxZoom),a=o.crop,s=o.zoom;e.props.onCropChange(a),e.props.onZoomChange&&e.props.onZoomChange(s)}else if(e.props.initialCroppedAreaPixels){var l=Bn(e.props.initialCroppedAreaPixels,e.mediaSize,e.props.rotation,n,e.props.minZoom,e.props.maxZoom),a=l.crop,s=l.zoom;e.props.onCropChange(a),e.props.onZoomChange&&e.props.onZoomChange(s)}},e.computeSizes=function(){var n,o,a,s,l,d,u=e.imageRef.current||e.videoRef.current;if(u&&e.containerRef){e.containerRect=e.containerRef.getBoundingClientRect();var v=e.containerRect.width/e.containerRect.height,E=((n=e.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((o=e.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,y=((a=e.imageRef.current)===null||a===void 0?void 0:a.naturalHeight)||((s=e.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,w=u.offsetWidth<E||u.offsetHeight<y,C=E/y,S=void 0;if(w)switch(e.props.objectFit){default:case"contain":S=v>C?{width:e.containerRect.height*C,height:e.containerRect.height}:{width:e.containerRect.width,height:e.containerRect.width/C};break;case"horizontal-cover":S={width:e.containerRect.width,height:e.containerRect.width/C};break;case"vertical-cover":S={width:e.containerRect.height*C,height:e.containerRect.height};break;case"auto-cover":S=E>y?{width:e.containerRect.width,height:e.containerRect.width/C}:{width:e.containerRect.height*C,height:e.containerRect.height};break}else S={width:u.offsetWidth,height:u.offsetHeight};e.mediaSize=Se(Se({},S),{naturalWidth:E,naturalHeight:y}),e.props.setMediaSize&&e.props.setMediaSize(e.mediaSize);var R=e.props.cropSize?e.props.cropSize:An(e.mediaSize.width,e.mediaSize.height,e.containerRect.width,e.containerRect.height,e.props.aspect,e.props.rotation);return(((l=e.state.cropSize)===null||l===void 0?void 0:l.height)!==R.height||((d=e.state.cropSize)===null||d===void 0?void 0:d.width)!==R.width)&&e.props.onCropSizeChange&&e.props.onCropSizeChange(R),e.setState({cropSize:R},e.recomputeCropPosition),e.props.setCropSize&&e.props.setCropSize(R),R}},e.onMouseDown=function(n){e.currentDoc&&(n.preventDefault(),e.currentDoc.addEventListener("mousemove",e.onMouseMove),e.currentDoc.addEventListener("mouseup",e.onDragStopped),e.onDragStart(r.getMousePoint(n)))},e.onMouseMove=function(n){return e.onDrag(r.getMousePoint(n))},e.onTouchStart=function(n){e.currentDoc&&(e.isTouching=!0,!(e.props.onTouchRequest&&!e.props.onTouchRequest(n))&&(e.currentDoc.addEventListener("touchmove",e.onTouchMove,{passive:!1}),e.currentDoc.addEventListener("touchend",e.onDragStopped),n.touches.length===2?e.onPinchStart(n):n.touches.length===1&&e.onDragStart(r.getTouchPoint(n.touches[0]))))},e.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?e.onPinchMove(n):n.touches.length===1&&e.onDrag(r.getTouchPoint(n.touches[0]))},e.onGestureStart=function(n){e.currentDoc&&(n.preventDefault(),e.currentDoc.addEventListener("gesturechange",e.onGestureMove),e.currentDoc.addEventListener("gestureend",e.onGestureEnd),e.gestureZoomStart=e.props.zoom,e.gestureRotationStart=e.props.rotation)},e.onGestureMove=function(n){if(n.preventDefault(),!e.isTouching){var o=r.getMousePoint(n),a=e.gestureZoomStart-1+n.scale;if(e.setNewZoom(a,o,{shouldUpdatePosition:!0}),e.props.onRotationChange){var s=e.gestureRotationStart+n.rotation;e.props.onRotationChange(s)}}},e.onGestureEnd=function(n){e.cleanEvents()},e.onDragStart=function(n){var o,a,s=n.x,l=n.y;e.dragStartPosition={x:s,y:l},e.dragStartCrop=Se({},e.props.crop),(a=(o=e.props).onInteractionStart)===null||a===void 0||a.call(o)},e.onDrag=function(n){var o=n.x,a=n.y;e.currentWindow&&(e.rafDragTimeout&&e.currentWindow.cancelAnimationFrame(e.rafDragTimeout),e.rafDragTimeout=e.currentWindow.requestAnimationFrame(function(){if(e.state.cropSize&&!(o===void 0||a===void 0)){var s=o-e.dragStartPosition.x,l=a-e.dragStartPosition.y,d={x:e.dragStartCrop.x+s,y:e.dragStartCrop.y+l},u=e.props.restrictPosition?Zt(d,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):d;e.props.onCropChange(u)}}))},e.onDragStopped=function(){var n,o;e.isTouching=!1,e.cleanEvents(),e.emitCropData(),(o=(n=e.props).onInteractionEnd)===null||o===void 0||o.call(n)},e.onWheel=function(n){if(e.currentWindow&&!(e.props.onWheelRequest&&!e.props.onWheelRequest(n))){n.preventDefault();var o=r.getMousePoint(n),a=Dn()(n).pixelY,s=e.props.zoom-a*e.props.zoomSpeed/200;e.setNewZoom(s,o,{shouldUpdatePosition:!0}),e.state.hasWheelJustStarted||e.setState({hasWheelJustStarted:!0},function(){var l,d;return(d=(l=e.props).onInteractionStart)===null||d===void 0?void 0:d.call(l)}),e.wheelTimer&&clearTimeout(e.wheelTimer),e.wheelTimer=e.currentWindow.setTimeout(function(){return e.setState({hasWheelJustStarted:!1},function(){var l,d;return(d=(l=e.props).onInteractionEnd)===null||d===void 0?void 0:d.call(l)})},250)}},e.getPointOnContainer=function(n){var o=n.x,a=n.y;if(!e.containerRect)throw new Error("The Cropper is not mounted");return{x:e.containerRect.width/2-(o-e.containerRect.left),y:e.containerRect.height/2-(a-e.containerRect.top)}},e.getPointOnMedia=function(n){var o=n.x,a=n.y,s=e.props,l=s.crop,d=s.zoom;return{x:(o+l.x)/d,y:(a+l.y)/d}},e.setNewZoom=function(n,o,a){var s=a===void 0?{}:a,l=s.shouldUpdatePosition,d=l===void 0?!0:l;if(!(!e.state.cropSize||!e.props.onZoomChange)){var u=zt(n,e.props.minZoom,e.props.maxZoom);if(d){var v=e.getPointOnContainer(o),E=e.getPointOnMedia(v),y={x:E.x*u-v.x,y:E.y*u-v.y},w=e.props.restrictPosition?Zt(y,e.mediaSize,e.state.cropSize,u,e.props.rotation):y;e.props.onCropChange(w)}e.props.onZoomChange(u)}},e.getCropData=function(){if(!e.state.cropSize)return null;var n=e.props.restrictPosition?Zt(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;return Nn(n,e.mediaSize,e.state.cropSize,e.getAspect(),e.props.zoom,e.props.rotation,e.props.restrictPosition)},e.emitCropData=function(){var n=e.getCropData();if(n){var o=n.croppedAreaPercentages,a=n.croppedAreaPixels;e.props.onCropComplete&&e.props.onCropComplete(o,a),e.props.onCropAreaChange&&e.props.onCropAreaChange(o,a)}},e.emitCropAreaChange=function(){var n=e.getCropData();if(n){var o=n.croppedAreaPercentages,a=n.croppedAreaPixels;e.props.onCropAreaChange&&e.props.onCropAreaChange(o,a)}},e.recomputeCropPosition=function(){if(e.state.cropSize){var n=e.props.restrictPosition?Zt(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;e.props.onCropChange(n),e.emitCropData()}},e}return r.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver=="undefined"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=Fn,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},r.prototype.componentWillUnmount=function(){var e,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver=="undefined"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},r.prototype.componentDidUpdate=function(e){var n,o,a,s,l,d,u,v,E;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():((n=e.cropSize)===null||n===void 0?void 0:n.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((a=e.cropSize)===null||a===void 0?void 0:a.width)!==((s=this.props.cropSize)===null||s===void 0?void 0:s.width)?this.computeSizes():(((l=e.crop)===null||l===void 0?void 0:l.x)!==((d=this.props.crop)===null||d===void 0?void 0:d.x)||((u=e.crop)===null||u===void 0?void 0:u.y)!==((v=this.props.crop)===null||v===void 0?void 0:v.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&((E=this.videoRef.current)===null||E===void 0||E.load())},r.prototype.getAspect=function(){var e=this.props,n=e.cropSize,o=e.aspect;return n?n.width/n.height:o},r.prototype.onPinchStart=function(e){var n=r.getTouchPoint(e.touches[0]),o=r.getTouchPoint(e.touches[1]);this.lastPinchDistance=an(n,o),this.lastPinchRotation=sn(n,o),this.onDragStart(un(n,o))},r.prototype.onPinchMove=function(e){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var o=r.getTouchPoint(e.touches[0]),a=r.getTouchPoint(e.touches[1]),s=un(o,a);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var l=an(o,a),d=n.props.zoom*(l/n.lastPinchDistance);n.setNewZoom(d,s,{shouldUpdatePosition:!1}),n.lastPinchDistance=l;var u=sn(o,a),v=n.props.rotation+(u-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(v),n.lastPinchRotation=u})}},r.prototype.render=function(){var e=this,n=this.props,o=n.image,a=n.video,s=n.mediaProps,l=n.transform,d=n.crop,u=d.x,v=d.y,E=n.rotation,y=n.zoom,w=n.cropShape,C=n.showGrid,S=n.style,R=S.containerStyle,A=S.cropAreaStyle,M=S.mediaStyle,z=n.classes,ee=z.containerClassName,Q=z.cropAreaClassName,oe=z.mediaClassName,H=n.objectFit;return P().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(V){return e.containerRef=V},"data-testid":"container",style:R,className:Bt("reactEasyCrop_Container",ee)},o?P().createElement("img",Se({alt:"",className:Bt("reactEasyCrop_Image",H==="contain"&&"reactEasyCrop_Contain",H==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",H==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",H==="auto-cover"&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),oe)},s,{src:o,ref:this.imageRef,style:Se(Se({},M),{transform:l||"translate(".concat(u,"px, ").concat(v,"px) rotate(").concat(E,"deg) scale(").concat(y,")")}),onLoad:this.onMediaLoad})):a&&P().createElement("video",Se({autoPlay:!0,loop:!0,muted:!0,className:Bt("reactEasyCrop_Video",H==="contain"&&"reactEasyCrop_Contain",H==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",H==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",H==="auto-cover"&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),oe)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Se(Se({},M),{transform:l||"translate(".concat(u,"px, ").concat(v,"px) rotate(").concat(E,"deg) scale(").concat(y,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(W){return P().createElement("source",Se({key:W.src},W))})),this.state.cropSize&&P().createElement("div",{style:Se(Se({},A),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:Bt("reactEasyCrop_CropArea",w==="round"&&"reactEasyCrop_CropAreaRound",C&&"reactEasyCrop_CropAreaGrid",Q)}))},r.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:$n,minZoom:Hn,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},r.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},r.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},r}(P().Component),Gn=g(24378),ln=g(96268),tt=g(45389),ot=g(72564),$e=g(66441),Un=g(84875),wt=g.n(Un),st=g(52529),Xn=g(50631),Yn=g.n(Xn),Vn=g(37348),cn=g(75188),nt=g(185),ut=g(9725),Kn=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0}),vt=Kn;function Xt(t,r,e){return(t-r)/(e-r)}function Yt(t,r,e,n){var o=Xt(r,e,n),a={};switch(t){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Ct(t,r){return Array.isArray(t)?t[r]:t}var Qn=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Jn=i.forwardRef(function(t,r){var e,n,o=t.prefixCls,a=t.value,s=t.valueIndex,l=t.onStartMove,d=t.style,u=t.render,v=t.dragging,E=t.onOffsetChange,y=(0,cn.Z)(t,Qn),w=i.useContext(vt),C=w.min,S=w.max,R=w.direction,A=w.disabled,M=w.range,z=w.tabIndex,ee=w.ariaLabelForHandle,Q=w.ariaLabelledByForHandle,oe=w.ariaValueTextFormatterForHandle,H="".concat(o,"-handle"),W=function(J){A||l(J,s)},V=function(J){if(!A){var q=null;switch(J.which||J.keyCode){case ut.Z.LEFT:q=R==="ltr"||R==="btt"?-1:1;break;case ut.Z.RIGHT:q=R==="ltr"||R==="btt"?1:-1;break;case ut.Z.UP:q=R!=="ttb"?1:-1;break;case ut.Z.DOWN:q=R!=="ttb"?-1:1;break;case ut.Z.HOME:q="min";break;case ut.Z.END:q="max";break;case ut.Z.PAGE_UP:q=2;break;case ut.Z.PAGE_DOWN:q=-2;break}q!==null&&(J.preventDefault(),E(q,s))}},Y=Yt(R,a,C,S),ie=i.createElement("div",(0,ot.Z)({ref:r,className:wt()(H,(e={},(0,tt.Z)(e,"".concat(H,"-").concat(s+1),M),(0,tt.Z)(e,"".concat(H,"-dragging"),v),e)),style:(0,nt.Z)((0,nt.Z)({},Y),d),onMouseDown:W,onTouchStart:W,onKeyDown:V,tabIndex:A?null:Ct(z,s),role:"slider","aria-valuemin":C,"aria-valuemax":S,"aria-valuenow":a,"aria-disabled":A,"aria-label":Ct(ee,s),"aria-labelledby":Ct(Q,s),"aria-valuetext":(n=Ct(oe,s))===null||n===void 0?void 0:n(a)},y));return u&&(ie=u(ie,{index:s,prefixCls:o,value:a,dragging:v})),ie}),qn=Jn,er=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],tr=i.forwardRef(function(t,r){var e=t.prefixCls,n=t.style,o=t.onStartMove,a=t.onOffsetChange,s=t.values,l=t.handleRender,d=t.draggingIndex,u=(0,cn.Z)(t,er),v=i.useRef({});return i.useImperativeHandle(r,function(){return{focus:function(y){var w;(w=v.current[y])===null||w===void 0||w.focus()}}}),i.createElement(i.Fragment,null,s.map(function(E,y){return i.createElement(qn,(0,ot.Z)({ref:function(C){C?v.current[y]=C:delete v.current[y]},dragging:d===y,prefixCls:e,style:Ct(n,y),key:y,value:E,valueIndex:y,onStartMove:o,onOffsetChange:a,render:l},u))}))}),nr=tr;function fn(t){var r="touches"in t?t.touches[0]:t;return{pageX:r.pageX,pageY:r.pageY}}function rr(t,r,e,n,o,a,s,l,d){var u=i.useState(null),v=(0,$e.Z)(u,2),E=v[0],y=v[1],w=i.useState(-1),C=(0,$e.Z)(w,2),S=C[0],R=C[1],A=i.useState(e),M=(0,$e.Z)(A,2),z=M[0],ee=M[1],Q=i.useState(e),oe=(0,$e.Z)(Q,2),H=oe[0],W=oe[1],V=i.useRef(null),Y=i.useRef(null);i.useEffect(function(){S===-1&&ee(e)},[e,S]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",V.current),document.removeEventListener("mouseup",Y.current),document.removeEventListener("touchmove",V.current),document.removeEventListener("touchend",Y.current)}},[]);var ie=function(te,de){z.some(function(ge,We){return ge!==te[We]})&&(de!==void 0&&y(de),ee(te),s(te))},ae=function(te,de){if(te===-1){var ge=H[0],We=H[H.length-1],at=n-ge,Ke=o-We,Ee=de*(o-n);Ee=Math.max(Ee,at),Ee=Math.min(Ee,Ke);var Ne=a(ge+Ee);Ee=Ne-ge;var Qe=H.map(function(Pe){return Pe+Ee});ie(Qe)}else{var Ge=(o-n)*de,se=(0,st.Z)(z);se[te]=H[te];var Ie=d(se,Ge,te,"dist");ie(Ie.values,Ie.value)}},J=i.useRef(ae);J.current=ae;var q=function(te,de){te.stopPropagation();var ge=e[de];R(de),y(ge),W(e);var We=fn(te),at=We.pageX,Ke=We.pageY,Ee=function(Ge){Ge.preventDefault();var se=fn(Ge),Ie=se.pageX,Pe=se.pageY,we=Ie-at,lt=Pe-Ke,je=t.current.getBoundingClientRect(),Oe=je.width,Ae=je.height,re;switch(r){case"btt":re=-lt/Ae;break;case"ttb":re=lt/Ae;break;case"rtl":re=-we/Oe;break;default:re=we/Oe}J.current(de,re)},Ne=function Qe(Ge){Ge.preventDefault(),document.removeEventListener("mouseup",Qe),document.removeEventListener("mousemove",Ee),document.removeEventListener("touchend",Qe),document.removeEventListener("touchmove",Ee),V.current=null,Y.current=null,R(-1),l()};document.addEventListener("mouseup",Ne),document.addEventListener("mousemove",Ee),document.addEventListener("touchend",Ne),document.addEventListener("touchmove",Ee),V.current=Ee,Y.current=Ne},pe=i.useMemo(function(){var De=(0,st.Z)(e).sort(function(de,ge){return de-ge}),te=(0,st.Z)(z).sort(function(de,ge){return de-ge});return De.every(function(de,ge){return de===te[ge]})?z:e},[e,z]);return[S,E,pe,q]}function or(t){var r=t.prefixCls,e=t.style,n=t.start,o=t.end,a=t.index,s=t.onStartMove,l=i.useContext(vt),d=l.direction,u=l.min,v=l.max,E=l.disabled,y=l.range,w="".concat(r,"-track"),C=Xt(n,u,v),S=Xt(o,u,v),R=function(z){!E&&s&&s(z,-1)},A={};switch(d){case"rtl":A.right="".concat(C*100,"%"),A.width="".concat(S*100-C*100,"%");break;case"btt":A.bottom="".concat(C*100,"%"),A.height="".concat(S*100-C*100,"%");break;case"ttb":A.top="".concat(C*100,"%"),A.height="".concat(S*100-C*100,"%");break;default:A.left="".concat(C*100,"%"),A.width="".concat(S*100-C*100,"%")}return i.createElement("div",{className:wt()(w,y&&"".concat(w,"-").concat(a+1)),style:(0,nt.Z)((0,nt.Z)({},A),e),onMouseDown:R,onTouchStart:R})}function ar(t){var r=t.prefixCls,e=t.style,n=t.values,o=t.startPoint,a=t.onStartMove,s=i.useContext(vt),l=s.included,d=s.range,u=s.min,v=i.useMemo(function(){if(!d){if(n.length===0)return[];var E=o!=null?o:u,y=n[0];return[{start:Math.min(E,y),end:Math.max(E,y)}]}for(var w=[],C=0;C<n.length-1;C+=1)w.push({start:n[C],end:n[C+1]});return w},[n,d,o,u]);return l?v.map(function(E,y){var w=E.start,C=E.end;return i.createElement(or,{index:y,prefixCls:r,style:Ct(e,y),start:w,end:C,key:y,onStartMove:a})}):null}function ir(t){var r=t.prefixCls,e=t.style,n=t.children,o=t.value,a=t.onClick,s=i.useContext(vt),l=s.min,d=s.max,u=s.direction,v=s.includedStart,E=s.includedEnd,y=s.included,w="".concat(r,"-text"),C=Yt(u,o,l,d);return i.createElement("span",{className:wt()(w,(0,tt.Z)({},"".concat(w,"-active"),y&&v<=o&&o<=E)),style:(0,nt.Z)((0,nt.Z)({},C),e),onMouseDown:function(R){R.stopPropagation()},onClick:function(){a(o)}},n)}function sr(t){var r=t.prefixCls,e=t.marks,n=t.onClick,o="".concat(r,"-mark");return e.length?i.createElement("div",{className:o},e.map(function(a){var s=a.value,l=a.style,d=a.label;return i.createElement(ir,{key:s,prefixCls:o,style:l,value:s,onClick:n},d)})):null}function ur(t){var r=t.prefixCls,e=t.value,n=t.style,o=t.activeStyle,a=i.useContext(vt),s=a.min,l=a.max,d=a.direction,u=a.included,v=a.includedStart,E=a.includedEnd,y="".concat(r,"-dot"),w=u&&v<=e&&e<=E,C=(0,nt.Z)((0,nt.Z)({},Yt(d,e,s,l)),typeof n=="function"?n(e):n);return w&&(C=(0,nt.Z)((0,nt.Z)({},C),typeof o=="function"?o(e):o)),i.createElement("span",{className:wt()(y,(0,tt.Z)({},"".concat(y,"-active"),w)),style:C})}function lr(t){var r=t.prefixCls,e=t.marks,n=t.dots,o=t.style,a=t.activeStyle,s=i.useContext(vt),l=s.min,d=s.max,u=s.step,v=i.useMemo(function(){var E=new Set;if(e.forEach(function(w){E.add(w.value)}),n&&u!==null)for(var y=l;y<=d;)E.add(y),y+=u;return Array.from(E)},[l,d,u,n,e]);return i.createElement("div",{className:"".concat(r,"-step")},v.map(function(E){return i.createElement(ur,{prefixCls:r,key:E,value:E,style:o,activeStyle:a})}))}function cr(t,r,e,n,o,a){var s=i.useCallback(function(w){var C=isFinite(w)?w:t;return C=Math.min(r,w),C=Math.max(t,C),C},[t,r]),l=i.useCallback(function(w){if(e!==null){var C=t+Math.round((s(w)-t)/e)*e,S=function(z){return(String(z).split(".")[1]||"").length},R=Math.max(S(e),S(r),S(t)),A=Number(C.toFixed(R));return t<=A&&A<=r?A:null}return null},[e,t,r,s]),d=i.useCallback(function(w){var C=s(w),S=n.map(function(M){return M.value});e!==null&&S.push(l(w)),S.push(t,r);var R=S[0],A=r-t;return S.forEach(function(M){var z=Math.abs(C-M);z<=A&&(R=M,A=z)}),R},[t,r,n,e,s,l]),u=function w(C,S,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof S=="number"){var M,z=C[R],ee=z+S,Q=[];n.forEach(function(Y){Q.push(Y.value)}),Q.push(t,r),Q.push(l(z));var oe=S>0?1:-1;A==="unit"?Q.push(l(z+oe*e)):Q.push(l(ee)),Q=Q.filter(function(Y){return Y!==null}).filter(function(Y){return S<0?Y<=z:Y>=z}),A==="unit"&&(Q=Q.filter(function(Y){return Y!==z}));var H=A==="unit"?z:ee;M=Q[0];var W=Math.abs(M-H);if(Q.forEach(function(Y){var ie=Math.abs(Y-H);ie<W&&(M=Y,W=ie)}),M===void 0)return S<0?t:r;if(A==="dist")return M;if(Math.abs(S)>1){var V=(0,st.Z)(C);return V[R]=M,w(V,S-oe,R,A)}return M}else{if(S==="min")return t;if(S==="max")return r}},v=function(C,S,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",M=C[R],z=u(C,S,R,A);return{value:z,changed:z!==M}},E=function(C){return a===null&&C===0||typeof a=="number"&&C<a},y=function(C,S,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",M=C.map(d),z=M[R],ee=u(M,S,R,A);if(M[R]=ee,o===!1){var Q=a||0;R>0&&M[R-1]!==z&&(M[R]=Math.max(M[R],M[R-1]+Q)),R<M.length-1&&M[R+1]!==z&&(M[R]=Math.min(M[R],M[R+1]-Q))}else if(typeof a=="number"||a===null){for(var oe=R+1;oe<M.length;oe+=1)for(var H=!0;E(M[oe]-M[oe-1])&&H;){var W=v(M,1,oe);M[oe]=W.value,H=W.changed}for(var V=R;V>0;V-=1)for(var Y=!0;E(M[V]-M[V-1])&&Y;){var ie=v(M,-1,V-1);M[V-1]=ie.value,Y=ie.changed}for(var ae=M.length-1;ae>0;ae-=1)for(var J=!0;E(M[ae]-M[ae-1])&&J;){var q=v(M,-1,ae-1);M[ae-1]=q.value,J=q.changed}for(var pe=0;pe<M.length-1;pe+=1)for(var De=!0;E(M[pe+1]-M[pe])&&De;){var te=v(M,1,pe+1);M[pe+1]=te.value,De=te.changed}}return{value:M[R],values:M}};return[d,y]}var eo=g(21761),fr=i.forwardRef(function(t,r){var e,n=t.prefixCls,o=n===void 0?"rc-slider":n,a=t.className,s=t.style,l=t.disabled,d=l===void 0?!1:l,u=t.autoFocus,v=t.onFocus,E=t.onBlur,y=t.min,w=y===void 0?0:y,C=t.max,S=C===void 0?100:C,R=t.step,A=R===void 0?1:R,M=t.value,z=t.defaultValue,ee=t.range,Q=t.count,oe=t.onChange,H=t.onBeforeChange,W=t.onAfterChange,V=t.allowCross,Y=V===void 0?!0:V,ie=t.pushable,ae=ie===void 0?!1:ie,J=t.draggableTrack,q=t.reverse,pe=t.vertical,De=t.included,te=De===void 0?!0:De,de=t.startPoint,ge=t.trackStyle,We=t.handleStyle,at=t.railStyle,Ke=t.dotStyle,Ee=t.activeDotStyle,Ne=t.marks,Qe=t.dots,Ge=t.handleRender,se=t.tabIndex,Ie=se===void 0?0:se,Pe=t.ariaLabelForHandle,we=t.ariaLabelledByForHandle,lt=t.ariaValueTextFormatterForHandle,je=i.useRef(),Oe=i.useRef(),Ae=i.useMemo(function(){return pe?q?"ttb":"btt":q?"rtl":"ltr"},[q,pe]),re=i.useMemo(function(){return isFinite(w)?w:0},[w]),Ze=i.useMemo(function(){return isFinite(S)?S:100},[S]),he=i.useMemo(function(){return A!==null&&A<=0?1:A},[A]),ke=i.useMemo(function(){return ae===!0?he:ae>=0?ae:!1},[ae,he]),Je=i.useMemo(function(){var me=Object.keys(Ne||{});return me.map(function(ne){var G=Ne[ne],_e={value:Number(ne)};return G&&(0,ln.Z)(G)==="object"&&!i.isValidElement(G)&&("label"in G||"style"in G)?(_e.style=G.style,_e.label=G.label):_e.label=G,_e}).filter(function(ne){var G=ne.label;return G||typeof G=="number"}).sort(function(ne,G){return ne.value-G.value})},[Ne]),St=cr(re,Ze,he,Je,Y,ke),pt=(0,$e.Z)(St,2),Ue=pt[0],qe=pt[1],ct=(0,Vn.Z)(z,{value:M}),ft=(0,$e.Z)(ct,2),ze=ft[0],Et=ft[1],Me=i.useMemo(function(){var me=ze==null?[]:Array.isArray(ze)?ze:[ze],ne=(0,$e.Z)(me,1),G=ne[0],_e=G===void 0?re:G,ve=ze===null?[]:[_e];if(ee){if(ve=(0,st.Z)(me),Q||ze===void 0){var Rt=Q>=0?Q+1:2;for(ve=ve.slice(0,Rt);ve.length<Rt;){var gt;ve.push((gt=ve[ve.length-1])!==null&>!==void 0?gt:re)}}ve.sort(function(dt,Dt){return dt-Dt})}return ve.forEach(function(dt,Dt){ve[Dt]=Ue(dt)}),ve},[ze,ee,re,Q,Ue]),et=i.useRef(Me);et.current=Me;var Fe=function(ne){return ee?ne:ne[0]},Pt=function(ne){var G=(0,st.Z)(ne).sort(function(_e,ve){return _e-ve});oe&&!Yn()(G,et.current)&&oe(Fe(G)),Et(G)},mn=function(ne){if(!d){var G=0,_e=Ze-re;Me.forEach(function(Rt,gt){var dt=Math.abs(ne-Rt);dt<=_e&&(_e=dt,G=gt)});var ve=(0,st.Z)(Me);ve[G]=ne,ee&&!Me.length&&Q===void 0&&ve.push(ne),H==null||H(Fe(ve)),Pt(ve),W==null||W(Fe(ve))}},Rr=function(ne){ne.preventDefault();var G=Oe.current.getBoundingClientRect(),_e=G.width,ve=G.height,Rt=G.left,gt=G.top,dt=G.bottom,Dt=G.right,_n=ne.clientX,Rn=ne.clientY,At;switch(Ae){case"btt":At=(dt-Rn)/ve;break;case"ttb":At=(Rn-gt)/ve;break;case"rtl":At=(Dt-_n)/_e;break;default:At=(_n-Rt)/_e}var Zr=re+At*(Ze-re);mn(Ue(Zr))},Or=i.useState(null),yn=(0,$e.Z)(Or,2),Jt=yn[0],bn=yn[1],Mr=function(ne,G){if(!d){var _e=qe(Me,ne,G);H==null||H(Fe(Me)),Pt(_e.values),W==null||W(Fe(_e.values)),bn(_e.value)}};i.useEffect(function(){if(Jt!==null){var me=Me.indexOf(Jt);me>=0&&je.current.focus(me)}bn(null)},[Jt]);var Tr=i.useMemo(function(){return J&&he===null?!1:J},[J,he]),Dr=function(){W==null||W(Fe(et.current))},Ar=rr(Oe,Ae,Me,re,Ze,Ue,Pt,Dr,qe),Ft=(0,$e.Z)(Ar,4),wn=Ft[0],Lr=Ft[1],qt=Ft[2],Nr=Ft[3],Cn=function(ne,G){Nr(ne,G),H==null||H(Fe(et.current))},xn=wn!==-1;i.useEffect(function(){if(!xn){var me=Me.lastIndexOf(Lr);je.current.focus(me)}},[xn]);var _t=i.useMemo(function(){return(0,st.Z)(qt).sort(function(me,ne){return me-ne})},[qt]),Ir=i.useMemo(function(){return ee?[_t[0],_t[_t.length-1]]:[re,_t[0]]},[_t,ee,re]),Sn=(0,$e.Z)(Ir,2),En=Sn[0],Pn=Sn[1];i.useImperativeHandle(r,function(){return{focus:function(){je.current.focus(0)},blur:function(){var ne=document,G=ne.activeElement;Oe.current.contains(G)&&(G==null||G.blur())}}}),i.useEffect(function(){u&&je.current.focus(0)},[]);var jr=i.useMemo(function(){return{min:re,max:Ze,direction:Ae,disabled:d,step:he,included:te,includedStart:En,includedEnd:Pn,range:ee,tabIndex:Ie,ariaLabelForHandle:Pe,ariaLabelledByForHandle:we,ariaValueTextFormatterForHandle:lt}},[re,Ze,Ae,d,he,te,En,Pn,ee,Ie,Pe,we,lt]);return i.createElement(vt.Provider,{value:jr},i.createElement("div",{ref:Oe,className:wt()(o,a,(e={},(0,tt.Z)(e,"".concat(o,"-disabled"),d),(0,tt.Z)(e,"".concat(o,"-vertical"),pe),(0,tt.Z)(e,"".concat(o,"-horizontal"),!pe),(0,tt.Z)(e,"".concat(o,"-with-marks"),Je.length),e)),style:s,onMouseDown:Rr},i.createElement("div",{className:"".concat(o,"-rail"),style:at}),i.createElement(ar,{prefixCls:o,style:ge,values:_t,startPoint:de,onStartMove:Tr?Cn:null}),i.createElement(lr,{prefixCls:o,marks:Je,dots:Qe,style:Ke,activeStyle:Ee}),i.createElement(nr,{ref:je,prefixCls:o,style:We,values:qt,draggingIndex:wn,onStartMove:Cn,onOffsetChange:Mr,onFocus:v,onBlur:E,handleRender:Ge}),i.createElement(sr,{prefixCls:o,marks:Je,onClick:mn})))}),dr=fr,hr=dr,vr=g(82259),dn=g(45869),pr=g(87694),gr=g(15367),mr=i.forwardRef(function(t,r){var e=t.open,n=(0,i.useRef)(null),o=(0,i.useRef)(null);function a(){dn.Z.cancel(o.current),o.current=null}function s(){o.current=(0,dn.Z)(function(){var l;(l=n.current)===null||l===void 0||l.forcePopupAlign(),o.current=null})}return i.useEffect(function(){return e?s():a(),a},[e,t.title]),i.createElement(gr.Z,(0,ot.Z)({ref:(0,pr.sQ)(n,r)},t))}),yr=mr,br=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},wr=i.forwardRef(function(t,r){var e=i.useContext(vr.E_),n=e.getPrefixCls,o=e.direction,a=e.getPopupContainer,s=i.useState({}),l=(0,$e.Z)(s,2),d=l[0],u=l[1],v=function(W,V){u(function(Y){return(0,ot.Z)((0,ot.Z)({},Y),(0,tt.Z)({},W,V))})},E=function(W,V){return W||(V?o==="rtl"?"left":"right":"top")},y=t.prefixCls,w=t.range,C=t.className,S=br(t,["prefixCls","range","className"]),R=n("slider",y),A=wt()(C,(0,tt.Z)({},"".concat(R,"-rtl"),o==="rtl"));o==="rtl"&&!S.vertical&&(S.reverse=!S.reverse);var M=i.useMemo(function(){return w?(0,ln.Z)(w)==="object"?[!0,w.draggableTrack]:[!0,!1]:[!1]},[w]),z=(0,$e.Z)(M,2),ee=z[0],Q=z[1],oe=function(W,V){var Y,ie=V.index,ae=V.dragging,J=n(),q=t.tooltip,pe=q===void 0?{}:q,De=t.vertical,te=(0,ot.Z)({formatter:(Y=t.tipFormatter)!==null&&Y!==void 0?Y:function(se){return typeof se=="number"?se.toString():""},open:t.tooltipVisible,placement:t.tooltipPlacement,getPopupContainer:t.getTooltipPopupContainer},pe),de=te.open,ge=te.placement,We=te.getPopupContainer,at=te.prefixCls,Ke=te.formatter,Ee=Ke?d[ie]||ae:!1,Ne=de||de===void 0&&Ee,Qe=(0,ot.Z)((0,ot.Z)({},W.props),{onMouseEnter:function(){return v(ie,!0)},onMouseLeave:function(){return v(ie,!1)}}),Ge=n("tooltip",at);return i.createElement(yr,{prefixCls:Ge,title:Ke?Ke(V.value):"",open:Ne,placement:E(ge,De),transitionName:"".concat(J,"-zoom-down"),key:ie,overlayClassName:"".concat(R,"-tooltip"),getPopupContainer:We||a},i.cloneElement(W,Qe))};return i.createElement(hr,(0,ot.Z)({},S,{step:S.step,range:ee,draggableTrack:Q,className:A,ref:r,prefixCls:R,handleRender:oe}))}),Vt=wr;const rt="img-crop",Kt=1,Mt=.1,kt=0,hn=-180,vn=180,Qt=1,pn=.5,gn=2,Tt=.01,Cr=(0,i.forwardRef)((t,r)=>{const{cropperRef:e,zoomSlider:n,rotationSlider:o,aspectSlider:a,showReset:s,resetBtnText:l,modalImage:d,aspect:u,minZoom:v,maxZoom:E,cropShape:y,showGrid:w,cropperProps:C}=t,[S,R]=(0,i.useState)(Kt),[A,M]=(0,i.useState)(kt),[z,ee]=(0,i.useState)(u),Q=S!==Kt||A!==kt||z!==u,oe=()=>{R(Kt),M(kt),ee(u)},[H,W]=(0,i.useState)({x:0,y:0}),V=(0,i.useRef)({width:0,height:0,x:0,y:0}),Y=(0,i.useCallback)((q,pe)=>{V.current=pe},[]);(0,i.useImperativeHandle)(r,()=>({rotation:A,cropPixelsRef:V,onReset:oe}));const ie="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",ae="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",J="[flex:1]";return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Wn,Object.assign({},C,{ref:e,image:d,crop:H,zoom:S,rotation:A,aspect:z,minZoom:v,maxZoom:E,zoomWithScroll:n,cropShape:y,showGrid:w,onCropChange:W,onZoomChange:R,onRotationChange:M,onCropComplete:Y,classes:{containerClassName:`${rt}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${rt}-media`}})),n&&(0,x.jsxs)("section",Object.assign({className:`${rt}-control ${rt}-control-zoom ${ie}`},{children:[(0,x.jsx)("button",Object.assign({className:ae,onClick:()=>R(S-Mt),disabled:S-Mt<v},{children:"\uFF0D"})),(0,x.jsx)(Vt,{className:J,min:v,max:E,step:Mt,value:S,onChange:R}),(0,x.jsx)("button",Object.assign({className:ae,onClick:()=>R(S+Mt),disabled:S+Mt>E},{children:"\uFF0B"}))]})),o&&(0,x.jsxs)("section",Object.assign({className:`${rt}-control ${rt}-control-rotation ${ie}`},{children:[(0,x.jsx)("button",Object.assign({className:`${ae} [font-size:16px]`,onClick:()=>M(A-Qt),disabled:A===hn},{children:"\u21BA"})),(0,x.jsx)(Vt,{className:J,min:hn,max:vn,step:Qt,value:A,onChange:M}),(0,x.jsx)("button",Object.assign({className:`${ae} [font-size:16px]`,onClick:()=>M(A+Qt),disabled:A===vn},{children:"\u21BB"}))]})),a&&(0,x.jsxs)("section",Object.assign({className:`${rt}-control ${rt}-control-aspect ${ie}`},{children:[(0,x.jsx)("button",Object.assign({className:ae,onClick:()=>ee(z-Tt),disabled:z-Tt<pn},{children:"\u2195\uFE0F"})),(0,x.jsx)(Vt,{className:J,min:pn,max:gn,step:Tt,value:z,onChange:ee}),(0,x.jsx)("button",Object.assign({className:ae,onClick:()=>ee(z+Tt),disabled:z+Tt>gn},{children:"\u2194\uFE0F"}))]})),s&&(n||o||a)&&(0,x.jsx)(Gn.Z,Object.assign({className:"[bottom:20px] [position:absolute]",style:Q?{}:{opacity:.3,pointerEvents:"none"},onClick:oe},{children:l}))]})});var xr=(0,i.memo)(Cr);function Sr(t,r){r===void 0&&(r={});var e=r.insertAt;if(!(!t||typeof document=="undefined")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var Er=".container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.grid{display:grid}.\\!\\[position\\:relative\\]{position:relative!important}.\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}";Sr(Er);const Pr=ue(b,"4.23.0")===-1?"visible":"open",xt=(t,r,e)=>r in t?(console.error(`\`${r}\` is deprecated, please use \`${e}\` instead`),t[r]):t[e],_r=(0,i.forwardRef)((t,r)=>{const{quality:e=.4,fillColor:n="white",zoomSlider:o=!0,rotationSlider:a=!1,aspectSlider:s=!1,showReset:l=!1,resetText:d,aspect:u=1,minZoom:v=1,maxZoom:E=3,cropShape:y="rect",showGrid:w=!1,cropperProps:C,modalClassName:S,modalTitle:R,modalWidth:A,modalOk:M,modalCancel:z,onModalOk:ee,onModalCancel:Q,modalProps:oe,beforeCrop:H,children:W}=t,V=xt(t,"zoom","zoomSlider")||!0,Y=xt(t,"rotate","rotationSlider")||!1,ie=xt(t,"shape","cropShape")||"rect",ae=xt(t,"grid","showGrid")||!1;"onUploadFail"in t&&console.error("`onUploadFail` is removed, because the only way it is called, is when the file is rejected by beforeUpload"),xt(t,"modalMaskTransitionName","modalProps.maskTransitionName"),xt(t,"modalTransitionName","modalProps.transitionName");const J=(0,i.useRef)({});J.current.onModalOk=ee,J.current.onModalCancel=Q,J.current.beforeCrop=H;const q=(0,i.useRef)(null),pe=(0,i.useCallback)(se=>{var Ie;const Pe=document.createElement("canvas"),we=Pe.getContext("2d"),je=(((Ie=se==null?void 0:se.getRootNode)===null||Ie===void 0?void 0:Ie.call(se))||document).querySelector(`.${rt}-media`),{width:Oe,height:Ae,x:re,y:Ze}=q.current.cropPixelsRef.current;if(Y&&q.current.rotation!==kt){const{naturalWidth:he,naturalHeight:ke}=je,Je=q.current.rotation*(Math.PI/180),St=Math.abs(Math.sin(Je)),pt=Math.abs(Math.cos(Je)),Ue=he*pt+ke*St,qe=ke*pt+he*St;Pe.width=Ue,Pe.height=qe,we.fillStyle=n,we.fillRect(0,0,Ue,qe);const ct=Ue/2,ft=qe/2;we.translate(ct,ft),we.rotate(Je),we.translate(-ct,-ft);const ze=(Ue-he)/2,Et=(qe-ke)/2;we.drawImage(je,0,0,he,ke,ze,Et,he,ke);const Me=we.getImageData(0,0,Ue,qe);Pe.width=Oe,Pe.height=Ae,we.putImageData(Me,-re,-Ze)}else Pe.width=Oe,Pe.height=Ae,we.fillStyle=n,we.fillRect(0,0,Oe,Ae),we.drawImage(je,re,Ze,Oe,Ae,0,0,Oe,Ae);return Pe},[n,Y]),[De,te]=(0,i.useState)(""),de=(0,i.useRef)(),ge=(0,i.useRef)(),We=(0,i.useMemo)(()=>{const se=Array.isArray(W)?W[0]:W,Ie=se.props,{beforeUpload:Pe,accept:we}=Ie,lt=j(Ie,["beforeUpload","accept"]),je=(Oe,Ae)=>new Promise(re=>O(void 0,void 0,void 0,function*(){if(typeof J.current.beforeCrop=="function")try{const he=yield J.current.beforeCrop(Oe,Ae);if(he!==!0)return re(he)}catch(he){return re(he)}const Ze=new FileReader;Ze.addEventListener("load",()=>{typeof Ze.result=="string"&&te(Ze.result)}),Ze.readAsDataURL(Oe),de.current=()=>{var he,ke;te(""),q.current.onReset(),re($.Z.LIST_IGNORE),(ke=(he=J.current).onModalCancel)===null||ke===void 0||ke.call(he)},ge.current=he=>O(void 0,void 0,void 0,function*(){te(""),q.current.onReset();const ke=pe(he.target),{type:Je,name:St,uid:pt}=Oe;ke.toBlob(Ue=>O(void 0,void 0,void 0,function*(){var qe,ct,ft,ze,Et,Me;const et=new File([Ue],St,{type:Je});if(Object.assign(et,{uid:pt}),typeof Pe!="function"){re(et),(ct=(qe=J.current).onModalOk)===null||ct===void 0||ct.call(qe,et);return}try{const Fe=yield Pe(et,[et]),Pt=Fe===!0?et:Fe;re(Pt),(ze=(ft=J.current).onModalOk)===null||ze===void 0||ze.call(ft,Pt)}catch(Fe){re(Fe),(Me=(Et=J.current).onModalOk)===null||Me===void 0||Me.call(Et,Fe)}}),Je,e)})}));return Object.assign(Object.assign({},se),{props:Object.assign(Object.assign({},lt),{accept:we||"image/*",beforeUpload:je})})},[W,pe,e]),at=(0,i.useMemo)(()=>{const se={};return A!==void 0&&(se.width=A),M!==void 0&&(se.okText=M),z!==void 0&&(se.cancelText=z),se},[z,M,A]),Ke=`${rt}-modal${S?` ${S}`:""}`,Ne=(typeof window=="undefined"?"":window.navigator.language)==="zh-CN",Qe=R||(Ne?"\u7F16\u8F91\u56FE\u7247":"Edit image"),Ge=d||(Ne?"\u91CD\u7F6E":"Reset");return(0,x.jsxs)(x.Fragment,{children:[We,De&&(0,x.jsx)(k.Z,Object.assign({},oe,at,{[Pr]:!0},{title:Qe,onCancel:de.current,onOk:ge.current,wrapClassName:Ke,maskClosable:!1,destroyOnClose:!0},{children:(0,x.jsx)(xr,{ref:q,cropperRef:r,zoomSlider:V,rotationSlider:Y,aspectSlider:s,showReset:l,resetBtnText:Ge,modalImage:De,aspect:u,minZoom:v,maxZoom:E,cropShape:ie,showGrid:ae,cropperProps:C})}))]})})},28061:function(K,U,g){"use strict";var D=g(18740),B=g(57672)},6210:function(K,U,g){K.exports=g(92782)},72906:function(K){"use strict";var U=!!(typeof window!="undefined"&&window.document&&window.document.createElement),g={canUseDOM:U,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:U&&!!(window.addEventListener||window.attachEvent),canUseViewport:U&&!!window.screen,isInWorker:!U};K.exports=g},73211:function(K){var U=!1,g,D,B,N,j,I,m,p,h,f,c,_,O,L,Z;function T(){if(!U){U=!0;var le=navigator.userAgent,F=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(le),He=/(Mac OS X)|(Windows)|(Linux)/.exec(le);if(_=/\b(iPhone|iP[ao]d)/.exec(le),O=/\b(iP[ao]d)/.exec(le),f=/Android/i.exec(le),L=/FBAN\/\w+;/i.exec(le),Z=/Mobile/i.exec(le),c=!!/Win64/.exec(le),F){g=F[1]?parseFloat(F[1]):F[5]?parseFloat(F[5]):NaN,g&&document&&document.documentMode&&(g=document.documentMode);var it=/(?:Trident\/(\d+.\d+))/.exec(le);I=it?parseFloat(it[1])+4:g,D=F[2]?parseFloat(F[2]):NaN,B=F[3]?parseFloat(F[3]):NaN,N=F[4]?parseFloat(F[4]):NaN,N?(F=/(?:Chrome\/(\d+\.\d+))/.exec(le),j=F&&F[1]?parseFloat(F[1]):NaN):j=NaN}else g=D=B=j=N=NaN;if(He){if(He[1]){var Le=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(le);m=Le?parseFloat(Le[1].replace("_",".")):!0}else m=!1;p=!!He[2],h=!!He[3]}else m=p=h=!1}}var X={ie:function(){return T()||g},ieCompatibilityMode:function(){return T()||I>g},ie64:function(){return X.ie()&&c},firefox:function(){return T()||D},opera:function(){return T()||B},webkit:function(){return T()||N},safari:function(){return X.webkit()},chrome:function(){return T()||j},windows:function(){return T()||p},osx:function(){return T()||m},linux:function(){return T()||h},iphone:function(){return T()||_},mobile:function(){return T()||_||O||f||Z},nativeApp:function(){return T()||L},android:function(){return T()||f},ipad:function(){return T()||O}};K.exports=X},16177:function(K,U,g){"use strict";var D=g(72906),B;D.canUseDOM&&(B=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function N(j,I){if(!D.canUseDOM||I&&!("addEventListener"in document))return!1;var m="on"+j,p=m in document;if(!p){var h=document.createElement("div");h.setAttribute(m,"return;"),p=typeof h[m]=="function"}return!p&&B&&j==="wheel"&&(p=document.implementation.hasFeature("Events.wheel","3.0")),p}K.exports=N},92782:function(K,U,g){"use strict";var D=g(73211),B=g(16177),N=10,j=40,I=800;function m(p){var h=0,f=0,c=0,_=0;return"detail"in p&&(f=p.detail),"wheelDelta"in p&&(f=-p.wheelDelta/120),"wheelDeltaY"in p&&(f=-p.wheelDeltaY/120),"wheelDeltaX"in p&&(h=-p.wheelDeltaX/120),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(h=f,f=0),c=h*N,_=f*N,"deltaY"in p&&(_=p.deltaY),"deltaX"in p&&(c=p.deltaX),(c||_)&&p.deltaMode&&(p.deltaMode==1?(c*=j,_*=j):(c*=I,_*=I)),c&&!h&&(h=c<1?-1:1),_&&!f&&(f=_<1?-1:1),{spinX:h,spinY:f,pixelX:c,pixelY:_}}m.getEventType=function(){return D.firefox()?"DOMMouseScroll":B("wheel")?"wheel":"mousewheel"},K.exports=m},31688:function(K,U,g){var D=g(45478);function B(N){this.mode=D.MODE_8BIT_BYTE,this.data=N}B.prototype={getLength:function(N){return this.data.length},write:function(N){for(var j=0;j<this.data.length;j++)N.put(this.data.charCodeAt(j),8)}},K.exports=B},77572:function(K){function U(){this.buffer=new Array,this.length=0}U.prototype={get:function(g){var D=Math.floor(g/8);return(this.buffer[D]>>>7-g%8&1)==1},put:function(g,D){for(var B=0;B<D;B++)this.putBit((g>>>D-B-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(g){var D=Math.floor(this.length/8);this.buffer.length<=D&&this.buffer.push(0),g&&(this.buffer[D]|=128>>>this.length%8),this.length++}},K.exports=U},12538:function(K){K.exports={L:1,M:0,Q:3,H:2}},14382:function(K,U,g){var D=g(4897);function B(N,j){if(N.length==null)throw new Error(N.length+"/"+j);for(var I=0;I<N.length&&N[I]==0;)I++;this.num=new Array(N.length-I+j);for(var m=0;m<N.length-I;m++)this.num[m]=N[m+I]}B.prototype={get:function(N){return this.num[N]},getLength:function(){return this.num.length},multiply:function(N){for(var j=new Array(this.getLength()+N.getLength()-1),I=0;I<this.getLength();I++)for(var m=0;m<N.getLength();m++)j[I+m]^=D.gexp(D.glog(this.get(I))+D.glog(N.get(m)));return new B(j,0)},mod:function(N){if(this.getLength()-N.getLength()<0)return this;for(var j=D.glog(this.get(0))-D.glog(N.get(0)),I=new Array(this.getLength()),m=0;m<this.getLength();m++)I[m]=this.get(m);for(var m=0;m<N.getLength();m++)I[m]^=D.gexp(D.glog(N.get(m))+j);return new B(I,0).mod(N)}},K.exports=B},46175:function(K,U,g){var D=g(31688),B=g(77515),N=g(77572),j=g(62739),I=g(14382);function m(h,f){this.typeNumber=h,this.errorCorrectLevel=f,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var p=m.prototype;p.addData=function(h){var f=new D(h);this.dataList.push(f),this.dataCache=null},p.isDark=function(h,f){if(h<0||this.moduleCount<=h||f<0||this.moduleCount<=f)throw new Error(h+","+f);return this.modules[h][f]},p.getModuleCount=function(){return this.moduleCount},p.make=function(){if(this.typeNumber<1){var h=1;for(h=1;h<40;h++){for(var f=B.getRSBlocks(h,this.errorCorrectLevel),c=new N,_=0,O=0;O<f.length;O++)_+=f[O].dataCount;for(var O=0;O<this.dataList.length;O++){var L=this.dataList[O];c.put(L.mode,4),c.put(L.getLength(),j.getLengthInBits(L.mode,h)),L.write(c)}if(c.getLengthInBits()<=_*8)break}this.typeNumber=h}this.makeImpl(!1,this.getBestMaskPattern())},p.makeImpl=function(h,f){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var c=0;c<this.moduleCount;c++){this.modules[c]=new Array(this.moduleCount);for(var _=0;_<this.moduleCount;_++)this.modules[c][_]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(h,f),this.typeNumber>=7&&this.setupTypeNumber(h),this.dataCache==null&&(this.dataCache=m.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,f)},p.setupPositionProbePattern=function(h,f){for(var c=-1;c<=7;c++)if(!(h+c<=-1||this.moduleCount<=h+c))for(var _=-1;_<=7;_++)f+_<=-1||this.moduleCount<=f+_||(0<=c&&c<=6&&(_==0||_==6)||0<=_&&_<=6&&(c==0||c==6)||2<=c&&c<=4&&2<=_&&_<=4?this.modules[h+c][f+_]=!0:this.modules[h+c][f+_]=!1)},p.getBestMaskPattern=function(){for(var h=0,f=0,c=0;c<8;c++){this.makeImpl(!0,c);var _=j.getLostPoint(this);(c==0||h>_)&&(h=_,f=c)}return f},p.createMovieClip=function(h,f,c){var _=h.createEmptyMovieClip(f,c),O=1;this.make();for(var L=0;L<this.modules.length;L++)for(var Z=L*O,T=0;T<this.modules[L].length;T++){var X=T*O,le=this.modules[L][T];le&&(_.beginFill(0,100),_.moveTo(X,Z),_.lineTo(X+O,Z),_.lineTo(X+O,Z+O),_.lineTo(X,Z+O),_.endFill())}return _},p.setupTimingPattern=function(){for(var h=8;h<this.moduleCount-8;h++)this.modules[h][6]==null&&(this.modules[h][6]=h%2==0);for(var f=8;f<this.moduleCount-8;f++)this.modules[6][f]==null&&(this.modules[6][f]=f%2==0)},p.setupPositionAdjustPattern=function(){for(var h=j.getPatternPosition(this.typeNumber),f=0;f<h.length;f++)for(var c=0;c<h.length;c++){var _=h[f],O=h[c];if(this.modules[_][O]==null)for(var L=-2;L<=2;L++)for(var Z=-2;Z<=2;Z++)L==-2||L==2||Z==-2||Z==2||L==0&&Z==0?this.modules[_+L][O+Z]=!0:this.modules[_+L][O+Z]=!1}},p.setupTypeNumber=function(h){for(var f=j.getBCHTypeNumber(this.typeNumber),c=0;c<18;c++){var _=!h&&(f>>c&1)==1;this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=_}for(var c=0;c<18;c++){var _=!h&&(f>>c&1)==1;this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=_}},p.setupTypeInfo=function(h,f){for(var c=this.errorCorrectLevel<<3|f,_=j.getBCHTypeInfo(c),O=0;O<15;O++){var L=!h&&(_>>O&1)==1;O<6?this.modules[O][8]=L:O<8?this.modules[O+1][8]=L:this.modules[this.moduleCount-15+O][8]=L}for(var O=0;O<15;O++){var L=!h&&(_>>O&1)==1;O<8?this.modules[8][this.moduleCount-O-1]=L:O<9?this.modules[8][15-O-1+1]=L:this.modules[8][15-O-1]=L}this.modules[this.moduleCount-8][8]=!h},p.mapData=function(h,f){for(var c=-1,_=this.moduleCount-1,O=7,L=0,Z=this.moduleCount-1;Z>0;Z-=2)for(Z==6&&Z--;;){for(var T=0;T<2;T++)if(this.modules[_][Z-T]==null){var X=!1;L<h.length&&(X=(h[L]>>>O&1)==1);var le=j.getMask(f,_,Z-T);le&&(X=!X),this.modules[_][Z-T]=X,O--,O==-1&&(L++,O=7)}if(_+=c,_<0||this.moduleCount<=_){_-=c,c=-c;break}}},m.PAD0=236,m.PAD1=17,m.createData=function(h,f,c){for(var _=B.getRSBlocks(h,f),O=new N,L=0;L<c.length;L++){var Z=c[L];O.put(Z.mode,4),O.put(Z.getLength(),j.getLengthInBits(Z.mode,h)),Z.write(O)}for(var T=0,L=0;L<_.length;L++)T+=_[L].dataCount;if(O.getLengthInBits()>T*8)throw new Error("code length overflow. ("+O.getLengthInBits()+">"+T*8+")");for(O.getLengthInBits()+4<=T*8&&O.put(0,4);O.getLengthInBits()%8!=0;)O.putBit(!1);for(;!(O.getLengthInBits()>=T*8||(O.put(m.PAD0,8),O.getLengthInBits()>=T*8));)O.put(m.PAD1,8);return m.createBytes(O,_)},m.createBytes=function(h,f){for(var c=0,_=0,O=0,L=new Array(f.length),Z=new Array(f.length),T=0;T<f.length;T++){var X=f[T].dataCount,le=f[T].totalCount-X;_=Math.max(_,X),O=Math.max(O,le),L[T]=new Array(X);for(var F=0;F<L[T].length;F++)L[T][F]=255&h.buffer[F+c];c+=X;var He=j.getErrorCorrectPolynomial(le),it=new I(L[T],He.getLength()-1),Le=it.mod(He);Z[T]=new Array(He.getLength()-1);for(var F=0;F<Z[T].length;F++){var Lt=F+Le.getLength()-Z[T].length;Z[T][F]=Lt>=0?Le.get(Lt):0}}for(var ht=0,F=0;F<f.length;F++)ht+=f[F].totalCount;for(var mt=new Array(ht),yt=0,F=0;F<_;F++)for(var T=0;T<f.length;T++)F<L[T].length&&(mt[yt++]=L[T][F]);for(var F=0;F<O;F++)for(var T=0;T<f.length;T++)F<Z[T].length&&(mt[yt++]=Z[T][F]);return mt},K.exports=m},77515:function(K,U,g){var D=g(12538);function B(N,j){this.totalCount=N,this.dataCount=j}B.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],B.getRSBlocks=function(N,j){var I=B.getRsBlockTable(N,j);if(I==null)throw new Error("bad rs block @ typeNumber:"+N+"/errorCorrectLevel:"+j);for(var m=I.length/3,p=new Array,h=0;h<m;h++)for(var f=I[h*3+0],c=I[h*3+1],_=I[h*3+2],O=0;O<f;O++)p.push(new B(c,_));return p},B.getRsBlockTable=function(N,j){switch(j){case D.L:return B.RS_BLOCK_TABLE[(N-1)*4+0];case D.M:return B.RS_BLOCK_TABLE[(N-1)*4+1];case D.Q:return B.RS_BLOCK_TABLE[(N-1)*4+2];case D.H:return B.RS_BLOCK_TABLE[(N-1)*4+3];default:return}},K.exports=B},4897:function(K){for(var U={glog:function(D){if(D<1)throw new Error("glog("+D+")");return U.LOG_TABLE[D]},gexp:function(D){for(;D<0;)D+=255;for(;D>=256;)D-=255;return U.EXP_TABLE[D]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)U.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)U.EXP_TABLE[g]=U.EXP_TABLE[g-4]^U.EXP_TABLE[g-5]^U.EXP_TABLE[g-6]^U.EXP_TABLE[g-8];for(var g=0;g<255;g++)U.LOG_TABLE[U.EXP_TABLE[g]]=g;K.exports=U},45478:function(K){K.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},62739:function(K,U,g){var D=g(45478),B=g(14382),N=g(4897),j={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},I={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(m){for(var p=m<<10;I.getBCHDigit(p)-I.getBCHDigit(I.G15)>=0;)p^=I.G15<<I.getBCHDigit(p)-I.getBCHDigit(I.G15);return(m<<10|p)^I.G15_MASK},getBCHTypeNumber:function(m){for(var p=m<<12;I.getBCHDigit(p)-I.getBCHDigit(I.G18)>=0;)p^=I.G18<<I.getBCHDigit(p)-I.getBCHDigit(I.G18);return m<<12|p},getBCHDigit:function(m){for(var p=0;m!=0;)p++,m>>>=1;return p},getPatternPosition:function(m){return I.PATTERN_POSITION_TABLE[m-1]},getMask:function(m,p,h){switch(m){case j.PATTERN000:return(p+h)%2==0;case j.PATTERN001:return p%2==0;case j.PATTERN010:return h%3==0;case j.PATTERN011:return(p+h)%3==0;case j.PATTERN100:return(Math.floor(p/2)+Math.floor(h/3))%2==0;case j.PATTERN101:return p*h%2+p*h%3==0;case j.PATTERN110:return(p*h%2+p*h%3)%2==0;case j.PATTERN111:return(p*h%3+(p+h)%2)%2==0;default:throw new Error("bad maskPattern:"+m)}},getErrorCorrectPolynomial:function(m){for(var p=new B([1],0),h=0;h<m;h++)p=p.multiply(new B([1,N.gexp(h)],0));return p},getLengthInBits:function(m,p){if(1<=p&&p<10)switch(m){case D.MODE_NUMBER:return 10;case D.MODE_ALPHA_NUM:return 9;case D.MODE_8BIT_BYTE:return 8;case D.MODE_KANJI:return 8;default:throw new Error("mode:"+m)}else if(p<27)switch(m){case D.MODE_NUMBER:return 12;case D.MODE_ALPHA_NUM:return 11;case D.MODE_8BIT_BYTE:return 16;case D.MODE_KANJI:return 10;default:throw new Error("mode:"+m)}else if(p<41)switch(m){case D.MODE_NUMBER:return 14;case D.MODE_ALPHA_NUM:return 13;case D.MODE_8BIT_BYTE:return 16;case D.MODE_KANJI:return 12;default:throw new Error("mode:"+m)}else throw new Error("type:"+p)},getLostPoint:function(m){for(var p=m.getModuleCount(),h=0,f=0;f<p;f++)for(var c=0;c<p;c++){for(var _=0,O=m.isDark(f,c),L=-1;L<=1;L++)if(!(f+L<0||p<=f+L))for(var Z=-1;Z<=1;Z++)c+Z<0||p<=c+Z||L==0&&Z==0||O==m.isDark(f+L,c+Z)&&_++;_>5&&(h+=3+_-5)}for(var f=0;f<p-1;f++)for(var c=0;c<p-1;c++){var T=0;m.isDark(f,c)&&T++,m.isDark(f+1,c)&&T++,m.isDark(f,c+1)&&T++,m.isDark(f+1,c+1)&&T++,(T==0||T==4)&&(h+=3)}for(var f=0;f<p;f++)for(var c=0;c<p-6;c++)m.isDark(f,c)&&!m.isDark(f,c+1)&&m.isDark(f,c+2)&&m.isDark(f,c+3)&&m.isDark(f,c+4)&&!m.isDark(f,c+5)&&m.isDark(f,c+6)&&(h+=40);for(var c=0;c<p;c++)for(var f=0;f<p-6;f++)m.isDark(f,c)&&!m.isDark(f+1,c)&&m.isDark(f+2,c)&&m.isDark(f+3,c)&&m.isDark(f+4,c)&&!m.isDark(f+5,c)&&m.isDark(f+6,c)&&(h+=40);for(var X=0,c=0;c<p;c++)for(var f=0;f<p;f++)m.isDark(f,c)&&X++;var le=Math.abs(100*X/p/p-50)/5;return h+=le*10,h}};K.exports=I},48039:function(K,U,g){"use strict";function D(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(P){return typeof P}:D=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},D(x)}function B(){return B=Object.assign||function(x){for(var i=1;i<arguments.length;i++){var P=arguments[i];for(var b in P)Object.prototype.hasOwnProperty.call(P,b)&&(x[b]=P[b])}return x},B.apply(this,arguments)}function N(x,i){var P=Object.keys(x);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(x);i&&(b=b.filter(function(k){return Object.getOwnPropertyDescriptor(x,k).enumerable})),P.push.apply(P,b)}return P}function j(x){for(var i=1;i<arguments.length;i++){var P=arguments[i]!=null?arguments[i]:{};i%2?N(P,!0).forEach(function(b){T(x,b,P[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(P)):N(P).forEach(function(b){Object.defineProperty(x,b,Object.getOwnPropertyDescriptor(P,b))})}return x}function I(x,i){if(x==null)return{};var P=m(x,i),b,k;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(x);for(k=0;k<$.length;k++)b=$[k],!(i.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(x,b)&&(P[b]=x[b])}return P}function m(x,i){if(x==null)return{};var P={},b=Object.keys(x),k,$;for($=0;$<b.length;$++)k=b[$],!(i.indexOf(k)>=0)&&(P[k]=x[k]);return P}function p(x,i){if(!(x instanceof i))throw new TypeError("Cannot call a class as a function")}function h(x,i){for(var P=0;P<i.length;P++){var b=i[P];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function f(x,i,P){return i&&h(x.prototype,i),P&&h(x,P),x}function c(x,i){return i&&(D(i)==="object"||typeof i=="function")?i:O(x)}function _(x){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},_(x)}function O(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function L(x,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(i&&i.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),i&&Z(x,i)}function Z(x,i){return Z=Object.setPrototypeOf||function(b,k){return b.__proto__=k,b},Z(x,i)}function T(x,i,P){return i in x?Object.defineProperty(x,i,{value:P,enumerable:!0,configurable:!0,writable:!0}):x[i]=P,x}var X=g(63313),le=g(40507),F=g(46175),He=g(12538);function it(x){for(var i="",P=0;P<x.length;P++){var b=x.charCodeAt(P);b<128?i+=String.fromCharCode(b):b<2048?(i+=String.fromCharCode(192|b>>6),i+=String.fromCharCode(128|b&63)):b<55296||b>=57344?(i+=String.fromCharCode(224|b>>12),i+=String.fromCharCode(128|b>>6&63),i+=String.fromCharCode(128|b&63)):(P++,b=65536+((b&1023)<<10|x.charCodeAt(P)&1023),i+=String.fromCharCode(240|b>>18),i+=String.fromCharCode(128|b>>12&63),i+=String.fromCharCode(128|b>>6&63),i+=String.fromCharCode(128|b&63))}return i}var Le={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},Lt={},ht=4,mt=.1;function yt(x){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[];return x.forEach(function(b,k){var $=null;b.forEach(function(ue,Re){if(!ue&&$!==null){P.push("M".concat($+i," ").concat(k+i,"h").concat(Re-$,"v1H").concat($+i,"z")),$=null;return}if(Re===b.length-1){if(!ue)return;$===null?P.push("M".concat(Re+i,",").concat(k+i," h1v1H").concat(Re+i,"z")):P.push("M".concat($+i,",").concat(k+i," h").concat(Re+1-$,"v1H").concat($+i,"z"));return}ue&&$===null&&($=Re)})}),P.join("")}function Nt(x,i){return x.slice().map(function(P,b){return b<i.y||b>=i.y+i.h?P:P.map(function(k,$){return $<i.x||$>=i.x+i.w?k:!1})})}function Ht(x,i){var P=x.imageSettings,b=x.size,k=x.includeMargin;if(P==null)return null;var $=k?ht:0,ue=i.length+$*2,Re=Math.floor(b*mt),Xe=ue/b,Ye=(P.width||Re)*Xe,Be=(P.height||Re)*Xe,Te=P.x==null?i.length/2-Ye/2:P.x*Xe,Ce=P.y==null?i.length/2-Be/2:P.y*Xe,ce=null;if(P.excavate){var ye=Math.floor(Te),be=Math.floor(Ce),fe=Math.ceil(Ye+Te-ye),xe=Math.ceil(Be+Ce-be);ce={x:ye,y:be,w:fe,h:xe}}return{x:Te,y:Ce,h:Be,w:Ye,excavation:ce}}var en=function(){try{new Path2D().addPath(new Path2D)}catch(x){return!1}return!0}(),$t=function(x){L(i,x);function i(){var P,b;p(this,i);for(var k=arguments.length,$=new Array(k),ue=0;ue<k;ue++)$[ue]=arguments[ue];return b=c(this,(P=_(i)).call.apply(P,[this].concat($))),T(O(b),"_canvas",void 0),T(O(b),"_image",void 0),T(O(b),"state",{imgLoaded:!1}),T(O(b),"handleImageLoad",function(){b.setState({imgLoaded:!0})}),b}return f(i,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(b){var k,$,ue=(k=this.props.imageSettings)===null||k===void 0?void 0:k.src,Re=($=b.imageSettings)===null||$===void 0?void 0:$.src;ue!==Re&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var b=this.props,k=b.value,$=b.size,ue=b.level,Re=b.bgColor,Xe=b.fgColor,Ye=b.includeMargin,Be=b.imageSettings,Te=new F(-1,He[ue]);if(Te.addData(it(k)),Te.make(),this._canvas!=null){var Ce=this._canvas,ce=Ce.getContext("2d");if(!ce)return;var ye=Te.modules;if(ye===null)return;var be=Ye?ht:0,fe=ye.length+be*2,xe=Ht(this.props,ye);Be!=null&&xe!=null&&xe.excavation!=null&&(ye=Nt(ye,xe.excavation));var Ve=window.devicePixelRatio||1;Ce.height=Ce.width=$*Ve;var It=$/fe*Ve;ce.scale(It,It),ce.fillStyle=Re,ce.fillRect(0,0,fe,fe),ce.fillStyle=Xe,en?ce.fill(new Path2D(yt(ye,be))):ye.forEach(function(Ot,Ut){Ot.forEach(function(Se,tn){Se&&ce.fillRect(tn+be,Ut+be,1,1)})}),this.state.imgLoaded&&this._image&&xe!=null&&ce.drawImage(this._image,xe.x+be,xe.y+be,xe.w,xe.h)}}},{key:"render",value:function(){var b=this,k=this.props,$=k.value,ue=k.size,Re=k.level,Xe=k.bgColor,Ye=k.fgColor,Be=k.style,Te=k.includeMargin,Ce=k.imageSettings,ce=I(k,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),ye=j({height:ue,width:ue},Be),be=null,fe=Ce&&Ce.src;return Ce!=null&&fe!=null&&(be=X.createElement("img",{src:fe,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(Ve){return b._image=Ve}})),X.createElement(X.Fragment,null,X.createElement("canvas",B({style:ye,height:ue,width:ue,ref:function(Ve){return b._canvas=Ve}},ce)),be)}}]),i}(X.PureComponent);T($t,"defaultProps",Le);var Wt=function(x){L(i,x);function i(){return p(this,i),c(this,_(i).apply(this,arguments))}return f(i,[{key:"render",value:function(){var b=this.props,k=b.value,$=b.size,ue=b.level,Re=b.bgColor,Xe=b.fgColor,Ye=b.includeMargin,Be=b.imageSettings,Te=I(b,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),Ce=new F(-1,He[ue]);Ce.addData(it(k)),Ce.make();var ce=Ce.modules;if(ce===null)return null;var ye=Ye?ht:0,be=ce.length+ye*2,fe=Ht(this.props,ce),xe=null;Be!=null&&fe!=null&&(fe.excavation!=null&&(ce=Nt(ce,fe.excavation)),xe=X.createElement("image",{xlinkHref:Be.src,height:fe.h,width:fe.w,x:fe.x+ye,y:fe.y+ye,preserveAspectRatio:"none"}));var Ve=yt(ce,ye);return X.createElement("svg",B({shapeRendering:"crispEdges",height:$,width:$,viewBox:"0 0 ".concat(be," ").concat(be)},Te),X.createElement("path",{fill:Re,d:"M0,0 h".concat(be,"v").concat(be,"H0z")}),X.createElement("path",{fill:Xe,d:Ve}),xe)}}]),i}(X.PureComponent);T(Wt,"defaultProps",Le);var Gt=function(i){var P=i.renderAs,b=I(i,["renderAs"]),k=P==="svg"?Wt:$t;return X.createElement(k,b)};Gt.defaultProps=j({renderAs:"canvas"},Le),K.exports=Gt}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6304],{23831:function(qe,oe,t){t.d(oe,{Z:function(){return C}});var y=t(185),p=t(63313),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$=S,s=t(46420),T=function(N,g){return p.createElement(s.Z,(0,y.Z)((0,y.Z)({},N),{},{ref:g,icon:$}))};T.displayName="EllipsisOutlined";var C=p.forwardRef(T)},84924:function(qe,oe,t){t.d(oe,{Z:function(){return C}});var y=t(185),p=t(63313),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},$=S,s=t(46420),T=function(N,g){return p.createElement(s.Z,(0,y.Z)((0,y.Z)({},N),{},{ref:g,icon:$}))};T.displayName="LeftOutlined";var C=p.forwardRef(T)},43167:function(qe,oe,t){t.d(oe,{Z:function(){return C}});var y=t(185),p=t(63313),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},$=S,s=t(46420),T=function(N,g){return p.createElement(s.Z,(0,y.Z)((0,y.Z)({},N),{},{ref:g,icon:$}))};T.displayName="RightOutlined";var C=p.forwardRef(T)},92235:function(qe,oe,t){t.d(oe,{Z:function(){return $}});var y=t(66441),p=t(63313),S=t.n(p);function $(){var s=p.useReducer(function(B){return B+1},0),T=(0,y.Z)(s,2),C=T[1];return C}},70029:function(qe,oe,t){t.d(oe,{Z:function(){return M}});var y=t(72564),p=t(96268),S=t(45389),$=t(66441),s=t(43167),T=t(84875),C=t.n(T),B=t(27935),N=t(87174),g=t(37348),b=t(63313),e=t(21903),pe=t(82259),Te=t(49279),Ke=t(21134),ie=t(25515),He=t(20341),Ge=t(23831),h=t(24378),I=t(60934),Q=t(2947),O=function(L,l){var R={};for(var D in L)Object.prototype.hasOwnProperty.call(L,D)&&l.indexOf(D)<0&&(R[D]=L[D]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,D=Object.getOwnPropertySymbols(L);j<D.length;j++)l.indexOf(D[j])<0&&Object.prototype.propertyIsEnumerable.call(L,D[j])&&(R[D[j]]=L[D[j]]);return R},m=function(l){var R=b.useContext(pe.E_),D=R.getPopupContainer,j=R.getPrefixCls,Se=R.direction,ne=l.prefixCls,le=l.type,U=le===void 0?"default":le,_=l.danger,u=l.disabled,x=l.loading,P=l.onClick,o=l.htmlType,v=l.children,z=l.className,q=l.menu,F=l.arrow,W=l.autoFocus,G=l.overlay,se=l.trigger,ve=l.align,ee=l.visible,be=l.open,$e=l.onVisibleChange,Oe=l.onOpenChange,ye=l.placement,V=l.getPopupContainer,Le=l.href,we=l.icon,ze=we===void 0?b.createElement(Ge.Z,null):we,We=l.title,je=l.buttonsRender,Me=je===void 0?function(At){return At}:je,H=l.mouseEnterDelay,re=l.mouseLeaveDelay,st=l.overlayClassName,vt=l.overlayStyle,rt=l.destroyPopupOnHide,ft=O(l,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),ae=j("dropdown-button",ne),K={menu:q,arrow:F,autoFocus:W,align:ve,disabled:u,trigger:u?[]:se,onOpenChange:Oe||$e,getPopupContainer:V||D,mouseEnterDelay:H,mouseLeaveDelay:re,overlayClassName:st,overlayStyle:vt,destroyPopupOnHide:rt},Y=(0,I.ri)(ae,Se),he=Y.compactSize,Be=Y.compactItemClassnames,Ye=C()(ae,Be,z);"overlay"in l&&(K.overlay=G),"open"in l?K.open=be:"visible"in l&&(K.open=ee),"placement"in l?K.placement=ye:K.placement=Se==="rtl"?"bottomLeft":"bottomRight";var ht=b.createElement(h.Z,{type:U,danger:_,disabled:u,loading:x,onClick:P,htmlType:o,href:Le,title:We},v),jt=b.createElement(h.Z,{type:U,danger:_,icon:ze}),Ct=Me([ht,jt]),Rt=(0,$.Z)(Ct,2),Bt=Rt[0],Dt=Rt[1];return b.createElement(Q.Z.Compact,(0,y.Z)({className:Ye,size:he,block:!0},ft),Bt,b.createElement(M,(0,y.Z)({},K),Dt))};m.__ANT_BUTTON=!0;var de=m,k=(0,He.b)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),E=function(l){var R=b.useContext(pe.E_),D=R.getPopupContainer,j=R.getPrefixCls,Se=R.direction,ne=function(){var Y=j(),he=l.placement,Be=he===void 0?"":he,Ye=l.transitionName;return Ye!==void 0?Ye:Be.includes("top")?"".concat(Y,"-slide-down"):"".concat(Y,"-slide-up")},le=function(){var Y=l.placement;if(!Y)return Se==="rtl"?"bottomRight":"bottomLeft";if(Y.includes("Center")){var he=Y.slice(0,Y.indexOf("Center"));return he}return Y},U=l.menu,_=l.arrow,u=l.prefixCls,x=l.children,P=l.trigger,o=l.disabled,v=l.dropdownRender,z=l.getPopupContainer,q=l.overlayClassName,F=l.visible,W=l.open,G=l.onVisibleChange,se=l.onOpenChange,ve=l.mouseEnterDelay,ee=ve===void 0?.15:ve,be=l.mouseLeaveDelay,$e=be===void 0?.1:be,Oe=l.autoAdjustOverflow,ye=Oe===void 0?!0:Oe,V=j("dropdown",u),Le=b.Children.only(x),we=(0,ie.Tm)(Le,{className:C()("".concat(V,"-trigger"),(0,S.Z)({},"".concat(V,"-rtl"),Se==="rtl"),Le.props.className),disabled:o}),ze=o?[]:P,We;ze&&ze.includes("contextMenu")&&(We=!0);var je=(0,g.Z)(!1,{value:W!==void 0?W:F}),Me=(0,$.Z)(je,2),H=Me[0],re=Me[1],st=(0,N.Z)(function(K){G==null||G(K),se==null||se(K),re(K)}),vt=C()(q,(0,S.Z)({},"".concat(V,"-rtl"),Se==="rtl")),rt=(0,Ke.Z)({arrowPointAtCenter:(0,p.Z)(_)==="object"&&_.pointAtCenter,autoAdjustOverflow:ye}),ft=b.useCallback(function(){re(!1)},[]),ae=function(){var Y=l.overlay,he;return U!=null&&U.items?he=b.createElement(e.Z,(0,y.Z)({},U)):typeof Y=="function"?he=Y():he=Y,v&&(he=v(he)),he=b.Children.only(typeof he=="string"?b.createElement("span",null,he):he),b.createElement(Te.J,{prefixCls:"".concat(V,"-menu"),expandIcon:b.createElement("span",{className:"".concat(V,"-menu-submenu-arrow")},b.createElement(s.Z,{className:"".concat(V,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:ft,validator:function(Ye){var ht=Ye.mode}},b.createElement(I.BR,null,he))};return b.createElement(B.Z,(0,y.Z)({alignPoint:We},l,{mouseEnterDelay:ee,mouseLeaveDelay:$e,visible:H,builtinPlacements:rt,arrow:!!_,overlayClassName:vt,prefixCls:V,getPopupContainer:z||D,transitionName:ne(),trigger:ze,overlay:ae,placement:le(),onVisibleChange:st}),we)};E.Button=de;var M=E},99043:function(qe,oe,t){var y=t(63313),p=t.n(y),S=t(92235),$=t(11847);function s(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,C=(0,y.useRef)({}),B=(0,S.Z)();return(0,y.useEffect)(function(){var N=$.ZP.subscribe(function(g){C.current=g,T&&B()});return function(){return $.ZP.unsubscribe(N)}},[]),C.current}oe.Z=s},80543:function(qe,oe,t){t.d(oe,{D:function(){return O},Z:function(){return k}});var y=t(45389),p=t(72564),S=t(66441),$=t(185),s=t(63313),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},C=T,B=t(46420),N=function(M,L){return s.createElement(B.Z,(0,$.Z)((0,$.Z)({},M),{},{ref:L,icon:C}))};N.displayName="BarsOutlined";var g=s.forwardRef(N),b=t(84924),e=t(43167),pe=t(84875),Te=t.n(pe),Ke=t(81326),ie=t(82259),He=function(M){return!isNaN(parseFloat(M))&&isFinite(M)},Ge=He,h=t(66572),I=function(E,M){var L={};for(var l in E)Object.prototype.hasOwnProperty.call(E,l)&&M.indexOf(l)<0&&(L[l]=E[l]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,l=Object.getOwnPropertySymbols(E);R<l.length;R++)M.indexOf(l[R])<0&&Object.prototype.propertyIsEnumerable.call(E,l[R])&&(L[l[R]]=E[l[R]]);return L},Q={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=s.createContext({}),m=function(){var E=0;return function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return E+=1,"".concat(M).concat(E)}}(),de=s.forwardRef(function(E,M){var L=E.prefixCls,l=E.className,R=E.trigger,D=E.children,j=E.defaultCollapsed,Se=j===void 0?!1:j,ne=E.theme,le=ne===void 0?"dark":ne,U=E.style,_=U===void 0?{}:U,u=E.collapsible,x=u===void 0?!1:u,P=E.reverseArrow,o=P===void 0?!1:P,v=E.width,z=v===void 0?200:v,q=E.collapsedWidth,F=q===void 0?80:q,W=E.zeroWidthTriggerStyle,G=E.breakpoint,se=E.onCollapse,ve=E.onBreakpoint,ee=I(E,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),be=(0,s.useContext)(h.Gs),$e=be.siderHook,Oe=(0,s.useState)("collapsed"in ee?ee.collapsed:Se),ye=(0,S.Z)(Oe,2),V=ye[0],Le=ye[1],we=(0,s.useState)(!1),ze=(0,S.Z)(we,2),We=ze[0],je=ze[1];(0,s.useEffect)(function(){"collapsed"in ee&&Le(ee.collapsed)},[ee.collapsed]);var Me=function(K,Y){"collapsed"in ee||Le(K),se==null||se(K,Y)},H=(0,s.useRef)();H.current=function(ae){je(ae.matches),ve==null||ve(ae.matches),V!==ae.matches&&Me(ae.matches,"responsive")},(0,s.useEffect)(function(){function ae(Be){return H.current(Be)}var K;if(typeof window!="undefined"){var Y=window,he=Y.matchMedia;if(he&&G&&G in Q){K=he("(max-width: ".concat(Q[G],")"));try{K.addEventListener("change",ae)}catch(Be){K.addListener(ae)}ae(K)}}return function(){try{K==null||K.removeEventListener("change",ae)}catch(Be){K==null||K.removeListener(ae)}}},[G]),(0,s.useEffect)(function(){var ae=m("ant-sider-");return $e.addSider(ae),function(){return $e.removeSider(ae)}},[]);var re=function(){Me(!V,"clickTrigger")},st=(0,s.useContext)(ie.E_),vt=st.getPrefixCls,rt=function(){var K,Y=vt("layout-sider",L),he=(0,Ke.Z)(ee,["collapsed"]),Be=V?F:z,Ye=Ge(Be)?"".concat(Be,"px"):String(Be),ht=parseFloat(String(F||0))===0?s.createElement("span",{onClick:re,className:Te()("".concat(Y,"-zero-width-trigger"),"".concat(Y,"-zero-width-trigger-").concat(o?"right":"left")),style:W},R||s.createElement(g,null)):null,jt={expanded:o?s.createElement(e.Z,null):s.createElement(b.Z,null),collapsed:o?s.createElement(b.Z,null):s.createElement(e.Z,null)},Ct=V?"collapsed":"expanded",Rt=jt[Ct],Bt=R!==null?ht||s.createElement("div",{className:"".concat(Y,"-trigger"),onClick:re,style:{width:Ye}},R||Rt):null,Dt=(0,p.Z)((0,p.Z)({},_),{flex:"0 0 ".concat(Ye),maxWidth:Ye,minWidth:Ye,width:Ye}),At=Te()(Y,"".concat(Y,"-").concat(le),(K={},(0,y.Z)(K,"".concat(Y,"-collapsed"),!!V),(0,y.Z)(K,"".concat(Y,"-has-trigger"),x&&R!==null&&!ht),(0,y.Z)(K,"".concat(Y,"-below"),!!We),(0,y.Z)(K,"".concat(Y,"-zero-width"),parseFloat(Ye)===0),K),l);return s.createElement("aside",(0,p.Z)({className:At},he,{style:Dt,ref:M}),s.createElement("div",{className:"".concat(Y,"-children")},D),x||We&&ht?Bt:null)},ft=s.useMemo(function(){return{siderCollapsed:V}},[V]);return s.createElement(O.Provider,{value:ft},rt())}),k=de},66572:function(qe,oe,t){t.d(oe,{$_:function(){return He},Gs:function(){return b},VY:function(){return Ge},h4:function(){return ie}});var y=t(52529),p=t(45389),S=t(66441),$=t(72564),s=t(84875),T=t.n(s),C=t(63313),B=t.n(C),N=t(82259),g=function(h,I){var Q={};for(var O in h)Object.prototype.hasOwnProperty.call(h,O)&&I.indexOf(O)<0&&(Q[O]=h[O]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,O=Object.getOwnPropertySymbols(h);m<O.length;m++)I.indexOf(O[m])<0&&Object.prototype.propertyIsEnumerable.call(h,O[m])&&(Q[O[m]]=h[O[m]]);return Q},b=C.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function e(h){var I=h.suffixCls,Q=h.tagName,O=h.displayName;return function(m){var de=C.forwardRef(function(k,E){var M=C.useContext(N.E_),L=M.getPrefixCls,l=k.prefixCls,R=L(I,l);return C.createElement(m,(0,$.Z)({ref:E,prefixCls:R,tagName:Q},k))});return de}}var pe=C.forwardRef(function(h,I){var Q=h.prefixCls,O=h.className,m=h.children,de=h.tagName,k=g(h,["prefixCls","className","children","tagName"]),E=T()(Q,O);return C.createElement(de,(0,$.Z)((0,$.Z)({className:E},k),{ref:I}),m)}),Te=C.forwardRef(function(h,I){var Q,O=C.useContext(N.E_),m=O.direction,de=C.useState([]),k=(0,S.Z)(de,2),E=k[0],M=k[1],L=h.prefixCls,l=h.className,R=h.children,D=h.hasSider,j=h.tagName,Se=g(h,["prefixCls","className","children","hasSider","tagName"]),ne=T()(L,(Q={},(0,p.Z)(Q,"".concat(L,"-has-sider"),typeof D=="boolean"?D:E.length>0),(0,p.Z)(Q,"".concat(L,"-rtl"),m==="rtl"),Q),l),le=C.useMemo(function(){return{siderHook:{addSider:function(_){M(function(u){return[].concat((0,y.Z)(u),[_])})},removeSider:function(_){M(function(u){return u.filter(function(x){return x!==_})})}}}},[]);return C.createElement(b.Provider,{value:le},C.createElement(j,(0,$.Z)({ref:I,className:ne},Se),R))}),Ke=e({suffixCls:"layout",tagName:"section",displayName:"Layout"})(Te),ie=e({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(pe),He=e({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(pe),Ge=e({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(pe);oe.ZP=Ke},49279:function(qe,oe,t){t.d(oe,{J:function(){return T}});var y=t(72564),p=t(63313),S=t.n(p),$=function(C,B){var N={};for(var g in C)Object.prototype.hasOwnProperty.call(C,g)&&B.indexOf(g)<0&&(N[g]=C[g]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(C);b<g.length;b++)B.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(C,g[b])&&(N[g[b]]=C[g[b]]);return N},s=p.createContext(null),T=function(B){var N=B.children,g=$(B,["children"]),b=p.useContext(s),e=p.useMemo(function(){return(0,y.Z)((0,y.Z)({},b),g)},[b,g.prefixCls,g.mode,g.selectable]);return p.createElement(s.Provider,{value:e},N)};oe.Z=s},21903:function(qe,oe,t){t.d(oe,{Z:function(){return _}});var y=t(27915),p=t(92449),S=t(79682),$=t(46196),s=t(72564),T=t(23831),C=t(84875),B=t.n(C),N=t(48678),g=t(87174),b=t(81326),e=t(63313),pe=t(82259),Te=t(80543),Ke=t(16082),ie=t(25515),He=t(96268),Ge=t(45389),h=function(u,x){var P={};for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&x.indexOf(o)<0&&(P[o]=u[o]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,o=Object.getOwnPropertySymbols(u);v<o.length;v++)x.indexOf(o[v])<0&&Object.prototype.propertyIsEnumerable.call(u,o[v])&&(P[o[v]]=u[o[v]]);return P},I=function(x){var P=x.prefixCls,o=x.className,v=x.dashed,z=h(x,["prefixCls","className","dashed"]),q=e.useContext(pe.E_),F=q.getPrefixCls,W=F("menu",P),G=B()((0,Ge.Z)({},"".concat(W,"-item-divider-dashed"),!!v),o);return e.createElement(N.iz,(0,s.Z)({className:G},z))},Q=I,O=t(35504),m=t(15367),de=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),k=de,E=function(u,x){var P={};for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&x.indexOf(o)<0&&(P[o]=u[o]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,o=Object.getOwnPropertySymbols(u);v<o.length;v++)x.indexOf(o[v])<0&&Object.prototype.propertyIsEnumerable.call(u,o[v])&&(P[o[v]]=u[o[v]]);return P},M=function(u){(0,S.Z)(P,u);var x=(0,$.Z)(P);function P(){var o;return(0,y.Z)(this,P),o=x.apply(this,arguments),o.renderItem=function(v){var z,q=v.siderCollapsed,F,W=o.context,G=W.prefixCls,se=W.firstLevel,ve=W.inlineCollapsed,ee=W.direction,be=W.disableMenuItemTitleTooltip,$e=o.props,Oe=$e.className,ye=$e.children,V=o.props,Le=V.title,we=V.icon,ze=V.danger,We=E(V,["title","icon","danger"]),je=Le;typeof Le=="undefined"?je=se?ye:"":Le===!1&&(je="");var Me={title:je};!q&&!ve&&(Me.title=null,Me.open=!1);var H=(0,O.Z)(ye).length,re=e.createElement(N.ck,(0,s.Z)({},We,{className:B()((z={},(0,Ge.Z)(z,"".concat(G,"-item-danger"),ze),(0,Ge.Z)(z,"".concat(G,"-item-only-child"),(we?H+1:H)===1),z),Oe),title:typeof Le=="string"?Le:void 0}),(0,ie.Tm)(we,{className:B()((0,ie.l$)(we)?(F=we.props)===null||F===void 0?void 0:F.className:"","".concat(G,"-item-icon"))}),o.renderItemChildren(ve));return be||(re=e.createElement(m.Z,(0,s.Z)({},Me,{placement:ee==="rtl"?"left":"right",overlayClassName:"".concat(G,"-inline-collapsed-tooltip")}),re)),re},o}return(0,p.Z)(P,[{key:"renderItemChildren",value:function(v){var z=this.context,q=z.prefixCls,F=z.firstLevel,W=this.props,G=W.icon,se=W.children,ve=e.createElement("span",{className:"".concat(q,"-title-content")},se);return(!G||(0,ie.l$)(se)&&se.type==="span")&&se&&v&&F&&typeof se=="string"?e.createElement("div",{className:"".concat(q,"-inline-collapsed-noicon")},se.charAt(0)):ve}},{key:"render",value:function(){return e.createElement(Te.D.Consumer,null,this.renderItem)}}]),P}(e.Component);M.contextType=k;function L(u){var x,P=u.popupClassName,o=u.icon,v=u.title,z=u.theme,q=e.useContext(k),F=q.prefixCls,W=q.inlineCollapsed,G=q.antdMenuTheme,se=(0,N.Xl)(),ve;if(!o)ve=W&&!se.length&&v&&typeof v=="string"?e.createElement("div",{className:"".concat(F,"-inline-collapsed-noicon")},v.charAt(0)):e.createElement("span",{className:"".concat(F,"-title-content")},v);else{var ee=(0,ie.l$)(v)&&v.type==="span";ve=e.createElement(e.Fragment,null,(0,ie.Tm)(o,{className:B()((0,ie.l$)(o)?(x=o.props)===null||x===void 0?void 0:x.className:"","".concat(F,"-item-icon"))}),ee?v:e.createElement("span",{className:"".concat(F,"-title-content")},v))}var be=e.useMemo(function(){return(0,s.Z)((0,s.Z)({},q),{firstLevel:!1})},[q]);return e.createElement(k.Provider,{value:be},e.createElement(N.Wd,(0,s.Z)({},(0,b.Z)(u,["icon"]),{title:ve,popupClassName:B()(F,"".concat(F,"-").concat(z||G),P)})))}var l=L,R=function(u,x){var P={};for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&x.indexOf(o)<0&&(P[o]=u[o]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,o=Object.getOwnPropertySymbols(u);v<o.length;v++)x.indexOf(o[v])<0&&Object.prototype.propertyIsEnumerable.call(u,o[v])&&(P[o[v]]=u[o[v]]);return P};function D(u){return(u||[]).map(function(x,P){if(x&&(0,He.Z)(x)==="object"){var o=x,v=o.label,z=o.children,q=o.key,F=o.type,W=R(o,["label","children","key","type"]),G=q!=null?q:"tmp-".concat(P);return z||F==="group"?F==="group"?e.createElement(N.BW,(0,s.Z)({key:G},W,{title:v}),D(z)):e.createElement(l,(0,s.Z)({key:G},W,{title:v}),D(z)):F==="divider"?e.createElement(Q,(0,s.Z)({key:G},W)):e.createElement(M,(0,s.Z)({key:G},W),v)}return null}).filter(function(x){return x})}function j(u){return e.useMemo(function(){return u&&D(u)},[u])}var Se=t(49279),ne=function(u,x){var P={};for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&x.indexOf(o)<0&&(P[o]=u[o]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,o=Object.getOwnPropertySymbols(u);v<o.length;v++)x.indexOf(o[v])<0&&Object.prototype.propertyIsEnumerable.call(u,o[v])&&(P[o[v]]=u[o[v]]);return P},le=(0,e.forwardRef)(function(u,x){var P,o=e.useContext(Se.Z)||{},v=e.useContext(pe.E_),z=v.getPrefixCls,q=v.getPopupContainer,F=v.direction,W=z(),G=u.prefixCls,se=u.className,ve=u.theme,ee=ve===void 0?"light":ve,be=u.expandIcon,$e=u._internalDisableMenuItemTitleTooltip,Oe=u.inlineCollapsed,ye=u.siderCollapsed,V=u.items,Le=u.children,we=u.mode,ze=u.selectable,We=u.onClick,je=ne(u,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),Me=(0,b.Z)(je,["collapsedWidth"]),H=j(V)||Le;(P=o.validator)===null||P===void 0||P.call(o,{mode:we});var re=(0,g.Z)(function(){var Be;We==null||We.apply(void 0,arguments),(Be=o==null?void 0:o.onClick)===null||Be===void 0||Be.call(o)}),st=o.mode||we,vt=ze!=null?ze:o.selectable,rt=e.useMemo(function(){return ye!==void 0?ye:Oe},[Oe,ye]),ft={horizontal:{motionName:"".concat(W,"-slide-up")},inline:Ke.ZP,other:{motionName:"".concat(W,"-zoom-big")}},ae=z("menu",G||o.prefixCls),K=B()("".concat(ae,"-").concat(ee),se),Y;typeof be=="function"?Y=be:Y=(0,ie.Tm)(be||o.expandIcon,{className:"".concat(ae,"-submenu-expand-icon")});var he=e.useMemo(function(){return{prefixCls:ae,inlineCollapsed:rt||!1,antdMenuTheme:ee,direction:F,firstLevel:!0,disableMenuItemTitleTooltip:$e}},[ae,rt,ee,F,$e]);return e.createElement(Se.Z.Provider,{value:null},e.createElement(k.Provider,{value:he},e.createElement(N.ZP,(0,s.Z)({getPopupContainer:q,overflowedIndicator:e.createElement(T.Z,null),overflowedIndicatorPopupClassName:"".concat(ae,"-").concat(ee),mode:st,selectable:vt,onClick:re},Me,{inlineCollapsed:rt,className:K,prefixCls:ae,direction:F,defaultMotions:ft,expandIcon:Y,ref:x}),H)))}),U=function(u){(0,S.Z)(P,u);var x=(0,$.Z)(P);function P(){var o;return(0,y.Z)(this,P),o=x.apply(this,arguments),o.focus=function(v){var z;(z=o.menu)===null||z===void 0||z.focus(v)},o}return(0,p.Z)(P,[{key:"render",value:function(){var v=this;return e.createElement(Te.D.Consumer,null,function(z){return e.createElement(le,(0,s.Z)({ref:function(F){v.menu=F}},v.props,z))})}}]),P}(e.Component);U.Divider=Q,U.Item=M,U.SubMenu=l,U.ItemGroup=N.BW;var _=U},2947:function(qe,oe,t){t.d(oe,{u:function(){return pe},Z:function(){return Ge}});var y=t(72564),p=t(45389),S=t(66441),$=t(84875),s=t.n($),T=t(35504),C=t(63313),B=t(82259),N=t(52105);function g(h){var I=h.className,Q=h.direction,O=h.index,m=h.marginDirection,de=h.children,k=h.split,E=h.wrap,M=C.useContext(pe),L=M.horizontalSize,l=M.verticalSize,R=M.latestIndex,D=M.supportFlexGap,j={};return D||(Q==="vertical"?O<R&&(j={marginBottom:L/(k?2:1)}):j=(0,y.Z)((0,y.Z)({},O<R&&(0,p.Z)({},m,L/(k?2:1))),E&&{paddingBottom:l})),de==null?null:C.createElement(C.Fragment,null,C.createElement("div",{className:I,style:j},de),O<R&&k&&C.createElement("span",{className:"".concat(I,"-split"),style:j},k))}var b=t(60934),e=function(h,I){var Q={};for(var O in h)Object.prototype.hasOwnProperty.call(h,O)&&I.indexOf(O)<0&&(Q[O]=h[O]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,O=Object.getOwnPropertySymbols(h);m<O.length;m++)I.indexOf(O[m])<0&&Object.prototype.propertyIsEnumerable.call(h,O[m])&&(Q[O[m]]=h[O[m]]);return Q},pe=C.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),Te={small:8,middle:16,large:24};function Ke(h){return typeof h=="string"?Te[h]:h||0}var ie=function(I){var Q,O=C.useContext(B.E_),m=O.getPrefixCls,de=O.space,k=O.direction,E=I.size,M=E===void 0?(de==null?void 0:de.size)||"small":E,L=I.align,l=I.className,R=I.children,D=I.direction,j=D===void 0?"horizontal":D,Se=I.prefixCls,ne=I.split,le=I.style,U=I.wrap,_=U===void 0?!1:U,u=e(I,["size","align","className","children","direction","prefixCls","split","style","wrap"]),x=(0,N.Z)(),P=C.useMemo(function(){return(Array.isArray(M)?M:[M,M]).map(function(ye){return Ke(ye)})},[M]),o=(0,S.Z)(P,2),v=o[0],z=o[1],q=(0,T.Z)(R,{keepEmpty:!0}),F=L===void 0&&j==="horizontal"?"center":L,W=m("space",Se),G=s()(W,"".concat(W,"-").concat(j),(Q={},(0,p.Z)(Q,"".concat(W,"-rtl"),k==="rtl"),(0,p.Z)(Q,"".concat(W,"-align-").concat(F),F),Q),l),se="".concat(W,"-item"),ve=k==="rtl"?"marginLeft":"marginRight",ee=0,be=q.map(function(ye,V){ye!=null&&(ee=V);var Le=ye&&ye.key||"".concat(se,"-").concat(V);return C.createElement(g,{className:se,key:Le,direction:j,index:V,marginDirection:ve,split:ne,wrap:_},ye)}),$e=C.useMemo(function(){return{horizontalSize:v,verticalSize:z,latestIndex:ee,supportFlexGap:x}},[v,z,ee,x]);if(q.length===0)return null;var Oe={};return _&&(Oe.flexWrap="wrap",x||(Oe.marginBottom=-z)),x&&(Oe.columnGap=v,Oe.rowGap=z),C.createElement("div",(0,y.Z)({className:G,style:(0,y.Z)((0,y.Z)({},Oe),le)},u),C.createElement(pe.Provider,{value:$e},be))},He=ie;He.Compact=b.ZP;var Ge=He},27935:function(qe,oe,t){t.d(oe,{Z:function(){return O}});var y=t(45389),p=t(185),S=t(66441),$=t(75188),s=t(63313),T=t(82285),C=t(84875),B=t.n(C),N={adjustX:1,adjustY:1},g=[0,0],b={topLeft:{points:["bl","tl"],overflow:N,offset:[0,-4],targetOffset:g},topCenter:{points:["bc","tc"],overflow:N,offset:[0,-4],targetOffset:g},topRight:{points:["br","tr"],overflow:N,offset:[0,-4],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:N,offset:[0,4],targetOffset:g},bottomCenter:{points:["tc","bc"],overflow:N,offset:[0,4],targetOffset:g},bottomRight:{points:["tr","br"],overflow:N,offset:[0,4],targetOffset:g}},e=b,pe=t(9725),Te=t(45869),Ke=t(40288),ie=pe.Z.ESC,He=pe.Z.TAB;function Ge(m){var de=m.visible,k=m.setTriggerVisible,E=m.triggerRef,M=m.onVisibleChange,L=m.autoFocus,l=s.useRef(!1),R=function(){if(de&&E.current){var ne,le,U,_;(ne=E.current)===null||ne===void 0||(le=ne.triggerRef)===null||le===void 0||(U=le.current)===null||U===void 0||(_=U.focus)===null||_===void 0||_.call(U),k(!1),typeof M=="function"&&M(!1)}},D=function(){var ne,le,U,_,u=(0,Ke.tS)((ne=E.current)===null||ne===void 0||(le=ne.popupRef)===null||le===void 0||(U=le.current)===null||U===void 0||(_=U.getElement)===null||_===void 0?void 0:_.call(U)),x=u[0];return x!=null&&x.focus?(x.focus(),l.current=!0,!0):!1},j=function(ne){switch(ne.keyCode){case ie:R();break;case He:{var le=!1;l.current||(le=D()),le?ne.preventDefault():R();break}}};s.useEffect(function(){return de?(window.addEventListener("keydown",j),L&&(0,Te.Z)(D,3),function(){window.removeEventListener("keydown",j),l.current=!1}):function(){l.current=!1}},[de])}var h=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function I(m,de){var k=m.arrow,E=k===void 0?!1:k,M=m.prefixCls,L=M===void 0?"rc-dropdown":M,l=m.transitionName,R=m.animation,D=m.align,j=m.placement,Se=j===void 0?"bottomLeft":j,ne=m.placements,le=ne===void 0?e:ne,U=m.getPopupContainer,_=m.showAction,u=m.hideAction,x=m.overlayClassName,P=m.overlayStyle,o=m.visible,v=m.trigger,z=v===void 0?["hover"]:v,q=m.autoFocus,F=(0,$.Z)(m,h),W=s.useState(),G=(0,S.Z)(W,2),se=G[0],ve=G[1],ee="visible"in m?o:se,be=s.useRef(null);s.useImperativeHandle(de,function(){return be.current}),Ge({visible:ee,setTriggerVisible:ve,triggerRef:be,onVisibleChange:m.onVisibleChange,autoFocus:q});var $e=function(){var H=m.overlay,re;return typeof H=="function"?re=H():re=H,re},Oe=function(H){var re=m.onOverlayClick;ve(!1),re&&re(H)},ye=function(H){var re=m.onVisibleChange;ve(H),typeof re=="function"&&re(H)},V=function(){var H=$e();return s.createElement(s.Fragment,null,E&&s.createElement("div",{className:"".concat(L,"-arrow")}),H)},Le=function(){var H=m.overlay;return typeof H=="function"?V:V()},we=function(){var H=m.minOverlayWidthMatchTrigger,re=m.alignPoint;return"minOverlayWidthMatchTrigger"in m?H:!re},ze=function(){var H=m.openClassName;return H!==void 0?H:"".concat(L,"-open")},We=function(){var H=m.children,re=H.props?H.props:{},st=B()(re.className,ze());return ee&&H?s.cloneElement(H,{className:st}):H},je=u;return!je&&z.indexOf("contextMenu")!==-1&&(je=["click"]),s.createElement(T.Z,(0,p.Z)((0,p.Z)({builtinPlacements:le},F),{},{prefixCls:L,ref:be,popupClassName:B()(x,(0,y.Z)({},"".concat(L,"-show-arrow"),E)),popupStyle:P,action:z,showAction:_,hideAction:je||[],popupPlacement:Se,popupAlign:D,popupTransitionName:l,popupAnimation:R,popupVisible:ee,stretch:we()?"minWidth":"",popup:Le(),onPopupVisibleChange:ye,onPopupClick:Oe,getPopupContainer:U}),We())}var Q=s.forwardRef(I),O=Q},48678:function(qe,oe,t){t.d(oe,{iz:function(){return cn},ck:function(){return Ct},BW:function(){return kt},sN:function(){return Ct},GP:function(){return kt},Wd:function(){return Qt},ZP:function(){return _n},Xl:function(){return M}});var y=t(72564),p=t(45389),S=t(185),$=t(52529),s=t(66441),T=t(75188),C=t(84875),B=t.n(C),N=t(62084),g=t(37348),b=t(21761),e=t(63313),pe=t(74012),Te=t(6703),Ke=e.createContext(null);function ie(r,n){return r===void 0?null:"".concat(r,"-").concat(n)}function He(r){var n=e.useContext(Ke);return ie(n,r)}var Ge=t(77023),h=["children","locked"],I=e.createContext(null);function Q(r,n){var i=(0,S.Z)({},r);return Object.keys(n).forEach(function(c){var a=n[c];a!==void 0&&(i[c]=a)}),i}function O(r){var n=r.children,i=r.locked,c=(0,T.Z)(r,h),a=e.useContext(I),f=(0,Ge.Z)(function(){return Q(a,c)},[a,c],function(d,Z){return!i&&(d[0]!==Z[0]||!(0,Te.Z)(d[1],Z[1],!0))});return e.createElement(I.Provider,{value:f},n)}var m=[],de=e.createContext(null);function k(){return e.useContext(de)}var E=e.createContext(m);function M(r){var n=e.useContext(E);return e.useMemo(function(){return r!==void 0?[].concat((0,$.Z)(n),[r]):n},[n,r])}var L=e.createContext(null),l=e.createContext({}),R=l,D=t(9725),j=t(45869),Se=t(40288),ne=D.Z.LEFT,le=D.Z.RIGHT,U=D.Z.UP,_=D.Z.DOWN,u=D.Z.ENTER,x=D.Z.ESC,P=D.Z.HOME,o=D.Z.END,v=[U,_,ne,le];function z(r,n,i,c){var a,f,d,Z,w="prev",A="next",X="children",Ne="parent";if(r==="inline"&&c===u)return{inlineTrigger:!0};var xe=(a={},(0,p.Z)(a,U,w),(0,p.Z)(a,_,A),a),Ee=(f={},(0,p.Z)(f,ne,i?A:w),(0,p.Z)(f,le,i?w:A),(0,p.Z)(f,_,X),(0,p.Z)(f,u,X),f),ue=(d={},(0,p.Z)(d,U,w),(0,p.Z)(d,_,A),(0,p.Z)(d,u,X),(0,p.Z)(d,x,Ne),(0,p.Z)(d,ne,i?X:Ne),(0,p.Z)(d,le,i?Ne:X),d),ce={inline:xe,horizontal:Ee,vertical:ue,inlineSub:xe,horizontalSub:ue,verticalSub:ue},Re=(Z=ce["".concat(r).concat(n?"":"Sub")])===null||Z===void 0?void 0:Z[c];switch(Re){case w:return{offset:-1,sibling:!0};case A:return{offset:1,sibling:!0};case Ne:return{offset:-1,sibling:!1};case X:return{offset:1,sibling:!1};default:return null}}function q(r){for(var n=r;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function F(r,n){for(var i=r||document.activeElement;i;){if(n.has(i))return i;i=i.parentElement}return null}function W(r,n){var i=(0,Se.tS)(r,!0);return i.filter(function(c){return n.has(c)})}function G(r,n,i){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!r)return null;var a=W(r,n),f=a.length,d=a.findIndex(function(Z){return i===Z});return c<0?d===-1?d=f-1:d-=1:c>0&&(d+=1),d=(d+f)%f,a[d]}function se(r,n,i,c,a,f,d,Z,w,A){var X=e.useRef(),Ne=e.useRef();Ne.current=n;var xe=function(){j.Z.cancel(X.current)};return e.useEffect(function(){return function(){xe()}},[]),function(Ee){var ue=Ee.which;if([].concat(v,[u,x,P,o]).includes(ue)){var ce,Re,De,ge=function(){ce=new Set,Re=new Map,De=new Map;var Ue=f();return Ue.forEach(function(Xe){var Ve=document.querySelector("[data-menu-id='".concat(ie(c,Xe),"']"));Ve&&(ce.add(Ve),De.set(Ve,Xe),Re.set(Xe,Ve))}),ce};ge();var fe=Re.get(n),J=F(fe,ce),Ce=De.get(J),te=z(r,d(Ce,!0).length===1,i,ue);if(!te&&ue!==P&&ue!==o)return;(v.includes(ue)||[P,o].includes(ue))&&Ee.preventDefault();var Ze=function(Ue){if(Ue){var Xe=Ue,Ve=Ue.querySelector("a");Ve!=null&&Ve.getAttribute("href")&&(Xe=Ve);var mt=De.get(Ue);Z(mt),xe(),X.current=(0,j.Z)(function(){Ne.current===mt&&Xe.focus()})}};if([P,o].includes(ue)||te.sibling||!J){var at;!J||r==="inline"?at=a.current:at=q(J);var Ie,ut=W(at,ce);ue===P?Ie=ut[0]:ue===o?Ie=ut[ut.length-1]:Ie=G(at,ce,J,te.offset),Ze(Ie)}else if(te.inlineTrigger)w(Ce);else if(te.offset>0)w(Ce,!0),xe(),X.current=(0,j.Z)(function(){ge();var _e=J.getAttribute("aria-controls"),Ue=document.getElementById(_e),Xe=G(Ue,ce);Ze(Xe)},5);else if(te.offset<0){var ot=d(Ce,!0),Fe=ot[ot.length-2],ct=Re.get(Fe);w(Fe,!1),Ze(ct)}}A==null||A(Ee)}}function ve(r){Promise.resolve().then(r)}var ee="__RC_UTIL_PATH_SPLIT__",be=function(n){return n.join(ee)},$e=function(n){return n.split(ee)},Oe="rc-menu-more";function ye(){var r=e.useState({}),n=(0,s.Z)(r,2),i=n[1],c=(0,e.useRef)(new Map),a=(0,e.useRef)(new Map),f=e.useState([]),d=(0,s.Z)(f,2),Z=d[0],w=d[1],A=(0,e.useRef)(0),X=(0,e.useRef)(!1),Ne=function(){X.current||i({})},xe=(0,e.useCallback)(function(fe,J){var Ce=be(J);a.current.set(Ce,fe),c.current.set(fe,Ce),A.current+=1;var te=A.current;ve(function(){te===A.current&&Ne()})},[]),Ee=(0,e.useCallback)(function(fe,J){var Ce=be(J);a.current.delete(Ce),c.current.delete(fe)},[]),ue=(0,e.useCallback)(function(fe){w(fe)},[]),ce=(0,e.useCallback)(function(fe,J){var Ce=c.current.get(fe)||"",te=$e(Ce);return J&&Z.includes(te[0])&&te.unshift(Oe),te},[Z]),Re=(0,e.useCallback)(function(fe,J){return fe.some(function(Ce){var te=ce(Ce,!0);return te.includes(J)})},[ce]),De=function(){var J=(0,$.Z)(c.current.keys());return Z.length&&J.push(Oe),J},ge=(0,e.useCallback)(function(fe){var J="".concat(c.current.get(fe)).concat(ee),Ce=new Set;return(0,$.Z)(a.current.keys()).forEach(function(te){te.startsWith(J)&&Ce.add(a.current.get(te))}),Ce},[]);return e.useEffect(function(){return function(){X.current=!0}},[]),{registerPath:xe,unregisterPath:Ee,refreshOverflowKeys:ue,isSubPathKey:Re,getKeyPath:ce,getKeys:De,getSubPathKeys:ge}}function V(r){var n=e.useRef(r);n.current=r;var i=e.useCallback(function(){for(var c,a=arguments.length,f=new Array(a),d=0;d<a;d++)f[d]=arguments[d];return(c=n.current)===null||c===void 0?void 0:c.call.apply(c,[n].concat(f))},[]);return r?i:void 0}var Le=Math.random().toFixed(5).toString().slice(2),we=0;function ze(r){var n=(0,g.Z)(r,{value:r}),i=(0,s.Z)(n,2),c=i[0],a=i[1];return e.useEffect(function(){we+=1;var f="".concat(Le,"-").concat(we);a("rc-menu-uuid-".concat(f))},[]),c}var We=t(27915),je=t(92449),Me=t(79682),H=t(46196),re=t(81326),st=t(87694);function vt(r,n,i,c){var a=e.useContext(I),f=a.activeKey,d=a.onActive,Z=a.onInactive,w={active:f===r};return n||(w.onMouseEnter=function(A){i==null||i({key:r,domEvent:A}),d(r)},w.onMouseLeave=function(A){c==null||c({key:r,domEvent:A}),Z(r)}),w}function rt(r){var n=e.useContext(I),i=n.mode,c=n.rtl,a=n.inlineIndent;if(i!=="inline")return null;var f=r;return c?{paddingRight:f*a}:{paddingLeft:f*a}}function ft(r){var n=r.icon,i=r.props,c=r.children,a;return typeof n=="function"?a=e.createElement(n,(0,S.Z)({},i)):a=n,a||c||null}var ae=["item"];function K(r){var n=r.item,i=(0,T.Z)(r,ae);return Object.defineProperty(i,"item",{get:function(){return(0,b.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),i}var Y=["title","attribute","elementRef"],he=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Be=["active"],Ye=function(r){(0,Me.Z)(i,r);var n=(0,H.Z)(i);function i(){return(0,We.Z)(this,i),n.apply(this,arguments)}return(0,je.Z)(i,[{key:"render",value:function(){var a=this.props,f=a.title,d=a.attribute,Z=a.elementRef,w=(0,T.Z)(a,Y),A=(0,re.Z)(w,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,b.ZP)(!d,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(N.Z.Item,(0,y.Z)({},d,{title:typeof f=="string"?f:void 0},A,{ref:Z}))}}]),i}(e.Component),ht=e.forwardRef(function(r,n){var i,c=r.style,a=r.className,f=r.eventKey,d=r.warnKey,Z=r.disabled,w=r.itemIcon,A=r.children,X=r.role,Ne=r.onMouseEnter,xe=r.onMouseLeave,Ee=r.onClick,ue=r.onKeyDown,ce=r.onFocus,Re=(0,T.Z)(r,he),De=He(f),ge=e.useContext(I),fe=ge.prefixCls,J=ge.onItemClick,Ce=ge.disabled,te=ge.overflowDisabled,Ze=ge.itemIcon,at=ge.selectedKeys,Ie=ge.onActive,ut=e.useContext(R),ot=ut._internalRenderMenuItem,Fe="".concat(fe,"-item"),ct=e.useRef(),_e=e.useRef(),Ue=Ce||Z,Xe=(0,st.x1)(n,_e),Ve=M(f),mt=function(Je){return{key:f,keyPath:(0,$.Z)(Ve).reverse(),item:ct.current,domEvent:Je}},Wt=w||Ze,xt=vt(f,Ue,Ne,xe),Et=xt.active,Lt=(0,T.Z)(xt,Be),pt=at.includes(f),Ot=rt(Ve.length),et=function(Je){if(!Ue){var Qe=mt(Je);Ee==null||Ee(K(Qe)),J(Qe)}},tt=function(Je){if(ue==null||ue(Je),Je.which===D.Z.ENTER){var Qe=mt(Je);Ee==null||Ee(K(Qe)),J(Qe)}},Vt=function(Je){Ie(f),ce==null||ce(Je)},Kt={};r.role==="option"&&(Kt["aria-selected"]=pt);var Mt=e.createElement(Ye,(0,y.Z)({ref:ct,elementRef:Xe,role:X===null?"none":X||"menuitem",tabIndex:Z?null:-1,"data-menu-id":te&&De?null:De},Re,Lt,Kt,{component:"li","aria-disabled":Z,style:(0,S.Z)((0,S.Z)({},Ot),c),className:B()(Fe,(i={},(0,p.Z)(i,"".concat(Fe,"-active"),Et),(0,p.Z)(i,"".concat(Fe,"-selected"),pt),(0,p.Z)(i,"".concat(Fe,"-disabled"),Ue),i),a),onClick:et,onKeyDown:tt,onFocus:Vt}),A,e.createElement(ft,{props:(0,S.Z)((0,S.Z)({},r),{},{isSelected:pt}),icon:Wt}));return ot&&(Mt=ot(Mt,r,{selected:pt})),Mt});function jt(r,n){var i=r.eventKey,c=k(),a=M(i);return e.useEffect(function(){if(c)return c.registerPath(i,a),function(){c.unregisterPath(i,a)}},[a]),c?null:e.createElement(ht,(0,y.Z)({},r,{ref:n}))}var Ct=e.forwardRef(jt),Rt=["className","children"],Bt=function(n,i){var c=n.className,a=n.children,f=(0,T.Z)(n,Rt),d=e.useContext(I),Z=d.prefixCls,w=d.mode,A=d.rtl;return e.createElement("ul",(0,y.Z)({className:B()(Z,A&&"".concat(Z,"-rtl"),"".concat(Z,"-sub"),"".concat(Z,"-").concat(w==="inline"?"inline":"vertical"),c),role:"menu"},f,{"data-menu-list":!0,ref:i}),a)},Dt=e.forwardRef(Bt);Dt.displayName="SubMenuList";var At=Dt,Tn=t(96268),Ln=t(35504),Kn=["label","children","key","type"];function sn(r,n){return(0,Ln.Z)(r).map(function(i,c){if(e.isValidElement(i)){var a,f,d=i.key,Z=(a=(f=i.props)===null||f===void 0?void 0:f.eventKey)!==null&&a!==void 0?a:d,w=Z==null;w&&(Z="tmp_key-".concat([].concat((0,$.Z)(n),[c]).join("-")));var A={key:Z,eventKey:Z};return e.cloneElement(i,A)}return i})}function un(r){return(r||[]).map(function(n,i){if(n&&(0,Tn.Z)(n)==="object"){var c=n,a=c.label,f=c.children,d=c.key,Z=c.type,w=(0,T.Z)(c,Kn),A=d!=null?d:"tmp-".concat(i);return f||Z==="group"?Z==="group"?e.createElement(kt,(0,y.Z)({key:A},w,{title:a}),un(f)):e.createElement(Qt,(0,y.Z)({key:A},w,{title:a}),un(f)):Z==="divider"?e.createElement(cn,(0,y.Z)({key:A},w)):e.createElement(Ct,(0,y.Z)({key:A},w),a)}return null}).filter(function(n){return n})}function wn(r,n,i){var c=r;return n&&(c=un(n)),sn(c,i)}var $n=t(82285),yt={adjustX:1,adjustY:1},zn={topLeft:{points:["bl","tl"],overflow:yt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yt,offset:[4,0]}},jn={topLeft:{points:["bl","tl"],overflow:yt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yt,offset:[4,0]}},Rr=null;function xn(r,n,i){if(n)return n;if(i)return i[r]||i.other}var Bn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Fn(r){var n=r.prefixCls,i=r.visible,c=r.children,a=r.popup,f=r.popupClassName,d=r.popupOffset,Z=r.disabled,w=r.mode,A=r.onVisibleChange,X=e.useContext(I),Ne=X.getPopupContainer,xe=X.rtl,Ee=X.subMenuOpenDelay,ue=X.subMenuCloseDelay,ce=X.builtinPlacements,Re=X.triggerSubMenuAction,De=X.forceSubMenuRender,ge=X.rootClassName,fe=X.motion,J=X.defaultMotions,Ce=e.useState(!1),te=(0,s.Z)(Ce,2),Ze=te[0],at=te[1],Ie=xe?(0,S.Z)((0,S.Z)({},jn),ce):(0,S.Z)((0,S.Z)({},zn),ce),ut=Bn[w],ot=xn(w,fe,J),Fe=e.useRef(ot);w!=="inline"&&(Fe.current=ot);var ct=(0,S.Z)((0,S.Z)({},Fe.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_e=e.useRef();return e.useEffect(function(){return _e.current=(0,j.Z)(function(){at(i)}),function(){j.Z.cancel(_e.current)}},[i]),e.createElement($n.Z,{prefixCls:n,popupClassName:B()("".concat(n,"-popup"),(0,p.Z)({},"".concat(n,"-rtl"),xe),f,ge),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:Ne,builtinPlacements:Ie,popupPlacement:ut,popupVisible:Ze,popup:a,popupAlign:d&&{offset:d},action:Z?[]:[Re],mouseEnterDelay:Ee,mouseLeaveDelay:ue,onPopupVisibleChange:A,forceRender:De,popupMotion:ct},c)}var Wn=t(39668);function Vn(r){var n=r.id,i=r.open,c=r.keyPath,a=r.children,f="inline",d=e.useContext(I),Z=d.prefixCls,w=d.forceSubMenuRender,A=d.motion,X=d.defaultMotions,Ne=d.mode,xe=e.useRef(!1);xe.current=Ne===f;var Ee=e.useState(!xe.current),ue=(0,s.Z)(Ee,2),ce=ue[0],Re=ue[1],De=xe.current?i:!1;e.useEffect(function(){xe.current&&Re(!1)},[Ne]);var ge=(0,S.Z)({},xn(f,A,X));c.length>1&&(ge.motionAppear=!1);var fe=ge.onVisibleChanged;return ge.onVisibleChanged=function(J){return!xe.current&&!J&&Re(!0),fe==null?void 0:fe(J)},ce?null:e.createElement(O,{mode:f,locked:!xe.current},e.createElement(Wn.ZP,(0,y.Z)({visible:De},ge,{forceRender:w,removeOnLeave:!1,leavedClassName:"".concat(Z,"-hidden")}),function(J){var Ce=J.className,te=J.style;return e.createElement(At,{id:n,className:Ce,style:te},a)}))}var Un=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Hn=["active"],Gn=function(n){var i,c=n.style,a=n.className,f=n.title,d=n.eventKey,Z=n.warnKey,w=n.disabled,A=n.internalPopupClose,X=n.children,Ne=n.itemIcon,xe=n.expandIcon,Ee=n.popupClassName,ue=n.popupOffset,ce=n.onClick,Re=n.onMouseEnter,De=n.onMouseLeave,ge=n.onTitleClick,fe=n.onTitleMouseEnter,J=n.onTitleMouseLeave,Ce=(0,T.Z)(n,Un),te=He(d),Ze=e.useContext(I),at=Ze.prefixCls,Ie=Ze.mode,ut=Ze.openKeys,ot=Ze.disabled,Fe=Ze.overflowDisabled,ct=Ze.activeKey,_e=Ze.selectedKeys,Ue=Ze.itemIcon,Xe=Ze.expandIcon,Ve=Ze.onItemClick,mt=Ze.onOpenChange,Wt=Ze.onActive,xt=e.useContext(R),Et=xt._internalRenderSubMenuItem,Lt=e.useContext(L),pt=Lt.isSubPathKey,Ot=M(),et="".concat(at,"-submenu"),tt=ot||w,Vt=e.useRef(),Kt=e.useRef(),Mt=Ne||Ue,Pt=xe||Xe,Je=ut.includes(d),Qe=!Fe&&Je,qt=pt(_e,d),_t=vt(d,tt,fe,J),Zt=_t.active,Ut=(0,T.Z)(_t,Hn),dn=e.useState(!1),vn=(0,s.Z)(dn,2),fn=vn[0],en=vn[1],Ht=function(dt){tt||en(dt)},mn=function(dt){Ht(!0),Re==null||Re({key:d,domEvent:dt})},gt=function(dt){Ht(!1),De==null||De({key:d,domEvent:dt})},tn=e.useMemo(function(){return Zt||(Ie!=="inline"?fn||pt([ct],d):!1)},[Ie,Zt,ct,fn,d,pt]),nn=rt(Ot.length),rn=function(dt){tt||(ge==null||ge({key:d,domEvent:dt}),Ie==="inline"&&mt(d,!Je))},pn=V(function(lt){ce==null||ce(K(lt)),Ve(lt)}),wt=function(dt){Ie!=="inline"&&mt(d,dt)},Gt=function(){Wt(d)},It=te&&"".concat(te,"-popup"),Yt=e.createElement("div",(0,y.Z)({role:"menuitem",style:nn,className:"".concat(et,"-title"),tabIndex:tt?null:-1,ref:Vt,title:typeof f=="string"?f:null,"data-menu-id":Fe&&te?null:te,"aria-expanded":Qe,"aria-haspopup":!0,"aria-controls":It,"aria-disabled":tt,onClick:rn,onFocus:Gt},Ut),f,e.createElement(ft,{icon:Ie!=="horizontal"?Pt:null,props:(0,S.Z)((0,S.Z)({},n),{},{isOpen:Qe,isSubMenu:!0})},e.createElement("i",{className:"".concat(et,"-arrow")}))),$t=e.useRef(Ie);if(Ie!=="inline"&&Ot.length>1?$t.current="vertical":$t.current=Ie,!Fe){var it=$t.current;Yt=e.createElement(Fn,{mode:it,prefixCls:et,visible:!A&&Qe&&Ie!=="inline",popupClassName:Ee,popupOffset:ue,popup:e.createElement(O,{mode:it==="horizontal"?"vertical":it},e.createElement(At,{id:It,ref:Kt},X)),disabled:tt,onVisibleChange:wt},Yt)}var zt=e.createElement(N.Z.Item,(0,y.Z)({role:"none"},Ce,{component:"li",style:c,className:B()(et,"".concat(et,"-").concat(Ie),a,(i={},(0,p.Z)(i,"".concat(et,"-open"),Qe),(0,p.Z)(i,"".concat(et,"-active"),tn),(0,p.Z)(i,"".concat(et,"-selected"),qt),(0,p.Z)(i,"".concat(et,"-disabled"),tt),i)),onMouseEnter:mn,onMouseLeave:gt}),Yt,!Fe&&e.createElement(Vn,{id:It,open:Qe,keyPath:Ot},X));return Et&&(zt=Et(zt,n,{selected:qt,active:tn,open:Qe,disabled:tt})),e.createElement(O,{onItemClick:pn,mode:Ie==="horizontal"?"vertical":Ie,itemIcon:Mt,expandIcon:Pt},zt)};function Qt(r){var n=r.eventKey,i=r.children,c=M(n),a=sn(i,c),f=k();e.useEffect(function(){if(f)return f.registerPath(n,c),function(){f.unregisterPath(n,c)}},[c]);var d;return f?d=a:d=e.createElement(Gn,r,a),e.createElement(E.Provider,{value:c},d)}var Yn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Tt=[],Xn=e.forwardRef(function(r,n){var i,c,a=r,f=a.prefixCls,d=f===void 0?"rc-menu":f,Z=a.rootClassName,w=a.style,A=a.className,X=a.tabIndex,Ne=X===void 0?0:X,xe=a.items,Ee=a.children,ue=a.direction,ce=a.id,Re=a.mode,De=Re===void 0?"vertical":Re,ge=a.inlineCollapsed,fe=a.disabled,J=a.disabledOverflow,Ce=a.subMenuOpenDelay,te=Ce===void 0?.1:Ce,Ze=a.subMenuCloseDelay,at=Ze===void 0?.1:Ze,Ie=a.forceSubMenuRender,ut=a.defaultOpenKeys,ot=a.openKeys,Fe=a.activeKey,ct=a.defaultActiveFirst,_e=a.selectable,Ue=_e===void 0?!0:_e,Xe=a.multiple,Ve=Xe===void 0?!1:Xe,mt=a.defaultSelectedKeys,Wt=a.selectedKeys,xt=a.onSelect,Et=a.onDeselect,Lt=a.inlineIndent,pt=Lt===void 0?24:Lt,Ot=a.motion,et=a.defaultMotions,tt=a.triggerSubMenuAction,Vt=tt===void 0?"hover":tt,Kt=a.builtinPlacements,Mt=a.itemIcon,Pt=a.expandIcon,Je=a.overflowedIndicator,Qe=Je===void 0?"...":Je,qt=a.overflowedIndicatorPopupClassName,_t=a.getPopupContainer,Zt=a.onClick,Ut=a.onOpenChange,dn=a.onKeyDown,vn=a.openAnimation,fn=a.openTransitionName,en=a._internalRenderMenuItem,Ht=a._internalRenderSubMenuItem,mn=(0,T.Z)(a,Yn),gt=e.useMemo(function(){return wn(Ee,xe,Tt)},[Ee,xe]),tn=e.useState(!1),nn=(0,s.Z)(tn,2),rn=nn[0],pn=nn[1],wt=e.useRef(),Gt=ze(ce),It=ue==="rtl",Yt=(0,g.Z)(ut,{value:ot,postState:function(me){return me||Tt}}),$t=(0,s.Z)(Yt,2),it=$t[0],zt=$t[1],lt=function(me){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ke(){zt(me),Ut==null||Ut(me)}Pe?(0,pe.flushSync)(ke):ke()},dt=e.useState(it),En=(0,s.Z)(dt,2),er=En[0],tr=En[1],gn=e.useRef(!1),nr=e.useMemo(function(){return(De==="inline"||De==="vertical")&&ge?["vertical",ge]:[De,!1]},[De,ge]),Pn=(0,s.Z)(nr,2),an=Pn[0],Cn=Pn[1],bn=an==="inline",rr=e.useState(an),On=(0,s.Z)(rr,2),bt=On[0],ar=On[1],or=e.useState(Cn),Mn=(0,s.Z)(or,2),ir=Mn[0],lr=Mn[1];e.useEffect(function(){ar(an),lr(Cn),gn.current&&(bn?zt(er):lt(Tt))},[an,Cn]);var sr=e.useState(0),Zn=(0,s.Z)(sr,2),on=Zn[0],ur=Zn[1],hn=on>=gt.length-1||bt!=="horizontal"||J;e.useEffect(function(){bn&&tr(it)},[it]),e.useEffect(function(){return gn.current=!0,function(){gn.current=!1}},[]);var St=ye(),In=St.registerPath,Sn=St.unregisterPath,cr=St.refreshOverflowKeys,Nn=St.isSubPathKey,dr=St.getKeyPath,vr=St.getKeys,fr=St.getSubPathKeys,mr=e.useMemo(function(){return{registerPath:In,unregisterPath:Sn}},[In,Sn]),pr=e.useMemo(function(){return{isSubPathKey:Nn}},[Nn]);e.useEffect(function(){cr(hn?Tt:gt.slice(on+1).map(function(Ae){return Ae.key}))},[on,hn]);var gr=(0,g.Z)(Fe||ct&&((i=gt[0])===null||i===void 0?void 0:i.key),{value:Fe}),Rn=(0,s.Z)(gr,2),Xt=Rn[0],yn=Rn[1],Cr=V(function(Ae){yn(Ae)}),hr=V(function(){yn(void 0)});(0,e.useImperativeHandle)(n,function(){return{list:wt.current,focus:function(me){var Pe,ke=Xt!=null?Xt:(Pe=gt.find(function(Nr){return!Nr.props.disabled}))===null||Pe===void 0?void 0:Pe.key;if(ke){var nt,Nt,Jt;(nt=wt.current)===null||nt===void 0||(Nt=nt.querySelector("li[data-menu-id='".concat(ie(Gt,ke),"']")))===null||Nt===void 0||(Jt=Nt.focus)===null||Jt===void 0||Jt.call(Nt,me)}}}});var yr=(0,g.Z)(mt||[],{value:Wt,postState:function(me){return Array.isArray(me)?me:me==null?Tt:[me]}}),Dn=(0,s.Z)(yr,2),ln=Dn[0],xr=Dn[1],Er=function(me){if(Ue){var Pe=me.key,ke=ln.includes(Pe),nt;Ve?ke?nt=ln.filter(function(Jt){return Jt!==Pe}):nt=[].concat((0,$.Z)(ln),[Pe]):nt=[Pe],xr(nt);var Nt=(0,S.Z)((0,S.Z)({},me),{},{selectedKeys:nt});ke?Et==null||Et(Nt):xt==null||xt(Nt)}!Ve&&it.length&&bt!=="inline"&<(Tt)},Pr=V(function(Ae){Zt==null||Zt(K(Ae)),Er(Ae)}),An=V(function(Ae,me){var Pe=it.filter(function(nt){return nt!==Ae});if(me)Pe.push(Ae);else if(bt!=="inline"){var ke=fr(Ae);Pe=Pe.filter(function(nt){return!ke.has(nt)})}(0,Te.Z)(it,Pe,!0)||lt(Pe,!0)}),br=V(_t),Or=function(me,Pe){var ke=Pe!=null?Pe:!it.includes(me);An(me,ke)},Mr=se(bt,Xt,It,Gt,wt,vr,dr,yn,Or,dn);e.useEffect(function(){pn(!0)},[]);var Zr=e.useMemo(function(){return{_internalRenderMenuItem:en,_internalRenderSubMenuItem:Ht}},[en,Ht]),Ir=bt!=="horizontal"||J?gt:gt.map(function(Ae,me){return e.createElement(O,{key:Ae.key,overflowDisabled:me>on},Ae)}),Sr=e.createElement(N.Z,(0,y.Z)({id:ce,ref:wt,prefixCls:"".concat(d,"-overflow"),component:"ul",itemComponent:Ct,className:B()(d,"".concat(d,"-root"),"".concat(d,"-").concat(bt),A,(c={},(0,p.Z)(c,"".concat(d,"-inline-collapsed"),ir),(0,p.Z)(c,"".concat(d,"-rtl"),It),c),Z),dir:ue,style:w,role:"menu",tabIndex:Ne,data:Ir,renderRawItem:function(me){return me},renderRawRest:function(me){var Pe=me.length,ke=Pe?gt.slice(-Pe):null;return e.createElement(Qt,{eventKey:Oe,title:Qe,disabled:hn,internalPopupClose:Pe===0,popupClassName:qt},ke)},maxCount:bt!=="horizontal"||J?N.Z.INVALIDATE:N.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(me){ur(me)},onKeyDown:Mr},mn));return e.createElement(R.Provider,{value:Zr},e.createElement(Ke.Provider,{value:Gt},e.createElement(O,{prefixCls:d,rootClassName:Z,mode:bt,openKeys:it,rtl:It,disabled:fe,motion:rn?Ot:null,defaultMotions:rn?et:null,activeKey:Xt,onActive:Cr,onInactive:hr,selectedKeys:ln,inlineIndent:pt,subMenuOpenDelay:te,subMenuCloseDelay:at,forceSubMenuRender:Ie,builtinPlacements:Kt,triggerSubMenuAction:Vt,getPopupContainer:br,itemIcon:Mt,expandIcon:Pt,onItemClick:Pr,onOpenChange:An},e.createElement(L.Provider,{value:pr},Sr),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(de.Provider,{value:mr},gt)))))}),Jn=Xn,Qn=["className","title","eventKey","children"],kn=["children"],qn=function(n){var i=n.className,c=n.title,a=n.eventKey,f=n.children,d=(0,T.Z)(n,Qn),Z=e.useContext(I),w=Z.prefixCls,A="".concat(w,"-item-group");return e.createElement("li",(0,y.Z)({role:"presentation"},d,{onClick:function(Ne){return Ne.stopPropagation()},className:B()(A,i)}),e.createElement("div",{role:"presentation",className:"".concat(A,"-title"),title:typeof c=="string"?c:void 0},c),e.createElement("ul",{role:"group",className:"".concat(A,"-list")},f))};function kt(r){var n=r.children,i=(0,T.Z)(r,kn),c=M(i.eventKey),a=sn(n,c),f=k();return f?a:e.createElement(qn,(0,re.Z)(i,["warnKey"]),a)}function cn(r){var n=r.className,i=r.style,c=e.useContext(I),a=c.prefixCls,f=k();return f?null:e.createElement("li",{className:B()("".concat(a,"-item-divider"),n),style:i})}var Ft=Jn;Ft.Item=Ct,Ft.SubMenu=Qt,Ft.ItemGroup=kt,Ft.Divider=cn;var _n=Ft},40288:function(qe,oe,t){t.d(oe,{tS:function(){return $}});var y=t(52529),p=t(54780);function S(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,p.Z)(g)){var e=g.nodeName.toLowerCase(),pe=["input","select","textarea","button"].includes(e)||g.isContentEditable||e==="a"&&!!g.getAttribute("href"),Te=g.getAttribute("tabindex"),Ke=Number(Te),ie=null;return Te&&!Number.isNaN(Ke)?ie=Ke:pe&&ie===null&&(ie=0),pe&&g.disabled&&(ie=null),ie!==null&&(ie>=0||b&&ie<0)}return!1}function $(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=(0,y.Z)(g.querySelectorAll("*")).filter(function(pe){return S(pe,b)});return S(g,b)&&e.unshift(g),e}var s=null;function T(){s=document.activeElement}function C(){s=null}function B(){if(s)try{s.focus()}catch(g){}}function N(g,b){if(b.keyCode===9){var e=$(g),pe=e[b.shiftKey?0:e.length-1],Te=pe===document.activeElement||g===document.activeElement;if(Te){var Ke=e[b.shiftKey?e.length-1:0];Ke.focus(),b.preventDefault()}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6661],{76661:function(S,y,l){var g;function p(){return p=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},p.apply(this,arguments)}function f(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(n)}var C=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a])},n(e,t)};return function(o,e){n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();g={value:!0},g=y.fk=void 0;var h=l(63313),d=typeof navigator=="undefined"||l.g.PREVENT_CODEMIRROR_RENDER===!0,c;d||(c=l(33490));var m=function(){function n(){}return n.equals=function(o,e){var t=this,i=Object.keys,r=f(o),a=f(e);return o&&e&&r==="object"&&r===a?i(o).length===i(e).length&&i(o).every(function(s){return t.equals(o[s],e[s])}):o===e},n}(),v=function(){function n(o,e){this.editor=o,this.props=e}return n.prototype.delegateCursor=function(o,e,t){var i=this.editor.getDoc();t&&this.editor.focus(),e?i.setCursor(o):i.setCursor(o,null,{scroll:!1})},n.prototype.delegateScroll=function(o){this.editor.scrollTo(o.x,o.y)},n.prototype.delegateSelection=function(o,e){var t=this.editor.getDoc();t.setSelections(o),e&&this.editor.focus()},n.prototype.apply=function(o){o&&o.selection&&o.selection.ranges&&this.delegateSelection(o.selection.ranges,o.selection.focus||!1),o&&o.cursor&&this.delegateCursor(o.cursor,o.autoScroll||!1,this.editor.getOption("autofocus")||!1),o&&o.scroll&&this.delegateScroll(o.scroll)},n.prototype.applyNext=function(o,e,t){o&&o.selection&&o.selection.ranges&&e&&e.selection&&e.selection.ranges&&!m.equals(o.selection.ranges,e.selection.ranges)&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),o&&o.cursor&&e&&e.cursor&&!m.equals(o.cursor,e.cursor)&&this.delegateCursor(t.cursor||e.cursor,e.autoScroll||!1,e.autoCursor||!1),o&&o.scroll&&e&&e.scroll&&!m.equals(o.scroll,e.scroll)&&this.delegateScroll(e.scroll)},n.prototype.applyUserDefined=function(o,e){e&&e.cursor&&this.delegateCursor(e.cursor,o.autoScroll||!1,this.editor.getOption("autofocus")||!1)},n.prototype.wire=function(o){var e=this;Object.keys(o||{}).filter(function(t){return/^on/.test(t)}).forEach(function(t){switch(t){case"onBlur":e.editor.on("blur",function(i,r){e.props.onBlur(e.editor,r)});break;case"onContextMenu":{e.editor.on("contextmenu",function(i,r){e.props.onContextMenu(e.editor,r)});break}case"onCopy":{e.editor.on("copy",function(i,r){e.props.onCopy(e.editor,r)});break}case"onCursor":e.editor.on("cursorActivity",function(i){e.props.onCursor(e.editor,e.editor.getDoc().getCursor())});break;case"onCursorActivity":e.editor.on("cursorActivity",function(i){e.props.onCursorActivity(e.editor)});break;case"onCut":{e.editor.on("cut",function(i,r){e.props.onCut(e.editor,r)});break}case"onDblClick":{e.editor.on("dblclick",function(i,r){e.props.onDblClick(e.editor,r)});break}case"onDragEnter":e.editor.on("dragenter",function(i,r){e.props.onDragEnter(e.editor,r)});break;case"onDragLeave":{e.editor.on("dragleave",function(i,r){e.props.onDragLeave(e.editor,r)});break}case"onDragOver":e.editor.on("dragover",function(i,r){e.props.onDragOver(e.editor,r)});break;case"onDragStart":{e.editor.on("dragstart",function(i,r){e.props.onDragStart(e.editor,r)});break}case"onDrop":e.editor.on("drop",function(i,r){e.props.onDrop(e.editor,r)});break;case"onFocus":e.editor.on("focus",function(i,r){e.props.onFocus(e.editor,r)});break;case"onGutterClick":e.editor.on("gutterClick",function(i,r,a,s){e.props.onGutterClick(e.editor,r,a,s)});break;case"onInputRead":e.editor.on("inputRead",function(i,r){e.props.onInputRead(e.editor,r)});break;case"onKeyDown":e.editor.on("keydown",function(i,r){e.props.onKeyDown(e.editor,r)});break;case"onKeyHandled":e.editor.on("keyHandled",function(i,r,a){e.props.onKeyHandled(e.editor,r,a)});break;case"onKeyPress":e.editor.on("keypress",function(i,r){e.props.onKeyPress(e.editor,r)});break;case"onKeyUp":e.editor.on("keyup",function(i,r){e.props.onKeyUp(e.editor,r)});break;case"onMouseDown":{e.editor.on("mousedown",function(i,r){e.props.onMouseDown(e.editor,r)});break}case"onPaste":{e.editor.on("paste",function(i,r){e.props.onPaste(e.editor,r)});break}case"onRenderLine":{e.editor.on("renderLine",function(i,r,a){e.props.onRenderLine(e.editor,r,a)});break}case"onScroll":e.editor.on("scroll",function(i){e.props.onScroll(e.editor,e.editor.getScrollInfo())});break;case"onSelection":e.editor.on("beforeSelectionChange",function(i,r){e.props.onSelection(e.editor,r)});break;case"onTouchStart":{e.editor.on("touchstart",function(i,r){e.props.onTouchStart(e.editor,r)});break}case"onUpdate":e.editor.on("update",function(i){e.props.onUpdate(e.editor)});break;case"onViewportChange":e.editor.on("viewportChange",function(i,r,a){e.props.onViewportChange(e.editor,r,a)});break}})},n}(),D=function(n){C(o,n);function o(e){var t=n.call(this,e)||this;return d||(t.applied=!1,t.appliedNext=!1,t.appliedUserDefined=!1,t.deferred=null,t.emulating=!1,t.hydrated=!1,t.initCb=function(){t.props.editorDidConfigure&&t.props.editorDidConfigure(t.editor)},t.mounted=!1),t}return o.prototype.hydrate=function(e){var t=this,i=e&&e.options?e.options:{},r=p({},c.defaults,this.editor.options,i),a=Object.keys(r).some(function(s){return t.editor.getOption(s)!==r[s]});a&&Object.keys(r).forEach(function(s){i.hasOwnProperty(s)&&t.editor.getOption(s)!==r[s]&&(t.editor.setOption(s,r[s]),t.mirror.setOption(s,r[s]))}),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},o.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),i=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:i,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},o.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if(this.deferred.origin==="undo"?t.undo():this.deferred.origin==="redo"?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var i=t.getCursor();t.setValue(e),t.setCursor(i)}this.emulating=!1,this.deferred=null},o.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return e.origin==="undo"?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):e.origin==="redo"?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},o.prototype.componentDidMount=function(){var e=this;d||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&c.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=c(this.ref,this.props.options),this.shared=new v(this.editor,this.props),this.mirror=c(function(){},this.props.options),this.editor.on("electricInput",function(){e.mirror.setHistory(e.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){e.mirror.setCursor(e.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(t,i){if(!e.emulating){i.cancel(),e.deferred=i;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}}),this.editor.on("change",function(t,i){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,i,e.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},o.prototype.componentDidUpdate=function(e){if(!d){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},o.prototype.componentWillUnmount=function(){d||this.props.editorWillUnmount&&this.props.editorWillUnmount(c)},o.prototype.shouldComponentUpdate=function(e,t){return!d},o.prototype.render=function(){var e=this;if(d)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return h.createElement("div",{className:t,ref:function(r){return e.ref=r}})},o}(h.Component);y.fk=D;var b=function(n){C(o,n);function o(e){var t=n.call(this,e)||this;return d||(t.applied=!1,t.appliedUserDefined=!1,t.continueChange=!1,t.detached=!1,t.hydrated=!1,t.initCb=function(){t.props.editorDidConfigure&&t.props.editorDidConfigure(t.editor)},t.mounted=!1,t.onBeforeChangeCb=function(){t.continueChange=!0}),t}return o.prototype.hydrate=function(e){var t=this,i=e&&e.options?e.options:{},r=p({},c.defaults,this.editor.options,i),a=Object.keys(r).some(function(u){return t.editor.getOption(u)!==r[u]});if(a&&Object.keys(r).forEach(function(u){i.hasOwnProperty(u)&&t.editor.getOption(u)!==r[u]&&t.editor.setOption(u,r[u])}),!this.hydrated){var s=this.editor.getDoc(),_=s.lastLine(),k=s.getLine(s.lastLine()).length;s.replaceRange(e.value||"",{line:0,ch:0},{line:_,ch:k})}this.hydrated=!0},o.prototype.componentDidMount=function(){var e=this;d||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&c.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=c(this.ref,this.props.options),this.shared=new v(this.editor,this.props),this.editor.on("beforeChange",function(t,i){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,i,e.editor.getValue(),e.onBeforeChangeCb)}),this.editor.on("change",function(t,i){!e.mounted||!e.props.onChange||(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,i,e.editor.getValue()):e.props.onChange(e.editor,i,e.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},o.prototype.componentDidUpdate=function(e){if(this.detached&&this.props.detach===!1&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!(d||this.detached)){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!e.autoCursor&&e.autoCursor!==void 0&&(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},o.prototype.componentWillUnmount=function(){d||this.props.editorWillUnmount&&this.props.editorWillUnmount(c)},o.prototype.shouldComponentUpdate=function(e,t){var i=!0;return d&&(i=!1),this.detached&&e.detach&&(i=!1),i},o.prototype.render=function(){var e=this;if(d)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return h.createElement("div",{className:t,ref:function(r){return e.ref=r}})},o}(h.Component);g=b}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6794],{46123:function(E,R,b){"use strict";b.d(R,{k:function(){return N}});function N(A,v){for(var F=arguments.length,G=new Array(F>2?F-2:0),x=2;x<F;x++)G[x-2]=arguments[x];if(!A){var L;if(v===void 0)L=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var Y=0;L=new Error(v.replace(/%s/g,function(){return G[Y++]})),L.name="Invariant Violation"}throw L.framesToPop=1,L}}},7563:function(E,R,b){"use strict";b.d(R,{L:function(){return v}});var N=b(63313),A=b.n(N),v=(0,N.createContext)({dragDropManager:void 0})},22587:function(E,R,b){"use strict";b.d(R,{W:function(){return vr}});var N=b(11527),A=b(63313),v=b(46123),F="dnd-core/INIT_COORDS",G="dnd-core/BEGIN_DRAG",x="dnd-core/PUBLISH_DRAG_SOURCE",L="dnd-core/HOVER",Y="dnd-core/DROP",ce="dnd-core/END_DRAG";function we(e,r){return{type:F,payload:{sourceClientOffset:r||null,clientOffset:e||null}}}function ue(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ue=function(t){return typeof t}:ue=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(e)}function Be(e,r,t){return r.split(".").reduce(function(n,s){return n&&n[s]?n[s]:t||null},e)}function Ie(e,r){return e.filter(function(t){return t!==r})}function et(e){return typeof e=="string"}function te(e){return ue(e)==="object"}function Ce(e,r){var t=new Map,n=function(d){t.set(d,t.has(d)?t.get(d)+1:1)};e.forEach(n),r.forEach(n);var s=[];return t.forEach(function(l,d){l===1&&s.push(d)}),s}function We(e,r){return e.filter(function(t){return r.indexOf(t)>-1})}var Pe={type:F,payload:{clientOffset:null,sourceClientOffset:null}};function le(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},s=n.publishSource,l=s===void 0?!0:s,d=n.clientOffset,g=n.getSourceClientOffset,m=e.getMonitor(),T=e.getRegistry();e.dispatch(we(d)),Fe(t,m,T);var S=ke(t,m);if(S===null){e.dispatch(Pe);return}var Z=null;if(d){if(!g)throw new Error("getSourceClientOffset must be defined");Ge(g),Z=g(S)}e.dispatch(we(d,Z));var K=T.getSource(S),ie=K.beginDrag(m,S);if(ie!=null){Xe(ie),T.pinSource(S);var fe=T.getSourceType(S);return{type:G,payload:{itemType:fe,item:ie,sourceId:S,clientOffset:d||null,sourceClientOffset:Z||null,isSourcePublic:!!l}}}}}function Fe(e,r,t){(0,v.k)(!r.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){(0,v.k)(t.getSource(n),"Expected sourceIds to be registered.")})}function Ge(e){(0,v.k)(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Xe(e){(0,v.k)(te(e),"Item must be an object.")}function ke(e,r){for(var t=null,n=e.length-1;n>=0;n--)if(r.canDragSource(e[n])){t=e[n];break}return t}function _e(e){return function(){var t=e.getMonitor();if(t.isDragging())return{type:x}}}function de(e,r){return r===null?e===null:Array.isArray(e)?e.some(function(t){return t===r}):e===r}function Ne(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.clientOffset;he(t);var l=t.slice(0),d=e.getMonitor(),g=e.getRegistry();re(l,d,g);var m=d.getItemType();return ge(l,g,m),pe(l,d,g),{type:L,payload:{targetIds:l,clientOffset:s||null}}}}function he(e){(0,v.k)(Array.isArray(e),"Expected targetIds to be an array.")}function re(e,r,t){(0,v.k)(r.isDragging(),"Cannot call hover while not dragging."),(0,v.k)(!r.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var s=e[n];(0,v.k)(e.lastIndexOf(s)===n,"Expected targetIds to be unique in the passed array.");var l=t.getTarget(s);(0,v.k)(l,"Expected targetIds to be registered.")}}function ge(e,r,t){for(var n=e.length-1;n>=0;n--){var s=e[n],l=r.getTargetType(s);de(l,t)||e.splice(n,1)}}function pe(e,r,t){e.forEach(function(n){var s=t.getTarget(n);s.hover(r,n)})}function xe(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function ye(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?xe(Object(t),!0).forEach(function(n){Ke(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xe(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Ke(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Re(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),s=e.getRegistry();Ve(n);var l=Ye(n);l.forEach(function(d,g){var m=qe(d,g,s,n),T={type:Y,payload:{dropResult:ye(ye({},t),m)}};e.dispatch(T)})}}function Ve(e){(0,v.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,v.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function qe(e,r,t,n){var s=t.getTarget(e),l=s?s.drop(n,e):void 0;return me(l),typeof l=="undefined"&&(l=r===0?{}:n.getDropResult()),l}function me(e){(0,v.k)(typeof e=="undefined"||te(e),"Drop result must either be an object or undefined.")}function Ye(e){var r=e.getTargetIds().filter(e.canDropOnTarget,e);return r.reverse(),r}function Ae(e){return function(){var t=e.getMonitor(),n=e.getRegistry();ze(t);var s=t.getSourceId();if(s!=null){var l=n.getSource(s,!0);l.endDrag(t,s),n.unpinSource()}return{type:ce}}}function ze(e){(0,v.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}function Oe(e){return{beginDrag:le(e),publishDragSource:_e(e),hover:Ne(e),drop:Re(e),endDrag:Ae(e)}}function $e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function be(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Le(e,r,t){return r&&be(e.prototype,r),t&&be(e,t),e}function se(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Me=function(){function e(r,t){var n=this;$e(this,e),se(this,"store",void 0),se(this,"monitor",void 0),se(this,"backend",void 0),se(this,"isSetUp",!1),se(this,"handleRefCountChange",function(){var s=n.store.getState().refCount>0;n.backend&&(s&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!s&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))}),this.store=r,this.monitor=t,r.subscribe(this.handleRefCountChange)}return Le(e,[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,n=this.store.dispatch;function s(d){return function(){for(var g=arguments.length,m=new Array(g),T=0;T<g;T++)m[T]=arguments[T];var S=d.apply(t,m);typeof S!="undefined"&&n(S)}}var l=Oe(this);return Object.keys(l).reduce(function(d,g){var m=l[g];return d[g]=s(m),d},{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}]),e}();function I(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var y=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),De=function(){return Math.random().toString(36).substring(7).split("").join(".")},ne={INIT:"@@redux/INIT"+De(),REPLACE:"@@redux/REPLACE"+De(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+De()}};function o(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function i(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(f(e))return"date";if(u(e))return"error";var t=a(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function a(e){return typeof e.constructor=="function"?e.constructor.name:null}function u(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function f(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function c(e){var r=typeof e;return r}function h(e,r,t){var n;if(typeof r=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(I(0));if(typeof r=="function"&&typeof t=="undefined"&&(t=r,r=void 0),typeof t!="undefined"){if(typeof t!="function")throw new Error(I(1));return t(h)(e,r)}if(typeof e!="function")throw new Error(I(2));var s=e,l=r,d=[],g=d,m=!1;function T(){g===d&&(g=d.slice())}function S(){if(m)throw new Error(I(3));return l}function Z(P){if(typeof P!="function")throw new Error(I(4));if(m)throw new Error(I(5));var ee=!0;return T(),g.push(P),function(){if(ee){if(m)throw new Error(I(6));ee=!1,T();var W=g.indexOf(P);g.splice(W,1),d=null}}}function K(P){if(!o(P))throw new Error(I(7));if(typeof P.type=="undefined")throw new Error(I(8));if(m)throw new Error(I(9));try{m=!0,l=s(l,P)}finally{m=!1}for(var ee=d=g,oe=0;oe<ee.length;oe++){var W=ee[oe];W()}return P}function ie(P){if(typeof P!="function")throw new Error(I(10));s=P,K({type:ne.REPLACE})}function fe(){var P,ee=Z;return P={subscribe:function(W){if(typeof W!="object"||W===null)throw new Error(I(11));function Ze(){W.next&&W.next(S())}Ze();var yr=ee(Ze);return{unsubscribe:yr}}},P[y]=function(){return this},P}return K({type:ne.INIT}),n={dispatch:K,subscribe:Z,getState:S,replaceReducer:ie},n[y]=fe,n}var O=null;function p(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(r){}}function D(e,r,t,n){var s=Object.keys(r),l=t&&t.type===ne.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!o(e))return"The "+l+' has unexpected type of "'+c(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var d=Object.keys(e).filter(function(g){return!r.hasOwnProperty(g)&&!n[g]});if(d.forEach(function(g){n[g]=!0}),!(t&&t.type===ne.REPLACE)&&d.length>0)return"Unexpected "+(d.length>1?"keys":"key")+" "+('"'+d.join('", "')+'" found in '+l+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function _(e){Object.keys(e).forEach(function(r){var t=e[r],n=t(void 0,{type:ne.INIT});if(typeof n=="undefined")throw new Error(I(12));if(typeof t(void 0,{type:ne.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(I(13))})}function k(e){for(var r=Object.keys(e),t={},n=0;n<r.length;n++){var s=r[n];typeof e[s]=="function"&&(t[s]=e[s])}var l=Object.keys(t),d,g;try{_(t)}catch(m){g=m}return function(T,S){if(T===void 0&&(T={}),g)throw g;if(!1)var Z;for(var K=!1,ie={},fe=0;fe<l.length;fe++){var P=l[fe],ee=t[P],oe=T[P],W=ee(oe,S);if(typeof W=="undefined"){var Ze=S&&S.type;throw new Error(I(14))}ie[P]=W,K=K||W!==oe}return K=K||l.length!==Object.keys(T).length,K?ie:T}}function C(e,r){return function(){return r(e.apply(this,arguments))}}function w(e,r){if(typeof e=="function")return C(e,r);if(typeof e!="object"||e===null)throw new Error(I(16));var t={};for(var n in e){var s=e[n];typeof s=="function"&&(t[n]=C(s,r))}return t}function M(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,s){return function(){return n(s.apply(void 0,arguments))}})}function z(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(n){return function(){var s=n.apply(void 0,arguments),l=function(){throw new Error(I(15))},d={getState:s.getState,dispatch:function(){return l.apply(void 0,arguments)}},g=r.map(function(m){return m(d)});return l=M.apply(void 0,g)(s.dispatch),_objectSpread(_objectSpread({},s),{},{dispatch:l})}}}var ae=function(r,t){return r===t};function $(e,r){return!e&&!r?!0:!e||!r?!1:e.x===r.x&&e.y===r.y}function V(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae;if(e.length!==r.length)return!1;for(var n=0;n<e.length;++n)if(!t(e[n],r[n]))return!1;return!0}function X(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?X(Object(t),!0).forEach(function(n){H(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function H(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Q={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function q(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q,r=arguments.length>1?arguments[1]:void 0,t=r.payload;switch(r.type){case F:case G:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case L:return $(e.clientOffset,t.clientOffset)?e:j(j({},e),{},{clientOffset:t.clientOffset});case ce:case Y:return Q;default:return e}}var J="dnd-core/ADD_SOURCE",Te="dnd-core/ADD_TARGET",Se="dnd-core/REMOVE_SOURCE",je="dnd-core/REMOVE_TARGET";function mt(e){return{type:J,payload:{sourceId:e}}}function Ot(e){return{type:Te,payload:{targetId:e}}}function bt(e){return{type:Se,payload:{sourceId:e}}}function Dt(e){return{type:je,payload:{targetId:e}}}function tt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function U(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?tt(Object(t),!0).forEach(function(n){Tt(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Tt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var St={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:St,r=arguments.length>1?arguments[1]:void 0,t=r.payload;switch(r.type){case G:return U(U({},e),{},{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case x:return U(U({},e),{},{isSourcePublic:!0});case L:return U(U({},e),{},{targetIds:t.targetIds});case je:return e.targetIds.indexOf(t.targetId)===-1?e:U(U({},e),{},{targetIds:Ie(e.targetIds,t.targetId)});case Y:return U(U({},e),{},{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ce:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function wt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case J:case Te:return e+1;case Se:case je:return e-1;default:return e}}var Ee=[],Qe=[];Ee.__IS_NONE__=!0,Qe.__IS_ALL__=!0;function It(e,r){if(e===Ee)return!1;if(e===Qe||typeof r=="undefined")return!0;var t=We(r,e);return t.length>0}function Ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ee,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case L:break;case J:case Te:case je:case Se:return Ee;case G:case x:case ce:case Y:default:return Qe}var t=r.payload,n=t.targetIds,s=n===void 0?[]:n,l=t.prevTargetIds,d=l===void 0?[]:l,g=Ce(s,d),m=g.length>0||!V(s,d);if(!m)return Ee;var T=d[d.length-1],S=s[s.length-1];return T!==S&&(T&&g.push(T),S&&g.push(S)),g}function Pt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function rt(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function nt(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?rt(Object(t),!0).forEach(function(n){kt(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function kt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ct(e.dirtyHandlerIds,{type:r.type,payload:nt(nt({},r.payload),{},{prevTargetIds:Be(e,"dragOperation.targetIds",[])})}),dragOffset:q(e.dragOffset,r),refCount:wt(e.refCount,r),dragOperation:Et(e.dragOperation,r),stateId:Pt(e.stateId)}}function Nt(e,r){return{x:e.x+r.x,y:e.y+r.y}}function at(e,r){return{x:e.x-r.x,y:e.y-r.y}}function xt(e){var r=e.clientOffset,t=e.initialClientOffset,n=e.initialSourceClientOffset;return!r||!t||!n?null:at(Nt(r,n),t)}function Rt(e){var r=e.clientOffset,t=e.initialClientOffset;return!r||!t?null:at(r,t)}function At(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function it(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lt(e,r,t){return r&&it(e.prototype,r),t&&it(e,t),e}function ot(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Mt=function(){function e(r,t){At(this,e),ot(this,"store",void 0),ot(this,"registry",void 0),this.store=r,this.registry=t}return Lt(e,[{key:"subscribeToStateChange",value:function(t){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},l=s.handlerIds;(0,v.k)(typeof t=="function","listener must be a function."),(0,v.k)(typeof l=="undefined"||Array.isArray(l),"handlerIds, when specified, must be an array of strings.");var d=this.store.getState().stateId,g=function(){var T=n.store.getState(),S=T.stateId;try{var Z=S===d||S===d+1&&!It(T.dirtyHandlerIds,l);Z||t()}finally{d=S}};return this.store.subscribe(g)}},{key:"subscribeToOffsetChange",value:function(t){var n=this;(0,v.k)(typeof t=="function","listener must be a function.");var s=this.store.getState().dragOffset,l=function(){var g=n.store.getState().dragOffset;g!==s&&(s=g,t())};return this.store.subscribe(l)}},{key:"canDragSource",value:function(t){if(!t)return!1;var n=this.registry.getSource(t);return(0,v.k)(n,"Expected to find a valid source. sourceId=".concat(t)),this.isDragging()?!1:n.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var n=this.registry.getTarget(t);if((0,v.k)(n,"Expected to find a valid target. targetId=".concat(t)),!this.isDragging()||this.didDrop())return!1;var s=this.registry.getTargetType(t),l=this.getItemType();return de(s,l)&&n.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var n=this.registry.getSource(t,!0);if((0,v.k)(n,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()||!this.isSourcePublic())return!1;var s=this.registry.getSourceType(t),l=this.getItemType();return s!==l?!1:n.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!t)return!1;var s=n.shallow;if(!this.isDragging())return!1;var l=this.registry.getTargetType(t),d=this.getItemType();if(d&&!de(l,d))return!1;var g=this.getTargetIds();if(!g.length)return!1;var m=g.indexOf(t);return s?m===g.length-1:m>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return xt(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Rt(this.store.getState().dragOffset)}}]),e}(),jt=0;function Ht(){return jt++}var B;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(B||(B={}));function He(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?He=function(t){return typeof t}:He=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(e)}function Ut(e){(0,v.k)(typeof e.canDrag=="function","Expected canDrag to be a function."),(0,v.k)(typeof e.beginDrag=="function","Expected beginDrag to be a function."),(0,v.k)(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Bt(e){(0,v.k)(typeof e.canDrop=="function","Expected canDrop to be a function."),(0,v.k)(typeof e.hover=="function","Expected hover to be a function."),(0,v.k)(typeof e.drop=="function","Expected beginDrag to be a function.")}function Je(e,r){if(r&&Array.isArray(e)){e.forEach(function(t){return Je(t,!1)});return}(0,v.k)(typeof e=="string"||He(e)==="symbol",r?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const ut=typeof global!="undefined"?global:self,st=ut.MutationObserver||ut.WebKitMutationObserver;function ft(e){return function(){const t=setTimeout(s,0),n=setInterval(s,50);function s(){clearTimeout(t),clearInterval(n),e()}}}function Wt(e){let r=1;const t=new st(e),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){r=-r,n.data=r}}const Ft=typeof st=="function"?Wt:ft;class Gt{enqueueTask(r){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=r}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:r}=this;for(;this.index<r.length;){const t=this.index;if(this.index++,r[t].call(),this.index>this.capacity){for(let n=0,s=r.length-this.index;n<s;n++)r[n]=r[n+this.index];r.length-=this.index,this.index=0}}r.length=0,this.index=0,this.flushing=!1},this.registerPendingError=r=>{this.pendingErrors.push(r),this.requestErrorThrow()},this.requestFlush=Ft(this.flush),this.requestErrorThrow=ft(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Xt{call(){try{this.task&&this.task()}catch(r){this.onError(r)}finally{this.task=null,this.release(this)}}constructor(r,t){this.onError=r,this.release=t,this.task=null}}class Kt{create(r){const t=this.freeTasks,n=t.length?t.pop():new Xt(this.onError,s=>t[t.length]=s);return n.task=r,n}constructor(r){this.onError=r,this.freeTasks=[]}}const ct=new Gt,Vt=new Kt(ct.registerPendingError);function qt(e){ct.enqueueTask(Vt.create(e))}function Yt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function lt(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zt(e,r,t){return r&<(e.prototype,r),t&<(e,t),e}function ve(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $t(e,r){return er(e)||Zt(e,r)||Jt(e,r)||Qt()}function Qt(){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.`)}function Jt(e,r){if(e){if(typeof e=="string")return dt(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dt(e,r)}}function dt(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Zt(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],s=!0,l=!1,d,g;try{for(t=t.call(e);!(s=(d=t.next()).done)&&(n.push(d.value),!(r&&n.length===r));s=!0);}catch(m){l=!0,g=m}finally{try{!s&&t.return!=null&&t.return()}finally{if(l)throw g}}return n}}function er(e){if(Array.isArray(e))return e}function tr(e){var r=Ht().toString();switch(e){case B.SOURCE:return"S".concat(r);case B.TARGET:return"T".concat(r);default:throw new Error("Unknown Handler Role: ".concat(e))}}function gt(e){switch(e[0]){case"S":return B.SOURCE;case"T":return B.TARGET;default:(0,v.k)(!1,"Cannot parse handler ID: ".concat(e))}}function vt(e,r){var t=e.entries(),n=!1;do{var s=t.next(),l=s.done,d=$t(s.value,2),g=d[1];if(g===r)return!0;n=!!l}while(!n);return!1}var rr=function(){function e(r){Yt(this,e),ve(this,"types",new Map),ve(this,"dragSources",new Map),ve(this,"dropTargets",new Map),ve(this,"pinnedSourceId",null),ve(this,"pinnedSource",null),ve(this,"store",void 0),this.store=r}return zt(e,[{key:"addSource",value:function(t,n){Je(t),Ut(n);var s=this.addHandler(B.SOURCE,t,n);return this.store.dispatch(mt(s)),s}},{key:"addTarget",value:function(t,n){Je(t,!0),Bt(n);var s=this.addHandler(B.TARGET,t,n);return this.store.dispatch(Ot(s)),s}},{key:"containsHandler",value:function(t){return vt(this.dragSources,t)||vt(this.dropTargets,t)}},{key:"getSource",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,v.k)(this.isSourceId(t),"Expected a valid source ID.");var s=n&&t===this.pinnedSourceId,l=s?this.pinnedSource:this.dragSources.get(t);return l}},{key:"getTarget",value:function(t){return(0,v.k)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return(0,v.k)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return(0,v.k)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){var n=gt(t);return n===B.SOURCE}},{key:"isTargetId",value:function(t){var n=gt(t);return n===B.TARGET}},{key:"removeSource",value:function(t){var n=this;(0,v.k)(this.getSource(t),"Expected an existing source."),this.store.dispatch(bt(t)),qt(function(){n.dragSources.delete(t),n.types.delete(t)})}},{key:"removeTarget",value:function(t){(0,v.k)(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Dt(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var n=this.getSource(t);(0,v.k)(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}},{key:"unpinSource",value:function(){(0,v.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,n,s){var l=tr(t);return this.types.set(l,n),t===B.SOURCE?this.dragSources.set(l,s):t===B.TARGET&&this.dropTargets.set(l,s),l}}]),e}();function nr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=ar(n),l=new Mt(s,new rr(s)),d=new Me(s,l),g=e(d,r,t);return d.receiveBackend(g),d}function ar(e){var r=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return h(_t,e&&r&&r({name:"dnd-core",instanceId:"dnd-core"}))}var ir=b(7563),or=["children"];function ur(e,r){return lr(e)||cr(e,r)||fr(e,r)||sr()}function sr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(e,r){if(e){if(typeof e=="string")return ht(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ht(e,r)}}function ht(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function cr(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],s=!0,l=!1,d,g;try{for(t=t.call(e);!(s=(d=t.next()).done)&&(n.push(d.value),!(r&&n.length===r));s=!0);}catch(m){l=!0,g=m}finally{try{!s&&t.return!=null&&t.return()}finally{if(l)throw g}}return n}}function lr(e){if(Array.isArray(e))return e}function dr(e,r){if(e==null)return{};var t=gr(e,r),n,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)n=l[s],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function gr(e,r){if(e==null)return{};var t={},n=Object.keys(e),s,l;for(l=0;l<n.length;l++)s=n[l],!(r.indexOf(s)>=0)&&(t[s]=e[s]);return t}var pt=0,Ue=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),vr=(0,A.memo)(function(r){var t=r.children,n=dr(r,or),s=hr(n),l=ur(s,2),d=l[0],g=l[1];return(0,A.useEffect)(function(){if(g){var m=yt();return++pt,function(){--pt===0&&(m[Ue]=null)}}},[]),(0,N.jsx)(ir.L.Provider,Object.assign({value:d},{children:t}),void 0)});function hr(e){if("manager"in e){var r={dragDropManager:e.manager};return[r,!1]}var t=pr(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function pr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yt(),t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,s=r;return s[Ue]||(s[Ue]={dragDropManager:nr(e,r,t,n)}),s[Ue]}function yt(){return typeof b.g!="undefined"?b.g:window}},66255:function(E,R,b){"use strict";b.d(R,{PD:function(){return ne}});var N={};b.r(N),b.d(N,{FILE:function(){return ke},HTML:function(){return Ne},TEXT:function(){return de},URL:function(){return _e}});function A(o){var i=null,a=function(){return i==null&&(i=o()),i};return a}function v(o,i){return o.filter(function(a){return a!==i})}function F(o,i){var a=new Set,u=function(h){return a.add(h)};o.forEach(u),i.forEach(u);var f=[];return a.forEach(function(c){return f.push(c)}),f}function G(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function x(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function L(o,i,a){return i&&x(o.prototype,i),a&&x(o,a),o}function Y(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var ce=function(){function o(i){G(this,o),Y(this,"entered",[]),Y(this,"isNodeInDocument",void 0),this.isNodeInDocument=i}return L(o,[{key:"enter",value:function(a){var u=this,f=this.entered.length,c=function(O){return u.isNodeInDocument(O)&&(!O.contains||O.contains(a))};return this.entered=F(this.entered.filter(c),[a]),f===0&&this.entered.length>0}},{key:"leave",value:function(a){var u=this.entered.length;return this.entered=v(this.entered.filter(this.isNodeInDocument),a),u>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),o}(),we=A(function(){return/firefox/i.test(navigator.userAgent)}),ue=A(function(){return Boolean(window.safari)});function Be(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function Ie(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function et(o,i,a){return i&&Ie(o.prototype,i),a&&Ie(o,a),o}function te(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var Ce=function(){function o(i,a){Be(this,o),te(this,"xs",void 0),te(this,"ys",void 0),te(this,"c1s",void 0),te(this,"c2s",void 0),te(this,"c3s",void 0);for(var u=i.length,f=[],c=0;c<u;c++)f.push(c);f.sort(function(Te,Se){return i[Te]<i[Se]?-1:1});for(var h=[],O=[],p=[],D,_,k=0;k<u-1;k++)D=i[k+1]-i[k],_=a[k+1]-a[k],O.push(D),h.push(_),p.push(_/D);for(var C=[p[0]],w=0;w<O.length-1;w++){var M=p[w],z=p[w+1];if(M*z<=0)C.push(0);else{D=O[w];var ae=O[w+1],$=D+ae;C.push(3*$/(($+ae)/M+($+D)/z))}}C.push(p[p.length-1]);for(var V=[],X=[],j,H=0;H<C.length-1;H++){j=p[H];var Q=C[H],q=1/O[H],J=Q+C[H+1]-j-j;V.push((j-Q-J)*q),X.push(J*q*q)}this.xs=i,this.ys=a,this.c1s=C,this.c2s=V,this.c3s=X}return et(o,[{key:"interpolate",value:function(a){var u=this.xs,f=this.ys,c=this.c1s,h=this.c2s,O=this.c3s,p=u.length-1;if(a===u[p])return f[p];for(var D=0,_=O.length-1,k;D<=_;){k=Math.floor(.5*(D+_));var C=u[k];if(C<a)D=k+1;else if(C>a)_=k-1;else return f[k]}p=Math.max(0,_);var w=a-u[p],M=w*w;return f[p]+c[p]*w+h[p]*M+O[p]*w*M}}]),o}(),We=1;function Pe(o){var i=o.nodeType===We?o:o.parentElement;if(!i)return null;var a=i.getBoundingClientRect(),u=a.top,f=a.left;return{x:f,y:u}}function le(o){return{x:o.clientX,y:o.clientY}}function Fe(o){var i;return o.nodeName==="IMG"&&(we()||!((i=document.documentElement)!==null&&i!==void 0&&i.contains(o)))}function Ge(o,i,a,u){var f=o?i.width:a,c=o?i.height:u;return ue()&&o&&(c/=window.devicePixelRatio,f/=window.devicePixelRatio),{dragPreviewWidth:f,dragPreviewHeight:c}}function Xe(o,i,a,u,f){var c=Fe(i),h=c?o:i,O=Pe(h),p={x:a.x-O.x,y:a.y-O.y},D=o.offsetWidth,_=o.offsetHeight,k=u.anchorX,C=u.anchorY,w=Ge(c,i,D,_),M=w.dragPreviewWidth,z=w.dragPreviewHeight,ae=function(){var q=new Ce([0,.5,1],[p.y,p.y/_*z,p.y+z-_]),J=q.interpolate(C);return ue()&&c&&(J+=(window.devicePixelRatio-1)*z),J},$=function(){var q=new Ce([0,.5,1],[p.x,p.x/D*M,p.x+M-D]);return q.interpolate(k)},V=f.offsetX,X=f.offsetY,j=V===0||V,H=X===0||X;return{x:j?V:$(),y:H?X:ae()}}var ke="__NATIVE_FILE__",_e="__NATIVE_URL__",de="__NATIVE_TEXT__",Ne="__NATIVE_HTML__";function he(o,i,a){var u=i.reduce(function(f,c){return f||o.getData(c)},"");return u!=null?u:a}var re;function ge(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var pe=(re={},ge(re,ke,{exposeProperties:{files:function(i){return Array.prototype.slice.call(i.files)},items:function(i){return i.items},dataTransfer:function(i){return i}},matchesTypes:["Files"]}),ge(re,Ne,{exposeProperties:{html:function(i,a){return he(i,a,"")},dataTransfer:function(i){return i}},matchesTypes:["Html","text/html"]}),ge(re,_e,{exposeProperties:{urls:function(i,a){return he(i,a,"").split(`
|
|
4
|
-
`)},dataTransfer:function(i){return i}},matchesTypes:["Url","text/uri-list"]}),ge(re,de,{exposeProperties:{text:function(i,a){return he(i,a,"")},dataTransfer:function(i){return i}},matchesTypes:["Text","text/plain"]}),re);function xe(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function ye(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function Ke(o,i,a){return i&&ye(o.prototype,i),a&&ye(o,a),o}function Re(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var Ve=function(){function o(i){xe(this,o),Re(this,"item",void 0),Re(this,"config",void 0),this.config=i,this.item={},this.initializeExposedProperties()}return Ke(o,[{key:"initializeExposedProperties",value:function(){var a=this;Object.keys(this.config.exposeProperties).forEach(function(u){Object.defineProperty(a.item,u,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(u,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(a){var u=this;if(a){var f={};Object.keys(this.config.exposeProperties).forEach(function(c){f[c]={value:u.config.exposeProperties[c](a,u.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,f)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(a,u){return u===a.getSourceId()}},{key:"endDrag",value:function(){}}]),o}();function qe(o,i){var a=new Ve(pe[o]);return a.loadDataTransfer(i),a}function me(o){if(!o)return null;var i=Array.prototype.slice.call(o.types||[]);return Object.keys(pe).filter(function(a){var u=pe[a].matchesTypes;return u.some(function(f){return i.indexOf(f)>-1})})[0]||null}function Ye(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function Ae(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function ze(o,i,a){return i&&Ae(o.prototype,i),a&&Ae(o,a),o}function Oe(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var $e=function(){function o(i,a){Ye(this,o),Oe(this,"ownerDocument",null),Oe(this,"globalContext",void 0),Oe(this,"optionsArgs",void 0),this.globalContext=i,this.optionsArgs=a}return ze(o,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}},{key:"document",get:function(){var a;return(a=this.globalContext)!==null&&a!==void 0&&a.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var a;return((a=this.optionsArgs)===null||a===void 0?void 0:a.rootElement)||this.window}}]),o}();function be(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);i&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),a.push.apply(a,u)}return a}function Le(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?be(Object(a),!0).forEach(function(u){y(o,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):be(Object(a)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(a,u))})}return o}function se(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function Me(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function I(o,i,a){return i&&Me(o.prototype,i),a&&Me(o,a),o}function y(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}var De=function(){function o(i,a,u){var f=this;se(this,o),y(this,"options",void 0),y(this,"actions",void 0),y(this,"monitor",void 0),y(this,"registry",void 0),y(this,"enterLeaveCounter",void 0),y(this,"sourcePreviewNodes",new Map),y(this,"sourcePreviewNodeOptions",new Map),y(this,"sourceNodes",new Map),y(this,"sourceNodeOptions",new Map),y(this,"dragStartSourceIds",null),y(this,"dropTargetIds",[]),y(this,"dragEnterTargetIds",[]),y(this,"currentNativeSource",null),y(this,"currentNativeHandle",null),y(this,"currentDragSourceNode",null),y(this,"altKeyPressed",!1),y(this,"mouseMoveTimeoutTimer",null),y(this,"asyncEndDragFrameId",null),y(this,"dragOverTargetIds",null),y(this,"lastClientOffset",null),y(this,"hoverRafId",null),y(this,"getSourceClientOffset",function(c){var h=f.sourceNodes.get(c);return h&&Pe(h)||null}),y(this,"endDragNativeItem",function(){f.isDraggingNativeItem()&&(f.actions.endDrag(),f.currentNativeHandle&&f.registry.removeSource(f.currentNativeHandle),f.currentNativeHandle=null,f.currentNativeSource=null)}),y(this,"isNodeInDocument",function(c){return Boolean(c&&f.document&&f.document.body&&f.document.body.contains(c))}),y(this,"endDragIfSourceWasRemovedFromDOM",function(){var c=f.currentDragSourceNode;c==null||f.isNodeInDocument(c)||f.clearCurrentDragSourceNode()&&f.monitor.isDragging()&&f.actions.endDrag()}),y(this,"handleTopDragStartCapture",function(){f.clearCurrentDragSourceNode(),f.dragStartSourceIds=[]}),y(this,"handleTopDragStart",function(c){if(!c.defaultPrevented){var h=f.dragStartSourceIds;f.dragStartSourceIds=null;var O=le(c);f.monitor.isDragging()&&f.actions.endDrag(),f.actions.beginDrag(h||[],{publishSource:!1,getSourceClientOffset:f.getSourceClientOffset,clientOffset:O});var p=c.dataTransfer,D=me(p);if(f.monitor.isDragging()){if(p&&typeof p.setDragImage=="function"){var _=f.monitor.getSourceId(),k=f.sourceNodes.get(_),C=f.sourcePreviewNodes.get(_)||k;if(C){var w=f.getCurrentSourcePreviewNodeOptions(),M=w.anchorX,z=w.anchorY,ae=w.offsetX,$=w.offsetY,V={anchorX:M,anchorY:z},X={offsetX:ae,offsetY:$},j=Xe(k,C,O,V,X);p.setDragImage(C,j.x,j.y)}}try{p==null||p.setData("application/json",{})}catch(q){}f.setCurrentDragSourceNode(c.target);var H=f.getCurrentSourcePreviewNodeOptions(),Q=H.captureDraggingState;Q?f.actions.publishDragSource():setTimeout(function(){return f.actions.publishDragSource()},0)}else if(D)f.beginDragNativeItem(D);else{if(p&&!p.types&&(c.target&&!c.target.hasAttribute||!c.target.hasAttribute("draggable")))return;c.preventDefault()}}}),y(this,"handleTopDragEndCapture",function(){f.clearCurrentDragSourceNode()&&f.monitor.isDragging()&&f.actions.endDrag()}),y(this,"handleTopDragEnterCapture",function(c){f.dragEnterTargetIds=[];var h=f.enterLeaveCounter.enter(c.target);if(!(!h||f.monitor.isDragging())){var O=c.dataTransfer,p=me(O);p&&f.beginDragNativeItem(p,O)}}),y(this,"handleTopDragEnter",function(c){var h=f.dragEnterTargetIds;if(f.dragEnterTargetIds=[],!!f.monitor.isDragging()){f.altKeyPressed=c.altKey,h.length>0&&f.actions.hover(h,{clientOffset:le(c)});var O=h.some(function(p){return f.monitor.canDropOnTarget(p)});O&&(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect=f.getCurrentDropEffect()))}}),y(this,"handleTopDragOverCapture",function(){f.dragOverTargetIds=[]}),y(this,"handleTopDragOver",function(c){var h=f.dragOverTargetIds;if(f.dragOverTargetIds=[],!f.monitor.isDragging()){c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="none");return}f.altKeyPressed=c.altKey,f.lastClientOffset=le(c),f.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(f.hoverRafId=requestAnimationFrame(function(){f.monitor.isDragging()&&f.actions.hover(h||[],{clientOffset:f.lastClientOffset}),f.hoverRafId=null}));var O=(h||[]).some(function(p){return f.monitor.canDropOnTarget(p)});O?(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect=f.getCurrentDropEffect())):f.isDraggingNativeItem()?c.preventDefault():(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="none"))}),y(this,"handleTopDragLeaveCapture",function(c){f.isDraggingNativeItem()&&c.preventDefault();var h=f.enterLeaveCounter.leave(c.target);h&&f.isDraggingNativeItem()&&setTimeout(function(){return f.endDragNativeItem()},0)}),y(this,"handleTopDropCapture",function(c){if(f.dropTargetIds=[],f.isDraggingNativeItem()){var h;c.preventDefault(),(h=f.currentNativeSource)===null||h===void 0||h.loadDataTransfer(c.dataTransfer)}else me(c.dataTransfer)&&c.preventDefault();f.enterLeaveCounter.reset()}),y(this,"handleTopDrop",function(c){var h=f.dropTargetIds;f.dropTargetIds=[],f.actions.hover(h,{clientOffset:le(c)}),f.actions.drop({dropEffect:f.getCurrentDropEffect()}),f.isDraggingNativeItem()?f.endDragNativeItem():f.monitor.isDragging()&&f.actions.endDrag()}),y(this,"handleSelectStart",function(c){var h=c.target;typeof h.dragDrop=="function"&&(h.tagName==="INPUT"||h.tagName==="SELECT"||h.tagName==="TEXTAREA"||h.isContentEditable||(c.preventDefault(),h.dragDrop()))}),this.options=new $e(a,u),this.actions=i.getActions(),this.monitor=i.getMonitor(),this.registry=i.getRegistry(),this.enterLeaveCounter=new ce(this.isNodeInDocument)}return I(o,[{key:"profile",value:function(){var a,u;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((a=this.dragStartSourceIds)===null||a===void 0?void 0:a.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((u=this.dragOverTargetIds)===null||u===void 0?void 0:u.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var a=this.rootElement;if(a!==void 0){if(a.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");a.__isReactDndBackendSetUp=!0,this.addEventListeners(a)}}},{key:"teardown",value:function(){var a=this.rootElement;if(a!==void 0&&(a.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var u;(u=this.window)===null||u===void 0||u.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(a,u,f){var c=this;return this.sourcePreviewNodeOptions.set(a,f),this.sourcePreviewNodes.set(a,u),function(){c.sourcePreviewNodes.delete(a),c.sourcePreviewNodeOptions.delete(a)}}},{key:"connectDragSource",value:function(a,u,f){var c=this;this.sourceNodes.set(a,u),this.sourceNodeOptions.set(a,f);var h=function(D){return c.handleDragStart(D,a)},O=function(D){return c.handleSelectStart(D)};return u.setAttribute("draggable","true"),u.addEventListener("dragstart",h),u.addEventListener("selectstart",O),function(){c.sourceNodes.delete(a),c.sourceNodeOptions.delete(a),u.removeEventListener("dragstart",h),u.removeEventListener("selectstart",O),u.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(a,u){var f=this,c=function(D){return f.handleDragEnter(D,a)},h=function(D){return f.handleDragOver(D,a)},O=function(D){return f.handleDrop(D,a)};return u.addEventListener("dragenter",c),u.addEventListener("dragover",h),u.addEventListener("drop",O),function(){u.removeEventListener("dragenter",c),u.removeEventListener("dragover",h),u.removeEventListener("drop",O)}}},{key:"addEventListeners",value:function(a){a.addEventListener&&(a.addEventListener("dragstart",this.handleTopDragStart),a.addEventListener("dragstart",this.handleTopDragStartCapture,!0),a.addEventListener("dragend",this.handleTopDragEndCapture,!0),a.addEventListener("dragenter",this.handleTopDragEnter),a.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),a.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),a.addEventListener("dragover",this.handleTopDragOver),a.addEventListener("dragover",this.handleTopDragOverCapture,!0),a.addEventListener("drop",this.handleTopDrop),a.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(a){a.removeEventListener&&(a.removeEventListener("dragstart",this.handleTopDragStart),a.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),a.removeEventListener("dragend",this.handleTopDragEndCapture,!0),a.removeEventListener("dragenter",this.handleTopDragEnter),a.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),a.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),a.removeEventListener("dragover",this.handleTopDragOver),a.removeEventListener("dragover",this.handleTopDragOverCapture,!0),a.removeEventListener("drop",this.handleTopDrop),a.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var a=this.monitor.getSourceId(),u=this.sourceNodeOptions.get(a);return Le({dropEffect:this.altKeyPressed?"copy":"move"},u||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var a=this.monitor.getSourceId(),u=this.sourcePreviewNodeOptions.get(a);return Le({anchorX:.5,anchorY:.5,captureDraggingState:!1},u||{})}},{key:"isDraggingNativeItem",value:function(){var a=this.monitor.getItemType();return Object.keys(N).some(function(u){return N[u]===a})}},{key:"beginDragNativeItem",value:function(a,u){this.clearCurrentDragSourceNode(),this.currentNativeSource=qe(a,u),this.currentNativeHandle=this.registry.addSource(a,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(a){var u=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=a;var f=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var c;return(c=u.rootElement)===null||c===void 0?void 0:c.addEventListener("mousemove",u.endDragIfSourceWasRemovedFromDOM,!0)},f)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var a;(a=this.window)===null||a===void 0||a.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(a,u){a.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(u))}},{key:"handleDragEnter",value:function(a,u){this.dragEnterTargetIds.unshift(u)}},{key:"handleDragOver",value:function(a,u){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(u)}},{key:"handleDrop",value:function(a,u){this.dropTargetIds.unshift(u)}}]),o}(),ne=function(i,a,u){return new De(i,a,u)}},30006:function(E,R,b){var N=b(25705);function A(v){if(Array.isArray(v))return N(v)}E.exports=A,E.exports.__esModule=!0,E.exports.default=E.exports},16660:function(E){function R(b){if(typeof Symbol!="undefined"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}E.exports=R,E.exports.__esModule=!0,E.exports.default=E.exports},95848:function(E){function R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}E.exports=R,E.exports.__esModule=!0,E.exports.default=E.exports},93525:function(E,R,b){var N=b(30006),A=b(16660),v=b(41442),F=b(95848);function G(x){return N(x)||A(x)||v(x)||F()}E.exports=G,E.exports.__esModule=!0,E.exports.default=E.exports}}]);
|