function noop(){}function is_promise(a){return a&&"object"==typeof a&&"function"==typeof a.then}function run(a){return a()}function blank_object(){return Object.create(null)}function run_all(a){a.forEach(run)}function is_function(a){return"function"==typeof a}function safe_not_equal(c,a){return c==c?c!==a||c&&"object"==typeof c||"function"==typeof c:a==a}let src_url_equal_anchor;function src_url_equal(a,b){return src_url_equal_anchor||(src_url_equal_anchor=document.createElement("a")),src_url_equal_anchor.href=b,a===src_url_equal_anchor.href}function is_empty(a){return 0===Object.keys(a).length}function null_to_empty(a){return null==a?"":a}function append(a,b){a.appendChild(b)}function append_styles(a,b,c){const d=get_root_for_style(a);if(!d.getElementById(b)){const a=element("style");a.id=b,a.textContent=c,append_stylesheet(d,a)}}function get_root_for_style(a){if(!a)return document;const b=a.getRootNode?a.getRootNode():a.ownerDocument;return b&&b.host?b:a.ownerDocument}function append_stylesheet(a,b){append(a.head||a,b)}function insert(a,b,c){a.insertBefore(b,c||null)}function detach(a){a.parentNode.removeChild(a)}function element(a){return document.createElement(a)}function attr(a,b,c){null==c?a.removeAttribute(b):a.getAttribute(b)!==c&&a.setAttribute(b,c)}function children(a){return Array.from(a.childNodes)}let current_component;function set_current_component(a){current_component=a}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}const dirty_components=[],binding_callbacks=[],render_callbacks=[],flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function add_render_callback(a){render_callbacks.push(a)}let flushing=!1;const seen_callbacks=new Set;function flush(){if(!flushing){flushing=!0;do{// first, call beforeUpdate functions
// and update components
for(let a=0;a<dirty_components.length;a+=1){const b=dirty_components[a];set_current_component(b),update(b.$$)}for(set_current_component(null),dirty_components.length=0;binding_callbacks.length;)binding_callbacks.pop()();// then, once components are updated, call
// afterUpdate functions. This may cause
// subsequent updates...
for(let a=0;a<render_callbacks.length;a+=1){const b=render_callbacks[a];seen_callbacks.has(b)||(seen_callbacks.add(b),b())}render_callbacks.length=0}while(dirty_components.length);for(;flush_callbacks.length;)flush_callbacks.pop()();update_scheduled=!1,flushing=!1,seen_callbacks.clear()}}function update(a){if(null!==a.fragment){a.update(),run_all(a.before_update);const b=a.dirty;a.dirty=[-1],a.fragment&&a.fragment.p(a.ctx,b),a.after_update.forEach(add_render_callback)}}const outroing=new Set;let outros;function group_outros(){outros={r:0,c:[],p:outros// parent group
}}function check_outros(){outros.r||run_all(outros.c),outros=outros.p}function transition_in(a,b){a&&a.i&&(outroing.delete(a),a.i(b))}function transition_out(a,b,c,d){if(a&&a.o){if(outroing.has(a))return;outroing.add(a),outros.c.push(()=>{outroing.delete(a),d&&(c&&a.d(1),d())}),a.o(b)}}function handle_promise(a,b){function c(a,c,e,f){if(b.token!==d)return;b.resolved=f;let g=b.ctx;e!==void 0&&(g=g.slice(),g[e]=f);const h=a&&(b.current=a)(g);let i=!1;b.block&&(b.blocks?b.blocks.forEach((a,d)=>{d!==c&&a&&(group_outros(),transition_out(a,1,1,()=>{b.blocks[d]===a&&(b.blocks[d]=null)}),check_outros())}):b.block.d(1),h.c(),transition_in(h,1),h.m(b.mount(),b.anchor),i=!0),b.block=h,b.blocks&&(b.blocks[c]=h),i&&flush()}const d=b.token={};if(is_promise(a)){const d=get_current_component();// if we previously had a then/catch block, destroy it
if(a.then(a=>{set_current_component(d),c(b.then,1,b.value,a),set_current_component(null)},a=>{if(set_current_component(d),c(b.catch,2,b.error,a),set_current_component(null),!b.hasCatch)throw a}),b.current!==b.pending)return c(b.pending,0),!0}else{if(b.current!==b.then)return c(b.then,1,b.value,a),!0;b.resolved=a}}function update_await_block_branch(a,b,c){const d=b.slice(),{resolved:e}=a;a.current===a.then&&(d[a.value]=e),a.current===a.catch&&(d[a.error]=e),a.block.p(d,c)}function mount_component(a,b,c,d){const{fragment:e,on_mount:f,on_destroy:g,after_update:h}=a.$$;e&&e.m(b,c),d||add_render_callback(()=>{const b=f.map(run).filter(is_function);g?g.push(...b):run_all(b),a.$$.on_mount=[]}),h.forEach(add_render_callback)}function destroy_component(a,b){const c=a.$$;null!==c.fragment&&(run_all(c.on_destroy),c.fragment&&c.fragment.d(b),c.on_destroy=c.fragment=null,c.ctx=[])}function make_dirty(a,b){-1===a.$$.dirty[0]&&(dirty_components.push(a),schedule_update(),a.$$.dirty.fill(0)),a.$$.dirty[0|b/31]|=1<<b%31}function init(a,b,c,d,e,f,g,h=[-1]){const i=current_component;set_current_component(a);const j=a.$$={fragment:null,ctx:null,// state
props:f,update:noop,not_equal:e,bound:blank_object(),// lifecycle
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i?i.$$.context:b.context||[]),// everything else
callbacks:blank_object(),dirty:h,skip_bound:!1,root:b.target||i.$$.root};g&&g(j.root);let k=!1;if(j.ctx=c?c(a,b.props||{},(b,c,...d)=>{const f=d.length?d[0]:c;return j.ctx&&e(j.ctx[b],j.ctx[b]=f)&&(!j.skip_bound&&j.bound[b]&&j.bound[b](f),k&&make_dirty(a,b)),c}):[],j.update(),k=!0,run_all(j.before_update),j.fragment=!!d&&d(j.ctx),b.target){if(b.hydrate){const a=children(b.target);// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
j.fragment&&j.fragment.l(a),a.forEach(detach)}else// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
j.fragment&&j.fragment.c();b.intro&&transition_in(a.$$.fragment),mount_component(a,b.target,b.anchor,b.customElement),flush()}set_current_component(i)}/**
 * Base class for Svelte components. Used when dev=false.
 */class SvelteComponent{$destroy(){destroy_component(this,1),this.$destroy=noop}$on(a,b){const c=this.$$.callbacks[a]||(this.$$.callbacks[a]=[]);return c.push(b),()=>{const a=c.indexOf(b);-1!==a&&c.splice(a,1)}}$set(a){this.$$set&&!is_empty(a)&&(this.$$.skip_bound=!0,this.$$set(a),this.$$.skip_bound=!1)}}function __variableDynamicImportRuntime0__(a){return new Promise(function(b,c){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(c.bind(null,new Error("Unknown variable dynamic import: "+a)))})}function add_css(a){append_styles(a,"svelte-1rxzg3v",".flag.svelte-1rxzg3v.svelte-1rxzg3v{display:inline-block;overflow:hidden;position:relative;box-sizing:border-box;align-items:center}.flag.svelte-1rxzg3v img.svelte-1rxzg3v{display:block;width:100%;height:100%;object-fit:cover}.flag.size-s.svelte-1rxzg3v.svelte-1rxzg3v{width:16px;height:12px}.flag.size-s.drop-shadow.svelte-1rxzg3v.svelte-1rxzg3v{box-shadow:0 0 1px 0.5px rgba(0, 0, 0, 0.1)}.flag.size-s.border-radius.svelte-1rxzg3v.svelte-1rxzg3v{border-radius:1px}.flag.size-s.border-radius.border.svelte-1rxzg3v.svelte-1rxzg3v::before{border-radius:1px}.flag.size-m.svelte-1rxzg3v.svelte-1rxzg3v{width:20px;height:15px}.flag.size-m.drop-shadow.svelte-1rxzg3v.svelte-1rxzg3v{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.1)}.flag.size-m.border-radius.svelte-1rxzg3v.svelte-1rxzg3v{border-radius:1.5px}.flag.size-m.border-radius.border.svelte-1rxzg3v.svelte-1rxzg3v::before{border-radius:1.5px}.flag.size-l.svelte-1rxzg3v.svelte-1rxzg3v{width:32px;height:24px}.flag.size-l.drop-shadow.svelte-1rxzg3v.svelte-1rxzg3v{box-shadow:0 2px 3px 0 rgba(0, 0, 0, 0.1)}.flag.size-l.border-radius.svelte-1rxzg3v.svelte-1rxzg3v{border-radius:2px}.flag.size-l.border-radius.border.svelte-1rxzg3v.svelte-1rxzg3v::before{border-radius:2px}.flag.border.svelte-1rxzg3v.svelte-1rxzg3v::before{content:'';width:100%;height:100%;position:absolute;display:block;mix-blend-mode:overlay;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.5);mix-blend-mode:overlay}.flag.top-down.svelte-1rxzg3v.svelte-1rxzg3v::before{content:'';width:100%;height:100%;position:absolute;display:block;mix-blend-mode:overlay;box-sizing:border-box;background-image:linear-gradient(0deg, rgba(0, 0, 0, 0.3) 2%, rgba(255, 255, 255, 0.7) 100%)}.flag.real-linear.svelte-1rxzg3v.svelte-1rxzg3v::before{content:'';width:100%;height:100%;position:absolute;display:block;mix-blend-mode:overlay;box-sizing:border-box;background-image:linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, rgba(39, 39, 39, 0.22) 11%, rgba(255, 255, 255, 0.3) 27%, rgba(0, 0, 0, 0.24) 41%, rgba(0, 0, 0, 0.55) 52%, rgba(255, 255, 255, 0.26) 63%, rgba(0, 0, 0, 0.27) 74%, rgba(255, 255, 255, 0.3) 100%)}.flag.real-circular.svelte-1rxzg3v.svelte-1rxzg3v::before{content:'';width:100%;height:100%;position:absolute;display:block;mix-blend-mode:overlay;box-sizing:border-box;background:radial-gradient(50% 36%, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.24) 11%, rgba(0, 0, 0, 0.55) 17%, rgba(255, 255, 255, 0.26) 22%, rgba(0, 0, 0, 0.17) 27%, rgba(255, 255, 255, 0.28) 31%, rgba(255, 255, 255, 0) 37%) center calc(50% - 8px)/600% 600%, radial-gradient(50% 123%, rgba(255, 255, 255, 0.3) 25%, rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.55) 61%, rgba(255, 255, 255, 0.26) 72%, rgba(0, 0, 0, 0.17) 80%, rgba(255, 255, 255, 0.28) 88%, rgba(255, 255, 255, 0.3) 100%) center calc(50% - 8px)/600% 600%}")}// (1:0) <script>   import { onMount }
