static-php-cli/assets/chunks/CliGenerator.u1Ew-M_q.js

13 lines
43 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as Ee,x as w,h as k,z as ge,c as g,o as x,j as e,e as N,ag as m,t as l,G as Z,H as Q,ah as S,ai as ce,aj as xe,ak as re,n as T,_ as $e}from"./framework.PeLcR_tw.js";const We={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},Pe={type:"external",source:"apcu"},Ie={type:"external",source:"ast"},Le={type:"builtin"},Ue={type:"external",source:"ext-brotli","arg-type":"enable","lib-depends":["brotli"]},je={type:"builtin","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["bzip2"]},Ae={type:"builtin"},Ne={type:"builtin"},Oe={notes:!0,type:"builtin","arg-type":"with","lib-depends":["curl"],"ext-depends-windows":["zlib","openssl"]},Ve={type:"builtin","arg-type":"custom","lib-suggests":["qdbm"]},Te={support:{BSD:"wip"},type:"external",source:"dio"},Me={support:{BSD:"wip"},type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2","zlib"],"ext-depends-windows":["xml"]},Ge={type:"external",source:"ext-ds"},Xe={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},He={type:"external",source:"ev","arg-type-windows":"with","ext-depends":["sockets"]},Re={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},Fe={type:"builtin"},Ze={support:{Linux:"partial",BSD:"wip"},notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},Qe={type:"builtin"},Ke={type:"builtin"},Ye={type:"builtin","lib-suggests":["openssl"]},Je={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["zlib","libpng"],"ext-depends":["zlib"],"lib-suggests":["libavif","libwebp","libjpeg","freetype"]},_e={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gettext"]},ei={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},ii={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gmp"]},si={support:{BSD:"wip"},type:"external",source:"ext-gmssl","lib-depends":["gmssl"]},ti={support:{Windows:"wip",BSD:"wip"},type:"external",source:"grpc","arg-type-unix":"enable-path","cpp-extension":!0,"lib-depends":["grpc"]},li={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","lib-depends-unix":["libiconv"],"lib-depends-windows":["libiconv-win"]},ni={support:{BSD:"wip"},type:"external",source:"igbinary","ext-suggests":["session","apcu"]},oi={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},ai={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imap","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},di={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},ui={support:{BSD:"wip"},type:"builtin","lib-depends-unix":["icu"],"lib-depends-windows":["icu-static-win"]},pi={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},ci={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"],target:["static"]},ri={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-lz4","arg-type":"custom","lib-depends":["liblz4"]},bi={type:"builtin","arg-type":"custom",target:["static"],"ext-depends":["mbstring"],"lib-depends":["onig"]},wi={type:"builtin","arg-type":"custom"},gi={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},xi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","ext-depends":["zlib","session"],"build-with-php":!0},mi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"lib-depends-unix":["libmemcached","fastlz"],"ext-depends":["session","zlib"]},hi={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"],frameworks:["CoreFoundation","Security"]},vi={support:{BSD:"wip"},type:"external",source:"msgpack","arg-type-unix":"with","arg-type-win":"enable","ext-depends":["session"]},yi={type:"builtin","arg-type":"with","ext-depends":["mysqlnd"]},fi={type:"builtin","arg-type-windows":"with","lib-depends":["zlib"]},zi={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},ki={support:{BSD:"wip",Windows:"wip"},type:"builtin","arg-type-unix":"custom","lib-depends-unix":["unixodbc"]},Si={type:"builtin","arg-type-unix":"custom","arg-type-windows":"enable","zend-extension":!0},Di={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","build-with-php":!0,"lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},Bi={support:{BSD:"wip"},type:"external",source:"opentelemetry"},Ci={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},qi={support:{Windows:"no"},type:"builtin","unix-only":!0},Ei={type:"builtin"},$i={type:"builtin","arg-type":"with","ext-depends":["pdo","mysqlnd"]},Wi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends-unix":["unixodbc"],"ext-depends":["pdo","odbc"]},Pi={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"custom","ext-depends":["pdo","pgsql"],"lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},Ii={support:{BSD:"wip"},type:"builtin","arg-type":"with","ext-depends":["pdo","sqlite3"],"lib-depends":["sqlite"]},Li={support:{BSD:"wip"},type:"external",source:"pdo_sqlsrv","arg-type":"with","ext-depends":["pdo","sqlsrv"]},Ui={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},ji={type:"builtin","ext-depends":["zlib"]},Ai={support:{Windows:"no"},type:"builtin","unix-only":!0},Ni={support:{Windows:"wip",BSD:"wip"},type:"external",source:"protobuf"},Oi={support:{BSD:"wip",Darwin:"partial"},notes:!0,type:"external",source:"rar","cpp-extension":!0},Vi={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-rdkafka","arg-type":"custom","cpp-extension":!0,"lib-depends":["librdkafka"]},Ti={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["readline"],target:["static"]},Mi={support:{BSD:"wip"},type:"external",source:"redis","arg-type":"custom","ext-suggests":["session","igbinary","msgpack"],"lib-suggests-unix":["zstd","liblz4"]},Gi={type:"builtin","build-with-php":!0},Xi={type:"builtin","build-with-php":!0},Hi={type:"external",source:"ext-simdjson","cpp-extension":!0},Ri={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},Fi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-snappy","cpp-extension":!0,"arg-type":"custom","lib-depends":["snappy"],"ext-suggests":["apcu"]},Zi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"]},Qi={type:"builtin"},Ki={support:{BSD:"wip"},type:"builtin","arg-type":"with","lib-depends":["libsodium"]},Yi={support:{BSD:"wip",Windows:"no"},notes:!0,type:"external",source:"spx","arg-type":"custom","lib-depends":["zlib"]},Ji={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","lib-depends":["sqlite"]},_i={support:{BSD:"wip"},type:"external",source:"sqlsrv","lib-depends-unix":["unixodbc"],"ext-depends-linux":["pcntl"],"cpp-extension":!0},es={support:{BSD:"wip"},type:"external",source:"ext-ssh2","arg-type":"with-path","arg-type-windows":"with","lib-depends":["libssh2"],"ext-depends":["openssl","zlib"]},is={support:{Windows:"no",BSD:"wip"},notes:!0,type:"external",source:"swoole","arg-type":"custom","cpp-extension":!0,"unix-only":!0,"lib-depends":["libcares","brotli","nghttp2","zlib"],"lib-suggests":["zstd"],"lib-suggests-linux":["zstd","liburing"],"ext-depends":["openssl","curl"],"ext-suggests":["sockets","swoole-hook-pgsql","swoole-hook-mysql","swoole-hook-sqlite","swoole-hook-odbc"]},ss={support:{BSD:"wip"},notes:!0,type:"external",source:"swow","arg-type":"custom","lib-suggests":["openssl","curl"],"ext-suggests":["openssl","curl"]},ts={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},ls={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},ns={support:{BSD:"wip"},type:"builtin"},os={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["tidy"]},as={type:"builtin","build-with-php":!0},ds={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uuid","arg-type":"with-path","lib-depends":["libuuid"]},us={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uv","arg-type":"with-path","lib-depends":["libuv"],"ext-depends":["sockets"]},ps={type:"external",source:"xdebug",target:["shared"],support:{Windows:"wip",BSD:"no",Darwin:"partial",Linux:"partial"},notes:!0,"zend-extension":!0},cs={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"xhprof","ext-depends":["ctype"],"build-with-php":!0},rs={support:{BSD:"wip"},type:"external",source:"xlswriter","arg-type":"custom","ext-depends":["zlib","zip"],"lib-suggests":["openssl"]},bs={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2"],"ext-depends-windows":["iconv"],"build-with-php":!0},ws={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml","dom"],"build-with-php":!0},gs={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},xs={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["libxslt"],"ext-depends":["xml","dom"]},ms={type:"external",source:"ext-xz","arg-type":"with","lib-depends":["xz"]},hs={support:{BSD:"wip"},type:"external",source:"yac","arg-type-unix":"custom","lib-depends-unix":["fastlz"],"ext-depends-unix":["igbinary"]},vs={support:{BSD:"wip"},type:"external",source:"yaml","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["libyaml"]},ys={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"enable","lib-depends-unix":["libzip"],"ext-depends-windows":["zlib","bz2"],"lib-depends-windows":["libzip","zlib","bzip2","xz"]},fs={type:"builtin","arg-type":"custom","arg-type-windows":"enable","lib-depends":["zlib"],target:["static"]},zs={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-zstd","arg-type":"custom","lib-depends":["zstd"]},ks={amqp:We,apcu:Pe,ast:Ie,bcmath:Le,brotli:Ue,bz2:je,calendar:Ae,ctype:Ne,curl:Oe,dba:Ve,dio:Te,dom:Me,ds:Ge,enchant:Xe,ev:He,event:Re,exif:Fe,ffi:Ze,fileinfo:Qe,filter:Ke,ftp:Ye,gd:Je,gettext:_e,glfw:ei,gmp:ii,gmssl:si,grpc:ti,iconv:li,igbinary:ni,imagick:oi,imap:ai,inotify:di,intl:ui,ldap:pi,libxml:ci,lz4:ri,mbregex:bi,mbstring:wi,mcrypt:gi,memcache:xi,memcached:mi,mongodb:hi,msgpack:vi,mysqli:yi,mysqlnd:fi,oci8:zi,odbc:ki,opcache:Si,openssl:Di,opentelemetry:Bi,parallel:Ci,"password-argon2":{support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends":["libargon2","openssl"]},pcntl:qi,pdo:Ei,pdo_mysql:$i,pdo_odbc:Wi,pdo_pgsql:Pi,pdo_sqlite:Ii,pdo_sqlsrv:Li,pgsql:Ui,phar:ji,posix:Ai,protobuf:Ni,rar:Oi,rdkafka:Vi,readline:Ti,redis:Mi,session:Gi,shmop:Xi,simdjson:Hi,simplexml:Ri,snappy:Fi,soap:Zi,sockets:Qi,sodium:Ki,spx:Yi,sqlite3:Ji,sqlsrv:_i,ssh2:es,swoole:is,"swoole-hook-mysql":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["mysqlnd","pdo","pdo_mysql","swoole"],"ext-suggests":["mysqli"]},"swoole-hook-pgsql":{support:{Windows:"no",BSD:"wip",Darwin:"partial"},notes:!0,type:"addon","arg-type":"none","ext-depends":["pgsql","pdo","swoole"]},"swoole-hook-sqlite":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["sqlite3","pdo","swoole"]},"swoole-hook-odbc":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["pdo","swoole"],"lib-depends":["unixodbc"]},swow:ss,sysvmsg:ts,sysvsem:ls,sysvshm:ns,tidy:os,tokenizer:as,uuid:ds,uv:us,xdebug:ps,xhprof:cs,xlswriter:rs,xml:bs,xmlreader:ws,xmlwriter:gs,xsl:xs,xz:ms,yac:hs,yaml:vs,zip:ys,zlib:fs,zstd:zs},Ss={type:"root",source:"php-src","lib-depends":["lib-base","micro"],"lib-suggests-linux":["libacl","brotli","watcher"],"lib-suggests-unix":["brotli","watcher"]},Ds={type:"target",source:"micro"},Bs={source:"attr","static-libs-unix":["libattr.a"]},Cs={source:"brotli","pkg-configs":["libbrotlicommon","libbrotlidec","libbrotlienc"],"static-libs-windows":["brotlicommon.lib","brotlienc.lib","brotlidec.lib"],headers:["brotli"]},qs={source:"bzip2","static-libs-unix":["libbz2.a"],"static-libs-windows":["libbz2.lib","libbz2_a.lib"],headers:["bzlib.h"]},Es={source:"curl","static-libs-unix":["libcurl.a"],"static-libs-windows":["libcurl_a.lib"],headers:["curl"],"lib-depends-unix":["openssl","zlib"],"lib-depends-windows":["zlib","libssh2","nghttp2"],"lib-suggests-unix":["libssh2","brotli","nghttp2","nghttp3","ngtcp2","zstd","libcares","ldap"],"lib-suggests-windows":["brotli","zstd"],frameworks:["CoreFoundation","CoreServices","SystemConfiguration"]},$s={source:"fastlz","static-libs-unix":["libfastlz.a"],headers:["fastlz/fastlz.h"]},Ws={source:"freetype","static-libs-unix":["libfreetype.a"],"static-libs-windows":["libfreetype_a.lib"],"headers-unix":["freetype2/freetype/freetype.h","freetype2/ft2build.h"],"lib-depends":["zlib"],"lib-suggests":["libpng","bzip2","brotli"]},Ps={source:"gettext","static-libs-unix":["libintl.a"],"lib-depends":["libiconv"],"lib-suggests":["ncurses","libxml2"],frameworks:["CoreFoundation"]},Is={source:"ext-glfw","static-libs-unix":["libglfw3.a"],frameworks:["CoreVideo","OpenGL","Cocoa","IOKit"]},Ls={source:"gmp","static-libs-unix":["libgmp.a"],"static-libs-windows":["libgmp.lib"],headers:["gmp.h"]},Us={source:"gmssl","static-libs-unix":["libgmssl.a"],"static-libs-windows":["gmssl.lib"],frameworks:["Security"]},js={source:"grpc","pkg-configs":["grpc"],"lib-depends":["zlib","openssl","libcares"],"provide-pre-built":!0,frameworks:["CoreFoundation"]},As={source:"icu","cpp-library":!0,"pkg-configs":["icu-uc","icu-i18n","icu-io"]},Ns={source:"imagemagick","pkg-configs":["Magick++-7.Q16HDRI","MagickCore-7.Q16HDRI","MagickWand-7.Q16HDRI"],"lib-depends":["zlib","libjpeg","libjxl","libpng","libwebp","freetype","libtiff","libheif","bzip2"],"lib-suggests":["zstd","xz","libzip","libxml2"]},Os={source:"imap","static-libs-unix":["libc-client.a"],"lib-suggests":["openssl"]},Vs={source:"jbig","static-libs-unix":["libjbig.a","libjbig85.a"],headers:["jbig.h","jbig85.h","jbig_ar.h"]},Ts={source:"ldap","pkg-configs":["ldap","lber"],"lib-depends":["openssl","zlib","gmp","libsodium"]},Ms={source:"lerc","static-libs-unix":["libLerc.a"],"cpp-library":!0},Gs={source:"libacl","static-libs-unix":["libacl.a"],"lib-depends":["attr"]},Xs={source:"libaom","static-libs-unix":["libaom.a"],"cpp-library":!0},Hs={source:"libargon2","static-libs-unix":["libargon2.a"]},Rs={source:"libavif","static-libs-unix":["libavif.a"],"static-libs-windows":["avif.lib"]},Fs={source:"libcares","static-libs-unix":["libcares.a"],"headers-unix":["ares.h","ares_dns.h","ares_nameser.h"]},Zs={source:"libde265","static-libs-unix":["libde265.a"],"cpp-library":!0},Qs={source:"libevent","static-libs-unix":["libevent.a","libevent_core.a","libevent_extra.a","libevent_openssl.a"],"lib-depends":["openssl"]},Ks={source:"libffi","static-libs-unix":["libffi.a"],"static-libs-windows":["libffi.lib"],"headers-unix":["ffi.h","ffitarget.h"],"headers-windows":["ffi.h","fficonfig.h","ffitarget.h"]},Ys={source:"libheif","static-libs-unix":["libheif.a"],"lib-depends":["libde265","libwebp","libaom","zlib","brotli"]},Js={source:"libiconv","static-libs-unix":["libiconv.a","libcharset.a"],headers:["iconv.h","libcharset.h","localcharset.h"]},_s={source:"libjpeg","static-libs-unix":["libjpeg.a","libturbojpeg.a"],"static-libs-windows":["libjpeg_a.lib"],"lib-suggests-windows":["zlib"]},et={source:"libjxl","pkg-configs":["libjxl","libjxl_cms","libjxl_threads","libhwy"],"lib-depends":["brotli","libjpeg","libpng","libwebp"]},it={source:"liblz4","static-libs-unix":["liblz4.a"]},st={source:"libmemcached","static-libs-unix":["libmemcached.a","libmemcachedprotocol.a","libmemcachedutil.a","libhashkit.a"]},tt={source:"libpng","static-libs-unix":["libpng16.a"],"static-libs-windows":["libpng16_static.lib","libpng_a.lib"],"headers-unix":["png.h","pngconf.h","pnglibconf.h"],"headers-windows":["png.h","pngconf.h"],"lib-depends":["zlib"]},lt={source:"librabbitmq","static-libs-unix":["librabbitmq.a"],"static-libs-windows":["rabbitmq.4.lib"],"lib-depends":["openssl"]},nt={source:"librdkafka","static-libs-unix":["librdkafka.a","librdkafka++.a","librdkafka-static.a"],"cpp-library":!0,"lib-suggests":["zstd"]},ot={source:"libsodium","static-libs-unix":["libsodium.a"],"static-libs-windows":["libsodium.lib"]},at={source:"libssh2","static-libs-unix":["libssh2.a"],"static-libs-windows":["libssh2.lib"],headers:["libssh2.h","libssh2_publickey.h","libssh2_sftp.h"],"lib-depends":["openssl"]},dt={source:"libtiff","static-libs-unix":["libtiff.a"],"lib-depends":["zlib","libjpeg"],"lib-suggests-unix":["lerc","libwebp","jbig","xz","zstd"]},ut={source:"libuuid","static-libs-unix":["libuuid.a"],headers:["uuid/uuid.h"]},pt={source:"libuv","static-libs-unix":["libuv.a"]},ct={source:"libwebp","pkg-configs":["libwebp","libwebpdecoder","libwebpdemux","libwebpmux","libsharpyuv"],"static-libs-windows":["libwebp.lib","libwebpdecoder.lib","libwebpdemux.lib","libsharpyuv.lib"]},rt={source:"libxml2","static-libs-unix":["libxml2.a"],"static-libs-windows":["libxml2s.lib","libxml2_a.lib"],headers:["libxml2"],"lib-depends-unix":["libiconv"],"lib-suggests-unix":["xz","icu","zlib"],"lib-depends-windows":["libiconv-win"],"lib-suggests-windows":["zlib"]},bt={source:"libxslt","static-libs-unix":["libxslt.a","libexslt.a"],"lib-depends":["libxml2"]},wt={source:"libyaml","static-libs-unix":["libyaml.a"],"static-libs-windows":["yaml.lib"],headers:["yaml.h"]},gt={source:"libzip","static-libs-unix":["libzip.a"],"static-libs-windows":["zip.lib","libzip_a.lib"],headers:["zip.h","zipconf.h"],"lib-depends-unix":["zlib"],"lib-suggests-unix":["bzip2","xz","zstd","openssl"],"lib-depends-windows":["zlib","bzip2","xz"],"lib-suggests-windows":["zstd","openssl"]},xt={source:"mimalloc","static-libs-unix":["libmimalloc.a"]},mt={source:"ncurses","static-libs-unix":["libncurses.a"]},ht={source:"nghttp2","static-libs-unix":["libnghttp2.a"],"static-libs-windows":["nghttp2.lib"],headers:["nghttp2"],"lib-depends":["zlib","openssl"],"lib-suggests":["libxml2","nghttp3","ngtcp2"]},vt={source:"nghttp3","static-libs-unix":["libnghttp3.a"],"static-libs-windows":["nghttp3.lib"],headers:["nghttp3"],"lib-depends":["openssl"]},yt={source:"ngtcp2","static-libs-unix":["libngtcp2.a","libngtcp2_crypto_ossl.a"],"static-libs-windows":["ngtcp2.lib","ngtcp2_crypto_ossl.lib"],headers:["ngtcp2"],"lib-depends":["openssl"],"lib-suggests":["nghttp3","brotli"]},ft={source:"onig","static-libs-unix":["libonig.a"],"static-libs-windows":["onig.lib","onig_a.lib"],headers:["oniggnu.h","oniguruma.h"]},zt={source:"openssl","static-libs-unix":["libssl.a","libcrypto.a"],"static-libs-windows":["libssl.lib","libcrypto.lib"],headers:["openssl"],"lib-depends":["zlib"]},kt={source:"postgresql","pkg-configs":["libpq"],"lib-depends":["libiconv","libxml2","openssl","zlib","readline"],"lib-suggests":["icu","libxslt","ldap","zstd"]},St={source:"pthreads4w","static-libs-windows":["libpthreadVC3.lib"]},Dt={source:"qdbm","static-libs-unix":["libqdbm.a"],"static-libs-windows":["qdbm_a.lib"],"headers-windows":["depot.h"]},Bt={source:"re2c","bin-unix":["re2c"]},Ct={source:"readline","static-libs-unix":["libreadline.a"],"lib-depends":["ncurses"]},qt={source:"snappy","static-libs-unix":["libsnappy.a"],"headers-unix":["snappy.h","snappy-c.h","snappy-sinksource.h","snappy-stubs-public.h"],"lib-depends":["zlib"]},Et={source:"sqlite","static-libs-unix":["libsqlite3.a"],"static-libs-windows":["libsqlite3_a.lib"],headers:["sqlite3.h","sqlite3ext.h"]},$t={source:"tidy","static-libs-unix":["libtidy.a"]},Wt={source:"unixodbc","static-libs-unix":["libodbc.a","libodbccr.a","libodbcinst.a"],"lib-depends":["libiconv"]},Pt={source:"watcher","static-libs-unix":["libwatcher-c.a"],headers:["wtr/watcher-c.h"]},It={source:"xz","static-libs-unix":["liblzma.a"],"static-libs-windows":["lzma.lib","liblzma_a.lib"],"headers-unix":["lzma"],"headers-windows":["lzma","lzma.h"],"lib-depends-unix":["libiconv"]},Lt={source:"zlib","static-libs-unix":["libz.a"],"static-libs-windows":["zlib_a.lib"],headers:["zlib.h","zconf.h"]},Ut={source:"zstd","static-libs-unix":["libzstd.a"],"static-libs-windows":[["zstd.lib","zstd_static.lib"]],"headers-unix":["zdict.h","zstd.h","zstd_errors.h"],"headers-windows":["zstd.h","zstd_errors.h"]},jt={source:"liburing","pkg-configs":["liburing","liburing-ffi"],"static-libs-linux":["liburing.a","liburing-ffi.a"],"headers-linux":["liburing/","liburing.h"]},At={"lib-base":{type:"root","lib-depends-unix":["pkg-config"]},php:Ss,micro:Ds,"pkg-config":{type:"package",source:"pkg-config","bin-unix":["pkg-config"]},attr:Bs,brotli:Cs,bzip2:qs,curl:Es,fastlz:$s,freetype:Ws,gettext:Ps,glfw:Is,gmp:Ls,gmssl:Us,grpc:js,icu:As,"icu-static-win":{source:"icu-static-win","static-libs-windows":["icudt.lib","icuin.lib","icuio.lib","icuuc.lib"],"headers-windows":["unicode"]},imagemagick:Ns,imap:Os,jbig:Vs,ldap:Ts,lerc:Ms,libacl:Gs,libaom:Xs,libargon2:Hs,libavif:Rs,libcares:Fs,libde265:Zs,libevent:Qs,libffi:Ks,"libffi-win":{source:"libffi-win","static-libs-windows":["libffi.lib"],"headers-windows":["ffi.h","ffitarget.h","fficonfig.h"]},libheif:Ys,libiconv:Js,"libiconv-win":{source:"libiconv-win","static-libs-windows":["libiconv.lib","libiconv_a.lib"]},libjpeg:_s,libjxl:et,liblz4:it,libmemcached:st,libpng:tt,librabbitmq:lt,librdkafka:nt,libsodium:ot,libssh2:at,libtiff:dt,libuuid:ut,libuv:pt,libwebp:ct,libxml2:rt,libxslt:bt,libyaml:wt,libzip:gt,mimalloc:xt,ncurses:mt,nghttp2:ht,nghttp3:vt,ngtcp2:yt,onig:ft,openssl:zt,postgresql:kt,"postgresql-win":{source:"postgresql-win","static-libs":["libpq.lib","libpgport.lib","libpgcommon.lib"]},pthreads4w:St,qdbm:Dt,re2c:Bt,readline:Ct,snappy:qt,sqlite:Et,tidy:$t,unixodbc:Wt,watcher:Pt,xz:It,zlib:Lt,zstd:Ut,liburing:jt};function X(i,o,d,p){return i.os==="linux"?i[o][d][p+"-linux"]??i[o][d][p+"-unix"]??i[o][d][p]??[]:i.os==="macos"?i[o][d][p+"-macos"]??i[o][d][p+"-unix"]??i[o][d][p]??[]:i.os==="windows"?i[o][d][p+"-windows"]??i[o][d][p]??[]:[]}function me(i,o){return X(i,"ext",o,"ext-depends")}function Nt(i,o){return X(i,"ext",o,"ext-suggests")}function Ot(i,o){return X(i,"ext",o,"lib-depends")}function Vt(i,o){return X(i,"ext",o,"lib-suggests")}function he(i,o){return X(i,"lib",o,"lib-depends")}function Tt(i,o){return X(i,"lib",o,"lib-suggests")}function Mt(i,o){const d=[],p=new Set,u=[];o.forEach(D=>{p.has(D)||Ht(i,D,p,d)});const h=[];return d.forEach(D=>{o.indexOf(D)===-1&&u.push(D),[...Ot(i,D),...Vt(i,D)].forEach(v=>{h.indexOf(v)===-1&&h.push(v)})}),{exts:d,libs:Gt(i,h),notIncludedExts:u}}function Gt(i,o){const d=[],p=new Set;return o.forEach(u=>{p.has(u)||(console.log("before visited"),console.log(p),Xt(i,u,p,d),console.log("after visited"),console.log(p))}),d}function Xt(i,o,d,p){if(d.has(o))return;d.add(o),[...he(i,o),...Tt(i,o)].forEach(h=>{ve(i,h,d,p)}),p.push(o)}function ve(i,o,d,p){d.has(o)||(d.add(o),he(i,o).forEach(u=>{ve(i,u,d,p)}),p.push(o))}function ye(i,o,d,p){d.has(d)||(d.add(o),me(i,o).forEach(u=>{ye(i,u,d,p)}),p.push(o))}function Ht(i,o,d,p){if(d.has(o))return;d.add(o),[...me(i,o),...Nt(i,o)].forEach(h=>{ye(i,h,d,p)}),p.push(o)}const Rt={class:"option-line"},Ft=["id","value","disabled"],Zt=["for"],Qt={class:"option-line"},Kt=["disabled"],Yt={class:"box"},Jt=["placeholder"],_t=["id","value","disabled"],el=["for"],il={style:{color:"orangered","font-weight":"bolder"}},sl={class:"details custom-block",open:""},tl={class:"box"},ll=["id","value","disabled"],nl=["for"],ol={class:"tip custom-block"},al={class:"box"},dl=["id","value"],ul=["for"],pl={key:2,class:"warning custom-block"},cl={key:3,class:"warning custom-block"},rl={value:"native"},bl={value:"spc"},wl={key:0,value:"docker"},gl=["value"],xl={for:"debug-yes"},ml={for:"debug-no"},hl={for:"zts-yes"},vl={for:"zts-no"},yl={for:"show-download-yes"},fl={for:"show-download-no"},zl={for:"pre-built-yes"},kl={for:"pre-built-no"},Sl={key:0},Dl={for:"upx-yes"},Bl={for:"upx-no"},Cl=["placeholder"],ql={key:4,class:"command-container"},El={key:0,class:"command-preview"},$l={class:"command-content"},Wl={key:1},Pl={class:"warning custom-block"},Il={key:5,class:"command-container"},Ll={class:"command-preview"},Ul={class:"command-content"},jl={key:6,class:"command-container"},Al={class:"command-preview"},Nl={class:"command-content"},Ol={key:7,class:"command-container"},Vl={class:"command-preview"},Tl={class:"command-content"},Ml={class:"command-container"},Gl={class:"command-preview"},Xl={class:"command-content"},Hl={class:"command-container"},Rl={class:"command-preview"},Fl={class:"command-content"},Zl={class:"command-container"},Ql={class:"command-preview pre"},Kl={class:"command-content"},Yl={name:"CliGenerator"},Jl=Ee({...Yl,props:{lang:{type:String,default:"zh"}},setup(i){const o=new Map([["linux","Linux"],["macos","Darwin"],["windows","Windows"]]),d=["cli","fpm","micro","embed","frankenphp","all"],p=["8.0","8.1","8.2","8.3","8.4","8.5"],u=w(ks),h=w(At),D=w([]),C=w(""),v=w([]),q=w([]),_=w([]),K=w([]),z=w(["cli"]),Y=w("spc"),M=w("8.4"),r=w("linux"),J=w("x86_64"),B=w(0),G=w(0),H=w(1),O=w(1),E=w(0),ee=w(""),be=w("--build-cli"),f=w({spcDownload:!1,downloadExt:!1,downloadAll:!1,downloadPkg:!1,build:!1,craft:!1,doctor:!1}),fe=[{os:"linux",label:"Linux",disabled:!1},{os:"macos",label:"macOS",disabled:!1},{os:"windows",label:"Windows",disabled:!1}],we=k(()=>Object.entries(u.value).filter(([a])=>ke(a,r.value)).map(([a])=>a)),ie=k(()=>v.value.join(",")),se=k(()=>{const a=q.value.filter(t=>K.value.indexOf(t)===-1);return a.length>0?` --with-libs="${a.join(",")}"`:""}),R=k(()=>{switch(Y.value){case"native":return"bin/spc";case"spc":return r.value==="windows"?".\\spc.exe":"./spc";case"docker":return"bin/spc-alpine-docker";default:return""}}),te=k(()=>r.value==="windows"?"":`curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-${r.value}-${J.value}.tar.gz && tar -zxvf spc.tgz && rm spc.tgz`),ze=k(()=>{const t=ee.value.split(`
`).filter(s=>s.indexOf("=")>=1);return t.length>0?" "+t.map(s=>`-I "${s}"`).join(" "):""}),le=k(()=>`${R.value} download --all --with-php=${M.value}${O.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),ne=k(()=>`${R.value} download --with-php=${M.value} --for-extensions "${ie.value}"${O.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),oe=k(()=>`${R.value} install-pkg upx${B.value?" --debug":""}`),ae=k(()=>`${R.value} doctor --auto-fix${B.value?" --debug":""}`),de=k(()=>`${R.value} build ${be.value} "${ie.value}"${se.value}${B.value?" --debug":""}${G.value?" --enable-zts":""}${E.value?" --with-upx-pack":""}${ze.value}`),ue=k(()=>{let a=`php-version: ${M.value}
`;return a+=`extensions: "${ie.value}"
`,z.value.join(",")==="all"?a+="sapi: "+["cli","fpm","micro","embed","frankenphp"].join(",")+`
`:a+=`sapi: ${z.value.join(",")}
`,se.value&&(a+=`libs: ${se.value.replace('--with-libs="',"").replace('"',"").trim()}
`),B.value&&(a+=`debug: true
`),a+="{{position_hold}}",E.value&&(a+=` with-upx-pack: true
`),G.value&&(a+=` enable-zts: true
`),O.value&&(a+=` prefer-pre-built: true
`),a.endsWith("{{position_hold}}")?a=a.replace("{{position_hold}}",""):a=a.replace("{{position_hold}}",`build-options:
`),a}),ke=(a,t)=>{var c,y;const s=o.get(t),b=((y=(c=u.value[a])==null?void 0:c.support)==null?void 0:y[s])??"yes";return b==="yes"||b==="partial"},Se=()=>{v.value=["apcu","bcmath","calendar","ctype","curl","dba","dom","exif","filter","fileinfo","gd","iconv","intl","mbstring","mbregex","mysqli","mysqlnd","openssl","opcache","pcntl","pdo","pdo_mysql","pdo_sqlite","pdo_pgsql","pgsql","phar","posix","readline","redis","session","simplexml","sockets","sodium","sqlite3","tokenizer","xml","xmlreader","xmlwriter","xsl","zip","zlib"]},De=()=>{v.value=[...we.value]},Be=a=>{if(a.target.value==="all")z.value=["all"];else{const s=z.value.indexOf("all");s!==-1&&z.value.splice(s,1)}be.value=z.value.map(s=>`--build-${s}`).join(" ")},pe=(a,t)=>{if(!C.value||!a.includes(C.value))return t===0?a:"";const s=a.indexOf(C.value);switch(t){case 0:return a.substring(0,s);case 1:return C.value;case 2:return a.substring(s+C.value.length);default:return""}},V=async a=>{try{await navigator.clipboard.writeText(a);const s={[te.value]:"spcDownload",[ne.value]:"downloadExt",[le.value]:"downloadAll",[oe.value]:"downloadPkg",[ae.value]:"doctor",[de.value]:"build",[ue.value]:"craft"}[a];s&&(f.value[s]=!0,setTimeout(()=>{f.value[s]=!1},2e3))}catch(t){console.error("Failed to copy text: ",t);const s=document.createElement("textarea");s.value=a,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s)}},Ce=a=>{const t=new Set,s=b=>{var y,$,W,P,I,L,U,j;let c=[];r.value==="linux"?c=((y=u.value[b])==null?void 0:y["ext-depends-linux"])??(($=u.value[b])==null?void 0:$["ext-depends-unix"])??((W=u.value[b])==null?void 0:W["ext-depends"])??[]:r.value==="macos"?c=((P=u.value[b])==null?void 0:P["ext-depends-macos"])??((I=u.value[b])==null?void 0:I["ext-depends-unix"])??((L=u.value[b])==null?void 0:L["ext-depends"])??[]:r.value==="windows"&&(c=((U=u.value[b])==null?void 0:U["ext-depends-windows"])??((j=u.value[b])==null?void 0:j["ext-depends"])??[]),c.length!==0&&c.forEach(A=>{t.add(A),s(A)})};return a.forEach(s),Array.from(t)},qe=a=>{const t=new Set,s=c=>{var $,W,P,I,L,U,j,A;let y=[];r.value==="linux"?y=(($=h.value[c])==null?void 0:$["lib-depends-linux"])??((W=h.value[c])==null?void 0:W["lib-depends-unix"])??((P=h.value[c])==null?void 0:P["lib-depends"])??[]:r.value==="macos"?y=((I=h.value[c])==null?void 0:I["lib-depends-macos"])??((L=h.value[c])==null?void 0:L["lib-depends-unix"])??((U=h.value[c])==null?void 0:U["lib-depends"])??[]:r.value==="windows"&&(y=((j=h.value[c])==null?void 0:j["lib-depends-windows"])??((A=h.value[c])==null?void 0:A["lib-depends"])??[]),y.length!==0&&y.forEach(F=>{t.add(F),s(F)})},b=c=>{var $,W,P,I,L,U,j,A;let y=[];r.value==="linux"?y=(($=u.value[c])==null?void 0:$["lib-depends-linux"])??((W=u.value[c])==null?void 0:W["lib-depends-unix"])??((P=u.value[c])==null?void 0:P["lib-depends"])??[]:r.value==="macos"?y=((I=u.value[c])==null?void 0:I["lib-depends-macos"])??((L=u.value[c])==null?void 0:L["lib-depends-unix"])??((U=u.value[c])==null?void 0:U["lib-depends"])??[]:r.value==="windows"&&(y=((j=u.value[c])==null?void 0:j["lib-depends-windows"])??((A=u.value[c])==null?void 0:A["lib-depends"])??[]),y.length!==0&&y.forEach(F=>{t.add(F),s(F)})};return a.forEach(b),Array.from(t)};ge(r,()=>{r.value==="windows"&&(J.value="x86_64"),v.value=[],E.value=0}),ge(v,a=>{_.value=Ce(a),_.value.forEach(s=>{v.value.indexOf(s)===-1&&v.value.push(s)}),v.value.sort();const t=Mt({ext:u.value,lib:h.value,os:r.value},v.value);D.value=t.libs.sort(),q.value=[],K.value=qe(t.exts),K.value.forEach(s=>{q.value.indexOf(s)===-1&&q.value.push(s)})},{deep:!0});const n={zh:{selectExt:"选择扩展",buildTarget:"选择编译目标",buildOptions:"编译选项",buildEnvironment:"编译环境",buildEnvNative:"本地构建Git 源码)",buildEnvSpc:"本地构建(独立 spc 二进制)",buildEnvDocker:"Alpine Docker 构建",useDebug:"是否开启调试输出",yes:"是",no:"否",resultShow:"结果展示",selectCommon:"选择常用扩展",selectAll:"选择全部",selectNone:"全部取消选择",useZTS:"是否编译线程安全版",hardcodedINI:"硬编码 INI 选项",hardcodedINIPlacehoder:"如需要硬编码 ini每行写一个例如memory_limit=2G",resultShowDownload:"是否展示仅下载对应扩展依赖的命令",downloadExtOnlyCommand:"只下载对应扩展的依赖包命令",downloadAllCommand:"下载所有依赖包命令",downloadUPXCommand:"下载 UPX 命令",compileCommand:"编译命令",downloadPhpVersion:"下载 PHP 版本",downloadSPCBinaryCommand:"下载 spc 二进制命令",selectedArch:"选择系统架构",selectedSystem:"选择操作系统",buildLibs:"要构建的库",depTips:"选择扩展后,不可选中的项目为必需的依赖,编译的依赖库列表中可选的为现有扩展和依赖库的可选依赖。选择可选依赖后,将生成 --with-libs 参数。",depTips2:"无法同时构建所有扩展,因为有些扩展之间相互冲突。请根据需要选择扩展。",microUnavailable:"micro 不支持 PHP 7.4 及更早版本!",windowsSAPIUnavailable:"Windows 目前不支持 fpm、embed、frankenphp 构建!",useUPX:"是否开启 UPX 压缩(减小二进制体积)",windowsDownSPCWarning:"Windows 下请手动下载 spc.exe 二进制文件,解压到当前目录并重命名为 spc.exe",usePreBuilt:"如果可能,下载预编译的依赖库(减少编译时间)",searchPlaceholder:"搜索扩展...",copy:"复制",copied:"已复制",doctorCommand:"自动检查和准备构建环境命令"},en:{selectExt:"Select Extensions",buildTarget:"Build Target",buildOptions:"Build Options",buildEnvironment:"Build Environment",buildEnvNative:"Native build (Git source code)",buildEnvSpc:"Native build (standalone spc binary)",buildEnvDocker:"Alpine docker build",useDebug:"Enable debug message",yes:"Yes",no:"No",resultShow:"Result",selectCommon:"Select common extensions",selectAll:"Select all",selectNone:"Unselect all",useZTS:"Enable ZTS",hardcodedINI:"Hardcoded INI options",hardcodedINIPlacehoder:"If you need to hardcode ini, write one per line, for example: memory_limit=2G",resultShowDownload:"Download with corresponding extension dependencies",downloadExtOnlyCommand:"Download sources by extensions command",downloadAllCommand:"Download all sources command",downloadUPXCommand:"Download UPX command",compileCommand:"Compile command",downloadPhpVersion:"Download PHP version",downloadSPCBinaryCommand:"Download spc binary command",selectedArch:"Select build architecture",selectedSystem:"Select Build OS",buildLibs:"Select Dependencies",depTips:"After selecting the extensions, the unselectable items are essential dependencies. In the compiled dependencies list, optional dependencies consist of existing extensions and optional dependencies of libraries. Optional dependencies will be added in --with-libs parameter.",depTips2:"It is not possible to build all extensions at the same time, as some extensions conflict with each other. Please select the extensions you need.",microUnavailable:"Micro does not support PHP 7.4 and earlier versions!",windowsSAPIUnavailable:"Windows does not support fpm, embed and frankenphp build!",useUPX:"Enable UPX compression (reduce binary size)",windowsDownSPCWarning:"Please download the binary file manually, extract it to the current directory and rename to spc.exe on Windows!",usePreBuilt:"Download pre-built dependencies if possible (reduce compile time)",searchPlaceholder:"Search extensions...",copy:"Copy",copied:"Copied",doctorCommand:"Auto-check and prepare build environment command"}};return(a,t)=>(x(),g("div",null,[e("h2",null,l(n[i.lang].selectedSystem),1),e("div",Rt,[(x(),g(Z,null,Q(fe,(s,b)=>e("span",{key:b,style:{"margin-right":"8px"}},[m(e("input",{type:"radio",id:"os-"+s.os,value:s.os,disabled:s.disabled===!0,"onUpdate:modelValue":t[0]||(t[0]=c=>r.value=c)},null,8,Ft),[[S,r.value]]),e("label",{for:"os-"+s.os},l(s.label),9,Zt)])),64))]),e("div",Qt,[m(e("select",{"onUpdate:modelValue":t[1]||(t[1]=s=>J.value=s)},[t[27]||(t[27]=e("option",{value:"x86_64"},"x86_64",-1)),e("option",{value:"aarch64",disabled:r.value==="windows"},"aarch64",8,Kt)],512),[[ce,J.value]])]),e("h2",null,l(n[i.lang].selectExt)+l(v.value.length>0?" ("+v.value.length+")":""),1),e("div",Yt,[m(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=s=>C.value=s),placeholder:n[i.lang].searchPlaceholder},null,8,Jt),[[xe,C.value]]),t[28]||(t[28]=e("br",null,null,-1)),(x(!0),g(Z,null,Q(we.value,s=>(x(),g("div",{key:s,class:"ext-item"},[e("span",null,[m(e("input",{type:"checkbox",id:s,value:s,"onUpdate:modelValue":t[3]||(t[3]=b=>v.value=b),disabled:_.value.indexOf(s)!==-1},null,8,_t),[[re,v.value]]),e("label",{for:s},[e("span",null,l(pe(s,0)),1),e("span",il,l(pe(s,1)),1),e("span",null,l(pe(s,2)),1)],8,el)])]))),128))]),r.value!=="windows"?(x(),g("div",{key:0,class:"my-btn",onClick:Se},l(n[i.lang].selectCommon),1)):N("",!0),r.value!=="windows"?(x(),g("div",{key:1,class:"my-btn",onClick:De},l(n[i.lang].selectAll),1)):N("",!0),e("div",{class:"my-btn",onClick:t[4]||(t[4]=s=>v.value=[])},l(n[i.lang].selectNone),1),e("details",sl,[e("summary",null,l(n[i.lang].buildLibs)+l(q.value.length>0?" ("+q.value.length+")":""),1),e("div",tl,[(x(!0),g(Z,null,Q(D.value,(s,b)=>(x(),g("div",{key:b,class:"ext-item"},[m(e("input",{type:"checkbox",id:b,value:s,"onUpdate:modelValue":t[5]||(t[5]=c=>q.value=c),disabled:K.value.indexOf(s)!==-1},null,8,ll),[[re,q.value]]),e("label",{for:b},l(s),9,nl)]))),128))])]),e("div",ol,[t[29]||(t[29]=e("p",{class:"custom-block-title"},"TIP",-1)),e("p",null,l(n[i.lang].depTips),1),e("p",null,l(n[i.lang].depTips2),1)]),e("h2",null,l(n[i.lang].buildTarget),1),e("div",al,[(x(),g(Z,null,Q(d,s=>e("div",{key:s,class:"ext-item"},[m(e("input",{type:"checkbox",id:"build_"+s,value:s,"onUpdate:modelValue":t[6]||(t[6]=b=>z.value=b),onChange:Be},null,40,dl),[[re,z.value]]),e("label",{for:"build_"+s},l(s),9,ul)])),64))]),M.value==="7.4"&&(z.value.indexOf("micro")!==-1||z.value.indexOf("all")!==-1)?(x(),g("div",pl,[t[30]||(t[30]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].microUnavailable),1)])):N("",!0),r.value==="windows"&&(z.value.indexOf("fpm")!==-1||z.value.indexOf("embed")!==-1||z.value.indexOf("frankenphp")!==-1)?(x(),g("div",cl,[t[31]||(t[31]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].windowsSAPIUnavailable),1)])):N("",!0),e("h2",null,l(n[i.lang].buildOptions),1),e("table",null,[e("tr",null,[e("td",null,l(n[i.lang].buildEnvironment),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[7]||(t[7]=s=>Y.value=s)},[e("option",rl,l(n[i.lang].buildEnvNative),1),e("option",bl,l(n[i.lang].buildEnvSpc),1),r.value!=="windows"?(x(),g("option",wl,l(n[i.lang].buildEnvDocker),1)):N("",!0)],512),[[ce,Y.value]])])]),e("tr",null,[e("td",null,l(n[i.lang].downloadPhpVersion),1),e("td",null,[m(e("select",{"onUpdate:modelValue":t[8]||(t[8]=s=>M.value=s)},[(x(),g(Z,null,Q(p,s=>e("option",{key:s,value:s},l(s),9,gl)),64))],512),[[ce,M.value]])])]),e("tr",null,[e("td",null,l(n[i.lang].useDebug),1),e("td",null,[m(e("input",{type:"radio",id:"debug-yes",value:1,"onUpdate:modelValue":t[9]||(t[9]=s=>B.value=s)},null,512),[[S,B.value]]),e("label",xl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"debug-no",value:0,"onUpdate:modelValue":t[10]||(t[10]=s=>B.value=s)},null,512),[[S,B.value]]),e("label",ml,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[i.lang].useZTS),1),e("td",null,[m(e("input",{type:"radio",id:"zts-yes",value:1,"onUpdate:modelValue":t[11]||(t[11]=s=>G.value=s)},null,512),[[S,G.value]]),e("label",hl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"zts-no",value:0,"onUpdate:modelValue":t[12]||(t[12]=s=>G.value=s)},null,512),[[S,G.value]]),e("label",vl,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[i.lang].resultShowDownload),1),e("td",null,[m(e("input",{type:"radio",id:"show-download-yes",value:1,"onUpdate:modelValue":t[13]||(t[13]=s=>H.value=s)},null,512),[[S,H.value]]),e("label",yl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"show-download-no",value:0,"onUpdate:modelValue":t[14]||(t[14]=s=>H.value=s)},null,512),[[S,H.value]]),e("label",fl,l(n[i.lang].no),1)])]),e("tr",null,[e("td",null,l(n[i.lang].usePreBuilt),1),e("td",null,[m(e("input",{type:"radio",id:"pre-built-yes",value:1,"onUpdate:modelValue":t[15]||(t[15]=s=>O.value=s)},null,512),[[S,O.value]]),e("label",zl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"pre-built-no",value:0,"onUpdate:modelValue":t[16]||(t[16]=s=>O.value=s)},null,512),[[S,O.value]]),e("label",kl,l(n[i.lang].no),1)])]),r.value!=="macos"?(x(),g("tr",Sl,[e("td",null,l(n[i.lang].useUPX),1),e("td",null,[m(e("input",{type:"radio",id:"upx-yes",value:1,"onUpdate:modelValue":t[17]||(t[17]=s=>E.value=s)},null,512),[[S,E.value]]),e("label",Dl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"upx-no",value:0,"onUpdate:modelValue":t[18]||(t[18]=s=>E.value=s)},null,512),[[S,E.value]]),e("label",Bl,l(n[i.lang].no),1)])])):N("",!0)]),e("h2",null,l(n[i.lang].hardcodedINI),1),m(e("textarea",{class:"textarea",placeholder:n[i.lang].hardcodedINIPlacehoder,"onUpdate:modelValue":t[19]||(t[19]=s=>ee.value=s),rows:"5"},null,8,Cl),[[xe,ee.value]]),e("h2",null,l(n[i.lang].resultShow),1),Y.value==="spc"?(x(),g("div",ql,[e("b",null,l(n[i.lang].downloadSPCBinaryCommand),1),r.value!=="windows"?(x(),g("div",El,[e("div",$l,l(te.value),1),e("button",{class:T(["copy-btn",{copied:f.value.spcDownload}]),onClick:t[20]||(t[20]=s=>V(te.value))},l(f.value.spcDownload?n[i.lang].copied:n[i.lang].copy),3)])):(x(),g("div",Wl,[e("div",Pl,[t[32]||(t[32]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].windowsDownSPCWarning),1),t[33]||(t[33]=e("a",{href:"https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-windows-x64.exe",target:"_blank"},"https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-windows-x64.exe",-1))])]))])):N("",!0),H.value?(x(),g("div",Il,[e("b",null,l(n[i.lang].downloadExtOnlyCommand),1),e("div",Ll,[e("div",Ul,l(ne.value),1),e("button",{class:T(["copy-btn",{copied:f.value.downloadExt}]),onClick:t[21]||(t[21]=s=>V(ne.value))},l(f.value.downloadExt?n[i.lang].copied:n[i.lang].copy),3)])])):(x(),g("div",jl,[e("b",null,l(n[i.lang].downloadAllCommand),1),e("div",Al,[e("div",Nl,l(le.value),1),e("button",{class:T(["copy-btn",{copied:f.value.downloadAll}]),onClick:t[22]||(t[22]=s=>V(le.value))},l(f.value.downloadAll?n[i.lang].copied:n[i.lang].copy),3)])])),E.value?(x(),g("div",Ol,[e("b",null,l(n[i.lang].downloadUPXCommand),1),e("div",Vl,[e("div",Tl,l(oe.value),1),e("button",{class:T(["copy-btn",{copied:f.value.downloadPkg}]),onClick:t[23]||(t[23]=s=>V(oe.value))},l(f.value.downloadPkg?n[i.lang].copied:n[i.lang].copy),3)])])):N("",!0),e("div",Ml,[e("b",null,l(n[i.lang].doctorCommand),1),e("div",Gl,[e("div",Xl,l(ae.value),1),e("button",{class:T(["copy-btn",{copied:f.value.doctor}]),onClick:t[24]||(t[24]=s=>V(ae.value))},l(f.value.doctor?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",Hl,[e("b",null,l(n[i.lang].compileCommand),1),e("div",Rl,[e("div",Fl,l(de.value),1),e("button",{class:T(["copy-btn",{copied:f.value.build}]),onClick:t[25]||(t[25]=s=>V(de.value))},l(f.value.build?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",Zl,[t[34]||(t[34]=e("b",null,"craft.yml",-1)),e("div",Ql,[e("div",Kl,l(ue.value),1),e("button",{class:T(["copy-btn",{copied:f.value.craft}]),onClick:t[26]||(t[26]=s=>V(ue.value))},l(f.value.craft?n[i.lang].copied:n[i.lang].copy),3)])])]))}}),en=$e(Jl,[["__scopeId","data-v-9e57994f"]]);export{en as C};