@abtnode/webapp 1.16.6-beta-9e9fec72 → 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.
Files changed (74) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +36 -35
  4. package/build/index.html +1 -1
  5. package/build/static/css/4691.cc1ab277.chunk.css +1 -0
  6. package/build/static/js/1366.1d344aa8.chunk.js +2 -0
  7. package/build/static/js/{9779.f84e9d58.chunk.js → 1371.f6abf65e.chunk.js} +1 -1
  8. package/build/static/js/1667.e892e657.chunk.js +1 -0
  9. package/build/static/js/2878.9b638eb1.chunk.js +1 -0
  10. package/build/static/js/3037.cc5d3d8a.chunk.js +1 -0
  11. package/build/static/js/3453.d7a4afde.chunk.js +2 -0
  12. package/build/static/js/3633.67f1416e.chunk.js +1 -0
  13. package/build/static/js/4274.22984e96.chunk.js +1 -0
  14. package/build/static/js/442.ed7bae8d.chunk.js +1 -0
  15. package/build/static/js/4517.c6d1a021.chunk.js +1 -0
  16. package/build/static/js/{4608.19aca3fc.chunk.js → 4608.d17624a8.chunk.js} +2 -2
  17. package/build/static/js/4691.82afa694.chunk.js +2 -0
  18. package/build/static/js/{519.62a15b1b.chunk.js → 519.0d9e0695.chunk.js} +1 -1
  19. package/build/static/js/5236.89fd74e3.chunk.js +2 -0
  20. package/build/static/js/5236.89fd74e3.chunk.js.LICENSE.txt +31 -0
  21. package/build/static/js/5873.e467bcef.chunk.js +2 -0
  22. package/build/static/js/{5984.ca24ac1d.chunk.js → 5984.6d4bc633.chunk.js} +1 -1
  23. package/build/static/js/6014.99086001.chunk.js +1 -0
  24. package/build/static/js/6780.c6efc1ec.chunk.js +1 -0
  25. package/build/static/js/6898.cf300f9c.chunk.js +2 -0
  26. package/build/static/js/7298.408e0855.chunk.js +1 -0
  27. package/build/static/js/{744.8b656dd2.chunk.js → 744.f4da0c57.chunk.js} +1 -1
  28. package/build/static/js/{8058.d71f2e07.chunk.js → 8058.17e4868a.chunk.js} +1 -1
  29. package/build/static/js/8352.9c2684aa.chunk.js +1 -0
  30. package/build/static/js/851.69afaaba.chunk.js +1 -0
  31. package/build/static/js/{9076.7dfc9ce4.chunk.js → 9076.150e000f.chunk.js} +1 -1
  32. package/build/static/js/9244.6c1f3ce8.chunk.js +1 -0
  33. package/build/static/js/9327.97924337.chunk.js +1 -0
  34. package/build/static/js/9711.c8c469a4.chunk.js +2 -0
  35. package/build/static/js/{7043.f8cab3e1.chunk.js.LICENSE.txt → 9711.c8c469a4.chunk.js.LICENSE.txt} +1 -1
  36. package/build/static/js/main.03bf974a.js +2 -0
  37. package/build/static/js/{main.7e518ad9.js.LICENSE.txt → main.03bf974a.js.LICENSE.txt} +3 -3
  38. package/build/static/media/iconify.26e4076719101e021ba0.cjs +2 -0
  39. package/package.json +1 -1
  40. package/build/static/css/4691.56c2f951.chunk.css +0 -1
  41. package/build/static/js/1366.6707269e.chunk.js +0 -2
  42. package/build/static/js/1667.9191c25c.chunk.js +0 -1
  43. package/build/static/js/2878.be9568bc.chunk.js +0 -1
  44. package/build/static/js/2879.44b63eaf.chunk.js +0 -2
  45. package/build/static/js/2879.44b63eaf.chunk.js.LICENSE.txt +0 -22
  46. package/build/static/js/3037.ed2bb752.chunk.js +0 -1
  47. package/build/static/js/3453.5ca9959b.chunk.js +0 -2
  48. package/build/static/js/3633.8c7cf02d.chunk.js +0 -1
  49. package/build/static/js/4274.e18ffddd.chunk.js +0 -1
  50. package/build/static/js/4517.b93ba337.chunk.js +0 -1
  51. package/build/static/js/4682.fc9fc6aa.chunk.js +0 -1
  52. package/build/static/js/4691.854b6856.chunk.js +0 -2
  53. package/build/static/js/6780.64314507.chunk.js +0 -1
  54. package/build/static/js/6898.6fe0c32d.chunk.js +0 -2
  55. package/build/static/js/7043.f8cab3e1.chunk.js +0 -2
  56. package/build/static/js/7298.92c2419a.chunk.js +0 -1
  57. package/build/static/js/8352.d3763940.chunk.js +0 -1
  58. package/build/static/js/8464.b4b82828.chunk.js +0 -1
  59. package/build/static/js/851.447224fb.chunk.js +0 -1
  60. package/build/static/js/9244.2bbab0af.chunk.js +0 -1
  61. package/build/static/js/9327.a84f2ae6.chunk.js +0 -2
  62. package/build/static/js/main.7e518ad9.js +0 -2
  63. package/build/static/media/iconify.32b54549e843e448ee9b.cjs +0 -2
  64. /package/build/static/css/{4682.f696fdbf.chunk.css → 1371.f696fdbf.chunk.css} +0 -0
  65. /package/build/static/css/{5245.5d6e9197.chunk.css → 4665.5d6e9197.chunk.css} +0 -0
  66. /package/build/static/css/{2879.5ade355d.chunk.css → 5236.5ade355d.chunk.css} +0 -0
  67. /package/build/static/css/{9779.f696fdbf.chunk.css → 6014.f696fdbf.chunk.css} +0 -0
  68. /package/build/static/js/{1366.6707269e.chunk.js.LICENSE.txt → 1366.1d344aa8.chunk.js.LICENSE.txt} +0 -0
  69. /package/build/static/js/{3453.5ca9959b.chunk.js.LICENSE.txt → 3453.d7a4afde.chunk.js.LICENSE.txt} +0 -0
  70. /package/build/static/js/{4608.19aca3fc.chunk.js.LICENSE.txt → 4608.d17624a8.chunk.js.LICENSE.txt} +0 -0
  71. /package/build/static/js/{4691.854b6856.chunk.js.LICENSE.txt → 4691.82afa694.chunk.js.LICENSE.txt} +0 -0
  72. /package/build/static/js/{9327.a84f2ae6.chunk.js.LICENSE.txt → 5873.e467bcef.chunk.js.LICENSE.txt} +0 -0
  73. /package/build/static/js/{6898.6fe0c32d.chunk.js.LICENSE.txt → 6898.cf300f9c.chunk.js.LICENSE.txt} +0 -0
  74. /package/build/static/media/{iconify.32b54549e843e448ee9b.cjs.LICENSE.txt → iconify.26e4076719101e021ba0.cjs.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see iconify.32b54549e843e448ee9b.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="iconify-count",versionKey="iconify-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("iconify"+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="iconify"+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("iconify"+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&&(d=u.name,f=c,null!==d&&null!==f&&d.name===f.name&&d.prefix===f.prefix))switch(u.status){case"missing":return;case"loading":if(isPending({provider:s,prefix:a,name:l}))return void(r=!0)}var d,f;const p=getStorage(s,a);if(void 0===p.icons[l]){if(p.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(p,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){}