@abtnode/blocklet-services 1.16.6-beta-7c9b42cc → 1.16.6-beta-1fde60e3
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/api/libs/connect/session.js +29 -11
- package/api/routes/oauth.js +2 -2
- package/build/asset-manifest.json +28 -26
- package/build/index.html +1 -1
- package/build/static/css/{895.c5def0cb.chunk.css → 869.72ea68b3.chunk.css} +2 -2
- package/build/static/js/162.f681dc46.chunk.js +3 -0
- package/build/static/js/{648.5eec48ea.chunk.js → 21.b44a2c67.chunk.js} +3 -3
- package/build/static/js/21.b44a2c67.chunk.js.LICENSE.txt +9 -0
- package/build/static/js/343.9ceac7a2.chunk.js +2 -0
- package/build/static/js/42.c390a3f4.chunk.js +2 -0
- package/build/static/js/460.9225f4c4.chunk.js +2 -0
- package/build/static/js/{547.8daf63c9.chunk.js → 547.9fdd1c8e.chunk.js} +2 -2
- package/build/static/js/{573.fc22f41e.chunk.js → 573.61006a2f.chunk.js} +2 -2
- package/build/static/js/576.d7d4814e.chunk.js +3 -0
- package/build/static/js/{648.5eec48ea.chunk.js.LICENSE.txt → 576.d7d4814e.chunk.js.LICENSE.txt} +0 -10
- package/build/static/js/{690.e2a01dd2.chunk.js → 690.afb99ee7.chunk.js} +3 -3
- package/build/static/js/{737.3e75c89d.chunk.js → 737.ae3a6e25.chunk.js} +2 -2
- package/build/static/js/869.afe2b454.chunk.js +3 -0
- package/build/static/js/{895.ce650598.chunk.js.LICENSE.txt → 869.afe2b454.chunk.js.LICENSE.txt} +12 -10
- package/build/static/js/main.cef8a118.js +3 -0
- package/build/static/js/{main.cbcfd398.js.LICENSE.txt → main.cef8a118.js.LICENSE.txt} +3 -3
- package/build/static/media/iconify.26e4076719101e021ba0.cjs +2 -0
- package/package.json +21 -22
- package/build/static/js/162.58348adf.chunk.js +0 -3
- package/build/static/js/343.22aaa94b.chunk.js +0 -2
- package/build/static/js/42.a0526d16.chunk.js +0 -2
- package/build/static/js/460.81dc5588.chunk.js +0 -2
- package/build/static/js/895.ce650598.chunk.js +0 -3
- package/build/static/js/main.cbcfd398.js +0 -3
- package/build/static/media/iconify.32b54549e843e448ee9b.cjs +0 -2
- /package/build/static/js/{162.58348adf.chunk.js.LICENSE.txt → 162.f681dc46.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{690.e2a01dd2.chunk.js.LICENSE.txt → 690.afb99ee7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/media/{iconify.32b54549e843e448ee9b.cjs.LICENSE.txt → iconify.26e4076719101e021ba0.cjs.LICENSE.txt} +0 -0
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* @remix-run/router v1.
|
|
95
|
+
* @remix-run/router v1.5.0
|
|
96
96
|
*
|
|
97
97
|
* Copyright (c) Remix Software Inc.
|
|
98
98
|
*
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* React Router DOM v6.
|
|
106
|
+
* React Router DOM v6.10.0
|
|
107
107
|
*
|
|
108
108
|
* Copyright (c) Remix Software Inc.
|
|
109
109
|
*
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
* React Router v6.
|
|
117
|
+
* React Router v6.10.0
|
|
118
118
|
*
|
|
119
119
|
* Copyright (c) Remix Software Inc.
|
|
120
120
|
*
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see iconify.26e4076719101e021ba0.cjs.LICENSE.txt */
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function fullIcon(e){return{...iconDefaults,...e}}function mergeIconData(e,t){const n={...e};for(const o in iconDefaults){const e=o;if(void 0!==t[e]){const o=t[e];if(void 0===n[e]){n[e]=o;continue}switch(e){case"rotate":n[e]=(n[e]+o)%4;break;case"hFlip":case"vFlip":n[e]=o!==n[e];break;default:n[e]=o}}}return n}function getIconData$1(e,t,n=!1){const o=function t(n,o){if(void 0!==e.icons[n])return Object.assign({},e.icons[n]);if(o>5)return null;const r=e.aliases;if(r&&void 0!==r[n]){const e=r[n],i=t(e.parent,o+1);return i?mergeIconData(i,e):i}const i=e.chars;return!o&&i&&void 0!==i[n]?t(i[n],o+1):null}(t,0);if(o)for(const r in iconDefaults)void 0===o[r]&&void 0!==e[r]&&(o[r]=e[r]);return o&&n?fullIcon(o):o}function isVariation(e){for(const t in iconDefaults)if(void 0!==e[t])return!0;return!1}function parseIconSet(e,t,n){n=n||{};const o=[];if("object"!==typeof e||"object"!==typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),o.push(e)}));const r=e.icons;Object.keys(r).forEach((n=>{const r=getIconData$1(e,n,!0);r&&(t(n,r),o.push(n))}));const i=n.aliases||"all";if("none"!==i&&"object"===typeof e.aliases){const n=e.aliases;Object.keys(n).forEach((r=>{if("variations"===i&&isVariation(n[r]))return;const c=getIconData$1(e,r,!0);c&&(t(r,c),o.push(r))}))}return o}const optionalProperties={provider:"string",aliases:"object",not_found:"object"};for(const t in iconDefaults)optionalProperties[t]=typeof iconDefaults[t];function quicklyValidateIconSet(e){if("object"!==typeof e||null===e)return null;const t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;for(const r in optionalProperties)if(void 0!==e[r]&&typeof e[r]!==optionalProperties[r])return null;const n=t.icons;for(const r in n){const e=n[r];if(!r.match(matchName)||"string"!==typeof e.body)return null;for(const t in iconDefaults)if(void 0!==e[t]&&typeof e[t]!==typeof iconDefaults[t])return null}const o=t.aliases;if(o)for(const r in o){const e=o[r],t=e.parent;if(!r.match(matchName)||"string"!==typeof t||!n[t]&&!o[t])return null;for(const n in iconDefaults)if(void 0!==e[n]&&typeof e[n]!==typeof iconDefaults[n])return null}return t}const stringToIcon=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!validateIcon(i)?null:i}const i=r[0],c=i.split("-");if(c.length>1){const e={provider:o,prefix:c.shift(),name:c.join("-")};return t&&!validateIcon(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!validateIcon(e,n)?null:e}return null},validateIcon=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(matchName)||!(t&&""===e.prefix||e.prefix.match(matchName))||!e.name.match(matchName)),storageVersion=1;let storage$1=Object.create(null);try{const e=window||self;e&&1===e._iconifyStorage.version&&(storage$1=e._iconifyStorage.storage)}catch(err){}function shareStorage(){try{const e=window||self;e&&!e._iconifyStorage&&(e._iconifyStorage={version:1,storage:storage$1})}catch(err){}}function newStorage(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:Object.create(null)}}function getStorage(e,t){void 0===storage$1[e]&&(storage$1[e]=Object.create(null));const n=storage$1[e];return void 0===n[t]&&(n[t]=newStorage(e,t)),n[t]}function addIconSet(e,t){if(!quicklyValidateIconSet(t))return[];const n=Date.now();return parseIconSet(t,((t,o)=>{o?e.icons[t]=o:e.missing[t]=n}))}function addIconToStorage(e,t,n){try{if("string"===typeof n.body)return e.icons[t]=Object.freeze(fullIcon(n)),!0}catch(err){}return!1}function getIconFromStorage(e,t){const n=e.icons[t];return void 0===n?null:n}function listIcons(e,t){let n,o=[];return n="string"===typeof e?[e]:Object.keys(storage$1),n.forEach((e=>{let n;n="string"===typeof e&&"string"===typeof t?[t]:void 0===storage$1[e]?[]:Object.keys(storage$1[e]),n.forEach((t=>{const n=getStorage(e,t),r=Object.keys(n.icons).map((n=>(""!==e?"@"+e+":":"")+t+":"+n));o=o.concat(r)}))})),o}let simpleNames=!1;function allowSimpleNames(e){return"boolean"===typeof e&&(simpleNames=e),simpleNames}function getIconData(e){const t="string"===typeof e?stringToIcon(e,!0,simpleNames):e;return t?getIconFromStorage(getStorage(t.provider,t.prefix),t.name):null}function addIcon(e,t){const n=stringToIcon(e,!0,simpleNames);if(!n)return!1;return addIconToStorage(getStorage(n.provider,n.prefix),n.name,t)}function addCollection(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t="string"===typeof e.provider?e.provider:""),simpleNames&&""===t&&("string"!==typeof e.prefix||""===e.prefix)){let t=!1;return quicklyValidateIconSet(e)&&(e.prefix="",parseIconSet(e,((e,n)=>{n&&addIcon(e,n)&&(t=!0)}))),t}if("string"!==typeof e.prefix||!validateIcon({provider:t,prefix:e.prefix,name:"a"}))return!1;return!!addIconSet(getStorage(t,e.prefix),e)}function iconExists(e){return null!==getIconData(e)}function getIcon(e){const t=getIconData(e);return t?{...t}:null}const defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});function mergeCustomisations(e,t){const n={};for(const o in e){const r=o;if(n[r]=e[r],void 0===t[r])continue;const i=t[r];switch(r){case"inline":case"slice":"boolean"===typeof i&&(n[r]=i);break;case"hFlip":case"vFlip":!0===i&&(n[r]=!n[r]);break;case"hAlign":case"vAlign":"string"===typeof i&&""!==i&&(n[r]=i);break;case"width":case"height":("string"===typeof i&&""!==i||"number"===typeof i&&i||null===i)&&(n[r]=i);break;case"rotate":"number"===typeof i&&(n[r]+=i)}}return n}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;const o=e.split(unitsSplit);if(null===o||!o.length)return e;const r=[];let i=o.shift(),c=unitsTest.test(i);for(;;){if(c){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");c=!c}}function preserveAspectRatio(e){let t="";switch(e.hAlign){case"left":t+="xMin";break;case"right":t+="xMax";break;default:t+="xMid"}switch(e.vAlign){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet",t}function iconToSVG(e,t){const n={left:e.left,top:e.top,width:e.width,height:e.height};let o,r,i=e.body;[e,t].forEach((e=>{const t=[],o=e.hFlip,r=e.vFlip;let c,s=e.rotate;switch(o?r?s+=2:(t.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),t.push("scale(-1 1)"),n.top=n.left=0):r&&(t.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),t.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:c=n.height/2+n.top,t.unshift("rotate(90 "+c.toString()+" "+c.toString()+")");break;case 2:t.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:c=n.width/2+n.left,t.unshift("rotate(-90 "+c.toString()+" "+c.toString()+")")}s%2===1&&(0===n.left&&0===n.top||(c=n.left,n.left=n.top,n.top=c),n.width!==n.height&&(c=n.width,n.width=n.height,n.height=c)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")})),null===t.width&&null===t.height?(r="1em",o=calculateSize(r,n.width/n.height)):null!==t.width&&null!==t.height?(o=t.width,r=t.height):null!==t.height?(r=t.height,o=calculateSize(r,n.width/n.height)):(o=t.width,r=calculateSize(o,n.height/n.width)),"auto"===o&&(o=n.width),"auto"===r&&(r=n.height),o="string"===typeof o?o:o.toString()+"",r="string"===typeof r?r:r.toString()+"";const c={attributes:{width:o,height:r,preserveAspectRatio:preserveAspectRatio(t),viewBox:n.left.toString()+" "+n.top.toString()+" "+n.width.toString()+" "+n.height.toString()},body:i};return t.inline&&(c.inline=!0),c}function buildIcon(e,t){return iconToSVG(fullIcon(e),t?mergeCustomisations(defaults,t):defaults)}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let counter=0;function replaceIDs(e,t=randomPrefix){const n=[];let o;for(;o=regex.exec(e);)n.push(o[1]);return n.length?(n.forEach((n=>{const o="function"===typeof t?t(n):t+(counter++).toString(),r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")})),e):e}const cacheVersion="iconify2",cachePrefix="iconify",countKey=cachePrefix+"-count",versionKey=cachePrefix+"-version",hour=36e5,cacheExpiration=168,config={local:!0,session:!0};let loaded=!1;const count={local:0,session:0},emptyList={local:[],session:[]};let _window="undefined"===typeof window?{}:window;function getGlobal(e){const t=e+"Storage";try{if(_window&&_window[t]&&"number"===typeof _window[t].length)return _window[t]}catch(err){}return config[e]=!1,null}function setCount(e,t,n){try{return e.setItem(countKey,n.toString()),count[t]=n,!0}catch(err){return!1}}function getCount(e){const t=e.getItem(countKey);if(t){const e=parseInt(t);return e||0}return 0}function initCache(e,t){try{e.setItem(versionKey,"iconify2")}catch(err){}setCount(e,t,0)}function destroyCache(e){try{const t=getCount(e);for(let n=0;n<t;n++)e.removeItem(cachePrefix+n.toString())}catch(err){}}const loadCache=()=>{if(loaded)return;loaded=!0;const e=Math.floor(Date.now()/hour)-168;function t(t){const n=getGlobal(t);if(!n)return;const o=t=>{const o=cachePrefix+t.toString(),r=n.getItem(o);if("string"!==typeof r)return!1;let i=!0;try{const t=JSON.parse(r);if("object"!==typeof t||"number"!==typeof t.cached||t.cached<e||"string"!==typeof t.provider||"object"!==typeof t.data||"string"!==typeof t.data.prefix)i=!1;else{const e=t.provider,n=t.data.prefix;i=addIconSet(getStorage(e,n),t.data).length>0}}catch(err){i=!1}return i||n.removeItem(o),i};try{const e=n.getItem(versionKey);if("iconify2"!==e)return e&&destroyCache(n),void initCache(n,t);let r=getCount(n);for(let n=r-1;n>=0;n--)o(n)||(n===r-1?r--:emptyList[t].push(n));setCount(n,t,r)}catch(err){}}for(const n in config)t(n)},storeCache=(e,t)=>{function n(n){if(!config[n])return!1;const o=getGlobal(n);if(!o)return!1;let r=emptyList[n].shift();if(void 0===r&&(r=count[n],!setCount(o,n,r+1)))return!1;try{const n={cached:Math.floor(Date.now()/hour),provider:e,data:t};o.setItem(cachePrefix+r.toString(),JSON.stringify(n))}catch(err){return!1}return!0}loaded||loadCache(),Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))},cache={};function toggleBrowserCache(e,t){switch(e){case"local":case"session":config[e]=t;break;case"all":for(const e in config)config[e]=t}}const storage=Object.create(null);function setAPIModule(e,t){storage[e]=t}function getAPIModule(e){return storage[e]||storage[""]}function createAPIConfig(e){let t;if("string"===typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)1===fallBackAPISources.length||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());function addAPIProvider(e,t){const n=createAPIConfig(t);return null!==n&&(configStorage[e]=n,!0)}function getAPIConfig(e){return configStorage[e]}function listAPIProviders(){return Object.keys(configStorage)}configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});const mergeParams=(e,t)=>{let n=e,o=-1!==n.indexOf("?");return Object.keys(t).forEach((e=>{let r;try{r=function(e){switch(typeof e){case"boolean":return e?"true":"false";case"number":case"string":return encodeURIComponent(e);default:throw new Error("Invalid parameter")}}(t[e])}catch(err){return}n+=(o?"&":"?")+encodeURIComponent(e)+"="+r,o=!0})),n},maxLengthCache={},pathCache={},detectFetch=()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(err){}return null};let fetchModule=detectFetch();function setFetch(e){fetchModule=e}function getFetch(){return fetchModule}function calculateMaxLength(e,t){const n=getAPIConfig(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const r=mergeParams(t+".json",{icons:""});o=n.maxURL-e-n.path.length-r.length}else o=0;const r=e+":"+t;return pathCache[e]=n.path,maxLengthCache[r]=o,o}function shouldAbort(e){return 404===e}const prepare=(e,t,n)=>{const o=[];let r=maxLengthCache[t];void 0===r&&(r=calculateMaxLength(e,t));const i="icons";let c={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,a)=>{s+=n.length+1,s>=r&&a>0&&(o.push(c),c={type:i,provider:e,prefix:t,icons:[]},s=n.length),c.icons.push(n)})),o.push(c),o};function getPath(e){if("string"===typeof e){if(void 0===pathCache[e]){const t=getAPIConfig(e);if(!t)return"/";pathCache[e]=t.path}return pathCache[e]}return"/"}const send=(e,t,n)=>{if(!fetchModule)return void n("abort",424);let o=getPath(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=mergeParams(e+".json",{icons:n});break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;fetchModule(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(shouldAbort(t)?"abort":"next",t)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{n("next",r)}))})).catch((()=>{n("next",r)}))},fetchAPIModule={prepare:prepare,send:send};function sortIcons(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,c=e.name;void 0===n[r]&&(n[r]=Object.create(null));const s=n[r];void 0===s[i]&&(s[i]=getStorage(r,i));const a=s[i];let l;l=void 0!==a.icons[c]?t.loaded:""===i||void 0!==a.missing[c]?t.missing:t.pending;const u={provider:r,prefix:i,name:c};l.push(u)})),t}const callbacks=Object.create(null),pendingUpdates=Object.create(null);function removeCallback(e,t){e.forEach((e=>{const n=e.provider;if(void 0===callbacks[n])return;const o=callbacks[n],r=e.prefix,i=o[r];i&&(o[r]=i.filter((e=>e.id!==t)))}))}function updateCallbacks(e,t){void 0===pendingUpdates[e]&&(pendingUpdates[e]=Object.create(null));const n=pendingUpdates[e];n[t]||(n[t]=!0,setTimeout((()=>{if(n[t]=!1,void 0===callbacks[e]||void 0===callbacks[e][t])return;const o=callbacks[e][t].slice(0);if(!o.length)return;const r=getStorage(e,t);let i=!1;o.forEach((n=>{const o=n.icons,c=o.pending.length;o.pending=o.pending.filter((n=>{if(n.prefix!==t)return!0;const c=n.name;if(void 0!==r.icons[c])o.loaded.push({provider:e,prefix:t,name:c});else{if(void 0===r.missing[c])return i=!0,!0;o.missing.push({provider:e,prefix:t,name:c})}return!1})),o.pending.length!==c&&(i||removeCallback([{provider:e,prefix:t}],n.id),n.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),n.abort))}))})))}let idCounter=0;function storeCallback(e,t,n){const o=idCounter++,r=removeCallback.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{const t=e.provider,n=e.prefix;void 0===callbacks[t]&&(callbacks[t]=Object.create(null));const o=callbacks[t];void 0===o[n]&&(o[n]=[]),o[n].push(i)})),r}function listToIcons(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"===typeof e?stringToIcon(e,!1,n):e;t&&!validateIcon(r,n)||o.push({provider:r.provider,prefix:r.prefix,name:r.name})})),o}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let c;if(e.random){let t=e.resources.slice(0);for(c=[];t.length>1;){const e=Math.floor(Math.random()*t.length);c.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}c=c.concat(t)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a,l="pending",u=0,d=null,f=[],p=[];function g(){d&&(clearTimeout(d),d=null)}function h(){"pending"===l&&(l="aborted"),g(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"===typeof e&&p.push(e)}function b(){l="failed",p.forEach((e=>{e(void 0,a)}))}function v(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==l)return;g();const o=c.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{g(),"pending"===l&&(v(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),l){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return a=o,void b();if(r)return a=o,void(f.length||(c.length?y():b()));if(g(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),u++,d=setTimeout(y,e.rotate),n(o,t,r.callback)}return"function"===typeof o&&p.push(o),setTimeout(y),function(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:m,abort:h}}}function setConfig(e){if("object"!==typeof e||"object"!==typeof e.resources||!(e.resources instanceof Array)||!e.resources.length)throw new Error("Invalid Reduncancy configuration");const t=Object.create(null);let n;for(n in defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=defaultConfig[n];return t}function initRedundancy(e){const t=setConfig(e);let n=[];function o(){n=n.filter((e=>"pending"===e().status))}const r={query:function(e,r,i){const c=sendQuery(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(c),c},find:function(e){const t=n.find((t=>e(t)));return void 0!==t?t:null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o};return r}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(e){if(void 0===redundancyCache[e]){const t=getAPIConfig(e);if(!t)return;const n={config:t,redundancy:initRedundancy(t)};redundancyCache[e]=n}return redundancyCache[e]}function sendAPIQuery(e,t,n){let o,r;if("string"===typeof e){const t=getAPIModule(e);if(!t)return n(void 0,424),emptyCallback$1;r=t.send;const i=getRedundancyCache(e);i&&(o=i.redundancy)}else{const t=createAPIConfig(e);if(t){o=initRedundancy(t);const n=getAPIModule(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),emptyCallback$1)}function emptyCallback(){}const pendingIcons=Object.create(null),iconsToLoad=Object.create(null),loaderFlags=Object.create(null),queueFlags=Object.create(null);function loadedNewIcons(e,t){void 0===loaderFlags[e]&&(loaderFlags[e]=Object.create(null));const n=loaderFlags[e];n[t]||(n[t]=!0,setTimeout((()=>{n[t]=!1,updateCallbacks(e,t)})))}const errorsCache=Object.create(null);function loadNewIcons(e,t,n){void 0===iconsToLoad[e]&&(iconsToLoad[e]=Object.create(null));const o=iconsToLoad[e];void 0===queueFlags[e]&&(queueFlags[e]=Object.create(null));const r=queueFlags[e];void 0===pendingIcons[e]&&(pendingIcons[e]=Object.create(null));const i=pendingIcons[e];void 0===o[t]?o[t]=n:o[t]=o[t].concat(n).sort(),r[t]||(r[t]=!0,setTimeout((()=>{r[t]=!1;const n=o[t];delete o[t];const c=getAPIModule(e);if(!c)return void function(){const n=(""===e?"":"@"+e+":")+t,o=Math.floor(Date.now()/6e4);errorsCache[n]<o&&(errorsCache[n]=o,console.error('Unable to retrieve icons for "'+n+'" because API is not configured properly.'))}();c.prepare(e,t,n).forEach((n=>{sendAPIQuery(e,n,((o,r)=>{const c=getStorage(e,t);if("object"!==typeof o){if(404!==r)return;const e=Date.now();n.icons.forEach((t=>{c.missing[t]=e}))}else try{const n=addIconSet(c,o);if(!n.length)return;const r=i[t];n.forEach((e=>{delete r[e]})),cache.store&&cache.store(e,o)}catch(s){console.error(s)}loadedNewIcons(e,t)}))}))})))}const isPending=e=>{const t=e.provider,n=e.prefix;return pendingIcons[t]&&pendingIcons[t][n]&&void 0!==pendingIcons[t][n][e.name]},loadIcons=(e,t)=>{const n=sortIcons(listToIcons(e,!0,allowSimpleNames()));if(!n.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(n.loaded,n.missing,n.pending,emptyCallback)})),()=>{e=!1}}const o=Object.create(null),r=[];let i,c;n.pending.forEach((e=>{const t=e.provider,n=e.prefix;if(n===c&&t===i)return;i=t,c=n,r.push({provider:t,prefix:n}),void 0===pendingIcons[t]&&(pendingIcons[t]=Object.create(null));const s=pendingIcons[t];void 0===s[n]&&(s[n]=Object.create(null)),void 0===o[t]&&(o[t]=Object.create(null));const a=o[t];void 0===a[n]&&(a[n]=[])}));const s=Date.now();return n.pending.forEach((e=>{const t=e.provider,n=e.prefix,r=e.name,i=pendingIcons[t][n];void 0===i[r]&&(i[r]=s,o[t][n].push(r))})),r.forEach((e=>{const t=e.provider,n=e.prefix;o[t][n].length&&loadNewIcons(t,n,o[t][n])})),t?storeCallback(t,n,r):emptyCallback},loadIcon=e=>new Promise(((t,n)=>{const o="string"===typeof e?stringToIcon(e):e;loadIcons([o||e],(r=>{if(r.length&&o){const e=getIconFromStorage(getStorage(o.provider,o.prefix),o.name);if(e)return void t(e)}n(e)}))})),elementFinderProperty="iconifyFinder"+Date.now(),elementDataProperty="iconifyData"+Date.now();function renderIconInPlaceholder(e,t,n,o){let r;try{r=document.createElement("span")}catch(err){return o?"":null}const i=iconToSVG(n,mergeCustomisations(defaults,t)),c=e.element,s=e.finder,a=e.name,l=c?c.getAttribute("class"):"",u=s?s.classFilter(l?l.split(/\s+/):[]):[],d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+a.prefix+(""===a.provider?"":" iconify--"+a.provider)+(u.length?" "+u.join(" "):""))+'">'+replaceIDs(i.body)+"</svg>";r.innerHTML=d;const f=r.childNodes[0],p=f.style,g=i.attributes;if(Object.keys(g).forEach((e=>{f.setAttribute(e,g[e])})),i.inline&&(p.verticalAlign="-0.125em"),c){const e=c.attributes;for(let n=0;n<e.length;n++){const t=e.item(n);if(t){const e=t.name;if("class"!==e&&"style"!==e&&void 0===g[e])try{f.setAttribute(e,t.value)}catch(err){}}}const t=c.style;for(let n=0;n<t.length;n++){const e=t[n];p[e]=t[e]}}if(s){const e={name:a,status:"loaded",customisations:t};f[elementDataProperty]=e,f[elementFinderProperty]=s}const h=o?r.innerHTML:f;return c&&c.parentNode?c.parentNode.replaceChild(f,c):r.removeChild(f),h}let nodes=[];function findRootNode(e){for(let t=0;t<nodes.length;t++){const n=nodes[t];if(("function"===typeof n.node?n.node():n.node)===e)return n}}function addRootNode(e,t=!1){let n=findRootNode(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},nodes.push(n),n)}function addBodyNode(){if(document.documentElement)return addRootNode(document.documentElement);nodes.push({node:()=>document.documentElement})}function removeRootNode(e){nodes=nodes.filter((t=>{const n="function"===typeof t.node?t.node():t.node;return e!==n}))}function listRootNodes(){return nodes}function onReady(e){const t=document;"complete"===t.readyState||"loading"!==t.readyState&&!t.documentElement.doScroll?e():(t.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}let callback=null;const observerParams={childList:!0,subtree:!0,attributes:!0};function queueScan(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,callback&&callback(e)})))}function checkMutations(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[elementFinderProperty])return void(n.paused||queueScan(e))}}function continueObserving(e,t){e.observer.instance.observe(t,observerParams)}function startObserver(e){let t=e.observer;if(t&&t.instance)return;const n="function"===typeof e.node?e.node():e.node;n&&(t||(t={paused:0},e.observer=t),t.instance=new MutationObserver(checkMutations.bind(null,e)),continueObserving(e,n),t.paused||queueScan(e))}function startObservers(){listRootNodes().forEach(startObserver)}function stopObserver(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function initObserver(e){const t=null!==callback;callback!==e&&(callback=e,t&&listRootNodes().forEach(stopObserver)),t?startObservers():onReady(startObservers)}function pauseObservingNode(e){(e?[e]:listRootNodes()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function pauseObserver(e){if(e){const t=findRootNode(e);t&&pauseObservingNode(t)}else pauseObservingNode()}function resumeObservingNode(e){(e?[e]:listRootNodes()).forEach((e=>{if(!e.observer)return void startObserver(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const n="function"===typeof e.node?e.node():e.node;if(!n)return;t.instance?continueObserving(e,n):startObserver(e)}}))}function resumeObserver(e){if(e){const t=findRootNode(e);t&&resumeObservingNode(t)}else resumeObservingNode()}function observe(e,t=!1){const n=addRootNode(e,t);return startObserver(n),n}function stopObserving(e){const t=findRootNode(e);t&&(stopObserver(t),removeRootNode(e))}const finders=[];function addFinder(e){-1===finders.indexOf(e)&&finders.push(e)}function cleanIconName(e){return"string"===typeof e&&(e=stringToIcon(e)),null!==e&&validateIcon(e)?e:null}function compareCustomisations(e,t){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(t[o]!==e[o])return!1}return!0}function findPlaceholders(e){const t=[];finders.forEach((n=>{const o=n.find(e);Array.prototype.forEach.call(o,(e=>{const o=e;if(void 0!==o[elementFinderProperty]&&o[elementFinderProperty]!==n)return;const r=cleanIconName(n.name(o));if(null===r)return;o[elementFinderProperty]=n;const i={element:o,finder:n,name:r};t.push(i)}))}));const n=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(n,(e=>{const n=e,o=n[elementFinderProperty],r=n[elementDataProperty];if(!o||!r)return;const i=cleanIconName(o.name(n));if(null===i)return;let c,s=!1;if(i.prefix!==r.name.prefix||i.name!==r.name.name?s=!0:(c=o.customisations(n),compareCustomisations(r.customisations,c)||(s=!0)),s){const e={element:n,finder:o,name:i,customisations:c};t.push(e)}})),t}let scanQueued=!1;function checkPendingIcons(){scanQueued||(scanQueued=!0,setTimeout((()=>{scanQueued&&(scanQueued=!1,scanDOM())})))}const compareIcons=(e,t)=>null!==e&&null!==t&&e.name===t.name&&e.prefix===t.prefix;function scanElement(e){const t=findRootNode(e);t?scanDOM(t):scanDOM({node:e,temporary:!0},!0)}function scanDOM(e,t=!1){scanQueued=!1;const n=Object.create(null);(e?[e]:listRootNodes()).forEach((e=>{const o="function"===typeof e.node?e.node():e.node;if(!o||!o.querySelectorAll)return;let r=!1,i=!1;findPlaceholders(o).forEach((t=>{const o=t.element,c=t.name,s=c.provider,a=c.prefix,l=c.name;let u=o[elementDataProperty];if(void 0!==u&&compareIcons(u.name,c))switch(u.status){case"missing":return;case"loading":if(isPending({provider:s,prefix:a,name:l}))return void(r=!0)}const d=getStorage(s,a);if(void 0===d.icons[l]){if(d.missing[l])return u={name:c,status:"missing",customisations:{}},void(o[elementDataProperty]=u);if(!isPending({provider:s,prefix:a,name:l})){void 0===n[s]&&(n[s]=Object.create(null));const e=n[s];void 0===e[a]&&(e[a]=Object.create(null)),e[a][l]=!0}u={name:c,status:"loading",customisations:{}},o[elementDataProperty]=u,r=!0}else{!i&&e.observer&&(pauseObservingNode(e),i=!0);const n=void 0!==t.customisations?t.customisations:t.finder.customisations(o);renderIconInPlaceholder(t,n,getIconFromStorage(d,l))}})),e.temporary&&!r?stopObserving(o):t&&r?observe(o,!0):i&&e.observer&&resumeObservingNode(e)})),Object.keys(n).forEach((e=>{const t=n[e];Object.keys(t).forEach((n=>{loadIcons(Object.keys(t[n]).map((t=>({provider:e,prefix:n,name:t}))),checkPendingIcons)}))}))}function rotateFromString(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1===0?o(r):0)}}return t}const separator=/[\s,]+/;function flipFromString(e,t){t.split(separator).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function alignmentFromString(e,t){t.split(separator).forEach((t=>{const n=t.trim();switch(n){case"left":case"center":case"right":e.hAlign=n;break;case"top":case"middle":case"bottom":e.vAlign=n;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}function hasAttribute(e,t){return e.hasAttribute(t)}function getAttribute(e,t){return e.getAttribute(t)}function getBooleanAttribute(e,t){const n=e.getAttribute(t);return n===t||"true"===n||""!==n&&"false"!==n&&null}const booleanAttributes=["inline","hFlip","vFlip"],stringAttributes=["width","height"],mainClass="iconify",inlineClass="iconify-inline",selector="i.iconify, span.iconify, i.iconify-inline, span."+inlineClass,finder={find:e=>e.querySelectorAll(selector),name:e=>hasAttribute(e,"data-icon")?getAttribute(e,"data-icon"):null,customisations:(e,t={inline:!1})=>{const n=t,o=e.getAttribute("class");if(-1!==(o?o.split(/\s+/):[]).indexOf(inlineClass)&&(n.inline=!0),hasAttribute(e,"data-rotate")){const t=rotateFromString(getAttribute(e,"data-rotate"));t&&(n.rotate=t)}return hasAttribute(e,"data-flip")&&flipFromString(n,getAttribute(e,"data-flip")),hasAttribute(e,"data-align")&&alignmentFromString(n,getAttribute(e,"data-align")),booleanAttributes.forEach((t=>{if(hasAttribute(e,"data-"+t)){const o=getBooleanAttribute(e,"data-"+t);"boolean"===typeof o&&(n[t]=o)}})),stringAttributes.forEach((t=>{if(hasAttribute(e,"data-"+t)){const o=getAttribute(e,"data-"+t);""!==o&&(n[t]=o)}})),n},classFilter:e=>{const t=[];return e.forEach((e=>{"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&t.push(e)})),t}};function generateIcon(e,t,n){const o=getIconData(e);if(!o)return null;return renderIconInPlaceholder({name:stringToIcon(e)},mergeCustomisations(defaults,"object"===typeof t?t:{}),o,n)}function getVersion(){return"2.2.1"}function renderSVG(e,t){return generateIcon(e,t,!1)}function renderHTML(e,t){return generateIcon(e,t,!0)}function renderIcon(e,t){const n=getIconData(e);if(!n)return null;return iconToSVG(n,mergeCustomisations(defaults,"object"===typeof t?t:{}))}function scan(e){e?scanElement(e):scanDOM()}if("undefined"!==typeof document&&"undefined"!==typeof window){addBodyNode(),addFinder(finder);const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"===typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!addCollection(e))&&console.error(n)}catch(t){console.error(n)}}))}setTimeout((()=>{initObserver(scanDOM),scanDOM()}))}function enableCache(e,t){toggleBrowserCache(e,!1!==t)}function disableCache(e){toggleBrowserCache(e,!0)}if(setAPIModule("",fetchAPIModule),"undefined"!==typeof document&&"undefined"!==typeof window){cache.store=storeCache,loadCache();const t=window;if(void 0!==t.IconifyProviders){const n=t.IconifyProviders;if("object"===typeof n&&null!==n)for(const t in n){const o="IconifyProviders["+t+"] is invalid.";try{const e=n[t];if("object"!==typeof e||!e||void 0===e.resources)continue;addAPIProvider(t,e)||console.error(o)}catch(e){console.error(o)}}}}const _api={getAPIConfig:getAPIConfig,setAPIModule:setAPIModule,sendAPIQuery:sendAPIQuery,setFetch:setFetch,getFetch:getFetch,listAPIProviders:listAPIProviders,mergeParams:mergeParams},Iconify={_api:_api,addAPIProvider:addAPIProvider,loadIcons:loadIcons,loadIcon:loadIcon,iconExists:iconExists,getIcon:getIcon,listIcons:listIcons,addIcon:addIcon,addCollection:addCollection,shareStorage:shareStorage,replaceIDs:replaceIDs,calculateSize:calculateSize,buildIcon:buildIcon,getVersion:getVersion,renderSVG:renderSVG,renderHTML:renderHTML,renderIcon:renderIcon,scan:scan,observe:observe,stopObserving:stopObserving,pauseObserver:pauseObserver,resumeObserver:resumeObserver,enableCache:enableCache,disableCache:disableCache};exports._api=_api,exports.addAPIProvider=addAPIProvider,exports.addCollection=addCollection,exports.addIcon=addIcon,exports.buildIcon=buildIcon,exports.calculateSize=calculateSize,exports.default=Iconify,exports.disableCache=disableCache,exports.enableCache=enableCache,exports.getIcon=getIcon,exports.getVersion=getVersion,exports.iconExists=iconExists,exports.listIcons=listIcons,exports.loadIcon=loadIcon,exports.loadIcons=loadIcons,exports.observe=observe,exports.pauseObserver=pauseObserver,exports.renderHTML=renderHTML,exports.renderIcon=renderIcon,exports.renderSVG=renderSVG,exports.replaceIDs=replaceIDs,exports.resumeObserver=resumeObserver,exports.scan=scan,exports.shareStorage=shareStorage,exports.stopObserving=stopObserving;try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(err){}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.6-beta-
|
|
6
|
+
"version": "1.16.6-beta-1fde60e3",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@abtnode/auth": "1.16.6-beta-
|
|
35
|
-
"@abtnode/client": "1.16.6-beta-
|
|
36
|
-
"@abtnode/constant": "1.16.6-beta-
|
|
37
|
-
"@abtnode/core": "1.16.6-beta-
|
|
38
|
-
"@abtnode/cron": "1.16.6-beta-
|
|
39
|
-
"@abtnode/db": "1.16.6-beta-
|
|
40
|
-
"@abtnode/logger": "1.16.6-beta-
|
|
41
|
-
"@abtnode/router-adapter": "1.16.6-beta-
|
|
42
|
-
"@abtnode/router-templates": "1.16.6-beta-
|
|
43
|
-
"@abtnode/util": "1.16.6-beta-
|
|
34
|
+
"@abtnode/auth": "1.16.6-beta-1fde60e3",
|
|
35
|
+
"@abtnode/client": "1.16.6-beta-1fde60e3",
|
|
36
|
+
"@abtnode/constant": "1.16.6-beta-1fde60e3",
|
|
37
|
+
"@abtnode/core": "1.16.6-beta-1fde60e3",
|
|
38
|
+
"@abtnode/cron": "1.16.6-beta-1fde60e3",
|
|
39
|
+
"@abtnode/db": "1.16.6-beta-1fde60e3",
|
|
40
|
+
"@abtnode/logger": "1.16.6-beta-1fde60e3",
|
|
41
|
+
"@abtnode/router-adapter": "1.16.6-beta-1fde60e3",
|
|
42
|
+
"@abtnode/router-templates": "1.16.6-beta-1fde60e3",
|
|
43
|
+
"@abtnode/util": "1.16.6-beta-1fde60e3",
|
|
44
44
|
"@arcblock/did": "^1.18.75",
|
|
45
45
|
"@arcblock/did-auth": "1.18.75",
|
|
46
46
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@arcblock/event-hub": "1.18.75",
|
|
49
49
|
"@arcblock/jwt": "1.18.75",
|
|
50
50
|
"@arcblock/ws": "1.18.75",
|
|
51
|
-
"@blocklet/constant": "1.16.6-beta-
|
|
51
|
+
"@blocklet/constant": "1.16.6-beta-1fde60e3",
|
|
52
52
|
"@blocklet/form-builder": "^0.1.11",
|
|
53
53
|
"@blocklet/form-collector": "^0.1.6",
|
|
54
|
-
"@blocklet/meta": "1.16.6-beta-
|
|
55
|
-
"@blocklet/sdk": "1.16.6-beta-
|
|
54
|
+
"@blocklet/meta": "1.16.6-beta-1fde60e3",
|
|
55
|
+
"@blocklet/sdk": "1.16.6-beta-1fde60e3",
|
|
56
56
|
"@did-connect/authenticator": "^2.1.52",
|
|
57
57
|
"@did-connect/relay-adapter-express": "^2.1.52",
|
|
58
58
|
"@did-connect/storage-nedb": "^2.1.52",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"@nedb/multi": "^2.0.5"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@abtnode/ux": "1.16.6-beta-
|
|
93
|
-
"@arcblock/did-connect": "^2.5.
|
|
94
|
-
"@arcblock/icons": "^2.5.
|
|
95
|
-
"@arcblock/ux": "^2.5.
|
|
96
|
-
"@blocklet/launcher-layout": "2.0.
|
|
97
|
-
"@blocklet/ui-react": "^2.5.
|
|
92
|
+
"@abtnode/ux": "1.16.6-beta-1fde60e3",
|
|
93
|
+
"@arcblock/did-connect": "^2.5.34",
|
|
94
|
+
"@arcblock/icons": "^2.5.34",
|
|
95
|
+
"@arcblock/ux": "^2.5.34",
|
|
96
|
+
"@blocklet/launcher-layout": "2.0.33",
|
|
97
|
+
"@blocklet/ui-react": "^2.5.34",
|
|
98
98
|
"@emotion/react": "^11.10.4",
|
|
99
99
|
"@emotion/styled": "^11.10.4",
|
|
100
100
|
"@iconify/iconify": "^2.2.1",
|
|
@@ -123,7 +123,6 @@
|
|
|
123
123
|
"prop-types": "^15.8.1",
|
|
124
124
|
"react": "^18.2.0",
|
|
125
125
|
"react-app-rewired": "^2.2.1",
|
|
126
|
-
"react-color": "^2.19.3",
|
|
127
126
|
"react-dom": "^18.2.0",
|
|
128
127
|
"react-error-boundary": "^3.1.4",
|
|
129
128
|
"react-error-overlay": "6.0.9",
|
|
@@ -156,5 +155,5 @@
|
|
|
156
155
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
157
156
|
"email": "shijun@arcblock.io"
|
|
158
157
|
},
|
|
159
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "be8d8eab7d210910e24dae3b389f2c70aa414a13"
|
|
160
159
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 162.58348adf.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[162],{83162:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return lt.LK},configResponsive:function(){return pt},createUpdateEffect:function(){return r.a},useAntdTable:function(){return v},useAsyncEffect:function(){return m},useBoolean:function(){return b},useClickAway:function(){return T},useControllableValue:function(){return L},useCookieState:function(){return x},useCountDown:function(){return A},useCounter:function(){return P},useCreation:function(){return z.Z},useDebounce:function(){return Y},useDebounceEffect:function(){return X},useDebounceFn:function(){return U},useDeepCompareEffect:function(){return K},useDeepCompareLayoutEffect:function(){return J},useDocumentVisibility:function(){return ee},useDrag:function(){return te},useDrop:function(){return ne},useDynamicList:function(){return re},useEventEmitter:function(){return ae},useEventListener:function(){return $},useEventTarget:function(){return se},useExternal:function(){return fe},useFavicon:function(){return ve},useFocusWithin:function(){return he},useFullscreen:function(){return pe},useFusionTable:function(){return we},useGetState:function(){return Ee},useHistoryTravel:function(){return Ze},useHover:function(){return Oe},useInViewport:function(){return Me},useInfiniteScroll:function(){return Re},useInterval:function(){return Le},useIsomorphicLayoutEffect:function(){return Ce},useKeyPress:function(){return De},useLatest:function(){return y.Z},useLocalStorageState:function(){return ze},useLockFn:function(){return Ve},useLongPress:function(){return He},useMap:function(){return Ue},useMemoizedFn:function(){return s.Z},useMount:function(){return Ye.Z},useMouse:function(){return Ge},useMutationObserver:function(){return gn},useNetwork:function(){return $e},usePagination:function(){return f},usePrevious:function(){return et},useRafInterval:function(){return nt},useRafState:function(){return Be},useRafTimeout:function(){return ot},useReactive:function(){return st},useRequest:function(){return l.Z},useResetState:function(){return ft},useResponsive:function(){return bt},useSafeState:function(){return wt},useScroll:function(){return Et},useSelections:function(){return _t},useSessionStorageState:function(){return Zt},useSet:function(){return Ot},useSetState:function(){return St},useSize:function(){return Kt},useTextSelection:function(){return Qt},useThrottle:function(){return rn},useThrottleEffect:function(){return on},useThrottleFn:function(){return nn},useTimeout:function(){return un},useTitle:function(){return sn},useToggle:function(){return p},useTrackedEffect:function(){return ln},useUnmount:function(){return Z.Z},useUnmountedRef:function(){return yt},useUpdate:function(){return R.Z},useUpdateEffect:function(){return d.Z},useUpdateLayoutEffect:function(){return fn},useVirtualList:function(){return dn},useWebSocket:function(){return vn},useWhyDidYouUpdate:function(){return hn}});var r=n(11255),o=n(68079),i=n(46840),u=n(96234),c=n(73930),a=n(30969),s=n(35147),l=n(73042),f=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.defaultPageSize,u=void 0===r?10:r,f=n.defaultCurrent,d=void 0===f?1:f,v=(0,c.__rest)(n,["defaultPageSize","defaultCurrent"]),h=(0,l.Z)(e,Object.assign({defaultParams:[{current:d,pageSize:u}],refreshDepsAction:function(){Z(1)}},v)),g=h.params[0]||{},m=g.current,p=void 0===m?1:m,b=g.pageSize,y=void 0===b?u:b,w=(null===(t=h.data)||void 0===t?void 0:t.total)||0,E=(0,a.useMemo)((function(){return Math.ceil(w/y)}),[y,w]),_=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,u=Math.ceil(w/r);n>u&&(n=Math.max(1,u));var c=h.params||[],a=(0,i.Z)(c),s=a[0],l=void 0===s?{}:s,f=a.slice(1);h.run.apply(h,[Object.assign(Object.assign({},l),{current:n,pageSize:r})].concat((0,o.Z)(f)))},Z=function(e){_(e,y)},O=function(e){_(p,e)};return Object.assign(Object.assign({},h),{pagination:{current:p,pageSize:y,total:w,totalPage:E,onChange:(0,s.Z)(_),changeCurrent:(0,s.Z)(Z),changePageSize:(0,s.Z)(O)}})},d=n(82200),v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.form,l=n.defaultType,v=void 0===l?"simple":l,h=n.defaultParams,g=n.manual,m=void 0!==g&&g,p=n.refreshDeps,b=void 0===p?[]:p,y=n.ready,w=void 0===y||y,E=(0,c.__rest)(n,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),_=f(e,Object.assign({manual:!0},E)),Z=_.params,O=void 0===Z?[]:Z,S=_.run,k=O[2]||{},T=(0,a.useState)((null===k||void 0===k?void 0:k.type)||v),R=(0,u.Z)(T,2),L=R[0],M=R[1],C=(0,a.useRef)({}),x=(0,a.useRef)([]),F=!!(null===r||void 0===r?void 0:r.getInternalHooks),j=function(){if(!r)return{};if(F)return r.getFieldsValue(null,(function(){return!0}));var e=r.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){r.getFieldInstance&&!r.getFieldInstance(n)||(t[n]=e[n])})),t},I=function(){if(!r)return Promise.resolve({});var e=j(),t=Object.keys(e);return F?r.validateFields(t):new Promise((function(e,n){r.validateFields(t,(function(t,r){t?n(t):e(r)}))}))},N=function(){if(r){if(F)return r.setFieldsValue(C.current);var e={};Object.keys(C.current).forEach((function(t){r.getFieldInstance&&!r.getFieldInstance(t)||(e[t]=C.current[t])})),r.setFieldsValue(e)}},A=function(){var e=j();C.current=Object.assign(Object.assign({},C.current),e),M((function(e){return"simple"===e?"advance":"simple"}))},D=function(e){w&&setTimeout((function(){I().then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e||Object.assign(Object.assign({pageSize:n.defaultPageSize||10},(null===O||void 0===O?void 0:O[0])||{}),{current:1});r?(C.current=Object.assign(Object.assign({},C.current),t),S(o,t,{allFormData:C.current,type:L})):S(o)})).catch((function(e){return e}))}))},P=function(){r&&r.resetFields(),D()},z=function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),D()},V=function(e,t,n,r){var u=O||[],c=(0,i.Z)(u),a=c[0],s=c.slice(1);S.apply(void 0,[Object.assign(Object.assign({},a),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})].concat((0,o.Z)(s)))};(0,a.useEffect)((function(){if(O.length>0)return C.current=(null===k||void 0===k?void 0:k.allFormData)||{},N(),void S.apply(void 0,(0,o.Z)(O));!m&&w&&(C.current=(null===h||void 0===h?void 0:h[1])||{},N(),D(null===h||void 0===h?void 0:h[0]))}),[]),(0,d.Z)((function(){w&&N()}),[L]);var q=(0,a.useRef)(!1);return q.current=!1,(0,d.Z)((function(){!m&&w&&(q.current=!0,r&&r.resetFields(),C.current=(null===h||void 0===h?void 0:h[1])||{},N(),D(null===h||void 0===h?void 0:h[0]))}),[w]),(0,d.Z)((function(){q.current||w&&(m||(q.current=!0,_.pagination.changeCurrent(1)))}),(0,o.Z)(b)),Object.assign(Object.assign({},_),{tableProps:{dataSource:(null===(t=_.data)||void 0===t?void 0:t.list)||x.current,loading:_.loading,onChange:(0,s.Z)(V),pagination:{current:_.pagination.current,pageSize:_.pagination.pageSize,total:_.pagination.total}},search:{submit:(0,s.Z)(z),type:L,changeType:(0,s.Z)(A),reset:(0,s.Z)(P)}})},h=n(32723),g=n(32681);var m=function(e,t){(0,a.useEffect)((function(){var t=e(),n=!1;return function(){(0,c.__awaiter)(this,void 0,void 0,(0,h.Z)().mark((function e(){return(0,h.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t,!(0,g.mf)(r[Symbol.asyncIterator])){e.next=11;break}case 1:return e.next=4,t.next();case 4:if(!e.sent.done&&!n){e.next=7;break}return e.abrupt("break",9);case 7:e.next=1;break;case 9:e.next=13;break;case 11:return e.next=13,t;case 13:case"end":return e.stop()}var r}),e)})))}(),function(){n=!0}}),t)};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=(0,a.useState)(e),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,a.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return i((function(t){return t===e?n:e}))},set:function(e){return i(e)},setLeft:function(){return i(e)},setRight:function(){return i(n)}}}),[]);return[o,c]};function b(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=o.toggle,c=o.set,s=(0,a.useMemo)((function(){return{toggle:i,set:function(e){return c(!!e)},setTrue:function(){return c(!0)},setFalse:function(){return c(!1)}}}),[]);return[r,s]}var y=n(11322),w=n(65679);function E(e,t){if(w.Z)return e?(0,g.mf)(e)?e():"current"in e?e.current:e:t}var _=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=E(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=E(n[0]))?t.getRootNode():document},Z=n(14694),O=n(73922),S=function(e){return function(t,n,r){var o=(0,a.useRef)(!1),i=(0,a.useRef)([]),u=(0,a.useRef)([]),c=(0,a.useRef)();e((function(){var e,a=(Array.isArray(r)?r:[r]).map((function(e){return E(e)}));if(!o.current)return o.current=!0,i.current=a,u.current=n,void(c.current=t());a.length===i.current.length&&(0,O.Z)(a,i.current)&&(0,O.Z)(n,u.current)||(null===(e=c.current)||void 0===e||e.call(c),i.current=a,u.current=n,c.current=t())})),(0,Z.Z)((function(){var e;null===(e=c.current)||void 0===e||e.call(c),o.current=!1}))}},k=S(a.useEffect);function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click",r=(0,y.Z)(e);k((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=E(t);return!n||n.contains(e.target)}))||r.current(e)},o=_(t),i=Array.isArray(n)?n:[n];return i.forEach((function(t){return o.addEventListener(t,e)})),function(){i.forEach((function(t){return o.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var R=n(53778);var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultValue,r=t.defaultValuePropName,o=void 0===r?"defaultValue":r,i=t.valuePropName,u=void 0===i?"value":i,c=t.trigger,l=void 0===c?"onChange":c,f=e[u],d=e.hasOwnProperty(u),v=(0,a.useMemo)((function(){return d?f:e.hasOwnProperty(o)?e[o]:n}),[]),h=(0,a.useRef)(v);d&&(h.current=f);var m=(0,R.Z)();function p(t){var n=(0,g.mf)(t)?t(h.current):t;if(d||(h.current=n,m()),e[l]){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e[l].apply(e,[n].concat(o))}}return[h.current,(0,s.Z)(p)]},M=n(24221),C=n.n(M);var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.useState)((function(){var n=C().get(e);return(0,g.HD)(n)?n:(0,g.mf)(t.defaultValue)?t.defaultValue():t.defaultValue})),r=(0,u.Z)(n,2),o=r[0],i=r[1],l=(0,s.Z)((function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign(Object.assign({},t),r),u=(o.defaultValue,(0,c.__rest)(o,["defaultValue"]));i((function(t){var r=(0,g.mf)(n)?n(t):n;return void 0===r?C().remove(e):C().set(e,r,u),r}))}));return[o,l]},F=n(74268),j=n.n(F),I=function(e){if(!e)return 0;var t=j()(e).valueOf()-Date.now();return t<0?0:t},N=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{},n=t.leftTime,r=t.targetDate,o=t.interval,i=void 0===o?1e3:o,c=t.onEnd,s=(0,a.useMemo)((function(){return"leftTime"in e?(0,g.hj)(n)&&n>0?Date.now()+n:void 0:r}),[n,r]),l=(0,a.useState)((function(){return I(s)})),f=(0,u.Z)(l,2),d=f[0],v=f[1],h=(0,y.Z)(c);(0,a.useEffect)((function(){if(s){v(I(s));var e=setInterval((function(){var t,n=I(s);v(n),0===n&&(clearInterval(e),null===(t=h.current)||void 0===t||t.call(h))}),i);return function(){return clearInterval(e)}}v(0)}),[s,i]);var m=(0,a.useMemo)((function(){return N(d)}),[d]);return[d,m]};function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,r=t.max,o=e;return(0,g.hj)(r)&&(o=Math.min(r,o)),(0,g.hj)(n)&&(o=Math.max(n,o)),o}var P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,r=t.max,o=(0,a.useState)((function(){return D(e,{min:n,max:r})})),i=(0,u.Z)(o,2),c=i[0],l=i[1],f=function(e){l((function(t){return D((0,g.hj)(e)?e:e(t),{max:r,min:n})}))},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f((function(t){return t+e}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f((function(t){return t-e}))},h=function(e){f(e)},m=function(){f(e)};return[c,{inc:(0,s.Z)(d),dec:(0,s.Z)(v),set:(0,s.Z)(h),reset:(0,s.Z)(m)}]},z=n(46121),V=n(17917),q=n.n(V),H=n(63310);var U=function(e,t){var n;H.Z&&((0,g.mf)(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var r=(0,y.Z)(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,i=(0,a.useMemo)((function(){return q()((function(){return r.current.apply(r,arguments)}),o,t)}),[]);return(0,Z.Z)((function(){i.cancel()})),{run:i,cancel:i.cancel,flush:i.flush}};var Y=function(e,t){var n=(0,a.useState)(e),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=U((function(){i(e)}),t).run;return(0,a.useEffect)((function(){c()}),[e]),o};var X=function(e,t,n){var r=(0,a.useState)({}),o=(0,u.Z)(r,2),i=o[0],c=o[1],s=U((function(){c({})}),n).run;(0,a.useEffect)((function(){return s()}),t),(0,d.Z)(e,[i])},B=n(15888),W=n.n(B),G=function(e){return function(t,n){var r=(0,a.useRef)(),o=(0,a.useRef)(0);void 0!==n&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return W()(e,t)}(n,r.current)||(r.current=n,o.current+=1),e(t,[o.current])}},K=G(a.useEffect),J=G(a.useLayoutEffect);var $=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,y.Z)(t);k((function(){var t=E(n.target,window);if(null===t||void 0===t?void 0:t.addEventListener){var o=function(e){return r.current(e)};return t.addEventListener(e,o,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,o,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)},Q=function(){return w.Z?document.visibilityState:"visible"};var ee=function(){var e=(0,a.useState)((function(){return Q()})),t=(0,u.Z)(e,2),n=t[0],r=t[1];return $("visibilitychange",(function(){r(Q())}),{target:function(){return document}}),n},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,y.Z)(n),o=(0,y.Z)(e);k((function(){var e=E(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(o.current))},i=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",i),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",i)}}}),[],t)},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,y.Z)(t),r=(0,a.useRef)();k((function(){var t=E(e);if(null===t||void 0===t?void 0:t.addEventListener){var o=function(e,t){var r=e.getData("text/uri-list"),o=e.getData("custom");if(o&&n.current.onDom){var i=o;try{i=JSON.parse(o)}catch(u){i=o}n.current.onDom(i,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},i=function(e){var t,o;e.preventDefault(),e.stopPropagation(),r.current=e.target,null===(o=(t=n.current).onDragEnter)||void 0===o||o.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},c=function(e){var t,o;e.target===r.current&&(null===(o=(t=n.current).onDragLeave)||void 0===o||o.call(t,e))},a=function(e){var t,r;e.preventDefault(),o(e.dataTransfer,e),null===(r=(t=n.current).onDrop)||void 0===r||r.call(t,e)},s=function(e){var t,r;o(e.clipboardData,e),null===(r=(t=n.current).onPaste)||void 0===r||r.call(t,e)};return t.addEventListener("dragenter",i),t.addEventListener("dragover",u),t.addEventListener("dragleave",c),t.addEventListener("drop",a),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",i),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",c),t.removeEventListener("drop",a),t.removeEventListener("paste",s)}}}),[],e)},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,a.useRef)(-1),n=(0,a.useRef)([]),r=(0,a.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),i=(0,a.useState)((function(){return e.forEach((function(e,t){r(t)})),e})),c=(0,u.Z)(i,2),s=c[0],l=c[1],f=(0,a.useCallback)((function(e){n.current=[],l((function(){return e.forEach((function(e,t){r(t)})),e}))}),[]),d=(0,a.useCallback)((function(e,t){l((function(n){var i=(0,o.Z)(n);return i.splice(e,0,t),r(e),i}))}),[]),v=(0,a.useCallback)((function(e){return n.current[e]}),[]),h=(0,a.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),g=(0,a.useCallback)((function(e,t){l((function(n){var i=(0,o.Z)(n);return t.forEach((function(t,n){r(e+n)})),i.splice.apply(i,[e,0].concat((0,o.Z)(t))),i}))}),[]),m=(0,a.useCallback)((function(e,t){l((function(n){var r=(0,o.Z)(n);return r[e]=t,r}))}),[]),p=(0,a.useCallback)((function(e){l((function(t){var r=(0,o.Z)(t);r.splice(e,1);try{n.current.splice(e,1)}catch(i){console.error(i)}return r}))}),[]),b=(0,a.useCallback)((function(e,t){e!==t&&l((function(r){var i=(0,o.Z)(r),u=i.filter((function(t,n){return n!==e}));u.splice(t,0,i[e]);try{var c=n.current.filter((function(t,n){return n!==e}));c.splice(t,0,n.current[e]),n.current=c}catch(a){console.error(a)}return u}))}),[]),y=(0,a.useCallback)((function(e){l((function(t){return r(t.length),t.concat([e])}))}),[]),w=(0,a.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}l((function(e){return e.slice(0,e.length-1)}))}),[]),E=(0,a.useCallback)((function(e){l((function(t){return r(0),[e].concat(t)}))}),[]),_=(0,a.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}l((function(e){return e.slice(1,e.length)}))}),[]),Z=(0,a.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return h(e.key)-h(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:s,insert:d,merge:g,replace:m,remove:p,getKey:v,getIndex:h,move:b,push:y,pop:w,unshift:E,shift:_,sortList:Z,resetList:f}},oe=n(41361),ie=n(87371),ue=n(9249),ce=(0,ie.Z)((function e(){var t=this;(0,ue.Z)(this,e),this.subscriptions=new Set,this.emit=function(e){var n,r=(0,oe.Z)(t.subscriptions);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e)}}catch(o){r.e(o)}finally{r.f()}},this.useSubscription=function(e){var n=(0,a.useRef)();n.current=e,(0,a.useEffect)((function(){function e(e){n.current&&n.current(e)}return t.subscriptions.add(e),function(){t.subscriptions.delete(e)}}),[])}}));function ae(){var e=(0,a.useRef)();return e.current||(e.current=new ce),e.current}var se=function(e){var t=e||{},n=t.initialValue,r=t.transformer,o=(0,a.useState)(n),i=(0,u.Z)(o,2),c=i[0],s=i[1],l=(0,y.Z)(r),f=(0,a.useCallback)((function(){return s(n)}),[]);return[c,{onChange:(0,a.useCallback)((function(e){var t=e.target.value;return(0,g.mf)(l.current)?s(l.current(t)):s(t)}),[]),reset:f}]},le={},fe=function(e,t){var n=(0,a.useState)(e?"loading":"unset"),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,a.useRef)();return(0,a.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);c.current=r.ref,i(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);c.current=o.ref,i(o.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(c.current){void 0===le[e]?le[e]=1:le[e]+=1;var u=function(e){var t,n="load"===e.type?"ready":"error";null===(t=c.current)||void 0===t||t.setAttribute("data-status",n),i(n)};return c.current.addEventListener("load",u),c.current.addEventListener("error",u),function(){var t,n,r;null===(t=c.current)||void 0===t||t.removeEventListener("load",u),null===(n=c.current)||void 0===n||n.removeEventListener("error",u),le[e]-=1,0===le[e]&&(null===(r=c.current)||void 0===r||r.remove()),c.current=void 0}}}else i("unset")}),[e]),o},de={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},ve=function(e){(0,a.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=de[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function he(e,t){var n=(0,a.useState)(!1),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=t||{},s=c.onFocus,l=c.onBlur,f=c.onChange;return $("focusin",(function(e){o||(null===s||void 0===s||s(e),null===f||void 0===f||f(!0),i(!0))}),{target:e}),$("focusout",(function(e){var t,n;o&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===l||void 0===l||l(e),null===f||void 0===f||f(!1),i(!1))}),{target:e}),o}var ge=n(83448),me=n.n(ge),pe=function(e,t){var n=t||{},r=n.onExit,o=n.onEnter,i=(0,y.Z)(r),c=(0,y.Z)(o),l=(0,a.useState)(!1),f=(0,u.Z)(l,2),d=f[0],v=f[1],h=function t(){var n,r,o;if(me().isEnabled){var u=E(e);if(me().element){var a=me().element===u;a?null===(r=c.current)||void 0===r||r.call(c):null===(o=i.current)||void 0===o||o.call(i),v(a)}else null===(n=i.current)||void 0===n||n.call(i),v(!1),me().off("change",t)}},g=function(){var t=E(e);if(t&&me().isEnabled)try{me().request(t),me().on("change",h)}catch(n){console.error(n)}},m=function(){var t=E(e);me().isEnabled&&me().element===t&&me().exit()};return(0,Z.Z)((function(){me().isEnabled&&me().off("change",h)})),[d,{enterFullscreen:(0,s.Z)(g),exitFullscreen:(0,s.Z)(m),toggleFullscreen:(0,s.Z)((function(){d?m():g()})),isEnabled:me().isEnabled}]},be=function(e){return{getFieldInstance:function(t){return e.getNames().includes(t)},setFieldsValue:e.setValues,getFieldsValue:e.getValues,resetFields:e.resetToDefault,validateFields:function(t,n){e.validate(t,n)}}},ye=function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return Object.assign(Object.assign({},e),{tableProps:t,paginationProps:n})},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,Object.assign(Object.assign({},t),{form:t.field?be(t.field):void 0}));return ye(n)};var Ee=function(e){var t=(0,a.useState)(e),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=(0,a.useRef)(r);return i.current=r,[r,o,(0,a.useCallback)((function(){return i.current}),[])]},_e=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,a.useState)({present:e,past:[],future:[]}),r=(0,u.Z)(n,2),i=r[0],c=r[1],l=i.present,f=i.past,d=i.future,v=(0,a.useRef)(e),h=function(){var e=arguments.length>0?arguments.length<=0?void 0:arguments[0]:v.current;v.current=e,c({present:e,future:[],past:[]})},m=function(e){var n=[].concat((0,o.Z)(f),[l]),r=(0,g.hj)(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),c({present:e,future:[],past:n})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0!==d.length){var t=_e(e,d),n=t._before,r=t._current,i=t._after;c({past:[].concat((0,o.Z)(f),[l],(0,o.Z)(n)),present:r,future:i})}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(0!==f.length){var t=_e(e,f),n=t._before,r=t._current,i=t._after;c({past:n,present:r,future:[].concat((0,o.Z)(i),[l],(0,o.Z)(d))})}},y=function(e){var t=(0,g.hj)(e)?e:Number(e);if(0!==t)return t>0?p(t):void b(t)};return{value:l,backLength:f.length,forwardLength:d.length,setValue:(0,s.Z)(m),go:(0,s.Z)(y),back:(0,s.Z)((function(){y(-1)})),forward:(0,s.Z)((function(){y(1)})),reset:(0,s.Z)(h)}}var Oe=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,c=b(!1),a=(0,u.Z)(c,2),s=a[0],l=a[1],f=l.setTrue,d=l.setFalse;return $("mouseenter",(function(){null===r||void 0===r||r(),f(),null===i||void 0===i||i(!0)}),{target:e}),$("mouseleave",(function(){null===o||void 0===o||o(),d(),null===i||void 0===i||i(!1)}),{target:e}),s},Se=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},ke=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Te=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=t.isNoMore,i=t.threshold,f=void 0===i?100:i,v=t.reloadDeps,g=void 0===v?[]:v,m=t.manual,p=t.onBefore,b=t.onSuccess,y=t.onError,w=t.onFinally,_=(0,a.useState)(),Z=(0,u.Z)(_,2),O=Z[0],S=Z[1],k=(0,a.useState)(!1),T=(0,u.Z)(k,2),R=T[0],L=T[1],M=(0,a.useMemo)((function(){return!!r&&r(O)}),[O]),C=(0,l.Z)((function(t){return(0,c.__awaiter)(void 0,void 0,void 0,(0,h.Z)().mark((function n(){var r;return(0,h.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e(t);case 2:return r=n.sent,S(t?Object.assign(Object.assign({},r),{list:[].concat((0,o.Z)(t.list),(0,o.Z)(r.list))}):r),n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))}),{manual:m,onFinally:function(e,t,n){L(!1),null===w||void 0===w||w(t,n)},onBefore:function(){return null===p||void 0===p?void 0:p()},onSuccess:function(e){setTimeout((function(){z()})),null===b||void 0===b||b(e)},onError:function(e){return null===y||void 0===y?void 0:y(e)}}),x=C.loading,F=C.run,j=C.runAsync,I=C.cancel,N=function(){M||(L(!0),F(O))},A=function(){return M?Promise.reject():(L(!0),j(O))},D=function(){return F()},P=function(){return j()},z=function(){var e=E(n);if(e){var t=Se(e);ke(e)-t<=Te(e)+f&&N()}};return $("scroll",(function(){x||R||z()}),{target:n}),(0,d.Z)((function(){F()}),(0,o.Z)(g)),{data:O,loading:!R&&x,loadingMore:R,noMore:M,loadMore:(0,s.Z)(N),loadMoreAsync:(0,s.Z)(A),reload:(0,s.Z)(D),reloadAsync:(0,s.Z)(P),mutate:S,cancel:I}};var Le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.immediate,o=(0,y.Z)(e),i=(0,a.useRef)(null);(0,a.useEffect)((function(){if((0,g.hj)(t)&&!(t<0))return r&&o.current(),i.current=setInterval((function(){o.current()}),t),function(){i.current&&clearInterval(i.current)}}),[t]);var u=(0,a.useCallback)((function(){i.current&&clearInterval(i.current)}),[]);return u};n(59986);var Me=function(e,t){var n=(0,a.useState)(),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,a.useState)(),s=(0,u.Z)(c,2),l=s[0],f=s[1];return k((function(){var n=E(e);if(n){var r=new IntersectionObserver((function(e){var t,n=(0,oe.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;f(r.intersectionRatio),i(r.isIntersecting)}}catch(o){n.e(o)}finally{n.f()}}),Object.assign(Object.assign({},t),{root:E(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[o,l]},Ce=w.Z?a.useLayoutEffect:a.useEffect,xe=function(e,t,n){var r=(0,a.useRef)(),o=(0,a.useRef)(0);(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return W()(e,t)})(t,r.current)||(r.current=t,o.current+=1),k(e,[o.current],n)},Fe=/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:""),je={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};je.meta=Fe?[91,93]:[91,92];var Ie={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?je.meta.includes(e.keyCode):e.metaKey}};function Ne(e,t,n){if(!e.key)return!1;if((0,g.hj)(t))return e.keyCode===t;var r,o=t.split("."),i=0,u=(0,oe.Z)(o);try{for(u.s();!(r=u.n()).done;){var c=r.value,a=Ie[c],s=je[c.toLowerCase()];(a&&a(e)||s&&s===e.keyCode)&&i++}}catch(l){u.e(l)}finally{u.f()}return n?i===o.length&&function(e){var t=Object.keys(Ie).reduce((function(t,n){return Ie[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===o.length:i===o.length}var Ae=["keydown"];var De=function(e,t,n){var r=n||{},o=r.events,i=void 0===o?Ae:o,u=r.target,c=r.exactMatch,a=void 0!==c&&c,s=r.useCapture,l=void 0!==s&&s,f=(0,y.Z)(t),d=(0,y.Z)(e);xe((function(){var e,t=E(u,window);if(t){var n,r=function(e){var t,n=function(e,t){return(0,g.mf)(e)?e:(0,g.HD)(e)||(0,g.hj)(e)?function(n){return Ne(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return Ne(n,e,t)}))}:function(){return Boolean(e)}}(d.current,a);if(n(e))return null===(t=f.current)||void 0===t?void 0:t.call(f,e)},o=(0,oe.Z)(i);try{for(o.s();!(n=o.n()).done;){var c=n.value;null===(e=null===t||void 0===t?void 0:t.addEventListener)||void 0===e||e.call(t,c,r,l)}}catch(s){o.e(s)}finally{o.f()}return function(){var e,n,o=(0,oe.Z)(i);try{for(o.s();!(n=o.n()).done;){var u=n.value;null===(e=null===t||void 0===t?void 0:t.removeEventListener)||void 0===e||e.call(t,u,r,l)}}catch(s){o.e(s)}finally{o.f()}}}}),[i],u)};function Pe(e){return function(t,n){var r;try{r=e()}catch(v){console.error(v)}function o(){try{var e=null===r||void 0===r?void 0:r.getItem(t);if(e)return o=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(o):JSON.parse(o)}catch(i){console.error(i)}var o;return(0,g.mf)(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var i=(0,a.useState)((function(){return o()})),c=(0,u.Z)(i,2),l=c[0],f=c[1];return(0,d.Z)((function(){f(o())}),[t]),[l,(0,s.Z)((function(e){var o=(0,g.mf)(e)?e(l):e;if(f(o),(0,g.G7)(o))null===r||void 0===r||r.removeItem(t);else try{null===r||void 0===r||r.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(o))}catch(i){console.error(i)}}))]}}var ze=Pe((function(){return w.Z?localStorage:void 0}));var Ve=function(e){var t=this,n=(0,a.useRef)(!1);return(0,a.useCallback)((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(0,c.__awaiter)(t,void 0,void 0,(0,h.Z)().mark((function t(){var r;return(0,h.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.current){t.next=2;break}return t.abrupt("return");case 2:return n.current=!0,t.prev=3,t.next=6,e.apply(void 0,o);case 6:return r=t.sent,n.current=!1,t.abrupt("return",r);case 11:throw t.prev=11,t.t0=t.catch(3),n.current=!1,t.t0;case 15:case"end":return t.stop()}}),t,null,[[3,11]])})))}),[e])},qe=w.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var He=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.delay,o=void 0===r?300:r,i=n.moveThreshold,u=n.onClick,c=n.onLongPressEnd,s=(0,y.Z)(e),l=(0,y.Z)(u),f=(0,y.Z)(c),d=(0,a.useRef)(),v=(0,a.useRef)(!1),h=(0,a.useRef)({x:0,y:0}),g=!!((null===i||void 0===i?void 0:i.x)&&i.x>0||(null===i||void 0===i?void 0:i.y)&&i.y>0);k((function(){var e=E(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(g){var t=a(e),n=t.clientX,r=t.clientY;h.current.x=n,h.current.y=r}d.current=setTimeout((function(){s.current(e),v.current=!0}),o)},r=function(e){d.current&&function(e){var t=a(e),n=t.clientX,r=t.clientY,o=Math.abs(n-h.current.x),u=Math.abs(r-h.current.y);return!!((null===i||void 0===i?void 0:i.x)&&o>i.x||(null===i||void 0===i?void 0:i.y)&&u>i.y)}(e)&&(clearInterval(d.current),d.current=void 0)},u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.current&&clearTimeout(d.current),v.current&&(null===(t=f.current)||void 0===t||t.call(f,e)),n&&!v.current&&l.current&&l.current(e),v.current=!1},c=function(e){return u(e,!0)};return qe?(e.addEventListener("touchstart",n),e.addEventListener("touchend",c),g&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",u),g&&e.addEventListener("mousemove",r)),function(){d.current&&(clearTimeout(d.current),v.current=!1),qe?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",c),g&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",u),g&&e.removeEventListener("mousemove",r))}}function a(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var Ue=function(e){var t=function(){return void 0===e?new Map:new Map(e)},n=(0,a.useState)((function(){return t()})),r=(0,u.Z)(n,2),o=r[0],i=r[1];return[o,{set:(0,s.Z)((function(e,t){i((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:(0,s.Z)((function(e){i(new Map(e))})),remove:(0,s.Z)((function(e){i((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:(0,s.Z)((function(){return i(t())})),get:(0,s.Z)((function(e){return o.get(e)}))}]},Ye=n(49476);var Xe,Be=function(e){var t=(0,a.useRef)(0),n=(0,a.useState)(e),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,a.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){i(e)}))}),[]);return(0,Z.Z)((function(){cancelAnimationFrame(t.current)})),[o,c]},We={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Ge=function(e){var t=Be(We),n=(0,u.Z)(t,2),r=n[0],o=n[1];return $("mousemove",(function(t){var n=t.screenX,r=t.screenY,i=t.clientX,u=t.clientY,c=t.pageX,a=t.pageY,s={screenX:n,screenY:r,clientX:i,clientY:u,pageX:c,pageY:a,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=E(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,g=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=c-s.elementPosX,s.elementY=a-s.elementPosY,s.elementW=h,s.elementH=g}o(s)}),{target:function(){return document}}),r};function Ke(){var e=navigator;return(0,g.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function Je(){var e=Ke();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(Xe||(Xe={}));var $e=function(){var e=(0,a.useState)((function(){return Object.assign({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},Je())})),t=(0,u.Z)(e,2),n=t[0],r=t[1];return(0,a.useEffect)((function(){var e=function(){r((function(e){return Object.assign(Object.assign({},e),{online:!0,since:new Date})}))},t=function(){r((function(e){return Object.assign(Object.assign({},e),{online:!1,since:new Date})}))},n=function(){r((function(e){return Object.assign(Object.assign({},e),Je())}))};window.addEventListener(Xe.ONLINE,e),window.addEventListener(Xe.OFFLINE,t);var o=Ke();return null===o||void 0===o||o.addEventListener(Xe.CHANGE,n),function(){window.removeEventListener(Xe.ONLINE,e),window.removeEventListener(Xe.OFFLINE,t),null===o||void 0===o||o.removeEventListener(Xe.CHANGE,n)}}),[]),n},Qe=function(e,t){return!Object.is(e,t)};var et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe,n=(0,a.useRef)(),r=(0,a.useRef)();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current};var tt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var nt=function(e,t,n){var r=null===n||void 0===n?void 0:n.immediate,o=(0,y.Z)(e),i=(0,a.useRef)();return(0,a.useEffect)((function(){if((0,g.hj)(t)&&!(t<0))return r&&o.current(),i.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0},o=function o(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(o)};return r.id=requestAnimationFrame(o),r}((function(){o.current()}),t),function(){i.current&&tt(i.current)}}),[t]),(0,a.useCallback)((function(){i.current&&tt(i.current)}),[])};var rt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var ot=function(e,t){var n=(0,y.Z)(e),r=(0,a.useRef)();return(0,a.useEffect)((function(){if((0,g.hj)(t)&&!(t<0))return r.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime(),o=function o(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(o)};return n.id=requestAnimationFrame(o),n}((function(){n.current()}),t),function(){r.current&&rt(r.current)}}),[t]),(0,a.useCallback)((function(){r.current&&rt(r.current)}),[])},it=new WeakMap,ut=new WeakMap;function ct(e,t){var n=it.get(e);if(n)return n;if(ut.has(e))return e;var r=new Proxy(e,{get:function(e,n,r){var o=Reflect.get(e,n,r);return(0,g.Kn)(o)?ct(o,t):o},set:function(e,n,r){var o=Reflect.set(e,n,r);return t(),o},deleteProperty:function(e,n){var r=Reflect.deleteProperty(e,n);return t(),r}});return it.set(e,r),ut.set(r,e),r}var at,st=function(e){var t=(0,R.Z)(),n=(0,a.useRef)(e);return(0,z.Z)((function(){return ct(n.current,(function(){t()}))}),[])},lt=n(54781),ft=function(e){var t=(0,a.useState)(e),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=(0,s.Z)((function(){o(e)}));return[r,o,i]},dt=new Set,vt={xs:0,sm:576,md:768,lg:992,xl:1200};function ht(){var e=at;if(mt(),e!==at){var t,n=(0,oe.Z)(dt);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(r){n.e(r)}finally{n.f()}}}var gt=!1;function mt(){for(var e=window.innerWidth,t={},n=!1,r=0,o=Object.keys(vt);r<o.length;r++){var i=o[r];t[i]=e>=vt[i],t[i]!==at[i]&&(n=!0)}n&&(at=t)}function pt(e){vt=e,at&&mt()}function bt(){w.Z&&!gt&&(at={},mt(),window.addEventListener("resize",ht),gt=!0);var e=(0,a.useState)(at),t=(0,u.Z)(e,2),n=t[0],r=t[1];return(0,a.useEffect)((function(){if(w.Z){gt||window.addEventListener("resize",ht);var e=function(){r(at)};return dt.add(e),function(){dt.delete(e),0===dt.size&&(window.removeEventListener("resize",ht),gt=!1)}}}),[]),n}var yt=function(){var e=(0,a.useRef)(!1);return(0,a.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var wt=function(e){var t=yt(),n=(0,a.useState)(e),r=(0,u.Z)(n,2),o=r[0],i=r[1];return[o,(0,a.useCallback)((function(e){t.current||i(e)}),[])]};var Et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=Be(),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,y.Z)(t);return k((function(){var t=E(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},c.current(e)&&i(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),o};function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,a.useState)(t),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=(0,a.useMemo)((function(){return new Set(o)}),[o]),l=function(e){return c.has(e)},f=function(e){return c.add(e),i(Array.from(c))},d=function(e){return c.delete(e),i(Array.from(c))},v=function(e){l(e)?d(e):f(e)},h=function(){e.forEach((function(e){c.add(e)})),i(Array.from(c))},g=function(){e.forEach((function(e){c.delete(e)})),i(Array.from(c))},m=(0,a.useMemo)((function(){return e.every((function(e){return!c.has(e)}))}),[e,c]),p=(0,a.useMemo)((function(){return e.every((function(e){return c.has(e)}))&&!m}),[e,c,m]),b=(0,a.useMemo)((function(){return!m&&!p}),[m,p]),y=function(){return p?g():h()};return{selected:o,noneSelected:m,allSelected:p,partiallySelected:b,setSelected:i,isSelected:l,select:(0,s.Z)(f),unSelect:(0,s.Z)(d),toggle:(0,s.Z)(v),selectAll:(0,s.Z)(h),unSelectAll:(0,s.Z)(g),toggleAll:(0,s.Z)(y)}}var Zt=Pe((function(){return w.Z?sessionStorage:void 0}));var Ot=function(e){var t=function(){return void 0===e?new Set:new Set(e)},n=(0,a.useState)((function(){return t()})),r=(0,u.Z)(n,2),o=r[0],i=r[1];return[o,{add:(0,s.Z)((function(e){o.has(e)||i((function(t){var n=new Set(t);return n.add(e),n}))})),remove:(0,s.Z)((function(e){o.has(e)&&i((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:(0,s.Z)((function(){return i(t())}))}]},St=function(e){var t=(0,a.useState)(e),n=(0,u.Z)(t,2),r=n[0],o=n[1];return[r,(0,a.useCallback)((function(e){o((function(t){var n=(0,g.mf)(e)?e(t):e;return n?Object.assign(Object.assign({},t),n):t}))}),[])]},kt=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Tt="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,Rt="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),Lt="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(Rt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Mt=["top","right","bottom","left","width","height","size","weight"],Ct="undefined"!==typeof MutationObserver,xt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function u(){Lt(i)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Tt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ct?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Tt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Mt.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ft=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},jt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Rt},It=Vt(0,0,0,0);function Nt(e){return parseFloat(e)||0}function At(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Nt(e["border-"+n+"-width"])}),0)}function Dt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return It;var r=jt(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Nt(i)}return t}(r),i=o.left+o.right,u=o.top+o.bottom,c=Nt(r.width),a=Nt(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=At(r,"left","right")+i),Math.round(a+u)!==n&&(a-=At(r,"top","bottom")+u)),!function(e){return e===jt(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(a+u)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(a-=l)}return Vt(o.left,o.top,c,a)}var Pt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof jt(e).SVGGraphicsElement}:function(e){return e instanceof jt(e).SVGElement&&"function"===typeof e.getBBox};function zt(e){return Tt?Pt(e)?function(e){var t=e.getBBox();return Vt(0,0,t.width,t.height)}(e):Dt(e):It}function Vt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var qt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Vt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=zt(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ht=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(i.prototype);return Ft(u,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),u}(t);Ft(this,{target:e,contentRect:n})},Ut=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new kt,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof jt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new qt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof jt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ht(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yt="undefined"!==typeof WeakMap?new WeakMap:new kt,Xt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xt.getInstance(),r=new Ut(t,n,this);Yt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Xt.prototype[e]=function(){var t;return(t=Yt.get(this))[e].apply(t,arguments)}}));var Bt="undefined"!==typeof Rt.ResizeObserver?Rt.ResizeObserver:Xt,Wt=S(a.useLayoutEffect),Gt=w.Z?Wt:k;var Kt=function(e){var t=Be(),n=(0,u.Z)(t,2),r=n[0],o=n[1];return Gt((function(){var t=E(e);if(t){var n=new Bt((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;o({width:n,height:r})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),r},Jt={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},$t=Object.assign({text:""},Jt);var Qt=function(e){var t=(0,a.useState)($t),n=(0,u.Z)(t,2),r=n[0],o=n[1],i=(0,a.useRef)(r),c=(0,a.useRef)(!1);return i.current=r,k((function(){var t=E(e,document);if(t){var n=function(){var e,t=null,n=Jt;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&c.current&&(n=function(e){if(!e)return Jt;if(e.rangeCount<1)return Jt;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),o(Object.assign(Object.assign(Object.assign({},r),{text:e}),n)))},u=function(e){if(window.getSelection){i.current.text&&o(Object.assign({},$t)),c.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),c.current=t.contains(e.target))}};return t.addEventListener("mouseup",n),document.addEventListener("mousedown",u),function(){t.removeEventListener("mouseup",n),document.removeEventListener("mousedown",u)}}}),[],e),r},en=n(22356),tn=n.n(en);var nn=function(e,t){var n;H.Z&&((0,g.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var r=(0,y.Z)(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,i=(0,a.useMemo)((function(){return tn()((function(){return r.current.apply(r,arguments)}),o,t)}),[]);return(0,Z.Z)((function(){i.cancel()})),{run:i,cancel:i.cancel,flush:i.flush}};var rn=function(e,t){var n=(0,a.useState)(e),r=(0,u.Z)(n,2),o=r[0],i=r[1],c=nn((function(){i(e)}),t).run;return(0,a.useEffect)((function(){c()}),[e]),o};var on=function(e,t,n){var r=(0,a.useState)({}),o=(0,u.Z)(r,2),i=o[0],c=o[1],s=nn((function(){c({})}),n).run;(0,a.useEffect)((function(){return s()}),t),(0,d.Z)(e,[i])};var un=function(e,t){var n=(0,y.Z)(e),r=(0,a.useRef)(null);return(0,a.useEffect)((function(){if((0,g.hj)(t)&&!(t<0))return r.current=setTimeout((function(){n.current()}),t),function(){r.current&&clearTimeout(r.current)}}),[t]),(0,a.useCallback)((function(){r.current&&clearTimeout(r.current)}),[])},cn={restoreOnUnmount:!1};var an,sn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cn,n=(0,a.useRef)(w.Z?document.title:"");(0,a.useEffect)((function(){document.title=e}),[e]),(0,Z.Z)((function(){t.restoreOnUnmount&&(document.title=n.current)}))},ln=function(e,t){var n=(0,a.useRef)();(0,a.useEffect)((function(){var r,o,i=(r=n.current,o=t,r?r.map((function(e,t){return Object.is(r[t],null===o||void 0===o?void 0:o[t])?-1:t})).filter((function(e){return e>=0})):o?o.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(i,u,t)}),t)},fn=(0,r.a)(a.useLayoutEffect),dn=function(e,t){var n=t.containerTarget,r=t.wrapperTarget,o=t.itemHeight,i=t.overscan,c=void 0===i?5:i,l=(0,y.Z)(o),f=Kt(n),d=(0,a.useRef)(!1),v=(0,a.useState)([]),h=(0,u.Z)(v,2),m=h[0],p=h[1],b=function(t){return(0,g.hj)(l.current)?t*l.current:e.slice(0,t).reduce((function(t,n,r){return t+l.current(r,e[r])}),0)},w=(0,a.useMemo)((function(){return(0,g.hj)(l.current)?e.length*l.current:e.reduce((function(t,n,r){return t+l.current(r,e[r])}),0)}),[e]),_=function(){var t=E(n),o=E(r);if(t&&o){var i=t.scrollTop,u=t.clientHeight,a=function(t){if((0,g.hj)(l.current))return Math.floor(t/l.current)+1;for(var n=0,r=0,o=0;o<e.length;o++)if((n+=l.current(o,e[o]))>=t){r=o;break}return r+1}(i),s=function(t,n){if((0,g.hj)(l.current))return Math.ceil(t/l.current);for(var r=0,o=0,i=n;i<e.length&&(o=i,!((r+=l.current(i,e[i]))>=t));i++);return o-n}(u,a),f=Math.max(0,a-c),d=Math.min(e.length,a+s+c),v=b(f);o.style.height=w-v+"px",o.style.marginTop=v+"px",p(e.slice(f,d).map((function(e,t){return{data:e,index:t+f}})))}};(0,a.useEffect)((function(){(null===f||void 0===f?void 0:f.width)&&(null===f||void 0===f?void 0:f.height)&&_()}),[null===f||void 0===f?void 0:f.width,null===f||void 0===f?void 0:f.height,e]),$("scroll",(function(e){d.current?d.current=!1:(e.preventDefault(),_())}),{target:n});return[m,(0,s.Z)((function(e){var t=E(n);t&&(d.current=!0,t.scrollTop=b(e),_())}))]};function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reconnectLimit,r=void 0===n?3:n,o=t.reconnectInterval,i=void 0===o?3e3:o,c=t.manual,l=void 0!==c&&c,f=t.onOpen,d=t.onClose,v=t.onMessage,h=t.onError,g=t.protocols,m=(0,y.Z)(f),p=(0,y.Z)(d),b=(0,y.Z)(v),w=(0,y.Z)(h),E=(0,a.useRef)(0),_=(0,a.useRef)(),O=(0,a.useRef)(),S=(0,a.useRef)(!1),k=(0,a.useState)(),T=(0,u.Z)(k,2),R=T[0],L=T[1],M=(0,a.useState)(an.Closed),C=(0,u.Z)(M,2),x=C[0],F=C[1],j=function(){var e;E.current<r&&(null===(e=O.current)||void 0===e?void 0:e.readyState)!==an.Open&&(_.current&&clearTimeout(_.current),_.current=setTimeout((function(){I(),E.current++}),i))},I=function(){_.current&&clearTimeout(_.current),O.current&&O.current.close();var t=new WebSocket(e,g);F(an.Connecting),t.onerror=function(e){var n;S.current||(j(),null===(n=w.current)||void 0===n||n.call(w,e,t),F(t.readyState||an.Closed))},t.onopen=function(e){var n;S.current||(null===(n=m.current)||void 0===n||n.call(m,e,t),E.current=0,F(t.readyState||an.Open))},t.onmessage=function(e){var n;S.current||(null===(n=b.current)||void 0===n||n.call(b,e,t),L(e))},t.onclose=function(e){var n;S.current||(j(),null===(n=p.current)||void 0===n||n.call(p,e,t),F(t.readyState||an.Closed))},O.current=t},N=function(e){var t;if(x!==an.Open)throw new Error("WebSocket disconnected");null===(t=O.current)||void 0===t||t.send(e)},A=function(){E.current=0,I()},D=function(){var e;_.current&&clearTimeout(_.current),E.current=r,null===(e=O.current)||void 0===e||e.close()};return(0,a.useEffect)((function(){l||A()}),[e,l]),(0,Z.Z)((function(){S.current=!0,D()})),{latestMessage:R,sendMessage:(0,s.Z)(N),connect:(0,s.Z)(A),disconnect:(0,s.Z)(D),readyState:x,webSocketIns:O.current}}function hn(e,t){var n=(0,a.useRef)({});(0,a.useEffect)((function(){if(n.current){var r=Object.keys(Object.assign(Object.assign({},n.current),t)),o={};r.forEach((function(e){Object.is(n.current[e],t[e])||(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(an||(an={}));var gn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,y.Z)(e);xe((function(){var e=E(t);if(e){var o=new MutationObserver(r.current);return o.observe(e,n),function(){o&&o.disconnect()}}}),[n],t)}},59986:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,u=null;this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),a(e,"resize",r,!0)),a(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var l=o(t);l&&this._monitorIntersections(l.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var c=o(t);c&&this._unmonitorIntersections(c.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,u=l(o),c=this._rootContainsTarget(o),a=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(o,u,t),f=null;this._rootContainsTarget(o)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:u,rootBounds:f,intersectionRect:s});a?e&&c?this._hasCrossedThreshold(a,d)&&this._queuedEntries.push(d):a&&a.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var u=o,c=h(t),a=!1;!a&&c;){var f=null,v=1==c.nodeType?window.getComputedStyle(c):{};if("none"==v.display)return null;if(c==this.root||9==c.nodeType)if(a=!0,c==this.root||c==e)n&&!this.root?!r||0==r.width&&0==r.height?(c=null,f=null,u=null):f=r:f=i;else{var g=h(c),m=g&&l(g),p=g&&this._computeTargetAndRootIntersection(g,m,i);m&&p?(c=g,f=d(m,p)):(c=null,u=null)}else{var b=c.ownerDocument;c!=b.body&&c!=b.documentElement&&"visible"!=v.overflow&&(f=l(c))}if(f&&(u=s(f,u)),!u)break;c=c&&h(c)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!g(this.root))t=l(this.root);else{var n=g(this.root)?this.root:e,r=n.documentElement,o=n.body;t={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!==i<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),u=i-o,c=r-n;return u>=0&&c>=0&&{top:n,bottom:r,left:o,right:i,width:u,height:c}||null}function l(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function g(e){return e&&9===e.nodeType}}()},83448:function(e){!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)i[n[0][r]]=e[r];return i}return!1}(),o={change:r.fullscreenchange,error:r.fullscreenerror},i={request:function(e,n){return new Promise(function(o,i){var u=function(){this.off("change",u),o()}.bind(this);this.on("change",u);var c=(e=e||t.documentElement)[r.requestFullscreen](n);c instanceof Promise&&c.then(u).catch(i)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var o=function(){this.off("change",o),e()}.bind(this);this.on("change",o);var i=t[r.exitFullscreen]();i instanceof Promise&&i.then(o).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=o[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=o[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);
|
|
3
|
-
//# sourceMappingURL=162.58348adf.chunk.js.map
|