function e(){const[e]=t(),{copy:f}=r(),u=n(()=>{var t,r;try{const n=(null==(t=e())?void 0:t.content)||"",{text:s}=o(n);return(null==(r=i(h.parse(s()||"")).internetshortcut)?void 0:r.url)||"#"}catch(n){return console.error("Error parsing INI content:",n),"#"}}),d=a();return s(l,{get loading(){return e.loading},get children(){return s(p,{get children(){return[s(c,{colorScheme:"accent",onClick:()=>f(u()),get children(){return d("home.toolbar.copy_link")}}),s(c,{as:"a",get href(){return u()},target:"_blank",rel:"noopener noreferrer",get children(){return d("home.preview.open_in_new_window")}})]}})}})}import{e2 as t,bU as r,C as n,e3 as o,e8 as i,E as s,a8 as c,q as a,af as l}from"./index-C-dDkA_D.js";import{F as p}from"./File-DUZS7s9Z.js";import"./icon-D8IhN6yM.js";import"./index-BA8MiV3y.js";import"./Layout-DcwX4cVt.js";import"./useTitle-Dwsro-_9.js";import"./FolderTree-BPZyL9IS.js";import"./index-Bl0FjGa1.js";import"./ModalInput-BzQCE109.js";import"./index-D1JlzeXV.js";import"./share-BZFQ1V5G.js";import"./index-2YNnOdV-.js";var f,u,h=function(){function e(e,t){var r=0,n=0,o=0,i=[];do{if(-1!==(o=e.indexOf(t,r))){if(r=o+t.length,o>0&&"\\"===e[o-1])continue;i.push(e.slice(n,o)),n=o+t.length}}while(-1!==o);return i.push(e.slice(n)),i}if(u)return f;u=1;const{hasOwnProperty:t}=Object.prototype,r=(t,n={})=>{"string"==typeof n&&(n={section:n}),n.align=!0===n.align,n.newline=!0===n.newline,n.sort=!0===n.sort,n.whitespace=!0===n.whitespace||!0===n.align,n.platform=n.platform||"undefined"!=typeof process&&process.platform,n.bracketedArray=!1!==n.bracketedArray;const o="win32"===n.platform?"\r\n":"\n",s=n.whitespace?" = ":"=",c=[],a=n.sort?Object.keys(t).sort():Object.keys(t);let l=0;n.align&&(l=i(a.filter(e=>null===t[e]||Array.isArray(t[e])||"object"!=typeof t[e]).map(e=>Array.isArray(t[e])?`${e}[]`:e).concat([""]).reduce((e,t)=>i(e).length>=i(t).length?e:t)).length);let p="";const f=n.bracketedArray?"[]":"";for(const e of a){const r=t[e];if(r&&Array.isArray(r))for(const t of r)p+=i(`${e}${f}`).padEnd(l," ")+s+i(t)+o;else r&&"object"==typeof r?c.push(e):p+=i(e).padEnd(l," ")+s+i(r)+o}n.section&&p.length&&(p="["+i(n.section)+"]"+(n.newline?o+o:o)+p);for(const i of c){const s=e(i,".").join("\\."),c=(n.section?n.section+".":"")+s,a=r(t[i],{...n,section:c});p.length&&a.length&&(p+=o),p+=a}return p},n=(r,n={})=>{n.bracketedArray=!1!==n.bracketedArray;const o=Object.create(null);let i=o,c=null;const a=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=r.split(/[\r\n]+/g),p={};for(const e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;const r=e.match(a);if(!r)continue;if(void 0!==r[1]){if(c=s(r[1]),"__proto__"===c){i=Object.create(null);continue}i=o[c]=o[c]||Object.create(null);continue}const l=s(r[2]);let f;n.bracketedArray?f=l.length>2&&"[]"===l.slice(-2):(p[l]=((null==p?void 0:p[l])||0)+1,f=p[l]>1);const u=f&&l.endsWith("[]")?l.slice(0,-2):l;if("__proto__"===u)continue;const h=!r[3]||s(r[4]),d="true"===h||"false"===h||"null"===h?JSON.parse(h):h;f&&(t.call(i,u)?Array.isArray(i[u])||(i[u]=[i[u]]):i[u]=[]),Array.isArray(i[u])?i[u].push(d):i[u]=d}const f=[];for(const s of Object.keys(o)){if(!t.call(o,s)||"object"!=typeof o[s]||Array.isArray(o[s]))continue;const r=e(s,".");i=o;const n=r.pop(),c=n.replace(/\\\./g,".");for(const e of r)"__proto__"!==e&&(t.call(i,e)&&"object"==typeof i[e]||(i[e]=Object.create(null)),i=i[e]);i===o&&c===n||(i[c]=o[s],f.push(s))}for(const e of f)delete o[e];return o},o=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),i=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),s=e=>{if(e=(e||"").trim(),!o(e)){let t=!1,r="";for(let n=0,o=e.length;n<o;n++){const o=e.charAt(n);if(t)-1!=="\\;#".indexOf(o)?r+=o:r+="\\"+o,t=!1;else{if(-1!==";#".indexOf(o))break;"\\"===o?t=!0:r+=o}}return t&&(r+="\\"),r.trim()}"'"===e.charAt(0)&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}return e};return f={parse:n,decode:n,stringify:r,encode:r,safe:i,unsafe:s}}();export{e as default};