function create_catch_block(){return{c:noop,m:noop,p:noop,d:noop}}// (35:43)      <img src="{Flag}
function create_then_block(a){let b,c,d;return{c(){b=element("img"),src_url_equal(b.src,c=/*Flag*/a[8])||attr(b,"src",c),attr(b,"alt",d=`Flag of ${/*code*/a[2]}`),attr(b,"class","svelte-1rxzg3v")},m(a,c){insert(a,b,c)},p(a,e){/*size, code*/5&e&&!src_url_equal(b.src,c=/*Flag*/a[8])&&attr(b,"src",c),/*code*/4&e&&d!==(d=`Flag of ${/*code*/a[2]}`)&&attr(b,"alt",d)},d(a){a&&detach(b)}}}// (1:0) <script>   import { onMount }
function create_pending_block(){return{c:noop,m:noop,p:noop,d:noop}}function create_fragment(a){let b,c,d,e={ctx:a,current:null,token:null,hasCatch:!1,pending:create_pending_block,then:create_then_block,catch:create_catch_block,value:8};return handle_promise(c=/*importFlag*/a[7](/*size*/a[0],/*code*/a[2]),e),{c(){b=element("div"),e.block.c(),attr(b,"class",d=""+(null_to_empty(`
  flag
  ${/*gradient*/a[1]}
  size-${/*size*/a[0]}
  ${/*hasBorder*/a[3]?"border":""}
  ${/*hasDropShadow*/a[4]?"drop-shadow":""}
  ${/*hasBorderRadius*/a[5]?"border-radius":""}
  ${/*className*/a[6]?/*className*/a[6].replace(/\s\s+/g," ").trim():""}
`)+" svelte-1rxzg3v"))},m(a,c){insert(a,b,c),e.block.m(b,e.anchor=null),e.mount=()=>b,e.anchor=null},p(f,[g]){if(a=f,e.ctx=a,/*size, code*/5&g&&c!==(c=/*importFlag*/a[7](/*size*/a[0],/*code*/a[2]))&&handle_promise(c,e));else update_await_block_branch(e,a,g);/*gradient, size, hasBorder, hasDropShadow, hasBorderRadius, className*/123&g&&d!==(d=""+(null_to_empty(`
  flag
  ${/*gradient*/a[1]}
  size-${/*size*/a[0]}
  ${/*hasBorder*/a[3]?"border":""}
  ${/*hasDropShadow*/a[4]?"drop-shadow":""}
  ${/*hasBorderRadius*/a[5]?"border-radius":""}
  ${/*className*/a[6]?/*className*/a[6].replace(/\s\s+/g," ").trim():""}
`)+" svelte-1rxzg3v"))&&attr(b,"class",d)},i:noop,o:noop,d(a){a&&detach(b),e.block.d(),e.token=null,e=null}}}function instance(a,b,c){async function d(a,b){return __variableDynamicImportRuntime0__(`./dist/flags/${a}/${b}.svg`).then(a=>a.default)}let{code:e="NL"}=b,{size:f="m"}=b,{gradient:g=""}=b,{hasBorder:h=!0}=b,{hasDropShadow:i=!1}=b,{hasBorderRadius:j=!0}=b,{class:k}=b;const l=a=>a.toLowerCase();let m;return a.$$set=a=>{"code"in a&&c(2,e=a.code),"size"in a&&c(0,f=a.size),"gradient"in a&&c(1,g=a.gradient),"hasBorder"in a&&c(3,h=a.hasBorder),"hasDropShadow"in a&&c(4,i=a.hasDropShadow),"hasBorderRadius"in a&&c(5,j=a.hasBorderRadius),"class"in a&&c(6,k=a.class)},a.$$.update=()=>{/*gradient*/2&a.$$.dirty&&c(1,g=l(g)),/*size*/1&a.$$.dirty&&c(0,f=l(f))},[f,g,e,h,i,j,k,d,m]}class Flag_1 extends SvelteComponent{constructor(a){super(),init(this,a,instance,create_fragment,safe_not_equal,{code:2,size:0,gradient:1,hasBorder:3,hasDropShadow:4,hasBorderRadius:5,class:6},add_css)}}export{Flag_1 as default};
