@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.runCron = void 0;
|
|
7
|
+
const cross_spawn_1 = require("cross-spawn");
|
|
8
|
+
const pLimit_1 = require("./pLimit");
|
|
9
|
+
const logger_1 = __importDefault(require("../loaders/logger"));
|
|
10
|
+
function runCron(cmd) {
|
|
11
|
+
return (0, pLimit_1.runCronWithLimit)(() => {
|
|
12
|
+
return new Promise(async (resolve) => {
|
|
13
|
+
logger_1.default.silly('运行命令: ' + cmd);
|
|
14
|
+
const cp = (0, cross_spawn_1.spawn)(cmd, { shell: '/bin/bash' });
|
|
15
|
+
cp.stderr.on('data', (data) => {
|
|
16
|
+
logger_1.default.info('[执行任务失败] %s,时间:%s, 错误信息:%j', cmd, new Date().toLocaleString(), data.toString());
|
|
17
|
+
});
|
|
18
|
+
cp.on('error', (err) => {
|
|
19
|
+
logger_1.default.error('[创建任务失败] %s,时间:%s, 错误信息:%j', cmd, new Date().toLocaleString(), err);
|
|
20
|
+
});
|
|
21
|
+
cp.on('close', async (code) => {
|
|
22
|
+
logger_1.default.info(`[任务退出] ${cmd} 进程id: ${cp.pid} 退出,退出码 ${code}`);
|
|
23
|
+
resolve();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.runCron = runCron;
|
|
29
|
+
//# sourceMappingURL=runCron.js.map
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
`).split(`
|
|
8
8
|
`),a=0,o=[],s=0,c=i.length;s<c;s++){var u=i[s]+`
|
|
9
9
|
`;u.includes("{")?o.push(t(a++)+r(u)):u.includes("}")?o.push(t(--a)+r(u)):o.push(t(a)+r(u))}return o.join("").trim()}function Ca(e,r){r===void 0&&(r=0);for(var t=e.length,n=0,i=-1,a=r;a<t;a++)if(n===0){var o=e.indexOf("(",a);if(o<0)break;i=o,n++,a=o}else{var s=e.indexOf(")",a);if(s<0)break;var o=e.indexOf("(",a);if(o<0||s<o){if(n--,n===0)return{start:i,end:s+1};a=s}else n++,a=o}return null}function zt(e){var r=Ue.identity();return e.sepia!==0&&(r=Pe(r,Ue.sepia(e.sepia/100))),e.grayscale!==0&&(r=Pe(r,Ue.grayscale(e.grayscale/100))),e.contrast!==100&&(r=Pe(r,Ue.contrast(e.contrast/100))),e.brightness!==100&&(r=Pe(r,Ue.brightness(e.brightness/100))),e.mode===1&&(r=Pe(r,Ue.invertNHue())),r}function _a(e,r){var t=V(e,3),n=t[0],i=t[1],a=t[2],o=[[n/255],[i/255],[a/255],[1],[1]],s=Pe(r,o);return[0,1,2].map(function(c){return we(Math.round(s[c][0]*255),0,255)})}var Ue={identity:function(){return[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]},invertNHue:function(){return[[.333,-.667,-.667,0,1],[-.667,.333,-.667,0,1],[-.667,-.667,.333,0,1],[0,0,0,1,0],[0,0,0,0,1]]},brightness:function(e){return[[e,0,0,0,0],[0,e,0,0,0],[0,0,e,0,0],[0,0,0,1,0],[0,0,0,0,1]]},contrast:function(e){var r=(1-e)/2;return[[e,0,0,0,r],[0,e,0,0,r],[0,0,e,0,r],[0,0,0,1,0],[0,0,0,0,1]]},sepia:function(e){return[[.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),0,0],[.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),0,0],[.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]]},grayscale:function(e){return[[.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]]}};function Kr(e){var r=e.mode===1,t=r?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor";return e[t]}function Qr(e){var r=e.mode===1,t=r?"darkSchemeTextColor":"lightSchemeTextColor";return e[t]}var kr=new Map,Er=new Map;function Kt(e){if(Er.has(e))return Er.get(e);var r=Me(e),t=wr(r);return Er.set(e,t),t}function Ta(){kr.clear(),Er.clear()}var Ra=["r","g","b","a"],Ma=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function Aa(e,r){var t="";return Ra.forEach(function(n){t+=e[n]+";"}),Ma.forEach(function(n){t+=r[n]+";"}),t}function Ze(e,r,t,n,i){var a;kr.has(t)?a=kr.get(t):(a=new Map,kr.set(t,a));var o=Aa(e,r);if(a.has(o))return a.get(o);var s=wr(e),c=n==null?null:Kt(n),u=i==null?null:Kt(i),l=t(s,c,u),d=Wt(l),p=d.r,m=d.g,v=d.b,f=d.a,h=zt(r),g=V(_a([p,m,v],h),3),b=g[0],y=g[1],w=g[2],k=f===1?sa({r:b,g:y,b:w}):oa({r:b,g:y,b:w,a:f});return a.set(o,k),k}function La(e){return e}function Va(e,r){return Ze(e,r,La)}function Yr(e,r){var t=Kr(r),n=Qr(r);return Ze(e,r,Oa,n,t)}function Oa(e,r,t){var n=e.h,i=e.s,a=e.l,o=e.a,s=a<.5,c;if(s)c=a<.2||i<.12;else{var u=n>200&&n<280;c=i<.24||a>.8&&u}var l=n,d=a;c&&(s?(l=r.h,d=r.s):(l=t.h,d=t.s));var p=fe(a,0,1,r.l,t.l);return{h:l,s:d,l:p,a:o}}var Qt=.4;function Da(e,r){var t=e.h,n=e.s,i=e.l,a=e.a,o=i<.5,s=t>200&&t<280,c=n<.12||i>.8&&s;if(o){var u=fe(i,0,.5,0,Qt);if(c){var l=r.h,d=r.s;return{h:l,s:d,l:u,a}}return{h:t,s:n,l:u,a}}var p=fe(i,.5,1,Qt,r.l);if(c){var m=r.h,d=r.s;return{h:m,s:d,l:p,a}}var v=t,f=t>60&&t<180;if(f){var h=t>120;h?v=fe(t,120,180,135,180):v=fe(t,60,120,60,105)}return{h:v,s:n,l:p,a}}function z(e,r){if(r.mode===0)return Yr(e,r);var t=Kr(r);return Ze(e,T(T({},r),{mode:0}),Da,t)}var Cr=.55;function Yt(e){return fe(e,205,245,205,220)}function Ia(e,r){var t=e.h,n=e.s,i=e.l,a=e.a,o=i>.5,s=i<.2||n<.24,c=!s&&t>205&&t<245;if(o){var u=fe(i,.5,1,Cr,r.l);if(s){var l=r.h,d=r.s;return{h:l,s:d,l:u,a}}var p=t;return c&&(p=Yt(t)),{h:p,s:n,l:u,a}}if(s){var m=r.h,d=r.s,v=fe(i,0,.5,r.l,Cr);return{h:m,s:d,l:v,a}}var f=t,h;return c?(f=Yt(t),h=fe(i,0,.5,r.l,Math.min(1,Cr+.05))):h=fe(i,0,.5,r.l,Cr),{h:f,s:n,l:h,a}}function pe(e,r){if(r.mode===0)return Yr(e,r);var t=Qr(r);return Ze(e,T(T({},r),{mode:0}),Ia,t)}function Pa(e,r,t){var n=e.h,i=e.s,a=e.l,o=e.a,s=a<.5,c=a<.2||i<.24,u=n,l=i;c&&(s?(u=r.h,l=r.s):(u=t.h,l=t.s));var d=fe(a,0,1,.5,.2);return{h:u,s:l,l:d,a:o}}function Je(e,r){if(r.mode===0)return Yr(e,r);var t=Qr(r),n=Kr(r);return Ze(e,T(T({},r),{mode:0}),Pa,t,n)}function Fa(e,r){return z(e,r)}function Xr(e,r){return z(e,r)}function Ua(e){var r=[];return r.push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon) {'),e.useFont&&e.fontFamily&&r.push(" font-family: "+e.fontFamily+" !important;"),e.textStroke>0&&(r.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),r.push(" text-stroke: "+e.textStroke+"px !important;")),r.push("}"),r.join(`
|
|
10
|
-
`)}var Zr;(function(e){e[e.light=0]="light",e[e.dark=1]="dark"})(Zr||(Zr={}));function Xt(e){var r=[];return e.mode===Zr.dark&&r.push("invert(100%) hue-rotate(180deg)"),e.brightness!==100&&r.push("brightness("+e.brightness+"%)"),e.contrast!==100&&r.push("contrast("+e.contrast+"%)"),e.grayscale!==0&&r.push("grayscale("+e.grayscale+"%)"),e.sepia!==0&&r.push("sepia("+e.sepia+"%)"),r.length===0?null:r.join(" ")}function Na(e){return e.slice(0,4).map(function(r){return r.map(function(t){return t.toFixed(3)}).join(" ")}).join(" ")}function Ba(e){return Na(zt(e))}var Ha=0,Jr=new Map,$r=new Map;function Zt(e){return U(this,void 0,void 0,function(){return N(this,function(r){return[2,new Promise(function(t,n){var i=++Ha;Jr.set(i,t),$r.set(i,n),typeof chrome!="undefined"&&chrome.runtime.sendMessage({type:ze.CS_FETCH,data:e,id:i})})]})})}typeof chrome!="undefined"&&chrome.runtime.onMessage.addListener(function(e){var r=e.type,t=e.data,n=e.error,i=e.id;if(r===ze.BG_FETCH_RESPONSE){var a=Jr.get(i),o=$r.get(i);Jr.delete(i),$r.delete(i),n?o&&o(n):a&&a(t)}});var Wa=function(){function e(){this.queue=[],this.timerId=null,this.frameDuration=1e3/60}return e.prototype.addToQueue=function(r){this.queue.push(r),this.startQueue()},e.prototype.stopQueue=function(){this.timerId!==null&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]},e.prototype.startQueue=function(){var r=this;this.timerId||(this.timerId=requestAnimationFrame(function(){r.timerId=null;for(var t=Date.now(),n;n=r.queue.shift();)if(n(),Date.now()-t>=r.frameDuration){r.startQueue();break}}))},e}(),et=new Wa;function ja(e){return U(this,void 0,void 0,function(){var r=this;return N(this,function(t){return[2,new Promise(function(n,i){return U(r,void 0,void 0,function(){var a,o,s,c;return N(this,function(u){switch(u.label){case 0:return e.startsWith("data:")?(a=e,[3,4]):[3,1];case 1:return u.trys.push([1,3,,4]),[4,Ga(e)];case 2:return a=u.sent(),[3,4];case 3:return o=u.sent(),i(o),[2];case 4:return u.trys.push([4,6,,7]),[4,qa(a)];case 5:return s=u.sent(),et.addToQueue(function(){n(T({src:e,dataURL:a,width:s.naturalWidth,height:s.naturalHeight},Ya(s)))}),[3,7];case 6:return c=u.sent(),i(c),[3,7];case 7:return[2]}})})})]})})}function Ga(e){return U(this,void 0,void 0,function(){var r;return N(this,function(t){switch(t.label){case 0:return r=new URL(e),r.origin!==location.origin?[3,2]:[4,Tt(e)];case 1:return[2,t.sent()];case 2:return[4,Zt({url:e,responseType:"data-url"})];case 3:return[2,t.sent()]}})})}function qa(e){return U(this,void 0,void 0,function(){return N(this,function(r){return[2,new Promise(function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=function(){return n("Unable to load image "+e)},i.src=e})]})})}var rt=32*32,Ne,Be;function za(){var e=rt,r=rt;Ne=document.createElement("canvas"),Ne.width=e,Ne.height=r,Be=Ne.getContext("2d"),Be.imageSmoothingEnabled=!1}function Ka(){Ne=null,Be=null}var Qa=5*1024*1024;function Ya(e){Ne||za();var r=e.naturalWidth,t=e.naturalHeight;if(t===0||r===0)return L("logWarn(Image is empty "+e.currentSrc+")"),null;var n=r*t*4;if(n>Qa)return j("Skipped large image analyzing(Larger than 5mb in memory)"),{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!0};var i=r*t,a=Math.min(1,Math.sqrt(rt/i)),o=Math.ceil(r*a),s=Math.ceil(t*a);Be.clearRect(0,0,o,s),Be.drawImage(e,0,0,r,t,0,0,o,s);var c=Be.getImageData(0,0,o,s),u=c.data,l=.05,d=.4,p=.7,m=0,v=0,f=0,h,g,b,y,w,k,x,_;for(b=0;b<s;b++)for(g=0;g<o;g++)h=4*(b*o+g),y=u[h+0]/255,w=u[h+1]/255,k=u[h+2]/255,x=u[h+3]/255,x<l?m++:(_=.2126*y+.7152*w+.0722*k,_<d&&v++,_>p&&f++);var P=o*s,F=P-m,Y=.7,Oe=.7,_e=.1,cr=800*600;return{isDark:v/F>=Y,isLight:f/F>=Oe,isTransparent:m/P>=_e,isLarge:i>=cr,isTooLarge:!1}}function tt(e,r){var t=e.dataURL,n=e.width,i=e.height,a=Ba(r),o=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+n+'" height="'+i+'">',"<defs>",'<filter id="darkreader-image-filter">','<feColorMatrix type="matrix" values="'+a+'" />',"</filter>","</defs>",'<image width="'+n+'" height="'+i+'" filter="url(#darkreader-image-filter)" xlink:href="'+t+'" />',"</svg>"].join("");return"data:image/svg+xml;base64,"+btoa(o)}function Xa(){et&&et.stopQueue(),Ka()}function $e(e,r){return
|
|
10
|
+
`)}var Zr;(function(e){e[e.light=0]="light",e[e.dark=1]="dark"})(Zr||(Zr={}));function Xt(e){var r=[];return e.mode===Zr.dark&&r.push("invert(100%) hue-rotate(180deg)"),e.brightness!==100&&r.push("brightness("+e.brightness+"%)"),e.contrast!==100&&r.push("contrast("+e.contrast+"%)"),e.grayscale!==0&&r.push("grayscale("+e.grayscale+"%)"),e.sepia!==0&&r.push("sepia("+e.sepia+"%)"),r.length===0?null:r.join(" ")}function Na(e){return e.slice(0,4).map(function(r){return r.map(function(t){return t.toFixed(3)}).join(" ")}).join(" ")}function Ba(e){return Na(zt(e))}var Ha=0,Jr=new Map,$r=new Map;function Zt(e){return U(this,void 0,void 0,function(){return N(this,function(r){return[2,new Promise(function(t,n){var i=++Ha;Jr.set(i,t),$r.set(i,n),typeof chrome!="undefined"&&chrome.runtime.sendMessage({type:ze.CS_FETCH,data:e,id:i})})]})})}typeof chrome!="undefined"&&chrome.runtime.onMessage.addListener(function(e){var r=e.type,t=e.data,n=e.error,i=e.id;if(r===ze.BG_FETCH_RESPONSE){var a=Jr.get(i),o=$r.get(i);Jr.delete(i),$r.delete(i),n?o&&o(n):a&&a(t)}});var Wa=function(){function e(){this.queue=[],this.timerId=null,this.frameDuration=1e3/60}return e.prototype.addToQueue=function(r){this.queue.push(r),this.startQueue()},e.prototype.stopQueue=function(){this.timerId!==null&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]},e.prototype.startQueue=function(){var r=this;this.timerId||(this.timerId=requestAnimationFrame(function(){r.timerId=null;for(var t=Date.now(),n;n=r.queue.shift();)if(n(),Date.now()-t>=r.frameDuration){r.startQueue();break}}))},e}(),et=new Wa;function ja(e){return U(this,void 0,void 0,function(){var r=this;return N(this,function(t){return[2,new Promise(function(n,i){return U(r,void 0,void 0,function(){var a,o,s,c;return N(this,function(u){switch(u.label){case 0:return e.startsWith("data:")?(a=e,[3,4]):[3,1];case 1:return u.trys.push([1,3,,4]),[4,Ga(e)];case 2:return a=u.sent(),[3,4];case 3:return o=u.sent(),i(o),[2];case 4:return u.trys.push([4,6,,7]),[4,qa(a)];case 5:return s=u.sent(),et.addToQueue(function(){n(T({src:e,dataURL:a,width:s.naturalWidth,height:s.naturalHeight},Ya(s)))}),[3,7];case 6:return c=u.sent(),i(c),[3,7];case 7:return[2]}})})})]})})}function Ga(e){return U(this,void 0,void 0,function(){var r;return N(this,function(t){switch(t.label){case 0:return r=new URL(e),r.origin!==location.origin?[3,2]:[4,Tt(e)];case 1:return[2,t.sent()];case 2:return[4,Zt({url:e,responseType:"data-url"})];case 3:return[2,t.sent()]}})})}function qa(e){return U(this,void 0,void 0,function(){return N(this,function(r){return[2,new Promise(function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=function(){return n("Unable to load image "+e)},i.src=e})]})})}var rt=32*32,Ne,Be;function za(){var e=rt,r=rt;Ne=document.createElement("canvas"),Ne.width=e,Ne.height=r,Be=Ne.getContext("2d"),Be.imageSmoothingEnabled=!1}function Ka(){Ne=null,Be=null}var Qa=5*1024*1024;function Ya(e){Ne||za();var r=e.naturalWidth,t=e.naturalHeight;if(t===0||r===0)return L("logWarn(Image is empty "+e.currentSrc+")"),null;var n=r*t*4;if(n>Qa)return j("Skipped large image analyzing(Larger than 5mb in memory)"),{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!0};var i=r*t,a=Math.min(1,Math.sqrt(rt/i)),o=Math.ceil(r*a),s=Math.ceil(t*a);Be.clearRect(0,0,o,s),Be.drawImage(e,0,0,r,t,0,0,o,s);var c=Be.getImageData(0,0,o,s),u=c.data,l=.05,d=.4,p=.7,m=0,v=0,f=0,h,g,b,y,w,k,x,_;for(b=0;b<s;b++)for(g=0;g<o;g++)h=4*(b*o+g),y=u[h+0]/255,w=u[h+1]/255,k=u[h+2]/255,x=u[h+3]/255,x<l?m++:(_=.2126*y+.7152*w+.0722*k,_<d&&v++,_>p&&f++);var P=o*s,F=P-m,Y=.7,Oe=.7,_e=.1,cr=800*600;return{isDark:v/F>=Y,isLight:f/F>=Oe,isTransparent:m/P>=_e,isLarge:i>=cr,isTooLarge:!1}}function tt(e,r){var t=e.dataURL,n=e.width,i=e.height,a=Ba(r),o=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+n+'" height="'+i+'">',"<defs>",'<filter id="darkreader-image-filter">','<feColorMatrix type="matrix" values="'+a+'" />',"</filter>","</defs>",'<image width="'+n+'" height="'+i+'" filter="url(#darkreader-image-filter)" xlink:href="'+t+'" />',"</svg>"].join("");return"data:image/svg+xml;base64,"+btoa(o)}function Xa(){et&&et.stopQueue(),Ka()}function $e(e,r){return!!(e&&e.getPropertyPriority(r))}function Jt(e,r,t,n,i,a){if(e.startsWith("--")){var o=ii(n,e,r,t,i,a);if(o)return{property:e,value:o,important:$e(t.style,e),sourceValue:r}}else if(r.includes("var(")){var o=oi(n,e,r);if(o)return{property:e,value:o,important:$e(t.style,e),sourceValue:r}}else if(e.includes("color")&&e!=="-webkit-print-color-adjust"||e==="fill"||e==="stroke"||e==="stop-color"){var o=ri(e,r);if(o)return{property:e,value:o,important:$e(t.style,e),sourceValue:r}}else if(e==="background-image"||e==="list-style-image"){var o=rn(r,t,i,a);if(o)return{property:e,value:o,important:$e(t.style,e),sourceValue:r}}else if(e.includes("shadow")){var o=ai(r);if(o)return{property:e,value:o,important:$e(t.style,e),sourceValue:r}}return null}function Za(e,r,t){var n=[];return r||(n.push("html {"),n.push(" background-color: "+z({r:255,g:255,b:255},e)+" !important;"),n.push("}")),n.push((r?"":"html, body, ")+(t?"input, textarea, select, button":"")+" {"),n.push(" background-color: "+z({r:255,g:255,b:255},e)+";"),n.push("}"),n.push("html, body, "+(t?"input, textarea, select, button":"")+" {"),n.push(" border-color: "+Je({r:76,g:76,b:76},e)+";"),n.push(" color: "+pe({r:0,g:0,b:0},e)+";"),n.push("}"),n.push("a {"),n.push(" color: "+pe({r:0,g:64,b:255},e)+";"),n.push("}"),n.push("table {"),n.push(" border-color: "+Je({r:128,g:128,b:128},e)+";"),n.push("}"),n.push("::placeholder {"),n.push(" color: "+pe({r:169,g:169,b:169},e)+";"),n.push("}"),n.push("input:-webkit-autofill,"),n.push("textarea:-webkit-autofill,"),n.push("select:-webkit-autofill {"),n.push(" background-color: "+z({r:250,g:255,b:189},e)+" !important;"),n.push(" color: "+pe({r:0,g:0,b:0},e)+" !important;"),n.push("}"),e.scrollbarColor&&n.push($a(e)),e.selectionColor&&n.push(Ja(e)),n.join(`
|
|
11
11
|
`)}function $t(e){var r,t;if(e.selectionColor==="auto")r=z({r:0,g:96,b:212},T(T({},e),{grayscale:0})),t=pe({r:255,g:255,b:255},T(T({},e),{grayscale:0}));else{var n=Me(e.selectionColor),i=wr(n);r=e.selectionColor,i.l<.5?t="#FFF":t="#000"}return{backgroundColorSelection:r,foregroundColorSelection:t}}function Ja(e){var r=[],t=$t(e),n=t.backgroundColorSelection,i=t.foregroundColorSelection;return["::selection","::-moz-selection"].forEach(function(a){r.push(a+" {"),r.push(" background-color: "+n+" !important;"),r.push(" color: "+i+" !important;"),r.push("}")}),r.join(`
|
|
12
12
|
`)}function $a(e){var r=[],t,n,i,a,o,s;if(e.scrollbarColor==="auto")t=z({r:241,g:241,b:241},e),n=pe({r:96,g:96,b:96},e),i=z({r:176,g:176,b:176},e),a=z({r:144,g:144,b:144},e),o=z({r:96,g:96,b:96},e),s=z({r:255,g:255,b:255},e);else{var c=Me(e.scrollbarColor),u=wr(c),l=u.l>.5,d=function(m){return T(T({},u),{l:we(u.l+m,0,1)})},p=function(m){return T(T({},u),{l:we(u.l-m,0,1)})};t=Xe(p(.4)),n=Xe(l?p(.4):d(.4)),i=Xe(u),a=Xe(d(.1)),o=Xe(d(.2))}return r.push("::-webkit-scrollbar {"),r.push(" background-color: "+t+";"),r.push(" color: "+n+";"),r.push("}"),r.push("::-webkit-scrollbar-thumb {"),r.push(" background-color: "+i+";"),r.push("}"),r.push("::-webkit-scrollbar-thumb:hover {"),r.push(" background-color: "+a+";"),r.push("}"),r.push("::-webkit-scrollbar-thumb:active {"),r.push(" background-color: "+o+";"),r.push("}"),r.push("::-webkit-scrollbar-corner {"),r.push(" background-color: "+s+";"),r.push("}"),dr&&(r.push("* {"),r.push(" scrollbar-color: "+i+" "+t+";"),r.push("}")),r.join(`
|
|
13
13
|
`)}function nt(e,r){var t=r.strict,n=[],i=location.hostname.endsWith("microsoft.com");return n.push("html, body, "+(t?"body :not(iframe)"+(i?':not(div[style^="position:absolute;top:0;left:-"]':""):"body > :not(iframe)")+" {"),n.push(" background-color: "+z({r:255,g:255,b:255},e)+" !important;"),n.push(" border-color: "+Je({r:64,g:64,b:64},e)+" !important;"),n.push(" color: "+pe({r:0,g:0,b:0},e)+" !important;"),n.push("}"),n.join(`
|
|
14
|
-
`)}var ei=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),_r=new Map;function en(e){if(e=e.trim(),_r.has(e))return _r.get(e);e.includes("calc(")&&(e=ka(e));var r=Me(e);return _r.set(e,r),r}function ke(e){try{return en(e)}catch(r){return null}}function ri(e,r){if(ei.has(r.toLowerCase()))return r;try{var t=en(r);return e.includes("background")?function(n){return z(t,n)}:e.includes("border")||e.includes("outline")?function(n){return Je(t,n)}:function(n){return pe(t,n)}}catch(n){return L("Color parse error",n),null}}var ti=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,Tr=new Map,ye=new Map;function ni(e,r){if(!e||r.length===0)return!1;if(r.some(function(o){return o==="*"}))return!0;for(var t=e.split(/,\s*/g),n=function(o){var s=r[o];if(t.some(function(c){return c===s}))return{value:!0}},i=0;i<r.length;i++){var a=n(i);if(typeof a=="object")return a.value}return!1}function rn(e,r,t,n){var i=this;try{var a=Fe(ti,e),o=Fe(Bt,e);if(o.length===0&&a.length===0)return e;var s=function(v){var f=0;return v.map(function(h){var g=e.indexOf(h,f);return f=g+h.length,{match:h,index:g}})},c=s(o).map(function(v){return T({type:"url"},v)}).concat(s(a).map(function(v){return T({type:"gradient"},v)})).sort(function(v,f){return v.index-f.index}),u=function(v){var f=v.match(/^(.*-gradient)\((.*)\)$/),h=f[1],g=f[2],b=/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,y=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,w=Fe(b,g,1).map(function(k){k=k.trim();var x=ke(k);if(x)return function(F){return Xr(x,F)};var _=k.lastIndexOf(" ");if(x=ke(k.substring(0,_)),x)return function(F){return Xr(x,F)+" "+k.substring(_+1)};var P=k.match(y);return P&&(x=ke(P[3]),x)?function(F){return P[1]+"("+(P[2]?P[2]+", ":"")+Xr(x,F)+")"}:function(){return k}});return function(k){return h+"("+w.map(function(x){return x(k)}).join(", ")+")"}},l=function(v){var f;if(ni(r.selectorText,t))return null;var h=zr(v),g=r.parentStyleSheet,b=g&&g.href?xr(g.href):((f=g.ownerNode)===null||f===void 0?void 0:f.baseURI)||location.origin;h=qr(b,h);var y='url("'+h+'")';return function(w){return U(i,void 0,void 0,function(){var k,x,_,P;return N(this,function(F){switch(F.label){case 0:return Tr.has(h)?(k=Tr.get(h),[3,7]):[3,1];case 1:return F.trys.push([1,6,,7]),ye.has(h)?(x=ye.get(h),[4,new Promise(function(Y){return x.push(Y)})]):[3,3];case 2:return k=F.sent(),k?[3,5]:[2,null];case 3:return ye.set(h,[]),[4,ja(h)];case 4:k=F.sent(),Tr.set(h,k),ye.get(h).forEach(function(Y){return Y(k)}),ye.delete(h),F.label=5;case 5:return n()?[2,null]:[3,7];case 6:return _=F.sent(),L(_),ye.has(h)&&(ye.get(h).forEach(function(Y){return Y(null)}),ye.delete(h)),[2,y];case 7:return P=d(k,w)||y,[2,P]}})})}},d=function(v,f){var h=v.isDark,g=v.isLight,b=v.isTransparent,y=v.isLarge,w=v.isTooLarge,k=v.width,x;if(w)x='url("'+v.src+'")';else if(h&&b&&f.mode===1&&!y&&k>2){j("Inverting dark image "+v.src);var _=tt(v,T(T({},f),{sepia:we(f.sepia+10,0,100)}));x='url("'+_+'")'}else if(g&&!b&&f.mode===1)if(y)x="none";else{j("Dimming light image "+v.src);var P=tt(v,f);x='url("'+P+'")'}else if(f.mode===0&&g&&!y){j("Applying filter to image "+v.src);var F=tt(v,T(T({},f),{brightness:we(f.brightness-10,5,200),sepia:we(f.sepia+10,0,100)}));x='url("'+F+'")'}else x=null;return x},p=[],m=0;return c.forEach(function(v,f){var h=v.match,g=v.type,b=v.index,y=m,w=b+h.length;m=w,p.push(function(){return e.substring(y,b)}),p.push(g==="url"?l(h):u(h)),f===c.length-1&&p.push(function(){return e.substring(w)})}),function(v){var f=p.filter(Boolean).map(function(h){return h(v)});return f.some(function(h){return h instanceof Promise})?Promise.all(f).then(function(h){return h.join("")}):f.join("")}}catch(v){return L("Unable to parse gradient "+e,v),null}}function tn(e){try{var r=0,t=Fe(/(^|\s)(?!calc)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/ig,e,2),n=0,i=t.map(function(a,o){var s=r,c=e.indexOf(a,r),u=c+a.length;r=u;var l=ke(a);return l?function(d){return""+e.substring(s,c)+Fa(l,d)+(o===t.length-1?e.substring(u):"")}:(n++,function(){return e.substring(s,u)})});return function(a){var o=i.map(function(s){return s(a)}).join("");return{matchesLength:t.length,unparseableMatchesLength:n,result:o}}}catch(a){return L("Unable to parse shadow "+e,a),null}}function ai(e){var r=tn(e);return r?function(t){return r(t).result}:null}function ii(e,r,t,n,i,a){return e.getModifierForVariable({varName:r,sourceValue:t,rule:n,ignoredImgSelectors:i,isCancelled:a})}function oi(e,r,t){return e.getModifierForVarDependant(r,t)}function si(){_r.clear(),Ta(),Tr.clear(),Xa(),ye.clear()}var de=1<<0,He=1<<1,We=1<<2,er=1<<3,ui=function(){function e(){this.varTypes=new Map,this.rulesQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return e.prototype.clear=function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()},e.prototype.isVarType=function(r,t){return this.varTypes.has(r)&&(this.varTypes.get(r)&t)>0},e.prototype.addRulesForMatching=function(r){this.rulesQueue.push(r)},e.prototype.matchVariablesAndDependants=function(){var r=this;this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.collectVariablesAndVarDep(this.rulesQueue),this.rulesQueue.splice(0),this.collectRootVarDependants(),this.varRefs.forEach(function(t,n){t.forEach(function(i){r.varTypes.has(n)&&r.resolveVariableType(i,r.varTypes.get(n))})}),this.unknownColorVars.forEach(function(t){r.unknownBgVars.has(t)?(r.unknownColorVars.delete(t),r.unknownBgVars.delete(t),r.resolveVariableType(t,de)):r.isVarType(t,de|He|We)?r.unknownColorVars.delete(t):r.undefinedVars.add(t)}),this.unknownBgVars.forEach(function(t){var n=r.findVarRef(t,function(i){return r.unknownColorVars.has(i)||r.isVarType(i,He|We)})!=null;n?r.itarateVarRefs(t,function(i){r.resolveVariableType(i,de)}):r.isVarType(t,de|er)?r.unknownBgVars.delete(t):r.undefinedVars.add(t)}),this.changedTypeVars.forEach(function(t){r.typeChangeSubscriptions.has(t)&&r.typeChangeSubscriptions.get(t).forEach(function(n){n()})}),this.changedTypeVars.clear()},e.prototype.getModifierForVariable=function(r){var t=this;return function(n){var i=r.varName,a=r.sourceValue,o=r.rule,s=r.ignoredImgSelectors,c=r.isCancelled,u=function(){var m=[],v=function(b,y,w){if(t.isVarType(i,b)){var k=y(i),x;if(Ae(a))if(sn(a)){var _=st(a,t.unstableVarValues);_||(_=b===de?"#ffffff":"#000000"),x=w(_,n)}else x=Ee(a,function(P){return y(P)},function(P){return w(P,n)});else x=w(a,n);m.push({property:k,value:x})}};if(v(de,rr,je),v(He,at,Mr),v(We,it,Ar),t.isVarType(i,er)){var f=on(i),h=a;Ae(a)&&(h=Ee(a,function(b){return rr(b)},function(b){return je(b,n)}));var g=rn(h,o,s,c);h=typeof g=="function"?g(n):g,m.push({property:f,value:h})}return m},l=new Set,d=function(m){var v=function(){var f=u();m(f)};l.add(v),t.subscribeForVarTypeChange(i,v)},p=function(){l.forEach(function(m){t.unsubscribeFromVariableTypeChanges(i,m)})};return{declarations:u(),onTypeChange:{addListener:d,removeListeners:p}}}},e.prototype.getModifierForVarDependant=function(r,t){var n=this;if(t.match(/^\s*(rgb|hsl)a?\(/)){var i=r.startsWith("background"),a=r==="color"||r==="caret-color";return function(o){var s=st(t,n.unstableVarValues);s||(s=i?"#ffffff":"#000000");var c=i?je:a?Mr:Ar;return c(s,o)}}return r==="background-color"?function(o){return Ee(t,function(s){return rr(s)},function(s){return je(s,o)})}:r==="color"||r==="caret-color"?function(o){return Ee(t,function(s){return at(s)},function(s){return Mr(s,o)})}:r==="background"||r==="background-image"||r==="box-shadow"?function(o){var s=new Set,c=function(){var l=Ee(t,function(m){return n.isVarType(m,de)?rr(m):n.isVarType(m,er)?on(m):(s.add(m),m)},function(m){return je(m,o)});if(r==="box-shadow"){var d=tn(l),p=d(o);if(p.unparseableMatchesLength!==p.matchesLength)return p.result}return l},u=c();return s.size>0?new Promise(function(l){var d=s.values().next().value,p=function(){n.unsubscribeFromVariableTypeChanges(d,p);var m=c();l(m)};n.subscribeForVarTypeChange(d,p)}):u}:r.startsWith("border")||r.startsWith("outline")?function(o){return Ee(t,function(s){return it(s)},function(s){return Ar(s,o)})}:null},e.prototype.subscribeForVarTypeChange=function(r,t){this.typeChangeSubscriptions.has(r)||this.typeChangeSubscriptions.set(r,new Set);var n=this.typeChangeSubscriptions.get(r);n.has(t)||n.add(t)},e.prototype.unsubscribeFromVariableTypeChanges=function(r,t){this.typeChangeSubscriptions.has(r)&&this.typeChangeSubscriptions.get(r).delete(t)},e.prototype.collectVariablesAndVarDep=function(r){var t=this;r.forEach(function(n){Ye(n,function(i){i.style&&Ie(i.style,function(a,o){Rr(a)&&t.inspectVariable(a,o),Ae(o)&&t.inspectVarDependant(a,o)})})})},e.prototype.collectRootVariables=function(){var r=this;Ie(document.documentElement.style,function(t,n){Rr(t)&&r.inspectVariable(t,n)})},e.prototype.inspectVariable=function(r,t){if(this.unstableVarValues.set(r,t),Ae(t)&&sn(t)&&(this.unknownColorVars.add(r),this.definedVars.add(r)),!this.definedVars.has(r)){this.definedVars.add(r);var n=ke(t);n?this.unknownColorVars.add(r):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(r,er)}},e.prototype.resolveVariableType=function(r,t){var n=this.initialVarTypes.get(r)||0,i=this.varTypes.get(r)||0,a=i|t;this.varTypes.set(r,a),(a!==n||this.undefinedVars.has(r))&&(this.changedTypeVars.add(r),this.undefinedVars.delete(r)),this.unknownColorVars.delete(r),this.unknownBgVars.delete(r)},e.prototype.collectRootVarDependants=function(){var r=this;Ie(document.documentElement.style,function(t,n){Ae(n)&&r.inspectVarDependant(t,n)})},e.prototype.inspectVarDependant=function(r,t){var n=this;Rr(r)?this.iterateVarDeps(t,function(i){n.varRefs.has(r)||n.varRefs.set(r,new Set),n.varRefs.get(r).add(i)}):r==="background-color"||r==="box-shadow"?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,de)}):r==="color"||r==="caret-color"?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,He)}):r.startsWith("border")||r.startsWith("outline")?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,We)}):(r==="background"||r==="background-image")&&this.iterateVarDeps(t,function(i){if(!n.isVarType(i,de|er)){var a=n.findVarRef(i,function(o){return n.unknownColorVars.has(o)||n.isVarType(o,He|We)})!=null;n.itarateVarRefs(i,function(o){a?n.resolveVariableType(o,de):n.unknownBgVars.add(o)})}})},e.prototype.iterateVarDeps=function(r,t){var n=new Set;fi(r,function(i){return n.add(i)}),n.forEach(function(i){return t(i)})},e.prototype.findVarRef=function(r,t,n){var i,a;if(n===void 0&&(n=new Set),n.has(r))return null;n.add(r);var o=t(r);if(o)return r;var s=this.varRefs.get(r);if(!s||s.size===0)return null;try{for(var c=fr(s),u=c.next();!u.done;u=c.next()){var l=u.value,d=this.findVarRef(l,t,n);if(d)return d}}catch(p){i={error:p}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return null},e.prototype.itarateVarRefs=function(r,t){this.findVarRef(r,function(n){return t(n),!1})},e.prototype.setOnRootVariableChange=function(r){this.onRootVariableDefined=r},e.prototype.putRootVars=function(r,t){var n,i,a=this,o=r.sheet;o.cssRules.length>0&&o.deleteRule(0);var s=new Map;Ie(document.documentElement.style,function(f,h){Rr(f)&&(a.isVarType(f,de)&&s.set(rr(f),je(h,t)),a.isVarType(f,He)&&s.set(at(f),Mr(h,t)),a.isVarType(f,We)&&s.set(it(f),Ar(h,t)),a.subscribeForVarTypeChange(f,a.onRootVariableDefined))});var c=[];c.push(":root {");try{for(var u=fr(s),l=u.next();!l.done;l=u.next()){var d=V(l.value,2),p=d[0],m=d[1];c.push(" "+p+": "+m+";")}}catch(f){n={error:f}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}c.push("}");var v=c.join(`
|
|
14
|
+
`)}var ei=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),_r=new Map;function en(e){if(e=e.trim(),_r.has(e))return _r.get(e);e.includes("calc(")&&(e=ka(e));var r=Me(e);return _r.set(e,r),r}function ke(e){try{return en(e)}catch(r){return null}}function ri(e,r){if(ei.has(r.toLowerCase()))return r;try{var t=en(r);return e.includes("background")?function(n){return z(t,n)}:e.includes("border")||e.includes("outline")?function(n){return Je(t,n)}:function(n){return pe(t,n)}}catch(n){return L("Color parse error",n),null}}var ti=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,Tr=new Map,ye=new Map;function ni(e,r){if(!e||r.length===0)return!1;if(r.some(function(o){return o==="*"}))return!0;for(var t=e.split(/,\s*/g),n=function(o){var s=r[o];if(t.some(function(c){return c===s}))return{value:!0}},i=0;i<r.length;i++){var a=n(i);if(typeof a=="object")return a.value}return!1}function rn(e,r,t,n){var i=this;try{var a=Fe(ti,e),o=Fe(Bt,e);if(o.length===0&&a.length===0)return e;var s=function(v){var f=0;return v.map(function(h){var g=e.indexOf(h,f);return f=g+h.length,{match:h,index:g}})},c=s(o).map(function(v){return T({type:"url"},v)}).concat(s(a).map(function(v){return T({type:"gradient"},v)})).sort(function(v,f){return v.index-f.index}),u=function(v){var f=v.match(/^(.*-gradient)\((.*)\)$/),h=f[1],g=f[2],b=/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,y=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,w=Fe(b,g,1).map(function(k){k=k.trim();var x=ke(k);if(x)return function(F){return Xr(x,F)};var _=k.lastIndexOf(" ");if(x=ke(k.substring(0,_)),x)return function(F){return Xr(x,F)+" "+k.substring(_+1)};var P=k.match(y);return P&&(x=ke(P[3]),x)?function(F){return P[1]+"("+(P[2]?P[2]+", ":"")+Xr(x,F)+")"}:function(){return k}});return function(k){return h+"("+w.map(function(x){return x(k)}).join(", ")+")"}},l=function(v){var f;if(ni(r.selectorText,t))return null;var h=zr(v),g=r.parentStyleSheet,b=g&&g.href?xr(g.href):((f=g.ownerNode)===null||f===void 0?void 0:f.baseURI)||location.origin;h=qr(b,h);var y='url("'+h+'")';return function(w){return U(i,void 0,void 0,function(){var k,x,_,P;return N(this,function(F){switch(F.label){case 0:return Tr.has(h)?(k=Tr.get(h),[3,7]):[3,1];case 1:return F.trys.push([1,6,,7]),ye.has(h)?(x=ye.get(h),[4,new Promise(function(Y){return x.push(Y)})]):[3,3];case 2:return k=F.sent(),k?[3,5]:[2,null];case 3:return ye.set(h,[]),[4,ja(h)];case 4:k=F.sent(),Tr.set(h,k),ye.get(h).forEach(function(Y){return Y(k)}),ye.delete(h),F.label=5;case 5:return n()?[2,null]:[3,7];case 6:return _=F.sent(),L(_),ye.has(h)&&(ye.get(h).forEach(function(Y){return Y(null)}),ye.delete(h)),[2,y];case 7:return P=d(k,w)||y,[2,P]}})})}},d=function(v,f){var h=v.isDark,g=v.isLight,b=v.isTransparent,y=v.isLarge,w=v.isTooLarge,k=v.width,x;if(w)x='url("'+v.src+'")';else if(h&&b&&f.mode===1&&!y&&k>2){j("Inverting dark image "+v.src);var _=tt(v,T(T({},f),{sepia:we(f.sepia+10,0,100)}));x='url("'+_+'")'}else if(g&&!b&&f.mode===1)if(y)x="none";else{j("Dimming light image "+v.src);var P=tt(v,f);x='url("'+P+'")'}else if(f.mode===0&&g&&!y){j("Applying filter to image "+v.src);var F=tt(v,T(T({},f),{brightness:we(f.brightness-10,5,200),sepia:we(f.sepia+10,0,100)}));x='url("'+F+'")'}else x=null;return x},p=[],m=0;return c.forEach(function(v,f){var h=v.match,g=v.type,b=v.index,y=m,w=b+h.length;m=w,p.push(function(){return e.substring(y,b)}),p.push(g==="url"?l(h):u(h)),f===c.length-1&&p.push(function(){return e.substring(w)})}),function(v){var f=p.filter(Boolean).map(function(h){return h(v)});return f.some(function(h){return h instanceof Promise})?Promise.all(f).then(function(h){return h.join("")}):f.join("")}}catch(v){return L("Unable to parse gradient "+e,v),null}}function tn(e){try{var r=0,t=Fe(/(^|\s)(?!calc)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/ig,e,2),n=0,i=t.map(function(a,o){var s=r,c=e.indexOf(a,r),u=c+a.length;r=u;var l=ke(a);return l?function(d){return""+e.substring(s,c)+Fa(l,d)+(o===t.length-1?e.substring(u):"")}:(n++,function(){return e.substring(s,u)})});return function(a){var o=i.map(function(s){return s(a)}).join("");return{matchesLength:t.length,unparseableMatchesLength:n,result:o}}}catch(a){return L("Unable to parse shadow "+e,a),null}}function ai(e){var r=tn(e);return r?function(t){return r(t).result}:null}function ii(e,r,t,n,i,a){return e.getModifierForVariable({varName:r,sourceValue:t,rule:n,ignoredImgSelectors:i,isCancelled:a})}function oi(e,r,t){return e.getModifierForVarDependant(r,t)}function si(){_r.clear(),Ta(),Tr.clear(),Xa(),ye.clear()}var de=1,He=2,We=4,er=8,ui=function(){function e(){this.varTypes=new Map,this.rulesQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return e.prototype.clear=function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()},e.prototype.isVarType=function(r,t){return this.varTypes.has(r)&&(this.varTypes.get(r)&t)>0},e.prototype.addRulesForMatching=function(r){this.rulesQueue.push(r)},e.prototype.matchVariablesAndDependants=function(){var r=this;this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.collectVariablesAndVarDep(this.rulesQueue),this.rulesQueue.splice(0),this.collectRootVarDependants(),this.varRefs.forEach(function(t,n){t.forEach(function(i){r.varTypes.has(n)&&r.resolveVariableType(i,r.varTypes.get(n))})}),this.unknownColorVars.forEach(function(t){r.unknownBgVars.has(t)?(r.unknownColorVars.delete(t),r.unknownBgVars.delete(t),r.resolveVariableType(t,de)):r.isVarType(t,de|He|We)?r.unknownColorVars.delete(t):r.undefinedVars.add(t)}),this.unknownBgVars.forEach(function(t){var n=r.findVarRef(t,function(i){return r.unknownColorVars.has(i)||r.isVarType(i,He|We)})!=null;n?r.itarateVarRefs(t,function(i){r.resolveVariableType(i,de)}):r.isVarType(t,de|er)?r.unknownBgVars.delete(t):r.undefinedVars.add(t)}),this.changedTypeVars.forEach(function(t){r.typeChangeSubscriptions.has(t)&&r.typeChangeSubscriptions.get(t).forEach(function(n){n()})}),this.changedTypeVars.clear()},e.prototype.getModifierForVariable=function(r){var t=this;return function(n){var i=r.varName,a=r.sourceValue,o=r.rule,s=r.ignoredImgSelectors,c=r.isCancelled,u=function(){var m=[],v=function(b,y,w){if(t.isVarType(i,b)){var k=y(i),x;if(Ae(a))if(sn(a)){var _=st(a,t.unstableVarValues);_||(_=b===de?"#ffffff":"#000000"),x=w(_,n)}else x=Ee(a,function(P){return y(P)},function(P){return w(P,n)});else x=w(a,n);m.push({property:k,value:x})}};if(v(de,rr,je),v(He,at,Mr),v(We,it,Ar),t.isVarType(i,er)){var f=on(i),h=a;Ae(a)&&(h=Ee(a,function(b){return rr(b)},function(b){return je(b,n)}));var g=rn(h,o,s,c);h=typeof g=="function"?g(n):g,m.push({property:f,value:h})}return m},l=new Set,d=function(m){var v=function(){var f=u();m(f)};l.add(v),t.subscribeForVarTypeChange(i,v)},p=function(){l.forEach(function(m){t.unsubscribeFromVariableTypeChanges(i,m)})};return{declarations:u(),onTypeChange:{addListener:d,removeListeners:p}}}},e.prototype.getModifierForVarDependant=function(r,t){var n=this;if(t.match(/^\s*(rgb|hsl)a?\(/)){var i=r.startsWith("background"),a=r==="color"||r==="caret-color";return function(o){var s=st(t,n.unstableVarValues);s||(s=i?"#ffffff":"#000000");var c=i?je:a?Mr:Ar;return c(s,o)}}return r==="background-color"?function(o){return Ee(t,function(s){return rr(s)},function(s){return je(s,o)})}:r==="color"||r==="caret-color"?function(o){return Ee(t,function(s){return at(s)},function(s){return Mr(s,o)})}:r==="background"||r==="background-image"||r==="box-shadow"?function(o){var s=new Set,c=function(){var l=Ee(t,function(m){return n.isVarType(m,de)?rr(m):n.isVarType(m,er)?on(m):(s.add(m),m)},function(m){return je(m,o)});if(r==="box-shadow"){var d=tn(l),p=d(o);if(p.unparseableMatchesLength!==p.matchesLength)return p.result}return l},u=c();return s.size>0?new Promise(function(l){var d=s.values().next().value,p=function(){n.unsubscribeFromVariableTypeChanges(d,p);var m=c();l(m)};n.subscribeForVarTypeChange(d,p)}):u}:r.startsWith("border")||r.startsWith("outline")?function(o){return Ee(t,function(s){return it(s)},function(s){return Ar(s,o)})}:null},e.prototype.subscribeForVarTypeChange=function(r,t){this.typeChangeSubscriptions.has(r)||this.typeChangeSubscriptions.set(r,new Set);var n=this.typeChangeSubscriptions.get(r);n.has(t)||n.add(t)},e.prototype.unsubscribeFromVariableTypeChanges=function(r,t){this.typeChangeSubscriptions.has(r)&&this.typeChangeSubscriptions.get(r).delete(t)},e.prototype.collectVariablesAndVarDep=function(r){var t=this;r.forEach(function(n){Ye(n,function(i){i.style&&Ie(i.style,function(a,o){Rr(a)&&t.inspectVariable(a,o),Ae(o)&&t.inspectVarDependant(a,o)})})})},e.prototype.collectRootVariables=function(){var r=this;Ie(document.documentElement.style,function(t,n){Rr(t)&&r.inspectVariable(t,n)})},e.prototype.inspectVariable=function(r,t){if(this.unstableVarValues.set(r,t),Ae(t)&&sn(t)&&(this.unknownColorVars.add(r),this.definedVars.add(r)),!this.definedVars.has(r)){this.definedVars.add(r);var n=ke(t);n?this.unknownColorVars.add(r):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(r,er)}},e.prototype.resolveVariableType=function(r,t){var n=this.initialVarTypes.get(r)||0,i=this.varTypes.get(r)||0,a=i|t;this.varTypes.set(r,a),(a!==n||this.undefinedVars.has(r))&&(this.changedTypeVars.add(r),this.undefinedVars.delete(r)),this.unknownColorVars.delete(r),this.unknownBgVars.delete(r)},e.prototype.collectRootVarDependants=function(){var r=this;Ie(document.documentElement.style,function(t,n){Ae(n)&&r.inspectVarDependant(t,n)})},e.prototype.inspectVarDependant=function(r,t){var n=this;Rr(r)?this.iterateVarDeps(t,function(i){n.varRefs.has(r)||n.varRefs.set(r,new Set),n.varRefs.get(r).add(i)}):r==="background-color"||r==="box-shadow"?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,de)}):r==="color"||r==="caret-color"?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,He)}):r.startsWith("border")||r.startsWith("outline")?this.iterateVarDeps(t,function(i){return n.resolveVariableType(i,We)}):(r==="background"||r==="background-image")&&this.iterateVarDeps(t,function(i){if(!n.isVarType(i,de|er)){var a=n.findVarRef(i,function(o){return n.unknownColorVars.has(o)||n.isVarType(o,He|We)})!=null;n.itarateVarRefs(i,function(o){a?n.resolveVariableType(o,de):n.unknownBgVars.add(o)})}})},e.prototype.iterateVarDeps=function(r,t){var n=new Set;fi(r,function(i){return n.add(i)}),n.forEach(function(i){return t(i)})},e.prototype.findVarRef=function(r,t,n){var i,a;if(n===void 0&&(n=new Set),n.has(r))return null;n.add(r);var o=t(r);if(o)return r;var s=this.varRefs.get(r);if(!s||s.size===0)return null;try{for(var c=fr(s),u=c.next();!u.done;u=c.next()){var l=u.value,d=this.findVarRef(l,t,n);if(d)return d}}catch(p){i={error:p}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return null},e.prototype.itarateVarRefs=function(r,t){this.findVarRef(r,function(n){return t(n),!1})},e.prototype.setOnRootVariableChange=function(r){this.onRootVariableDefined=r},e.prototype.putRootVars=function(r,t){var n,i,a=this,o=r.sheet;o.cssRules.length>0&&o.deleteRule(0);var s=new Map;Ie(document.documentElement.style,function(f,h){Rr(f)&&(a.isVarType(f,de)&&s.set(rr(f),je(h,t)),a.isVarType(f,He)&&s.set(at(f),Mr(h,t)),a.isVarType(f,We)&&s.set(it(f),Ar(h,t)),a.subscribeForVarTypeChange(f,a.onRootVariableDefined))});var c=[];c.push(":root {");try{for(var u=fr(s),l=u.next();!l.done;l=u.next()){var d=V(l.value,2),p=d[0],m=d[1];c.push(" "+p+": "+m+";")}}catch(f){n={error:f}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}c.push("}");var v=c.join(`
|
|
15
15
|
`);o.insertRule(v)},e}(),$=new ui;function ci(e,r){r===void 0&&(r=0);var t=e.indexOf("var(",r);if(t>=0){var n=Ca(e,t+3);return n?{start:t,end:n.end}:null}}function li(e){for(var r=[],t=0,n;n=ci(e,t);){var i=n.start,a=n.end;r.push({start:i,end:a,value:e.substring(i,a)}),t=n.end+1}return r}function nn(e,r){var t=li(e),n=t.length;if(n===0)return e;var i=e.length,a=t.map(function(l){return r(l.value)}),o=[];o.push(e.substring(0,t[0].start));for(var s=0;s<n;s++){o.push(a[s]);var c=t[s].end,u=s<n-1?t[s+1].start:i;o.push(e.substring(c,u))}return o.join("")}function an(e){var r=e.indexOf(","),t,n;return r>=0?(t=e.substring(4,r).trim(),n=e.substring(r+1,e.length-1).trim()):(t=e.substring(4,e.length-1).trim(),n=""),{name:t,fallback:n}}function Ee(e,r,t){var n=function(i){var a=an(i),o=a.name,s=a.fallback,c=r(o);if(!s)return"var("+c+")";var u;return Ae(s)?u=Ee(s,r,t):t?u=t(s):u=s,"var("+c+", "+u+")"};return nn(e,n)}function fi(e,r){Ee(e,function(t){return r(t),t})}function rr(e){return"--darkreader-bg"+e}function at(e){return"--darkreader-text"+e}function it(e){return"--darkreader-border"+e}function on(e){return"--darkreader-bgimg"+e}function Rr(e){return e.startsWith("--")}function Ae(e){return e.includes("var(")}function sn(e){return e.match(/^\s*(rgb|hsl)a?\(/)}var di=/^\d{1,3}, ?\d{1,3}, ?\d{1,3}$/;function hi(e){if(di.test(e)){var r=e.split(","),t="rgb(";return r.forEach(function(n){t+=n.trim()+", "}),t=t.substr(0,t.length-2),t+=")",{isRaw:!0,color:t}}return{isRaw:!1,color:e}}function ot(e,r,t){var n=hi(e),i=n.isRaw,a=n.color,o=ke(a);if(o){var s=t(o,r);if(i){var c=ke(s);return c?c.r+", "+c.g+", "+c.b:s}return s}return a}function je(e,r){return ot(e,r,z)}function Mr(e,r){return ot(e,r,pe)}function Ar(e,r){return ot(e,r,Je)}function st(e,r,t){t===void 0&&(t=new Set);var n=!1,i=function(o){var s=an(o),c=s.name,u=s.fallback;if(t.has(c))return n=!0,null;t.add(c);var l=r.get(c)||u,d=null;return l&&(Ae(l)?d=st(l,r,t):d=l),d||(n=!0,null)},a=nn(e,i);return n?null:a}var Ge={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor"},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage"},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border"},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom"},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left"},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right"},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top"},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow"},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color"},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill"},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke"},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline"},"stop-color":{customProp:"--darkreader-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkreader-inline-stopcolor"}},ut=Object.values(Ge),un={};ut.forEach(function(e){var r=e.cssProp,t=e.customProp;return un[t]=r});var Lr=["style","fill","stop-color","stroke","bgcolor","color"],tr=Lr.map(function(e){return"["+e+"]"}).join(", ");function cn(){return ut.map(function(e){var r=e.dataAttr,t=e.customProp,n=e.cssProp;return["["+r+"] {"," "+n+": var("+t+") !important;","}"].join(`
|
|
16
16
|
`)}).join(`
|
|
17
17
|
`)}function vi(e){var r=[];return e instanceof Element&&e.matches(tr)&&r.push(e),(e instanceof Element||Ct&&e instanceof ShadowRoot||e instanceof Document)&&Hr(r,e.querySelectorAll(tr)),r}var nr=new Map,Vr=new Map;function gi(e,r){ct(document,e,r),be(document.documentElement,function(t){ct(t.shadowRoot,e,r)})}function ct(e,r,t){nr.has(e)&&(nr.get(e).disconnect(),Vr.get(e).disconnect());var n=new WeakSet;function i(f){vi(f).forEach(function(h){n.has(h)||(n.add(h),r(h))}),be(f,function(h){n.has(f)||(n.add(f),t(h.shadowRoot),ct(h.shadowRoot,r,t))})}var a=Ft(e,{onMinorMutations:function(f){var h=f.additions;h.forEach(function(g){return i(g)})},onHugeMutations:function(){i(e)}});nr.set(e,a);var o=0,s=null,c=gr({seconds:10}),u=gr({seconds:2}),l=50,d=[],p=null,m=Wr(function(f){f.forEach(function(h){Lr.includes(h.attributeName)&&r(h.target)})}),v=new MutationObserver(function(f){if(p){d.push.apply(d,ge([],V(f),!1));return}o++;var h=Date.now();if(s==null)s=h;else if(o>=l){if(h-s<c){p=setTimeout(function(){s=null,o=0,p=null;var g=d;d=[],m(g)},u),d.push.apply(d,ge([],V(f),!1));return}s=h,o=1}m(f)});v.observe(e,{attributes:!0,attributeFilter:Lr.concat(ut.map(function(f){var h=f.dataAttr;return h})),subtree:!0}),Vr.set(e,v)}function pi(){nr.forEach(function(e){return e.disconnect()}),Vr.forEach(function(e){return e.disconnect()}),nr.clear(),Vr.clear()}var ln=new WeakMap,mi=["brightness","contrast","grayscale","sepia","mode"];function fn(e,r){return Lr.map(function(t){return t+'="'+e.getAttribute(t)+'"'}).concat(mi.map(function(t){return t+'="'+r[t]+'"'})).join(" ")}function bi(e,r){for(var t=0,n=r.length;t<n;t++){var i=r[t];if(e.matches(i))return!0}return!1}function lt(e,r,t,n){var i=fn(e,r);if(i===ln.get(e))return;var a=new Set(Object.keys(Ge));function o(d,p,m){var v=Ge[d],f=v.customProp,h=v.dataAttr,g=Jt(p,m,{},$,n,null);if(g){var b=g.value;typeof b=="function"&&(b=b(r)),e.style.setProperty(f,b),e.hasAttribute(h)||e.setAttribute(h,""),a.delete(d)}}if(t.length>0&&bi(e,t)){a.forEach(function(d){e.removeAttribute(Ge[d].dataAttr)});return}if(e.hasAttribute("bgcolor")){var s=e.getAttribute("bgcolor");(s.match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#"+s),o("background-color","background-color",s)}if(e.hasAttribute("color")&&e.rel!=="mask-icon"){var s=e.getAttribute("color");(s.match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#"+s),o("color","color",s)}if(e instanceof SVGElement){if(e.hasAttribute("fill")){var c=32,u=e.getAttribute("fill");if(u!=="none")if(e instanceof SVGTextElement)o("fill","color",u);else{var l=function(){var d=e.getBoundingClientRect(),p=d.width,m=d.height,v=p>c||m>c;o("fill",v?"background-color":"color",u)};Ot()?l():Dt(l)}}e.hasAttribute("stop-color")&&o("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){var s=e.getAttribute("stroke");o("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",s)}e.style&&Ie(e.style,function(d,p){if(!(d==="background-image"&&p.includes("url")))if(Ge.hasOwnProperty(d))o(d,d,p);else{var m=un[d];if(m&&!e.style.getPropertyValue(m)&&!e.hasAttribute(m)){if(m==="background-color"&&e.hasAttribute("bgcolor"))return;e.style.setProperty(d,"")}}}),e.style&&e instanceof SVGTextElement&&e.style.fill&&o("fill","color",e.style.getPropertyValue("fill")),ne(a,function(d){e.removeAttribute(Ge[d].dataAttr)}),ln.set(e,fn(e,r))}var dn="theme-color",hn='meta[name="'+dn+'"]',ar=null,Se=null;function vn(e,r){ar=ar||e.content;try{var t=Me(ar);e.content=z(t,r)}catch(n){L(n)}}function yi(e){var r=document.querySelector(hn);r?vn(r,e):(Se&&Se.disconnect(),Se=new MutationObserver(function(t){e:for(var n=0;n<t.length;n++)for(var i=t[n].addedNodes,a=0;a<i.length;a++){var o=i[a];if(o instanceof HTMLMetaElement&&o.name===dn){Se.disconnect(),Se=null,vn(o,e);break e}}}),Se.observe(document.head,{childList:!0}))}function Si(){Se&&(Se.disconnect(),Se=null);var e=document.querySelector(hn);e&&ar&&(e.content=ar)}var xi=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function wi(e){return xi.map(function(r){return r+":"+e[r]}).join(";")}var ki=Yn();function gn(){var e=0,r=new Set,t=new Map,n=new Set,i=null,a=!1,o=!1;function s(){return a&&!o}function c(u){var l=u.sourceCSSRules,d=u.theme,p=u.ignoreImageAnalysis,m=u.force,v=u.prepareSheet,f=u.isAsyncCancelled,h=t.size===0,g=new Set(t.keys()),b=wi(d),y=b!==i;a&&(o=!0);var w=[];if(Ye(l,function(C){var R=C.cssText,D=!1;if(g.delete(R),C.parentRule instanceof CSSMediaRule&&(R+=";"+C.parentRule.media.mediaText),r.has(R)||(r.add(R),D=!0),D)h=!0;else{w.push(t.get(R));return}var M=[];C.style&&Ie(C.style,function(O,ve){var ae=Jt(O,ve,C,$,p,f);ae&&M.push(ae)});var A=null;if(M.length>0){var B=C.parentRule;A={selector:C.selectorText,declarations:M,parentRule:B},w.push(A)}t.set(R,A)},function(){a=!0}),g.forEach(function(C){r.delete(C),t.delete(C)}),i=b,!m&&!h&&!y)return;e++;function k(C,R,D){var M=D.selector,A=D.declarations,B=function(ae){var ce=ae.property,X=ae.value,ee=ae.important,K=ae.sourceValue;return ce+": "+(X==null?K:X)+(ee?" !important":"")+";"},O="";A.forEach(function(ae){O+=B(ae)+" "});var ve=M+" { "+O+" }";C.insertRule(ve,R)}var x=new Map,_=new Map,P=0,F=0,Y={rule:null,rules:[],isGroup:!0},Oe=new WeakMap;function _e(C){if(C==null)return Y;if(Oe.has(C))return Oe.get(C);var R={rule:C,rules:[],isGroup:!0};Oe.set(C,R);var D=_e(C.parentRule);return D.rules.push(R),R}n.forEach(function(C){return C()}),n.clear(),w.filter(function(C){return C}).forEach(function(C){var R=C.selector,D=C.declarations,M=C.parentRule,A=_e(M),B={selector:R,declarations:[],isGroup:!1},O=B.declarations;A.rules.push(B);function ve(ce,X,ee,K){var le=++P,ie={property:ce,value:null,important:ee,asyncKey:le,sourceValue:K};O.push(ie);var De=e;X.then(function(S){!S||f()||De!==e||(ie.value=S,ki.add(function(){f()||De!==e||St(le)}))})}function ae(ce,X,ee,K){var le=X,ie=le.declarations,De=le.onTypeChange,S=++F,re=e,H=O.length,W=[];if(ie.length===0){var G={property:ce,value:K,important:ee,sourceValue:K,varKey:S};O.push(G),W=[G]}ie.forEach(function(Z){if(Z.value instanceof Promise)ve(Z.property,Z.value,ee,K);else{var q={property:Z.property,value:Z.value,important:ee,sourceValue:K,varKey:S};O.push(q),W.push(q)}}),De.addListener(function(Z){if(!(f()||re!==e)){var q=Z.map(function(Re){return{property:Re.property,value:Re.value,important:ee,sourceValue:K,varKey:S}}),Te=O.indexOf(W[0],H);O.splice.apply(O,ge([Te,W.length],V(q),!1)),W=q,lr(S)}}),n.add(function(){return De.removeListeners()})}D.forEach(function(ce){var X=ce.property,ee=ce.value,K=ce.important,le=ce.sourceValue;if(typeof ee=="function"){var ie=ee(d);ie instanceof Promise?ve(X,ie,K,le):X.startsWith("--")?ae(X,ie,K,le):O.push({property:X,value:ie,important:K,sourceValue:le})}else O.push({property:X,value:ee,important:K,sourceValue:le})})});var cr=v();function Nr(){function C(D,M){var A=D.rule;if(A instanceof CSSMediaRule){var B=A.media,O=M.cssRules.length;return M.insertRule("@media "+B.mediaText+" {}",O),M.cssRules[O]}return M}function R(D,M,A){D.rules.forEach(function(B){if(B.isGroup){var O=C(B,M);R(B,O,A)}else A(B,M)})}R(Y,cr,function(D,M){var A=M.cssRules.length;D.declarations.forEach(function(B){var O=B.asyncKey,ve=B.varKey;O!=null&&x.set(O,{rule:D,target:M,index:A}),ve!=null&&_.set(ve,{rule:D,target:M,index:A})}),k(M,A,D)})}function St(C){var R=x.get(C),D=R.rule,M=R.target,A=R.index;M.deleteRule(A),k(M,A,D),x.delete(C)}function lr(C){var R=_.get(C),D=R.rule,M=R.target,A=R.index;M.deleteRule(A),k(M,A,D)}Nr()}return{modifySheet:c,shouldRebuildStyle:s}}var Ei='style, link[rel*="stylesheet" i]:not([disabled])';function pn(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled&&(dr?!e.href.startsWith("moz-extension://"):!0))&&!e.classList.contains("darkreader")&&e.media.toLowerCase()!=="print"&&!e.classList.contains("stylus")}function Ce(e,r,t){return r===void 0&&(r=[]),t===void 0&&(t=!0),pn(e)?r.push(e):(e instanceof Element||Ct&&e instanceof ShadowRoot||e===document)&&(ne(e.querySelectorAll(Ei),function(n){return Ce(n,r,!1)}),t&&be(e,function(n){return Ce(n.shadowRoot,r,!1)})),r}var mn=new WeakSet,bn=new WeakSet,Or=!1;typeof document!="undefined"&&document.addEventListener("__darkreader__inlineScriptsAllowed",function(){Or=!0});var Ci=0,qe=new Map;function _i(){qe.clear()}function Ti(e,r){for(var t=r.update,n=r.loadingStart,i=r.loadingEnd,a=[],o=e;(o=o.nextElementSibling)&&o.matches(".darkreader");)a.push(o);var s=a.find(function(S){return S.matches(".darkreader--cors")&&!bn.has(S)})||null,c=a.find(function(S){return S.matches(".darkreader--sync")&&!mn.has(S)})||null,u=null,l=null,d=!1,p=!0,m=gn(),v=new MutationObserver(function(){t()}),f={attributes:!0,childList:!0,subtree:!0,characterData:!0};function h(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(Ht)}function g(S,re){var H=!1;if(S){var W=void 0;e:for(var G=0,Z=S.length;G<Z;G++)if(W=S[G],W.href)if(re){if(W.href.startsWith("http")&&!W.href.startsWith(location.origin)){H=!0;break e}}else{H=!0;break e}}return H}function b(){if(s)return j("[getRulesSync] Using cors-copy."),s.sheet.cssRules;if(h())return j("[getRulesSync] CSSImport detected."),null;var S=Nr();return e instanceof HTMLLinkElement&&!$n(e.href)&&g(S,!1)?(j("[getRulesSync] CSSImportRule detected on non-local href."),null):g(S,!0)?(j("[getRulesSync] Cross-Origin CSSImportRule detected."),null):(j("[getRulesSync] Using cssRules."),!S&&L("[getRulesSync] cssRules is null, trying again."),S)}function y(){s?(e.nextSibling!==s&&e.parentNode.insertBefore(s,e.nextSibling),s.nextSibling!==c&&e.parentNode.insertBefore(c,s.nextSibling)):e.nextSibling!==c&&e.parentNode.insertBefore(c,e.nextSibling)}function w(){c=e instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style"),c.classList.add("darkreader"),c.classList.add("darkreader--sync"),c.media="screen",!wt&&e.title&&(c.title=e.title),mn.add(c)}var k=!1,x=!1,_=++Ci;function P(){return U(this,void 0,void 0,function(){var S,re,H,W,G,Z,q,Te,Re;return N(this,function(oe){switch(oe.label){case 0:if(!(e instanceof HTMLLinkElement))return[3,7];if(H=V(_e(),2),W=H[0],G=H[1],G&&L(G),!(!W&&!G&&!hr||hr&&!e.sheet||cr(G)))return[3,5];oe.label=1;case 1:return oe.trys.push([1,3,,4]),j("Linkelement "+_+" is not loaded yet and thus will be await for",e),[4,Ri(e,_)];case 2:return oe.sent(),[3,4];case 3:return Z=oe.sent(),L(Z),x=!0,[3,4];case 4:if(d)return[2,null];Re=V(_e(),2),W=Re[0],G=Re[1],G&&L(G),oe.label=5;case 5:return W&&!g(W,!1)?[2,W]:[4,yn(e.href)];case 6:return S=oe.sent(),re=xr(e.href),d?[2,null]:[3,8];case 7:if(h())S=e.textContent.trim(),re=xr(location.href);else return[2,null];oe.label=8;case 8:if(!S)return[3,13];oe.label=9;case 9:return oe.trys.push([9,11,,12]),[4,Sn(S,re)];case 10:return q=oe.sent(),s=Ai(e,q),[3,12];case 11:return Te=oe.sent(),L(Te),[3,12];case 12:if(s)return u=jr(s,"prev-sibling"),[2,s.sheet.cssRules];oe.label=13;case 13:return[2,null]}})})}function F(S){var re=b();return re?{rules:re}:S.secondRound?(L("Detected dead-lock at details(), returning early to prevent it."),null):(k||x||(k=!0,n(),P().then(function(H){k=!1,i(),H&&t()}).catch(function(H){L(H),k=!1,i()})),null)}var Y=!1;function Oe(S,re){var H=b();if(!H)return;d=!1;function W(q){try{if(q.replaceSync){q.replaceSync("");return}}catch(Re){L("Could not use fastpath for removing rules from stylesheet",Re)}for(var Te=q.cssRules.length-1;Te>=0;Te--)q.deleteRule(Te)}function G(){c||w(),l&&l.stop(),y(),c.sheet==null&&(c.textContent="");var q=c.sheet;return W(q),l?l.run():l=jr(c,"prev-sibling",function(){Y=!0,Z()}),c.sheet}function Z(){var q=Y;Y=!1,m.modifySheet({prepareSheet:G,sourceCSSRules:H,theme:S,ignoreImageAnalysis:re,force:q,isAsyncCancelled:function(){return d}}),p=c.sheet.cssRules.length===0,m.shouldRebuildStyle()&&Dt(function(){return t()})}Z()}function _e(){try{return e.sheet==null?[null,null]:[e.sheet.cssRules,null]}catch(S){return[null,S]}}function cr(S){return S&&S.message&&S.message.includes("loading")}function Nr(){var S=V(_e(),2),re=S[0],H=S[1];return H?(L(H),null):re}function St(){ve(),!kt&&!(Or&&e.sheet)&&M()}var lr=null,C=null;function R(){var S=Nr();return S?S.length:null}function D(){return R()!==lr}function M(){lr=R(),A();var S=function(){if(D()&&(lr=R(),t()),Or&&e.sheet){A();return}C=requestAnimationFrame(S)};S()}function A(){cancelAnimationFrame(C)}var B=!1;function O(){if(Or=!0,A(),B)return;function S(){B=!1,!d&&t()}B=!0,typeof queueMicrotask=="function"?queueMicrotask(S):requestAnimationFrame(S)}function ve(){e.addEventListener("__darkreader__updateSheet",O)}function ae(){e.removeEventListener("__darkreader__updateSheet",O)}function ce(){ae(),A()}function X(){v.disconnect(),d=!0,u&&u.stop(),l&&l.stop(),ce()}function ee(){if(X(),Q(s),Q(c),i(),qe.has(_)){var S=qe.get(_);qe.delete(_),S&&S()}}function K(){v.observe(e,f),e instanceof HTMLStyleElement&&St()}var le=10,ie=0;function De(){if(c){if(ie++,ie>le){L("Style sheet was moved multiple times",e);return}L("Restore style",c,e),y(),u&&u.skip(),l&&l.skip(),p||(Y=!0,t())}}return{details:F,render:Oe,pause:X,destroy:ee,watch:K,restore:De}}function Ri(e,r){return U(this,void 0,void 0,function(){return N(this,function(t){return[2,new Promise(function(n,i){var a=function(){e.removeEventListener("load",o),e.removeEventListener("error",s),qe.delete(r)},o=function(){a(),j("Linkelement "+r+" has been loaded"),n()},s=function(){a(),i("Linkelement "+r+" couldn't be loaded. "+e.href)};qe.set(r,function(){a(),i()}),e.addEventListener("load",o),e.addEventListener("error",s),e.href||s()})]})})}function Mi(e){return zr(e.substring(7).trim().replace(/;$/,"").replace(/screen$/,""))}function yn(e){return U(this,void 0,void 0,function(){return N(this,function(r){switch(r.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,r.sent().text()];case 2:return[2,r.sent()];case 3:return[4,Zt({url:e,responseType:"text",mimeType:"text/css",origin:window.location.origin})];case 4:return[2,r.sent()]}})})}function Sn(e,r,t){return t===void 0&&(t=new Map),U(this,void 0,void 0,function(){var n,i,a,o,s,c,u,l,d,p,m;return N(this,function(v){switch(v.label){case 0:e=na(e),e=ia(e),e=ra(e,r),n=Fe(Ht,e),v.label=1;case 1:v.trys.push([1,10,11,12]),i=fr(n),a=i.next(),v.label=2;case 2:return a.done?[3,9]:(o=a.value,s=Mi(o),c=qr(r,s),u=void 0,t.has(c)?(u=t.get(c),[3,7]):[3,3]);case 3:return v.trys.push([3,6,,7]),[4,yn(c)];case 4:return u=v.sent(),t.set(c,u),[4,Sn(u,xr(c),t)];case 5:return u=v.sent(),[3,7];case 6:return l=v.sent(),L(l),u="",[3,7];case 7:e=e.split(o).join(u),v.label=8;case 8:return a=i.next(),[3,2];case 9:return[3,12];case 10:return d=v.sent(),p={error:d},[3,12];case 11:try{a&&!a.done&&(m=i.return)&&m.call(i)}finally{if(p)throw p.error}return[7];case 12:return e=e.trim(),[2,e]}})})}function Ai(e,r){if(!r)return null;var t=document.createElement("style");return t.classList.add("darkreader"),t.classList.add("darkreader--cors"),t.media="screen",t.textContent=r,e.parentNode.insertBefore(t,e.nextSibling),t.sheet.disabled=!0,bn.add(t),t}var Dr=[],ft,Le=new Map,Ir;function Pr(e){Hn&&ne(e.querySelectorAll(":not(:defined)"),function(r){var t=r.tagName.toLowerCase();if(!t.includes("-")){var n=r.getAttribute("is");if(n)t=n;else return}Le.has(t)||(Le.set(t,new Set),Li(t).then(function(){if(Ir){var i=Le.get(t);Le.delete(t),Ir(Array.from(i))}})),Le.get(t).add(r)})}var dt=!1;typeof document!="undefined"&&document.addEventListener("__darkreader__inlineScriptsAllowed",function(){dt=!0});var ht=new Map;function xn(e){if(dt=!0,ht.has(e.detail.tag)){var r=ht.get(e.detail.tag);r()}}function Li(e){return U(this,void 0,void 0,function(){return N(this,function(r){return[2,new Promise(function(t){if(window.customElements&&typeof customElements.whenDefined=="function")customElements.whenDefined(e).then(function(){return t()});else if(dt)ht.set(e,t),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}));else{var n=function(){var i=Le.get(e);i&&i.size>0&&(i.values().next().value.matches(":defined")?t():requestAnimationFrame(n))};requestAnimationFrame(n)}})]})})}function Vi(e){Ir=e}function Oi(){Ir=null,Le.clear(),document.removeEventListener("__darkreader__isDefined",xn)}function Di(e,r,t){wn();var n=new Set(e),i=new WeakMap,a=new WeakMap;function o(f){i.set(f,f.previousElementSibling),a.set(f,f.nextElementSibling)}function s(f){i.delete(f),a.delete(f)}function c(f){return f.previousElementSibling!==i.get(f)||f.nextElementSibling!==a.get(f)}e.forEach(o);function u(f){var h=f.createdStyles,g=f.removedStyles,b=f.movedStyles;h.forEach(function(y){return o(y)}),b.forEach(function(y){return o(y)}),g.forEach(function(y){return s(y)}),h.forEach(function(y){return n.add(y)}),g.forEach(function(y){return n.delete(y)}),h.size+g.size+b.size>0&&r({created:Array.from(h),removed:Array.from(g),moved:Array.from(b),updated:[]})}function l(f){var h=f.additions,g=f.moves,b=f.deletions,y=new Set,w=new Set,k=new Set;h.forEach(function(x){return Ce(x).forEach(function(_){return y.add(_)})}),b.forEach(function(x){return Ce(x).forEach(function(_){return w.add(_)})}),g.forEach(function(x){return Ce(x).forEach(function(_){return k.add(_)})}),u({createdStyles:y,removedStyles:w,movedStyles:k}),h.forEach(function(x){be(x,v),Pr(x)})}function d(f){var h=new Set(Ce(f)),g=new Set,b=new Set,y=new Set;h.forEach(function(w){n.has(w)||g.add(w)}),n.forEach(function(w){h.has(w)||b.add(w)}),h.forEach(function(w){!g.has(w)&&!b.has(w)&&c(w)&&y.add(w)}),u({createdStyles:g,removedStyles:b,movedStyles:y}),be(f,v),Pr(f)}function p(f){var h=new Set,g=new Set;f.forEach(function(b){var y=b.target;y.isConnected&&(pn(y)?h.add(y):y instanceof HTMLLinkElement&&y.disabled&&g.add(y))}),h.size+g.size>0&&r({updated:Array.from(h),created:[],removed:Array.from(g),moved:[]})}function m(f){var h=Ft(f,{onMinorMutations:l,onHugeMutations:d}),g=new MutationObserver(p);g.observe(f,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),Dr.push(h,g),ft.add(f)}function v(f){var h=f.shadowRoot;h==null||ft.has(h)||(m(h),t(h))}m(document),be(document.documentElement,v),Vi(function(f){var h=[];f.forEach(function(g){return Hr(h,Ce(g.shadowRoot))}),r({created:h,updated:[],removed:[],moved:[]}),f.forEach(function(g){var b=g.shadowRoot;b!=null&&(v(g),be(b,v),Pr(b))})}),document.addEventListener("__darkreader__isDefined",xn),Pr(document)}function Ii(){Dr.forEach(function(e){return e.disconnect()}),Dr.splice(0,Dr.length),ft=new WeakSet}function wn(){Ii(),Oi()}function Pi(e){return(e<16?"0":"")+e.toString(16)}function Fi(){if(typeof crypto=="undefined")return"xxx-xxxx";if("randomUUID"in crypto){var e=crypto.randomUUID();return e.substring(0,8)+e.substring(9,13)+e.substring(14,18)+e.substring(19,23)+e.substring(24)}return Array.from(crypto.getRandomValues(new Uint8Array(16))).map(function(r){return Pi(r)}).join("")}var kn=new WeakMap,Fr=new WeakSet;function Ui(e){var r=!1;function t(a,o){var s=ge([],V(e.adoptedStyleSheets),!1),c=s.indexOf(a),u=s.indexOf(o);c!==u-1&&(u>=0&&s.splice(u,1),s.splice(c+1,0,o),e.adoptedStyleSheets=s)}function n(){r=!0;var a=ge([],V(e.adoptedStyleSheets),!1);e.adoptedStyleSheets.forEach(function(o){if(Fr.has(o)){var s=a.indexOf(o);s>=0&&a.splice(s,1),kn.delete(o),Fr.delete(o)}}),e.adoptedStyleSheets=a}function i(a,o){e.adoptedStyleSheets.forEach(function(s){if(Fr.has(s))return;var c=s.rules,u=new CSSStyleSheet;function l(){for(var p=u.cssRules.length-1;p>=0;p--)u.deleteRule(p);return t(s,u),kn.set(s,u),Fr.add(u),u}var d=gn();d.modifySheet({prepareSheet:l,sourceCSSRules:c,theme:a,ignoreImageAnalysis:o,force:!1,isAsyncCancelled:function(){return r}})})}return{render:i,destroy:n}}function Ni(e){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));var r=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),t=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),i=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),a=e?Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"):null,o=location.hostname.endsWith("baidu.com"),s=o?Object.getOwnPropertyDescriptor(Element.prototype,"getElementsByTagName"):null,c=function(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",r),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",t),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",n),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",i),document.removeEventListener("__darkreader__cleanUp",c),document.removeEventListener("__darkreader__addUndefinedResolver",u),e&&Object.defineProperty(Document.prototype,"styleSheets",a),o&&Object.defineProperty(Element.prototype,"getElementsByTagName",s)},u=function(g){customElements.whenDefined(g.detail.tag).then(function(){document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:g.detail.tag}}))})};document.addEventListener("__darkreader__cleanUp",c),document.addEventListener("__darkreader__addUndefinedResolver",u);var l=new Event("__darkreader__updateSheet");function d(g,b,y){return r.value.call(this,g,b,y),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(l),-1}function p(g,b){var y=t.value.call(this,g,b);return this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(l),y}function m(g){n.value.call(this,g),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(l)}function v(g){i.value.call(this,g),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(l)}function f(){var g=a.get.call(this),b=ge([],V(g),!1).filter(function(y){return!y.ownerNode.classList.contains("darkreader")});return Object.setPrototypeOf(b,StyleSheetList.prototype)}function h(g){var b=this;if(g!=="style")return s.value.call(this,g);var y=function(){var x=s.value.call(b,g);return Object.setPrototypeOf(ge([],V(x),!1).filter(function(_){return!_.classList.contains("darkreader")}),NodeList.prototype)},w=y(),k={get:function(x,_){return y()[Number(_)]}};return w=new Proxy(w,k),w}Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},r,{value:d})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},t,{value:p})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},n,{value:m})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},i,{value:v})),e&&Object.defineProperty(Document.prototype,"styleSheets",Object.assign({},a,{get:f})),o&&Object.defineProperty(Element.prototype,"getElementsByTagName",Object.assign({},s,{value:h}))}var En=Fi(),se=new Map,Ur=[],E=null,I=null,Cn=null,he=null,ir=null;function ue(e,r){r===void 0&&(r=document.head||document);var t=r.querySelector("."+e);return t||(t=document.createElement("style"),t.classList.add("darkreader"),t.classList.add(e),t.media="screen",t.textContent=""),t}function Bi(e,r){r===void 0&&(r=document.head||document);var t=r.querySelector("."+e);return t||(t=document.createElement("script"),t.classList.add("darkreader"),t.classList.add(e)),t}var or=new Map;function Ve(e,r){or.has(r)&&or.get(r).stop(),or.set(r,jr(e,"parent"))}function Hi(){ne(or.values(),function(e){return e.stop()}),or.clear()}function Wi(){var e=ue("darkreader--fallback",document);e.textContent=nt(E,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),Ve(e,"fallback");var r=ue("darkreader--user-agent");r.textContent=Za(E,Cn,E.styleSystemControls),document.head.insertBefore(r,e.nextSibling),Ve(r,"user-agent");var t=ue("darkreader--text");E.useFont||E.textStroke>0?t.textContent=Ua(E):t.textContent="",document.head.insertBefore(t,e.nextSibling),Ve(t,"text");var n=ue("darkreader--invert");I&&Array.isArray(I.invert)&&I.invert.length>0?n.textContent=[I.invert.join(", ")+" {"," filter: "+Xt(T(T({},E),{contrast:E.mode===0?E.contrast:we(E.contrast-10,0,100)}))+" !important;","}"].join(`
|
|
18
18
|
`):n.textContent="",document.head.insertBefore(n,t.nextSibling),Ve(n,"invert");var i=ue("darkreader--inline");i.textContent=cn(),document.head.insertBefore(i,n.nextSibling),Ve(i,"inline");var a=ue("darkreader--override");a.textContent=I&&I.css?_n(I.css):"",document.head.appendChild(a),Ve(a,"override");var o=ue("darkreader--variables"),s=$t(E),c=E.darkSchemeBackgroundColor,u=E.darkSchemeTextColor,l=E.lightSchemeBackgroundColor,d=E.lightSchemeTextColor,p=E.mode,m=p===0?l:c,v=p===0?d:u;m=z(Me(m),E),v=pe(Me(v),E),o.textContent=[":root {"," --darkreader-neutral-background: "+m+";"," --darkreader-neutral-text: "+v+";"," --darkreader-selection-background: "+s.backgroundColorSelection+";"," --darkreader-selection-text: "+s.foregroundColorSelection+";","}"].join(`
|
|
19
19
|
`),document.head.insertBefore(o,i.nextSibling),Ve(o,"variables");var f=ue("darkreader--root-vars");document.head.insertBefore(f,o.nextSibling);var h=Bi("darkreader--proxy");h.append("("+Ni+")(!"+(I&&I.disableStyleSheetsProxy)+")"),document.head.insertBefore(h,f.nextSibling),h.remove()}var vt=new Set;function gt(e){var r=ue("darkreader--inline",e);r.textContent=cn(),e.insertBefore(r,e.firstChild);var t=ue("darkreader--override",e);t.textContent=I&&I.css?_n(I.css):"",e.insertBefore(t,r.nextSibling);var n=ue("darkreader--invert",e);I&&Array.isArray(I.invert)&&I.invert.length>0?n.textContent=[I.invert.join(", ")+" {"," filter: "+Xt(T(T({},E),{contrast:E.mode===0?E.contrast:we(E.contrast-10,0,100)}))+" !important;","}"].join(`
|
|
20
|
-
`):n.textContent="",e.insertBefore(n,t.nextSibling),vt.add(e)}function _n(e){return e.replace(/\${(.+?)}/g,function(r,t){var n=ke(t);return n?Va(n,E):(L("Couldn't parse CSSTemplate's color."),t)})}function pt(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}function ji(){Mn();var e=Ce(document),r=e.filter(function(n){return!se.has(n)}).map(function(n){return Tn(n)});r.map(function(n){return n.details({secondRound:!1})}).filter(function(n){return n&&n.rules.length>0}).forEach(function(n){$.addRulesForMatching(n.rules)}),$.matchVariablesAndDependants(),$.setOnRootVariableChange(function(){$.putRootVars(document.head.querySelector(".darkreader--root-vars"),E)}),$.putRootVars(document.head.querySelector(".darkreader--root-vars"),E),se.forEach(function(n){return n.render(E,he)}),me.size===0&&pt(),r.forEach(function(n){return n.watch()});var t=Qn(document.querySelectorAll(tr));be(document.documentElement,function(n){gt(n.shadowRoot);var i=n.shadowRoot.querySelectorAll(tr);i.length>0&&Hr(t,i)}),t.forEach(function(n){return lt(n,E,ir,he)}),Dn(document)}var Gi=0,me=new Set;function Tn(e){var r=++Gi;j("New manager for element, with loadingStyleID "+r,e);function t(){if(!Ke()||!Ln){me.add(r),j("Current amount of styles loading: "+me.size);var o=document.querySelector(".darkreader--fallback");o.textContent||(o.textContent=nt(E,{strict:!1}))}}function n(){me.delete(r),j("Removed loadingStyle "+r+", now awaiting: "+me.size),j("To-do to be loaded",me),me.size===0&&Ke()&&pt()}function i(){var o=a.details({secondRound:!0});o&&($.addRulesForMatching(o.rules),$.matchVariablesAndDependants(),a.render(E,he))}var a=Ti(e,{update:i,loadingStart:t,loadingEnd:n});return se.set(e,a),a}function Rn(e){var r=se.get(e);r&&(r.destroy(),se.delete(e))}var qi=Wr(function(e){se.forEach(function(r){return r.render(E,he)}),Ur.forEach(function(r){return r.render(E,he)}),e&&e()}),Mn=function(){qi.cancel()};function An(){if(me.size===0){pt();return}L("DOM is ready, but still have styles being loaded.",me)}var sr=null,Ln=typeof document!="undefined"&&!document.hidden;function zi(e){var r
|
|
20
|
+
`):n.textContent="",e.insertBefore(n,t.nextSibling),vt.add(e)}function _n(e){return e.replace(/\${(.+?)}/g,function(r,t){var n=ke(t);return n?Va(n,E):(L("Couldn't parse CSSTemplate's color."),t)})}function pt(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}function ji(){Mn();var e=Ce(document),r=e.filter(function(n){return!se.has(n)}).map(function(n){return Tn(n)});r.map(function(n){return n.details({secondRound:!1})}).filter(function(n){return n&&n.rules.length>0}).forEach(function(n){$.addRulesForMatching(n.rules)}),$.matchVariablesAndDependants(),$.setOnRootVariableChange(function(){$.putRootVars(document.head.querySelector(".darkreader--root-vars"),E)}),$.putRootVars(document.head.querySelector(".darkreader--root-vars"),E),se.forEach(function(n){return n.render(E,he)}),me.size===0&&pt(),r.forEach(function(n){return n.watch()});var t=Qn(document.querySelectorAll(tr));be(document.documentElement,function(n){gt(n.shadowRoot);var i=n.shadowRoot.querySelectorAll(tr);i.length>0&&Hr(t,i)}),t.forEach(function(n){return lt(n,E,ir,he)}),Dn(document)}var Gi=0,me=new Set;function Tn(e){var r=++Gi;j("New manager for element, with loadingStyleID "+r,e);function t(){if(!Ke()||!Ln){me.add(r),j("Current amount of styles loading: "+me.size);var o=document.querySelector(".darkreader--fallback");o.textContent||(o.textContent=nt(E,{strict:!1}))}}function n(){me.delete(r),j("Removed loadingStyle "+r+", now awaiting: "+me.size),j("To-do to be loaded",me),me.size===0&&Ke()&&pt()}function i(){var o=a.details({secondRound:!0});o&&($.addRulesForMatching(o.rules),$.matchVariablesAndDependants(),a.render(E,he))}var a=Ti(e,{update:i,loadingStart:t,loadingEnd:n});return se.set(e,a),a}function Rn(e){var r=se.get(e);r&&(r.destroy(),se.delete(e))}var qi=Wr(function(e){se.forEach(function(r){return r.render(E,he)}),Ur.forEach(function(r){return r.render(E,he)}),e&&e()}),Mn=function(){qi.cancel()};function An(){if(me.size===0){pt();return}L("DOM is ready, but still have styles being loaded.",me)}var sr=null,Ln=typeof document!="undefined"&&!document.hidden;function zi(e){var r=!!sr;sr=function(){document.hidden||(Vn(),e(),Ln=!0)},r||document.addEventListener("visibilitychange",sr)}function Vn(){document.removeEventListener("visibilitychange",sr),sr=null}function On(){Wi();function e(){ji(),Ki()}document.hidden?zi(e):e(),yi(E)}function Dn(e){if(Array.isArray(e.adoptedStyleSheets)&&e.adoptedStyleSheets.length>0){var r=Ui(e);Ur.push(r),r.render(E,he)}}function Ki(){var e=Array.from(se.keys());Di(e,function(r){var t=r.created,n=r.updated,i=r.removed,a=r.moved,o=i,s=t.concat(n).concat(a).filter(function(l){return!se.has(l)}),c=a.filter(function(l){return se.has(l)});j("Styles to be removed:",o),o.forEach(function(l){return Rn(l)});var u=s.map(function(l){return Tn(l)});u.map(function(l){return l.details({secondRound:!1})}).filter(function(l){return l&&l.rules.length>0}).forEach(function(l){$.addRulesForMatching(l.rules)}),$.matchVariablesAndDependants(),u.forEach(function(l){return l.render(E,he)}),u.forEach(function(l){return l.watch()}),c.forEach(function(l){return se.get(l).restore()})},function(r){gt(r),Dn(r)}),gi(function(r){if(lt(r,E,ir,he),r===document.documentElement){var t=r.getAttribute("style");t.includes("--")&&($.matchVariablesAndDependants(),$.putRootVars(document.head.querySelector(".darkreader--root-vars"),E))}},function(r){gt(r);var t=r.querySelectorAll(tr);t.length>0&&ne(t,function(n){return lt(n,E,ir,he)})}),Lt(An)}function Qi(){se.forEach(function(e){return e.pause()}),Hi(),wn(),pi(),Vt(An),Xn()}function Yi(){var e=document.createElement("meta");e.name="darkreader",e.content=En,document.head.appendChild(e)}function In(){var e=document.querySelector('meta[name="darkreader"]');return e?e.content!==En:(Yi(),!1)}function Xi(e,r,t){if(E=e,I=r,I?(he=Array.isArray(I.ignoreImageAnalysis)?I.ignoreImageAnalysis:[],ir=Array.isArray(I.ignoreInlineStyle)?I.ignoreInlineStyle:[]):(he=[],ir=[]),Cn=t,document.head){if(In())return;document.documentElement.setAttribute("data-darkreader-mode","dynamic"),document.documentElement.setAttribute("data-darkreader-scheme",E.mode?"dark":"dimmed"),On()}else{if(!dr){var n=ue("darkreader--fallback");document.documentElement.appendChild(n),n.textContent=nt(E,{strict:!0})}var i=new MutationObserver(function(){if(document.head){if(i.disconnect(),In()){Pn();return}On()}});i.observe(document,{childList:!0,subtree:!0})}}function Zi(){document.dispatchEvent(new CustomEvent("__darkreader__cleanUp")),Q(document.head.querySelector(".darkreader--proxy"))}function Pn(){document.documentElement.removeAttribute("data-darkreader-mode"),document.documentElement.removeAttribute("data-darkreader-scheme"),Ji(),Q(document.querySelector(".darkreader--fallback")),document.head&&(Si(),Q(document.head.querySelector(".darkreader--user-agent")),Q(document.head.querySelector(".darkreader--text")),Q(document.head.querySelector(".darkreader--invert")),Q(document.head.querySelector(".darkreader--inline")),Q(document.head.querySelector(".darkreader--override")),Q(document.head.querySelector(".darkreader--variables")),Q(document.head.querySelector(".darkreader--root-vars")),Q(document.head.querySelector('meta[name="darkreader"]')),Zi()),vt.forEach(function(e){Q(e.querySelector(".darkreader--inline")),Q(e.querySelector(".darkreader--override"))}),vt.clear(),ne(se.keys(),function(e){return Rn(e)}),me.clear(),_i(),ne(document.querySelectorAll(".darkreader"),Q),Ur.forEach(function(e){e.destroy()}),Ur.splice(0)}function Ji(){$.clear(),Qe.clear(),Vn(),Mn(),Qi(),si()}var Fn=/url\(\"(blob\:.*?)\"\)/g;function $i(e){return U(this,void 0,void 0,function(){var r,t;return N(this,function(n){switch(n.label){case 0:return r=[],Fe(Fn,e,1).forEach(function(i){var a=Tt(i);r.push(a)}),[4,Promise.all(r)];case 1:return t=n.sent(),[2,e.replace(Fn,function(){return'url("'+t.shift()+'")'})]}})})}var eo=`/*
|
|
21
21
|
_______
|
|
22
22
|
/ \\
|
|
23
23
|
.==. .==.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9371],{19371:function(ht,W,p){"use strict";p.r(W),p.d(W,{default:function(){return y}});var h=p(63313),z=p(92260),E=p(45389),H=p(66441),A=p(96268),O=p(84875),I=p.n(O),N=p(35504),nt=p(82259),T=p(25515),j=p(11847),rt=function(a){var i=a.children;return i},ct=rt,M=p(72564);function k(s){return s!=null}var J=function(a){var i=a.itemPrefixCls,m=a.component,$=a.span,v=a.className,u=a.style,x=a.labelStyle,D=a.contentStyle,w=a.bordered,C=a.label,F=a.content,U=a.colon,P=m;if(w){var b;return h.createElement(P,{className:I()((b={},(0,E.Z)(b,"".concat(i,"-item-label"),k(C)),(0,E.Z)(b,"".concat(i,"-item-content"),k(F)),b),v),style:u,colSpan:$},k(C)&&h.createElement("span",{style:x},C),k(F)&&h.createElement("span",{style:D},F))}return h.createElement(P,{className:I()("".concat(i,"-item"),v),style:u,colSpan:$},h.createElement("div",{className:"".concat(i,"-item-container")},(C||C===0)&&h.createElement("span",{className:I()("".concat(i,"-item-label"),(0,E.Z)({},"".concat(i,"-item-no-colon"),!U)),style:x},C),(F||F===0)&&h.createElement("span",{className:I()("".concat(i,"-item-content")),style:D},F)))},V=J;function L(s,a,i){var m=a.colon,$=a.prefixCls,v=a.bordered,u=i.component,x=i.type,D=i.showLabel,w=i.showContent,C=i.labelStyle,F=i.contentStyle;return s.map(function(U,P){var b=U.props,Q=b.label,X=b.children,K=b.prefixCls,q=K===void 0?$:K,_=b.className,Z=b.style,at=b.labelStyle,tt=b.contentStyle,it=b.span,ot=it===void 0?1:it,et=U.key;return typeof u=="string"?h.createElement(V,{key:"".concat(x,"-").concat(et||P),className:_,style:Z,labelStyle:(0,M.Z)((0,M.Z)({},C),at),contentStyle:(0,M.Z)((0,M.Z)({},F),tt),span:ot,colon:m,component:u,itemPrefixCls:q,bordered:v,label:D?Q:null,content:w?X:null}):[h.createElement(V,{key:"label-".concat(et||P),className:_,style:(0,M.Z)((0,M.Z)((0,M.Z)({},C),Z),at),span:1,colon:m,component:u[0],itemPrefixCls:q,bordered:v,label:Q}),h.createElement(V,{key:"content-".concat(et||P),className:_,style:(0,M.Z)((0,M.Z)((0,M.Z)({},F),Z),tt),span:ot*2-1,component:u[1],itemPrefixCls:q,bordered:v,content:X})]})}var Y=function(a){var i=h.useContext(R),m=a.prefixCls,$=a.vertical,v=a.row,u=a.index,x=a.bordered;return $?h.createElement(h.Fragment,null,h.createElement("tr",{key:"label-".concat(u),className:"".concat(m,"-row")},L(v,a,(0,M.Z)({component:"th",type:"label",showLabel:!0},i))),h.createElement("tr",{key:"content-".concat(u),className:"".concat(m,"-row")},L(v,a,(0,M.Z)({component:"td",type:"content",showContent:!0},i)))):h.createElement("tr",{key:u,className:"".concat(m,"-row")},L(v,a,(0,M.Z)({component:x?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},i)))},G=Y,R=h.createContext({}),S={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function f(s,a){if(typeof s=="number")return s;if((0,A.Z)(s)==="object")for(var i=0;i<j.c4.length;i++){var m=j.c4[i];if(a[m]&&s[m]!==void 0)return s[m]||S[m]}return 3}function B(s,a,i){var m=s;return(a===void 0||a>i)&&(m=(0,T.Tm)(s,{span:i})),m}function st(s,a){var i=(0,N.Z)(s).filter(function(u){return u}),m=[],$=[],v=a;return i.forEach(function(u,x){var D,w=(D=u.props)===null||D===void 0?void 0:D.span,C=w||1;if(x===i.length-1){$.push(B(u,w,v)),m.push($);return}C<v?(v-=C,$.push(u)):($.push(B(u,C,v)),m.push($),v=a,$=[])}),m}function l(s){var a,i=s.prefixCls,m=s.title,$=s.extra,v=s.column,u=v===void 0?S:v,x=s.colon,D=x===void 0?!0:x,w=s.bordered,C=s.layout,F=s.children,U=s.className,P=s.style,b=s.size,Q=s.labelStyle,X=s.contentStyle,K=h.useContext(nt.E_),q=K.getPrefixCls,_=K.direction,Z=q("descriptions",i),at=h.useState({}),tt=(0,H.Z)(at,2),it=tt[0],ot=tt[1],et=f(u,it);h.useEffect(function(){var ut=j.ZP.subscribe(function(lt){(0,A.Z)(u)==="object"&&ot(lt)});return function(){j.ZP.unsubscribe(ut)}},[]);var dt=st(F,et),mt=h.useMemo(function(){return{labelStyle:Q,contentStyle:X}},[Q,X]);return h.createElement(R.Provider,{value:mt},h.createElement("div",{className:I()(Z,(a={},(0,E.Z)(a,"".concat(Z,"-").concat(b),b&&b!=="default"),(0,E.Z)(a,"".concat(Z,"-bordered"),!!w),(0,E.Z)(a,"".concat(Z,"-rtl"),_==="rtl"),a),U),style:P},(m||$)&&h.createElement("div",{className:"".concat(Z,"-header")},m&&h.createElement("div",{className:"".concat(Z,"-title")},m),$&&h.createElement("div",{className:"".concat(Z,"-extra")},$)),h.createElement("div",{className:"".concat(Z,"-view")},h.createElement("table",null,h.createElement("tbody",null,dt.map(function(ut,lt){return h.createElement(G,{key:lt,index:lt,colon:D,prefixCls:Z,vertical:C==="vertical",bordered:w,row:ut})}))))))}l.Item=ct;var e=l,t={container:"container___nww32",right:"right___o0xXT",title:"title___DHxWh",desc:"desc___frhI6"},c=p(74637),n=p.n(c),r=p(11527),o=z.Z.Link,d;(function(s){s.develop="\u5F00\u53D1\u7248",s.master="\u6B63\u5F0F\u7248"})(d||(d={}));var g=function(a){var i=a.systemInfo;return(0,r.jsxs)("div",{className:t.container,children:[(0,r.jsx)("img",{alt:"logo",style:{width:140,marginRight:20},src:"https://qn.whyour.cn/logo.png"}),(0,r.jsxs)("div",{className:t.right,children:[(0,r.jsx)("span",{className:t.title,children:"\u9752\u9F99"}),(0,r.jsx)("span",{className:t.desc,children:"\u652F\u6301python3\u3001javaScript\u3001shell\u3001typescript \u7684\u5B9A\u65F6\u4EFB\u52A1\u7BA1\u7406\u9762\u677F\uFF08A timed task management panel that supports typescript, javaScript, python3, and shell.\uFF09"}),(0,r.jsxs)(e,{children:[(0,r.jsxs)(e.Item,{label:"\u7248\u672C",span:3,children:[d[i.branch]," v",i.version]}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0\u65F6\u95F4",span:3,children:n()(i.lastCommitTime*1e3).format("YYYY-MM-DD HH:mm:ss")}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0ID",span:3,children:i.lastCommitId}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0\u65E5\u5FD7",span:3,children:(0,r.jsx)(o,{href:"https://qn.whyour.cn/version.yaml?t=".concat(Date.now()),target:"_blank",children:"\u67E5\u770B"})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(o,{href:"https://github.com/whyour/qinglong",target:"_blank",style:{marginRight:15},children:"Github"}),(0,r.jsx)(o,{href:"https://t.me/jiao_long",target:"_blank",style:{marginRight:15},children:"Telegram\u9891\u9053"}),(0,r.jsx)(o,{href:"https://github.com/whyour/qinglong/issues",target:"_blank",children:"\u63D0\u4EA4BUG"})]})]})]})},y=g},74637:function(ht){(function(W,p){ht.exports=p()})(this,function(){"use strict";var W=1e3,p=6e4,h=36e5,z="millisecond",E="second",H="minute",A="hour",O="day",I="week",N="month",nt="quarter",T="year",j="date",rt="Invalid Date",ct=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var e=["th","st","nd","rd"],t=l%100;return"["+l+(e[(t-20)%10]||e[t]||e[0])+"]"}},J=function(l,e,t){var c=String(l);return!c||c.length>=e?l:""+Array(e+1-c.length).join(t)+l},V={s:J,z:function(l){var e=-l.utcOffset(),t=Math.abs(e),c=Math.floor(t/60),n=t%60;return(e<=0?"+":"-")+J(c,2,"0")+":"+J(n,2,"0")},m:function l(e,t){if(e.date()<t.date())return-l(t,e);var c=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(c,N),r=t-n<0,o=e.clone().add(c+(r?-1:1),N);return+(-(c+(t-n)/(r?n-o:o-n))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:N,y:T,w:I,d:O,D:j,h:A,m:H,s:E,ms:z,Q:nt}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",Y={};Y[L]=k;var G=function(l){return l instanceof B},R=function l(e,t,c){var n;if(!e)return L;if(typeof e=="string"){var r=e.toLowerCase();Y[r]&&(n=r),t&&(Y[r]=t,n=r);var o=e.split("-");if(!n&&o.length>1)return l(o[0])}else{var d=e.name;Y[d]=e,n=d}return!c&&n&&(L=n),n||!c&&L},S=function(l,e){if(G(l))return l.clone();var t=typeof e=="object"?e:{};return t.date=l,t.args=arguments,new B(t)},f=V;f.l=R,f.i=G,f.w=function(l,e){return S(l,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var B=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t)}var e=l.prototype;return e.parse=function(t){this.$d=function(c){var n=c.date,r=c.utc;if(n===null)return new Date(NaN);if(f.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var o=n.match(ct);if(o){var d=o[2]-1||0,g=(o[7]||"0").substring(0,3);return r?new Date(Date.UTC(o[1],d,o[3]||1,o[4]||0,o[5]||0,o[6]||0,g)):new Date(o[1],d,o[3]||1,o[4]||0,o[5]||0,o[6]||0,g)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return f},e.isValid=function(){return this.$d.toString()!==rt},e.isSame=function(t,c){var n=S(t);return this.startOf(c)<=n&&n<=this.endOf(c)},e.isAfter=function(t,c){return S(t)<this.startOf(c)},e.isBefore=function(t,c){return this.endOf(c)<S(t)},e.$g=function(t,c,n){return f.u(t)?this[c]:this.set(n,t)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(t,c){var n=this,r=!!f.u(c)||c,o=f.p(t),d=function(v,u){var x=f.w(n.$u?Date.UTC(n.$y,u,v):new Date(n.$y,u,v),n);return r?x:x.endOf(O)},g=function(v,u){return f.w(n.toDate()[v].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(u)),n)},y=this.$W,s=this.$M,a=this.$D,i="set"+(this.$u?"UTC":"");switch(o){case T:return r?d(1,0):d(31,11);case N:return r?d(1,s):d(0,s+1);case I:var m=this.$locale().weekStart||0,$=(y<m?y+7:y)-m;return d(r?a-$:a+(6-$),s);case O:case j:return g(i+"Hours",0);case A:return g(i+"Minutes",1);case H:return g(i+"Seconds",2);case E:return g(i+"Milliseconds",3);default:return this.clone()}},e.endOf=function(t){return this.startOf(t,!1)},e.$set=function(t,c){var n,r=f.p(t),o="set"+(this.$u?"UTC":""),d=(n={},n[O]=o+"Date",n[j]=o+"Date",n[N]=o+"Month",n[T]=o+"FullYear",n[A]=o+"Hours",n[H]=o+"Minutes",n[E]=o+"Seconds",n[z]=o+"Milliseconds",n)[r],g=r===O?this.$D+(c-this.$W):c;if(r===N||r===T){var y=this.clone().set(j,1);y.$d[d](g),y.init(),this.$d=y.set(j,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](g);return this.init(),this},e.set=function(t,c){return this.clone().$set(t,c)},e.get=function(t){return this[f.p(t)]()},e.add=function(t,c){var n,r=this;t=Number(t);var o=f.p(c),d=function(s){var a=S(r);return f.w(a.date(a.date()+Math.round(s*t)),r)};if(o===N)return this.set(N,this.$M+t);if(o===T)return this.set(T,this.$y+t);if(o===O)return d(1);if(o===I)return d(7);var g=(n={},n[H]=p,n[A]=h,n[E]=W,n)[o]||1,y=this.$d.getTime()+t*g;return f.w(y,this)},e.subtract=function(t,c){return this.add(-1*t,c)},e.format=function(t){var c=this,n=this.$locale();if(!this.isValid())return n.invalidDate||rt;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=f.z(this),d=this.$H,g=this.$m,y=this.$M,s=n.weekdays,a=n.months,i=function(u,x,D,w){return u&&(u[x]||u(c,r))||D[x].slice(0,w)},m=function(u){return f.s(d%12||12,u,"0")},$=n.meridiem||function(u,x,D){var w=u<12?"AM":"PM";return D?w.toLowerCase():w},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:y+1,MM:f.s(y+1,2,"0"),MMM:i(n.monthsShort,y,a,3),MMMM:i(a,y),D:this.$D,DD:f.s(this.$D,2,"0"),d:String(this.$W),dd:i(n.weekdaysMin,this.$W,s,2),ddd:i(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(d),HH:f.s(d,2,"0"),h:m(1),hh:m(2),a:$(d,g,!0),A:$(d,g,!1),m:String(g),mm:f.s(g,2,"0"),s:String(this.$s),ss:f.s(this.$s,2,"0"),SSS:f.s(this.$ms,3,"0"),Z:o};return r.replace(M,function(u,x){return x||v[u]||o.replace(":","")})},e.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},e.diff=function(t,c,n){var r,o=f.p(c),d=S(t),g=(d.utcOffset()-this.utcOffset())*p,y=this-d,s=f.m(this,d);return s=(r={},r[T]=s/12,r[N]=s,r[nt]=s/3,r[I]=(y-g)/6048e5,r[O]=(y-g)/864e5,r[A]=y/h,r[H]=y/p,r[E]=y/W,r)[o]||y,n?s:f.a(s)},e.daysInMonth=function(){return this.endOf(N).$D},e.$locale=function(){return Y[this.$L]},e.locale=function(t,c){if(!t)return this.$L;var n=this.clone(),r=R(t,c,!0);return r&&(n.$L=r),n},e.clone=function(){return f.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},l}(),st=B.prototype;return S.prototype=st,[["$ms",z],["$s",E],["$m",H],["$H",A],["$W",O],["$M",N],["$y",T],["$D",j]].forEach(function(l){st[l[1]]=function(e){return this.$g(e,l[0],l[1])}}),S.extend=function(l,e){return l.$i||(l(e,B,S),l.$i=!0),S},S.locale=R,S.isDayjs=G,S.unix=function(l){return S(1e3*l)},S.en=Y[L],S.Ls=Y,S.p={},S})}}]);
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[1654],{81654:function(ht,W,p){"use strict";p.r(W),p.d(W,{default:function(){return y}});var h=p(63313),z=p(92260),E=p(87807),H=p(17079),A=p(18790),O=p(84875),I=p.n(O),N=p(52604),nt=p(82259),T=p(25515),j=p(11847),rt=function(a){var i=a.children;return i},ct=rt,M=p(60795);function k(s){return s!=null}var J=function(a){var i=a.itemPrefixCls,f=a.component,$=a.span,v=a.className,u=a.style,x=a.labelStyle,D=a.contentStyle,w=a.bordered,C=a.label,F=a.content,U=a.colon,P=f;if(w){var b;return h.createElement(P,{className:I()((b={},(0,E.Z)(b,"".concat(i,"-item-label"),k(C)),(0,E.Z)(b,"".concat(i,"-item-content"),k(F)),b),v),style:u,colSpan:$},k(C)&&h.createElement("span",{style:x},C),k(F)&&h.createElement("span",{style:D},F))}return h.createElement(P,{className:I()("".concat(i,"-item"),v),style:u,colSpan:$},h.createElement("div",{className:"".concat(i,"-item-container")},(C||C===0)&&h.createElement("span",{className:I()("".concat(i,"-item-label"),(0,E.Z)({},"".concat(i,"-item-no-colon"),!U)),style:x},C),(F||F===0)&&h.createElement("span",{className:I()("".concat(i,"-item-content")),style:D},F)))},V=J;function L(s,a,i){var f=a.colon,$=a.prefixCls,v=a.bordered,u=i.component,x=i.type,D=i.showLabel,w=i.showContent,C=i.labelStyle,F=i.contentStyle;return s.map(function(U,P){var b=U.props,Q=b.label,X=b.children,K=b.prefixCls,q=K===void 0?$:K,_=b.className,Z=b.style,at=b.labelStyle,tt=b.contentStyle,it=b.span,ot=it===void 0?1:it,et=U.key;return typeof u=="string"?h.createElement(V,{key:"".concat(x,"-").concat(et||P),className:_,style:Z,labelStyle:(0,M.Z)((0,M.Z)({},C),at),contentStyle:(0,M.Z)((0,M.Z)({},F),tt),span:ot,colon:f,component:u,itemPrefixCls:q,bordered:v,label:D?Q:null,content:w?X:null}):[h.createElement(V,{key:"label-".concat(et||P),className:_,style:(0,M.Z)((0,M.Z)((0,M.Z)({},C),Z),at),span:1,colon:f,component:u[0],itemPrefixCls:q,bordered:v,label:Q}),h.createElement(V,{key:"content-".concat(et||P),className:_,style:(0,M.Z)((0,M.Z)((0,M.Z)({},F),Z),tt),span:ot*2-1,component:u[1],itemPrefixCls:q,bordered:v,content:X})]})}var Y=function(a){var i=h.useContext(R),f=a.prefixCls,$=a.vertical,v=a.row,u=a.index,x=a.bordered;return $?h.createElement(h.Fragment,null,h.createElement("tr",{key:"label-".concat(u),className:"".concat(f,"-row")},L(v,a,(0,M.Z)({component:"th",type:"label",showLabel:!0},i))),h.createElement("tr",{key:"content-".concat(u),className:"".concat(f,"-row")},L(v,a,(0,M.Z)({component:"td",type:"content",showContent:!0},i)))):h.createElement("tr",{key:u,className:"".concat(f,"-row")},L(v,a,(0,M.Z)({component:x?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},i)))},G=Y,R=h.createContext({}),S={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function m(s,a){if(typeof s=="number")return s;if((0,A.Z)(s)==="object")for(var i=0;i<j.c4.length;i++){var f=j.c4[i];if(a[f]&&s[f]!==void 0)return s[f]||S[f]}return 3}function B(s,a,i){var f=s;return(a===void 0||a>i)&&(f=(0,T.Tm)(s,{span:i})),f}function st(s,a){var i=(0,N.Z)(s).filter(function(u){return u}),f=[],$=[],v=a;return i.forEach(function(u,x){var D,w=(D=u.props)===null||D===void 0?void 0:D.span,C=w||1;if(x===i.length-1){$.push(B(u,w,v)),f.push($);return}C<v?(v-=C,$.push(u)):($.push(B(u,C,v)),f.push($),v=a,$=[])}),f}function l(s){var a,i=s.prefixCls,f=s.title,$=s.extra,v=s.column,u=v===void 0?S:v,x=s.colon,D=x===void 0?!0:x,w=s.bordered,C=s.layout,F=s.children,U=s.className,P=s.style,b=s.size,Q=s.labelStyle,X=s.contentStyle,K=h.useContext(nt.E_),q=K.getPrefixCls,_=K.direction,Z=q("descriptions",i),at=h.useState({}),tt=(0,H.Z)(at,2),it=tt[0],ot=tt[1],et=m(u,it);h.useEffect(function(){var ut=j.ZP.subscribe(function(lt){(0,A.Z)(u)==="object"&&ot(lt)});return function(){j.ZP.unsubscribe(ut)}},[]);var dt=st(F,et),mt=h.useMemo(function(){return{labelStyle:Q,contentStyle:X}},[Q,X]);return h.createElement(R.Provider,{value:mt},h.createElement("div",{className:I()(Z,(a={},(0,E.Z)(a,"".concat(Z,"-").concat(b),b&&b!=="default"),(0,E.Z)(a,"".concat(Z,"-bordered"),!!w),(0,E.Z)(a,"".concat(Z,"-rtl"),_==="rtl"),a),U),style:P},(f||$)&&h.createElement("div",{className:"".concat(Z,"-header")},f&&h.createElement("div",{className:"".concat(Z,"-title")},f),$&&h.createElement("div",{className:"".concat(Z,"-extra")},$)),h.createElement("div",{className:"".concat(Z,"-view")},h.createElement("table",null,h.createElement("tbody",null,dt.map(function(ut,lt){return h.createElement(G,{key:lt,index:lt,colon:D,prefixCls:Z,vertical:C==="vertical",bordered:w,row:ut})}))))))}l.Item=ct;var e=l,t={container:"container___nww32",right:"right___o0xXT",title:"title___DHxWh",desc:"desc___frhI6"},c=p(52053),n=p.n(c),r=p(11527),o=z.Z.Link,d;(function(s){s.develop="\u5F00\u53D1\u7248",s.master="\u6B63\u5F0F\u7248"})(d||(d={}));var g=function(a){var i=a.systemInfo;return(0,r.jsxs)("div",{className:t.container,children:[(0,r.jsx)("img",{alt:"logo",style:{width:140,marginRight:20},src:"https://qn.whyour.cn/logo.png"}),(0,r.jsxs)("div",{className:t.right,children:[(0,r.jsx)("span",{className:t.title,children:"\u9752\u9F99"}),(0,r.jsx)("span",{className:t.desc,children:"\u652F\u6301python3\u3001javaScript\u3001shell\u3001typescript \u7684\u5B9A\u65F6\u4EFB\u52A1\u7BA1\u7406\u9762\u677F\uFF08A timed task management panel that supports typescript, javaScript, python3, and shell.\uFF09"}),(0,r.jsxs)(e,{children:[(0,r.jsxs)(e.Item,{label:"\u7248\u672C",span:3,children:[d[i.branch]," v",i.version]}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0\u65F6\u95F4",span:3,children:n()(i.lastCommitTime*1e3).format("YYYY-MM-DD HH:mm:ss")}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0ID",span:3,children:i.lastCommitId}),(0,r.jsx)(e.Item,{label:"\u66F4\u65B0\u65E5\u5FD7",span:3,children:(0,r.jsx)(o,{href:"https://qn.whyour.cn/version.yaml?t=".concat(Date.now()),target:"_blank",children:"\u67E5\u770B"})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(o,{href:"https://github.com/whyour/qinglong",target:"_blank",style:{marginRight:15},children:"Github"}),(0,r.jsx)(o,{href:"https://t.me/jiao_long",target:"_blank",style:{marginRight:15},children:"Telegram\u9891\u9053"}),(0,r.jsx)(o,{href:"https://github.com/whyour/qinglong/issues",target:"_blank",children:"\u63D0\u4EA4BUG"})]})]})]})},y=g},52053:function(ht){(function(W,p){ht.exports=p()})(this,function(){"use strict";var W=1e3,p=6e4,h=36e5,z="millisecond",E="second",H="minute",A="hour",O="day",I="week",N="month",nt="quarter",T="year",j="date",rt="Invalid Date",ct=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var e=["th","st","nd","rd"],t=l%100;return"["+l+(e[(t-20)%10]||e[t]||e[0])+"]"}},J=function(l,e,t){var c=String(l);return!c||c.length>=e?l:""+Array(e+1-c.length).join(t)+l},V={s:J,z:function(l){var e=-l.utcOffset(),t=Math.abs(e),c=Math.floor(t/60),n=t%60;return(e<=0?"+":"-")+J(c,2,"0")+":"+J(n,2,"0")},m:function l(e,t){if(e.date()<t.date())return-l(t,e);var c=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(c,N),r=t-n<0,o=e.clone().add(c+(r?-1:1),N);return+(-(c+(t-n)/(r?n-o:o-n))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:N,y:T,w:I,d:O,D:j,h:A,m:H,s:E,ms:z,Q:nt}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",Y={};Y[L]=k;var G=function(l){return l instanceof B},R=function l(e,t,c){var n;if(!e)return L;if(typeof e=="string"){var r=e.toLowerCase();Y[r]&&(n=r),t&&(Y[r]=t,n=r);var o=e.split("-");if(!n&&o.length>1)return l(o[0])}else{var d=e.name;Y[d]=e,n=d}return!c&&n&&(L=n),n||!c&&L},S=function(l,e){if(G(l))return l.clone();var t=typeof e=="object"?e:{};return t.date=l,t.args=arguments,new B(t)},m=V;m.l=R,m.i=G,m.w=function(l,e){return S(l,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var B=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t)}var e=l.prototype;return e.parse=function(t){this.$d=function(c){var n=c.date,r=c.utc;if(n===null)return new Date(NaN);if(m.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var o=n.match(ct);if(o){var d=o[2]-1||0,g=(o[7]||"0").substring(0,3);return r?new Date(Date.UTC(o[1],d,o[3]||1,o[4]||0,o[5]||0,o[6]||0,g)):new Date(o[1],d,o[3]||1,o[4]||0,o[5]||0,o[6]||0,g)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return m},e.isValid=function(){return this.$d.toString()!==rt},e.isSame=function(t,c){var n=S(t);return this.startOf(c)<=n&&n<=this.endOf(c)},e.isAfter=function(t,c){return S(t)<this.startOf(c)},e.isBefore=function(t,c){return this.endOf(c)<S(t)},e.$g=function(t,c,n){return m.u(t)?this[c]:this.set(n,t)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(t,c){var n=this,r=!!m.u(c)||c,o=m.p(t),d=function(v,u){var x=m.w(n.$u?Date.UTC(n.$y,u,v):new Date(n.$y,u,v),n);return r?x:x.endOf(O)},g=function(v,u){return m.w(n.toDate()[v].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(u)),n)},y=this.$W,s=this.$M,a=this.$D,i="set"+(this.$u?"UTC":"");switch(o){case T:return r?d(1,0):d(31,11);case N:return r?d(1,s):d(0,s+1);case I:var f=this.$locale().weekStart||0,$=(y<f?y+7:y)-f;return d(r?a-$:a+(6-$),s);case O:case j:return g(i+"Hours",0);case A:return g(i+"Minutes",1);case H:return g(i+"Seconds",2);case E:return g(i+"Milliseconds",3);default:return this.clone()}},e.endOf=function(t){return this.startOf(t,!1)},e.$set=function(t,c){var n,r=m.p(t),o="set"+(this.$u?"UTC":""),d=(n={},n[O]=o+"Date",n[j]=o+"Date",n[N]=o+"Month",n[T]=o+"FullYear",n[A]=o+"Hours",n[H]=o+"Minutes",n[E]=o+"Seconds",n[z]=o+"Milliseconds",n)[r],g=r===O?this.$D+(c-this.$W):c;if(r===N||r===T){var y=this.clone().set(j,1);y.$d[d](g),y.init(),this.$d=y.set(j,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](g);return this.init(),this},e.set=function(t,c){return this.clone().$set(t,c)},e.get=function(t){return this[m.p(t)]()},e.add=function(t,c){var n,r=this;t=Number(t);var o=m.p(c),d=function(s){var a=S(r);return m.w(a.date(a.date()+Math.round(s*t)),r)};if(o===N)return this.set(N,this.$M+t);if(o===T)return this.set(T,this.$y+t);if(o===O)return d(1);if(o===I)return d(7);var g=(n={},n[H]=p,n[A]=h,n[E]=W,n)[o]||1,y=this.$d.getTime()+t*g;return m.w(y,this)},e.subtract=function(t,c){return this.add(-1*t,c)},e.format=function(t){var c=this,n=this.$locale();if(!this.isValid())return n.invalidDate||rt;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=m.z(this),d=this.$H,g=this.$m,y=this.$M,s=n.weekdays,a=n.months,i=function(u,x,D,w){return u&&(u[x]||u(c,r))||D[x].slice(0,w)},f=function(u){return m.s(d%12||12,u,"0")},$=n.meridiem||function(u,x,D){var w=u<12?"AM":"PM";return D?w.toLowerCase():w},v={YY:String(this.$y).slice(-2),YYYY:m.s(this.$y,4,"0"),M:y+1,MM:m.s(y+1,2,"0"),MMM:i(n.monthsShort,y,a,3),MMMM:i(a,y),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:i(n.weekdaysMin,this.$W,s,2),ddd:i(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(d),HH:m.s(d,2,"0"),h:f(1),hh:f(2),a:$(d,g,!0),A:$(d,g,!1),m:String(g),mm:m.s(g,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:o};return r.replace(M,function(u,x){return x||v[u]||o.replace(":","")})},e.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},e.diff=function(t,c,n){var r,o=m.p(c),d=S(t),g=(d.utcOffset()-this.utcOffset())*p,y=this-d,s=m.m(this,d);return s=(r={},r[T]=s/12,r[N]=s,r[nt]=s/3,r[I]=(y-g)/6048e5,r[O]=(y-g)/864e5,r[A]=y/h,r[H]=y/p,r[E]=y/W,r)[o]||y,n?s:m.a(s)},e.daysInMonth=function(){return this.endOf(N).$D},e.$locale=function(){return Y[this.$L]},e.locale=function(t,c){if(!t)return this.$L;var n=this.clone(),r=R(t,c,!0);return r&&(n.$L=r),n},e.clone=function(){return m.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},l}(),st=B.prototype;return S.prototype=st,[["$ms",z],["$s",E],["$m",H],["$H",A],["$W",O],["$M",N],["$y",T],["$D",j]].forEach(function(l){st[l[1]]=function(e){return this.$g(e,l[0],l[1])}}),S.extend=function(l,e){return l.$i||(l(e,B,S),l.$i=!0),S},S.locale=R,S.isDayjs=G,S.unix=function(l){return S(1e3*l)},S.en=Y[L],S.Ls=Y,S.p={},S})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2260],{90328:function(ee,b,i){"use strict";i.d(b,{Z:function(){return y}});var u=i(14797),t=i(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},z=E,d=i(46420),p=function(R,Z){return t.createElement(d.Z,(0,u.Z)((0,u.Z)({},R),{},{ref:Z,icon:z}))};p.displayName="CopyOutlined";var y=t.forwardRef(p)},32132:function(ee,b,i){"use strict";i.d(b,{Z:function(){return y}});var u=i(14797),t=i(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},z=E,d=i(46420),p=function(R,Z){return t.createElement(d.Z,(0,u.Z)((0,u.Z)({},R),{},{ref:Z,icon:z}))};p.displayName="EditOutlined";var y=t.forwardRef(p)},20277:function(ee,b,i){"use strict";var u=i(60795),t=i(25641),E=i(63313),z=i.n(E),d=function(f,R){var Z={};for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&R.indexOf(x)<0&&(Z[x]=f[x]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,x=Object.getOwnPropertySymbols(f);w<x.length;w++)R.indexOf(x[w])<0&&Object.prototype.propertyIsEnumerable.call(f,x[w])&&(Z[x[w]]=f[x[w]]);return Z},p={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},y=E.forwardRef(function(f,R){var Z=function(ue){var pe=ue.keyCode;pe===t.Z.ENTER&&ue.preventDefault()},x=function(ue){var pe=ue.keyCode,be=f.onClick;pe===t.Z.ENTER&&be&&be()},w=f.style,C=f.noStyle,te=f.disabled,ne=d(f,["style","noStyle","disabled"]),P={};return C||(P=(0,u.Z)({},p)),te&&(P.pointerEvents="none"),P=(0,u.Z)((0,u.Z)({},P),w),E.createElement("div",(0,u.Z)({role:"button",tabIndex:0,ref:R},ne,{onKeyDown:Z,onKeyUp:x,style:P}))});b.Z=y},92260:function(ee,b,i){"use strict";i.d(b,{Z:function(){return Gt}});var u=i(60795),t=i(63313),E=i(87807),z=i(18790),d=i(17079),p=i(59673),y=i(90328),f=i(32132),R=i(84875),Z=i.n(R),x=i(874),w=i.n(x),C=i(71860),te=i(52604),ne=i(36997),P=i(26230),re=i(92976),ue=i(33951),pe=i(82259),be=i(76557),$e=i(20277),ze=i(9712),Ie=i(15367),Ke=i(14797),ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},vt=ft,pt=i(46420),Ae=function(r,a){return t.createElement(pt.Z,(0,Ke.Z)((0,Ke.Z)({},r),{},{ref:a,icon:vt}))};Ae.displayName="EnterOutlined";var yt=t.forwardRef(Ae),je=i(25641),mt=i(67742),gt=i(25515),Et=function(r){var a=r.prefixCls,n=r["aria-label"],o=r.className,v=r.style,D=r.direction,N=r.maxLength,T=r.autoSize,A=T===void 0?!0:T,m=r.value,F=r.onSave,j=r.onCancel,K=r.onEnd,k=r.component,U=r.enterIcon,ae=U===void 0?t.createElement(yt,null):U,X=t.useRef(null),M=t.useRef(!1),Y=t.useRef(),G=t.useState(m),q=(0,d.Z)(G,2),_=q[0],L=q[1];t.useEffect(function(){L(m)},[m]),t.useEffect(function(){if(X.current&&X.current.resizableTextArea){var h=X.current.resizableTextArea.textArea;h.focus();var S=h.value.length;h.setSelectionRange(S,S)}},[]);var ye=function(S){var I=S.target;L(I.value.replace(/[\n\r]/g,""))},oe=function(){M.current=!0},H=function(){M.current=!1},W=function(S){var I=S.keyCode;M.current||(Y.current=I)},g=function(){F(_.trim())},me=function(S){var I=S.keyCode,ge=S.ctrlKey,he=S.altKey,fe=S.metaKey,le=S.shiftKey;Y.current===I&&!M.current&&!ge&&!he&&!fe&&!le&&(I===je.Z.ENTER?(g(),K==null||K()):I===je.Z.ESC&&j())},ie=function(){g()},de=k?"".concat(a,"-").concat(k):"",B=Z()(a,"".concat(a,"-edit-content"),(0,E.Z)({},"".concat(a,"-rtl"),D==="rtl"),o,de);return t.createElement("div",{className:B,style:v},t.createElement(mt.Z,{ref:X,maxLength:N,value:_,onChange:ye,onKeyDown:W,onKeyUp:me,onCompositionStart:oe,onCompositionEnd:H,onBlur:ie,"aria-label":n,rows:1,autoSize:A}),ae!==null?(0,gt.Tm)(ae,{className:"".concat(a,"-edit-content-confirm")}):null)},Ct=Et;function Le(e,r){return t.useMemo(function(){var a=!!e;return[a,(0,u.Z)((0,u.Z)({},r),a&&(0,z.Z)(e)==="object"?e:null)]},[e])}var ht=function(r,a){var n=t.useRef(!1);t.useEffect(function(){n.current?r():n.current=!0},a)},St=ht,bt=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a},xt=t.forwardRef(function(e,r){var a=e.prefixCls,n=e.component,o=n===void 0?"article":n,v=e.className,D=e.setContentRef,N=e.children,T=e.direction,A=bt(e,["prefixCls","component","className","setContentRef","children","direction"]),m=t.useContext(pe.E_),F=m.getPrefixCls,j=m.direction,K=T!=null?T:j,k=r;D&&(k=(0,ue.sQ)(r,D));var U=F("typography",a),ae=Z()(U,(0,E.Z)({},"".concat(U,"-rtl"),K==="rtl"),v);return t.createElement(o,(0,u.Z)({className:ae,ref:k},A),N)}),ke=xt;function Ue(e){var r=(0,z.Z)(e);return r==="string"||r==="number"}function Ot(e){var r=0;return e.forEach(function(a){Ue(a)?r+=String(a).length:r+=1}),r}function Be(e,r){for(var a=0,n=[],o=0;o<e.length;o+=1){if(a===r)return n;var v=e[o],D=Ue(v),N=D?String(v).length:1,T=a+N;if(T>r){var A=r-a;return n.push(String(v).slice(0,A)),n}n.push(v),a=T}return e}var Rt=0,xe=1,He=2,De=3,We=4,Zt=function(r){var a=r.enabledMeasure,n=r.children,o=r.text,v=r.width,D=r.fontSize,N=r.rows,T=r.onEllipsis,A=t.useState([0,0,0]),m=(0,d.Z)(A,2),F=(0,d.Z)(m[0],3),j=F[0],K=F[1],k=F[2],U=m[1],ae=t.useState(Rt),X=(0,d.Z)(ae,2),M=X[0],Y=X[1],G=t.useState(0),q=(0,d.Z)(G,2),_=q[0],L=q[1],ye=t.useRef(null),oe=t.useRef(null),H=t.useMemo(function(){return(0,te.Z)(o)},[o]),W=t.useMemo(function(){return Ot(H)},[H]),g=t.useMemo(function(){return!a||M!==De?n(H,!1):n(Be(H,K),K<W)},[a,M,n,H,K,W]);(0,ne.Z)(function(){a&&v&&D&&W&&(Y(xe),U([0,Math.ceil(W/2),W]))},[a,v,D,o,W,N]),(0,ne.Z)(function(){var B;M===xe&&L(((B=ye.current)===null||B===void 0?void 0:B.offsetHeight)||0)},[M]),(0,ne.Z)(function(){var B,h;if(_){if(M===xe){var S=((B=oe.current)===null||B===void 0?void 0:B.offsetHeight)||0,I=N*_;S<=I?(Y(We),T(!1)):Y(He)}else if(M===He)if(j!==k){var ge=((h=oe.current)===null||h===void 0?void 0:h.offsetHeight)||0,he=N*_,fe=j,le=k;j===k-1?le=j:ge<=he?fe=K:le=K;var Ze=Math.ceil((fe+le)/2);U([fe,Ze,le])}else Y(De),T(!0)}},[M,j,k,N,_]);var me={width:v,whiteSpace:"normal",margin:0,padding:0},ie=function(h,S,I){return t.createElement("span",{"aria-hidden":!0,ref:S,style:(0,u.Z)({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(D/2)*2},I)},h)},de=function(h,S){var I=Be(H,h);return ie(n(I,!0),S,me)};return t.createElement(t.Fragment,null,g,a&&M!==De&&M!==We&&t.createElement(t.Fragment,null,ie("lg",ye,{wordBreak:"keep-all",whiteSpace:"nowrap"}),M===xe?ie(n(H,!1),oe,me):de(K,oe)))},wt=Zt,Pt=function(r){var a=r.enabledEllipsis,n=r.isEllipsis,o=r.children,v=r.tooltipProps;return!(v!=null&&v.title)||!a?o:t.createElement(Ie.Z,(0,u.Z)({open:n?void 0:!1},v),o)},Tt=Pt,Mt=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a};function It(e,r){var a=e.mark,n=e.code,o=e.underline,v=e.delete,D=e.strong,N=e.keyboard,T=e.italic,A=r;function m(F,j){F&&(A=t.createElement(j,{},A))}return m(D,"strong"),m(o,"u"),m(v,"del"),m(n,"code"),m(a,"mark"),m(N,"kbd"),m(T,"i"),A}function Oe(e,r,a){return e===!0||e===void 0?r:e||a&&r}function Ve(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}var Lt="...",Dt=t.forwardRef(function(e,r){var a,n,o,v=e.prefixCls,D=e.className,N=e.style,T=e.type,A=e.disabled,m=e.children,F=e.ellipsis,j=e.editable,K=e.copyable,k=e.component,U=e.title,ae=Mt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),X=t.useContext(pe.E_),M=X.getPrefixCls,Y=X.direction,G=(0,be.E)("Text")[0],q=t.useRef(null),_=t.useRef(null),L=M("typography",v),ye=(0,re.Z)(ae,["mark","code","delete","underline","strong","keyboard","italic"]),oe=Le(j),H=(0,d.Z)(oe,2),W=H[0],g=H[1],me=(0,P.Z)(!1,{value:g.editing}),ie=(0,d.Z)(me,2),de=ie[0],B=ie[1],h=g.triggerType,S=h===void 0?["icon"]:h,I=function(l){var c;l&&((c=g.onStart)===null||c===void 0||c.call(g)),B(l)};St(function(){var s;de||(s=_.current)===null||s===void 0||s.focus()},[de]);var ge=function(l){l==null||l.preventDefault(),I(!0)},he=function(l){var c;(c=g.onChange)===null||c===void 0||c.call(g,l),I(!1)},fe=function(){var l;(l=g.onCancel)===null||l===void 0||l.call(g),I(!1)},le=Le(K),Ze=(0,d.Z)(le,2),Ne=Ze[0],ve=Ze[1],Jt=t.useState(!1),Fe=(0,d.Z)(Jt,2),we=Fe[0],Ge=Fe[1],Je=t.useRef(),Qe={};ve.format&&(Qe.format=ve.format);var Xe=function(){window.clearTimeout(Je.current)},Qt=function(l){var c;l==null||l.preventDefault(),l==null||l.stopPropagation(),w()(ve.text||String(m)||"",Qe),Ge(!0),Xe(),Je.current=window.setTimeout(function(){Ge(!1)},3e3),(c=ve.onCopy)===null||c===void 0||c.call(ve,l)};t.useEffect(function(){return Xe},[]);var Xt=t.useState(!1),Ye=(0,d.Z)(Xt,2),_e=Ye[0],Yt=Ye[1],_t=t.useState(!1),qe=(0,d.Z)(_t,2),et=qe[0],qt=qe[1],en=t.useState(!1),tt=(0,d.Z)(en,2),tn=tt[0],nn=tt[1],rn=t.useState(!1),nt=(0,d.Z)(rn,2),rt=nt[0],an=nt[1],on=t.useState(!1),at=(0,d.Z)(on,2),ot=at[0],ln=at[1],sn=t.useState(!0),it=(0,d.Z)(sn,2),cn=it[0],un=it[1],dn=Le(F,{expandable:!1}),lt=(0,d.Z)(dn,2),se=lt[0],O=lt[1],J=se&&!tn,st=O.rows,Ee=st===void 0?1:st,Pe=t.useMemo(function(){return!J||O.suffix!==void 0||O.onEllipsis||O.expandable||W||Ne},[J,O,W,Ne]);(0,ne.Z)(function(){se&&!Pe&&(Yt((0,ze.G)("webkitLineClamp")),qt((0,ze.G)("textOverflow")))},[Pe,se]);var Q=t.useMemo(function(){return Pe?!1:Ee===1?et:_e},[Pe,et,_e]),ct=J&&(Q?ot:rt),fn=J&&Ee===1&&Q,Te=J&&Ee>1&&Q,vn=function(l){var c;nn(!0),(c=O.onExpand)===null||c===void 0||c.call(O,l)},pn=t.useState(0),ut=(0,d.Z)(pn,2),yn=ut[0],mn=ut[1],gn=t.useState(0),dt=(0,d.Z)(gn,2),En=dt[0],Cn=dt[1],hn=function(l,c){var $=l.offsetWidth,V;mn($),Cn(parseInt((V=window.getComputedStyle)===null||V===void 0?void 0:V.call(window,c).fontSize,10)||0)},Sn=function(l){var c;an(l),rt!==l&&((c=O.onEllipsis)===null||c===void 0||c.call(O,l))};t.useEffect(function(){var s=q.current;if(se&&Q&&s){var l=Te?s.offsetHeight<s.scrollHeight:s.offsetWidth<s.scrollWidth;ot!==l&&ln(l)}},[se,Q,m,Te,cn]),t.useEffect(function(){var s=q.current;if(!(typeof IntersectionObserver=="undefined"||!s||!Q||!J)){var l=new IntersectionObserver(function(){un(!!s.offsetParent)});return l.observe(s),function(){l.disconnect()}}},[Q,J]);var ce={};O.tooltip===!0?ce={title:(a=g.text)!==null&&a!==void 0?a:m}:t.isValidElement(O.tooltip)?ce={title:O.tooltip}:(0,z.Z)(O.tooltip)==="object"?ce=(0,u.Z)({title:(n=g.text)!==null&&n!==void 0?n:m},O.tooltip):ce={title:O.tooltip};var Me=t.useMemo(function(){var s=function(c){return["string","number"].includes((0,z.Z)(c))};if(!(!se||Q)){if(s(g.text))return g.text;if(s(m))return m;if(s(U))return U;if(s(ce.title))return ce.title}},[se,Q,U,ce.title,ct]);if(de)return t.createElement(Ct,{value:(o=g.text)!==null&&o!==void 0?o:typeof m=="string"?m:"",onSave:he,onCancel:fe,onEnd:g.onEnd,prefixCls:L,className:D,style:N,direction:Y,component:k,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});var bn=function(){var l=O.expandable,c=O.symbol;if(!l)return null;var $;return c?$=c:$=G.expand,t.createElement("a",{key:"expand",className:"".concat(L,"-expand"),onClick:vn,"aria-label":G.expand},$)},xn=function(){if(W){var l=g.icon,c=g.tooltip,$=(0,te.Z)(c)[0]||G.edit,V=typeof $=="string"?$:"";return S.includes("icon")?t.createElement(Ie.Z,{key:"edit",title:c===!1?"":$},t.createElement($e.Z,{ref:_,className:"".concat(L,"-edit"),onClick:ge,"aria-label":V},l||t.createElement(f.Z,{role:"button"}))):null}},On=function(){if(Ne){var l=ve.tooltips,c=ve.icon,$=Ve(l),V=Ve(c),Se=we?Oe($[1],G.copied):Oe($[0],G.copy),wn=we?G.copied:G.copy,Pn=typeof Se=="string"?Se:wn;return t.createElement(Ie.Z,{key:"copy",title:Se},t.createElement($e.Z,{className:Z()("".concat(L,"-copy"),we&&"".concat(L,"-copy-success")),onClick:Qt,"aria-label":Pn},we?Oe(V[1],t.createElement(p.Z,null),!0):Oe(V[0],t.createElement(y.Z,null),!0)))}},Rn=function(l){return[l&&bn(),xn(),On()]},Zn=function(l){return[l&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Lt),O.suffix,Rn(l)]};return t.createElement(C.Z,{onResize:hn,disabled:!J||Q},function(s){var l;return t.createElement(Tt,{tooltipProps:ce,enabledEllipsis:J,isEllipsis:ct},t.createElement(ke,(0,u.Z)({className:Z()((l={},(0,E.Z)(l,"".concat(L,"-").concat(T),T),(0,E.Z)(l,"".concat(L,"-disabled"),A),(0,E.Z)(l,"".concat(L,"-ellipsis"),se),(0,E.Z)(l,"".concat(L,"-single-line"),J&&Ee===1),(0,E.Z)(l,"".concat(L,"-ellipsis-single-line"),fn),(0,E.Z)(l,"".concat(L,"-ellipsis-multiple-line"),Te),l),D),prefixCls:v,style:(0,u.Z)((0,u.Z)({},N),{WebkitLineClamp:Te?Ee:void 0}),component:k,ref:(0,ue.sQ)(s,q,r),direction:Y,onClick:S.includes("text")?ge:void 0,"aria-label":Me==null?void 0:Me.toString(),title:U},ye),t.createElement(wt,{enabledMeasure:J&&!Q,text:m,rows:Ee,width:yn,fontSize:En,onEllipsis:Sn},function(c,$){var V=c;c.length&&$&&Me&&(V=t.createElement("span",{key:"show-content","aria-hidden":!0},V));var Se=It(e,t.createElement(t.Fragment,null,V,Zn($)));return Se})))})}),Re=Dt,Nt=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a},$t=t.forwardRef(function(e,r){var a=e.ellipsis,n=e.rel,o=Nt(e,["ellipsis","rel"]),v=(0,u.Z)((0,u.Z)({},o),{rel:n===void 0&&o.target==="_blank"?"noopener noreferrer":n});return delete v.navigate,t.createElement(Re,(0,u.Z)({},v,{ref:r,ellipsis:!!a,component:"a"}))}),zt=$t,Kt=t.forwardRef(function(e,r){return t.createElement(Re,(0,u.Z)({ref:r},e,{component:"div"}))}),At=Kt,jt=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a},kt=function(r,a){var n=r.ellipsis,o=jt(r,["ellipsis"]),v=t.useMemo(function(){return n&&(0,z.Z)(n)==="object"?(0,re.Z)(n,["expandable","rows"]):n},[n]);return t.createElement(Re,(0,u.Z)({ref:a},o,{ellipsis:v,component:"span"}))},Ut=t.forwardRef(kt),Bt=i(20341),Ht=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a},Wt=(0,Bt.a)(1,2,3,4,5),Vt=t.forwardRef(function(e,r){var a=e.level,n=a===void 0?1:a,o=Ht(e,["level"]),v;return Wt.includes(n)?v="h".concat(n):v="h1",t.createElement(Re,(0,u.Z)({ref:r},o,{component:v}))}),Ft=Vt,Ce=ke;Ce.Text=Ut,Ce.Link=zt,Ce.Title=Ft,Ce.Paragraph=At;var Gt=Ce},874:function(ee,b,i){"use strict";var u=i(16935),t={"text/plain":"Text","text/html":"Url",default:"Text"},E="Copy to clipboard: #{key}, Enter";function z(p){var y=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,y)}function d(p,y){var f,R,Z,x,w,C,te=!1;y||(y={}),f=y.debug||!1;try{Z=u(),x=document.createRange(),w=document.getSelection(),C=document.createElement("span"),C.textContent=p,C.ariaHidden="true",C.style.all="unset",C.style.position="fixed",C.style.top=0,C.style.clip="rect(0, 0, 0, 0)",C.style.whiteSpace="pre",C.style.webkitUserSelect="text",C.style.MozUserSelect="text",C.style.msUserSelect="text",C.style.userSelect="text",C.addEventListener("copy",function(P){if(P.stopPropagation(),y.format)if(P.preventDefault(),typeof P.clipboardData=="undefined"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var re=t[y.format]||t.default;window.clipboardData.setData(re,p)}else P.clipboardData.clearData(),P.clipboardData.setData(y.format,p);y.onCopy&&(P.preventDefault(),y.onCopy(P.clipboardData))}),document.body.appendChild(C),x.selectNodeContents(C),w.addRange(x);var ne=document.execCommand("copy");if(!ne)throw new Error("copy command was unsuccessful");te=!0}catch(P){f&&console.error("unable to copy using execCommand: ",P),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(y.format||"text",p),y.onCopy&&y.onCopy(window.clipboardData),te=!0}catch(re){f&&console.error("unable to copy using clipboardData: ",re),f&&console.error("falling back to prompt"),R=z("message"in y?y.message:E),window.prompt(R,p)}}finally{w&&(typeof w.removeRange=="function"?w.removeRange(x):w.removeAllRanges()),C&&document.body.removeChild(C),Z()}return te}ee.exports=d},9712:function(ee,b,i){"use strict";i.d(b,{G:function(){return z}});var u=i(65021),t=function(p){if((0,u.Z)()&&window.document.documentElement){var y=Array.isArray(p)?p:[p],f=window.document.documentElement;return y.some(function(R){return R in f.style})}return!1},E=function(p,y){if(!t(p))return!1;var f=document.createElement("div"),R=f.style[p];return f.style[p]=y,f.style[p]!==R};function z(d,p){return!Array.isArray(d)&&p!==void 0?E(d,p):t(d)}},16935:function(ee){ee.exports=function(){var b=document.getSelection();if(!b.rangeCount)return function(){};for(var i=document.activeElement,u=[],t=0;t<b.rangeCount;t++)u.push(b.getRangeAt(t));switch(i.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":i.blur();break;default:i=null;break}return b.removeAllRanges(),function(){b.type==="Caret"&&b.removeAllRanges(),b.rangeCount||u.forEach(function(E){b.addRange(E)}),i&&i.focus()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2536],{25265:function(Re,ge,c){c.d(ge,{Z:function(){return J}});var ne=c(14797),w=c(63313),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ae=X,Ee=c(46420),ye=function(_,b){return w.createElement(Ee.Z,(0,ne.Z)((0,ne.Z)({},_),{},{ref:b,icon:ae}))};ye.displayName="FileOutlined";var J=w.forwardRef(ye)},96062:function(Re,ge,c){c.d(ge,{Z:function(){return s}});var ne=c(18790),w=c(14797),X=c(63313),ae={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ee=ae,ye=c(46420),J=function(g,E){return X.createElement(ye.Z,(0,w.Z)((0,w.Z)({},g),{},{ref:E,icon:Ee}))};J.displayName="CaretDownFilled";var q=X.forwardRef(J),_=c(25265),b=c(24090),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},W=p,ee=function(g,E){return X.createElement(ye.Z,(0,w.Z)((0,w.Z)({},g),{},{ref:E,icon:W}))};ee.displayName="MinusSquareOutlined";var se=X.forwardRef(ee),le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},re=le,z=function(g,E){return X.createElement(ye.Z,(0,w.Z)((0,w.Z)({},g),{},{ref:E,icon:re}))};z.displayName="PlusSquareOutlined";var D=X.forwardRef(z),i=c(84875),h=c.n(i),Z=c(25515);function s(l,g,E,N){var T=N.isLeaf,t=N.expanded,k=N.loading;if(k)return X.createElement(b.Z,{className:"".concat(l,"-switcher-loading-icon")});var y;if(E&&(0,ne.Z)(E)==="object"&&(y=E.showLeafIcon),T){if(!E)return null;if(typeof y!="boolean"&&y){var M=typeof y=="function"?y(N):y,r="".concat(l,"-switcher-line-custom-icon");return(0,Z.l$)(M)?(0,Z.Tm)(M,{className:h()(M.props.className||"",r)}):M}return y?X.createElement(_.Z,{className:"".concat(l,"-switcher-line-icon")}):X.createElement("span",{className:"".concat(l,"-switcher-leaf-line")})}var o="".concat(l,"-switcher-icon"),K=typeof g=="function"?g(N):g;return(0,Z.l$)(K)?(0,Z.Tm)(K,{className:h()(K.props.className||"",o)}):K||(E?t?X.createElement(se,{className:"".concat(l,"-switcher-line-icon")}):X.createElement(D,{className:"".concat(l,"-switcher-line-icon")}):X.createElement(q,{className:o}))}},20791:function(Re,ge,c){c.d(ge,{Z:function(){return g}});var ne=c(60795),w=c(87807),X=c(16803),ae=c(14797),Ee=c(54183),ye=c(9924),J=c(32675),q=c(46954),_=c(49994),b=c(63313),p=c(84875),W=c.n(p),ee=c(43595),se=c(6237),le=function(N){for(var T=N.prefixCls,t=N.level,k=N.isStart,y=N.isEnd,M="".concat(T,"-indent-unit"),r=[],o=0;o<t;o+=1){var K;r.push(b.createElement("span",{key:o,className:W()(M,(K={},(0,w.Z)(K,"".concat(M,"-start"),k[o]),(0,w.Z)(K,"".concat(M,"-end"),y[o]),K))}))}return b.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},r)},re=b.memo(le),z=c(54419),D=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],i="open",h="close",Z="---",s=function(E){(0,q.Z)(T,E);var N=(0,_.Z)(T);function T(){var t;(0,Ee.Z)(this,T);for(var k=arguments.length,y=new Array(k),M=0;M<k;M++)y[M]=arguments[M];return t=N.call.apply(N,[this].concat(y)),t.state={dragNodeHighlight:!1},t.selectHandle=void 0,t.onSelectorClick=function(r){var o=t.props.context.onNodeClick;o(r,(0,z.F)(t.props)),t.isSelectable()?t.onSelect(r):t.onCheck(r)},t.onSelectorDoubleClick=function(r){var o=t.props.context.onNodeDoubleClick;o(r,(0,z.F)(t.props))},t.onSelect=function(r){if(!t.isDisabled()){var o=t.props.context.onNodeSelect;r.preventDefault(),o(r,(0,z.F)(t.props))}},t.onCheck=function(r){if(!t.isDisabled()){var o=t.props,K=o.disableCheckbox,x=o.checked,I=t.props.context.onNodeCheck;if(!(!t.isCheckable()||K)){r.preventDefault();var te=!x;I(r,(0,z.F)(t.props),te)}}},t.onMouseEnter=function(r){var o=t.props.context.onNodeMouseEnter;o(r,(0,z.F)(t.props))},t.onMouseLeave=function(r){var o=t.props.context.onNodeMouseLeave;o(r,(0,z.F)(t.props))},t.onContextMenu=function(r){var o=t.props.context.onNodeContextMenu;o(r,(0,z.F)(t.props))},t.onDragStart=function(r){var o=t.props.context.onNodeDragStart;r.stopPropagation(),t.setState({dragNodeHighlight:!0}),o(r,(0,J.Z)(t));try{r.dataTransfer.setData("text/plain","")}catch(K){}},t.onDragEnter=function(r){var o=t.props.context.onNodeDragEnter;r.preventDefault(),r.stopPropagation(),o(r,(0,J.Z)(t))},t.onDragOver=function(r){var o=t.props.context.onNodeDragOver;r.preventDefault(),r.stopPropagation(),o(r,(0,J.Z)(t))},t.onDragLeave=function(r){var o=t.props.context.onNodeDragLeave;r.stopPropagation(),o(r,(0,J.Z)(t))},t.onDragEnd=function(r){var o=t.props.context.onNodeDragEnd;r.stopPropagation(),t.setState({dragNodeHighlight:!1}),o(r,(0,J.Z)(t))},t.onDrop=function(r){var o=t.props.context.onNodeDrop;r.preventDefault(),r.stopPropagation(),t.setState({dragNodeHighlight:!1}),o(r,(0,J.Z)(t))},t.onExpand=function(r){var o=t.props,K=o.loading,x=o.context.onNodeExpand;K||x(r,(0,z.F)(t.props))},t.setSelectHandle=function(r){t.selectHandle=r},t.getNodeState=function(){var r=t.props.expanded;return t.isLeaf()?null:r?i:h},t.hasChildren=function(){var r=t.props.eventKey,o=t.props.context.keyEntities,K=o[r]||{},x=K.children;return!!(x||[]).length},t.isLeaf=function(){var r=t.props,o=r.isLeaf,K=r.loaded,x=t.props.context.loadData,I=t.hasChildren();return o===!1?!1:o||!x&&!I||x&&K&&!I},t.isDisabled=function(){var r=t.props.disabled,o=t.props.context.disabled;return!!(o||r)},t.isCheckable=function(){var r=t.props.checkable,o=t.props.context.checkable;return!o||r===!1?!1:o},t.syncLoadData=function(r){var o=r.expanded,K=r.loading,x=r.loaded,I=t.props.context,te=I.loadData,Q=I.onNodeLoad;K||te&&o&&!t.isLeaf()&&!t.hasChildren()&&!x&&Q((0,z.F)(t.props))},t.isDraggable=function(){var r=t.props,o=r.data,K=r.context.draggable;return!!(K&&(!K.nodeDraggable||K.nodeDraggable(o)))},t.renderDragHandler=function(){var r=t.props.context,o=r.draggable,K=r.prefixCls;return o!=null&&o.icon?b.createElement("span",{className:"".concat(K,"-draggable-icon")},o.icon):null},t.renderSwitcherIconDom=function(r){var o=t.props.switcherIcon,K=t.props.context.switcherIcon,x=o||K;return typeof x=="function"?x((0,ae.Z)((0,ae.Z)({},t.props),{},{isLeaf:r})):x},t.renderSwitcher=function(){var r=t.props.expanded,o=t.props.context.prefixCls;if(t.isLeaf()){var K=t.renderSwitcherIconDom(!0);return K!==!1?b.createElement("span",{className:W()("".concat(o,"-switcher"),"".concat(o,"-switcher-noop"))},K):null}var x=W()("".concat(o,"-switcher"),"".concat(o,"-switcher_").concat(r?i:h)),I=t.renderSwitcherIconDom(!1);return I!==!1?b.createElement("span",{onClick:t.onExpand,className:x},I):null},t.renderCheckbox=function(){var r=t.props,o=r.checked,K=r.halfChecked,x=r.disableCheckbox,I=t.props.context.prefixCls,te=t.isDisabled(),Q=t.isCheckable();if(!Q)return null;var de=typeof Q!="boolean"?Q:null;return b.createElement("span",{className:W()("".concat(I,"-checkbox"),o&&"".concat(I,"-checkbox-checked"),!o&&K&&"".concat(I,"-checkbox-indeterminate"),(te||x)&&"".concat(I,"-checkbox-disabled")),onClick:t.onCheck},de)},t.renderIcon=function(){var r=t.props.loading,o=t.props.context.prefixCls;return b.createElement("span",{className:W()("".concat(o,"-iconEle"),"".concat(o,"-icon__").concat(t.getNodeState()||"docu"),r&&"".concat(o,"-icon_loading"))})},t.renderSelector=function(){var r=t.state.dragNodeHighlight,o=t.props,K=o.title,x=K===void 0?Z:K,I=o.selected,te=o.icon,Q=o.loading,de=o.data,$=t.props.context,pe=$.prefixCls,Se=$.showIcon,Ce=$.icon,be=$.loadData,ke=$.titleRender,Me=t.isDisabled(),Ne="".concat(pe,"-node-content-wrapper"),xe;if(Se){var De=te||Ce;xe=De?b.createElement("span",{className:W()("".concat(pe,"-iconEle"),"".concat(pe,"-icon__customize"))},typeof De=="function"?De(t.props):De):t.renderIcon()}else be&&Q&&(xe=t.renderIcon());var me;typeof x=="function"?me=x(de):ke?me=ke(de):me=x;var f=b.createElement("span",{className:"".concat(pe,"-title")},me);return b.createElement("span",{ref:t.setSelectHandle,title:typeof x=="string"?x:"",className:W()("".concat(Ne),"".concat(Ne,"-").concat(t.getNodeState()||"normal"),!Me&&(I||r)&&"".concat(pe,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},xe,f,t.renderDropIndicator())},t.renderDropIndicator=function(){var r=t.props,o=r.disabled,K=r.eventKey,x=t.props.context,I=x.draggable,te=x.dropLevelOffset,Q=x.dropPosition,de=x.prefixCls,$=x.indent,pe=x.dropIndicatorRender,Se=x.dragOverNodeKey,Ce=x.direction,be=!!I,ke=!o&&be&&Se===K;return ke?pe({dropPosition:Q,dropLevelOffset:te,indent:$,prefixCls:de,direction:Ce}):null},t}return(0,ye.Z)(T,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var k=this.props.selectable,y=this.props.context.selectable;return typeof k=="boolean"?k:y}},{key:"render",value:function(){var k,y=this.props,M=y.eventKey,r=y.className,o=y.style,K=y.dragOver,x=y.dragOverGapTop,I=y.dragOverGapBottom,te=y.isLeaf,Q=y.isStart,de=y.isEnd,$=y.expanded,pe=y.selected,Se=y.checked,Ce=y.halfChecked,be=y.loading,ke=y.domRef,Me=y.active,Ne=y.data,xe=y.onMouseMove,De=y.selectable,me=(0,X.Z)(y,D),f=this.props.context,P=f.prefixCls,H=f.filterTreeNode,e=f.keyEntities,m=f.dropContainerKey,V=f.dropTargetKey,j=f.draggingNodeKey,n=this.isDisabled(),d=(0,ee.Z)(me,{aria:!0,data:!0}),a=e[M]||{},v=a.level,C=de[de.length-1],S=this.isDraggable(),O=!n&&S,L=j===M,A=De!==void 0?{"aria-selected":!!De}:void 0;return b.createElement("div",(0,ne.Z)({ref:ke,className:W()(r,"".concat(P,"-treenode"),(k={},(0,w.Z)(k,"".concat(P,"-treenode-disabled"),n),(0,w.Z)(k,"".concat(P,"-treenode-switcher-").concat($?"open":"close"),!te),(0,w.Z)(k,"".concat(P,"-treenode-checkbox-checked"),Se),(0,w.Z)(k,"".concat(P,"-treenode-checkbox-indeterminate"),Ce),(0,w.Z)(k,"".concat(P,"-treenode-selected"),pe),(0,w.Z)(k,"".concat(P,"-treenode-loading"),be),(0,w.Z)(k,"".concat(P,"-treenode-active"),Me),(0,w.Z)(k,"".concat(P,"-treenode-leaf-last"),C),(0,w.Z)(k,"".concat(P,"-treenode-draggable"),S),(0,w.Z)(k,"dragging",L),(0,w.Z)(k,"drop-target",V===M),(0,w.Z)(k,"drop-container",m===M),(0,w.Z)(k,"drag-over",!n&&K),(0,w.Z)(k,"drag-over-gap-top",!n&&x),(0,w.Z)(k,"drag-over-gap-bottom",!n&&I),(0,w.Z)(k,"filter-node",H&&H((0,z.F)(this.props))),k)),style:o,draggable:O,"aria-grabbed":L,onDragStart:O?this.onDragStart:void 0,onDragEnter:S?this.onDragEnter:void 0,onDragOver:S?this.onDragOver:void 0,onDragLeave:S?this.onDragLeave:void 0,onDrop:S?this.onDrop:void 0,onDragEnd:S?this.onDragEnd:void 0,onMouseMove:xe},A,d),b.createElement(re,{prefixCls:P,level:v,isStart:Q,isEnd:de}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),T}(b.Component),l=function(N){return b.createElement(se.k.Consumer,null,function(T){return b.createElement(s,(0,ne.Z)({},N,{context:T}))})};l.displayName="TreeNode",l.isTreeNode=1;var g=l},6237:function(Re,ge,c){c.d(ge,{k:function(){return X}});var ne=c(63313),w=c.n(ne),X=ne.createContext(null)},15343:function(Re,ge,c){c.d(ge,{O:function(){return N.Z},Z:function(){return me}});var ne=c(60795),w=c(87807),X=c(18790),ae=c(14797),Ee=c(14402),ye=c(54183),J=c(9924),q=c(32675),_=c(46954),b=c(49994),p=c(63313),W=c(25641),ee=c(62005),se=c(43595),le=c(84875),re=c.n(le),z=c(6237),D=c(62857),i=c(54419);function h(f){if(f==null)throw new TypeError("Cannot destructure "+f)}var Z=c(17079),s=c(16803),l=c(36997),g=c(97511),E=c(39668),N=c(20791),T=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],t=function(P,H){var e=P.className,m=P.style,V=P.motion,j=P.motionNodes,n=P.motionType,d=P.onMotionStart,a=P.onMotionEnd,v=P.active,C=P.treeNodeRequiredProps,S=(0,s.Z)(P,T),O=p.useState(!0),L=(0,Z.Z)(O,2),A=L[0],B=L[1],u=p.useContext(z.k),U=u.prefixCls,F=p.useRef(!1),R=function(){F.current||a(),F.current=!0};(0,p.useEffect)(function(){j&&n==="hide"&&A&&B(!1)},[j]);var G=null;return(0,p.useEffect)(function(){return j&&(G===null?d():clearTimeout(G)),function(){j&&(G=setTimeout(R,0))}},[]),j?p.createElement(E.ZP,(0,ne.Z)({ref:H,visible:A},V,{motionAppear:n==="show",onAppearEnd:R,onLeaveEnd:R}),function(Y,oe){var ce=Y.className,ue=Y.style;return p.createElement("div",{ref:oe,className:re()("".concat(U,"-treenode-motion"),ce),style:ue},j.map(function(fe){var ve=(0,ne.Z)({},(h(fe.data),fe.data)),he=fe.title,Ke=fe.key,Pe=fe.isStart,Le=fe.isEnd;delete ve.children;var Te=(0,i.H8)(Ke,C);return p.createElement(N.Z,(0,ne.Z)({},ve,Te,{title:he,active:v,data:fe.data,key:Ke,isStart:Pe,isEnd:Le}))}))}):p.createElement(N.Z,(0,ne.Z)({domRef:H,className:e,style:m},S,{active:v}))};t.displayName="MotionTreeNode";var k=p.forwardRef(t),y=k;function M(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=f.length,e=P.length;if(Math.abs(H-e)!==1)return{add:!1,key:null};function m(V,j){var n=new Map;V.forEach(function(a){n.set(a,!0)});var d=j.filter(function(a){return!n.has(a)});return d.length===1?d[0]:null}return H<e?{add:!0,key:m(f,P)}:{add:!1,key:m(P,f)}}function r(f,P,H){var e=f.findIndex(function(n){return n.key===H}),m=f[e+1],V=P.findIndex(function(n){return n.key===H});if(m){var j=P.findIndex(function(n){return n.key===m.key});return P.slice(V+1,j)}return P.slice(V+1)}var o=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],K={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},x=function(){},I="RC_TREE_MOTION_".concat(Math.random()),te={key:I},Q={key:I,level:0,index:0,pos:"0",node:te,nodes:[te]},de={parent:null,children:[],pos:Q.pos,data:te,title:null,key:I,isStart:[],isEnd:[]};function $(f,P,H,e){return P===!1||!H?f:f.slice(0,Math.ceil(H/e)+1)}function pe(f){var P=f.key,H=f.pos;return(0,i.km)(P,H)}function Se(f){for(var P=String(f.data.key),H=f;H.parent;)H=H.parent,P="".concat(H.data.key," > ").concat(P);return P}var Ce=p.forwardRef(function(f,P){var H=f.prefixCls,e=f.data,m=f.selectable,V=f.checkable,j=f.expandedKeys,n=f.selectedKeys,d=f.checkedKeys,a=f.loadedKeys,v=f.loadingKeys,C=f.halfCheckedKeys,S=f.keyEntities,O=f.disabled,L=f.dragging,A=f.dragOverNodeKey,B=f.dropPosition,u=f.motion,U=f.height,F=f.itemHeight,R=f.virtual,G=f.focusable,Y=f.activeItem,oe=f.focused,ce=f.tabIndex,ue=f.onKeyDown,fe=f.onFocus,ve=f.onBlur,he=f.onActiveChange,Ke=f.onListChangeStart,Pe=f.onListChangeEnd,Le=(0,s.Z)(f,o),Te=p.useRef(null),Oe=p.useRef(null);p.useImperativeHandle(P,function(){return{scrollTo:function(Ze){Te.current.scrollTo(Ze)},getIndentWidth:function(){return Oe.current.offsetWidth}}});var He=p.useState(j),Ge=(0,Z.Z)(He,2),Je=Ge[0],Qe=Ge[1],qe=p.useState(e),ze=(0,Z.Z)(qe,2),we=ze[0],Ve=ze[1],_e=p.useState(e),Ye=(0,Z.Z)(_e,2),et=Ye[0],Be=Ye[1],tt=p.useState([]),Ae=(0,Z.Z)(tt,2),st=Ae[0],nt=Ae[1],lt=p.useState(null),ot=(0,Z.Z)(lt,2),ct=ot[0],at=ot[1],dt=p.useRef(e);dt.current=e;function rt(){var ie=dt.current;Ve(ie),Be(ie),nt([]),at(null),Pe()}(0,l.Z)(function(){Qe(j);var ie=M(Je,j);if(ie.key!==null)if(ie.add){var Ze=we.findIndex(function(We){var je=We.key;return je===ie.key}),Ie=$(r(we,e,ie.key),R,U,F),Ue=we.slice();Ue.splice(Ze+1,0,de),Be(Ue),nt(Ie),at("show")}else{var $e=e.findIndex(function(We){var je=We.key;return je===ie.key}),Fe=$(r(e,we,ie.key),R,U,F),Xe=e.slice();Xe.splice($e+1,0,de),Be(Xe),nt(Fe),at("hide")}else we!==e&&(Ve(e),Be(e))},[j,e]),p.useEffect(function(){L||rt()},[L]);var ut=u?et:e,it={expandedKeys:j,selectedKeys:n,loadedKeys:a,loadingKeys:v,checkedKeys:d,halfCheckedKeys:C,dragOverNodeKey:A,dropPosition:B,keyEntities:S};return p.createElement(p.Fragment,null,oe&&Y&&p.createElement("span",{style:K,"aria-live":"assertive"},Se(Y)),p.createElement("div",null,p.createElement("input",{style:K,disabled:G===!1||O,tabIndex:G!==!1?ce:null,onKeyDown:ue,onFocus:fe,onBlur:ve,value:"",onChange:x,"aria-label":"for screen reader"})),p.createElement("div",{className:"".concat(H,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},p.createElement("div",{className:"".concat(H,"-indent")},p.createElement("div",{ref:Oe,className:"".concat(H,"-indent-unit")}))),p.createElement(g.Z,(0,ne.Z)({},Le,{data:ut,itemKey:pe,height:U,fullHeight:!1,virtual:R,itemHeight:F,prefixCls:"".concat(H,"-list"),ref:Te,onVisibleChange:function(Ze,Ie){var Ue=new Set(Ze),$e=Ie.filter(function(Fe){return!Ue.has(Fe)});$e.some(function(Fe){return pe(Fe)===I})&&rt()}}),function(ie){var Ze=ie.pos,Ie=(0,ne.Z)({},(h(ie.data),ie.data)),Ue=ie.title,$e=ie.key,Fe=ie.isStart,Xe=ie.isEnd,We=(0,i.km)($e,Ze);delete Ie.key,delete Ie.children;var je=(0,i.H8)(We,it);return p.createElement(y,(0,ne.Z)({},Ie,je,{title:Ue,active:!!Y&&$e===Y.key,pos:Ze,data:ie.data,isStart:Fe,isEnd:Xe,motion:u,motionNodes:$e===I?st:null,motionType:ct,onMotionStart:Ke,onMotionEnd:rt,treeNodeRequiredProps:it,onMouseMove:function(){he(null)}}))}))});Ce.displayName="NodeList";var be=Ce,ke=c(7686);function Me(f){var P=f.dropPosition,H=f.dropLevelOffset,e=f.indent,m={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(P){case-1:m.top=0,m.left=-H*e;break;case 1:m.bottom=0,m.left=-H*e;break;case 0:m.bottom=0,m.left=e;break}return p.createElement("div",{style:m})}var Ne=10,xe=function(f){(0,_.Z)(H,f);var P=(0,b.Z)(H);function H(){var e;(0,ye.Z)(this,H);for(var m=arguments.length,V=new Array(m),j=0;j<m;j++)V[j]=arguments[j];return e=P.call.apply(P,[this].concat(V)),e.destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,i.w$)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=p.createRef(),e.onNodeDragStart=function(n,d){var a=e.state,v=a.expandedKeys,C=a.keyEntities,S=e.props.onDragStart,O=d.props.eventKey;e.dragNode=d,e.dragStartMousePosition={x:n.clientX,y:n.clientY};var L=(0,D._5)(v,O);e.setState({draggingNodeKey:O,dragChildrenKeys:(0,D.wA)(O,C),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(L),window.addEventListener("dragend",e.onWindowDragEnd),S==null||S({event:n,node:(0,i.F)(d.props)})},e.onNodeDragEnter=function(n,d){var a=e.state,v=a.expandedKeys,C=a.keyEntities,S=a.dragChildrenKeys,O=a.flattenNodes,L=a.indent,A=e.props,B=A.onDragEnter,u=A.onExpand,U=A.allowDrop,F=A.direction,R=d.props,G=R.pos,Y=R.eventKey,oe=(0,q.Z)(e),ce=oe.dragNode;if(e.currentMouseOverDroppableNodeKey!==Y&&(e.currentMouseOverDroppableNodeKey=Y),!ce){e.resetDragState();return}var ue=(0,D.OM)(n,ce,d,L,e.dragStartMousePosition,U,O,C,v,F),fe=ue.dropPosition,ve=ue.dropLevelOffset,he=ue.dropTargetKey,Ke=ue.dropContainerKey,Pe=ue.dropTargetPos,Le=ue.dropAllowed,Te=ue.dragOverNodeKey;if(S.indexOf(he)!==-1||!Le){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(Oe){clearTimeout(e.delayedDragEnterLogic[Oe])}),ce.props.eventKey!==d.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[G]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var Oe=(0,Ee.Z)(v),He=C[d.props.eventKey];He&&(He.children||[]).length&&(Oe=(0,D.L0)(v,d.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(Oe),u==null||u(Oe,{node:(0,i.F)(d.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),ce.props.eventKey===he&&ve===0){e.resetDragState();return}e.setState({dragOverNodeKey:Te,dropPosition:fe,dropLevelOffset:ve,dropTargetKey:he,dropContainerKey:Ke,dropTargetPos:Pe,dropAllowed:Le}),B==null||B({event:n,node:(0,i.F)(d.props),expandedKeys:v})},e.onNodeDragOver=function(n,d){var a=e.state,v=a.dragChildrenKeys,C=a.flattenNodes,S=a.keyEntities,O=a.expandedKeys,L=a.indent,A=e.props,B=A.onDragOver,u=A.allowDrop,U=A.direction,F=(0,q.Z)(e),R=F.dragNode;if(R){var G=(0,D.OM)(n,R,d,L,e.dragStartMousePosition,u,C,S,O,U),Y=G.dropPosition,oe=G.dropLevelOffset,ce=G.dropTargetKey,ue=G.dropContainerKey,fe=G.dropAllowed,ve=G.dropTargetPos,he=G.dragOverNodeKey;v.indexOf(ce)!==-1||!fe||(R.props.eventKey===ce&&oe===0?e.state.dropPosition===null&&e.state.dropLevelOffset===null&&e.state.dropTargetKey===null&&e.state.dropContainerKey===null&&e.state.dropTargetPos===null&&e.state.dropAllowed===!1&&e.state.dragOverNodeKey===null||e.resetDragState():Y===e.state.dropPosition&&oe===e.state.dropLevelOffset&&ce===e.state.dropTargetKey&&ue===e.state.dropContainerKey&&ve===e.state.dropTargetPos&&fe===e.state.dropAllowed&&he===e.state.dragOverNodeKey||e.setState({dropPosition:Y,dropLevelOffset:oe,dropTargetKey:ce,dropContainerKey:ue,dropTargetPos:ve,dropAllowed:fe,dragOverNodeKey:he}),B==null||B({event:n,node:(0,i.F)(d.props)}))}},e.onNodeDragLeave=function(n,d){e.currentMouseOverDroppableNodeKey===d.props.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var a=e.props.onDragLeave;a==null||a({event:n,node:(0,i.F)(d.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,d){var a=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),a==null||a({event:n,node:(0,i.F)(d.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,d){var a,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,C=e.state,S=C.dragChildrenKeys,O=C.dropPosition,L=C.dropTargetKey,A=C.dropTargetPos,B=C.dropAllowed;if(B){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),L!==null){var U=(0,ae.Z)((0,ae.Z)({},(0,i.H8)(L,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===L,data:e.state.keyEntities[L].node}),F=S.indexOf(L)!==-1;(0,ee.ZP)(!F,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var R=(0,D.yx)(A),G={event:n,node:(0,i.F)(U),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(S),dropToGap:O!==0,dropPosition:O+Number(R[R.length-1])};v||u==null||u(G),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,d){var a=e.state,v=a.expandedKeys,C=a.flattenNodes,S=d.expanded,O=d.key,L=d.isLeaf;if(!(L||n.shiftKey||n.metaKey||n.ctrlKey)){var A=C.filter(function(u){return u.key===O})[0],B=(0,i.F)((0,ae.Z)((0,ae.Z)({},(0,i.H8)(O,e.getTreeNodeRequiredProps())),{},{data:A.data}));e.setExpandedKeys(S?(0,D._5)(v,O):(0,D.L0)(v,O)),e.onNodeExpand(n,B)}},e.onNodeClick=function(n,d){var a=e.props,v=a.onClick,C=a.expandAction;C==="click"&&e.triggerExpandActionExpand(n,d),v==null||v(n,d)},e.onNodeDoubleClick=function(n,d){var a=e.props,v=a.onDoubleClick,C=a.expandAction;C==="doubleClick"&&e.triggerExpandActionExpand(n,d),v==null||v(n,d)},e.onNodeSelect=function(n,d){var a=e.state.selectedKeys,v=e.state,C=v.keyEntities,S=v.fieldNames,O=e.props,L=O.onSelect,A=O.multiple,B=d.selected,u=d[S.key],U=!B;U?A?a=(0,D.L0)(a,u):a=[u]:a=(0,D._5)(a,u);var F=a.map(function(R){var G=C[R];return G?G.node:null}).filter(function(R){return R});e.setUncontrolledState({selectedKeys:a}),L==null||L(a,{event:"select",selected:U,node:d,selectedNodes:F,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,d,a){var v=e.state,C=v.keyEntities,S=v.checkedKeys,O=v.halfCheckedKeys,L=e.props,A=L.checkStrictly,B=L.onCheck,u=d.key,U,F={event:"check",node:d,checked:a,nativeEvent:n.nativeEvent};if(A){var R=a?(0,D.L0)(S,u):(0,D._5)(S,u),G=(0,D._5)(O,u);U={checked:R,halfChecked:G},F.checkedNodes=R.map(function(ve){return C[ve]}).filter(function(ve){return ve}).map(function(ve){return ve.node}),e.setUncontrolledState({checkedKeys:R})}else{var Y=(0,ke.S)([].concat((0,Ee.Z)(S),[u]),!0,C),oe=Y.checkedKeys,ce=Y.halfCheckedKeys;if(!a){var ue=new Set(oe);ue.delete(u);var fe=(0,ke.S)(Array.from(ue),{checked:!1,halfCheckedKeys:ce},C);oe=fe.checkedKeys,ce=fe.halfCheckedKeys}U=oe,F.checkedNodes=[],F.checkedNodesPositions=[],F.halfCheckedKeys=ce,oe.forEach(function(ve){var he=C[ve];if(he){var Ke=he.node,Pe=he.pos;F.checkedNodes.push(Ke),F.checkedNodesPositions.push({node:Ke,pos:Pe})}}),e.setUncontrolledState({checkedKeys:oe},!1,{halfCheckedKeys:ce})}B==null||B(U,F)},e.onNodeLoad=function(n){var d=n.key,a=new Promise(function(v,C){e.setState(function(S){var O=S.loadedKeys,L=O===void 0?[]:O,A=S.loadingKeys,B=A===void 0?[]:A,u=e.props,U=u.loadData,F=u.onLoad;if(!U||L.indexOf(d)!==-1||B.indexOf(d)!==-1)return null;var R=U(n);return R.then(function(){var G=e.state.loadedKeys,Y=(0,D.L0)(G,d);F==null||F(Y,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:Y}),e.setState(function(oe){return{loadingKeys:(0,D._5)(oe.loadingKeys,d)}}),v()}).catch(function(G){if(e.setState(function(oe){return{loadingKeys:(0,D._5)(oe.loadingKeys,d)}}),e.loadingRetryTimes[d]=(e.loadingRetryTimes[d]||0)+1,e.loadingRetryTimes[d]>=Ne){var Y=e.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,D.L0)(Y,d)}),v()}C(G)}),{loadingKeys:(0,D.L0)(B,d)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,d){var a=e.props.onMouseEnter;a==null||a({event:n,node:d})},e.onNodeMouseLeave=function(n,d){var a=e.props.onMouseLeave;a==null||a({event:n,node:d})},e.onNodeContextMenu=function(n,d){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:d}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,a=new Array(d),v=0;v<d;v++)a[v]=arguments[v];n==null||n.apply(void 0,a)},e.onBlur=function(){var n=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var d=arguments.length,a=new Array(d),v=0;v<d;v++)a[v]=arguments[v];n==null||n.apply(void 0,a)},e.getTreeNodeRequiredProps=function(){var n=e.state,d=n.expandedKeys,a=n.selectedKeys,v=n.loadedKeys,C=n.loadingKeys,S=n.checkedKeys,O=n.halfCheckedKeys,L=n.dragOverNodeKey,A=n.dropPosition,B=n.keyEntities;return{expandedKeys:d||[],selectedKeys:a||[],loadedKeys:v||[],loadingKeys:C||[],checkedKeys:S||[],halfCheckedKeys:O||[],dragOverNodeKey:L,dropPosition:A,keyEntities:B}},e.setExpandedKeys=function(n){var d=e.state,a=d.treeData,v=d.fieldNames,C=(0,i.oH)(a,n,v);e.setUncontrolledState({expandedKeys:n,flattenNodes:C},!0)},e.onNodeExpand=function(n,d){var a=e.state.expandedKeys,v=e.state,C=v.listChanging,S=v.fieldNames,O=e.props,L=O.onExpand,A=O.loadData,B=d.expanded,u=d[S.key];if(!C){var U=a.indexOf(u),F=!B;if((0,ee.ZP)(B&&U!==-1||!B&&U===-1,"Expand state not sync with index check"),F?a=(0,D.L0)(a,u):a=(0,D._5)(a,u),e.setExpandedKeys(a),L==null||L(a,{node:d,expanded:F,nativeEvent:n.nativeEvent}),F&&A){var R=e.onNodeLoad(d);R&&R.then(function(){var G=(0,i.oH)(e.state.treeData,a,S);e.setUncontrolledState({flattenNodes:G})}).catch(function(){var G=e.state.expandedKeys,Y=(0,D._5)(G,u);e.setExpandedKeys(Y)})}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})},e.onActiveChange=function(n){var d=e.state.activeKey,a=e.props.onActiveChange;d!==n&&(e.setState({activeKey:n}),n!==null&&e.scrollTo({key:n}),a==null||a(n))},e.getActiveItem=function(){var n=e.state,d=n.activeKey,a=n.flattenNodes;return d===null?null:a.find(function(v){var C=v.key;return C===d})||null},e.offsetActiveKey=function(n){var d=e.state,a=d.flattenNodes,v=d.activeKey,C=a.findIndex(function(L){var A=L.key;return A===v});C===-1&&n<0&&(C=a.length),C=(C+n+a.length)%a.length;var S=a[C];if(S){var O=S.key;e.onActiveChange(O)}else e.onActiveChange(null)},e.onKeyDown=function(n){var d=e.state,a=d.activeKey,v=d.expandedKeys,C=d.checkedKeys,S=d.fieldNames,O=e.props,L=O.onKeyDown,A=O.checkable,B=O.selectable;switch(n.which){case W.Z.UP:{e.offsetActiveKey(-1),n.preventDefault();break}case W.Z.DOWN:{e.offsetActiveKey(1),n.preventDefault();break}}var u=e.getActiveItem();if(u&&u.data){var U=e.getTreeNodeRequiredProps(),F=u.data.isLeaf===!1||!!(u.data[S.children]||[]).length,R=(0,i.F)((0,ae.Z)((0,ae.Z)({},(0,i.H8)(a,U)),{},{data:u.data,active:!0}));switch(n.which){case W.Z.LEFT:{F&&v.includes(a)?e.onNodeExpand({},R):u.parent&&e.onActiveChange(u.parent.key),n.preventDefault();break}case W.Z.RIGHT:{F&&!v.includes(a)?e.onNodeExpand({},R):u.children&&u.children.length&&e.onActiveChange(u.children[0].key),n.preventDefault();break}case W.Z.ENTER:case W.Z.SPACE:{A&&!R.disabled&&R.checkable!==!1&&!R.disableCheckbox?e.onNodeCheck({},R,!C.includes(a)):!A&&B&&!R.disabled&&R.selectable!==!1&&e.onNodeSelect({},R);break}}}L==null||L(n)},e.setUncontrolledState=function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var v=!1,C=!0,S={};Object.keys(n).forEach(function(O){if(O in e.props){C=!1;return}v=!0,S[O]=n[O]}),v&&(!d||C)&&e.setState((0,ae.Z)((0,ae.Z)({},S),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,J.Z)(H,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var m=this.props.activeKey;m!==void 0&&m!==this.state.activeKey&&(this.setState({activeKey:m}),m!==null&&this.scrollTo({key:m}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var m,V=this.state,j=V.focused,n=V.flattenNodes,d=V.keyEntities,a=V.draggingNodeKey,v=V.activeKey,C=V.dropLevelOffset,S=V.dropContainerKey,O=V.dropTargetKey,L=V.dropPosition,A=V.dragOverNodeKey,B=V.indent,u=this.props,U=u.prefixCls,F=u.className,R=u.style,G=u.showLine,Y=u.focusable,oe=u.tabIndex,ce=oe===void 0?0:oe,ue=u.selectable,fe=u.showIcon,ve=u.icon,he=u.switcherIcon,Ke=u.draggable,Pe=u.checkable,Le=u.checkStrictly,Te=u.disabled,Oe=u.motion,He=u.loadData,Ge=u.filterTreeNode,Je=u.height,Qe=u.itemHeight,qe=u.virtual,ze=u.titleRender,we=u.dropIndicatorRender,Ve=u.onContextMenu,_e=u.onScroll,Ye=u.direction,et=u.rootClassName,Be=u.rootStyle,tt=(0,se.Z)(this.props,{aria:!0,data:!0}),Ae;return Ke&&((0,X.Z)(Ke)==="object"?Ae=Ke:typeof Ke=="function"?Ae={nodeDraggable:Ke}:Ae={}),p.createElement(z.k.Provider,{value:{prefixCls:U,selectable:ue,showIcon:fe,icon:ve,switcherIcon:he,draggable:Ae,draggingNodeKey:a,checkable:Pe,checkStrictly:Le,disabled:Te,keyEntities:d,dropLevelOffset:C,dropContainerKey:S,dropTargetKey:O,dropPosition:L,dragOverNodeKey:A,indent:B,direction:Ye,dropIndicatorRender:we,loadData:He,filterTreeNode:Ge,titleRender:ze,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},p.createElement("div",{role:"tree",className:re()(U,F,et,(m={},(0,w.Z)(m,"".concat(U,"-show-line"),G),(0,w.Z)(m,"".concat(U,"-focused"),j),(0,w.Z)(m,"".concat(U,"-active-focused"),v!==null),m)),style:Be},p.createElement(be,(0,ne.Z)({ref:this.listRef,prefixCls:U,style:R,data:n,disabled:Te,selectable:ue,checkable:!!Pe,motion:Oe,dragging:a!==null,height:Je,itemHeight:Qe,virtual:qe,focusable:Y,focused:j,tabIndex:ce,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ve,onScroll:_e},this.getTreeNodeRequiredProps(),tt))))}}],[{key:"getDerivedStateFromProps",value:function(m,V){var j=V.prevProps,n={prevProps:m};function d(Y){return!j&&Y in m||j&&j[Y]!==m[Y]}var a,v=V.fieldNames;if(d("fieldNames")&&(v=(0,i.w$)(m.fieldNames),n.fieldNames=v),d("treeData")?a=m.treeData:d("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(m.children)),a){n.treeData=a;var C=(0,i.I8)(a,{fieldNames:v});n.keyEntities=(0,ae.Z)((0,w.Z)({},I,Q),C.keyEntities)}var S=n.keyEntities||V.keyEntities;if(d("expandedKeys")||j&&d("autoExpandParent"))n.expandedKeys=m.autoExpandParent||!j&&m.defaultExpandParent?(0,D.r7)(m.expandedKeys,S):m.expandedKeys;else if(!j&&m.defaultExpandAll){var O=(0,ae.Z)({},S);delete O[I],n.expandedKeys=Object.keys(O).map(function(Y){return O[Y].key})}else!j&&m.defaultExpandedKeys&&(n.expandedKeys=m.autoExpandParent||m.defaultExpandParent?(0,D.r7)(m.defaultExpandedKeys,S):m.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var L=(0,i.oH)(a||V.treeData,n.expandedKeys||V.expandedKeys,v);n.flattenNodes=L}if(m.selectable&&(d("selectedKeys")?n.selectedKeys=(0,D.BT)(m.selectedKeys,m):!j&&m.defaultSelectedKeys&&(n.selectedKeys=(0,D.BT)(m.defaultSelectedKeys,m))),m.checkable){var A;if(d("checkedKeys")?A=(0,D.E6)(m.checkedKeys)||{}:!j&&m.defaultCheckedKeys?A=(0,D.E6)(m.defaultCheckedKeys)||{}:a&&(A=(0,D.E6)(m.checkedKeys)||{checkedKeys:V.checkedKeys,halfCheckedKeys:V.halfCheckedKeys}),A){var B=A,u=B.checkedKeys,U=u===void 0?[]:u,F=B.halfCheckedKeys,R=F===void 0?[]:F;if(!m.checkStrictly){var G=(0,ke.S)(U,!0,S);U=G.checkedKeys,R=G.halfCheckedKeys}n.checkedKeys=U,n.halfCheckedKeys=R}}return d("loadedKeys")&&(n.loadedKeys=m.loadedKeys),n}}]),H}(p.Component);xe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Me,allowDrop:function(){return!0},expandAction:!1},xe.TreeNode=N.Z;var De=xe,me=De},62857:function(Re,ge,c){c.d(ge,{BT:function(){return z},Ds:function(){return W},E6:function(){return h},L0:function(){return _},OM:function(){return re},_5:function(){return q},bt:function(){return p},r7:function(){return Z},wA:function(){return ee},yx:function(){return b}});var ne=c(14402),w=c(18790),X=c(63313),ae=c.n(X),Ee=c(62005),ye=c(20791),J=null;function q(s,l){if(!s)return[];var g=s.slice(),E=g.indexOf(l);return E>=0&&g.splice(E,1),g}function _(s,l){var g=(s||[]).slice();return g.indexOf(l)===-1&&g.push(l),g}function b(s){return s.split("-")}function p(s,l){return"".concat(s,"-").concat(l)}function W(s){return s&&s.type&&s.type.isTreeNode}function ee(s,l){var g=[],E=l[s];function N(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];T.forEach(function(t){var k=t.key,y=t.children;g.push(k),N(y)})}return N(E.children),g}function se(s){if(s.parent){var l=b(s.pos);return Number(l[l.length-1])===s.parent.children.length-1}return!1}function le(s){var l=b(s.pos);return Number(l[l.length-1])===0}function re(s,l,g,E,N,T,t,k,y,M){var r,o=s.clientX,K=s.clientY,x=s.target.getBoundingClientRect(),I=x.top,te=x.height,Q=(M==="rtl"?-1:1)*(((N==null?void 0:N.x)||0)-o),de=(Q-12)/E,$=k[g.props.eventKey];if(K<I+te/2){var pe=t.findIndex(function(H){return H.key===$.key}),Se=pe<=0?0:pe-1,Ce=t[Se].key;$=k[Ce]}var be=$.key,ke=$,Me=$.key,Ne=0,xe=0;if(!y.includes(be))for(var De=0;De<de&&se($);De+=1)$=$.parent,xe+=1;var me=l.props.data,f=$.node,P=!0;return le($)&&$.level===0&&K<I+te/2&&T({dragNode:me,dropNode:f,dropPosition:-1})&&$.key===g.props.eventKey?Ne=-1:(ke.children||[]).length&&y.includes(Me)?T({dragNode:me,dropNode:f,dropPosition:0})?Ne=0:P=!1:xe===0?de>-1.5?T({dragNode:me,dropNode:f,dropPosition:1})?Ne=1:P=!1:T({dragNode:me,dropNode:f,dropPosition:0})?Ne=0:T({dragNode:me,dropNode:f,dropPosition:1})?Ne=1:P=!1:T({dragNode:me,dropNode:f,dropPosition:1})?Ne=1:P=!1,{dropPosition:Ne,dropLevelOffset:xe,dropTargetKey:$.key,dropTargetPos:$.pos,dragOverNodeKey:Me,dropContainerKey:Ne===0?null:((r=$.parent)===null||r===void 0?void 0:r.key)||null,dropAllowed:P}}function z(s,l){if(s){var g=l.multiple;return g?s.slice():s.length?[s[0]]:s}}var D=function(l){return l};function i(s,l){if(!s)return[];var g=l||{},E=g.processProps,N=E===void 0?D:E,T=Array.isArray(s)?s:[s];return T.map(function(t){var k=t.children,y=_objectWithoutProperties(t,J),M=i(k,l);return React.createElement(TreeNode,_extends({key:y.key},N(y)),M)})}function h(s){if(!s)return null;var l;if(Array.isArray(s))l={checkedKeys:s,halfCheckedKeys:void 0};else if((0,w.Z)(s)==="object")l={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,Ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return l}function Z(s,l){var g=new Set;function E(N){if(!g.has(N)){var T=l[N];if(T){g.add(N);var t=T.parent,k=T.node;k.disabled||t&&E(t.key)}}}return(s||[]).forEach(function(N){E(N)}),(0,ne.Z)(g)}},7686:function(Re,ge,c){c.d(ge,{S:function(){return ye}});var ne=c(62005);function w(J,q){var _=new Set;return J.forEach(function(b){q.has(b)||_.add(b)}),_}function X(J){var q=J||{},_=q.disabled,b=q.disableCheckbox,p=q.checkable;return!!(_||b)||p===!1}function ae(J,q,_,b){for(var p=new Set(J),W=new Set,ee=0;ee<=_;ee+=1){var se=q.get(ee)||new Set;se.forEach(function(D){var i=D.key,h=D.node,Z=D.children,s=Z===void 0?[]:Z;p.has(i)&&!b(h)&&s.filter(function(l){return!b(l.node)}).forEach(function(l){p.add(l.key)})})}for(var le=new Set,re=_;re>=0;re-=1){var z=q.get(re)||new Set;z.forEach(function(D){var i=D.parent,h=D.node;if(!(b(h)||!D.parent||le.has(D.parent.key))){if(b(D.parent.node)){le.add(i.key);return}var Z=!0,s=!1;(i.children||[]).filter(function(l){return!b(l.node)}).forEach(function(l){var g=l.key,E=p.has(g);Z&&!E&&(Z=!1),!s&&(E||W.has(g))&&(s=!0)}),Z&&p.add(i.key),s&&W.add(i.key),le.add(i.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(w(W,p))}}function Ee(J,q,_,b,p){for(var W=new Set(J),ee=new Set(q),se=0;se<=b;se+=1){var le=_.get(se)||new Set;le.forEach(function(i){var h=i.key,Z=i.node,s=i.children,l=s===void 0?[]:s;!W.has(h)&&!ee.has(h)&&!p(Z)&&l.filter(function(g){return!p(g.node)}).forEach(function(g){W.delete(g.key)})})}ee=new Set;for(var re=new Set,z=b;z>=0;z-=1){var D=_.get(z)||new Set;D.forEach(function(i){var h=i.parent,Z=i.node;if(!(p(Z)||!i.parent||re.has(i.parent.key))){if(p(i.parent.node)){re.add(h.key);return}var s=!0,l=!1;(h.children||[]).filter(function(g){return!p(g.node)}).forEach(function(g){var E=g.key,N=W.has(E);s&&!N&&(s=!1),!l&&(N||ee.has(E))&&(l=!0)}),s||W.delete(h.key),l&&ee.add(h.key),re.add(h.key)}})}return{checkedKeys:Array.from(W),halfCheckedKeys:Array.from(w(ee,W))}}function ye(J,q,_,b){var p=[],W;b?W=b:W=X;var ee=new Set(J.filter(function(z){var D=!!_[z];return D||p.push(z),D})),se=new Map,le=0;Object.keys(_).forEach(function(z){var D=_[z],i=D.level,h=se.get(i);h||(h=new Set,se.set(i,h)),h.add(D),le=Math.max(le,i)}),(0,ne.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var re;return q===!0?re=ae(ee,se,le,W):re=Ee(ee,q.halfCheckedKeys,se,le,W),re}},54419:function(Re,ge,c){c.d(ge,{F:function(){return D},H8:function(){return z},I8:function(){return re},km:function(){return b},oH:function(){return se},w$:function(){return p},zn:function(){return ee}});var ne=c(18790),w=c(14402),X=c(14797),ae=c(16803),Ee=c(92976),ye=c(52604),J=c(62005),q=c(62857),_=["children"];function b(i,h){return i!=null?i:h}function p(i){var h=i||{},Z=h.title,s=h._title,l=h.key,g=h.children,E=Z||"title";return{title:E,_title:s||[E],key:l||"key",children:g||"children"}}function W(i,h){var Z=new Map;function s(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(E){var N=E[h.key],T=E[h.children];warning(N!=null,"Tree node must have a certain key: [".concat(g).concat(N,"]"));var t=String(N);warning(!Z.has(t)||N===null||N===void 0,"Same 'key' exist in the Tree: ".concat(t)),Z.set(t,!0),s(T,"".concat(g).concat(t," > "))})}s(i)}function ee(i){function h(Z){var s=(0,ye.Z)(Z);return s.map(function(l){if(!(0,q.Ds)(l))return(0,J.ZP)(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var g=l.key,E=l.props,N=E.children,T=(0,ae.Z)(E,_),t=(0,X.Z)({key:g},T),k=h(N);return k.length&&(t.children=k),t}).filter(function(l){return l})}return h(i)}function se(i,h,Z){var s=p(Z),l=s._title,g=s.key,E=s.children,N=new Set(h===!0?[]:h),T=[];function t(k){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(M,r){for(var o=(0,q.bt)(y?y.pos:"0",r),K=b(M[g],o),x,I=0;I<l.length;I+=1){var te=l[I];if(M[te]!==void 0){x=M[te];break}}var Q=(0,X.Z)((0,X.Z)({},(0,Ee.Z)(M,[].concat((0,w.Z)(l),[g,E]))),{},{title:x,key:K,parent:y,pos:o,children:null,data:M,isStart:[].concat((0,w.Z)(y?y.isStart:[]),[r===0]),isEnd:[].concat((0,w.Z)(y?y.isEnd:[]),[r===k.length-1])});return T.push(Q),h===!0||N.has(K)?Q.children=t(M[E]||[],Q):Q.children=[],Q})}return t(i),T}function le(i,h,Z){var s={};(0,ne.Z)(Z)==="object"?s=Z:s={externalGetKey:Z},s=s||{};var l=s,g=l.childrenPropName,E=l.externalGetKey,N=l.fieldNames,T=p(N),t=T.key,k=T.children,y=g||k,M;E?typeof E=="string"?M=function(K){return K[E]}:typeof E=="function"&&(M=function(K){return E(K)}):M=function(K,x){return b(K[t],x)};function r(o,K,x,I){var te=o?o[y]:i,Q=o?(0,q.bt)(x.pos,K):"0",de=o?[].concat((0,w.Z)(I),[o]):[];if(o){var $=M(o,Q),pe={node:o,index:K,pos:Q,key:$,parentPos:x.node?x.pos:null,level:x.level+1,nodes:de};h(pe)}te&&te.forEach(function(Se,Ce){r(Se,Ce,{node:o,pos:Q,level:x?x.level+1:-1},de)})}r(null)}function re(i){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=h.initWrapper,s=h.processEntity,l=h.onProcessFinished,g=h.externalGetKey,E=h.childrenPropName,N=h.fieldNames,T=arguments.length>2?arguments[2]:void 0,t=g||T,k={},y={},M={posEntities:k,keyEntities:y};return Z&&(M=Z(M)||M),le(i,function(r){var o=r.node,K=r.index,x=r.pos,I=r.key,te=r.parentPos,Q=r.level,de=r.nodes,$={node:o,nodes:de,index:K,key:I,pos:x,level:Q},pe=b(I,x);k[x]=$,y[pe]=$,$.parent=k[te],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),s&&s($,M)},{externalGetKey:t,childrenPropName:E,fieldNames:N}),l&&l(M),M}function z(i,h){var Z=h.expandedKeys,s=h.selectedKeys,l=h.loadedKeys,g=h.loadingKeys,E=h.checkedKeys,N=h.halfCheckedKeys,T=h.dragOverNodeKey,t=h.dropPosition,k=h.keyEntities,y=k[i],M={eventKey:i,expanded:Z.indexOf(i)!==-1,selected:s.indexOf(i)!==-1,loaded:l.indexOf(i)!==-1,loading:g.indexOf(i)!==-1,checked:E.indexOf(i)!==-1,halfChecked:N.indexOf(i)!==-1,pos:String(y?y.pos:""),dragOver:T===i&&t===0,dragOverGapTop:T===i&&t===-1,dragOverGapBottom:T===i&&t===1};return M}function D(i){var h=i.data,Z=i.expanded,s=i.selected,l=i.checked,g=i.loaded,E=i.loading,N=i.halfChecked,T=i.dragOver,t=i.dragOverGapTop,k=i.dragOverGapBottom,y=i.pos,M=i.active,r=i.eventKey,o=(0,X.Z)((0,X.Z)({},h),{},{expanded:Z,selected:s,checked:l,loaded:g,loading:E,halfChecked:N,dragOver:T,dragOverGapTop:t,dragOverGapBottom:k,pos:y,active:M,key:r});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,J.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2618],{60822:function(L,U,e){"use strict";e.d(U,{Z:function(){return m}});function m(v){return Object.keys(v).reduce(function(c,_){return(_.startsWith("data-")||_.startsWith("aria-")||_==="role")&&!_.startsWith("data-__")&&(c[_]=v[_]),c},{})}},84468:function(L,U,e){"use strict";e.d(U,{ZP:function(){return te}});var m=e(
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=!0,
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2618],{60822:function(L,U,e){"use strict";e.d(U,{Z:function(){return m}});function m(v){return Object.keys(v).reduce(function(c,_){return(_.startsWith("data-")||_.startsWith("aria-")||_==="role")&&!_.startsWith("data-__")&&(c[_]=v[_]),c},{})}},84468:function(L,U,e){"use strict";e.d(U,{ZP:function(){return te}});var m=e(60795),v=e(87807),c=e(17079),_=e(84875),f=e.n(_),K=e(26230),n=e(63313),A=e(82259),O=e(65189),$=e(60822),h=n.createContext(null),p=h.Provider,C=h,H=n.createContext(null),B=H.Provider,k=e(69370),N=e(33951),oe=e(7893),q=e(76737),le=function(t,o){var d={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&o.indexOf(a)<0&&(d[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r<a.length;r++)o.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(t,a[r])&&(d[a[r]]=t[a[r]]);return d},b=function(o,d){var a,r=n.useContext(C),i=n.useContext(H),I=n.useContext(A.E_),G=I.getPrefixCls,F=I.direction,W=n.useRef(),se=(0,N.sQ)(d,W),V=(0,n.useContext)(q.aM),D=V.isFormItemInput,M=function(S){var T,Z;(T=o.onChange)===null||T===void 0||T.call(o,S),(Z=r==null?void 0:r.onChange)===null||Z===void 0||Z.call(r,S)},ie=o.prefixCls,j=o.className,X=o.children,R=o.style,ne=o.disabled,de=le(o,["prefixCls","className","children","style","disabled"]),ae=G("radio",ie),u=((r==null?void 0:r.optionType)||i)==="button"?"".concat(ae,"-button"):ae,x=(0,m.Z)({},de),re=n.useContext(oe.Z);x.disabled=ne||re,r&&(x.name=r.name,x.onChange=M,x.checked=o.value===r.value,x.disabled=x.disabled||r.disabled);var ce=f()("".concat(u,"-wrapper"),(a={},(0,v.Z)(a,"".concat(u,"-wrapper-checked"),x.checked),(0,v.Z)(a,"".concat(u,"-wrapper-disabled"),x.disabled),(0,v.Z)(a,"".concat(u,"-wrapper-rtl"),F==="rtl"),(0,v.Z)(a,"".concat(u,"-wrapper-in-form-item"),D),a),j);return n.createElement("label",{className:ce,style:R,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave},n.createElement(k.Z,(0,m.Z)({},x,{type:"radio",prefixCls:u,ref:se})),X!==void 0?n.createElement("span",null,X):null)},g=n.forwardRef(b),l=g,y=n.forwardRef(function(t,o){var d,a=n.useContext(A.E_),r=a.getPrefixCls,i=a.direction,I=n.useContext(O.Z),G=(0,K.Z)(t.defaultValue,{value:t.value}),F=(0,c.Z)(G,2),W=F[0],se=F[1],V=function(me){var Ce=W,J=me.target.value;"value"in t||se(J);var Y=t.onChange;Y&&J!==Ce&&Y(me)},D=t.prefixCls,M=t.className,ie=M===void 0?"":M,j=t.options,X=t.buttonStyle,R=X===void 0?"outline":X,ne=t.disabled,de=t.children,ae=t.size,u=t.style,x=t.id,re=t.onMouseEnter,ce=t.onMouseLeave,ve=t.onFocus,S=t.onBlur,T=r("radio",D),Z="".concat(T,"-group"),Q=de;j&&j.length>0&&(Q=j.map(function(E){return typeof E=="string"||typeof E=="number"?n.createElement(l,{key:E.toString(),prefixCls:T,disabled:ne,value:E,checked:W===E},E):n.createElement(l,{key:"radio-group-value-options-".concat(E.value),prefixCls:T,disabled:E.disabled||ne,value:E.value,checked:W===E.value,style:E.style},E.label)}));var fe=ae||I,ue=f()(Z,"".concat(Z,"-").concat(R),(d={},(0,v.Z)(d,"".concat(Z,"-").concat(fe),fe),(0,v.Z)(d,"".concat(Z,"-rtl"),i==="rtl"),d),ie);return n.createElement("div",(0,m.Z)({},(0,$.Z)(t),{className:ue,style:u,onMouseEnter:re,onMouseLeave:ce,onFocus:ve,onBlur:S,id:x,ref:o}),n.createElement(p,{value:{onChange:V,value:W,disabled:t.disabled,name:t.name,optionType:t.optionType}},Q))}),s=n.memo(y),P=function(t,o){var d={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&o.indexOf(a)<0&&(d[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(t);r<a.length;r++)o.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(t,a[r])&&(d[a[r]]=t[a[r]]);return d},ee=function(o,d){var a=n.useContext(A.E_),r=a.getPrefixCls,i=o.prefixCls,I=P(o,["prefixCls"]),G=r("radio",i);return n.createElement(B,{value:"button"},n.createElement(l,(0,m.Z)({prefixCls:G},I,{type:"radio",ref:d})))},w=n.forwardRef(ee),z=l;z.Button=w,z.Group=s,z.__ANT_RADIO=!0;var te=z},28756:function(L,U,e){"use strict";var m=e(87807),v=e(60795),c=e(84875),_=e.n(c),f=e(40804),K=e(92976),n=e(63313),A=e.n(n),O=e(82259),$=e(23474),h=e(7893),p=e(65189),C=e(76737),H=e(16082),B=e(1020),k=e(91967),N=e(60934),oe=function(g,l){var y={};for(var s in g)Object.prototype.hasOwnProperty.call(g,s)&&l.indexOf(s)<0&&(y[s]=g[s]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,s=Object.getOwnPropertySymbols(g);P<s.length;P++)l.indexOf(s[P])<0&&Object.prototype.propertyIsEnumerable.call(g,s[P])&&(y[s[P]]=g[s[P]]);return y},q="SECRET_COMBOBOX_MODE_DO_NOT_USE",le=function(l,y){var s,P=l.prefixCls,ee=l.bordered,w=ee===void 0?!0:ee,z=l.className,te=l.getPopupContainer,t=l.dropdownClassName,o=l.popupClassName,d=l.listHeight,a=d===void 0?256:d,r=l.placement,i=l.listItemHeight,I=i===void 0?24:i,G=l.size,F=l.disabled,W=l.notFoundContent,se=l.status,V=l.showArrow,D=oe(l,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),M=n.useContext(O.E_),ie=M.getPopupContainer,j=M.getPrefixCls,X=M.renderEmpty,R=M.direction,ne=M.virtual,de=M.dropdownMatchSelectWidth,ae=n.useContext(p.Z),u=j("select",P),x=j(),re=(0,N.ri)(u,R),ce=re.compactSize,ve=re.compactItemClassnames,S=n.useMemo(function(){var _e=D.mode;if(_e!=="combobox")return _e===q?"combobox":_e},[D.mode]),T=S==="multiple"||S==="tags",Z=V!==void 0?V:D.loading||!(T||S==="combobox"),Q=(0,n.useContext)(C.aM),fe=Q.status,ue=Q.hasFeedback,E=Q.isFormItemInput,me=Q.feedbackIcon,Ce=(0,B.F)(fe,se),J;W!==void 0?J=W:S==="combobox"?J=null:J=(X||$.Z)("Select");var Y=(0,k.Z)((0,v.Z)((0,v.Z)({},D),{multiple:T,hasFeedback:ue,feedbackIcon:me,showArrow:Z,prefixCls:u})),Oe=Y.suffixIcon,Pe=Y.itemIcon,he=Y.removeIcon,ge=Y.clearIcon,xe=(0,K.Z)(D,["suffixIcon","itemIcon"]),pe=_()(o||t,(0,m.Z)({},"".concat(u,"-dropdown-").concat(R),R==="rtl")),Ee=ce||G||ae,Me=n.useContext(h.Z),be=F!=null?F:Me,ye=_()((s={},(0,m.Z)(s,"".concat(u,"-lg"),Ee==="large"),(0,m.Z)(s,"".concat(u,"-sm"),Ee==="small"),(0,m.Z)(s,"".concat(u,"-rtl"),R==="rtl"),(0,m.Z)(s,"".concat(u,"-borderless"),!w),(0,m.Z)(s,"".concat(u,"-in-form-item"),E),s),(0,B.Z)(u,Ce,ue),ve,z),Ie=function(){return r!==void 0?r:R==="rtl"?"bottomRight":"bottomLeft"};return n.createElement(f.ZP,(0,v.Z)({ref:y,virtual:ne,dropdownMatchSelectWidth:de},xe,{transitionName:(0,H.mL)(x,(0,H.q0)(r),D.transitionName),listHeight:a,listItemHeight:I,mode:S,prefixCls:u,placement:Ie(),direction:R,inputIcon:Oe,menuItemSelectedIcon:Pe,removeIcon:he,clearIcon:ge,notFoundContent:J,className:ye,getPopupContainer:te||ie,dropdownClassName:pe,showArrow:ue||V,disabled:be}))},b=n.forwardRef(le);b.SECRET_COMBOBOX_MODE_DO_NOT_USE=q,b.Option=f.Wx,b.OptGroup=f.Xo,U.Z=b},69370:function(L,U,e){"use strict";var m=e(60795),v=e(14797),c=e(87807),_=e(17079),f=e(16803),K=e(84875),n=e.n(K),A=e(26230),O=e(63313),$=e.n(O),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],p=(0,O.forwardRef)(function(C,H){var B,k=C.prefixCls,N=k===void 0?"rc-checkbox":k,oe=C.className,q=C.style,le=C.checked,b=C.disabled,g=C.defaultChecked,l=g===void 0?!1:g,y=C.type,s=y===void 0?"checkbox":y,P=C.onChange,ee=(0,f.Z)(C,h),w=(0,O.useRef)(null),z=(0,A.Z)(l,{value:le}),te=(0,_.Z)(z,2),t=te[0],o=te[1];(0,O.useImperativeHandle)(H,function(){return{focus:function(){var i;(i=w.current)===null||i===void 0||i.focus()},blur:function(){var i;(i=w.current)===null||i===void 0||i.blur()},input:w.current}});var d=n()(N,oe,(B={},(0,c.Z)(B,"".concat(N,"-checked"),t),(0,c.Z)(B,"".concat(N,"-disabled"),b),B)),a=function(i){b||("checked"in C||o(i.target.checked),P==null||P({target:(0,v.Z)((0,v.Z)({},C),{},{type:s,checked:i.target.checked}),stopPropagation:function(){i.stopPropagation()},preventDefault:function(){i.preventDefault()},nativeEvent:i.nativeEvent}))};return O.createElement("span",{className:d,style:q},O.createElement("input",(0,m.Z)({},ee,{className:"".concat(N,"-input"),ref:w,onChange:a,disabled:b,checked:!!t,type:s})),O.createElement("span",{className:"".concat(N,"-inner")}))});U.Z=p},54689:function(L,U,e){var m=e(41442);function v(c,_){var f=typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(!f){if(Array.isArray(c)||(f=m(c))||_&&c&&typeof c.length=="number"){f&&(c=f);var K=0,n=function(){};return{s:n,n:function(){return K>=c.length?{done:!0}:{done:!1,value:c[K++]}},e:function(p){throw p},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=!0,O=!1,$;return{s:function(){f=f.call(c)},n:function(){var p=f.next();return A=p.done,p},e:function(p){O=!0,$=p},f:function(){try{!A&&f.return!=null&&f.return()}finally{if(O)throw $}}}}L.exports=v,L.exports.__esModule=!0,L.exports.default=L.exports}}]);
|