mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
14 lines
44 KiB
JavaScript
14 lines
44 KiB
JavaScript
import{d as fe,x as w,h as k,z as ae,c as g,o as x,j as e,e as W,ai as m,t as l,G as V,H as T,aj as S,ak as te,al as de,am as le,n as I,_ as ze}from"./framework.Bhsyh9kO.js";const ke={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},Se={type:"external",source:"apcu"},De={type:"external",source:"ast"},Be={type:"builtin"},Ce={type:"external",source:"ext-brotli","arg-type":"enable","lib-depends":["brotli"]},qe={type:"builtin","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["bzip2"]},Ee={type:"builtin"},We={type:"builtin"},$e={notes:!0,type:"builtin","arg-type":"with","lib-depends":["curl"],"ext-depends-windows":["zlib","openssl"]},Pe={type:"builtin","arg-type":"custom","lib-suggests":["qdbm"]},Ie={support:{BSD:"wip"},type:"external",source:"dio"},Le={support:{BSD:"wip"},type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2","zlib"],"ext-depends-windows":["xml"]},Ue={type:"external",source:"ext-ds"},je={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},Ae={type:"external",source:"ev","arg-type-windows":"with","ext-depends":["sockets"]},Ne={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},Oe={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-excimer"},Ve={type:"builtin"},Te={support:{Linux:"partial",BSD:"wip"},notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},Me={type:"builtin"},Ge={type:"builtin"},Xe={type:"builtin","lib-suggests":["openssl"]},He={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"]},Re={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gettext"]},Fe={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},Ze={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["gmp"]},Qe={support:{BSD:"wip"},type:"external",source:"ext-gmssl","lib-depends":["gmssl"]},Ke={support:{Windows:"wip",BSD:"wip"},type:"external",source:"grpc","arg-type-unix":"enable-path","cpp-extension":!0,"lib-depends":["grpc"]},Ye={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","lib-depends-unix":["libiconv"],"lib-depends-windows":["libiconv-win"]},Je={support:{BSD:"wip"},type:"external",source:"igbinary","ext-suggests":["session","apcu"]},_e={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},ei={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-imap","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},ii={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},si={support:{BSD:"wip"},type:"builtin","lib-depends-unix":["icu"],"lib-depends-windows":["icu-static-win"]},ti={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},li={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"],"build-with-php":!0,target:["static"]},ni={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-lz4","arg-type":"custom","lib-depends":["liblz4"]},oi={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-maxminddb","arg-type":"with","lib-depends":["libmaxminddb"]},ai={type:"builtin","arg-type":"custom",target:["static"],"ext-depends":["mbstring"],"lib-depends":["onig"]},di={type:"builtin","arg-type":"custom"},pi={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},ui={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","ext-depends":["zlib","session"],"build-with-php":!0},ci={support:{Windows:"wip",BSD:"wip"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"lib-depends-unix":["libmemcached","fastlz"],"lib-suggests":["zstd"],"ext-depends":["session","zlib"],"ext-suggests":["igbinary","msgpack","session"]},ri={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"],frameworks:["CoreFoundation","Security"]},bi={support:{BSD:"wip"},type:"external",source:"msgpack","arg-type-unix":"with","arg-type-windows":"enable","ext-depends":["session"]},wi={type:"builtin","arg-type":"with","build-with-php":!0,"ext-depends":["mysqlnd"]},gi={type:"builtin","arg-type-windows":"with","build-with-php":!0,"lib-depends":["zlib"]},xi={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},mi={support:{BSD:"wip",Windows:"wip"},type:"builtin","arg-type-unix":"custom","lib-depends-unix":["unixodbc"]},hi={type:"builtin","arg-type-unix":"custom","arg-type-windows":"enable","zend-extension":!0},yi={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","build-with-php":!0,"lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},vi={support:{BSD:"wip"},type:"external",source:"opentelemetry"},fi={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},zi={support:{Windows:"no"},type:"builtin","unix-only":!0},ki={type:"external",source:"pcov",target:["shared"]},Si={type:"builtin"},Di={type:"builtin","arg-type":"with","ext-depends":["pdo","mysqlnd"]},Bi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends-unix":["unixodbc"],"ext-depends":["pdo","odbc"]},Ci={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"]},qi={support:{BSD:"wip"},type:"builtin","arg-type":"with","ext-depends":["pdo","sqlite3"],"lib-depends":["sqlite"]},Ei={support:{BSD:"wip"},type:"external",source:"pdo_sqlsrv","arg-type":"with","ext-depends":["pdo","sqlsrv"]},Wi={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends-unix":["postgresql"],"lib-depends-windows":["postgresql-win"]},$i={type:"builtin","ext-depends":["zlib"]},Pi={support:{Windows:"no"},type:"builtin","unix-only":!0},Ii={support:{Windows:"wip",BSD:"wip"},type:"external",source:"protobuf"},Li={support:{BSD:"wip",Darwin:"partial"},notes:!0,type:"external",source:"rar","cpp-extension":!0},Ui={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-rdkafka","arg-type":"custom","cpp-extension":!0,"lib-depends":["librdkafka"]},ji={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["libedit"],target:["static"]},Ai={support:{BSD:"wip"},type:"external",source:"redis","arg-type":"custom","ext-suggests":["session","igbinary","msgpack"],"lib-suggests-unix":["zstd","liblz4"]},Ni={type:"builtin","build-with-php":!0},Oi={type:"builtin","build-with-php":!0},Vi={type:"external",source:"ext-simdjson","cpp-extension":!0},Ti={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},Mi={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-snappy","cpp-extension":!0,"arg-type":"custom","lib-depends":["snappy"],"ext-suggests":["apcu"]},Gi={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type-unix":"with","arg-type-windows":"with","lib-depends":["net-snmp"]},Xi={support:{BSD:"wip"},type:"builtin","arg-type":"custom","ext-depends":["libxml","session"]},Hi={type:"builtin"},Ri={support:{BSD:"wip"},type:"builtin","arg-type":"with","lib-depends":["libsodium"]},Fi={support:{BSD:"wip",Windows:"no"},notes:!0,type:"external",source:"spx","arg-type":"custom","lib-depends":["zlib"]},Zi={support:{BSD:"wip"},type:"builtin","arg-type":"with-path","arg-type-windows":"with","build-with-php":!0,"lib-depends":["sqlite"]},Qi={support:{BSD:"wip"},type:"external",source:"sqlsrv","lib-depends-unix":["unixodbc"],"ext-depends-linux":["pcntl"],"cpp-extension":!0},Ki={support:{BSD:"wip"},type:"external",source:"ext-ssh2","arg-type":"with-path","arg-type-windows":"with","lib-depends":["libssh2"],"ext-depends":["openssl","zlib"]},Yi={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"]},Ji={support:{BSD:"wip"},notes:!0,type:"external",source:"swow","arg-type":"custom","lib-suggests":["openssl","curl"],"ext-suggests":["openssl","curl"]},_i={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},es={support:{Windows:"no",BSD:"wip"},type:"builtin","unix-only":!0},is={support:{BSD:"wip"},type:"builtin"},ss={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["tidy"]},ts={type:"builtin","build-with-php":!0},ls={support:{BSD:"wip",Windows:"wip"},type:"external",source:"ext-trader"},ns={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uuid","arg-type":"with-path","lib-depends":["libuuid"]},os={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-uv","arg-type":"with-path","lib-depends":["libuv"],"ext-depends":["sockets"]},as={type:"external",source:"xdebug",target:["shared"],support:{Windows:"wip",BSD:"no",Darwin:"partial",Linux:"partial"},notes:!0,"zend-extension":!0},ds={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"xhprof","ext-depends":["ctype"],"build-with-php":!0},ps={support:{BSD:"wip"},type:"external",source:"xlswriter","arg-type":"custom","ext-depends":["zlib","zip"],"lib-suggests":["openssl"]},us={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},cs={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml","dom"],"build-with-php":!0},rs={support:{BSD:"wip"},type:"builtin","arg-type":"custom","lib-depends":["libxml2"],"ext-depends-windows":["xml"],"build-with-php":!0},bs={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-path","lib-depends":["libxslt"],"ext-depends":["xml","dom"]},ws={type:"external",source:"ext-xz","arg-type":"with","lib-depends":["xz"]},gs={support:{BSD:"wip"},type:"external",source:"yac","arg-type-unix":"custom","lib-depends-unix":["fastlz"],"ext-depends-unix":["igbinary"]},xs={support:{BSD:"wip"},type:"external",source:"yaml","arg-type-unix":"with-path","arg-type-windows":"with","lib-depends":["libyaml"]},ms={support:{BSD:"wip"},type:"external",source:"ext-zip","arg-type":"custom","arg-type-windows":"enable","lib-depends-unix":["libzip"],"ext-depends-windows":["zlib","bz2"],"lib-depends-windows":["libzip","zlib","bzip2","xz"]},hs={type:"builtin","arg-type":"custom","arg-type-windows":"enable","lib-depends":["zlib"],"build-with-php":!0,target:["static"]},ys={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-zstd","arg-type":"custom","lib-depends":["zstd"]},vs={amqp:ke,apcu:Se,ast:De,bcmath:Be,brotli:Ce,bz2:qe,calendar:Ee,ctype:We,curl:$e,dba:Pe,dio:Ie,dom:Le,ds:Ue,enchant:je,ev:Ae,event:Ne,excimer:Oe,exif:Ve,ffi:Te,fileinfo:Me,filter:Ge,ftp:Xe,gd:He,gettext:Re,glfw:Fe,gmp:Ze,gmssl:Qe,grpc:Ke,iconv:Ye,igbinary:Je,imagick:_e,imap:ei,inotify:ii,intl:si,ldap:ti,libxml:li,lz4:ni,maxminddb:oi,mbregex:ai,mbstring:di,mcrypt:pi,memcache:ui,memcached:ci,mongodb:ri,msgpack:bi,mysqli:wi,mysqlnd:gi,oci8:xi,odbc:mi,opcache:hi,openssl:yi,opentelemetry:vi,parallel:fi,"password-argon2":{support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends":["libargon2","openssl"]},pcntl:zi,pcov:ki,pdo:Si,pdo_mysql:Di,pdo_odbc:Bi,pdo_pgsql:Ci,pdo_sqlite:qi,pdo_sqlsrv:Ei,pgsql:Wi,phar:$i,posix:Pi,protobuf:Ii,rar:Li,rdkafka:Ui,readline:ji,redis:Ai,session:Ni,shmop:Oi,simdjson:Vi,simplexml:Ti,snappy:Mi,snmp:Gi,soap:Xi,sockets:Hi,sodium:Ri,spx:Fi,sqlite3:Zi,sqlsrv:Qi,ssh2:Ki,swoole:Yi,"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-odbc":{support:{Windows:"no",BSD:"wip"},notes:!0,type:"addon","arg-type":"none","ext-depends":["pdo","swoole"],"lib-depends":["unixodbc"]},"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"]},swow:Ji,sysvmsg:_i,sysvsem:es,sysvshm:is,tidy:ss,tokenizer:ts,trader:ls,uuid:ns,uv:os,xdebug:as,xhprof:ds,xlswriter:ps,xml:us,xmlreader:cs,xmlwriter:rs,xsl:bs,xz:ws,yac:gs,yaml:xs,zip:ms,zlib:hs,zstd:ys},fs={type:"root",source:"php-src","lib-depends":["lib-base","micro","frankenphp"],"lib-depends-macos":["lib-base","micro","libxml2","frankenphp"],"lib-suggests-linux":["libacl","brotli","watcher"],"lib-suggests-macos":["brotli","watcher"]},zs={source:"frankenphp",type:"target"},ks={type:"target",source:"micro"},Ss={source:"attr","static-libs-unix":["libattr.a"]},Ds={source:"brotli","pkg-configs":["libbrotlicommon","libbrotlidec","libbrotlienc"],"static-libs-windows":["brotlicommon.lib","brotlienc.lib","brotlidec.lib"],headers:["brotli"]},Bs={source:"bzip2","static-libs-unix":["libbz2.a"],"static-libs-windows":["libbz2.lib","libbz2_a.lib"],headers:["bzlib.h"]},Cs={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","idn2","krb5"],"lib-suggests-windows":["brotli","zstd"],frameworks:["CoreFoundation","CoreServices","SystemConfiguration"]},qs={source:"fastlz","static-libs-unix":["libfastlz.a"],headers:["fastlz/fastlz.h"]},Es={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"]},Ws={source:"gettext","static-libs-unix":["libintl.a"],"lib-depends":["libiconv"],"lib-suggests":["ncurses","libxml2"],frameworks:["CoreFoundation"]},$s={source:"ext-glfw","static-libs-unix":["libglfw3.a"],frameworks:["CoreVideo","OpenGL","Cocoa","IOKit"]},Ps={source:"gmp","static-libs-unix":["libgmp.a"],"static-libs-windows":["libgmp.lib"],headers:["gmp.h"]},Is={source:"gmssl","static-libs-unix":["libgmssl.a"],"static-libs-windows":["gmssl.lib"],frameworks:["Security"]},Ls={source:"grpc","pkg-configs":["grpc"],"lib-depends":["zlib","openssl","libcares"],"cpp-library":!0,frameworks:["CoreFoundation"]},Us={source:"icu","cpp-library":!0,"pkg-configs":["icu-uc","icu-i18n","icu-io"]},js={source:"libidn2","pkg-configs":["libidn2"],headers:["idn2.h"],"lib-suggests-unix":["libiconv","gettext","libunistring"],"lib-depends-macos":["libiconv","gettext"]},As={source:"imagemagick","cpp-library":!0,"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"]},Ns={source:"imap","static-libs-unix":["libc-client.a"],"lib-suggests":["openssl"]},Os={source:"jbig","static-libs-unix":["libjbig.a","libjbig85.a"],headers:["jbig.h","jbig85.h","jbig_ar.h"]},Vs={source:"krb5","pkg-configs":["krb5-gssapi"],headers:["krb5.h","gssapi/gssapi.h"],"lib-depends":["openssl"],"lib-suggests":["ldap","libedit"],frameworks:["Kerberos"]},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:"libedit","static-libs-unix":["libedit.a"],"lib-depends":["ncurses"]},Ks={source:"libevent","static-libs-unix":["libevent.a","libevent_core.a","libevent_extra.a","libevent_openssl.a"],"lib-depends":["openssl"]},Ys={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"]},Js={source:"libheif","static-libs-unix":["libheif.a"],"lib-depends":["libde265","libwebp","libaom","zlib","brotli"]},_s={source:"libiconv","static-libs-unix":["libiconv.a","libcharset.a"],headers:["iconv.h","libcharset.h","localcharset.h"]},et={source:"libjpeg","static-libs-unix":["libjpeg.a","libturbojpeg.a"],"static-libs-windows":["libjpeg_a.lib"],"lib-suggests-windows":["zlib"]},it={source:"libjxl","pkg-configs":["libjxl","libjxl_cms","libjxl_threads","libhwy"],"lib-depends":["brotli","libjpeg","libpng","libwebp"]},st={source:"liblz4","static-libs-unix":["liblz4.a"]},tt={source:"libmaxminddb","static-libs-unix":["libmaxminddb.a"],headers:["maxminddb.h","maxminddb_config.h"]},lt={source:"libmemcached","cpp-library":!0,"static-libs-unix":["libmemcached.a","libmemcachedprotocol.a","libmemcachedutil.a","libhashkit.a"]},nt={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"]},ot={source:"librabbitmq","static-libs-unix":["librabbitmq.a"],"static-libs-windows":["rabbitmq.4.lib"],"lib-depends":["openssl"]},at={source:"librdkafka","pkg-configs":["rdkafka++-static","rdkafka-static"],"cpp-library":!0,"lib-suggests":["curl","liblz4","openssl","zlib","zstd"]},dt={source:"libsodium","static-libs-unix":["libsodium.a"],"static-libs-windows":["libsodium.lib"]},pt={source:"libssh2","static-libs-unix":["libssh2.a"],"static-libs-windows":["libssh2.lib"],headers:["libssh2.h","libssh2_publickey.h","libssh2_sftp.h"],"lib-depends":["openssl"]},ut={source:"libtiff","static-libs-unix":["libtiff.a"],"lib-depends":["zlib","libjpeg"],"lib-suggests-unix":["lerc","libwebp","jbig","xz","zstd"]},ct={source:"libunistring","static-libs-unix":["libunistring.a"],headers:["unistr.h","unistring/"]},rt={source:"liburing","pkg-configs":["liburing","liburing-ffi"],"static-libs-linux":["liburing.a","liburing-ffi.a"],"headers-linux":["liburing/","liburing.h"]},bt={source:"libuuid","static-libs-unix":["libuuid.a"],headers:["uuid/uuid.h"]},wt={source:"libuv","static-libs-unix":["libuv.a"]},gt={source:"libwebp","pkg-configs":["libwebp","libwebpdecoder","libwebpdemux","libwebpmux","libsharpyuv"],"static-libs-windows":["libwebp.lib","libwebpdecoder.lib","libwebpdemux.lib","libsharpyuv.lib"]},xt={source:"libxml2","pkg-configs":["libxml-2.0"],"static-libs-windows":["libxml2s.lib","libxml2_a.lib"],headers:["libxml2"],"lib-depends-unix":["libiconv"],"lib-suggests-unix":["xz","zlib"],"lib-depends-windows":["libiconv-win"],"lib-suggests-windows":["zlib"]},mt={source:"libxslt","static-libs-unix":["libxslt.a","libexslt.a"],"lib-depends":["libxml2"]},ht={source:"libyaml","static-libs-unix":["libyaml.a"],"static-libs-windows":["yaml.lib"],headers:["yaml.h"]},yt={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"]},vt={source:"mimalloc","static-libs-unix":["libmimalloc.a"]},ft={source:"ncurses","static-libs-unix":["libncurses.a"]},zt={source:"nghttp2","static-libs-unix":["libnghttp2.a"],"static-libs-windows":["nghttp2.lib"],headers:["nghttp2"],"lib-depends":["zlib","openssl"],"lib-suggests":["libxml2","nghttp3","ngtcp2"]},kt={source:"nghttp3","static-libs-unix":["libnghttp3.a"],"static-libs-windows":["nghttp3.lib"],headers:["nghttp3"],"lib-depends":["openssl"]},St={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"]},Dt={source:"onig","static-libs-unix":["libonig.a"],"static-libs-windows":["onig.lib","onig_a.lib"],headers:["oniggnu.h","oniguruma.h"]},Bt={source:"openssl","static-libs-unix":["libssl.a","libcrypto.a"],"static-libs-windows":["libssl.lib","libcrypto.lib"],headers:["openssl"],"lib-depends":["zlib"]},Ct={source:"postgresql","pkg-configs":["libpq"],"lib-depends":["libiconv","libxml2","openssl","zlib","libedit"],"lib-suggests":["icu","libxslt","ldap","zstd"]},qt={source:"pthreads4w","static-libs-windows":["libpthreadVC3.lib"]},Et={source:"qdbm","static-libs-unix":["libqdbm.a"],"static-libs-windows":["qdbm_a.lib"],"headers-windows":["depot.h"]},Wt={source:"re2c","bin-unix":["re2c"]},$t={source:"readline","static-libs-unix":["libreadline.a"],"lib-depends":["ncurses"]},Pt={source:"snappy","cpp-library":!0,"static-libs-unix":["libsnappy.a"],"headers-unix":["snappy.h","snappy-c.h","snappy-sinksource.h","snappy-stubs-public.h"],"lib-depends":["zlib"]},It={source:"sqlite","static-libs-unix":["libsqlite3.a"],"static-libs-windows":["libsqlite3_a.lib"],headers:["sqlite3.h","sqlite3ext.h"]},Lt={source:"tidy","static-libs-unix":["libtidy.a"]},Ut={source:"unixodbc","static-libs-unix":["libodbc.a","libodbccr.a","libodbcinst.a"],"lib-depends":["libiconv"]},jt={source:"watcher","cpp-library":!0,"static-libs-unix":["libwatcher-c.a"],headers:["wtr/watcher-c.h"]},At={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"]},Nt={source:"zlib","static-libs-unix":["libz.a"],"static-libs-windows":["zlib_a.lib"],headers:["zlib.h","zconf.h"]},Ot={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"]},Vt={"lib-base":{type:"root"},php:fs,frankenphp:zs,micro:ks,"pkg-config":{type:"package",source:"pkg-config","bin-unix":["pkg-config"]},attr:Ss,brotli:Ds,bzip2:Bs,curl:Cs,fastlz:qs,freetype:Es,gettext:Ws,glfw:$s,gmp:Ps,gmssl:Is,grpc:Ls,icu:Us,"icu-static-win":{source:"icu-static-win","static-libs-windows":["icudt.lib","icuin.lib","icuio.lib","icuuc.lib"],"headers-windows":["unicode"]},idn2:js,imagemagick:As,imap:Ns,jbig:Os,krb5:Vs,ldap:Ts,lerc:Ms,libacl:Gs,libaom:Xs,libargon2:Hs,libavif:Rs,libcares:Fs,libde265:Zs,libedit:Qs,libevent:Ks,libffi:Ys,"libffi-win":{source:"libffi-win","static-libs-windows":["libffi.lib"],"headers-windows":["ffi.h","ffitarget.h","fficonfig.h"]},libheif:Js,libiconv:_s,"libiconv-win":{source:"libiconv-win","static-libs-windows":["libiconv.lib","libiconv_a.lib"]},libjpeg:et,libjxl:it,liblz4:st,libmaxminddb:tt,libmemcached:lt,libpng:nt,librabbitmq:ot,librdkafka:at,libsodium:dt,libssh2:pt,libtiff:ut,libunistring:ct,liburing:rt,libuuid:bt,libuv:wt,libwebp:gt,libxml2:xt,libxslt:mt,libyaml:ht,libzip:yt,mimalloc:vt,ncurses:ft,"net-snmp":{source:"net-snmp","pkg-configs":["netsnmp","netsnmp-agent"],"lib-depends":["openssl","zlib"]},nghttp2:zt,nghttp3:kt,ngtcp2:St,onig:Dt,openssl:Bt,postgresql:Ct,"postgresql-win":{source:"postgresql-win","static-libs":["libpq.lib","libpgport.lib","libpgcommon.lib"]},pthreads4w:qt,qdbm:Et,re2c:Wt,readline:$t,snappy:Pt,sqlite:It,tidy:Lt,unixodbc:Ut,watcher:jt,xz:At,zlib:Nt,zstd:Ot};function j(i,o,d,u){return i.os==="linux"?i[o][d][u+"-linux"]??i[o][d][u+"-unix"]??i[o][d][u]??[]:i.os==="macos"?i[o][d][u+"-macos"]??i[o][d][u+"-unix"]??i[o][d][u]??[]:i.os==="windows"?i[o][d][u+"-windows"]??i[o][d][u]??[]:[]}function pe(i,o){return j(i,"ext",o,"ext-depends")}function Tt(i,o){return j(i,"ext",o,"ext-suggests")}function Mt(i,o){return j(i,"ext",o,"lib-depends")}function Gt(i,o){return j(i,"ext",o,"lib-suggests")}function ue(i,o){return j(i,"lib",o,"lib-depends")}function Xt(i,o){return j(i,"lib",o,"lib-suggests")}function Ht(i,o){const d=[],u=new Set,p=[];o.forEach(D=>{u.has(D)||Zt(i,D,u,d)});const h=[];return d.forEach(D=>{o.indexOf(D)===-1&&p.push(D),[...Mt(i,D),...Gt(i,D)].forEach(y=>{h.indexOf(y)===-1&&h.push(y)})}),{exts:d,libs:Rt(i,h),notIncludedExts:p}}function Rt(i,o){const d=[],u=new Set;return o.forEach(p=>{u.has(p)||(console.log("before visited"),console.log(u),Ft(i,p,u,d),console.log("after visited"),console.log(u))}),d}function Ft(i,o,d,u){if(d.has(o))return;d.add(o),[...ue(i,o),...Xt(i,o)].forEach(h=>{ce(i,h,d,u)}),u.push(o)}function ce(i,o,d,u){d.has(o)||(d.add(o),ue(i,o).forEach(p=>{ce(i,p,d,u)}),u.push(o))}function re(i,o,d,u){d.has(d)||(d.add(o),pe(i,o).forEach(p=>{re(i,p,d,u)}),u.push(o))}function Zt(i,o,d,u){if(d.has(o))return;d.add(o),[...pe(i,o),...Tt(i,o)].forEach(h=>{re(i,h,d,u)}),u.push(o)}const Qt={class:"option-line"},Kt=["id","value","disabled"],Yt=["for"],Jt={class:"option-line"},_t=["disabled"],el={class:"box"},il=["placeholder"],sl=["id","value","disabled"],tl=["for"],ll={style:{color:"orangered","font-weight":"bolder"}},nl={class:"details custom-block",open:""},ol={class:"box"},al=["id","value","disabled"],dl=["for"],pl={class:"tip custom-block"},ul={class:"box"},cl=["id","value"],rl=["for"],bl={key:2,class:"warning custom-block"},wl={key:3,class:"warning custom-block"},gl={value:"native"},xl={value:"spc"},ml={key:0,value:"docker"},hl=["value"],yl={for:"debug-yes"},vl={for:"debug-no"},fl={for:"zts-yes"},zl={for:"zts-no"},kl={for:"show-download-yes"},Sl={for:"show-download-no"},Dl={for:"pre-built-yes"},Bl={for:"pre-built-no"},Cl={key:0},ql={for:"upx-yes"},El={for:"upx-no"},Wl=["placeholder"],$l={key:4,class:"command-container"},Pl={key:0,class:"command-preview"},Il={class:"command-content"},Ll={key:1},Ul={class:"warning custom-block"},jl={key:5,class:"command-container"},Al={class:"command-preview"},Nl={class:"command-content"},Ol={key:6,class:"command-container"},Vl={class:"command-preview"},Tl={class:"command-content"},Ml={key:7,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"},Kl={class:"command-content"},Yl={class:"command-container"},Jl={class:"command-preview pre"},_l={class:"command-content"},en={name:"CliGenerator"},sn=fe({...en,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"],u=["8.0","8.1","8.2","8.3","8.4","8.5"],p=w(vs),h=w(Vt),D=w([]),C=w(""),y=w([]),q=w([]),H=w([]),M=w([]),z=w(["cli"]),G=w("spc"),L=w("8.4"),r=w("linux"),X=w("x86_64"),B=w(0),U=w(0),A=w(1),$=w(1),E=w(0),R=w(""),ne=w("--build-cli"),v=w({spcDownload:!1,downloadExt:!1,downloadAll:!1,downloadPkg:!1,build:!1,craft:!1,doctor:!1}),be=[{os:"linux",label:"Linux",disabled:!1},{os:"macos",label:"macOS",disabled:!1},{os:"windows",label:"Windows",disabled:!1}],oe=k(()=>Object.entries(p.value).filter(([a])=>ge(a,r.value)).map(([a])=>a)),F=k(()=>y.value.join(",")),Z=k(()=>{const a=q.value.filter(t=>M.value.indexOf(t)===-1);return a.length>0?` --with-libs="${a.join(",")}"`:""}),N=k(()=>{switch(G.value){case"native":return"bin/spc";case"spc":return r.value==="windows"?".\\spc.exe":"./spc";case"docker":return"bin/spc-alpine-docker";default:return""}}),Q=k(()=>r.value==="windows"?"":`curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-${r.value}-${X.value}.tar.gz && tar -zxvf spc.tgz && rm spc.tgz`),we=k(()=>{const t=R.value.split(`
|
||
`).filter(s=>s.indexOf("=")>=1);return t.length>0?" "+t.map(s=>`-I "${s}"`).join(" "):""}),K=k(()=>`${N.value} download --all --with-php=${L.value}${$.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),Y=k(()=>`${N.value} download --with-php=${L.value} --for-extensions "${F.value}"${$.value?" --prefer-pre-built":""}${B.value?" --debug":""}`),J=k(()=>`${N.value} install-pkg upx${B.value?" --debug":""}`),_=k(()=>`${N.value} doctor --auto-fix${B.value?" --debug":""}`),ee=k(()=>`${N.value} build ${ne.value} "${F.value}"${Z.value}${B.value?" --debug":""}${U.value?" --enable-zts":""}${E.value?" --with-upx-pack":""}${we.value}`),ie=k(()=>{let a=`php-version: ${L.value}
|
||
`;return a+=`extensions: "${F.value}"
|
||
`,z.value.join(",")==="all"?a+="sapi: "+["cli","fpm","micro","embed","frankenphp"].join(",")+`
|
||
`:a+=`sapi: ${z.value.join(",")}
|
||
`,Z.value&&(a+=`libs: ${Z.value.replace('--with-libs="',"").replace('"',"").trim()}
|
||
`),B.value&&(a+=`debug: true
|
||
`),$.value&&(a+=`download-options:
|
||
`,a+=` prefer-pre-built: true
|
||
`),a+="{{position_hold}}",E.value&&(a+=` with-upx-pack: true
|
||
`),U.value&&(a+=` enable-zts: true
|
||
`),a.endsWith("{{position_hold}}")?a=a.replace("{{position_hold}}",""):a=a.replace("{{position_hold}}",`build-options:
|
||
`),a}),ge=(a,t)=>{const s=o.get(t),b=p.value[a]?.support?.[s]??"yes";return b==="yes"||b==="partial"},xe=()=>{y.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"]},me=()=>{y.value=[...oe.value]},he=a=>{if(a.target.value==="all")z.value=["all"];else{const s=z.value.indexOf("all");s!==-1&&z.value.splice(s,1)}ne.value=z.value.map(s=>`--build-${s}`).join(" ")},se=(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""}},P=async a=>{try{await navigator.clipboard.writeText(a);const s={[Q.value]:"spcDownload",[Y.value]:"downloadExt",[K.value]:"downloadAll",[J.value]:"downloadPkg",[_.value]:"doctor",[ee.value]:"build",[ie.value]:"craft"}[a];s&&(v.value[s]=!0,setTimeout(()=>{v.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)}},ye=a=>{const t=new Set,s=b=>{let c=[];r.value==="linux"?c=p.value[b]?.["ext-depends-linux"]??p.value[b]?.["ext-depends-unix"]??p.value[b]?.["ext-depends"]??[]:r.value==="macos"?c=p.value[b]?.["ext-depends-macos"]??p.value[b]?.["ext-depends-unix"]??p.value[b]?.["ext-depends"]??[]:r.value==="windows"&&(c=p.value[b]?.["ext-depends-windows"]??p.value[b]?.["ext-depends"]??[]),c.length!==0&&c.forEach(f=>{t.add(f),s(f)})};return a.forEach(s),Array.from(t)},ve=a=>{const t=new Set,s=c=>{let f=[];r.value==="linux"?f=h.value[c]?.["lib-depends-linux"]??h.value[c]?.["lib-depends-unix"]??h.value[c]?.["lib-depends"]??[]:r.value==="macos"?f=h.value[c]?.["lib-depends-macos"]??h.value[c]?.["lib-depends-unix"]??h.value[c]?.["lib-depends"]??[]:r.value==="windows"&&(f=h.value[c]?.["lib-depends-windows"]??h.value[c]?.["lib-depends"]??[]),f.length!==0&&f.forEach(O=>{t.add(O),s(O)})},b=c=>{let f=[];r.value==="linux"?f=p.value[c]?.["lib-depends-linux"]??p.value[c]?.["lib-depends-unix"]??p.value[c]?.["lib-depends"]??[]:r.value==="macos"?f=p.value[c]?.["lib-depends-macos"]??p.value[c]?.["lib-depends-unix"]??p.value[c]?.["lib-depends"]??[]:r.value==="windows"&&(f=p.value[c]?.["lib-depends-windows"]??p.value[c]?.["lib-depends"]??[]),f.length!==0&&f.forEach(O=>{t.add(O),s(O)})};return a.forEach(b),Array.from(t)};ae(r,()=>{r.value==="windows"&&(X.value="x86_64"),y.value=[],E.value=0}),ae(y,a=>{H.value=ye(a),H.value.forEach(s=>{y.value.indexOf(s)===-1&&y.value.push(s)}),y.value.sort();const t=Ht({ext:p.value,lib:h.value,os:r.value},y.value);D.value=t.libs.sort(),q.value=[],M.value=ve(t.exts),M.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",Qt,[(x(),g(V,null,T(be,(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,Kt),[[S,r.value]]),e("label",{for:"os-"+s.os},l(s.label),9,Yt)])),64))]),e("div",Jt,[m(e("select",{"onUpdate:modelValue":t[1]||(t[1]=s=>X.value=s)},[t[27]||(t[27]=e("option",{value:"x86_64"},"x86_64",-1)),e("option",{value:"aarch64",disabled:r.value==="windows"},"aarch64",8,_t)],512),[[te,X.value]])]),e("h2",null,l(n[i.lang].selectExt)+l(y.value.length>0?" ("+y.value.length+")":""),1),e("div",el,[m(e("input",{class:"input","onUpdate:modelValue":t[2]||(t[2]=s=>C.value=s),placeholder:n[i.lang].searchPlaceholder},null,8,il),[[de,C.value]]),t[28]||(t[28]=e("br",null,null,-1)),(x(!0),g(V,null,T(oe.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=>y.value=b),disabled:H.value.indexOf(s)!==-1},null,8,sl),[[le,y.value]]),e("label",{for:s},[e("span",null,l(se(s,0)),1),e("span",ll,l(se(s,1)),1),e("span",null,l(se(s,2)),1)],8,tl)])]))),128))]),r.value!=="windows"?(x(),g("div",{key:0,class:"my-btn",onClick:xe},l(n[i.lang].selectCommon),1)):W("",!0),r.value!=="windows"?(x(),g("div",{key:1,class:"my-btn",onClick:me},l(n[i.lang].selectAll),1)):W("",!0),e("div",{class:"my-btn",onClick:t[4]||(t[4]=s=>y.value=[])},l(n[i.lang].selectNone),1),e("details",nl,[e("summary",null,l(n[i.lang].buildLibs)+l(q.value.length>0?" ("+q.value.length+")":""),1),e("div",ol,[(x(!0),g(V,null,T(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:M.value.indexOf(s)!==-1},null,8,al),[[le,q.value]]),e("label",{for:b},l(s),9,dl)]))),128))])]),e("div",pl,[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",ul,[(x(),g(V,null,T(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:he},null,40,cl),[[le,z.value]]),e("label",{for:"build_"+s},l(s),9,rl)])),64))]),L.value==="7.4"&&(z.value.indexOf("micro")!==-1||z.value.indexOf("all")!==-1)?(x(),g("div",bl,[t[30]||(t[30]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].microUnavailable),1)])):W("",!0),r.value==="windows"&&(z.value.indexOf("fpm")!==-1||z.value.indexOf("embed")!==-1||z.value.indexOf("frankenphp")!==-1)?(x(),g("div",wl,[t[31]||(t[31]=e("p",{class:"custom-block-title"},"WARNING",-1)),e("p",null,l(n[i.lang].windowsSAPIUnavailable),1)])):W("",!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=>G.value=s)},[e("option",gl,l(n[i.lang].buildEnvNative),1),e("option",xl,l(n[i.lang].buildEnvSpc),1),r.value!=="windows"?(x(),g("option",ml,l(n[i.lang].buildEnvDocker),1)):W("",!0)],512),[[te,G.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=>L.value=s)},[(x(),g(V,null,T(u,s=>e("option",{key:s,value:s},l(s),9,hl)),64))],512),[[te,L.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",yl,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",vl,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=>U.value=s)},null,512),[[S,U.value]]),e("label",fl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"zts-no",value:0,"onUpdate:modelValue":t[12]||(t[12]=s=>U.value=s)},null,512),[[S,U.value]]),e("label",zl,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=>A.value=s)},null,512),[[S,A.value]]),e("label",kl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"show-download-no",value:0,"onUpdate:modelValue":t[14]||(t[14]=s=>A.value=s)},null,512),[[S,A.value]]),e("label",Sl,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=>$.value=s)},null,512),[[S,$.value]]),e("label",Dl,l(n[i.lang].yes),1),m(e("input",{type:"radio",id:"pre-built-no",value:0,"onUpdate:modelValue":t[16]||(t[16]=s=>$.value=s)},null,512),[[S,$.value]]),e("label",Bl,l(n[i.lang].no),1)])]),r.value!=="macos"?(x(),g("tr",Cl,[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",ql,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",El,l(n[i.lang].no),1)])])):W("",!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=>R.value=s),rows:"5"},null,8,Wl),[[de,R.value]]),e("h2",null,l(n[i.lang].resultShow),1),G.value==="spc"?(x(),g("div",$l,[e("b",null,l(n[i.lang].downloadSPCBinaryCommand),1),r.value!=="windows"?(x(),g("div",Pl,[e("div",Il,l(Q.value),1),e("button",{class:I(["copy-btn",{copied:v.value.spcDownload}]),onClick:t[20]||(t[20]=s=>P(Q.value))},l(v.value.spcDownload?n[i.lang].copied:n[i.lang].copy),3)])):(x(),g("div",Ll,[e("div",Ul,[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))])]))])):W("",!0),A.value?(x(),g("div",jl,[e("b",null,l(n[i.lang].downloadExtOnlyCommand),1),e("div",Al,[e("div",Nl,l(Y.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadExt}]),onClick:t[21]||(t[21]=s=>P(Y.value))},l(v.value.downloadExt?n[i.lang].copied:n[i.lang].copy),3)])])):(x(),g("div",Ol,[e("b",null,l(n[i.lang].downloadAllCommand),1),e("div",Vl,[e("div",Tl,l(K.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadAll}]),onClick:t[22]||(t[22]=s=>P(K.value))},l(v.value.downloadAll?n[i.lang].copied:n[i.lang].copy),3)])])),E.value?(x(),g("div",Ml,[e("b",null,l(n[i.lang].downloadUPXCommand),1),e("div",Gl,[e("div",Xl,l(J.value),1),e("button",{class:I(["copy-btn",{copied:v.value.downloadPkg}]),onClick:t[23]||(t[23]=s=>P(J.value))},l(v.value.downloadPkg?n[i.lang].copied:n[i.lang].copy),3)])])):W("",!0),e("div",Hl,[e("b",null,l(n[i.lang].doctorCommand),1),e("div",Rl,[e("div",Fl,l(_.value),1),e("button",{class:I(["copy-btn",{copied:v.value.doctor}]),onClick:t[24]||(t[24]=s=>P(_.value))},l(v.value.doctor?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",Zl,[e("b",null,l(n[i.lang].compileCommand),1),e("div",Ql,[e("div",Kl,l(ee.value),1),e("button",{class:I(["copy-btn",{copied:v.value.build}]),onClick:t[25]||(t[25]=s=>P(ee.value))},l(v.value.build?n[i.lang].copied:n[i.lang].copy),3)])]),e("div",Yl,[t[34]||(t[34]=e("b",null,"craft.yml",-1)),e("div",Jl,[e("div",_l,l(ie.value),1),e("button",{class:I(["copy-btn",{copied:v.value.craft}]),onClick:t[26]||(t[26]=s=>P(ie.value))},l(v.value.craft?n[i.lang].copied:n[i.lang].copy),3)])])]))}}),ln=ze(sn,[["__scopeId","data-v-16f54071"]]);export{ln as C};
|