!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(t,o,i,u){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return n(f,"_invoke",function(t,n,o){var i,u,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function v(t,n){for(u=t,c=n,r=0;!s&&l&&!o&&r<f.length;r++){var o,i=f[r],v=p.p,y=i[2];t>3?(o=y===n)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=t<2&&v<i[1])?(u=0,p.v=n,p.n=i[1]):v<y&&(o=t<3||i[0]>n||n>y)&&(i[4]=t,i[5]=n,p.n=y,u=0))}if(o||t>1)return a;throw s=!0,n}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,y),u=f,c=y;(r=u<2?e:c)||!s;){i||(u?u<3?(u>1&&(p.n=-1),v(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(s=p.n<0)?c:t.call(n,p))!==a)break}catch(r){i=e,u=1,c=r}finally{l=1}}return{value:r,done:s}}}(t,i,u),!0),f}var a={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),v=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=s,n(v,"constructor",s),n(s,"constructor",f),f.displayName="GeneratorFunction",n(s,u,"GeneratorFunction"),n(v),n(v,u,"Generator"),n(v,i,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:y}})()}function n(t,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}n=function(t,e,r,o){function u(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?i?i(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(u("next",0),u("throw",1),u("return",2))},n(t,e,r,o)}function e(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(n,r){"use strict";var o,i,u,c,a,l,f,s,p,v,y,d,h,b,m,P,g,_,j,w,O,H,x;return{setters:[function(t){o=t.P,i=t.$},function(t){u=t.c,c=t.r,a=t.q,l=t.H,f=t.I,s=t.y,p=t.v,v=t.x,y=t.z,d=t.e,h=t.B,b=t.F,m=t.b0,P=t.Q,g=t.C,_=t.al,j=t.G,w=t.N,O=t.ak},function(t){H=t.getCliVersion,x=t.setCliVersion},null],execute:function(){var r={class:"p-[20px]"};n("default",u({__name:"php-command",setup:function(n){var u=c(),k=c([{content:"此处可设置命令行运行php时使用的PHP版本"},{content:"安装新的PHP版本后此处需要重新设置"},{content:"其它PHP版本在命令行可通过php+版本的方式运行，如：php74,php80"},{content:"PHP-CLI:一种运行 PHP 脚本的方式，它允许您在命令行终端中直接执行PHP脚本文件，请根据您的需求选择合适的版本。"}]),G=c(),S=c(!1),C=function(){var n,r=(n=t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:o({loading:S,request:H(),data:{"select.version":[String,G],versions:[Array,u]}});case 1:return t.a(2)}},n)}),function(){var t=this,r=arguments;return new Promise(function(o,i){var u=n.apply(t,r);function c(t){e(u,o,i,c,a,"next",t)}function a(t){e(u,o,i,c,a,"throw",t)}c(void 0)})});return function(){return r.apply(this,arguments)}}(),T=function(){o({loading:"正在设置版本，请稍后...",request:x({php_version:G.value}),message:!0})};return a(function(){C()}),function(t,n){var e=O,o=_,c=j,a=i,H=l("bt-loading");return f((p(),v("div",r,[n[2]||(n[2]=y("span",{class:"mr-[12px]"},"PHP-CLI版本",-1)),d(o,{modelValue:s(G),"onUpdate:modelValue":n[0]||(n[0]=function(t){return P(G)?G.value=t:null}),class:"!w-[32rem]",placeholder:"请选择版本"},{default:h(function(){return[(p(!0),v(b,null,m(s(u),function(t,n){return p(),w(e,{key:n,label:t.name,value:t.version},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),d(c,{type:"primary",onClick:T,class:"!my-[20px] !block"},{default:h(function(){return n[1]||(n[1]=[g("保存",-1)])}),_:1,__:[1]}),d(a,{options:s(k)},null,8,["options"])])),[[H,s(S)]])}}}))}}})}();
