|
|
|
/*
|
|
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
|
|
if you want to view the source visit the plugins github repository
|
|
|
|
*/
|
|
|
|
|
|
|
|
var ql=Object.create;var At=Object.defineProperty,Vl=Object.defineProperties,$l=Object.getOwnPropertyDescriptor,Zl=Object.getOwnPropertyDescriptors,Gl=Object.getOwnPropertyNames,Yt=Object.getOwnPropertySymbols,Kl=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable;var Ci=(e,t,n)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t)=>{for(var n in t||(t={}))Nn.call(t,n)&&Ci(e,n,t[n]);if(Yt)for(var n of Yt(t))wi.call(t,n)&&Ci(e,n,t[n]);return e},ji=(e,t)=>Vl(e,Zl(t)),Li=e=>At(e,"__esModule",{value:!0});var Xt=(e,t)=>{var n={};for(var a in e)Nn.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Yt)for(var a of Yt(e))t.indexOf(a)<0&&wi.call(e,a)&&(n[a]=e[a]);return n};var G=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ii=(e,t)=>{Li(e);for(var n in t)At(e,n,{get:t[n],enumerable:!0})},Yl=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Gl(t))!Nn.call(e,a)&&a!=="default"&&At(e,a,{get:()=>t[a],enumerable:!(n=$l(t,a))||n.enumerable});return e},ie=e=>Yl(Li(At(e!=null?ql(Kl(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Y=(e,t,n)=>new Promise((a,i)=>{var r=p=>{try{s(n.next(p))}catch(l){i(l)}},o=p=>{try{s(n.throw(p))}catch(l){i(l)}},s=p=>p.done?a(p.value):Promise.resolve(p.value).then(r,o);s((n=n.apply(e,t)).next())});var Ft=G((Sg,Jt)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(!!i){var r=typeof i;if(r==="string"||r==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var o=t.apply(null,i);o&&n.push(o)}}else if(r==="object")if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&n.push(s);else n.push(i.toString())}}return n.join(" ")}typeof Jt!="undefined"&&Jt.exports?(t.default=t,Jt.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Wi=G((Rg,tp)=>{tp.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd
|
|
|
|
\0`,$+=a(A,2),$+=E.magic,$+=a(y,2),$+=a(S,2),$+=a(te.crc32,4),$+=a(te.compressedSize,4),$+=a(te.uncompressedSize,4),$+=a(U.length,2),$+=a(T.length,2),{fileRecord:l.LOCAL_FILE_HEADER+$+U+T,dirRecord:l.CENTRAL_FILE_HEADER+a(ee,2)+$+a(K.length,2)+"\0\0\0\0"+a(L,4)+a(f,4)+U+T+K}}var r=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),p=e("../crc32"),l=e("../signature");function c(d,h,g,f){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=g,this.encodeFileName=f,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(c,o),c.prototype.push=function(d){var h=d.meta.percent||0,g=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,o.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:g?(h+100*(g-f-1))/g:100}}))},c.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var h=this.streamFiles&&!d.file.dir;if(h){var g=i(d,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(d){this.accumulate=!1;var h=this.streamFiles&&!d.file.dir,g=i(d,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),h)this.push({data:function(f){return l.DATA_DESCRIPTOR+a(f.crc32,4)+a(f.compressedSize,4)+a(f.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var d=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var g=this.bytesWritten-d,f=function(x,v,y,S,C){var E=r.transformTo("string",C(S));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(x,2)+a(x,2)+a(v,4)+a(y,4)+a(E.length,2)+E}(this.dirRecords.length,g,d,this.zipComment,this.encodeFileName);this.push({data:f,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(d){this._sources.push(d);var h=this;return d.on("data",function(g){h.processChunk(g)}),d.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),d.on("error",function(g){h.error(g)}),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(d){var h=this._sources;if(!o.prototype.error.call(this,d))return!1;for(var g=0;g<h.length;g++)try{h[g].error(d)}catch{}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var d=this._sources,h=0;h<d.length;h++)d[h].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var a=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(r,o,s){var p=new i(o.streamFiles,s,o.platform,o.encodeFileName),l=0;try{r.forEach(function(c,d){l++;var h=function(v,y){var S=v||y,C=a[S];if(!C)throw new Error(S+" is not a valid compression method !");return C}(d.options.compression,o.compression),g=d.options.compressionOptions||o.compressionOptions||{},f=d.dir,x=d.date;d._compressWorker(h,g).withStreamInfo("file",{name:c,dir:f,date:x,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(p)}),p.entriesCount=l}catch(c){p.error(c)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZi
|
|
|
|
`;var fl=`<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(2 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(12 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(24 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var hl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path transform="translate(2)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(8)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.2" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(14)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.4" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(20)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.6" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(26)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.8" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var gl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<circle transform="translate(8 0)" cx="0" cy="16" r="0">
|
|
|
|
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
|
|
|
|
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="translate(16 0)" cx="0" cy="16" r="0">
|
|
|
|
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.3"
|
|
|
|
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="translate(24 0)" cx="0" cy="16" r="0">
|
|
|
|
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.6"
|
|
|
|
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
</svg>
|
|
|
|
`;var xl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(2 0)" d="M0 12 V20 H8 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(12 0)" d="M0 12 V20 H8 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path transform="translate(24 0)" d="M0 12 V20 H8 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var vl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path opacity="0.5" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.1s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
<path opacity="0.25" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
|
|
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.2s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var bl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
|
|
|
|
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
|
|
|
|
<animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var _l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<circle cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(45 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.125s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(90 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.25s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(135 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.375s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(225 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.625s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(270 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.75s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(315 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.875s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
<circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
|
|
|
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
|
|
</circle>
|
|
|
|
</svg>
|
|
|
|
`;var yl=`<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.125s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.25s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.375s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.5s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.675s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.75s"/>
|
|
|
|
</path>
|
|
|
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">
|
|
|
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>
|
|
|
|
</path>
|
|
|
|
</svg>
|
|
|
|
`;var ig=o=>{var s=o,{color:e="var(--interactive-accent)",delay:t=0,type:n="balls",height:a=64,width:i=64}=s,r=Xt(s,["color","delay","type","height","width"]);let[p,l]=ye(t>0);return Xe(()=>{let d=-1;return p&&(d=window.setTimeout(()=>l(!1),t)),()=>clearTimeout(d)},[]),q.createElement("div",Be({style:{fill:e,height:a,width:i},dangerouslySetInnerHTML:{__html:Qa[p?"blank":n]}},r))},ei=ig;var Sn=class extends In.Modal{constructor(t){super(t.app);this.plugin=t;this.modalEl.addClass("mod-browser-packs")}onOpen(){q.render(q.createElement(og,{getIconPack:this.getIconPack.bind(this)}),this.contentEl)}onClose(){q.unmountComponentAtNode(this.contentEl)}getIconPack(t,n){return Y(this,null,function*(){let a=(i=!1)=>Y(this,null,function*(){let r=Xa(t,n,i),o=(yield(0,In.requestUrl)({url:r})).arrayBuffer;yield this.plugin.packManager.importIcons({name:r.split("/").pop(),data:o},!1)});try{yield a()}catch(i){console.error("switch to alternative link",i),yield a(!0)}})}},rg=(e="master")=>Y(void 0,null,function*(){let t=yield dl(e),n=[];for(let a of t){let i=n.last();(i==null?void 0:i.series)===a.series?(i.styles.push(a),i.count+=a.count):n.push({homepage:a.homepage,description:a.description,series:a.series,license:a.license,styles:[a],count:a.count})}return n}),og=({getIconPack:e})=>{var a;let[t,n]=ye(null);return Xe(()=>{rg().then(n).catch(n)},[]),t===null?q.createElement("div",{className:"loading"},q.createElement(ei,{type:"spin",className:"loading-indicator"}),q.createElement("div",null,"Loading Icon Pack List...")):Array.isArray(t)?q.createElement("div",{className:"icon-pack-list"},t.map(i=>q.createElement(sg,{key:i.homepage,manifest:i,onDownload:r=>e(r)}))):(console.error(t),q.createElement("div",{className:"error"},"Failed to Load Icon Pack List:",q.createElement("div",{className:"mod-warning"},(a=t.message)!=null?a:t.toString())))},Cl="pack-manifest",sg=({manifest:{series:e,styles:t,description:n,count:a,homepage:i,license:r},onDownload:o})=>{let s=tt(p=>`${Cl}-${p}`,[]);return q.createElement("div",{className:Cl},q.createElement("div",{className:s("title")},e),q.createElement("div",{className:s("details")},q.createElement("span",{className:s("license"),"aria-label":"License: "+r},q.createElement(cl,{size:"0.9em"})),q.createElement("span",{className:s("count"),"aria-label":`${a} icons in total`},q.createElement(Ka,{size:"0.9em"}),q.createElement("span",{className:"icon-text"},a))),q.createElement("div",{className:s("desc")},q.createElement("div",{className:s("homepage"),"aria-label":i,onClick:()=>window.open(i)},q.createElement(ul,null),q.createElement("a",{className:"icon-text"},"Home Page")),n),q.createElement("div",{className:"styles-list"},t.map(p=>q.createElement(cg,{key:p.bundleName,styleInfo:p,onDownload:o}))))},jl="style-info",An=(...e)=>(0,wl.default)(jl,...e),cg=({styleInfo:{count:e,packId:t,path:n,style:a},onDownload:i})=>{var p;let r=tt(l=>`${jl}-${l}`,[]),[o,s]=ye({state:"display"});switch(o.state){case"display":return q.createElement("div",{className:An()},q.createElement("div",{className:r("title")},a||"regular",q.createElement("span",{className:r("pack-id"),"aria-label":"Pack id used as shortcode prefix"},t)),q.createElement("div",{className:r("details")},q.createElement("div",{className:r("count"),"aria-label":`${e} icons in total`},q.createElement(Ka,{size:"0.9em"}),q.createElement("span",{className:"icon-text"},e))),q.createElement("div",{className:r("button-container")},q.createElement("button",{className:r("download"),onClick:()=>Y(void 0,null,function*(){s({state:"downloading"});try{yield i(n),s({state:"done"}),console.log("done")}catch(l){console.error(l),s({state:"error",error:l})}}),"aria-label":"Download"},q.createElement(ll,null)),q.createElement("button",{"aria-label":"Download via Browser",onClick:()=>window.open(Xa(n))},q.createElement(pl,null))));case"downloading":return q.createElement("div",{className:An("downloading")},q.createElement(ei,{type:"bubbles",className:"loading-indicator"}),q.createElement("div",null,"Downloading..."));case"done":return q.createElement("div",{className:An("done")},"Down
|
|
|
|
/*!
|
|
|
|
|
|
|
|
JSZip v3.7.1 - A JavaScript class for generating and reading zip files
|
|
|
|
<http://stuartk.com/jszip>
|
|
|
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
|
|
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
|
https://github.com/nodeca/pako/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
/*!
|
|
|
|
Copyright (c) 2018 Jed Watson.
|
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
|
http://jedwatson.github.io/classnames
|
|
|
|
*/
|
|
|
|
/*!
|
|
|
|
* mime-db
|
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
|
* MIT Licensed
|
|
|
|
*/
|
|
|
|
/*!
|
|
|
|
* mime-types
|
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
|
* MIT Licensed
|
|
|
|
*/
|