diff --git a/dist/build/assets/iconify-fieldtype-8d61333d.css b/dist/build/assets/iconify-fieldtype-2a48adc0.css similarity index 95% rename from dist/build/assets/iconify-fieldtype-8d61333d.css rename to dist/build/assets/iconify-fieldtype-2a48adc0.css index f17fd0c..5bbd753 100644 --- a/dist/build/assets/iconify-fieldtype-8d61333d.css +++ b/dist/build/assets/iconify-fieldtype-2a48adc0.css @@ -1 +1 @@ -.iconify-absolute{position:absolute}.iconify-relative{position:relative}.iconify-bottom-0{bottom:0}.iconify-left-0{left:0}.iconify-left-2{left:.5rem}.iconify-right-0{right:0}.iconify-top-2{top:.5rem}.iconify-mb-4{margin-bottom:1rem}.iconify-flex{display:flex}.iconify-grid{display:grid}.iconify-aspect-square{aspect-ratio:1 / 1}.iconify-h-full{height:100%}.iconify-w-full{width:100%}.iconify-flex-1{flex:1 1 0%}.iconify-cursor-pointer{cursor:pointer}.iconify-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.iconify-flex-col{flex-direction:column}.iconify-items-center{align-items:center}.iconify-justify-center{justify-content:center}.iconify-gap-4{gap:1rem}.iconify-overflow-hidden{overflow:hidden}.iconify-overflow-y-scroll{overflow-y:scroll}.iconify-rounded-lg{border-radius:.5rem}.iconify-rounded-sm{border-radius:.125rem}.iconify-rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.iconify-bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.iconify-bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.iconify-bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.iconify-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.iconify-p-1{padding:.25rem}.iconify-p-2{padding:.5rem}.iconify-px-3{padding-left:.75rem;padding-right:.75rem}.iconify-py-4{padding-top:1rem;padding-bottom:1rem}.iconify-pr-0{padding-right:0}.iconify-pr-6{padding-right:1.5rem}.iconify-text-center{text-align:center}.iconify-text-2xl{font-size:1.5rem;line-height:2rem}.iconify-text-4xl{font-size:2.25rem;line-height:2.5rem}.iconify-text-sm{font-size:.875rem;line-height:1.25rem}.iconify-text-xl{font-size:1.25rem;line-height:1.75rem}.iconify-text-xs{font-size:.75rem;line-height:1rem}.iconify-text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.iconify-text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.iconify-text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.iconify-opacity-0{opacity:0}.iconify-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.iconify-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.iconify-group:hover .group-hover\:iconify-scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.iconify-group:hover .group-hover\:iconify-opacity-100{opacity:1}@media (min-width: 768px){.md\:iconify-px-8{padding-left:2rem;padding-right:2rem}} +.iconify-absolute{position:absolute}.iconify-relative{position:relative}.iconify-bottom-0{bottom:0}.iconify-left-0{left:0}.iconify-left-2{left:.5rem}.iconify-right-0{right:0}.iconify-top-2{top:.5rem}.iconify-mb-4{margin-bottom:1rem}.iconify-flex{display:flex}.iconify-grid{display:grid}.iconify-aspect-square{aspect-ratio:1 / 1}.iconify-h-full{height:100%}.iconify-w-full{width:100%}.iconify-flex-1{flex:1 1 0%}.iconify-cursor-pointer{cursor:pointer}.iconify-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.iconify-flex-col{flex-direction:column}.iconify-items-center{align-items:center}.iconify-justify-center{justify-content:center}.iconify-gap-4{gap:1rem}.iconify-overflow-hidden{overflow:hidden}.iconify-overflow-y-scroll{overflow-y:scroll}.iconify-rounded-lg{border-radius:.5rem}.iconify-rounded-sm{border-radius:.125rem}.iconify-rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.iconify-bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.iconify-bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.iconify-bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.iconify-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.iconify-p-1{padding:.25rem}.iconify-p-2{padding:.5rem}.iconify-px-3{padding-left:.75rem;padding-right:.75rem}.iconify-py-4{padding-top:1rem;padding-bottom:1rem}.iconify-pr-0{padding-right:0}.iconify-pr-6{padding-right:1.5rem}.iconify-text-center{text-align:center}.iconify-text-2xl{font-size:1.5rem;line-height:2rem}.iconify-text-4xl{font-size:2.25rem;line-height:2.5rem}.iconify-text-sm{font-size:.875rem;line-height:1.25rem}.iconify-text-xl{font-size:1.25rem;line-height:1.75rem}.iconify-text-xs{font-size:.75rem;line-height:1rem}.iconify-text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.iconify-text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.iconify-text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.iconify-opacity-0{opacity:0}.iconify-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.iconify-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.iconify-group:hover .group-hover\:iconify-scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.iconify-group:hover .group-hover\:iconify-opacity-100{opacity:1}@media (min-width: 768px){.md\:iconify-px-8{padding-left:2rem;padding-right:2rem}}.dark\:iconify-text-white:where(html[class*=dark],html[class*=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))} diff --git a/dist/build/assets/iconify-fieldtype-dc08a25e.js b/dist/build/assets/iconify-fieldtype-a6540ba7.js similarity index 61% rename from dist/build/assets/iconify-fieldtype-dc08a25e.js rename to dist/build/assets/iconify-fieldtype-a6540ba7.js index 051156e..18e4ad0 100644 --- a/dist/build/assets/iconify-fieldtype-dc08a25e.js +++ b/dist/build/assets/iconify-fieldtype-a6540ba7.js @@ -1,4 +1,4 @@ -var ae=Object.defineProperty;var le=(t,e,n)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(le(t,typeof e!="symbol"?e+"":e,n),n);class pt extends Error{constructor(e,n,r){const o=e.status||e.status===0?e.status:"",i=e.statusText||"",c=`${o} ${i}`.trim(),a=c?`status code ${c}`:"an unknown error";super(`Request failed with ${a}`),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="HTTPError",this.response=e,this.request=n,this.options=r}}class qt extends Error{constructor(e){super("Request timed out"),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.request=e}}const F=t=>t!==null&&typeof t=="object",M=(...t)=>{for(const e of t)if((!F(e)||Array.isArray(e))&&typeof e<"u")throw new TypeError("The `options` argument must be an object");return at({},...t)},Mt=(t={},e={})=>{const n=new globalThis.Headers(t),r=e instanceof globalThis.Headers,o=new globalThis.Headers(e);for(const[i,c]of o.entries())r&&c==="undefined"||c===void 0?n.delete(i):n.set(i,c);return n},at=(...t)=>{let e={},n={};for(const r of t)if(Array.isArray(r))Array.isArray(e)||(e=[]),e=[...e,...r];else if(F(r)){for(let[o,i]of Object.entries(r))F(i)&&o in e&&(i=at(e[o],i)),e={...e,[o]:i};F(r.headers)&&(n=Mt(n,r.headers),e.headers=n)}return e},ue=(()=>{let t=!1,e=!1;const n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";return n&&r&&(e=new globalThis.Request("https://a.com",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")),t&&!e})(),fe=typeof globalThis.AbortController=="function",de=typeof globalThis.ReadableStream=="function",he=typeof globalThis.FormData=="function",Nt=["get","post","put","patch","head","delete"],pe={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},G=2147483647,Ft=Symbol("stop"),ye=t=>Nt.includes(t)?t.toUpperCase():t,ge=["get","put","head","delete","options","trace"],me=[408,413,429,500,502,503,504],Lt=[413,429,503],yt={limit:2,methods:ge,statusCodes:me,afterStatusCodes:Lt,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY},be=(t={})=>{if(typeof t=="number")return{...yt,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...yt,...t,afterStatusCodes:Lt}};async function we(t,e,n){return new Promise((r,o)=>{const i=setTimeout(()=>{e&&e.abort(),o(new qt(t))},n.timeout);n.fetch(t).then(r).catch(o).then(()=>{clearTimeout(i)})})}const _e=!!globalThis.DOMException;function gt(t){if(_e)return new DOMException((t==null?void 0:t.reason)??"The operation was aborted.","AbortError");const e=new Error((t==null?void 0:t.reason)??"The operation was aborted.");return e.name="AbortError",e}async function xe(t,{signal:e}){return new Promise((n,r)=>{if(e){if(e.aborted){r(gt(e));return}e.addEventListener("abort",o,{once:!0})}function o(){r(gt(e)),clearTimeout(i)}const i=setTimeout(()=>{e==null||e.removeEventListener("abort",o),n()},t)})}class D{static create(e,n){const r=new D(e,n),o=async()=>{if(r._options.timeout>G)throw new RangeError(`The \`timeout\` option cannot be greater than ${G}`);await Promise.resolve();let a=await r._fetch();for(const s of r._options.hooks.afterResponse){const l=await s(r.request,r._options,r._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(r._decorateResponse(a),!a.ok&&r._options.throwHttpErrors){let s=new pt(a,r.request,r._options);for(const l of r._options.hooks.beforeError)s=await l(s);throw s}if(r._options.onDownloadProgress){if(typeof r._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!de)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(a.clone(),r._options.onDownloadProgress)}return a},c=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(const[a,s]of Object.entries(pe))c[a]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||s);const u=(await c).clone();if(a==="json"){if(u.status===204||(await u.clone().arrayBuffer()).byteLength===0)return"";if(n.parseJson)return n.parseJson(await u.text())}return u[a]()};return c}constructor(e,n={}){if(Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_retryCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._input=e,this._options={credentials:this._input.credentials||"same-origin",...n,headers:Mt(this._input.headers,n.headers),hooks:at({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:ye(n.method??this._input.method),prefixUrl:String(n.prefixUrl||""),retry:be(n.retry),throwHttpErrors:n.throwHttpErrors!==!1,timeout:typeof n.timeout>"u"?1e4:n.timeout,fetch:n.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(fe){if(this.abortController=new globalThis.AbortController,this._options.signal){const r=this._options.signal;this._options.signal.addEventListener("abort",()=>{this.abortController.abort(r.reason)})}this._options.signal=this.abortController.signal}if(ue&&(this._options.duplex="half"),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const o="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),i=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,o);(he&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(i,{...this.request}),this._options)}this._options.json!==void 0&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",this._options.headers.get("content-type")??"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}_calculateRetryDelay(e){if(this._retryCount++,this._retryCountthis._options.retry.maxRetryAfter?0:o}if(e.response.status===413)return 0}const n=.3;return Math.min(this._options.retry.backoffLimit,n*2**(this._retryCount-1)*1e3)}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(n){const r=Math.min(this._calculateRetryDelay(n),G);if(r!==0&&this._retryCount>0){await xe(r,{signal:this._options.signal});for(const o of this._options.hooks.beforeRetry)if(await o({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===Ft)return;return this._retry(e)}throw n}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const n=await e(this.request,this._options);if(n instanceof Request){this.request=n;break}if(n instanceof Response)return n}return this._options.timeout===!1?this._options.fetch(this.request.clone()):we(this.request.clone(),this.abortController,this._options)}_stream(e,n){const r=Number(e.headers.get("content-length"))||0;let o=0;return e.status===204?(n&&n({percent:1,totalBytes:r,transferredBytes:o},new Uint8Array),new globalThis.Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(i){const c=e.body.getReader();n&&n({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function a(){const{done:s,value:l}=await c.read();if(s){i.close();return}if(n){o+=l.byteLength;const u=r===0?0:o/r;n({percent:u,transferredBytes:o,totalBytes:r},l)}i.enqueue(l),await a()}await a()}}),{status:e.status,statusText:e.statusText,headers:e.headers})}}/*! MIT License © Sindre Sorhus */const Z=t=>{const e=(n,r)=>D.create(n,M(t,r));for(const n of Nt)e[n]=(r,o)=>D.create(r,M(t,o,{method:n}));return e.create=n=>Z(M(n)),e.extend=n=>Z(M(t,n)),e.stop=Ft,e},ve=Z(),Ce=ve;/** +var ae=Object.defineProperty;var le=(t,e,n)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(le(t,typeof e!="symbol"?e+"":e,n),n);class pt extends Error{constructor(e,n,r){const o=e.status||e.status===0?e.status:"",s=e.statusText||"",c=`${o} ${s}`.trim(),a=c?`status code ${c}`:"an unknown error";super(`Request failed with ${a}`),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="HTTPError",this.response=e,this.request=n,this.options=r}}class qt extends Error{constructor(e){super("Request timed out"),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.request=e}}const F=t=>t!==null&&typeof t=="object",M=(...t)=>{for(const e of t)if((!F(e)||Array.isArray(e))&&typeof e<"u")throw new TypeError("The `options` argument must be an object");return at({},...t)},Mt=(t={},e={})=>{const n=new globalThis.Headers(t),r=e instanceof globalThis.Headers,o=new globalThis.Headers(e);for(const[s,c]of o.entries())r&&c==="undefined"||c===void 0?n.delete(s):n.set(s,c);return n},at=(...t)=>{let e={},n={};for(const r of t)if(Array.isArray(r))Array.isArray(e)||(e=[]),e=[...e,...r];else if(F(r)){for(let[o,s]of Object.entries(r))F(s)&&o in e&&(s=at(e[o],s)),e={...e,[o]:s};F(r.headers)&&(n=Mt(n,r.headers),e.headers=n)}return e},ue=(()=>{let t=!1,e=!1;const n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";return n&&r&&(e=new globalThis.Request("https://a.com",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")),t&&!e})(),fe=typeof globalThis.AbortController=="function",de=typeof globalThis.ReadableStream=="function",he=typeof globalThis.FormData=="function",Nt=["get","post","put","patch","head","delete"],pe={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},G=2147483647,Ft=Symbol("stop"),ye=t=>Nt.includes(t)?t.toUpperCase():t,ge=["get","put","head","delete","options","trace"],me=[408,413,429,500,502,503,504],Lt=[413,429,503],yt={limit:2,methods:ge,statusCodes:me,afterStatusCodes:Lt,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY},be=(t={})=>{if(typeof t=="number")return{...yt,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...yt,...t,afterStatusCodes:Lt}};async function we(t,e,n){return new Promise((r,o)=>{const s=setTimeout(()=>{e&&e.abort(),o(new qt(t))},n.timeout);n.fetch(t).then(r).catch(o).then(()=>{clearTimeout(s)})})}const _e=!!globalThis.DOMException;function gt(t){if(_e)return new DOMException((t==null?void 0:t.reason)??"The operation was aborted.","AbortError");const e=new Error((t==null?void 0:t.reason)??"The operation was aborted.");return e.name="AbortError",e}async function xe(t,{signal:e}){return new Promise((n,r)=>{if(e){if(e.aborted){r(gt(e));return}e.addEventListener("abort",o,{once:!0})}function o(){r(gt(e)),clearTimeout(s)}const s=setTimeout(()=>{e==null||e.removeEventListener("abort",o),n()},t)})}class D{static create(e,n){const r=new D(e,n),o=async()=>{if(r._options.timeout>G)throw new RangeError(`The \`timeout\` option cannot be greater than ${G}`);await Promise.resolve();let a=await r._fetch();for(const i of r._options.hooks.afterResponse){const l=await i(r.request,r._options,r._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(r._decorateResponse(a),!a.ok&&r._options.throwHttpErrors){let i=new pt(a,r.request,r._options);for(const l of r._options.hooks.beforeError)i=await l(i);throw i}if(r._options.onDownloadProgress){if(typeof r._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!de)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(a.clone(),r._options.onDownloadProgress)}return a},c=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(const[a,i]of Object.entries(pe))c[a]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||i);const u=(await c).clone();if(a==="json"){if(u.status===204||(await u.clone().arrayBuffer()).byteLength===0)return"";if(n.parseJson)return n.parseJson(await u.text())}return u[a]()};return c}constructor(e,n={}){if(Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_retryCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._input=e,this._options={credentials:this._input.credentials||"same-origin",...n,headers:Mt(this._input.headers,n.headers),hooks:at({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:ye(n.method??this._input.method),prefixUrl:String(n.prefixUrl||""),retry:be(n.retry),throwHttpErrors:n.throwHttpErrors!==!1,timeout:typeof n.timeout>"u"?1e4:n.timeout,fetch:n.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(fe){if(this.abortController=new globalThis.AbortController,this._options.signal){const r=this._options.signal;this._options.signal.addEventListener("abort",()=>{this.abortController.abort(r.reason)})}this._options.signal=this.abortController.signal}if(ue&&(this._options.duplex="half"),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const o="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),s=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,o);(he&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(s,{...this.request}),this._options)}this._options.json!==void 0&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",this._options.headers.get("content-type")??"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}_calculateRetryDelay(e){if(this._retryCount++,this._retryCountthis._options.retry.maxRetryAfter?0:o}if(e.response.status===413)return 0}const n=.3;return Math.min(this._options.retry.backoffLimit,n*2**(this._retryCount-1)*1e3)}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(n){const r=Math.min(this._calculateRetryDelay(n),G);if(r!==0&&this._retryCount>0){await xe(r,{signal:this._options.signal});for(const o of this._options.hooks.beforeRetry)if(await o({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===Ft)return;return this._retry(e)}throw n}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const n=await e(this.request,this._options);if(n instanceof Request){this.request=n;break}if(n instanceof Response)return n}return this._options.timeout===!1?this._options.fetch(this.request.clone()):we(this.request.clone(),this.abortController,this._options)}_stream(e,n){const r=Number(e.headers.get("content-length"))||0;let o=0;return e.status===204?(n&&n({percent:1,totalBytes:r,transferredBytes:o},new Uint8Array),new globalThis.Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(s){const c=e.body.getReader();n&&n({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function a(){const{done:i,value:l}=await c.read();if(i){s.close();return}if(n){o+=l.byteLength;const u=r===0?0:o/r;n({percent:u,transferredBytes:o,totalBytes:r},l)}s.enqueue(l),await a()}await a()}}),{status:e.status,statusText:e.statusText,headers:e.headers})}}/*! MIT License © Sindre Sorhus */const Z=t=>{const e=(n,r)=>D.create(n,M(t,r));for(const n of Nt)e[n]=(r,o)=>D.create(r,M(t,o,{method:n}));return e.create=n=>Z(M(n)),e.extend=n=>Z(M(t,n)),e.stop=Ft,e},ve=Z(),Ce=ve;/** * (c) Iconify * * For the full copyright and license information, please view the license.txt @@ -8,4 +8,4 @@ var ae=Object.defineProperty;var le=(t,e,n)=>e in t?ae(t,e,{enumerable:!0,config * * @license MIT * @version 1.0.8 -*/const $t=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),P=Object.freeze({...$t,...H}),tt=Object.freeze({...P,body:"",hidden:!1}),Ie=Object.freeze({width:null,height:null}),Dt=Object.freeze({...Ie,...H});function Se(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return e}const Te=/[\s,]+/;function ke(t,e){e.split(Te).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Ht={...Dt,preserveAspectRatio:""};function mt(t){const e={...Ht},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Se(n("rotate","")),ke(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function Ae(t,e){for(const n in Ht)if(t[n]!==e[n])return!0;return!1}const S=/^[a-z0-9]+(-[a-z0-9]+)*$/,E=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),s=o.pop(),l={provider:o.length>0?o[0]:r,prefix:s,name:a};return e&&!L(l)?null:l}const i=o[0],c=i.split("-");if(c.length>1){const a={provider:r,prefix:c.shift(),name:c.join("-")};return e&&!L(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return e&&!L(a,n)?null:a}return null},L=(t,e)=>t?!!((t.provider===""||t.provider.match(S))&&(e&&t.prefix===""||t.prefix.match(S))&&t.name.match(S)):!1;function Re(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function bt(t,e){const n=Re(t,e);for(const r in tt)r in H?r in t&&!(r in n)&&(n[r]=H[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function Pe(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(c){if(n[c])return o[c]=[];if(!(c in o)){o[c]=null;const a=r[c]&&r[c].parent,s=a&&i(a);s&&(o[c]=[a].concat(s))}return o[c]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function Ee(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let i={};function c(a){i=bt(r[a]||o[a],i)}return c(e),n.forEach(c),bt(t,i)}function Ut(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=Pe(t);for(const o in r){const i=r[o];i&&(e(o,Ee(t,o,i)),n.push(o))}return n}const Oe={provider:"",aliases:{},not_found:{},...$t};function K(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Bt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!K(t,Oe))return null;const n=e.icons;for(const o in n){const i=n[o];if(!o.match(S)||typeof i.body!="string"||!K(i,tt))return null}const r=e.aliases||Object.create(null);for(const o in r){const i=r[o],c=i.parent;if(!o.match(S)||typeof c!="string"||!n[c]&&!r[c]||!K(i,tt))return null}return e}const U=Object.create(null);function je(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function _(t,e){const n=U[t]||(U[t]=Object.create(null));return n[e]||(n[e]=je(t,e))}function lt(t,e){return Bt(e)?Ut(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function qe(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Me(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(U)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(U[o]||{})).forEach(c=>{const a=_(o,c);n=n.concat(Object.keys(a.icons).map(s=>(o!==""?"@"+o+":":"")+c+":"+s))})}),n}let k=!1;function zt(t){return typeof t=="boolean"&&(k=t),k}function A(t){const e=typeof t=="string"?E(t,!0,k):t;if(e){const n=_(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Qt(t,e){const n=E(t,!0,k);if(!n)return!1;const r=_(n.provider,n.prefix);return qe(r,n.name,e)}function wt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),k&&!e&&!t.prefix){let o=!1;return Bt(t)&&(t.prefix="",Ut(t,(i,c)=>{c&&Qt(i,c)&&(o=!0)})),o}const n=t.prefix;if(!L({provider:e,prefix:n,name:"a"}))return!1;const r=_(e,n);return!!lt(r,t)}function Ne(t){return!!A(t)}function Fe(t){const e=A(t);return e?{...P,...e}:null}function Le(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,c=o.prefix,a=o.name,s=n[i]||(n[i]=Object.create(null)),l=s[c]||(s[c]=_(i,c));let u;a in l.icons?u=e.loaded:c===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:i,prefix:c,name:a};u.push(f)}),e}function Vt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function $e(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(i=>{const c=i.icons,a=c.pending.length;c.pending=c.pending.filter(s=>{if(s.prefix!==o)return!0;const l=s.name;if(t.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(t.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),c.pending.length!==a&&(n||Vt([t],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let De=0;function He(t,e,n){const r=De++,o=Vt.bind(null,n,r);if(!e.pending.length)return o;const i={id:r,icons:e,callback:t,abort:o};return n.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),o}const et=Object.create(null);function _t(t,e){et[t]=e}function nt(t){return et[t]||et[""]}function Ue(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?E(o,e,n):o;i&&r.push(i)}),r}var Be={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ze(t,e,n,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let c;if(t.random){let h=t.resources.slice(0);for(c=[];h.length>1;){const w=Math.floor(Math.random()*h.length);c.push(h[w]),h=h.slice(0,w).concat(h.slice(w+1))}c=c.concat(h)}else c=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let s="pending",l=0,u,f=null,d=[],y=[];typeof r=="function"&&y.push(r);function p(){f&&(clearTimeout(f),f=null)}function g(){s==="pending"&&(s="aborted"),p(),d.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),d=[]}function V(h,w){w&&(y=[]),typeof h=="function"&&y.push(h)}function O(){return{startTime:a,payload:e,status:s,queriesSent:l,queriesPending:d.length,subscribe:V,abort:g}}function m(){s="failed",y.forEach(h=>{h(void 0,u)})}function b(){d.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),d=[]}function ce(h,w,C){const j=w!=="success";switch(d=d.filter(x=>x!==h),s){case"pending":break;case"failed":if(j||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=C,m();return}if(j){u=C,d.length||(c.length?J():m());return}if(p(),b(),!t.random){const x=t.resources.indexOf(h.resource);x!==-1&&x!==t.index&&(t.index=x)}s="completed",y.forEach(x=>{x(C)})}function J(){if(s!=="pending")return;p();const h=c.shift();if(h===void 0){if(d.length){f=setTimeout(()=>{p(),s==="pending"&&(b(),m())},t.timeout);return}m();return}const w={status:"pending",resource:h,callback:(C,j)=>{ce(w,C,j)}};d.push(w),l++,f=setTimeout(J,t.rotate),n(h,e,w.callback)}return setTimeout(J),O}function Jt(t){const e={...Be,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,s,l){const u=ze(e,a,s,(f,d)=>{r(),l&&l(f,d)});return n.push(u),u}function i(a){return n.find(s=>a(s))||null}return{query:o,find:i,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function ut(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const z=Object.create(null),I=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];for(;I.length>0;)I.length===1||Math.random()>.5?$.push(I.shift()):$.push(I.pop());z[""]=ut({resources:["https://api.iconify.design"].concat($)});function xt(t,e){const n=ut(e);return n===null?!1:(z[t]=n,!0)}function Q(t){return z[t]}function Qe(){return Object.keys(z)}function vt(){}const W=Object.create(null);function Ve(t){if(!W[t]){const e=Q(t);if(!e)return;const n=Jt(e),r={config:e,redundancy:n};W[t]=r}return W[t]}function Gt(t,e,n){let r,o;if(typeof t=="string"){const i=nt(t);if(!i)return n(void 0,424),vt;o=i.send;const c=Ve(t);c&&(r=c.redundancy)}else{const i=ut(t);if(i){r=Jt(i);const c=t.resources?t.resources[0]:"",a=nt(c);a&&(o=a.send)}}return!r||!o?(n(void 0,424),vt):r.query(e,o,n)().abort}const Ct="iconify2",R="iconify",Kt=R+"-count",It=R+"-version",Wt=36e5,Je=168;function ot(t,e){try{return t.getItem(e)}catch{}}function ft(t,e,n){try{return t.setItem(e,n),!0}catch{}}function St(t,e){try{t.removeItem(e)}catch{}}function rt(t,e){return ft(t,Kt,e.toString())}function it(t){return parseInt(ot(t,Kt))||0}const v={local:!0,session:!0},Xt={local:new Set,session:new Set};let dt=!1;function Ge(t){dt=t}let N=typeof window>"u"?{}:window;function Yt(t){const e=t+"Storage";try{if(N&&N[e]&&typeof N[e].length=="number")return N[e]}catch{}v[t]=!1}function Zt(t,e){const n=Yt(t);if(!n)return;const r=ot(n,It);if(r!==Ct){if(r){const a=it(n);for(let s=0;s{const s=R+a.toString(),l=ot(n,s);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}St(n,s)}};let c=it(n);for(let a=c-1;a>=0;a--)i(a)||(a===c-1?(c--,rt(n,c)):Xt[t].add(a))}function te(){if(!dt){Ge(!0);for(const t in v)Zt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,i=_(r,o);if(!lt(i,n).length)return!1;const c=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function Ke(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Zt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===e});return!0}function We(t,e){dt||te();function n(r){let o;if(!v[r]||!(o=Yt(r)))return;const i=Xt[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=it(o),!rt(o,c+1))return;const a={cached:Math.floor(Date.now()/Wt),provider:t.provider,data:e};return ft(o,R+c.toString(),JSON.stringify(a))}e.lastModified&&!Ke(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Tt(){}function Xe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,$e(t)}))}function Ye(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=nt(n)))return;i.prepare(n,r,o).forEach(a=>{Gt(n,a,s=>{if(typeof s!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=lt(t,s);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),We(t,s)}catch(l){console.error(l)}Xe(t)})})}))}const ht=(t,e)=>{const n=Ue(t,!0,zt()),r=Le(n);if(!r.pending.length){let s=!0;return e&&setTimeout(()=>{s&&e(r.loaded,r.missing,r.pending,Tt)}),()=>{s=!1}}const o=Object.create(null),i=[];let c,a;return r.pending.forEach(s=>{const{provider:l,prefix:u}=s;if(u===a&&l===c)return;c=l,a=u,i.push(_(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(s=>{const{provider:l,prefix:u,name:f}=s,d=_(l,u),y=d.pendingIcons||(d.pendingIcons=new Set);y.has(f)||(y.add(f),o[l][u].push(f))}),i.forEach(s=>{const{provider:l,prefix:u}=s;o[l][u].length&&Ye(s,o[l][u])}),e?He(e,r,i):Tt},Ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?E(t,!0):t;if(!r){n(t);return}ht([r||t],o=>{if(o.length&&r){const i=A(r);if(i){e({...P,...i});return}}n(t)})});function tn(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function en(t,e){const n=typeof t=="string"?E(t,!0,!0):null;if(!n){const i=tn(t);return{value:t,data:i}}const r=A(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ht([n],()=>e(t,n,A(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let ee=!1;try{ee=navigator.vendor.indexOf("Apple")===0}catch{}function nn(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ee||t.indexOf("t==="unset"||t==="undefined"||t==="none";function ne(t,e){const n={...P,...t},r={...Dt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const g=[],V=p.hFlip,O=p.vFlip;let m=p.rotate;V?O?m+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):O&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}m%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(i=''+i+"")});const c=r.width,a=r.height,s=o.width,l=o.height;let u,f;c===null?(f=a===null?"1em":a==="auto"?l:a,u=st(f,s/l)):(u=c==="auto"?s:c,f=a===null?st(u,l/s):a==="auto"?l:a);const d={},y=(p,g)=>{sn(g)||(d[p]=g.toString())};return y("width",u),y("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+s.toString()+" "+l.toString(),{attributes:d,body:i}}const cn=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let B=cn();function an(t){B=t}function ln(){return B}function un(t,e){const n=Q(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(c=>{o=Math.max(o,c.length)});const i=e+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function fn(t){return t===404}const dn=(t,e,n)=>{const r=[],o=un(t,e),i="icons";let c={type:i,provider:t,prefix:e,icons:[]},a=0;return n.forEach((s,l)=>{a+=s.length+1,a>=o&&l>0&&(r.push(c),c={type:i,provider:t,prefix:e,icons:[]},a=s.length),c.icons.push(s)}),r.push(c),r};function hn(t){if(typeof t=="string"){const e=Q(t);if(e)return e.path}return"/"}const pn=(t,e,n)=>{if(!B){n("abort",424);return}let r=hn(e.provider);switch(e.type){case"icons":{const i=e.prefix,a=e.icons.join(","),s=new URLSearchParams({icons:a});r+=i+".json?"+s.toString();break}case"custom":{const i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;B(t+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{n(fn(c)?"abort":"next",c)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},yn={prepare:dn,send:pn};function kt(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let oe="";function gn(t){oe=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+oe}function re(){_t("",yn),zt(!0);let t;try{t=window}catch{}if(t){if(te(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!wt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const i=n[r];if(typeof i!="object"||!i||i.resources===void 0)continue;xt(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>kt(n,!0),disableCache:n=>kt(n,!1),iconExists:Ne,getIcon:Fe,listIcons:Me,addIcon:Qt,addCollection:wt,calculateSize:st,buildIcon:ne,loadIcons:ht,loadIcon:Ze,addAPIProvider:xt,appendCustomStyle:gn,_api:{getAPIConfig:Q,setAPIModule:_t,sendAPIQuery:Gt,setFetch:an,getFetch:ln,listAPIProviders:Qe}}}function ie(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function mn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function bn(t){return"data:image/svg+xml,"+mn(t)}function wn(t){return'url("'+bn(t)+'")'}const ct={"background-color":"currentColor"},se={"background-color":"transparent"},Rt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":ct,mask:ct,background:se};for(const t in Pt){const e=Pt[t];for(const n in Rt)e[t+"-"+n]=Rt[n]}function Et(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function _n(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("");const i=t.attributes,c=ie(o,{...i,width:e.width+"",height:e.height+""}),a=wn(c),s=r.style,l={"--svg":a,width:Et(i.width),height:Et(i.height),...n?ct:se};for(const u in l)s.setProperty(u,l[u]);return r}let T;function xn(){try{T=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{T=null}}function vn(t){return T===void 0&&xn(),T?T.createHTML(t):t}function Cn(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ie(t.body,n);return e.innerHTML=vn(o),e.firstChild}function Ot(t,e){const n=e.icon.data,r=e.customisations,o=ne(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=e.renderedMode;let c;switch(i){case"svg":c=Cn(o);break;default:c=_n(o,{...P,...n},i==="mask")}const a=Array.from(t.childNodes).find(s=>{const l=s.tagName&&s.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?c.tagName==="SPAN"&&a.tagName===c.tagName?a.setAttribute("style",c.getAttribute("style")):t.replaceChild(c,a):t.appendChild(c)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function In(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends n{constructor(){super();q(this,"_shadowRoot");q(this,"_state");q(this,"_checkQueued",!1);const s=this._shadowRoot=this.attachShadow({mode:"open"}),l=X(this);At(s,l),this._state=jt({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const l=X(this),u=this._state;l!==u.inline&&(u.inline=l,At(this._shadowRoot,l))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return X(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const l=this._shadowRoot;if(s.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Ot(l,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,l=this.getAttribute("icon");if(l!==s.icon.value){this._iconChanged(l);return}if(!s.rendered)return;const u=this.getAttribute("mode"),f=mt(this);(s.attrMode!==u||Ae(s.customisations,f))&&this._renderIcon(s.icon,f,u)}_iconChanged(s){const l=en(s,(u,f,d)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const p={value:u,name:f,data:d};p.data?this._gotIconData(p):y.icon=p});l.data?this._gotIconData(l):this._state=jt(l,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,mt(this),this.getAttribute("mode"))}_renderIcon(s,l,u){const f=nn(s.data.body,u),d=this._state.inline;Ot(this._shadowRoot,this._state={rendered:!0,icon:s,inline:d,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in i.prototype||Object.defineProperty(i.prototype,a,{get:function(){return this.getAttribute(a)},set:function(s){s!==null?this.setAttribute(a,s):this.removeAttribute(a)}})});const c=re();for(const a in c)i[a]=i.prototype[a]=c[a];return e.define(t,i),i}const Sn=In()||re(),{enableCache:Mn,disableCache:Nn,iconExists:Fn,getIcon:Tn,listIcons:Ln,addIcon:$n,addCollection:Dn,calculateSize:Hn,buildIcon:kn,loadIcons:Un,loadIcon:Bn,addAPIProvider:zn,_api:Qn}=Sn;function An(t,e,n,r,o,i,c,a){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i);var l;if(c?(l=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__<"u"&&(d=__VUE_SSR_CONTEXT__),o&&o.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(c)},s._ssrRegister=l):o&&(l=a?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(s.functional){s._injectStyles=l;var u=s.render;s.render=function(y,p){return l.call(p),u(y,p)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:s}}const Rn={mixins:[Fieldtype],data(){return{searchModalIsOpen:!1,listType:"grid",query:"",result:null,loading:!1}},computed:{icons(){return this.result?this.result.icons.map(t=>({name:t,collection:this.result.collections[t.split(":")[0]]})):[]}},methods:{openSearchModal(){this.searchModalIsOpen=!0,this.$wait(300).then(()=>{this.$refs.query.$el.querySelector("input").focus()})},search(){this.loading=!0,ky.get("https://api.iconify.design/search?limit=999&query="+this.query).json().then(t=>{this.result=t}).finally(()=>{this.loading=!1})},getIconBuildData(t){const e=kn(Tn(t.name)),n={name:t.name};return Object.keys(e).forEach(r=>{n[r]=e[r]}),n},select(t){this.config.store_as==="name"?this.update(t.name):this.config.store_as==="svg_data"&&this.update(this.getIconBuildData(t)),this.searchModalIsOpen=!1}}};var Pn=function(){var e=this,n=e._self._c;return n("div",[e.value?n("div",{staticClass:"iconify-flex iconify-items-center iconify-gap-4"},[n("dropdown-list",{attrs:{placement:"bottom-center"},scopedSlots:e._u([{key:"trigger",fn:function(){return[typeof e.value=="string"?n("iconify-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.value,delay:500,autoHide:!1},expression:"{content: value, delay: 500, autoHide: false}"}],staticClass:"iconify-cursor-pointer iconify-text-4xl iconify-text-gray-800",attrs:{icon:e.value}}):n("svg",e._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.value.name,delay:500,autoHide:!1},expression:"{content: value.name, delay: 500, autoHide: false}"}],staticClass:"iconify-cursor-pointer iconify-text-4xl iconify-text-gray-800",domProps:{innerHTML:e._s(e.value.body)}},"svg",e.value.attributes,!1))]},proxy:!0}],null,!1,2969945716)},[n("dropdown-item",{attrs:{text:"Change"},on:{click:e.openSearchModal}}),n("dropdown-item",{attrs:{text:"Remove"},on:{click:function(r){return e.update(null)}}})],1)],1):n("button",{staticClass:"btn",on:{click:e.openSearchModal}},[e._v("Browse Iconify")]),e.searchModalIsOpen?n("stack",{on:{closed:function(r){e.searchModalIsOpen=!1}},scopedSlots:e._u([{key:"default",fn:function({close:r}){return n("div",{staticClass:"iconify-flex iconify-flex-col iconify-h-full iconify-bg-white"},[n("header",{staticClass:"flex items-center sticky top-0 inset-x-0 bg-white shadow px-8 py-2 z-1 h-13"},[n("h1",{staticClass:"flex-1 flex items-center text-xl"},[e._v(" Search and select an icon ")]),n("button",{staticClass:"btn-close",attrs:{type:"button"},on:{click:function(o){e.searchModalIsOpen=!1}}},[e._v("×")])]),n("div",{staticClass:"iconify-px-3 md:iconify-px-8 iconify-py-4 iconify-pr-0 iconify-flex-1 iconify-flex iconify-flex-col iconify-overflow-hidden"},[n("div",{staticClass:"iconify-w-full iconify-flex iconify-gap-4 iconify-mb-4"},[n("text-input",{ref:"query",staticClass:"iconify-flex-1",attrs:{placeholder:"Search for an icon..."},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.query,callback:function(o){e.query=o},expression:"query"}}),n("button",{staticClass:"btn-primary",attrs:{disabled:e.loading},on:{click:e.search}},[e._v(e._s(e.loading?"Searching...":"Search"))]),n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn px-4",class:{active:e.listType==="grid"},on:{click:function(o){e.listType="grid"}}},[n("iconify-icon",{staticClass:"iconify-text-xl",attrs:{icon:"ph:grid-nine-light"}})],1),n("button",{staticClass:"btn px-4",class:{active:e.listType==="table"},on:{click:function(o){e.listType="table"}}},[n("iconify-icon",{staticClass:"iconify-text-xl",attrs:{icon:"ph:table-light"}})],1)])],1),e.result?n("div",{staticClass:"iconify-overflow-y-scroll iconify-flex-1 iconify-pr-6"},[e.listType==="table"?n("table",{staticClass:"data-table iconify-w-full"},[n("thead",[n("tr",[n("th",[e._v("Icon")]),n("th",[e._v("Name")]),n("th",[e._v("Collection")]),n("th",[e._v("License")]),n("th")])]),n("tbody",e._l(e.icons,function(o){return n("tr",[n("td",[n("iconify-icon",{staticClass:"iconify-text-2xl iconify-text-gray-800",attrs:{icon:o.name}})],1),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.name)}})]),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.collection.name)}})]),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.collection.license.title)}})]),n("td",[n("button",{staticClass:"btn btn-sm",on:{click:function(i){return e.select(o)}}},[e._v("Select")])])])}),0)]):e._e(),e.listType==="grid"?n("div",{staticClass:"iconify-grid iconify-grid-cols-8 iconify-gap-4"},e._l(e.icons,function(o){return n("button",{staticClass:"iconify-relative iconify-aspect-square iconify-bg-gray-100 iconify-rounded-lg iconify-flex iconify-items-center iconify-justify-center iconify-group",on:{click:function(i){return e.select(o)}}},[n("iconify-icon",{staticClass:"iconify-text-4xl iconify-text-gray-800 group-hover:iconify-scale-125 iconify-transition-all",attrs:{icon:o.name}}),n("div",{staticClass:"iconify-absolute iconify-bottom-0 iconify-left-0 iconify-right-0 iconify-p-2 iconify-bg-gray-50 iconify-text-xs iconify-text-gray-500 iconify-text-center iconify-rounded-b-lg iconify-opacity-0 group-hover:iconify-opacity-100 iconify-transition-opacity"},[n("span",{domProps:{textContent:e._s(o.name)}})]),n("div",{staticClass:"iconify-absolute iconify-top-2 iconify-left-2 iconify-p-1 iconify-bg-gray-200 iconify-text-xs iconify-text-gray-600 iconify-rounded-sm iconify-opacity-0 group-hover:iconify-opacity-100 iconify-transition-opacity"},[n("span",{domProps:{textContent:e._s(o.collection.license.title)}})])],1)}),0):e._e()]):e._e()])])}}],null,!1,3909295341)}):e._e()],1)},En=[],On=An(Rn,Pn,En,!1,null,null,null,null);const jn=On.exports;window.ky=Ce;Statamic.booting(()=>{Statamic.$components.register("iconify-fieldtype",jn)}); +*/const $t=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),P=Object.freeze({...$t,...H}),tt=Object.freeze({...P,body:"",hidden:!1}),Ie=Object.freeze({width:null,height:null}),Dt=Object.freeze({...Ie,...H});function Se(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const Te=/[\s,]+/;function ke(t,e){e.split(Te).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Ht={...Dt,preserveAspectRatio:""};function mt(t){const e={...Ht},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Se(n("rotate","")),ke(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function Ae(t,e){for(const n in Ht)if(t[n]!==e[n])return!0;return!1}const S=/^[a-z0-9]+(-[a-z0-9]+)*$/,E=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),i=o.pop(),l={provider:o.length>0?o[0]:r,prefix:i,name:a};return e&&!L(l)?null:l}const s=o[0],c=s.split("-");if(c.length>1){const a={provider:r,prefix:c.shift(),name:c.join("-")};return e&&!L(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!L(a,n)?null:a}return null},L=(t,e)=>t?!!((t.provider===""||t.provider.match(S))&&(e&&t.prefix===""||t.prefix.match(S))&&t.name.match(S)):!1;function Re(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function bt(t,e){const n=Re(t,e);for(const r in tt)r in H?r in t&&!(r in n)&&(n[r]=H[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function Pe(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(c){if(n[c])return o[c]=[];if(!(c in o)){o[c]=null;const a=r[c]&&r[c].parent,i=a&&s(a);i&&(o[c]=[a].concat(i))}return o[c]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function Ee(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function c(a){s=bt(r[a]||o[a],s)}return c(e),n.forEach(c),bt(t,s)}function Ut(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=Pe(t);for(const o in r){const s=r[o];s&&(e(o,Ee(t,o,s)),n.push(o))}return n}const Oe={provider:"",aliases:{},not_found:{},...$t};function K(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Bt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!K(t,Oe))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(S)||typeof s.body!="string"||!K(s,tt))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],c=s.parent;if(!o.match(S)||typeof c!="string"||!n[c]&&!r[c]||!K(s,tt))return null}return e}const U=Object.create(null);function je(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function _(t,e){const n=U[t]||(U[t]=Object.create(null));return n[e]||(n[e]=je(t,e))}function lt(t,e){return Bt(e)?Ut(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function qe(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Me(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(U)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(U[o]||{})).forEach(c=>{const a=_(o,c);n=n.concat(Object.keys(a.icons).map(i=>(o!==""?"@"+o+":":"")+c+":"+i))})}),n}let k=!1;function zt(t){return typeof t=="boolean"&&(k=t),k}function A(t){const e=typeof t=="string"?E(t,!0,k):t;if(e){const n=_(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Qt(t,e){const n=E(t,!0,k);if(!n)return!1;const r=_(n.provider,n.prefix);return qe(r,n.name,e)}function wt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),k&&!e&&!t.prefix){let o=!1;return Bt(t)&&(t.prefix="",Ut(t,(s,c)=>{c&&Qt(s,c)&&(o=!0)})),o}const n=t.prefix;if(!L({provider:e,prefix:n,name:"a"}))return!1;const r=_(e,n);return!!lt(r,t)}function Ne(t){return!!A(t)}function Fe(t){const e=A(t);return e?{...P,...e}:null}function Le(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,c=o.prefix,a=o.name,i=n[s]||(n[s]=Object.create(null)),l=i[c]||(i[c]=_(s,c));let u;a in l.icons?u=e.loaded:c===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:s,prefix:c,name:a};u.push(f)}),e}function Vt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function $e(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const c=s.icons,a=c.pending.length;c.pending=c.pending.filter(i=>{if(i.prefix!==o)return!0;const l=i.name;if(t.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(t.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),c.pending.length!==a&&(n||Vt([t],s.id),s.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),s.abort))})}))}let De=0;function He(t,e,n){const r=De++,o=Vt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(s)}),o}const et=Object.create(null);function _t(t,e){et[t]=e}function nt(t){return et[t]||et[""]}function Ue(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?E(o,e,n):o;s&&r.push(s)}),r}var Be={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ze(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let c;if(t.random){let h=t.resources.slice(0);for(c=[];h.length>1;){const w=Math.floor(Math.random()*h.length);c.push(h[w]),h=h.slice(0,w).concat(h.slice(w+1))}c=c.concat(h)}else c=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let i="pending",l=0,u,f=null,d=[],y=[];typeof r=="function"&&y.push(r);function p(){f&&(clearTimeout(f),f=null)}function g(){i==="pending"&&(i="aborted"),p(),d.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),d=[]}function V(h,w){w&&(y=[]),typeof h=="function"&&y.push(h)}function O(){return{startTime:a,payload:e,status:i,queriesSent:l,queriesPending:d.length,subscribe:V,abort:g}}function m(){i="failed",y.forEach(h=>{h(void 0,u)})}function b(){d.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),d=[]}function ce(h,w,C){const j=w!=="success";switch(d=d.filter(x=>x!==h),i){case"pending":break;case"failed":if(j||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=C,m();return}if(j){u=C,d.length||(c.length?J():m());return}if(p(),b(),!t.random){const x=t.resources.indexOf(h.resource);x!==-1&&x!==t.index&&(t.index=x)}i="completed",y.forEach(x=>{x(C)})}function J(){if(i!=="pending")return;p();const h=c.shift();if(h===void 0){if(d.length){f=setTimeout(()=>{p(),i==="pending"&&(b(),m())},t.timeout);return}m();return}const w={status:"pending",resource:h,callback:(C,j)=>{ce(w,C,j)}};d.push(w),l++,f=setTimeout(J,t.rotate),n(h,e,w.callback)}return setTimeout(J),O}function Jt(t){const e={...Be,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,i,l){const u=ze(e,a,i,(f,d)=>{r(),l&&l(f,d)});return n.push(u),u}function s(a){return n.find(i=>a(i))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function ut(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const z=Object.create(null),I=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];for(;I.length>0;)I.length===1||Math.random()>.5?$.push(I.shift()):$.push(I.pop());z[""]=ut({resources:["https://api.iconify.design"].concat($)});function xt(t,e){const n=ut(e);return n===null?!1:(z[t]=n,!0)}function Q(t){return z[t]}function Qe(){return Object.keys(z)}function vt(){}const W=Object.create(null);function Ve(t){if(!W[t]){const e=Q(t);if(!e)return;const n=Jt(e),r={config:e,redundancy:n};W[t]=r}return W[t]}function Gt(t,e,n){let r,o;if(typeof t=="string"){const s=nt(t);if(!s)return n(void 0,424),vt;o=s.send;const c=Ve(t);c&&(r=c.redundancy)}else{const s=ut(t);if(s){r=Jt(s);const c=t.resources?t.resources[0]:"",a=nt(c);a&&(o=a.send)}}return!r||!o?(n(void 0,424),vt):r.query(e,o,n)().abort}const Ct="iconify2",R="iconify",Kt=R+"-count",It=R+"-version",Wt=36e5,Je=168;function ot(t,e){try{return t.getItem(e)}catch{}}function ft(t,e,n){try{return t.setItem(e,n),!0}catch{}}function St(t,e){try{t.removeItem(e)}catch{}}function rt(t,e){return ft(t,Kt,e.toString())}function st(t){return parseInt(ot(t,Kt))||0}const v={local:!0,session:!0},Xt={local:new Set,session:new Set};let dt=!1;function Ge(t){dt=t}let N=typeof window>"u"?{}:window;function Yt(t){const e=t+"Storage";try{if(N&&N[e]&&typeof N[e].length=="number")return N[e]}catch{}v[t]=!1}function Zt(t,e){const n=Yt(t);if(!n)return;const r=ot(n,It);if(r!==Ct){if(r){const a=st(n);for(let i=0;i{const i=R+a.toString(),l=ot(n,i);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}St(n,i)}};let c=st(n);for(let a=c-1;a>=0;a--)s(a)||(a===c-1?(c--,rt(n,c)):Xt[t].add(a))}function te(){if(!dt){Ge(!0);for(const t in v)Zt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=_(r,o);if(!lt(s,n).length)return!1;const c=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,c):c,!0})}}function Ke(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Zt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function We(t,e){dt||te();function n(r){let o;if(!v[r]||!(o=Yt(r)))return;const s=Xt[r];let c;if(s.size)s.delete(c=Array.from(s).shift());else if(c=st(o),!rt(o,c+1))return;const a={cached:Math.floor(Date.now()/Wt),provider:t.provider,data:e};return ft(o,R+c.toString(),JSON.stringify(a))}e.lastModified&&!Ke(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Tt(){}function Xe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,$e(t)}))}function Ye(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=nt(n)))return;s.prepare(n,r,o).forEach(a=>{Gt(n,a,i=>{if(typeof i!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=lt(t,i);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),We(t,i)}catch(l){console.error(l)}Xe(t)})})}))}const ht=(t,e)=>{const n=Ue(t,!0,zt()),r=Le(n);if(!r.pending.length){let i=!0;return e&&setTimeout(()=>{i&&e(r.loaded,r.missing,r.pending,Tt)}),()=>{i=!1}}const o=Object.create(null),s=[];let c,a;return r.pending.forEach(i=>{const{provider:l,prefix:u}=i;if(u===a&&l===c)return;c=l,a=u,s.push(_(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(i=>{const{provider:l,prefix:u,name:f}=i,d=_(l,u),y=d.pendingIcons||(d.pendingIcons=new Set);y.has(f)||(y.add(f),o[l][u].push(f))}),s.forEach(i=>{const{provider:l,prefix:u}=i;o[l][u].length&&Ye(i,o[l][u])}),e?He(e,r,s):Tt},Ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?E(t,!0):t;if(!r){n(t);return}ht([r||t],o=>{if(o.length&&r){const s=A(r);if(s){e({...P,...s});return}}n(t)})});function tn(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function en(t,e){const n=typeof t=="string"?E(t,!0,!0):null;if(!n){const s=tn(t);return{value:t,data:s}}const r=A(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ht([n],()=>e(t,n,A(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let ee=!1;try{ee=navigator.vendor.indexOf("Apple")===0}catch{}function nn(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ee||t.indexOf("t==="unset"||t==="undefined"||t==="none";function ne(t,e){const n={...P,...t},r={...Dt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(p=>{const g=[],V=p.hFlip,O=p.vFlip;let m=p.rotate;V?O?m+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):O&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}m%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(s=''+s+"")});const c=r.width,a=r.height,i=o.width,l=o.height;let u,f;c===null?(f=a===null?"1em":a==="auto"?l:a,u=it(f,i/l)):(u=c==="auto"?i:c,f=a===null?it(u,l/i):a==="auto"?l:a);const d={},y=(p,g)=>{sn(g)||(d[p]=g.toString())};return y("width",u),y("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+i.toString()+" "+l.toString(),{attributes:d,body:s}}const cn=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let B=cn();function an(t){B=t}function ln(){return B}function un(t,e){const n=Q(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(c=>{o=Math.max(o,c.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function fn(t){return t===404}const dn=(t,e,n)=>{const r=[],o=un(t,e),s="icons";let c={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((i,l)=>{a+=i.length+1,a>=o&&l>0&&(r.push(c),c={type:s,provider:t,prefix:e,icons:[]},a=i.length),c.icons.push(i)}),r.push(c),r};function hn(t){if(typeof t=="string"){const e=Q(t);if(e)return e.path}return"/"}const pn=(t,e,n)=>{if(!B){n("abort",424);return}let r=hn(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),i=new URLSearchParams({icons:a});r+=s+".json?"+i.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;B(t+r).then(s=>{const c=s.status;if(c!==200){setTimeout(()=>{n(fn(c)?"abort":"next",c)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},yn={prepare:dn,send:pn};function kt(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let oe="";function gn(t){oe=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+oe}function re(){_t("",yn),zt(!0);let t;try{t=window}catch{}if(t){if(te(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!wt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;xt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>kt(n,!0),disableCache:n=>kt(n,!1),iconExists:Ne,getIcon:Fe,listIcons:Me,addIcon:Qt,addCollection:wt,calculateSize:it,buildIcon:ne,loadIcons:ht,loadIcon:Ze,addAPIProvider:xt,appendCustomStyle:gn,_api:{getAPIConfig:Q,setAPIModule:_t,sendAPIQuery:Gt,setFetch:an,getFetch:ln,listAPIProviders:Qe}}}function se(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function mn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function bn(t){return"data:image/svg+xml,"+mn(t)}function wn(t){return'url("'+bn(t)+'")'}const ct={"background-color":"currentColor"},ie={"background-color":"transparent"},Rt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":ct,mask:ct,background:ie};for(const t in Pt){const e=Pt[t];for(const n in Rt)e[t+"-"+n]=Rt[n]}function Et(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function _n(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("");const s=t.attributes,c=se(o,{...s,width:e.width+"",height:e.height+""}),a=wn(c),i=r.style,l={"--svg":a,width:Et(s.width),height:Et(s.height),...n?ct:ie};for(const u in l)i.setProperty(u,l[u]);return r}let T;function xn(){try{T=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{T=null}}function vn(t){return T===void 0&&xn(),T?T.createHTML(t):t}function Cn(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=se(t.body,n);return e.innerHTML=vn(o),e.firstChild}function Ot(t,e){const n=e.icon.data,r=e.customisations,o=ne(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let c;switch(s){case"svg":c=Cn(o);break;default:c=_n(o,{...P,...n},s==="mask")}const a=Array.from(t.childNodes).find(i=>{const l=i.tagName&&i.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?c.tagName==="SPAN"&&a.tagName===c.tagName?a.setAttribute("style",c.getAttribute("style")):t.replaceChild(c,a):t.appendChild(c)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function In(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();q(this,"_shadowRoot");q(this,"_state");q(this,"_checkQueued",!1);const i=this._shadowRoot=this.attachShadow({mode:"open"}),l=X(this);At(i,l),this._state=jt({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(i){if(i==="inline"){const l=X(this),u=this._state;l!==u.inline&&(u.inline=l,At(this._shadowRoot,l))}else this._queueCheck()}get icon(){const i=this.getAttribute("icon");if(i&&i.slice(0,1)==="{")try{return JSON.parse(i)}catch{}return i}set icon(i){typeof i=="object"&&(i=JSON.stringify(i)),this.setAttribute("icon",i)}get inline(){return X(this)}set inline(i){i?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const i=this._state;if(i.rendered){const l=this._shadowRoot;if(i.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Ot(l,i)}}get status(){const i=this._state;return i.rendered?"rendered":i.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const i=this._state,l=this.getAttribute("icon");if(l!==i.icon.value){this._iconChanged(l);return}if(!i.rendered)return;const u=this.getAttribute("mode"),f=mt(this);(i.attrMode!==u||Ae(i.customisations,f))&&this._renderIcon(i.icon,f,u)}_iconChanged(i){const l=en(i,(u,f,d)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const p={value:u,name:f,data:d};p.data?this._gotIconData(p):y.icon=p});l.data?this._gotIconData(l):this._state=jt(l,this._state.inline,this._state)}_gotIconData(i){this._checkQueued=!1,this._renderIcon(i,mt(this),this.getAttribute("mode"))}_renderIcon(i,l,u){const f=nn(i.data.body,u),d=this._state.inline;Ot(this._shadowRoot,this._state={rendered:!0,icon:i,inline:d,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(i){i!==null?this.setAttribute(a,i):this.removeAttribute(a)}})});const c=re();for(const a in c)s[a]=s.prototype[a]=c[a];return e.define(t,s),s}const Sn=In()||re(),{enableCache:Mn,disableCache:Nn,iconExists:Fn,getIcon:Tn,listIcons:Ln,addIcon:$n,addCollection:Dn,calculateSize:Hn,buildIcon:kn,loadIcons:Un,loadIcon:Bn,addAPIProvider:zn,_api:Qn}=Sn;function An(t,e,n,r,o,s,c,a){var i=typeof t=="function"?t.options:t;e&&(i.render=e,i.staticRenderFns=n,i._compiled=!0),r&&(i.functional=!0),s&&(i._scopeId="data-v-"+s);var l;if(c?(l=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__<"u"&&(d=__VUE_SSR_CONTEXT__),o&&o.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(c)},i._ssrRegister=l):o&&(l=a?function(){o.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(i.functional){i._injectStyles=l;var u=i.render;i.render=function(y,p){return l.call(p),u(y,p)}}else{var f=i.beforeCreate;i.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:i}}const Rn={mixins:[Fieldtype],data(){return{searchModalIsOpen:!1,listType:"grid",query:"",result:null,loading:!1}},computed:{icons(){return this.result?this.result.icons.map(t=>({name:t,collection:this.result.collections[t.split(":")[0]]})):[]}},methods:{openSearchModal(){this.searchModalIsOpen=!0,this.$wait(300).then(()=>{this.$refs.query.$el.querySelector("input").focus()})},search(){this.loading=!0,ky.get("https://api.iconify.design/search?limit=999&query="+this.query).json().then(t=>{this.result=t}).finally(()=>{this.loading=!1})},getIconBuildData(t){const e=kn(Tn(t.name)),n={name:t.name};return Object.keys(e).forEach(r=>{n[r]=e[r]}),n},select(t){this.config.store_as==="name"?this.update(t.name):this.config.store_as==="svg_data"&&this.update(this.getIconBuildData(t)),this.searchModalIsOpen=!1}}};var Pn=function(){var e=this,n=e._self._c;return n("div",[e.value?n("div",{staticClass:"iconify-flex iconify-items-center iconify-gap-4"},[n("dropdown-list",{attrs:{placement:"bottom-center"},scopedSlots:e._u([{key:"trigger",fn:function(){return[typeof e.value=="string"?n("iconify-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.value,delay:500,autoHide:!1},expression:"{content: value, delay: 500, autoHide: false}"}],staticClass:"iconify-cursor-pointer iconify-text-4xl",attrs:{icon:e.value}}):n("svg",e._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.value.name,delay:500,autoHide:!1},expression:"{content: value.name, delay: 500, autoHide: false}"}],staticClass:"iconify-cursor-pointer iconify-text-4xl",domProps:{innerHTML:e._s(e.value.body)}},"svg",e.value.attributes,!1))]},proxy:!0}],null,!1,2992945012)},[n("dropdown-item",{attrs:{text:"Change"},on:{click:e.openSearchModal}}),n("dropdown-item",{attrs:{text:"Remove"},on:{click:function(r){return e.update(null)}}})],1)],1):n("button",{staticClass:"btn",on:{click:e.openSearchModal}},[e._v("Browse Iconify")]),e.searchModalIsOpen?n("stack",{on:{closed:function(r){e.searchModalIsOpen=!1}},scopedSlots:e._u([{key:"default",fn:function({close:r}){return n("div",{staticClass:"iconify-flex iconify-flex-col iconify-h-full iconify-bg-white dark:bg-dark-800"},[n("header",{staticClass:"flex items-center sticky top-0 inset-x-0 bg-white dark:bg-dark-550 shadow dark:shadow-dark px-8 py-2 z-1 h-13"},[n("h1",{staticClass:"flex-1 flex items-center text-xl"},[e._v(" Search and select an icon ")]),n("button",{staticClass:"btn-close",attrs:{type:"button"},on:{click:function(o){e.searchModalIsOpen=!1}}},[e._v("×")])]),n("div",{staticClass:"iconify-px-3 md:iconify-px-8 iconify-py-4 iconify-pr-0 iconify-flex-1 iconify-flex iconify-flex-col iconify-overflow-hidden"},[n("div",{staticClass:"iconify-w-full iconify-flex iconify-gap-4 iconify-mb-4"},[n("text-input",{ref:"query",staticClass:"iconify-flex-1",attrs:{placeholder:"Search for an icon..."},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.query,callback:function(o){e.query=o},expression:"query"}}),n("button",{staticClass:"btn-primary",attrs:{disabled:e.loading},on:{click:e.search}},[e._v(e._s(e.loading?"Searching...":"Search"))]),n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn px-4",class:{active:e.listType==="grid"},on:{click:function(o){e.listType="grid"}}},[n("iconify-icon",{staticClass:"iconify-text-xl",attrs:{icon:"ph:grid-nine-light"}})],1),n("button",{staticClass:"btn px-4",class:{active:e.listType==="table"},on:{click:function(o){e.listType="table"}}},[n("iconify-icon",{staticClass:"iconify-text-xl",attrs:{icon:"ph:table-light"}})],1)])],1),e.result?n("div",{staticClass:"iconify-overflow-y-scroll iconify-flex-1 iconify-pr-6"},[e.listType==="table"?n("table",{staticClass:"data-table iconify-w-full"},[n("thead",[n("tr",[n("th",[e._v("Icon")]),n("th",[e._v("Name")]),n("th",[e._v("Collection")]),n("th",[e._v("License")]),n("th")])]),n("tbody",e._l(e.icons,function(o){return n("tr",[n("td",[n("iconify-icon",{staticClass:"iconify-text-2xl",attrs:{icon:o.name}})],1),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.name)}})]),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.collection.name)}})]),n("td",[n("span",{staticClass:"iconify-text-sm",domProps:{textContent:e._s(o.collection.license.title)}})]),n("td",[n("button",{staticClass:"btn btn-sm",on:{click:function(s){return e.select(o)}}},[e._v("Select")])])])}),0)]):e._e(),e.listType==="grid"?n("div",{staticClass:"iconify-grid iconify-grid-cols-8 iconify-gap-4"},e._l(e.icons,function(o){return n("button",{staticClass:"iconify-relative iconify-aspect-square iconify-bg-gray-100 dark:bg-dark-550 iconify-rounded-lg iconify-flex iconify-items-center iconify-justify-center iconify-group",on:{click:function(s){return e.select(o)}}},[n("iconify-icon",{staticClass:"iconify-text-4xl iconify-text-gray-800 dark:iconify-text-white group-hover:iconify-scale-125 iconify-transition-all",attrs:{icon:o.name}}),n("div",{staticClass:"iconify-absolute iconify-bottom-0 iconify-left-0 iconify-right-0 iconify-p-2 iconify-bg-gray-50 iconify-text-xs iconify-text-gray-500 iconify-text-center iconify-rounded-b-lg iconify-opacity-0 group-hover:iconify-opacity-100 iconify-transition-opacity"},[n("span",{domProps:{textContent:e._s(o.name)}})]),n("div",{staticClass:"iconify-absolute iconify-top-2 iconify-left-2 iconify-p-1 iconify-bg-gray-200 iconify-text-xs iconify-text-gray-600 iconify-rounded-sm iconify-opacity-0 group-hover:iconify-opacity-100 iconify-transition-opacity"},[n("span",{domProps:{textContent:e._s(o.collection.license.title)}})])],1)}),0):e._e()]):e._e()])])}}],null,!1,356778722)}):e._e()],1)},En=[],On=An(Rn,Pn,En,!1,null,null,null,null);const jn=On.exports;window.ky=Ce;Statamic.booting(()=>{Statamic.$components.register("iconify-fieldtype",jn)}); diff --git a/dist/build/manifest.json b/dist/build/manifest.json index d507f35..40af2f7 100644 --- a/dist/build/manifest.json +++ b/dist/build/manifest.json @@ -1,11 +1,11 @@ { "resources/css/iconify-fieldtype.css": { - "file": "assets/iconify-fieldtype-8d61333d.css", + "file": "assets/iconify-fieldtype-2a48adc0.css", "isEntry": true, "src": "resources/css/iconify-fieldtype.css" }, "resources/js/iconify-fieldtype.js": { - "file": "assets/iconify-fieldtype-dc08a25e.js", + "file": "assets/iconify-fieldtype-a6540ba7.js", "isEntry": true, "src": "resources/js/iconify-fieldtype.js" } diff --git a/package-lock.json b/package-lock.json index 8fd6817..e9f904c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "ky": "^0.33.3", "laravel-vite-plugin": "^0.7.2", "postcss": "^8.4.23", - "tailwindcss": "^3.3.2", + "tailwindcss": "^3.4.3", "vite": "^4.0.0" } }, @@ -1018,9 +1018,9 @@ } }, "node_modules/jiti": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", - "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", + "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", "dev": true, "bin": { "jiti": "bin/jiti.js" @@ -1526,9 +1526,9 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz", - "integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.3.tgz", + "integrity": "sha512-U7sxQk/n397Bmx4JHbJx/iSOOv5G+II3f1kpLpY2QeUv5DcPdcTsYLlusZfq1NthHS1c1cZoyFmmkex1rzke0A==", "dev": true, "dependencies": { "@alloc/quick-lru": "^5.2.0", @@ -1536,10 +1536,10 @@ "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.0", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.18.2", + "jiti": "^1.21.0", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", diff --git a/package.json b/package.json index f1c83b3..614da01 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "ky": "^0.33.3", "laravel-vite-plugin": "^0.7.2", "postcss": "^8.4.23", - "tailwindcss": "^3.3.2", + "tailwindcss": "^3.4.3", "vite": "^4.0.0" } } diff --git a/resources/js/compontents/IconifyFieldtype.vue b/resources/js/compontents/IconifyFieldtype.vue index 2eb7fdf..c776808 100644 --- a/resources/js/compontents/IconifyFieldtype.vue +++ b/resources/js/compontents/IconifyFieldtype.vue @@ -4,9 +4,9 @@
@@ -19,9 +19,9 @@ v-if="searchModalIsOpen" @closed="searchModalIsOpen = false" > -
+
-
+

Search and select an icon

@@ -57,7 +57,7 @@ - + @@ -77,9 +77,9 @@
-