@expo/launching 0.0.0-20260902-5c2bb406 → 0.0.0-20260902-caead00a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -317,7 +317,7 @@ See the package documentation on how to correctly configure the plugin.`,"INVALI
|
|
|
317
317
|
`)}}};is.prototype.writeInlineObject=function(e,t,r){var n=[],s=this,o=function(a,u,l){var c,f,p;if(u)n.push(Ku("%s /* %s */ = {",a,u));else n.push(Ku("%s = {",a));for(c in l){if(Kb.test(c))continue;if(f=zb(c,l),p=l[c],cx(p)){n.push(Ku("%s = (",c));for(var d=0;d<p.length;d++)n.push(Ku("%s, ",p[d]));n.push("); ")}else if(d1(p))o(c,f,p);else if(s.omitEmptyValues&&(p===void 0||p===null))continue;else if(f)n.push(Ku("%s = %s /* %s */; ",c,p,f));else n.push(Ku("%s = %s; ",c,p))}n.push("}; ")};o(e,t,r),this.write(`%s
|
|
318
318
|
`,n.join("").trim())};s7.exports=is});var px=P(function(n5e,c7){var zf=require("path"),g2e=require("util"),a7='"<group>"',y2e="BUILT_PRODUCTS_DIR",b2e="Resources",l7="unknown",Yb={a:"archive.ar",app:"wrapper.application",appex:"wrapper.app-extension",bundle:"wrapper.plug-in",dylib:"compiled.mach-o.dylib",framework:"wrapper.framework",h:"sourcecode.c.h",m:"sourcecode.c.objc",markdown:"text",mdimporter:"wrapper.cfbundle",octest:"wrapper.cfbundle",pch:"sourcecode.c.h",plist:"text.plist.xml",sh:"text.script.sh",swift:"sourcecode.swift",tbd:"sourcecode.text-based-dylib-definition",xcassets:"folder.assetcatalog",xcconfig:"text.xcconfig",xcdatamodel:"wrapper.xcdatamodel",xcodeproj:"wrapper.pb-project",xctest:"wrapper.cfbundle",xib:"file.xib",strings:"text.plist.strings"},u7={"archive.ar":"Frameworks","compiled.mach-o.dylib":"Frameworks","sourcecode.text-based-dylib-definition":"Frameworks","wrapper.framework":"Frameworks","embedded.framework":"Embed Frameworks","sourcecode.c.h":"Resources","sourcecode.c.objc":"Sources","sourcecode.swift":"Sources"},w2e={"compiled.mach-o.dylib":"usr/lib/","sourcecode.text-based-dylib-definition":"usr/lib/","wrapper.framework":"System/Library/Frameworks/"},T2e={"compiled.mach-o.dylib":"SDKROOT","sourcecode.text-based-dylib-definition":"SDKROOT","wrapper.framework":"SDKROOT"},v2e={"sourcecode.c.h":4,"sourcecode.c.h":4,"sourcecode.c.objc":4,"sourcecode.swift":4,text:4,"text.plist.xml":4,"text.script.sh":4,"text.xcconfig":4,"text.plist.strings":4};function zu(e){return e==null?"":e.replace(/(^")|("$)/g,"")}function E2e(e){var t=zf.extname(e).substring(1),r=Yb[zu(t)];if(!r)return l7;return r}function A2e(e){var t=e.lastKnownFileType&&e.lastKnownFileType!=l7?e.lastKnownFileType:e.explicitFileType;for(var r in Yb)if(Yb.hasOwnProperty(zu(r))){if(Yb[zu(r)]===zu(t))return r}}function D2e(e){var t=e.lastKnownFileType||e.explicitFileType,r=v2e[zu(t)];if(r)return r}function C2e(e,t){var r=zf.extname(e.basename).substring(1),n=e.lastKnownFileType||e.explicitFileType,s=u7[zu(n)];if(r==="xcdatamodeld")return"Sources";if(t.customFramework&&t.embed)return u7["embedded.framework"];if(!s)return b2e;return s}function _2e(e){var t=e.lastKnownFileType||e.explicitFileType,r=T2e[zu(t)];if(e.explicitFileType)return y2e;if(e.customFramework)return a7;if(!r)return a7;return r}function x2e(e,t){var r=e.lastKnownFileType||e.explicitFileType,n=w2e[zu(r)];if(e.customFramework)return t;if(n)return zf.join(n,zf.basename(t));return t}function S2e(e,r){var r=r||{};if(this.basename=zf.basename(e),this.lastKnownFileType=r.lastKnownFileType||E2e(e),this.group=C2e(this,r),r.customFramework==!0)this.customFramework=!0,this.dirname=zf.dirname(e).replace(/\\/g,"/");if(this.path=x2e(this,e).replace(/\\/g,"/"),this.fileEncoding=this.defaultEncoding=r.defaultEncoding||D2e(this),r.explicitFileType)this.explicitFileType=r.explicitFileType,this.basename=this.basename+"."+A2e(this),delete this.path,delete this.lastKnownFileType,delete this.group,delete this.defaultEncoding;if(this.sourceTree=r.sourceTree||_2e(this),this.includeInIndex=0,r.weak&&r.weak===!0)this.settings={ATTRIBUTES:["Weak"]};if(r.compilerFlags){if(!this.settings)this.settings={};this.settings.COMPILER_FLAGS=g2e.format('"%s"',r.compilerFlags)}if(r.embed&&r.sign){if(!this.settings)this.settings={};if(!this.settings.ATTRIBUTES)this.settings.ATTRIBUTES=[];this.settings.ATTRIBUTES.push("CodeSignOnCopy")}}c7.exports=S2e});var p7=P(function(i5e,f7){function P2e(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function ac(e,t,r,n){if(this.message=e,this.expected=t,this.found=r,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,ac)}P2e(ac,Error);ac.buildMessage=function(e,t){var r={literal:function(c){return'"'+s(c.text)+'"'},class:function(c){var f="",p;for(p=0;p<c.parts.length;p++)f+=c.parts[p]instanceof Array?o(c.parts[p][0])+"-"+o(c.parts[p][1]):o(c.parts[p]);return"["+(c.inverted?"^":"")+f+"]"},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function n(c){return c.charCodeAt(0).toString(16).toUpperCase()}function s(c){return c.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(f){return"\\x0"+n(f)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(f){return"\\x"+n(f)})}function o(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(f){return"\\x0"+n(f)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(f){return"\\x"+n(f)})}function a(c){return r[c.type](c)}function u(c){var f=Array(c.length),p,d;for(p=0;p<c.length;p++)f[p]=a(c[p]);if(f.sort(),f.length>0){for(p=1,d=1;p<f.length;p++)if(f[p-1]!==f[p])f[d]=f[p],d++;f.length=d}switch(f.length){case 1:return f[0];case 2:return f[0]+" or "+f[1];default:return f.slice(0,-1).join(", ")+", or "+f[f.length-1]}}function l(c){return c?'"'+s(c)+'"':"end of input"}return"Expected "+u(e)+" but "+l(t)+" found."};function k2e(e,t){t=t!==void 0?t:{};var r={},n={Project:qc},s=qc,o=function(O,j){var ee=Object.create(null);if(ee.project=j,O)ee.headComment=O;return ee},a="{",u=sr("{",!1),l="}",c=sr("}",!1),f=function(O){return O},p=function(){return Object.create(null)},d=function(O){var j=O[0][0];for(var ee=1;ee<O.length;ee++){var _e=O[ee][0];j=Object.assign(j,_e)}return j},m="=",b=sr("=",!1),w=";",E=sr(";",!1),D=function(O,j){var ee=Object.create(null);return ee[O]=j,ee},x=function(O,j){var ee=Object.create(null),_e=O.id+"_comment";return ee[O.id]=j,ee[_e]=O[_e],ee},g=function(O,j){var ee=Object.create(null);return ee[O]=j.value,ee[O+"_comment"]=j.comment,ee},y=function(O,j){var ee=Object.create(null);return ee.id=O,ee[O+"_comment"]=j.trim(),ee},h=function(O,j){var ee=Object.create(null);return ee.comment=j.trim(),ee.value=O.trim(),ee},T=/^[^*]/,S=on(["*"],!0,!1),C=function(O){return O.join("")},A="/*",_=sr("/*",!1),k="*/",F=sr("*/",!1),M=function(O,j){var ee=Object.create(null);return ee[O.name]=j,ee},X="/* Begin ",re=sr("/* Begin ",!1),U=" section */",Y=sr(" section */",!1),K=function(O){return{name:O}},Z="/* End ",Q=sr("/* End ",!1),Ae="(",je=sr("(",!1),de=")",Fe=sr(")",!1),et=function(O){return O},B=function(){return[]},I=function(O,j){if(j)return j.unshift(O),j;else return[O]},L=function(O){return O},V=function(O,j){var ee=Object.create(null);return ee.value=O.trim(),ee.comment=j.trim(),ee},Be=",",Ze=sr(",",!1),ie=/^[A-Za-z0-9_.]/,le=on([["A","Z"],["a","z"],["0","9"],"_","."],!1,!1),Ye=function(O){return O.join("")},Je=".",ye=sr(".",!1),Te=function(O){return O.join("")},Ne=function(O){return parseInt(O.join(""),10)},qe=function(O){return'"'+O+'"'},ct=function(O){return O.join("")},tt=xl(),ft=function(O){return O},Ke="\\",xt=sr("\\",!1),nn=function(){return"\\\""},Xe=function(O){return O.join("")},_t=/^[^;,\n]/,v=on([";",",",`
|
|
319
319
|
`],!0,!1),te="//",fe=sr("//",!1),Ie=function(O){return O},ge=function(O){return O.join("")},Ge=/^[0-9]/,Le=on([["0","9"]],!1,!1),W=/^[A-Za-z]/,se=on([["A","Z"],["a","z"]],!1,!1),he='"',xe=sr('"',!1),Pe=xo("whitespace"),He=/^[\t ]/,N=on(["\t"," "],!1,!1),ae=/^[\n\r]/,me=on([`
|
|
320
|
-
`,"\r"],!1,!1),R=0,ce=0,ke=[{line:1,column:1}],We=0,Ve=[],De=0,gt;if("startRule"in t){if(!(t.startRule in n))throw Error(`Can't start parsing from rule "`+t.startRule+'".');s=n[t.startRule]}function Vt(){return e.substring(ce,R)}function ir(){return vi(ce,R)}function Wt(O,j){throw j=j!==void 0?j:vi(ce,R),Pa([xo(O)],e.substring(ce,R),j)}function sn(O,j){throw j=j!==void 0?j:vi(ce,R),yu(O,j)}function sr(O,j){return{type:"literal",text:O,ignoreCase:j}}function on(O,j,ee){return{type:"class",parts:O,inverted:j,ignoreCase:ee}}function xl(){return{type:"any"}}function gu(){return{type:"end"}}function xo(O){return{type:"other",description:O}}function Ti(O){var j=ke[O],ee;if(j)return j;else{ee=O-1;while(!ke[ee])ee--;j=ke[ee],j={line:j.line,column:j.column};while(ee<O){if(e.charCodeAt(ee)===10)j.line++,j.column=1;else j.column++;ee++}return ke[O]=j,j}}function vi(O,j){var ee=Ti(O),_e=Ti(j);return{start:{offset:O,line:ee.line,column:ee.column},end:{offset:j,line:_e.line,column:_e.column}}}function kt(O){if(R<We)return;if(R>We)We=R,Ve=[];Ve.push(O)}function yu(O,j){return new ac(O,null,null,j)}function Pa(O,j,ee){return new ac(ac.buildMessage(O,j),O,j,ee)}function qc(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=sne(),j===r)j=null;if(j!==r){if(ee=Xc(),ee===r)ee=null;if(ee!==r)if(_e=Rr(),_e!==r)if(yt=$c(),yt!==r)if(br=Sl(),br!==r)if(Vi=Rr(),Vi!==r)ce=O,j=o(j,yt),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function $c(){var O,j,ee,_e;if(O=R,e.charCodeAt(R)===123)j=a,R++;else if(j=r,De===0)kt(u);if(j!==r){if(ee=Gc(),ee===r)ee=Uc();if(ee!==r){if(e.charCodeAt(R)===125)_e=l,R++;else if(_e=r,De===0)kt(c);if(_e!==r)ce=O,j=f(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function Uc(){var O,j;if(O=R,j=Rr(),j!==r)ce=O,j=p();return O=j,O}function Gc(){var O,j,ee,_e,yt,br;if(O=R,j=Rr(),j!==r){if(ee=[],_e=R,yt=sg(),yt===r)yt=ag();if(yt!==r)if(br=Rr(),br!==r)yt=[yt,br],_e=yt;else R=_e,_e=r;else R=_e,_e=r;if(_e!==r)while(_e!==r){if(ee.push(_e),_e=R,yt=sg(),yt===r)yt=ag();if(yt!==r)if(br=Rr(),br!==r)yt=[yt,br],_e=yt;else R=_e,_e=r;else R=_e,_e=r}else ee=r;if(ee!==r)ce=O,j=d(ee),O=j;else R=O,O=r}else R=O,O=r;return O}function sg(){var O=Hv();if(O===r)O=Kv();return O}function Hv(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=dh(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=D(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Kv(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=zv(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=dh(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=x(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;if(O===r)if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=Yv(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=g(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function zv(){var O,j,ee,_e;if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)ce=O,j=y(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function Yv(){var O,j,ee,_e;if(O=R,j=dh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)ce=O,j=h(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function Xc(){var O,j,ee,_e;if(O=R,j=og(),j!==r){if(ee=[],T.test(e.charAt(R)))_e=e.charAt(R),R++;else if(_e=r,De===0)kt(S);if(_e!==r){while(_e!==r)if(ee.push(_e),T.test(e.charAt(R)))_e=e.charAt(R),R++;else if(_e=r,De===0)kt(S)}else ee=r;if(ee!==r)if(_e=Jv(),_e!==r)ce=O,j=C(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function og(){var O;if(e.substr(R,2)===A)O=A,R+=2;else if(O=r,De===0)kt(_);return O}function Jv(){var O;if(e.substr(R,2)===k)O=k,R+=2;else if(O=r,De===0)kt(F);return O}function ag(){var O,j,ee,_e,yt,br;if(O=R,j=Qv(),j!==r)if(ee=Rr(),ee!==r){if(_e=Gc(),_e===r)_e=Uc();if(_e!==r)if(yt=Rr(),yt!==r)if(br=Zv(),br!==r)ce=O,j=M(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Qv(){var O,j,ee,_e,yt;if(O=R,e.substr(R,9)===X)j=X,R+=9;else if(j=r,De===0)kt(re);if(j!==r)if(ee=hh(),ee!==r){if(e.substr(R,11)===U)_e=U,R+=11;else if(_e=r,De===0)kt(Y);if(_e!==r)if(yt=Sl(),yt!==r)ce=O,j=K(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Zv(){var O,j,ee,_e,yt;if(O=R,e.substr(R,7)===Z)j=Z,R+=7;else if(j=r,De===0)kt(Q);if(j!==r)if(ee=hh(),ee!==r){if(e.substr(R,11)===U)_e=U,R+=11;else if(_e=r,De===0)kt(Y);if(_e!==r)if(yt=Sl(),yt!==r)ce=O,j=K(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function e2(){var O,j,ee,_e;if(O=R,e.charCodeAt(R)===40)j=Ae,R++;else if(j=r,De===0)kt(je);if(j!==r){if(ee=ug(),ee===r)ee=t2();if(ee!==r){if(e.charCodeAt(R)===41)_e=de,R++;else if(_e=r,De===0)kt(Fe);if(_e!==r)ce=O,j=et(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function t2(){var O,j;if(O=R,j=Rr(),j!==r)ce=O,j=B();return O=j,O}function ug(){var O,j,ee,_e,yt,br;if(O=R,j=Rr(),j!==r)if(ee=r2(),ee!==r)if(_e=Rr(),_e!==r){if(yt=ug(),yt===r)yt=null;if(yt!==r)if(br=Rr(),br!==r)ce=O,j=I(ee,yt),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function r2(){var O=n2();if(O===r)O=Qre();return O}function n2(){var O,j,ee;if(O=R,j=dh(),j!==r)if(ee=tI(),ee!==r)ce=O,j=L(j),O=j;else R=O,O=r;else R=O,O=r;return O}function Qre(){var O,j,ee,_e,yt;if(O=R,j=dh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)if(yt=tI(),yt!==r)ce=O,j=V(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function tI(){var O,j,ee,_e;if(e.charCodeAt(R)===44)O=Be,R++;else if(O=r,De===0)kt(Ze);if(O===r)if(O=R,j=Rr(),j!==r){if(ee=R,De++,e.charCodeAt(R)===41)_e=de,R++;else if(_e=r,De===0)kt(Fe);if(De--,_e!==r)R=ee,ee=void 0;else ee=r;if(ee!==r)j=[j,ee],O=j;else R=O,O=r}else R=O,O=r;return O}function hh(){var O,j,ee;if(O=R,j=[],ie.test(e.charAt(R)))ee=e.charAt(R),R++;else if(ee=r,De===0)kt(le);if(ee!==r){while(ee!==r)if(j.push(ee),ie.test(e.charAt(R)))ee=e.charAt(R),R++;else if(ee=r,De===0)kt(le)}else j=r;if(j!==r)ce=O,j=Ye(j);if(O=j,O===r)O=rI();return O}function dh(){var O=$c();if(O===r){if(O=e2(),O===r){if(O=Zre(),O===r)O=tne()}}return O}function Zre(){var O=ene();if(O===r)O=i2();return O}function ene(){var O,j,ee,_e,yt;if(O=R,j=R,ee=i2(),ee!==r){if(e.charCodeAt(R)===46)_e=Je,R++;else if(_e=r,De===0)kt(ye);if(_e!==r)if(yt=i2(),yt!==r)ee=[ee,_e,yt],j=ee;else R=j,j=r;else R=j,j=r}else R=j,j=r;if(j!==r)ce=O,j=Te(j);return O=j,O}function i2(){var O,j,ee,_e,yt;if(O=R,j=R,De++,ee=ane(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(ee=[],_e=oI(),_e!==r)while(_e!==r)ee.push(_e),_e=oI();else ee=r;if(ee!==r){if(_e=R,De++,yt=sI(),De--,yt===r)_e=void 0;else R=_e,_e=r;if(_e!==r)ce=O,j=Ne(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function tne(){var O=rI();if(O===r)O=ine();return O}function rI(){var O,j,ee,_e;if(O=R,j=lg(),j!==r)if(ee=rne(),ee!==r)if(_e=lg(),_e!==r)ce=O,j=qe(ee),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function rne(){var O,j,ee;if(O=R,j=[],ee=nI(),ee!==r)while(ee!==r)j.push(ee),ee=nI();else j=r;if(j!==r)ce=O,j=ct(j);return O=j,O}function nI(){var O,j,ee;if(O=nne(),O===r){if(O=R,j=R,De++,ee=lg(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(e.length>R)ee=e.charAt(R),R++;else if(ee=r,De===0)kt(tt);if(ee!==r)ce=O,j=ft(ee),O=j;else R=O,O=r}else R=O,O=r}return O}function nne(){var O,j,ee;if(O=R,e.charCodeAt(R)===92)j=Ke,R++;else if(j=r,De===0)kt(xt);if(j!==r)if(ee=lg(),ee!==r)ce=O,j=nn(),O=j;else R=O,O=r;else R=O,O=r;return O}function ine(){var O,j,ee;if(O=R,j=[],ee=iI(),ee!==r)while(ee!==r)j.push(ee),ee=iI();else j=r;if(j!==r)ce=O,j=Xe(j);return O=j,O}function iI(){var O,j,ee,_e;if(O=R,j=R,De++,ee=og(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(ee=R,De++,_e=une(),De--,_e===r)ee=void 0;else R=ee,ee=r;if(ee!==r)if(_e=sI(),_e!==r)ce=O,j=ft(_e),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function sI(){var O;if(_t.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(v);return O}function sne(){var O,j,ee,_e,yt;if(O=R,e.substr(R,2)===te)j=te,R+=2;else if(j=r,De===0)kt(fe);if(j!==r)if(ee=Rr(),ee!==r)if(_e=one(),_e!==r)if(yt=Sl(),yt!==r)ce=O,j=Ie(_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function one(){var O,j,ee;O=R,j=[],ee=uI();while(ee!==r)j.push(ee),ee=uI();if(j!==r)ce=O,j=ge(j);return O=j,O}function oI(){var O;if(Ge.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(Le);return O}function ane(){var O;if(W.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(se);return O}function lg(){var O;if(e.charCodeAt(R)===34)O=he,R++;else if(O=r,De===0)kt(xe);return O}function Rr(){var O,j;De++,O=[],j=aI();while(j!==r)O.push(j),j=aI();if(De--,O===r){if(j=r,De===0)kt(Pe)}return O}function aI(){var O=Sl();if(O===r){if(He.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(N)}return O}function uI(){var O,j,ee;if(O=R,j=R,De++,ee=Sl(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r)if(ee=lne(),ee!==r)ce=O,j=ft(ee),O=j;else R=O,O=r;else R=O,O=r;return O}function une(){var O=Sl();if(O===r){if(e.charCodeAt(R)===59)O=w,R++;else if(O=r,De===0)kt(E)}return O}function Sl(){var O;if(ae.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(me);return O}function lne(){var O;if(e.length>R)O=e.charAt(R),R++;else if(O=r,De===0)kt(tt);return O}if(gt=s(),gt!==r&&R===e.length)return gt;else{if(gt!==r&&R<e.length)kt(gu());throw Pa(Ve,We<e.length?e.charAt(We):null,We<e.length?vi(We,We+1):vi(We,We))}}f7.exports={SyntaxError:ac,parse:k2e}});var d7=P(function(Jb,m1){var h7=Jb&&Jb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};(function(e){if(typeof m1==="object"&&typeof m1.exports==="object"){var t=e(require,Jb);if(t!==void 0)m1.exports=t}else if(typeof define==="function"&&define.amd)define(["require","exports","bplist-creator","bplist-parser","./parse","./readFile","./readFileSync","./stringify","./writeBinaryFile","./writeBinaryFileSync","./writeFile","./writeFileSync"],e)})(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=h7(e("bplist-creator")),n=h7(e("bplist-parser")),s=e("./parse"),o=e("./readFile"),a=e("./readFileSync"),u=e("./stringify"),l=e("./writeBinaryFile"),c=e("./writeBinaryFileSync"),f=e("./writeFile"),p=e("./writeFileSync"),d={bplistCreator:r.default,bplistParser:n.default,parse:s.parse,readFile:o.readFile,readFileSync:a.readFileSync,stringify:u.stringify,writeBinaryFile:l.writeBinaryFile,writeBinaryFileSync:c.writeBinaryFileSync,writeFile:f.writeFile,writeFileSync:p.writeFileSync};t.default=d,m1.exports=d})});var fx=P(function(s5e,v7){var __dirname="/home/expo/workingdir/build/node_modules/.bun/xcode@3.0.1/node_modules/xcode/lib",m7=require("util"),Pi=m7.format,O2e=require("events").EventEmitter,Ju=require("path"),I2e=r7(),N2e=require("child_process").fork,R2e=o7(),cn=px(),g7=require("fs"),F2e=p7(),B2e=d7(),Yr=/_comment$/;function Ce(e){if(!(this instanceof Ce))return new Ce(e);this.filepath=Ju.resolve(e)}m7.inherits(Ce,O2e);Ce.prototype.parse=function(e){var t=N2e(__dirname+"/parseJob.js",[this.filepath]);if(t.on("message",function(r){if(r.name=="SyntaxError"||r.code)this.emit("error",r);else this.hash=r,this.emit("end",null,r)}.bind(this)),e)this.on("error",e),this.on("end",e);return this};Ce.prototype.parseSync=function(){var e=g7.readFileSync(this.filepath,"utf-8");return this.hash=F2e.parse(e),this};Ce.prototype.writeSync=function(e){return this.writer=new R2e(this.hash,e),this.writer.writeSync()};Ce.prototype.allUuids=function(){var e=this.hash.project.objects,t=[],r;for(key in e)r=e[key],t=t.concat(Object.keys(r));return t=t.filter(function(n){return!Yr.test(n)&&n.length==24}),t};Ce.prototype.generateUuid=function(){var e=I2e.v4().replace(/-/g,"").substr(0,24).toUpperCase();if(this.allUuids().indexOf(e)>=0)return this.generateUuid();else return e};Ce.prototype.addPluginFile=function(e,t){var r=new cn(e,t);if(r.plugin=!0,b7(r,this),this.hasFile(r.path))return null;return r.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(r),this.addToPluginsPbxGroup(r),r};Ce.prototype.removePluginFile=function(e,t){var r=new cn(e,t);return b7(r,this),this.removeFromPbxFileReferenceSection(r),this.removeFromPluginsPbxGroup(r),r};Ce.prototype.addProductFile=function(e,t){var r=new cn(e,t);return r.includeInIndex=0,r.fileRef=this.generateUuid(),r.target=t?t.target:void 0,r.group=t?t.group:void 0,r.uuid=this.generateUuid(),r.path=r.basename,this.addToPbxFileReferenceSection(r),this.addToProductsPbxGroup(r),r};Ce.prototype.removeProductFile=function(e,t){var r=new cn(e,t);return this.removeFromProductsPbxGroup(r),r};Ce.prototype.addSourceFile=function(e,t,r){var n;if(r)n=this.addFile(e,r,t);else n=this.addPluginFile(e,t);if(!n)return!1;return n.target=t?t.target:void 0,n.uuid=this.generateUuid(),this.addToPbxBuildFileSection(n),this.addToPbxSourcesBuildPhase(n),n};Ce.prototype.removeSourceFile=function(e,t,r){var n;if(r)n=this.removeFile(e,r,t);else n=this.removePluginFile(e,t);return n.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(n),this.removeFromPbxSourcesBuildPhase(n),n};Ce.prototype.addHeaderFile=function(e,t,r){if(r)return this.addFile(e,r,t);else return this.addPluginFile(e,t)};Ce.prototype.removeHeaderFile=function(e,t,r){if(r)return this.removeFile(e,r,t);else return this.removePluginFile(e,t)};Ce.prototype.addResourceFile=function(e,t,r){t=t||{};var n;if(t.plugin){if(n=this.addPluginFile(e,t),!n)return!1}else if(n=new cn(e,t),this.hasFile(n.path))return!1;if(n.uuid=this.generateUuid(),n.target=t?t.target:void 0,!t.plugin)w7(n,this),n.fileRef=this.generateUuid();if(!t.variantGroup)this.addToPbxBuildFileSection(n),this.addToPbxResourcesBuildPhase(n);if(!t.plugin)if(this.addToPbxFileReferenceSection(n),r){if(this.getPBXGroupByKey(r))this.addToPbxGroup(n,r);else if(this.getPBXVariantGroupByKey(r))this.addToPbxVariantGroup(n,r)}else this.addToResourcesPbxGroup(n);return n};Ce.prototype.removeResourceFile=function(e,t,r){var n=new cn(e,t);if(n.target=t?t.target:void 0,w7(n,this),this.removeFromPbxBuildFileSection(n),this.removeFromPbxFileReferenceSection(n),r){if(this.getPBXGroupByKey(r))this.removeFromPbxGroup(n,r);else if(this.getPBXVariantGroupByKey(r))this.removeFromPbxVariantGroup(n,r)}else this.removeFromResourcesPbxGroup(n);return this.removeFromPbxResourcesBuildPhase(n),n};Ce.prototype.addFramework=function(e,t){var r=t&&t.customFramework==!0,n=!t||(t.link==null||t.link),s=t&&t.embed;if(t)delete t.embed;var o=new cn(e,t);if(o.uuid=this.generateUuid(),o.fileRef=this.generateUuid(),o.target=t?t.target:void 0,this.hasFile(o.path))return!1;if(this.addToPbxBuildFileSection(o),this.addToPbxFileReferenceSection(o),this.addToFrameworksPbxGroup(o),n)this.addToPbxFrameworksBuildPhase(o);if(r){if(this.addToFrameworkSearchPaths(o),s){t.embed=s;var a=new cn(e,t);return a.uuid=this.generateUuid(),a.fileRef=o.fileRef,this.addToPbxBuildFileSection(a),this.addToPbxEmbedFrameworksBuildPhase(a),a}}return o};Ce.prototype.removeFramework=function(e,t){var r=t&&t.embed;if(t)delete t.embed;var n=new cn(e,t);if(n.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(n),this.removeFromPbxFileReferenceSection(n),this.removeFromFrameworksPbxGroup(n),this.removeFromPbxFrameworksBuildPhase(n),t&&t.customFramework)this.removeFromFrameworkSearchPaths(n);t=t||{},t.embed=!0;var s=new cn(e,t);return s.fileRef=n.fileRef,this.removeFromPbxBuildFileSection(s),this.removeFromPbxEmbedFrameworksBuildPhase(s),n};Ce.prototype.addCopyfile=function(e,t){var r=new cn(e,t);if(this.hasFile(r.path))r=this.hasFile(r.path);return r.fileRef=r.uuid=this.generateUuid(),r.target=t?t.target:void 0,this.addToPbxBuildFileSection(r),this.addToPbxFileReferenceSection(r),this.addToPbxCopyfilesBuildPhase(r),r};Ce.prototype.pbxCopyfilesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",e)};Ce.prototype.addToPbxCopyfilesBuildPhase=function(e){var t=this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",e.target);t.files.push(Yu(e))};Ce.prototype.removeCopyfile=function(e,t){var r=new cn(e,t);return r.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(r),this.removeFromPbxFileReferenceSection(r),this.removeFromPbxCopyfilesBuildPhase(r),r};Ce.prototype.removeFromPbxCopyfilesBuildPhase=function(e){var t=this.pbxCopyfilesBuildPhaseObj(e.target);for(i in t.files)if(t.files[i].comment==uc(e)){t.files.splice(i,1);break}};Ce.prototype.addStaticLibrary=function(e,t){t=t||{};var r;if(t.plugin){if(r=this.addPluginFile(e,t),!r)return!1}else if(r=new cn(e,t),this.hasFile(r.path))return!1;if(r.uuid=this.generateUuid(),r.target=t?t.target:void 0,!t.plugin)r.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(r);return this.addToPbxBuildFileSection(r),this.addToPbxFrameworksBuildPhase(r),this.addToLibrarySearchPaths(r),r};Ce.prototype.addToPbxBuildFileSection=function(e){var t=Pi("%s_comment",e.uuid);this.pbxBuildFileSection()[e.uuid]=M2e(e),this.pbxBuildFileSection()[t]=q2e(e)};Ce.prototype.removeFromPbxBuildFileSection=function(e){var t;for(t in this.pbxBuildFileSection())if(this.pbxBuildFileSection()[t].fileRef_comment==e.basename){e.uuid=t,delete this.pbxBuildFileSection()[t];var r=Pi("%s_comment",t);delete this.pbxBuildFileSection()[r]}};Ce.prototype.addPbxGroup=function(e,t,r,n){var s=this.hash.project.objects.PBXGroup,o=this.generateUuid(),a=Pi("%s_comment",o),u={isa:"PBXGroup",children:[],name:t,path:r,sourceTree:n?n:'"<group>"'},l=this.pbxFileReferenceSection(),c={};for(var f in l){if(!Yr.test(f))continue;var p=f.split(Yr)[0],d=l[p];c[d.path]={fileRef:p,basename:l[f]}}for(var m=0;m<e.length;m++){var b=e[m],w='"'+b+'"';if(c[b]){u.children.push(In(c[b]));continue}else if(c[w]){u.children.push(In(c[w]));continue}var E=new cn(b);E.uuid=this.generateUuid(),E.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(E),this.addToPbxBuildFileSection(E),u.children.push(In(E))}if(s)s[o]=u,s[a]=t;return{uuid:o,pbxGroup:u}};Ce.prototype.removePbxGroup=function(e){var t=this.hash.project.objects.PBXGroup,r,n;for(r in t){if(!Yr.test(r))continue;if(t[r]==e)n=r.split(Yr)[0],delete t[n]}};Ce.prototype.addToPbxProjectSection=function(e){var t={value:e.uuid,comment:U2e(e.pbxNativeTarget)};this.pbxProjectSection()[this.getFirstProject().uuid].targets.push(t)};Ce.prototype.addToPbxNativeTargetSection=function(e){var t=Pi("%s_comment",e.uuid);this.pbxNativeTargetSection()[e.uuid]=e.pbxNativeTarget,this.pbxNativeTargetSection()[t]=e.pbxNativeTarget.name};Ce.prototype.addToPbxFileReferenceSection=function(e){var t=Pi("%s_comment",e.fileRef);this.pbxFileReferenceSection()[e.fileRef]=y7(e),this.pbxFileReferenceSection()[t]=$2e(e)};Ce.prototype.removeFromPbxFileReferenceSection=function(e){var t,r=y7(e);for(t in this.pbxFileReferenceSection())if(this.pbxFileReferenceSection()[t].name==r.name||'"'+this.pbxFileReferenceSection()[t].name+'"'==r.name||this.pbxFileReferenceSection()[t].path==r.path||'"'+this.pbxFileReferenceSection()[t].path+'"'==r.path){e.fileRef=e.uuid=t,delete this.pbxFileReferenceSection()[t];break}var n=Pi("%s_comment",e.fileRef);if(this.pbxFileReferenceSection()[n]!=null)delete this.pbxFileReferenceSection()[n];return e};Ce.prototype.addToXcVersionGroupSection=function(e){if(!e.models||!e.currentModel)throw Error("Cannot create a XCVersionGroup section from not a data model document file");var t=Pi("%s_comment",e.fileRef);if(!this.xcVersionGroupSection()[e.fileRef])this.xcVersionGroupSection()[e.fileRef]={isa:"XCVersionGroup",children:e.models.map(function(r){return r.fileRef}),currentVersion:e.currentModel.fileRef,name:Ju.basename(e.path),path:e.path,sourceTree:'"<group>"',versionGroupType:"wrapper.xcdatamodel"},this.xcVersionGroupSection()[t]=Ju.basename(e.path)};Ce.prototype.addToPluginsPbxGroup=function(e){var t=this.pbxGroupByName("Plugins");if(!t)this.addPbxGroup([e.path],"Plugins");else t.children.push(In(e))};Ce.prototype.removeFromPluginsPbxGroup=function(e){if(!this.pbxGroupByName("Plugins"))return null;var t=this.pbxGroupByName("Plugins").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToResourcesPbxGroup=function(e){var t=this.pbxGroupByName("Resources");if(!t)this.addPbxGroup([e.path],"Resources");else t.children.push(In(e))};Ce.prototype.removeFromResourcesPbxGroup=function(e){if(!this.pbxGroupByName("Resources"))return null;var t=this.pbxGroupByName("Resources").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToFrameworksPbxGroup=function(e){var t=this.pbxGroupByName("Frameworks");if(!t)this.addPbxGroup([e.path],"Frameworks");else t.children.push(In(e))};Ce.prototype.removeFromFrameworksPbxGroup=function(e){if(!this.pbxGroupByName("Frameworks"))return null;var t=this.pbxGroupByName("Frameworks").children;for(i in t)if(In(e).value==t[i].value&&In(e).comment==t[i].comment){t.splice(i,1);break}};Ce.prototype.addToPbxEmbedFrameworksBuildPhase=function(e){var t=this.pbxEmbedFrameworksBuildPhaseObj(e.target);if(t)t.files.push(Yu(e))};Ce.prototype.removeFromPbxEmbedFrameworksBuildPhase=function(e){var t=this.pbxEmbedFrameworksBuildPhaseObj(e.target);if(t){var r=[];for(i in t.files)if(t.files[i].comment!=uc(e))r.push(t.files[i]);t.files=r}};Ce.prototype.addToProductsPbxGroup=function(e){var t=this.pbxGroupByName("Products");if(!t)this.addPbxGroup([e.path],"Products");else t.children.push(In(e))};Ce.prototype.removeFromProductsPbxGroup=function(e){if(!this.pbxGroupByName("Products"))return null;var t=this.pbxGroupByName("Products").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToPbxSourcesBuildPhase=function(e){var t=this.pbxSourcesBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxSourcesBuildPhase=function(e){var t=this.pbxSourcesBuildPhaseObj(e.target),r;for(r in t.files)if(t.files[r].comment==uc(e)){t.files.splice(r,1);break}};Ce.prototype.addToPbxResourcesBuildPhase=function(e){var t=this.pbxResourcesBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxResourcesBuildPhase=function(e){var t=this.pbxResourcesBuildPhaseObj(e.target),r;for(r in t.files)if(t.files[r].comment==uc(e)){t.files.splice(r,1);break}};Ce.prototype.addToPbxFrameworksBuildPhase=function(e){var t=this.pbxFrameworksBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxFrameworksBuildPhase=function(e){var t=this.pbxFrameworksBuildPhaseObj(e.target);for(i in t.files)if(t.files[i].comment==uc(e)){t.files.splice(i,1);break}};Ce.prototype.addXCConfigurationList=function(e,t,r){var n=this.pbxXCBuildConfigurationSection(),s=this.pbxXCConfigurationList(),o=this.generateUuid(),a=Pi("%s_comment",o),u={isa:"XCConfigurationList",buildConfigurations:[],defaultConfigurationIsVisible:0,defaultConfigurationName:t};for(var l=0;l<e.length;l++){var c=e[l],f=this.generateUuid(),p=Pi("%s_comment",f);n[f]=c,n[p]=c.name,u.buildConfigurations.push({value:f,comment:c.name})}if(s)s[o]=u,s[a]=r;return{uuid:o,xcConfigurationList:u}};Ce.prototype.addTargetDependency=function(e,t){if(!e)return;var r=this.pbxNativeTargetSection();if(typeof r[e]>"u")throw Error("Invalid target: "+e);for(var n=0;n<t.length;n++){var s=t[n];if(typeof r[s]>"u")throw Error("Invalid target: "+s)}var o="PBXTargetDependency",a="PBXContainerItemProxy",u=this.hash.project.objects[o],l=this.hash.project.objects[a];for(var n=0;n<t.length;n++){var c=t[n],f=Pi("%s_comment",c),p=this.generateUuid(),d=Pi("%s_comment",p),m=this.generateUuid(),b=Pi("%s_comment",m),w={isa:a,containerPortal:this.hash.project.rootObject,containerPortal_comment:this.hash.project.rootObject_comment,proxyType:1,remoteGlobalIDString:c,remoteInfo:r[c].name},E={isa:o,target:c,target_comment:r[f],targetProxy:m,targetProxy_comment:a};if(l&&u)l[m]=w,l[b]=a,u[p]=E,u[d]=o,r[e].dependencies.push({value:p,comment:o})}return{uuid:e,target:r[e]}};Ce.prototype.addBuildPhase=function(e,t,r,n,s,o){var a,u=this.pbxFileReferenceSection(),l=this.pbxBuildFileSection(),c=this.generateUuid(),f=n||this.getFirstTarget().uuid,p=Pi("%s_comment",c),d={isa:t,buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},m={};if(t==="PBXCopyFilesBuildPhase")d=L2e(d,s,o,r);else if(t==="PBXShellScriptBuildPhase")d=j2e(d,s,r);if(!this.hash.project.objects[t])this.hash.project.objects[t]={};if(!this.hash.project.objects[t][c])this.hash.project.objects[t][c]=d,this.hash.project.objects[t][p]=r;if(this.hash.project.objects.PBXNativeTarget[f].buildPhases)this.hash.project.objects.PBXNativeTarget[f].buildPhases.push({value:c,comment:r});for(var b in l){if(!Yr.test(b))continue;var w=b.split(Yr)[0],E=l[w];if(fileReference=u[E.fileRef],!fileReference)continue;var D=new cn(fileReference.path);m[fileReference.path]={uuid:w,basename:D.basename,group:D.group}}for(var x=0;x<e.length;x++){var g=e[x],y='"'+g+'"',h=new cn(g);if(m[g]){d.files.push(Yu(m[g]));continue}else if(m[y]){d.files.push(Yu(m[y]));continue}h.uuid=this.generateUuid(),h.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(h),this.addToPbxBuildFileSection(h),d.files.push(Yu(h))}if(a)a[c]=d,a[p]=r;return{uuid:c,buildPhase:d}};Ce.prototype.pbxProjectSection=function(){return this.hash.project.objects.PBXProject};Ce.prototype.pbxBuildFileSection=function(){return this.hash.project.objects.PBXBuildFile};Ce.prototype.pbxXCBuildConfigurationSection=function(){return this.hash.project.objects.XCBuildConfiguration};Ce.prototype.pbxFileReferenceSection=function(){return this.hash.project.objects.PBXFileReference};Ce.prototype.pbxNativeTargetSection=function(){return this.hash.project.objects.PBXNativeTarget};Ce.prototype.xcVersionGroupSection=function(){if(typeof this.hash.project.objects.XCVersionGroup!=="object")this.hash.project.objects.XCVersionGroup={};return this.hash.project.objects.XCVersionGroup};Ce.prototype.pbxXCConfigurationList=function(){return this.hash.project.objects.XCConfigurationList};Ce.prototype.pbxGroupByName=function(e){var t=this.hash.project.objects.PBXGroup,r,n;for(r in t){if(!Yr.test(r))continue;if(t[r]==e)return n=r.split(Yr)[0],t[n]}return null};Ce.prototype.pbxTargetByName=function(e){return this.pbxItemByComment(e,"PBXNativeTarget")};Ce.prototype.findTargetKey=function(e){var t=this.hash.project.objects.PBXNativeTarget;for(var r in t){if(Yr.test(r))continue;var n=t[r];if(n.name===e)return r}return null};Ce.prototype.pbxItemByComment=function(e,t){var r=this.hash.project.objects[t],n,s;for(n in r){if(!Yr.test(n))continue;if(r[n]==e)return s=n.split(Yr)[0],r[s]}return null};Ce.prototype.pbxSourcesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXSourcesBuildPhase","Sources",e)};Ce.prototype.pbxResourcesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXResourcesBuildPhase","Resources",e)};Ce.prototype.pbxFrameworksBuildPhaseObj=function(e){return this.buildPhaseObject("PBXFrameworksBuildPhase","Frameworks",e)};Ce.prototype.pbxEmbedFrameworksBuildPhaseObj=function(e){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Embed Frameworks",e)};Ce.prototype.buildPhase=function(e,t){if(!t)return;var r=this.pbxNativeTargetSection();if(typeof r[t]>"u")throw Error("Invalid target: "+t);var n=r[t],s=n.buildPhases;for(var o in s){var a=s[o];if(a.comment==e)return a.value+"_comment"}};Ce.prototype.buildPhaseObject=function(e,t,r){var n=this.hash.project.objects[e],s,o,a,u=this.buildPhase(t,r);for(a in n){if(!Yr.test(a))continue;if(u&&u!=a)continue;if(n[a]==t)return o=a.split(Yr)[0],n[o]}return null};Ce.prototype.addBuildProperty=function(e,t,r){var n=ki(this.pbxXCBuildConfigurationSection()),s,o;for(s in n)if(o=n[s],!r||o.name===r)o.buildSettings[e]=t};Ce.prototype.removeBuildProperty=function(e,t){var r=ki(this.pbxXCBuildConfigurationSection()),n,s;for(n in r)if(s=r[n],s.buildSettings[e]&&!t||s.name===t)delete s.buildSettings[e]};Ce.prototype.updateBuildProperty=function(e,t,r,n){let s=[];if(n){let l=this.pbxTargetByName(n),c=l&&l.buildConfigurationList,f=this.pbxXCConfigurationList();for(let p in f)if(!Yr.test(p)&&c===p){let d=f[p].buildConfigurations;for(let m of d)s.push(m.value);break}}var o=this.pbxXCBuildConfigurationSection();for(var a in o)if(!Yr.test(a)){if(n&&!s.includes(a))continue;var u=o[a];if(r&&u.name===r||!r)u.buildSettings[e]=t}};Ce.prototype.updateProductName=function(e){this.updateBuildProperty("PRODUCT_NAME",'"'+e+'"')};Ce.prototype.removeFromFrameworkSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="FRAMEWORK_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(a=o[n],a&&Array.isArray(a)){var l=a.filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=a.indexOf(c);a.splice(f,1)})}}};Ce.prototype.addToFrameworkSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.FRAMEWORK_SEARCH_PATHS||s.FRAMEWORK_SEARCH_PATHS===r)s.FRAMEWORK_SEARCH_PATHS=[r];s.FRAMEWORK_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.removeFromLibrarySearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="LIBRARY_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(a=o[n],a&&Array.isArray(a)){var l=a.filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=a.indexOf(c);a.splice(f,1)})}}};Ce.prototype.addToLibrarySearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.LIBRARY_SEARCH_PATHS||s.LIBRARY_SEARCH_PATHS===r)s.LIBRARY_SEARCH_PATHS=[r];if(typeof e==="string")s.LIBRARY_SEARCH_PATHS.push(e);else s.LIBRARY_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.removeFromHeaderSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="HEADER_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(o[n]){var l=o[n].filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=o[n].indexOf(c);o[n].splice(f,1)})}}};Ce.prototype.addToHeaderSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.HEADER_SEARCH_PATHS)s.HEADER_SEARCH_PATHS=[r];if(typeof e==="string")s.HEADER_SEARCH_PATHS.push(e);else s.HEADER_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.addToOtherLinkerFlags=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="OTHER_LDFLAGS",s,o;for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(!o[n]||o[n]===r)o[n]=[r];o[n].push(e)}};Ce.prototype.removeFromOtherLinkerFlags=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r="OTHER_LDFLAGS",n,s;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(s[r]){var o=s[r].filter(function(a){return a.indexOf(e)>-1});o.forEach(function(a){var u=s[r].indexOf(a);s[r].splice(u,1)})}}};Ce.prototype.addToBuildSettings=function(e,t){var r=ki(this.pbxXCBuildConfigurationSection()),n,s;for(n in r)s=r[n].buildSettings,s[e]=t};Ce.prototype.removeFromBuildSettings=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r,n;for(r in t)if(n=t[r].buildSettings,n[e])delete n[e]};Ce.prototype.__defineGetter__("productName",function(){var e=ki(this.pbxXCBuildConfigurationSection()),t,r;for(t in e)if(r=e[t].buildSettings.PRODUCT_NAME,r)return Jo(r)});Ce.prototype.hasFile=function(e){var t=ki(this.pbxFileReferenceSection()),r,n;for(n in t)if(r=t[n],r.path==e||r.path=='"'+e+'"')return r;return!1};Ce.prototype.addTarget=function(e,t,r,n){var s=this.generateUuid(),o=t,a=r||e,u=e.trim(),l=n;if(!u)throw Error("Target name missing.");if(!o)throw Error("Target type missing.");if(!g1(o))throw Error("Target type invalid: "+o);var c=[{name:"Debug",isa:"XCBuildConfiguration",buildSettings:{GCC_PREPROCESSOR_DEFINITIONS:['"DEBUG=1"','"$(inherited)"'],INFOPLIST_FILE:'"'+Ju.join(a,a+'-Info.plist"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+u+'"',SKIP_INSTALL:"YES"}},{name:"Release",isa:"XCBuildConfiguration",buildSettings:{INFOPLIST_FILE:'"'+Ju.join(a,a+'-Info.plist"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+u+'"',SKIP_INSTALL:"YES"}}];if(l)c=c.map((x)=>(x.buildSettings.PRODUCT_BUNDLE_IDENTIFIER='"'+l+'"',x));var f=this.addXCConfigurationList(c,"Release",'Build configuration list for PBXNativeTarget "'+u+'"'),p=u,d=g1(o),m=G2e(d),b=this.addProductFile(p,{group:"Copy Files",target:s,explicitFileType:m}),w=b.basename;this.addToPbxBuildFileSection(b);var E={uuid:s,pbxNativeTarget:{isa:"PBXNativeTarget",name:'"'+u+'"',productName:'"'+u+'"',productReference:b.fileRef,productType:'"'+g1(o)+'"',buildConfigurationList:f.uuid,buildPhases:[],buildRules:[],dependencies:[]}};if(this.addToPbxNativeTargetSection(E),o==="app_extension")this.addBuildPhase([],"PBXCopyFilesBuildPhase","Copy Files",this.getFirstTarget().uuid,o),this.addToPbxCopyfilesBuildPhase(b);else if(o==="watch2_app")this.addBuildPhase([u+".app"],"PBXCopyFilesBuildPhase","Embed Watch Content",this.getFirstTarget().uuid,o,'"$(CONTENTS_FOLDER_PATH)/Watch"');else if(o==="watch2_extension"){var D=this.getTarget(g1("watch2_app"));if(D)this.addBuildPhase([u+".appex"],"PBXCopyFilesBuildPhase","Embed App Extensions",D.uuid,o)}if(this.addToPbxProjectSection(E),o==="watch2_extension"){var D=this.getTarget(g1("watch2_app"));if(D)this.addTargetDependency(D.uuid,[E.uuid])}else this.addTargetDependency(this.getFirstTarget().uuid,[E.uuid]);return E};function M2e(e){var t=Object.create(null);if(t.isa="PBXBuildFile",t.fileRef=e.fileRef,t.fileRef_comment=e.basename,e.settings)t.settings=e.settings;return t}function y7(e){var t={isa:"PBXFileReference",name:'"'+e.basename+'"',path:'"'+e.path.replace(/\\/g,"/")+'"',sourceTree:e.sourceTree,fileEncoding:e.fileEncoding,lastKnownFileType:e.lastKnownFileType,explicitFileType:e.explicitFileType,includeInIndex:e.includeInIndex};return t}function In(e){var t=Object.create(null);return t.value=e.fileRef,t.comment=e.basename,t}function Yu(e){var t=Object.create(null);return t.value=e.uuid,t.comment=uc(e),t}function L2e(e,t,r,n){var s={application:"wrapper",app_extension:"plugins",bundle:"wrapper",command_line_tool:"wrapper",dynamic_library:"products_directory",framework:"shared_frameworks",frameworks:"frameworks",static_library:"products_directory",unit_test_bundle:"wrapper",watch_app:"wrapper",watch2_app:"products_directory",watch_extension:"plugins",watch2_extension:"plugins"},o={absolute_path:0,executables:6,frameworks:10,java_resources:15,plugins:13,products_directory:16,resources:7,shared_frameworks:11,shared_support:12,wrapper:1,xpc_services:0};return e.name='"'+n+'"',e.dstPath=r||'""',e.dstSubfolderSpec=o[s[t]],e}function j2e(e,t,r){return e.name='"'+r+'"',e.inputPaths=t.inputPaths||[],e.outputPaths=t.outputPaths||[],e.shellPath=t.shellPath,e.shellScript='"'+t.shellScript.replace(/"/g,"\\\"")+'"',e}function q2e(e){return uc(e)}function $2e(e){return e.basename||Ju.basename(e.path)}function U2e(e){return e.name}function uc(e){return Pi("%s in %s",e.basename,e.group)}function b7(e,t){return T7(e,t,"Plugins")}function w7(e,t){return T7(e,t,"Resources")}function T7(e,t,r){var n=new RegExp("^"+r+"[\\\\/]");if(t.pbxGroupByName(r).path)e.path=e.path.replace(n,"");return e}function Yf(e,t){var r=t.pbxGroupByName("Plugins"),n=r?r.path:null,s=Ju.dirname(e.path);if(s==".")s="";else s="/"+s;if(e.plugin&&n)return'"\\"$(SRCROOT)/'+Jo(n)+'\\""';else if(e.customFramework&&e.dirname)return'"\\"'+e.dirname+'\\""';else return'"\\"$(SRCROOT)/'+t.productName+s+'\\""'}function ki(e){var t=Object.keys(e),r={},n=0;for(n;n<t.length;n++)if(!Yr.test(t[n]))r[t[n]]=e[t[n]];return r}function Jo(e){if(e)return e.replace(/^"(.*)"$/,"$1")}function g1(e){return PRODUCTTYPE_BY_TARGETTYPE={application:"com.apple.product-type.application",app_extension:"com.apple.product-type.app-extension",bundle:"com.apple.product-type.bundle",command_line_tool:"com.apple.product-type.tool",dynamic_library:"com.apple.product-type.library.dynamic",framework:"com.apple.product-type.framework",static_library:"com.apple.product-type.library.static",unit_test_bundle:"com.apple.product-type.bundle.unit-test",watch_app:"com.apple.product-type.application.watchapp",watch2_app:"com.apple.product-type.application.watchapp2",watch_extension:"com.apple.product-type.watchkit-extension",watch2_extension:"com.apple.product-type.watchkit2-extension"},PRODUCTTYPE_BY_TARGETTYPE[e]}function G2e(e){return FILETYPE_BY_PRODUCTTYPE={"com.apple.product-type.application":'"wrapper.application"',"com.apple.product-type.app-extension":'"wrapper.app-extension"',"com.apple.product-type.bundle":'"wrapper.plug-in"',"com.apple.product-type.tool":'"compiled.mach-o.dylib"',"com.apple.product-type.library.dynamic":'"compiled.mach-o.dylib"',"com.apple.product-type.framework":'"wrapper.framework"',"com.apple.product-type.library.static":'"archive.ar"',"com.apple.product-type.bundle.unit-test":'"wrapper.cfbundle"',"com.apple.product-type.application.watchapp":'"wrapper.application"',"com.apple.product-type.application.watchapp2":'"wrapper.application"',"com.apple.product-type.watchkit-extension":'"wrapper.app-extension"',"com.apple.product-type.watchkit2-extension":'"wrapper.app-extension"'},FILETYPE_BY_PRODUCTTYPE[e]}Ce.prototype.getFirstProject=function(){var e=this.pbxProjectSection(),t=Object.keys(e)[0],r=e[t];return{uuid:t,firstProject:r}};Ce.prototype.getFirstTarget=function(){var e=this.getFirstProject().firstProject.targets[0].value,t=this.pbxNativeTargetSection()[e];return{uuid:e,firstTarget:t}};Ce.prototype.getTarget=function(e){var t=this.getFirstProject().firstProject.targets,r=this.pbxNativeTargetSection();for(var n=0;n<t.length;n++){var s=t[n],o=s.value;if(r[o].productType==='"'+e+'"'){var a=this.pbxNativeTargetSection()[o];return{uuid:o,target:a}}}return null};Ce.prototype.addToPbxGroupType=function(e,t,r){var n=this.getPBXGroupByKeyAndType(t,r);if(n&&n.children!==void 0)if(typeof e==="string"){var s={value:e};if(this.getPBXGroupByKey(e))s.comment=this.getPBXGroupByKey(e).name;else if(this.getPBXVariantGroupByKey(e))s.comment=this.getPBXVariantGroupByKey(e).name;n.children.push(s)}else n.children.push(In(e))};Ce.prototype.addToPbxVariantGroup=function(e,t){this.addToPbxGroupType(e,t,"PBXVariantGroup")};Ce.prototype.addToPbxGroup=function(e,t){this.addToPbxGroupType(e,t,"PBXGroup")};Ce.prototype.pbxCreateGroupWithType=function(e,t,r){var n={isa:'"'+r+'"',children:[],name:e,sourceTree:'"<group>"'};if(t)n.path=t;var s=this.generateUuid(),o=s+"_comment",a=this.hash.project.objects[r];if(!a)a=this.hash.project.objects[r]={};return a[o]=e,a[s]=n,s};Ce.prototype.pbxCreateVariantGroup=function(e){return this.pbxCreateGroupWithType(e,void 0,"PBXVariantGroup")};Ce.prototype.pbxCreateGroup=function(e,t){return this.pbxCreateGroupWithType(e,t,"PBXGroup")};Ce.prototype.removeFromPbxGroupAndType=function(e,t,r){var n=this.getPBXGroupByKeyAndType(t,r);if(n){var s=n.children,o;for(o in s)if(In(e).value==s[o].value&&In(e).comment==s[o].comment){s.splice(o,1);break}}};Ce.prototype.removeFromPbxGroup=function(e,t){this.removeFromPbxGroupAndType(e,t,"PBXGroup")};Ce.prototype.removeFromPbxVariantGroup=function(e,t){this.removeFromPbxGroupAndType(e,t,"PBXVariantGroup")};Ce.prototype.getPBXGroupByKeyAndType=function(e,t){return this.hash.project.objects[t][e]};Ce.prototype.getPBXGroupByKey=function(e){return this.hash.project.objects.PBXGroup[e]};Ce.prototype.getPBXVariantGroupByKey=function(e){return this.hash.project.objects.PBXVariantGroup[e]};Ce.prototype.findPBXGroupKeyAndType=function(e,t){var r=this.hash.project.objects[t],n;for(var s in r){if(Yr.test(s))continue;var o=r[s];if(e&&e.path&&e.name){if(e.path===o.path&&e.name===o.name){n=s;break}}else if(e&&e.path){if(e.path===o.path){n=s;break}}else if(e&&e.name){if(e.name===o.name){n=s;break}}}return n};Ce.prototype.findPBXGroupKey=function(e){return this.findPBXGroupKeyAndType(e,"PBXGroup")};Ce.prototype.findPBXVariantGroupKey=function(e){return this.findPBXGroupKeyAndType(e,"PBXVariantGroup")};Ce.prototype.addLocalizationVariantGroup=function(e){var t=this.pbxCreateVariantGroup(e),r=this.findPBXGroupKey({name:"Resources"});this.addToPbxGroup(t,r);var n={uuid:this.generateUuid(),fileRef:t,basename:e};return this.addToPbxBuildFileSection(n),this.addToPbxResourcesBuildPhase(n),n};Ce.prototype.addKnownRegion=function(e){if(!this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions)this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions=[];if(!this.hasKnownRegion(e))this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions.push(e)};Ce.prototype.removeKnownRegion=function(e){var t=this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions;if(t){for(var r=0;r<t.length;r++)if(t[r]===e){t.splice(r,1);break}this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions=t}};Ce.prototype.hasKnownRegion=function(e){var t=this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions;if(t){for(var r in t)if(t[r]===e)return!0}return!1};Ce.prototype.getPBXObject=function(e){return this.hash.project.objects[e]};Ce.prototype.addFile=function(e,t,r){var n=new cn(e,r);if(this.hasFile(n.path))return null;if(n.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(n),this.getPBXGroupByKey(t))this.addToPbxGroup(n,t);else if(this.getPBXVariantGroupByKey(t))this.addToPbxVariantGroup(n,t);return n};Ce.prototype.removeFile=function(e,t,r){var n=new cn(e,r);if(this.removeFromPbxFileReferenceSection(n),this.getPBXGroupByKey(t))this.removeFromPbxGroup(n,t);else if(this.getPBXVariantGroupByKey(t))this.removeFromPbxVariantGroup(n,t);return n};Ce.prototype.getBuildProperty=function(e,t,r){var n;let s=[];if(r){let l=this.pbxTargetByName(r),c=l&&l.buildConfigurationList,f=this.pbxXCConfigurationList();for(let p in f)if(!Yr.test(p)&&c===p){let d=f[p].buildConfigurations;for(let m of d)s.push(m.value);break}}var o=this.pbxXCBuildConfigurationSection();for(var a in o)if(!Yr.test(a)){if(r&&!s.includes(a))continue;var u=o[a];if(t&&u.name===t||t===void 0){if(u.buildSettings[e]!==void 0)n=u.buildSettings[e]}}return n};Ce.prototype.getBuildConfigByName=function(e){var t={},r=this.pbxXCBuildConfigurationSection();for(var n in r)if(!Yr.test(n)){var s=r[n];if(s.name===e)t[n]=s}return t};Ce.prototype.addDataModelDocument=function(e,t,r){if(!t)t="Resources";if(!this.getPBXGroupByKey(t))t=this.findPBXGroupKey({name:t});var n=new cn(e,r);if(!n||this.hasFile(n.path))return null;if(n.fileRef=this.generateUuid(),this.addToPbxGroup(n,t),!n)return!1;n.target=r?r.target:void 0,n.uuid=this.generateUuid(),this.addToPbxBuildFileSection(n),this.addToPbxSourcesBuildPhase(n),n.models=[];var s,o=g7.readdirSync(n.path);for(var a in o){var u=o[a],l=Ju.join(e,u);if(u==".xccurrentversion"){s=B2e.readFileSync(l)._XCCurrentVersionName;continue}var c=new cn(l);if(c.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(c),n.models.push(c),s&&s===u)n.currentModel=c}if(!n.currentModel)n.currentModel=n.models[0];return this.addToXcVersionGroupSection(n),n};Ce.prototype.addTargetAttribute=function(e,t,r){var n=this.getFirstProject().firstProject.attributes;if(n.TargetAttributes===void 0)n.TargetAttributes={};if(r=r||this.getFirstTarget(),n.TargetAttributes[r.uuid]===void 0)n.TargetAttributes[r.uuid]={};n.TargetAttributes[r.uuid][e]=t};Ce.prototype.removeTargetAttribute=function(e,t){var r=this.getFirstProject().firstProject.attributes;if(t=t||this.getFirstTarget(),r.TargetAttributes&&r.TargetAttributes[t.uuid])delete r.TargetAttributes[t.uuid][e]};v7.exports=Ce});var Jf=P(function(E7){E7.project=fx()});var lc=P(function(hx){Object.defineProperty(hx,"__esModule",{value:!0});hx.trimQuotes=X2e;function X2e(e){return e&&e[0]==='"'&&e[e.length-1]==='"'?e.slice(1,-1):e}});var D7=P(function(u5e,A7){A7.exports=(e)=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);if(t||r)return e;return e.replace(/\\/g,"/")}});var mx=P(function(Qf){Object.defineProperty(Qf,"__esModule",{value:!0});Qf.getApplicationTargetNameForSchemeAsync=H2e;Qf.getArchiveBuildConfigurationForSchemeAsync=K2e;Qf.getRunnableSchemesFromXcodeproj=W2e;Qf.getSchemesFromXcodeproj=V2e;function dx(){let e=cc();return dx=function(){return e},e}function Qb(){let e=Ya();return Qb=function(){return e},e}function y1(){let e=qn();return y1=function(){return e},e}function _7(){let e=ec();return _7=function(){return e},e}function V2e(e){return(0,dx().findSchemeNames)(e)}function W2e(e,{configuration:t="Debug"}={}){let r=(0,y1().getPbxproj)(e);return(0,Qb().findSignableTargets)(r).map(([,n])=>{let s="iOS",o=(0,y1().unquote)(n.productType);if(o===Qb().TargetType.WATCH)s="watchOS";else if(o.startsWith(Qb().TargetType.APPLICATION)){let a=r.hash.project.objects.XCConfigurationList[n.buildConfigurationList];if(a){let u=a.buildConfigurations.find((l)=>l.comment===t)||a.buildConfigurations[0];if(u?.value){let l=r.hash.project.objects.XCBuildConfiguration?.[u.value],c=l.buildSettings.SDKROOT;if(c==="appletvos"||"TVOS_DEPLOYMENT_TARGET"in l.buildSettings)s="tvOS";else if(c==="iphoneos")s="iOS"}}}return{name:(0,y1().unquote)(n.name),osType:s,type:(0,y1().unquote)(n.productType)}})}async function x7(e,t){let r=(0,dx().findSchemePaths)(e),n=new RegExp(`[\\\\/]${t}.xcscheme`,"i"),s=r.find((o)=>n.exec(o));if(s)return await(0,_7().readXMLAsync)({path:s});else throw Error(`scheme '${t}' does not exist, make sure it's marked as shared`)}async function H2e(e,t){let n=(await x7(e,t))?.Scheme?.BuildAction?.[0]?.BuildActionEntries?.[0]?.BuildActionEntry,s=n?.length===1?C7(n[0]):C7(n?.find((o)=>o.BuildableReference?.[0]?.$?.BuildableName?.endsWith(".app")));if(!s)throw Error(`${t}.xcscheme seems to be corrupted`);return s}async function K2e(e,t){let n=(await x7(e,t))?.Scheme?.ArchiveAction?.[0]?.$?.buildConfiguration;if(!n)throw Error(`${t}.xcscheme seems to be corrupted`);return n}function C7(e){return e?.BuildableReference?.[0]?.$?.BlueprintName}});var Ya=P(function(fo){Object.defineProperty(fo,"__esModule",{value:!0});fo.TargetType=void 0;fo.findApplicationTargetWithDependenciesAsync=Y2e;fo.findFirstNativeTarget=k7;fo.findNativeTargetByName=gx;fo.findSignableTargets=J2e;fo.getNativeTargets=T1;fo.getXCBuildConfigurationFromPbxproj=z2e;fo.isTargetOfType=b1;function S7(){let e=mx();return S7=function(){return e},e}function Zb(){let e=qn();return Zb=function(){return e},e}function w1(){let e=lc();return w1=function(){return e},e}var co=fo.TargetType=function(e){return e.APPLICATION="com.apple.product-type.application",e.EXTENSION="com.apple.product-type.app-extension",e.WATCH="com.apple.product-type.application.watchapp",e.APP_CLIP="com.apple.product-type.application.on-demand-install-capable",e.STICKER_PACK_EXTENSION="com.apple.product-type.app-extension.messages-sticker-pack",e.FRAMEWORK="com.apple.product-type.framework",e.OTHER="other",e}({});function z2e(e,{targetName:t,buildConfiguration:r="Release"}={}){let[,n]=t?gx(e,t):k7(e),[,s]=(0,Zb().getBuildConfigurationForListIdAndName)(e,{configurationListId:n.buildConfigurationList,buildConfiguration:r});return s??null}async function Y2e(e,t){let r=await(0,S7().getApplicationTargetNameForSchemeAsync)(e,t),n=(0,Zb().getPbxproj)(e),[,s]=gx(n,r),o=P7(n,s);return{name:(0,w1().trimQuotes)(s.name),type:co.APPLICATION,signable:!0,dependencies:o}}function P7(e,t){if(!t.dependencies||t.dependencies.length===0)return;let r=[co.FRAMEWORK];return t.dependencies.map(({value:n})=>{let{target:s}=e.getPBXGroupByKeyAndType(n,"PBXTargetDependency"),[,o]=Q2e(e,s),a=b1(o,co.EXTENSION)?co.EXTENSION:co.OTHER;return{name:(0,w1().trimQuotes)(o.name),type:a,signable:!r.some((u)=>b1(o,u)),dependencies:P7(e,o)}})}function b1(e,t){return(0,w1().trimQuotes)(e.productType)===t}function T1(e){let t=e.pbxNativeTargetSection();return Object.entries(t).filter(Zb().isNotComment)}function J2e(e){let t=T1(e),r=[co.APPLICATION,co.APP_CLIP,co.EXTENSION,co.WATCH,co.STICKER_PACK_EXTENSION],n=t.filter(([,s])=>{for(let o of r)if(b1(s,o))return!0;return!1});if(n.length===0)throw Error("Could not find any signable targets in project.pbxproj");return n}function k7(e){let r=T1(e).filter(([,n])=>b1(n,co.APPLICATION));if(r.length===0)throw Error("Could not find any application target in project.pbxproj");return r[0]}function gx(e,t){let n=T1(e).find(([,s])=>(0,w1().trimQuotes)(s.name)===t);if(!n)throw Error(`Could not find target '${t}' in project.pbxproj`);return n}function Q2e(e,t){let n=T1(e).find(([s])=>s===t);if(!n)throw Error(`Could not find target with id '${t}' in project.pbxproj`);return n}});var ew=P(function(hc){Object.defineProperty(hc,"__esModule",{value:!0});hc.ensureApplicationTargetEntitlementsFileConfigured=eEe;hc.getEntitlementsPath=Z2e;hc.setAssociatedDomains=R7;hc.withAssociatedDomains=void 0;function fc(){let e=bx(require("fs"));return fc=function(){return e},e}function pc(){let e=bx(require("path"));return pc=function(){return e},e}function O7(){let e=bx(D7());return O7=function(){return e},e}function yx(){let e=Ya();return yx=function(){return e},e}function Zf(){let e=qn();return Zf=function(){return e},e}function I7(){let e=lc();return I7=function(){return e},e}function N7(){let e=zr();return N7=function(){return e},e}function bx(e){return e&&e.__esModule?e:{default:e}}var f5e=hc.withAssociatedDomains=(0,N7().createEntitlementsPlugin)(R7,"withAssociatedDomains");function R7(e,{"com.apple.developer.associated-domains":t,...r}){if(e.ios?.associatedDomains)return{...r,"com.apple.developer.associated-domains":e.ios.associatedDomains};return r}function Z2e(e,{targetName:t,buildConfiguration:r="Release"}={}){let n=(0,Zf().getPbxproj)(e),s=(0,yx().getXCBuildConfigurationFromPbxproj)(n,{targetName:t,buildConfiguration:r});if(!s)return null;let o=F7(e,s);return o&&fc().default.existsSync(o)?o:null}function F7(e,t){let r=t?.buildSettings?.CODE_SIGN_ENTITLEMENTS;if(r)return pc().default.normalize(pc().default.join(e,"ios",(0,I7().trimQuotes)(r)));else return null}function eEe(e){let t=(0,Zf().getPbxproj)(e),r=(0,Zf().getProjectName)(e),n=(0,Zf().getProductName)(t),[,s]=(0,yx().findFirstNativeTarget)(t),o=(0,Zf().getBuildConfigurationsForListId)(t,s.buildConfigurationList),a=!1;for(let[,u]of o){let l=F7(e,u);if(l&&fc().default.existsSync(l))return;a=!0;let c=(0,O7().default)(pc().default.join(r,`${n}.entitlements`)),f=pc().default.normalize(pc().default.join(e,"ios",c));if(fc().default.mkdirSync(pc().default.dirname(f),{recursive:!0}),!fc().default.existsSync(f))fc().default.writeFileSync(f,tEe);u.buildSettings.CODE_SIGN_ENTITLEMENTS=c}if(a)fc().default.writeFileSync(t.filepath,t.writeSync())}var tEe=`
|
|
320
|
+
`,"\r"],!1,!1),R=0,ce=0,ke=[{line:1,column:1}],We=0,Ve=[],De=0,gt;if("startRule"in t){if(!(t.startRule in n))throw Error(`Can't start parsing from rule "`+t.startRule+'".');s=n[t.startRule]}function Vt(){return e.substring(ce,R)}function ir(){return vi(ce,R)}function Wt(O,j){throw j=j!==void 0?j:vi(ce,R),Pa([xo(O)],e.substring(ce,R),j)}function sn(O,j){throw j=j!==void 0?j:vi(ce,R),yu(O,j)}function sr(O,j){return{type:"literal",text:O,ignoreCase:j}}function on(O,j,ee){return{type:"class",parts:O,inverted:j,ignoreCase:ee}}function xl(){return{type:"any"}}function gu(){return{type:"end"}}function xo(O){return{type:"other",description:O}}function Ti(O){var j=ke[O],ee;if(j)return j;else{ee=O-1;while(!ke[ee])ee--;j=ke[ee],j={line:j.line,column:j.column};while(ee<O){if(e.charCodeAt(ee)===10)j.line++,j.column=1;else j.column++;ee++}return ke[O]=j,j}}function vi(O,j){var ee=Ti(O),_e=Ti(j);return{start:{offset:O,line:ee.line,column:ee.column},end:{offset:j,line:_e.line,column:_e.column}}}function kt(O){if(R<We)return;if(R>We)We=R,Ve=[];Ve.push(O)}function yu(O,j){return new ac(O,null,null,j)}function Pa(O,j,ee){return new ac(ac.buildMessage(O,j),O,j,ee)}function qc(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=sne(),j===r)j=null;if(j!==r){if(ee=Xc(),ee===r)ee=null;if(ee!==r)if(_e=Rr(),_e!==r)if(yt=$c(),yt!==r)if(br=Sl(),br!==r)if(Vi=Rr(),Vi!==r)ce=O,j=o(j,yt),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function $c(){var O,j,ee,_e;if(O=R,e.charCodeAt(R)===123)j=a,R++;else if(j=r,De===0)kt(u);if(j!==r){if(ee=Gc(),ee===r)ee=Uc();if(ee!==r){if(e.charCodeAt(R)===125)_e=l,R++;else if(_e=r,De===0)kt(c);if(_e!==r)ce=O,j=f(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function Uc(){var O,j;if(O=R,j=Rr(),j!==r)ce=O,j=p();return O=j,O}function Gc(){var O,j,ee,_e,yt,br;if(O=R,j=Rr(),j!==r){if(ee=[],_e=R,yt=sg(),yt===r)yt=ag();if(yt!==r)if(br=Rr(),br!==r)yt=[yt,br],_e=yt;else R=_e,_e=r;else R=_e,_e=r;if(_e!==r)while(_e!==r){if(ee.push(_e),_e=R,yt=sg(),yt===r)yt=ag();if(yt!==r)if(br=Rr(),br!==r)yt=[yt,br],_e=yt;else R=_e,_e=r;else R=_e,_e=r}else ee=r;if(ee!==r)ce=O,j=d(ee),O=j;else R=O,O=r}else R=O,O=r;return O}function sg(){var O=Hv();if(O===r)O=Kv();return O}function Hv(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=dh(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=D(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Kv(){var O,j,ee,_e,yt,br,Vi;if(O=R,j=zv(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=dh(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=x(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;if(O===r)if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r){if(e.charCodeAt(R)===61)_e=m,R++;else if(_e=r,De===0)kt(b);if(_e!==r)if(yt=Rr(),yt!==r)if(br=Yv(),br!==r){if(e.charCodeAt(R)===59)Vi=w,R++;else if(Vi=r,De===0)kt(E);if(Vi!==r)ce=O,j=g(j,br),O=j;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function zv(){var O,j,ee,_e;if(O=R,j=hh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)ce=O,j=y(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function Yv(){var O,j,ee,_e;if(O=R,j=dh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)ce=O,j=h(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function Xc(){var O,j,ee,_e;if(O=R,j=og(),j!==r){if(ee=[],T.test(e.charAt(R)))_e=e.charAt(R),R++;else if(_e=r,De===0)kt(S);if(_e!==r){while(_e!==r)if(ee.push(_e),T.test(e.charAt(R)))_e=e.charAt(R),R++;else if(_e=r,De===0)kt(S)}else ee=r;if(ee!==r)if(_e=Jv(),_e!==r)ce=O,j=C(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function og(){var O;if(e.substr(R,2)===A)O=A,R+=2;else if(O=r,De===0)kt(_);return O}function Jv(){var O;if(e.substr(R,2)===k)O=k,R+=2;else if(O=r,De===0)kt(F);return O}function ag(){var O,j,ee,_e,yt,br;if(O=R,j=Qv(),j!==r)if(ee=Rr(),ee!==r){if(_e=Gc(),_e===r)_e=Uc();if(_e!==r)if(yt=Rr(),yt!==r)if(br=Zv(),br!==r)ce=O,j=M(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Qv(){var O,j,ee,_e,yt;if(O=R,e.substr(R,9)===X)j=X,R+=9;else if(j=r,De===0)kt(re);if(j!==r)if(ee=hh(),ee!==r){if(e.substr(R,11)===U)_e=U,R+=11;else if(_e=r,De===0)kt(Y);if(_e!==r)if(yt=Sl(),yt!==r)ce=O,j=K(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function Zv(){var O,j,ee,_e,yt;if(O=R,e.substr(R,7)===Z)j=Z,R+=7;else if(j=r,De===0)kt(Q);if(j!==r)if(ee=hh(),ee!==r){if(e.substr(R,11)===U)_e=U,R+=11;else if(_e=r,De===0)kt(Y);if(_e!==r)if(yt=Sl(),yt!==r)ce=O,j=K(ee),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;return O}function e2(){var O,j,ee,_e;if(O=R,e.charCodeAt(R)===40)j=Ae,R++;else if(j=r,De===0)kt(je);if(j!==r){if(ee=ug(),ee===r)ee=t2();if(ee!==r){if(e.charCodeAt(R)===41)_e=de,R++;else if(_e=r,De===0)kt(Fe);if(_e!==r)ce=O,j=et(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function t2(){var O,j;if(O=R,j=Rr(),j!==r)ce=O,j=B();return O=j,O}function ug(){var O,j,ee,_e,yt,br;if(O=R,j=Rr(),j!==r)if(ee=r2(),ee!==r)if(_e=Rr(),_e!==r){if(yt=ug(),yt===r)yt=null;if(yt!==r)if(br=Rr(),br!==r)ce=O,j=I(ee,yt),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function r2(){var O=n2();if(O===r)O=Qre();return O}function n2(){var O,j,ee;if(O=R,j=dh(),j!==r)if(ee=tI(),ee!==r)ce=O,j=L(j),O=j;else R=O,O=r;else R=O,O=r;return O}function Qre(){var O,j,ee,_e,yt;if(O=R,j=dh(),j!==r)if(ee=Rr(),ee!==r)if(_e=Xc(),_e!==r)if(yt=tI(),yt!==r)ce=O,j=V(j,_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function tI(){var O,j,ee,_e;if(e.charCodeAt(R)===44)O=Be,R++;else if(O=r,De===0)kt(Ze);if(O===r)if(O=R,j=Rr(),j!==r){if(ee=R,De++,e.charCodeAt(R)===41)_e=de,R++;else if(_e=r,De===0)kt(Fe);if(De--,_e!==r)R=ee,ee=void 0;else ee=r;if(ee!==r)j=[j,ee],O=j;else R=O,O=r}else R=O,O=r;return O}function hh(){var O,j,ee;if(O=R,j=[],ie.test(e.charAt(R)))ee=e.charAt(R),R++;else if(ee=r,De===0)kt(le);if(ee!==r){while(ee!==r)if(j.push(ee),ie.test(e.charAt(R)))ee=e.charAt(R),R++;else if(ee=r,De===0)kt(le)}else j=r;if(j!==r)ce=O,j=Ye(j);if(O=j,O===r)O=rI();return O}function dh(){var O=$c();if(O===r){if(O=e2(),O===r){if(O=Zre(),O===r)O=tne()}}return O}function Zre(){var O=ene();if(O===r)O=i2();return O}function ene(){var O,j,ee,_e,yt;if(O=R,j=R,ee=i2(),ee!==r){if(e.charCodeAt(R)===46)_e=Je,R++;else if(_e=r,De===0)kt(ye);if(_e!==r)if(yt=i2(),yt!==r)ee=[ee,_e,yt],j=ee;else R=j,j=r;else R=j,j=r}else R=j,j=r;if(j!==r)ce=O,j=Te(j);return O=j,O}function i2(){var O,j,ee,_e,yt;if(O=R,j=R,De++,ee=ane(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(ee=[],_e=oI(),_e!==r)while(_e!==r)ee.push(_e),_e=oI();else ee=r;if(ee!==r){if(_e=R,De++,yt=sI(),De--,yt===r)_e=void 0;else R=_e,_e=r;if(_e!==r)ce=O,j=Ne(ee),O=j;else R=O,O=r}else R=O,O=r}else R=O,O=r;return O}function tne(){var O=rI();if(O===r)O=ine();return O}function rI(){var O,j,ee,_e;if(O=R,j=lg(),j!==r)if(ee=rne(),ee!==r)if(_e=lg(),_e!==r)ce=O,j=qe(ee),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function rne(){var O,j,ee;if(O=R,j=[],ee=nI(),ee!==r)while(ee!==r)j.push(ee),ee=nI();else j=r;if(j!==r)ce=O,j=ct(j);return O=j,O}function nI(){var O,j,ee;if(O=nne(),O===r){if(O=R,j=R,De++,ee=lg(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(e.length>R)ee=e.charAt(R),R++;else if(ee=r,De===0)kt(tt);if(ee!==r)ce=O,j=ft(ee),O=j;else R=O,O=r}else R=O,O=r}return O}function nne(){var O,j,ee;if(O=R,e.charCodeAt(R)===92)j=Ke,R++;else if(j=r,De===0)kt(xt);if(j!==r)if(ee=lg(),ee!==r)ce=O,j=nn(),O=j;else R=O,O=r;else R=O,O=r;return O}function ine(){var O,j,ee;if(O=R,j=[],ee=iI(),ee!==r)while(ee!==r)j.push(ee),ee=iI();else j=r;if(j!==r)ce=O,j=Xe(j);return O=j,O}function iI(){var O,j,ee,_e;if(O=R,j=R,De++,ee=og(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r){if(ee=R,De++,_e=une(),De--,_e===r)ee=void 0;else R=ee,ee=r;if(ee!==r)if(_e=sI(),_e!==r)ce=O,j=ft(_e),O=j;else R=O,O=r;else R=O,O=r}else R=O,O=r;return O}function sI(){var O;if(_t.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(v);return O}function sne(){var O,j,ee,_e,yt;if(O=R,e.substr(R,2)===te)j=te,R+=2;else if(j=r,De===0)kt(fe);if(j!==r)if(ee=Rr(),ee!==r)if(_e=one(),_e!==r)if(yt=Sl(),yt!==r)ce=O,j=Ie(_e),O=j;else R=O,O=r;else R=O,O=r;else R=O,O=r;else R=O,O=r;return O}function one(){var O,j,ee;O=R,j=[],ee=uI();while(ee!==r)j.push(ee),ee=uI();if(j!==r)ce=O,j=ge(j);return O=j,O}function oI(){var O;if(Ge.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(Le);return O}function ane(){var O;if(W.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(se);return O}function lg(){var O;if(e.charCodeAt(R)===34)O=he,R++;else if(O=r,De===0)kt(xe);return O}function Rr(){var O,j;De++,O=[],j=aI();while(j!==r)O.push(j),j=aI();if(De--,O===r){if(j=r,De===0)kt(Pe)}return O}function aI(){var O=Sl();if(O===r){if(He.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(N)}return O}function uI(){var O,j,ee;if(O=R,j=R,De++,ee=Sl(),De--,ee===r)j=void 0;else R=j,j=r;if(j!==r)if(ee=lne(),ee!==r)ce=O,j=ft(ee),O=j;else R=O,O=r;else R=O,O=r;return O}function une(){var O=Sl();if(O===r){if(e.charCodeAt(R)===59)O=w,R++;else if(O=r,De===0)kt(E)}return O}function Sl(){var O;if(ae.test(e.charAt(R)))O=e.charAt(R),R++;else if(O=r,De===0)kt(me);return O}function lne(){var O;if(e.length>R)O=e.charAt(R),R++;else if(O=r,De===0)kt(tt);return O}if(gt=s(),gt!==r&&R===e.length)return gt;else{if(gt!==r&&R<e.length)kt(gu());throw Pa(Ve,We<e.length?e.charAt(We):null,We<e.length?vi(We,We+1):vi(We,We))}}f7.exports={SyntaxError:ac,parse:k2e}});var d7=P(function(Jb,m1){var h7=Jb&&Jb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};(function(e){if(typeof m1==="object"&&typeof m1.exports==="object"){var t=e(require,Jb);if(t!==void 0)m1.exports=t}else if(typeof define==="function"&&define.amd)define(["require","exports","bplist-creator","bplist-parser","./parse","./readFile","./readFileSync","./stringify","./writeBinaryFile","./writeBinaryFileSync","./writeFile","./writeFileSync"],e)})(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=h7(e("bplist-creator")),n=h7(e("bplist-parser")),s=e("./parse"),o=e("./readFile"),a=e("./readFileSync"),u=e("./stringify"),l=e("./writeBinaryFile"),c=e("./writeBinaryFileSync"),f=e("./writeFile"),p=e("./writeFileSync"),d={bplistCreator:r.default,bplistParser:n.default,parse:s.parse,readFile:o.readFile,readFileSync:a.readFileSync,stringify:u.stringify,writeBinaryFile:l.writeBinaryFile,writeBinaryFileSync:c.writeBinaryFileSync,writeFile:f.writeFile,writeFileSync:p.writeFileSync};t.default=d,m1.exports=d})});var fx=P(function(s5e,v7){var __dirname="/Users/cedric/Projects/expo/launch/node_modules/.bun/xcode@3.0.1/node_modules/xcode/lib",m7=require("util"),Pi=m7.format,O2e=require("events").EventEmitter,Ju=require("path"),I2e=r7(),N2e=require("child_process").fork,R2e=o7(),cn=px(),g7=require("fs"),F2e=p7(),B2e=d7(),Yr=/_comment$/;function Ce(e){if(!(this instanceof Ce))return new Ce(e);this.filepath=Ju.resolve(e)}m7.inherits(Ce,O2e);Ce.prototype.parse=function(e){var t=N2e(__dirname+"/parseJob.js",[this.filepath]);if(t.on("message",function(r){if(r.name=="SyntaxError"||r.code)this.emit("error",r);else this.hash=r,this.emit("end",null,r)}.bind(this)),e)this.on("error",e),this.on("end",e);return this};Ce.prototype.parseSync=function(){var e=g7.readFileSync(this.filepath,"utf-8");return this.hash=F2e.parse(e),this};Ce.prototype.writeSync=function(e){return this.writer=new R2e(this.hash,e),this.writer.writeSync()};Ce.prototype.allUuids=function(){var e=this.hash.project.objects,t=[],r;for(key in e)r=e[key],t=t.concat(Object.keys(r));return t=t.filter(function(n){return!Yr.test(n)&&n.length==24}),t};Ce.prototype.generateUuid=function(){var e=I2e.v4().replace(/-/g,"").substr(0,24).toUpperCase();if(this.allUuids().indexOf(e)>=0)return this.generateUuid();else return e};Ce.prototype.addPluginFile=function(e,t){var r=new cn(e,t);if(r.plugin=!0,b7(r,this),this.hasFile(r.path))return null;return r.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(r),this.addToPluginsPbxGroup(r),r};Ce.prototype.removePluginFile=function(e,t){var r=new cn(e,t);return b7(r,this),this.removeFromPbxFileReferenceSection(r),this.removeFromPluginsPbxGroup(r),r};Ce.prototype.addProductFile=function(e,t){var r=new cn(e,t);return r.includeInIndex=0,r.fileRef=this.generateUuid(),r.target=t?t.target:void 0,r.group=t?t.group:void 0,r.uuid=this.generateUuid(),r.path=r.basename,this.addToPbxFileReferenceSection(r),this.addToProductsPbxGroup(r),r};Ce.prototype.removeProductFile=function(e,t){var r=new cn(e,t);return this.removeFromProductsPbxGroup(r),r};Ce.prototype.addSourceFile=function(e,t,r){var n;if(r)n=this.addFile(e,r,t);else n=this.addPluginFile(e,t);if(!n)return!1;return n.target=t?t.target:void 0,n.uuid=this.generateUuid(),this.addToPbxBuildFileSection(n),this.addToPbxSourcesBuildPhase(n),n};Ce.prototype.removeSourceFile=function(e,t,r){var n;if(r)n=this.removeFile(e,r,t);else n=this.removePluginFile(e,t);return n.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(n),this.removeFromPbxSourcesBuildPhase(n),n};Ce.prototype.addHeaderFile=function(e,t,r){if(r)return this.addFile(e,r,t);else return this.addPluginFile(e,t)};Ce.prototype.removeHeaderFile=function(e,t,r){if(r)return this.removeFile(e,r,t);else return this.removePluginFile(e,t)};Ce.prototype.addResourceFile=function(e,t,r){t=t||{};var n;if(t.plugin){if(n=this.addPluginFile(e,t),!n)return!1}else if(n=new cn(e,t),this.hasFile(n.path))return!1;if(n.uuid=this.generateUuid(),n.target=t?t.target:void 0,!t.plugin)w7(n,this),n.fileRef=this.generateUuid();if(!t.variantGroup)this.addToPbxBuildFileSection(n),this.addToPbxResourcesBuildPhase(n);if(!t.plugin)if(this.addToPbxFileReferenceSection(n),r){if(this.getPBXGroupByKey(r))this.addToPbxGroup(n,r);else if(this.getPBXVariantGroupByKey(r))this.addToPbxVariantGroup(n,r)}else this.addToResourcesPbxGroup(n);return n};Ce.prototype.removeResourceFile=function(e,t,r){var n=new cn(e,t);if(n.target=t?t.target:void 0,w7(n,this),this.removeFromPbxBuildFileSection(n),this.removeFromPbxFileReferenceSection(n),r){if(this.getPBXGroupByKey(r))this.removeFromPbxGroup(n,r);else if(this.getPBXVariantGroupByKey(r))this.removeFromPbxVariantGroup(n,r)}else this.removeFromResourcesPbxGroup(n);return this.removeFromPbxResourcesBuildPhase(n),n};Ce.prototype.addFramework=function(e,t){var r=t&&t.customFramework==!0,n=!t||(t.link==null||t.link),s=t&&t.embed;if(t)delete t.embed;var o=new cn(e,t);if(o.uuid=this.generateUuid(),o.fileRef=this.generateUuid(),o.target=t?t.target:void 0,this.hasFile(o.path))return!1;if(this.addToPbxBuildFileSection(o),this.addToPbxFileReferenceSection(o),this.addToFrameworksPbxGroup(o),n)this.addToPbxFrameworksBuildPhase(o);if(r){if(this.addToFrameworkSearchPaths(o),s){t.embed=s;var a=new cn(e,t);return a.uuid=this.generateUuid(),a.fileRef=o.fileRef,this.addToPbxBuildFileSection(a),this.addToPbxEmbedFrameworksBuildPhase(a),a}}return o};Ce.prototype.removeFramework=function(e,t){var r=t&&t.embed;if(t)delete t.embed;var n=new cn(e,t);if(n.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(n),this.removeFromPbxFileReferenceSection(n),this.removeFromFrameworksPbxGroup(n),this.removeFromPbxFrameworksBuildPhase(n),t&&t.customFramework)this.removeFromFrameworkSearchPaths(n);t=t||{},t.embed=!0;var s=new cn(e,t);return s.fileRef=n.fileRef,this.removeFromPbxBuildFileSection(s),this.removeFromPbxEmbedFrameworksBuildPhase(s),n};Ce.prototype.addCopyfile=function(e,t){var r=new cn(e,t);if(this.hasFile(r.path))r=this.hasFile(r.path);return r.fileRef=r.uuid=this.generateUuid(),r.target=t?t.target:void 0,this.addToPbxBuildFileSection(r),this.addToPbxFileReferenceSection(r),this.addToPbxCopyfilesBuildPhase(r),r};Ce.prototype.pbxCopyfilesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",e)};Ce.prototype.addToPbxCopyfilesBuildPhase=function(e){var t=this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",e.target);t.files.push(Yu(e))};Ce.prototype.removeCopyfile=function(e,t){var r=new cn(e,t);return r.target=t?t.target:void 0,this.removeFromPbxBuildFileSection(r),this.removeFromPbxFileReferenceSection(r),this.removeFromPbxCopyfilesBuildPhase(r),r};Ce.prototype.removeFromPbxCopyfilesBuildPhase=function(e){var t=this.pbxCopyfilesBuildPhaseObj(e.target);for(i in t.files)if(t.files[i].comment==uc(e)){t.files.splice(i,1);break}};Ce.prototype.addStaticLibrary=function(e,t){t=t||{};var r;if(t.plugin){if(r=this.addPluginFile(e,t),!r)return!1}else if(r=new cn(e,t),this.hasFile(r.path))return!1;if(r.uuid=this.generateUuid(),r.target=t?t.target:void 0,!t.plugin)r.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(r);return this.addToPbxBuildFileSection(r),this.addToPbxFrameworksBuildPhase(r),this.addToLibrarySearchPaths(r),r};Ce.prototype.addToPbxBuildFileSection=function(e){var t=Pi("%s_comment",e.uuid);this.pbxBuildFileSection()[e.uuid]=M2e(e),this.pbxBuildFileSection()[t]=q2e(e)};Ce.prototype.removeFromPbxBuildFileSection=function(e){var t;for(t in this.pbxBuildFileSection())if(this.pbxBuildFileSection()[t].fileRef_comment==e.basename){e.uuid=t,delete this.pbxBuildFileSection()[t];var r=Pi("%s_comment",t);delete this.pbxBuildFileSection()[r]}};Ce.prototype.addPbxGroup=function(e,t,r,n){var s=this.hash.project.objects.PBXGroup,o=this.generateUuid(),a=Pi("%s_comment",o),u={isa:"PBXGroup",children:[],name:t,path:r,sourceTree:n?n:'"<group>"'},l=this.pbxFileReferenceSection(),c={};for(var f in l){if(!Yr.test(f))continue;var p=f.split(Yr)[0],d=l[p];c[d.path]={fileRef:p,basename:l[f]}}for(var m=0;m<e.length;m++){var b=e[m],w='"'+b+'"';if(c[b]){u.children.push(In(c[b]));continue}else if(c[w]){u.children.push(In(c[w]));continue}var E=new cn(b);E.uuid=this.generateUuid(),E.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(E),this.addToPbxBuildFileSection(E),u.children.push(In(E))}if(s)s[o]=u,s[a]=t;return{uuid:o,pbxGroup:u}};Ce.prototype.removePbxGroup=function(e){var t=this.hash.project.objects.PBXGroup,r,n;for(r in t){if(!Yr.test(r))continue;if(t[r]==e)n=r.split(Yr)[0],delete t[n]}};Ce.prototype.addToPbxProjectSection=function(e){var t={value:e.uuid,comment:U2e(e.pbxNativeTarget)};this.pbxProjectSection()[this.getFirstProject().uuid].targets.push(t)};Ce.prototype.addToPbxNativeTargetSection=function(e){var t=Pi("%s_comment",e.uuid);this.pbxNativeTargetSection()[e.uuid]=e.pbxNativeTarget,this.pbxNativeTargetSection()[t]=e.pbxNativeTarget.name};Ce.prototype.addToPbxFileReferenceSection=function(e){var t=Pi("%s_comment",e.fileRef);this.pbxFileReferenceSection()[e.fileRef]=y7(e),this.pbxFileReferenceSection()[t]=$2e(e)};Ce.prototype.removeFromPbxFileReferenceSection=function(e){var t,r=y7(e);for(t in this.pbxFileReferenceSection())if(this.pbxFileReferenceSection()[t].name==r.name||'"'+this.pbxFileReferenceSection()[t].name+'"'==r.name||this.pbxFileReferenceSection()[t].path==r.path||'"'+this.pbxFileReferenceSection()[t].path+'"'==r.path){e.fileRef=e.uuid=t,delete this.pbxFileReferenceSection()[t];break}var n=Pi("%s_comment",e.fileRef);if(this.pbxFileReferenceSection()[n]!=null)delete this.pbxFileReferenceSection()[n];return e};Ce.prototype.addToXcVersionGroupSection=function(e){if(!e.models||!e.currentModel)throw Error("Cannot create a XCVersionGroup section from not a data model document file");var t=Pi("%s_comment",e.fileRef);if(!this.xcVersionGroupSection()[e.fileRef])this.xcVersionGroupSection()[e.fileRef]={isa:"XCVersionGroup",children:e.models.map(function(r){return r.fileRef}),currentVersion:e.currentModel.fileRef,name:Ju.basename(e.path),path:e.path,sourceTree:'"<group>"',versionGroupType:"wrapper.xcdatamodel"},this.xcVersionGroupSection()[t]=Ju.basename(e.path)};Ce.prototype.addToPluginsPbxGroup=function(e){var t=this.pbxGroupByName("Plugins");if(!t)this.addPbxGroup([e.path],"Plugins");else t.children.push(In(e))};Ce.prototype.removeFromPluginsPbxGroup=function(e){if(!this.pbxGroupByName("Plugins"))return null;var t=this.pbxGroupByName("Plugins").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToResourcesPbxGroup=function(e){var t=this.pbxGroupByName("Resources");if(!t)this.addPbxGroup([e.path],"Resources");else t.children.push(In(e))};Ce.prototype.removeFromResourcesPbxGroup=function(e){if(!this.pbxGroupByName("Resources"))return null;var t=this.pbxGroupByName("Resources").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToFrameworksPbxGroup=function(e){var t=this.pbxGroupByName("Frameworks");if(!t)this.addPbxGroup([e.path],"Frameworks");else t.children.push(In(e))};Ce.prototype.removeFromFrameworksPbxGroup=function(e){if(!this.pbxGroupByName("Frameworks"))return null;var t=this.pbxGroupByName("Frameworks").children;for(i in t)if(In(e).value==t[i].value&&In(e).comment==t[i].comment){t.splice(i,1);break}};Ce.prototype.addToPbxEmbedFrameworksBuildPhase=function(e){var t=this.pbxEmbedFrameworksBuildPhaseObj(e.target);if(t)t.files.push(Yu(e))};Ce.prototype.removeFromPbxEmbedFrameworksBuildPhase=function(e){var t=this.pbxEmbedFrameworksBuildPhaseObj(e.target);if(t){var r=[];for(i in t.files)if(t.files[i].comment!=uc(e))r.push(t.files[i]);t.files=r}};Ce.prototype.addToProductsPbxGroup=function(e){var t=this.pbxGroupByName("Products");if(!t)this.addPbxGroup([e.path],"Products");else t.children.push(In(e))};Ce.prototype.removeFromProductsPbxGroup=function(e){if(!this.pbxGroupByName("Products"))return null;var t=this.pbxGroupByName("Products").children,r;for(r in t)if(In(e).value==t[r].value&&In(e).comment==t[r].comment){t.splice(r,1);break}};Ce.prototype.addToPbxSourcesBuildPhase=function(e){var t=this.pbxSourcesBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxSourcesBuildPhase=function(e){var t=this.pbxSourcesBuildPhaseObj(e.target),r;for(r in t.files)if(t.files[r].comment==uc(e)){t.files.splice(r,1);break}};Ce.prototype.addToPbxResourcesBuildPhase=function(e){var t=this.pbxResourcesBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxResourcesBuildPhase=function(e){var t=this.pbxResourcesBuildPhaseObj(e.target),r;for(r in t.files)if(t.files[r].comment==uc(e)){t.files.splice(r,1);break}};Ce.prototype.addToPbxFrameworksBuildPhase=function(e){var t=this.pbxFrameworksBuildPhaseObj(e.target);t.files.push(Yu(e))};Ce.prototype.removeFromPbxFrameworksBuildPhase=function(e){var t=this.pbxFrameworksBuildPhaseObj(e.target);for(i in t.files)if(t.files[i].comment==uc(e)){t.files.splice(i,1);break}};Ce.prototype.addXCConfigurationList=function(e,t,r){var n=this.pbxXCBuildConfigurationSection(),s=this.pbxXCConfigurationList(),o=this.generateUuid(),a=Pi("%s_comment",o),u={isa:"XCConfigurationList",buildConfigurations:[],defaultConfigurationIsVisible:0,defaultConfigurationName:t};for(var l=0;l<e.length;l++){var c=e[l],f=this.generateUuid(),p=Pi("%s_comment",f);n[f]=c,n[p]=c.name,u.buildConfigurations.push({value:f,comment:c.name})}if(s)s[o]=u,s[a]=r;return{uuid:o,xcConfigurationList:u}};Ce.prototype.addTargetDependency=function(e,t){if(!e)return;var r=this.pbxNativeTargetSection();if(typeof r[e]>"u")throw Error("Invalid target: "+e);for(var n=0;n<t.length;n++){var s=t[n];if(typeof r[s]>"u")throw Error("Invalid target: "+s)}var o="PBXTargetDependency",a="PBXContainerItemProxy",u=this.hash.project.objects[o],l=this.hash.project.objects[a];for(var n=0;n<t.length;n++){var c=t[n],f=Pi("%s_comment",c),p=this.generateUuid(),d=Pi("%s_comment",p),m=this.generateUuid(),b=Pi("%s_comment",m),w={isa:a,containerPortal:this.hash.project.rootObject,containerPortal_comment:this.hash.project.rootObject_comment,proxyType:1,remoteGlobalIDString:c,remoteInfo:r[c].name},E={isa:o,target:c,target_comment:r[f],targetProxy:m,targetProxy_comment:a};if(l&&u)l[m]=w,l[b]=a,u[p]=E,u[d]=o,r[e].dependencies.push({value:p,comment:o})}return{uuid:e,target:r[e]}};Ce.prototype.addBuildPhase=function(e,t,r,n,s,o){var a,u=this.pbxFileReferenceSection(),l=this.pbxBuildFileSection(),c=this.generateUuid(),f=n||this.getFirstTarget().uuid,p=Pi("%s_comment",c),d={isa:t,buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},m={};if(t==="PBXCopyFilesBuildPhase")d=L2e(d,s,o,r);else if(t==="PBXShellScriptBuildPhase")d=j2e(d,s,r);if(!this.hash.project.objects[t])this.hash.project.objects[t]={};if(!this.hash.project.objects[t][c])this.hash.project.objects[t][c]=d,this.hash.project.objects[t][p]=r;if(this.hash.project.objects.PBXNativeTarget[f].buildPhases)this.hash.project.objects.PBXNativeTarget[f].buildPhases.push({value:c,comment:r});for(var b in l){if(!Yr.test(b))continue;var w=b.split(Yr)[0],E=l[w];if(fileReference=u[E.fileRef],!fileReference)continue;var D=new cn(fileReference.path);m[fileReference.path]={uuid:w,basename:D.basename,group:D.group}}for(var x=0;x<e.length;x++){var g=e[x],y='"'+g+'"',h=new cn(g);if(m[g]){d.files.push(Yu(m[g]));continue}else if(m[y]){d.files.push(Yu(m[y]));continue}h.uuid=this.generateUuid(),h.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(h),this.addToPbxBuildFileSection(h),d.files.push(Yu(h))}if(a)a[c]=d,a[p]=r;return{uuid:c,buildPhase:d}};Ce.prototype.pbxProjectSection=function(){return this.hash.project.objects.PBXProject};Ce.prototype.pbxBuildFileSection=function(){return this.hash.project.objects.PBXBuildFile};Ce.prototype.pbxXCBuildConfigurationSection=function(){return this.hash.project.objects.XCBuildConfiguration};Ce.prototype.pbxFileReferenceSection=function(){return this.hash.project.objects.PBXFileReference};Ce.prototype.pbxNativeTargetSection=function(){return this.hash.project.objects.PBXNativeTarget};Ce.prototype.xcVersionGroupSection=function(){if(typeof this.hash.project.objects.XCVersionGroup!=="object")this.hash.project.objects.XCVersionGroup={};return this.hash.project.objects.XCVersionGroup};Ce.prototype.pbxXCConfigurationList=function(){return this.hash.project.objects.XCConfigurationList};Ce.prototype.pbxGroupByName=function(e){var t=this.hash.project.objects.PBXGroup,r,n;for(r in t){if(!Yr.test(r))continue;if(t[r]==e)return n=r.split(Yr)[0],t[n]}return null};Ce.prototype.pbxTargetByName=function(e){return this.pbxItemByComment(e,"PBXNativeTarget")};Ce.prototype.findTargetKey=function(e){var t=this.hash.project.objects.PBXNativeTarget;for(var r in t){if(Yr.test(r))continue;var n=t[r];if(n.name===e)return r}return null};Ce.prototype.pbxItemByComment=function(e,t){var r=this.hash.project.objects[t],n,s;for(n in r){if(!Yr.test(n))continue;if(r[n]==e)return s=n.split(Yr)[0],r[s]}return null};Ce.prototype.pbxSourcesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXSourcesBuildPhase","Sources",e)};Ce.prototype.pbxResourcesBuildPhaseObj=function(e){return this.buildPhaseObject("PBXResourcesBuildPhase","Resources",e)};Ce.prototype.pbxFrameworksBuildPhaseObj=function(e){return this.buildPhaseObject("PBXFrameworksBuildPhase","Frameworks",e)};Ce.prototype.pbxEmbedFrameworksBuildPhaseObj=function(e){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Embed Frameworks",e)};Ce.prototype.buildPhase=function(e,t){if(!t)return;var r=this.pbxNativeTargetSection();if(typeof r[t]>"u")throw Error("Invalid target: "+t);var n=r[t],s=n.buildPhases;for(var o in s){var a=s[o];if(a.comment==e)return a.value+"_comment"}};Ce.prototype.buildPhaseObject=function(e,t,r){var n=this.hash.project.objects[e],s,o,a,u=this.buildPhase(t,r);for(a in n){if(!Yr.test(a))continue;if(u&&u!=a)continue;if(n[a]==t)return o=a.split(Yr)[0],n[o]}return null};Ce.prototype.addBuildProperty=function(e,t,r){var n=ki(this.pbxXCBuildConfigurationSection()),s,o;for(s in n)if(o=n[s],!r||o.name===r)o.buildSettings[e]=t};Ce.prototype.removeBuildProperty=function(e,t){var r=ki(this.pbxXCBuildConfigurationSection()),n,s;for(n in r)if(s=r[n],s.buildSettings[e]&&!t||s.name===t)delete s.buildSettings[e]};Ce.prototype.updateBuildProperty=function(e,t,r,n){let s=[];if(n){let l=this.pbxTargetByName(n),c=l&&l.buildConfigurationList,f=this.pbxXCConfigurationList();for(let p in f)if(!Yr.test(p)&&c===p){let d=f[p].buildConfigurations;for(let m of d)s.push(m.value);break}}var o=this.pbxXCBuildConfigurationSection();for(var a in o)if(!Yr.test(a)){if(n&&!s.includes(a))continue;var u=o[a];if(r&&u.name===r||!r)u.buildSettings[e]=t}};Ce.prototype.updateProductName=function(e){this.updateBuildProperty("PRODUCT_NAME",'"'+e+'"')};Ce.prototype.removeFromFrameworkSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="FRAMEWORK_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(a=o[n],a&&Array.isArray(a)){var l=a.filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=a.indexOf(c);a.splice(f,1)})}}};Ce.prototype.addToFrameworkSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.FRAMEWORK_SEARCH_PATHS||s.FRAMEWORK_SEARCH_PATHS===r)s.FRAMEWORK_SEARCH_PATHS=[r];s.FRAMEWORK_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.removeFromLibrarySearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="LIBRARY_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(a=o[n],a&&Array.isArray(a)){var l=a.filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=a.indexOf(c);a.splice(f,1)})}}};Ce.prototype.addToLibrarySearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.LIBRARY_SEARCH_PATHS||s.LIBRARY_SEARCH_PATHS===r)s.LIBRARY_SEARCH_PATHS=[r];if(typeof e==="string")s.LIBRARY_SEARCH_PATHS.push(e);else s.LIBRARY_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.removeFromHeaderSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="HEADER_SEARCH_PATHS",s,o,a,u=Yf(e,this);for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(o[n]){var l=o[n].filter(function(c){return c.indexOf(u)>-1});l.forEach(function(c){var f=o[n].indexOf(c);o[n].splice(f,1)})}}};Ce.prototype.addToHeaderSearchPaths=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n,s,o;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(!s.HEADER_SEARCH_PATHS)s.HEADER_SEARCH_PATHS=[r];if(typeof e==="string")s.HEADER_SEARCH_PATHS.push(e);else s.HEADER_SEARCH_PATHS.push(Yf(e,this))}};Ce.prototype.addToOtherLinkerFlags=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r='"$(inherited)"',n="OTHER_LDFLAGS",s,o;for(s in t){if(o=t[s].buildSettings,Jo(o.PRODUCT_NAME)!=this.productName)continue;if(!o[n]||o[n]===r)o[n]=[r];o[n].push(e)}};Ce.prototype.removeFromOtherLinkerFlags=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r="OTHER_LDFLAGS",n,s;for(n in t){if(s=t[n].buildSettings,Jo(s.PRODUCT_NAME)!=this.productName)continue;if(s[r]){var o=s[r].filter(function(a){return a.indexOf(e)>-1});o.forEach(function(a){var u=s[r].indexOf(a);s[r].splice(u,1)})}}};Ce.prototype.addToBuildSettings=function(e,t){var r=ki(this.pbxXCBuildConfigurationSection()),n,s;for(n in r)s=r[n].buildSettings,s[e]=t};Ce.prototype.removeFromBuildSettings=function(e){var t=ki(this.pbxXCBuildConfigurationSection()),r,n;for(r in t)if(n=t[r].buildSettings,n[e])delete n[e]};Ce.prototype.__defineGetter__("productName",function(){var e=ki(this.pbxXCBuildConfigurationSection()),t,r;for(t in e)if(r=e[t].buildSettings.PRODUCT_NAME,r)return Jo(r)});Ce.prototype.hasFile=function(e){var t=ki(this.pbxFileReferenceSection()),r,n;for(n in t)if(r=t[n],r.path==e||r.path=='"'+e+'"')return r;return!1};Ce.prototype.addTarget=function(e,t,r,n){var s=this.generateUuid(),o=t,a=r||e,u=e.trim(),l=n;if(!u)throw Error("Target name missing.");if(!o)throw Error("Target type missing.");if(!g1(o))throw Error("Target type invalid: "+o);var c=[{name:"Debug",isa:"XCBuildConfiguration",buildSettings:{GCC_PREPROCESSOR_DEFINITIONS:['"DEBUG=1"','"$(inherited)"'],INFOPLIST_FILE:'"'+Ju.join(a,a+'-Info.plist"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+u+'"',SKIP_INSTALL:"YES"}},{name:"Release",isa:"XCBuildConfiguration",buildSettings:{INFOPLIST_FILE:'"'+Ju.join(a,a+'-Info.plist"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+u+'"',SKIP_INSTALL:"YES"}}];if(l)c=c.map((x)=>(x.buildSettings.PRODUCT_BUNDLE_IDENTIFIER='"'+l+'"',x));var f=this.addXCConfigurationList(c,"Release",'Build configuration list for PBXNativeTarget "'+u+'"'),p=u,d=g1(o),m=G2e(d),b=this.addProductFile(p,{group:"Copy Files",target:s,explicitFileType:m}),w=b.basename;this.addToPbxBuildFileSection(b);var E={uuid:s,pbxNativeTarget:{isa:"PBXNativeTarget",name:'"'+u+'"',productName:'"'+u+'"',productReference:b.fileRef,productType:'"'+g1(o)+'"',buildConfigurationList:f.uuid,buildPhases:[],buildRules:[],dependencies:[]}};if(this.addToPbxNativeTargetSection(E),o==="app_extension")this.addBuildPhase([],"PBXCopyFilesBuildPhase","Copy Files",this.getFirstTarget().uuid,o),this.addToPbxCopyfilesBuildPhase(b);else if(o==="watch2_app")this.addBuildPhase([u+".app"],"PBXCopyFilesBuildPhase","Embed Watch Content",this.getFirstTarget().uuid,o,'"$(CONTENTS_FOLDER_PATH)/Watch"');else if(o==="watch2_extension"){var D=this.getTarget(g1("watch2_app"));if(D)this.addBuildPhase([u+".appex"],"PBXCopyFilesBuildPhase","Embed App Extensions",D.uuid,o)}if(this.addToPbxProjectSection(E),o==="watch2_extension"){var D=this.getTarget(g1("watch2_app"));if(D)this.addTargetDependency(D.uuid,[E.uuid])}else this.addTargetDependency(this.getFirstTarget().uuid,[E.uuid]);return E};function M2e(e){var t=Object.create(null);if(t.isa="PBXBuildFile",t.fileRef=e.fileRef,t.fileRef_comment=e.basename,e.settings)t.settings=e.settings;return t}function y7(e){var t={isa:"PBXFileReference",name:'"'+e.basename+'"',path:'"'+e.path.replace(/\\/g,"/")+'"',sourceTree:e.sourceTree,fileEncoding:e.fileEncoding,lastKnownFileType:e.lastKnownFileType,explicitFileType:e.explicitFileType,includeInIndex:e.includeInIndex};return t}function In(e){var t=Object.create(null);return t.value=e.fileRef,t.comment=e.basename,t}function Yu(e){var t=Object.create(null);return t.value=e.uuid,t.comment=uc(e),t}function L2e(e,t,r,n){var s={application:"wrapper",app_extension:"plugins",bundle:"wrapper",command_line_tool:"wrapper",dynamic_library:"products_directory",framework:"shared_frameworks",frameworks:"frameworks",static_library:"products_directory",unit_test_bundle:"wrapper",watch_app:"wrapper",watch2_app:"products_directory",watch_extension:"plugins",watch2_extension:"plugins"},o={absolute_path:0,executables:6,frameworks:10,java_resources:15,plugins:13,products_directory:16,resources:7,shared_frameworks:11,shared_support:12,wrapper:1,xpc_services:0};return e.name='"'+n+'"',e.dstPath=r||'""',e.dstSubfolderSpec=o[s[t]],e}function j2e(e,t,r){return e.name='"'+r+'"',e.inputPaths=t.inputPaths||[],e.outputPaths=t.outputPaths||[],e.shellPath=t.shellPath,e.shellScript='"'+t.shellScript.replace(/"/g,"\\\"")+'"',e}function q2e(e){return uc(e)}function $2e(e){return e.basename||Ju.basename(e.path)}function U2e(e){return e.name}function uc(e){return Pi("%s in %s",e.basename,e.group)}function b7(e,t){return T7(e,t,"Plugins")}function w7(e,t){return T7(e,t,"Resources")}function T7(e,t,r){var n=new RegExp("^"+r+"[\\\\/]");if(t.pbxGroupByName(r).path)e.path=e.path.replace(n,"");return e}function Yf(e,t){var r=t.pbxGroupByName("Plugins"),n=r?r.path:null,s=Ju.dirname(e.path);if(s==".")s="";else s="/"+s;if(e.plugin&&n)return'"\\"$(SRCROOT)/'+Jo(n)+'\\""';else if(e.customFramework&&e.dirname)return'"\\"'+e.dirname+'\\""';else return'"\\"$(SRCROOT)/'+t.productName+s+'\\""'}function ki(e){var t=Object.keys(e),r={},n=0;for(n;n<t.length;n++)if(!Yr.test(t[n]))r[t[n]]=e[t[n]];return r}function Jo(e){if(e)return e.replace(/^"(.*)"$/,"$1")}function g1(e){return PRODUCTTYPE_BY_TARGETTYPE={application:"com.apple.product-type.application",app_extension:"com.apple.product-type.app-extension",bundle:"com.apple.product-type.bundle",command_line_tool:"com.apple.product-type.tool",dynamic_library:"com.apple.product-type.library.dynamic",framework:"com.apple.product-type.framework",static_library:"com.apple.product-type.library.static",unit_test_bundle:"com.apple.product-type.bundle.unit-test",watch_app:"com.apple.product-type.application.watchapp",watch2_app:"com.apple.product-type.application.watchapp2",watch_extension:"com.apple.product-type.watchkit-extension",watch2_extension:"com.apple.product-type.watchkit2-extension"},PRODUCTTYPE_BY_TARGETTYPE[e]}function G2e(e){return FILETYPE_BY_PRODUCTTYPE={"com.apple.product-type.application":'"wrapper.application"',"com.apple.product-type.app-extension":'"wrapper.app-extension"',"com.apple.product-type.bundle":'"wrapper.plug-in"',"com.apple.product-type.tool":'"compiled.mach-o.dylib"',"com.apple.product-type.library.dynamic":'"compiled.mach-o.dylib"',"com.apple.product-type.framework":'"wrapper.framework"',"com.apple.product-type.library.static":'"archive.ar"',"com.apple.product-type.bundle.unit-test":'"wrapper.cfbundle"',"com.apple.product-type.application.watchapp":'"wrapper.application"',"com.apple.product-type.application.watchapp2":'"wrapper.application"',"com.apple.product-type.watchkit-extension":'"wrapper.app-extension"',"com.apple.product-type.watchkit2-extension":'"wrapper.app-extension"'},FILETYPE_BY_PRODUCTTYPE[e]}Ce.prototype.getFirstProject=function(){var e=this.pbxProjectSection(),t=Object.keys(e)[0],r=e[t];return{uuid:t,firstProject:r}};Ce.prototype.getFirstTarget=function(){var e=this.getFirstProject().firstProject.targets[0].value,t=this.pbxNativeTargetSection()[e];return{uuid:e,firstTarget:t}};Ce.prototype.getTarget=function(e){var t=this.getFirstProject().firstProject.targets,r=this.pbxNativeTargetSection();for(var n=0;n<t.length;n++){var s=t[n],o=s.value;if(r[o].productType==='"'+e+'"'){var a=this.pbxNativeTargetSection()[o];return{uuid:o,target:a}}}return null};Ce.prototype.addToPbxGroupType=function(e,t,r){var n=this.getPBXGroupByKeyAndType(t,r);if(n&&n.children!==void 0)if(typeof e==="string"){var s={value:e};if(this.getPBXGroupByKey(e))s.comment=this.getPBXGroupByKey(e).name;else if(this.getPBXVariantGroupByKey(e))s.comment=this.getPBXVariantGroupByKey(e).name;n.children.push(s)}else n.children.push(In(e))};Ce.prototype.addToPbxVariantGroup=function(e,t){this.addToPbxGroupType(e,t,"PBXVariantGroup")};Ce.prototype.addToPbxGroup=function(e,t){this.addToPbxGroupType(e,t,"PBXGroup")};Ce.prototype.pbxCreateGroupWithType=function(e,t,r){var n={isa:'"'+r+'"',children:[],name:e,sourceTree:'"<group>"'};if(t)n.path=t;var s=this.generateUuid(),o=s+"_comment",a=this.hash.project.objects[r];if(!a)a=this.hash.project.objects[r]={};return a[o]=e,a[s]=n,s};Ce.prototype.pbxCreateVariantGroup=function(e){return this.pbxCreateGroupWithType(e,void 0,"PBXVariantGroup")};Ce.prototype.pbxCreateGroup=function(e,t){return this.pbxCreateGroupWithType(e,t,"PBXGroup")};Ce.prototype.removeFromPbxGroupAndType=function(e,t,r){var n=this.getPBXGroupByKeyAndType(t,r);if(n){var s=n.children,o;for(o in s)if(In(e).value==s[o].value&&In(e).comment==s[o].comment){s.splice(o,1);break}}};Ce.prototype.removeFromPbxGroup=function(e,t){this.removeFromPbxGroupAndType(e,t,"PBXGroup")};Ce.prototype.removeFromPbxVariantGroup=function(e,t){this.removeFromPbxGroupAndType(e,t,"PBXVariantGroup")};Ce.prototype.getPBXGroupByKeyAndType=function(e,t){return this.hash.project.objects[t][e]};Ce.prototype.getPBXGroupByKey=function(e){return this.hash.project.objects.PBXGroup[e]};Ce.prototype.getPBXVariantGroupByKey=function(e){return this.hash.project.objects.PBXVariantGroup[e]};Ce.prototype.findPBXGroupKeyAndType=function(e,t){var r=this.hash.project.objects[t],n;for(var s in r){if(Yr.test(s))continue;var o=r[s];if(e&&e.path&&e.name){if(e.path===o.path&&e.name===o.name){n=s;break}}else if(e&&e.path){if(e.path===o.path){n=s;break}}else if(e&&e.name){if(e.name===o.name){n=s;break}}}return n};Ce.prototype.findPBXGroupKey=function(e){return this.findPBXGroupKeyAndType(e,"PBXGroup")};Ce.prototype.findPBXVariantGroupKey=function(e){return this.findPBXGroupKeyAndType(e,"PBXVariantGroup")};Ce.prototype.addLocalizationVariantGroup=function(e){var t=this.pbxCreateVariantGroup(e),r=this.findPBXGroupKey({name:"Resources"});this.addToPbxGroup(t,r);var n={uuid:this.generateUuid(),fileRef:t,basename:e};return this.addToPbxBuildFileSection(n),this.addToPbxResourcesBuildPhase(n),n};Ce.prototype.addKnownRegion=function(e){if(!this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions)this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions=[];if(!this.hasKnownRegion(e))this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions.push(e)};Ce.prototype.removeKnownRegion=function(e){var t=this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions;if(t){for(var r=0;r<t.length;r++)if(t[r]===e){t.splice(r,1);break}this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions=t}};Ce.prototype.hasKnownRegion=function(e){var t=this.pbxProjectSection()[this.getFirstProject().uuid].knownRegions;if(t){for(var r in t)if(t[r]===e)return!0}return!1};Ce.prototype.getPBXObject=function(e){return this.hash.project.objects[e]};Ce.prototype.addFile=function(e,t,r){var n=new cn(e,r);if(this.hasFile(n.path))return null;if(n.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(n),this.getPBXGroupByKey(t))this.addToPbxGroup(n,t);else if(this.getPBXVariantGroupByKey(t))this.addToPbxVariantGroup(n,t);return n};Ce.prototype.removeFile=function(e,t,r){var n=new cn(e,r);if(this.removeFromPbxFileReferenceSection(n),this.getPBXGroupByKey(t))this.removeFromPbxGroup(n,t);else if(this.getPBXVariantGroupByKey(t))this.removeFromPbxVariantGroup(n,t);return n};Ce.prototype.getBuildProperty=function(e,t,r){var n;let s=[];if(r){let l=this.pbxTargetByName(r),c=l&&l.buildConfigurationList,f=this.pbxXCConfigurationList();for(let p in f)if(!Yr.test(p)&&c===p){let d=f[p].buildConfigurations;for(let m of d)s.push(m.value);break}}var o=this.pbxXCBuildConfigurationSection();for(var a in o)if(!Yr.test(a)){if(r&&!s.includes(a))continue;var u=o[a];if(t&&u.name===t||t===void 0){if(u.buildSettings[e]!==void 0)n=u.buildSettings[e]}}return n};Ce.prototype.getBuildConfigByName=function(e){var t={},r=this.pbxXCBuildConfigurationSection();for(var n in r)if(!Yr.test(n)){var s=r[n];if(s.name===e)t[n]=s}return t};Ce.prototype.addDataModelDocument=function(e,t,r){if(!t)t="Resources";if(!this.getPBXGroupByKey(t))t=this.findPBXGroupKey({name:t});var n=new cn(e,r);if(!n||this.hasFile(n.path))return null;if(n.fileRef=this.generateUuid(),this.addToPbxGroup(n,t),!n)return!1;n.target=r?r.target:void 0,n.uuid=this.generateUuid(),this.addToPbxBuildFileSection(n),this.addToPbxSourcesBuildPhase(n),n.models=[];var s,o=g7.readdirSync(n.path);for(var a in o){var u=o[a],l=Ju.join(e,u);if(u==".xccurrentversion"){s=B2e.readFileSync(l)._XCCurrentVersionName;continue}var c=new cn(l);if(c.fileRef=this.generateUuid(),this.addToPbxFileReferenceSection(c),n.models.push(c),s&&s===u)n.currentModel=c}if(!n.currentModel)n.currentModel=n.models[0];return this.addToXcVersionGroupSection(n),n};Ce.prototype.addTargetAttribute=function(e,t,r){var n=this.getFirstProject().firstProject.attributes;if(n.TargetAttributes===void 0)n.TargetAttributes={};if(r=r||this.getFirstTarget(),n.TargetAttributes[r.uuid]===void 0)n.TargetAttributes[r.uuid]={};n.TargetAttributes[r.uuid][e]=t};Ce.prototype.removeTargetAttribute=function(e,t){var r=this.getFirstProject().firstProject.attributes;if(t=t||this.getFirstTarget(),r.TargetAttributes&&r.TargetAttributes[t.uuid])delete r.TargetAttributes[t.uuid][e]};v7.exports=Ce});var Jf=P(function(E7){E7.project=fx()});var lc=P(function(hx){Object.defineProperty(hx,"__esModule",{value:!0});hx.trimQuotes=X2e;function X2e(e){return e&&e[0]==='"'&&e[e.length-1]==='"'?e.slice(1,-1):e}});var D7=P(function(u5e,A7){A7.exports=(e)=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);if(t||r)return e;return e.replace(/\\/g,"/")}});var mx=P(function(Qf){Object.defineProperty(Qf,"__esModule",{value:!0});Qf.getApplicationTargetNameForSchemeAsync=H2e;Qf.getArchiveBuildConfigurationForSchemeAsync=K2e;Qf.getRunnableSchemesFromXcodeproj=W2e;Qf.getSchemesFromXcodeproj=V2e;function dx(){let e=cc();return dx=function(){return e},e}function Qb(){let e=Ya();return Qb=function(){return e},e}function y1(){let e=qn();return y1=function(){return e},e}function _7(){let e=ec();return _7=function(){return e},e}function V2e(e){return(0,dx().findSchemeNames)(e)}function W2e(e,{configuration:t="Debug"}={}){let r=(0,y1().getPbxproj)(e);return(0,Qb().findSignableTargets)(r).map(([,n])=>{let s="iOS",o=(0,y1().unquote)(n.productType);if(o===Qb().TargetType.WATCH)s="watchOS";else if(o.startsWith(Qb().TargetType.APPLICATION)){let a=r.hash.project.objects.XCConfigurationList[n.buildConfigurationList];if(a){let u=a.buildConfigurations.find((l)=>l.comment===t)||a.buildConfigurations[0];if(u?.value){let l=r.hash.project.objects.XCBuildConfiguration?.[u.value],c=l.buildSettings.SDKROOT;if(c==="appletvos"||"TVOS_DEPLOYMENT_TARGET"in l.buildSettings)s="tvOS";else if(c==="iphoneos")s="iOS"}}}return{name:(0,y1().unquote)(n.name),osType:s,type:(0,y1().unquote)(n.productType)}})}async function x7(e,t){let r=(0,dx().findSchemePaths)(e),n=new RegExp(`[\\\\/]${t}.xcscheme`,"i"),s=r.find((o)=>n.exec(o));if(s)return await(0,_7().readXMLAsync)({path:s});else throw Error(`scheme '${t}' does not exist, make sure it's marked as shared`)}async function H2e(e,t){let n=(await x7(e,t))?.Scheme?.BuildAction?.[0]?.BuildActionEntries?.[0]?.BuildActionEntry,s=n?.length===1?C7(n[0]):C7(n?.find((o)=>o.BuildableReference?.[0]?.$?.BuildableName?.endsWith(".app")));if(!s)throw Error(`${t}.xcscheme seems to be corrupted`);return s}async function K2e(e,t){let n=(await x7(e,t))?.Scheme?.ArchiveAction?.[0]?.$?.buildConfiguration;if(!n)throw Error(`${t}.xcscheme seems to be corrupted`);return n}function C7(e){return e?.BuildableReference?.[0]?.$?.BlueprintName}});var Ya=P(function(fo){Object.defineProperty(fo,"__esModule",{value:!0});fo.TargetType=void 0;fo.findApplicationTargetWithDependenciesAsync=Y2e;fo.findFirstNativeTarget=k7;fo.findNativeTargetByName=gx;fo.findSignableTargets=J2e;fo.getNativeTargets=T1;fo.getXCBuildConfigurationFromPbxproj=z2e;fo.isTargetOfType=b1;function S7(){let e=mx();return S7=function(){return e},e}function Zb(){let e=qn();return Zb=function(){return e},e}function w1(){let e=lc();return w1=function(){return e},e}var co=fo.TargetType=function(e){return e.APPLICATION="com.apple.product-type.application",e.EXTENSION="com.apple.product-type.app-extension",e.WATCH="com.apple.product-type.application.watchapp",e.APP_CLIP="com.apple.product-type.application.on-demand-install-capable",e.STICKER_PACK_EXTENSION="com.apple.product-type.app-extension.messages-sticker-pack",e.FRAMEWORK="com.apple.product-type.framework",e.OTHER="other",e}({});function z2e(e,{targetName:t,buildConfiguration:r="Release"}={}){let[,n]=t?gx(e,t):k7(e),[,s]=(0,Zb().getBuildConfigurationForListIdAndName)(e,{configurationListId:n.buildConfigurationList,buildConfiguration:r});return s??null}async function Y2e(e,t){let r=await(0,S7().getApplicationTargetNameForSchemeAsync)(e,t),n=(0,Zb().getPbxproj)(e),[,s]=gx(n,r),o=P7(n,s);return{name:(0,w1().trimQuotes)(s.name),type:co.APPLICATION,signable:!0,dependencies:o}}function P7(e,t){if(!t.dependencies||t.dependencies.length===0)return;let r=[co.FRAMEWORK];return t.dependencies.map(({value:n})=>{let{target:s}=e.getPBXGroupByKeyAndType(n,"PBXTargetDependency"),[,o]=Q2e(e,s),a=b1(o,co.EXTENSION)?co.EXTENSION:co.OTHER;return{name:(0,w1().trimQuotes)(o.name),type:a,signable:!r.some((u)=>b1(o,u)),dependencies:P7(e,o)}})}function b1(e,t){return(0,w1().trimQuotes)(e.productType)===t}function T1(e){let t=e.pbxNativeTargetSection();return Object.entries(t).filter(Zb().isNotComment)}function J2e(e){let t=T1(e),r=[co.APPLICATION,co.APP_CLIP,co.EXTENSION,co.WATCH,co.STICKER_PACK_EXTENSION],n=t.filter(([,s])=>{for(let o of r)if(b1(s,o))return!0;return!1});if(n.length===0)throw Error("Could not find any signable targets in project.pbxproj");return n}function k7(e){let r=T1(e).filter(([,n])=>b1(n,co.APPLICATION));if(r.length===0)throw Error("Could not find any application target in project.pbxproj");return r[0]}function gx(e,t){let n=T1(e).find(([,s])=>(0,w1().trimQuotes)(s.name)===t);if(!n)throw Error(`Could not find target '${t}' in project.pbxproj`);return n}function Q2e(e,t){let n=T1(e).find(([s])=>s===t);if(!n)throw Error(`Could not find target with id '${t}' in project.pbxproj`);return n}});var ew=P(function(hc){Object.defineProperty(hc,"__esModule",{value:!0});hc.ensureApplicationTargetEntitlementsFileConfigured=eEe;hc.getEntitlementsPath=Z2e;hc.setAssociatedDomains=R7;hc.withAssociatedDomains=void 0;function fc(){let e=bx(require("fs"));return fc=function(){return e},e}function pc(){let e=bx(require("path"));return pc=function(){return e},e}function O7(){let e=bx(D7());return O7=function(){return e},e}function yx(){let e=Ya();return yx=function(){return e},e}function Zf(){let e=qn();return Zf=function(){return e},e}function I7(){let e=lc();return I7=function(){return e},e}function N7(){let e=zr();return N7=function(){return e},e}function bx(e){return e&&e.__esModule?e:{default:e}}var f5e=hc.withAssociatedDomains=(0,N7().createEntitlementsPlugin)(R7,"withAssociatedDomains");function R7(e,{"com.apple.developer.associated-domains":t,...r}){if(e.ios?.associatedDomains)return{...r,"com.apple.developer.associated-domains":e.ios.associatedDomains};return r}function Z2e(e,{targetName:t,buildConfiguration:r="Release"}={}){let n=(0,Zf().getPbxproj)(e),s=(0,yx().getXCBuildConfigurationFromPbxproj)(n,{targetName:t,buildConfiguration:r});if(!s)return null;let o=F7(e,s);return o&&fc().default.existsSync(o)?o:null}function F7(e,t){let r=t?.buildSettings?.CODE_SIGN_ENTITLEMENTS;if(r)return pc().default.normalize(pc().default.join(e,"ios",(0,I7().trimQuotes)(r)));else return null}function eEe(e){let t=(0,Zf().getPbxproj)(e),r=(0,Zf().getProjectName)(e),n=(0,Zf().getProductName)(t),[,s]=(0,yx().findFirstNativeTarget)(t),o=(0,Zf().getBuildConfigurationsForListId)(t,s.buildConfigurationList),a=!1;for(let[,u]of o){let l=F7(e,u);if(l&&fc().default.existsSync(l))return;a=!0;let c=(0,O7().default)(pc().default.join(r,`${n}.entitlements`)),f=pc().default.normalize(pc().default.join(e,"ios",c));if(fc().default.mkdirSync(pc().default.dirname(f),{recursive:!0}),!fc().default.existsSync(f))fc().default.writeFileSync(f,tEe);u.buildSettings.CODE_SIGN_ENTITLEMENTS=c}if(a)fc().default.writeFileSync(t.filepath,t.writeSync())}var tEe=`
|
|
321
321
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
322
322
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
323
323
|
<plist version="1.0">
|
|
@@ -386,7 +386,7 @@ ${m}`;if(n)return o.reset(m);else return m}function ZCe(e,t,r,n={}){if(!Oz){Oz=!
|
|
|
386
386
|
${u}`}throw new ul.default(`Error parsing JSON: ${e}`,n,"EJSONPARSE",r)}else return s}}function jz(e,t,r,n){let s=xc(e,n);if(t in s)return s[t];if(r===void 0)throw new ul.default(`No value at key path "${String(t)}" in JSON object from: ${e}`);return r}async function qz(e,t,r,n){let s=await Sc(e,n);if(t in s)return s[t];if(r===void 0)throw new ul.default(`No value at key path "${String(t)}" in JSON object from: ${e}`);return r}function Ap(e,t,r){if(r?.ensureDir)tT.default.mkdirSync(zz.default.dirname(e),{recursive:!0});let n=_c(r,"space"),s=_c(r,"json5"),o=_c(r,"addNewLineAtEOF"),a;try{if(s)a=kP.default.stringify(t,null,n);else a=JSON.stringify(t,null,n)}catch(l){throw new ul.default(`Couldn't JSON.stringify object for file: ${e}`,l)}let u=o?`${a}
|
|
387
387
|
`:a;return(0,Yz.writeFileAtomicSync)(e,u),t}async function Dp(e,t,r){if(r?.ensureDir)await tT.default.promises.mkdir(zz.default.dirname(e),{recursive:!0});let n=_c(r,"space"),s=_c(r,"json5"),o=_c(r,"addNewLineAtEOF"),a;try{if(s)a=kP.default.stringify(t,null,n);else a=JSON.stringify(t,null,n)}catch(l){throw new ul.default(`Couldn't JSON.stringify object for file: ${e}`,l)}let u=o?`${a}
|
|
388
388
|
`:a;return await(0,Yz.writeFileAtomic)(e,u),t}function $z(e,t,r,n){let s=xc(e,n);return Ap(e,{...s,[t]:r},n)}async function Uz(e,t,r,n){let s=await Sc(e,n);return Dp(e,{...s,[t]:r},n)}async function Gz(e,t,r){let n=await Sc(e,r);if(Array.isArray(t))Object.assign(n,...t);else Object.assign(n,t);return Dp(e,n,r)}function Xz(e,t,r){let n=xc(e,r);if(Array.isArray(t))Object.assign(n,...t);else Object.assign(n,t);return Ap(e,n,r)}async function Vz(e,t,r){return xP(e,[t],r)}function Wz(e,t,r){return SP(e,[t],r)}async function xP(e,t,r){let n=await Sc(e,r),s=!1;for(let o=0;o<t.length;o++){let a=t[o];if(n.hasOwnProperty(a))delete n[a],s=!0}if(s)return Dp(e,n,r);return n}function SP(e,t,r){let n=xc(e,r),s=!1;for(let o=0;o<t.length;o++){let a=t[o];if(n.hasOwnProperty(a))delete n[a],s=!0}if(s)return Ap(e,n,r);return n}async function Hz(e,t){let r=await Sc(e,t);return Dp(e,r,t)}function Kz(e,t){return Ap(e,xc(e,t),t)}function i_e(e={}){if(e.jsonParseErrorDefault===void 0)return e.default;else return e.jsonParseErrorDefault}function Qz(e={}){if(e.cantReadFileDefault===void 0)return e.default;else return e.cantReadFileDefault}function _c(e,t){if(e){if(e[t]!==void 0)return e[t]}return n_e[t]}function s_e(e,t){if("lineNumber"in e&&"columnNumber"in e)return{line:e.lineNumber,column:e.columnNumber};let r=/at position (\d+)/.exec(e.message);if(r){let n=parseInt(r[1],10),s=t.slice(0,n+1).split(`
|
|
389
|
-
`);return{line:s.length,column:s[s.length-1].length}}return null}function OP(e,t){if(e?.trim()==="")throw new ul.EmptyJsonFileError(t)}});var rY=P(function(t8e,tY){var tr=(...e)=>e.every((t)=>t)?e.join(""):"",fn=(e)=>e?encodeURIComponent(e):"",eY=(e)=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),o_e={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${tr("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${tr("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:o})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n||"HEAD"),"/",o)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:o,fragment:a,hashformat:u})=>`https://${e}/${t}/${r}/${s}/${fn(n||"HEAD")}/${o}${tr("#",u(a||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:o,fragment:a,hashformat:u})=>`https://${e}/${t}/${r}/${s}/${fn(n||"HEAD")}/${o}${tr("#",u(a||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${tr("/",n,"/",fn(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${fn(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${tr("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${tr("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:eY},ll={};ll.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:s})=>`https://${tr(e,"@")}raw.githubusercontent.com/${t}/${r}/${fn(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${fn(n||"HEAD")}`,extract:(e)=>{let[,t,r,n,s]=e.pathname.split("/",5);if(n&&n!=="tree")return;if(!n)s=e.hash.slice(1);if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:s}}};ll.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:o,editpath:a})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n||"HEAD"),"/",o,a)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${fn(n||"HEAD")}.tar.gz`,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(["get"].includes(n))return;if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:e.hash.slice(1)}}};ll.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${fn(n||"HEAD")}`,extract:(e)=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();if(n.endsWith(".git"))n=n.slice(0,-4);let s=r.join("/");if(!s||!n)return;return{user:s,project:n,committish:e.hash.slice(1)}}};ll.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${tr("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${tr("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${tr("/",fn(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${tr("/",fn(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${tr("/",fn(r))}${tr("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${tr("/",fn(r))}${tr("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${tr("/",fn(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${tr("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${tr("/",fn(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${tr("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${tr("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${tr("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${fn(t||"HEAD")}`,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(n==="raw")return;if(!r){if(!t)return;r=t,t=null}if(r.endsWith(".git"))r=r.slice(0,-4);return{user:t,project:r,committish:e.hash.slice(1)}},hashformat:function(e){return e&&"file-"+eY(e)}};ll.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${fn(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${tr("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${fn(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(["archive"].includes(n))return;if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(ll))ll[e]=Object.assign({},o_e,t);tY.exports=ll});var NP=P(function(r8e,iY){var a_e=require("url"),IP=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},nY=(e)=>{try{return new a_e.URL(e)}catch{}},u_e=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let s=e.indexOf("@");if(s>-1)if(s>r)return`git+ssh://${e}`;else return e;if(e.indexOf("//")===r+1)return e;return`${e.slice(0,r+1)}//${e.slice(r+1)}`},l_e=(e)=>{let t=IP(e,"@","#"),r=IP(e,":","#");if(r>t)e=e.slice(0,r)+"/"+e.slice(r+1);if(IP(e,":","#")===-1&&e.indexOf("//")===-1)e=`git+ssh://${e}`;return e};iY.exports=(e,t)=>{let r=t?u_e(e,t):e;return nY(r)||nY(l_e(r))}});var oY=P(function(n8e,sY){var c_e=NP(),f_e=(e)=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),s=e.indexOf(":"),o=/\s/.exec(e),a=e.indexOf("@"),u=!o||t>-1&&o.index>t,l=a===-1||t>-1&&a>t,c=s===-1||t>-1&&s>t,f=n===-1||t>-1&&n>t,p=r>0,d=t>-1?e[t-1]!=="/":!e.endsWith("/"),m=!e.startsWith(".");return u&&p&&d&&m&&l&&c&&f};sY.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let s=f_e(e)?`github:${e}`:e,o=c_e(s,n);if(!o)return;let a=r.byShortcut[o.protocol],u=r.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],l=a||u;if(!l)return;let c=r[a||u],f=null;if(n[o.protocol]?.auth&&(o.username||o.password))f=`${o.username}${o.password?":"+o.password:""}`;let p=null,d=null,m=null,b=null;try{if(a){let w=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,E=w.indexOf("@");if(E>-1)w=w.slice(E+1);let D=w.lastIndexOf("/");if(D>-1){if(d=decodeURIComponent(w.slice(0,D)),!d)d=null;m=decodeURIComponent(w.slice(D+1))}else m=decodeURIComponent(w);if(m.endsWith(".git"))m=m.slice(0,-4);if(o.hash)p=decodeURIComponent(o.hash.slice(1));b="shortcut"}else{if(!c.protocols.includes(o.protocol))return;let w=c.extract(o);if(!w)return;d=w.user&&decodeURIComponent(w.user),m=decodeURIComponent(w.project),p=decodeURIComponent(w.committish),b=n[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(w){if(w instanceof URIError)return;else throw w}return[l,d,f,m,p,b,t]}});var uY=P(function(i8e,aY){var{LRUCache:p_e}=xE(),h_e=rY(),d_e=oY(),m_e=NP(),RP=new p_e({max:1000});class bo{constructor(e,t,r,n,s,o,a={}){Object.assign(this,bo.#e[e],{type:e,user:t,auth:r,project:n,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#n={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,t){bo.#e[e]=t,bo.#e.byDomain[t.domain]=e,bo.#e.byShortcut[`${e}:`]=e,bo.#n[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!=="string")return;let r=e+JSON.stringify(t||{});if(!RP.has(r)){let n=d_e(e,t,{gitHosts:bo.#e,protocols:bo.#n});RP.set(r,n?new bo(...n):void 0)}return RP.get(r)}static parseUrl(e){return m_e(e)}#r(e,t){if(typeof e!=="function")return null;let r={...this,...this.opts,...t};if(!r.path)r.path="";if(r.path.startsWith("/"))r.path=r.path.slice(1);if(r.noCommittish)r.committish=null;let n=e(r);return r.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#r(this.sshtemplate,e)}sshurl(e){return this.#r(this.sshurltemplate,e)}browse(e,...t){if(typeof e!=="string")return this.#r(this.browsetemplate,e);if(typeof t[0]!=="string")return this.#r(this.browsetreetemplate,{...t[0],path:e});return this.#r(this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){if(typeof t[0]!=="string")return this.#r(this.browseblobtemplate,{...t[0],path:e});return this.#r(this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return this.#r(this.docstemplate,e)}bugs(e){return this.#r(this.bugstemplate,e)}https(e){return this.#r(this.httpstemplate,e)}git(e){return this.#r(this.gittemplate,e)}shortcut(e){return this.#r(this.shortcuttemplate,e)}path(e){return this.#r(this.pathtemplate,e)}tarball(e){return this.#r(this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return this.#r(this.filetemplate,{...t,path:e})}edit(e,t){return this.#r(this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){if(this.default&&typeof this[this.default]==="function")return this[this.default](e);return this.sshurl(e)}}for(let[e,t]of Object.entries(h_e))bo.addHost(e,t);aY.exports=bo});var cY=P(function(s8e,lY){var{builtinModules:g_e}=require("module"),y_e=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),b_e=["node_modules","favicon.ico"];function w_e(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),rm(t,r);if(e===void 0)return r.push("name cannot be undefined"),rm(t,r);if(typeof e!=="string")return r.push("name must be a string"),rm(t,r);if(!e.length)r.push("name length must be greater than zero");if(e.match(/^\./))r.push("name cannot start with a period");if(e.match(/^_/))r.push("name cannot start with an underscore");if(e.trim()!==e)r.push("name cannot contain leading or trailing spaces");if(b_e.forEach(function(a){if(e.toLowerCase()===a)r.push(a+" is a blacklisted name")}),g_e.includes(e.toLowerCase()))t.push(e+" is a core module name");if(e.length>214)t.push("name can no longer contain more than 214 characters");if(e.toLowerCase()!==e)t.push("name can no longer contain capital letters");if(/[~'!()*]/.test(e.split("/").slice(-1)[0]))t.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(e)!==e){var n=e.match(y_e);if(n){var s=n[1],o=n[2];if(encodeURIComponent(s)===s&&encodeURIComponent(o)===o)return rm(t,r)}r.push("name can only contain URL-friendly characters")}return rm(t,r)}var rm=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r};lY.exports=w_e});var pY=P(function(o8e,fY){var T_e=Symbol("proc-log.meta");fY.exports={META:T_e,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t==="function"){let n=t();if(n&&n.finally)return n.finally(r);return r(),n}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e==="function"){let r=e();if(r&&r.finally)return r.finally(t);return t(),r}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((s,o)=>{t=s,r=o});return process.emit("input","read",t,r,...e),n}}}});var TY=P(function(a8e,im){im.exports=nm;im.exports.resolve=wY;im.exports.toPurl=__e;im.exports.Result=Cp;var{URL:Pc}=require("url"),v_e=uY(),hY=V0(),cl=global.FAKE_WINDOWS?require("path").win32:require("path"),gY=cY(),{homedir:E_e}=require("os"),{log:A_e}=pY(),BP=process.platform==="win32"||global.FAKE_WINDOWS,yY=BP?/\\|[/]/:/[/]/,bY=/^(?:git[+])?[a-z]+:/i,D_e=/^[^@]+@[^:.]+\.[^:]+:.+$/i,MP=/[.](?:tgz|tar.gz|tar)$/i;function nm(e,t){let r,n;if(typeof e==="object")if(e instanceof Cp&&(!t||t===e.where))return e;else if(e.name&&e.rawSpec)return nm.resolve(e.name,e.rawSpec,t||e.where);else return nm(e.raw,t||e.where);let s=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),o=s>0?e.slice(0,s):e;if(bY.test(e))n=e;else if(D_e.test(e))n=`git+ssh://${e}`;else if(o[0]!=="@"&&(yY.test(o)||MP.test(o)))n=e;else if(s>0)r=o,n=e.slice(s+1)||"*";else if(gY(e).validForOldPackages)r=e,n="*";else n=e;return wY(r,n,t,e)}var C_e=BP?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function wY(e,t,r,n){let s=new Cp({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e)s.setName(e);if(t&&(C_e.test(t)||/^file:/i.test(t)))return mY(s,r);else if(t&&/^npm:/i.test(t))return N_e(s,r);let o=v_e.fromUrl(t,{noGitPlus:!0,noCommittish:!0});if(o)return k_e(s,o);else if(t&&bY.test(t))return I_e(s);else if(t&&(yY.test(t)||MP.test(t)))return mY(s,r);else return R_e(s)}var dY="https://registry.npmjs.org";function __e(e,t=dY){let r=nm(e);if(r.type!=="version")throw P_e(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;if(t!==dY)n+="?repository_url="+t;return n}function x_e(e,t,r){let n=Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function S_e(e,t){let r=Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function P_e(e,t){let r=Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}function Cp(e){if(this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null)this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec;else this.raw=e.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name)this.setName(e.name);this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}Cp.prototype.setName=function(e){let t=gY(e);if(!t.validForOldPackages)throw x_e(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};Cp.prototype.toString=function(){let e=[];if(this.name!=null&&this.name!=="")e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;if(t!=null&&t!=="")e.push(t);return e.length?e.join("@"):this.raw};Cp.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function FP(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,s]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw Error("cannot override existing committish with a semver range");if(e.gitRange)throw Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(s);continue}if(n==="path"){if(e.gitSubdir)throw Error("cannot override existing path with a second path");e.gitSubdir=`/${s}`;continue}A_e.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}function mY(e,t){if(!t)t=process.cwd();e.type=MP.test(e.rawSpec)?"file":"directory",e.where=t;let r,n,o=(!/^file:/.test(e.rawSpec)?"file:":"")+e.rawSpec,a=o.replace(/^file:/,"");try{n=new Pc(o,`file://${cl.resolve(t)}/`),r=new Pc(o)}catch(c){let f=Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(f,{raw:e.rawSpec,spec:e,where:t,originalError:c})}if(n.host&&n.host!=="localhost"){let c=e.rawSpec.replace(/^file:\/\//,"file:///");n=new Pc(c,`file://${cl.resolve(t)}/`),r=new Pc(c),a=c.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(a)){let c=e.rawSpec.replace(/^file:\/{1,3}/,"file:");n=new Pc(c,`file://${cl.resolve(t)}/`),r=new Pc(c),a=c.replace(/^file:/,"")}let u=decodeURIComponent(r.pathname),l=decodeURIComponent(n.pathname);if(BP)u=u.replace(/^\/+([a-z]:\/)/i,"$1"),l=l.replace(/^\/+([a-z]:\/)/i,"$1");if(/^\/~(\/|$)/.test(u))e.saveSpec=`file:${u.substr(1)}`,l=cl.resolve(E_e(),u.substr(3));else if(!cl.isAbsolute(a))e.saveSpec=`file:${cl.relative(t,l)}`;else e.saveSpec=`file:${cl.resolve(l)}`;return e.fetchSpec=cl.resolve(t,l),e}function k_e(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),FP(e,t.committish),e}function O_e(e,t){let r=Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function I_e(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(/:[0-9]+\/?.*$/i))return e.type="git",FP(e,n[2]),e.fetchSpec=n[1],e}else if(t.startsWith("git+file://"))t=t.replace(/\\/g,"/");let r=new Pc(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":if(e.type="git",FP(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t))e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`;else r.hash="",e.fetchSpec=r.toString();if(e.fetchSpec.startsWith("git+"))e.fetchSpec=e.fetchSpec.slice(4);break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw O_e(r.protocol,t)}return e}function N_e(e,t){let r=nm(e.rawSpec.substr(4),t);if(r.type==="alias")throw Error("nested aliases not supported");if(!r.registry)throw Error("aliases only work for registry deps");if(!r.name)throw Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function R_e(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=hY.valid(t,!0),n=hY.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw S_e(t,e.raw);e.type="tag"}return e}});var sm=P(function(_p){var rT=_p&&_p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_p,"__esModule",{value:!0});_p.BasePackageManager=void 0;var vY=rT(Dc()),F_e=rT(require("assert")),EY=rT(require("fs")),AY=rT(require("path"));class DY{silent;log;options;constructor({silent:e,log:t,env:r=process.env,...n}={}){this.silent=!!e,this.log=t??(!e?console.log:void 0),this.options={stdio:e?void 0:"inherit",...n,env:{...this.getDefaultEnvironment(),...r}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(e){let t=this.options.cwd?.toString(),r=this.constructor.name,n=e?`.${e}`:"";return(0,F_e.default)(t,`cwd is required for ${r}${n}`),t}runAsync(e,t={}){return this.log?.(`> ${this.name} ${e.join(" ")}`),(0,vY.default)(this.bin,e,{...this.options,...t})}runBinAsync(e,t={}){return this.log?.(`> ${this.name} ${e.join(" ")}`),(0,vY.default)(this.bin,e,{...this.options,...t})}async versionAsync(){let{stdout:e}=await this.runAsync(["--version"],{stdio:void 0});return e.trim()}async getConfigAsync(e){let{stdout:t}=await this.runAsync(["config","get",e]);return t.trim()}async removeLockfileAsync(){let e=this.ensureCwdDefined("removeLockFile"),t=AY.default.join(e,this.lockFile);await EY.default.promises.rm(t,{force:!0})}installAsync(e=[]){return this.runAsync(["install",...e])}async uninstallAsync(){let e=this.ensureCwdDefined("uninstallAsync"),t=AY.default.join(e,"node_modules");await EY.default.promises.rm(t,{force:!0,recursive:!0})}}_p.BasePackageManager=DY});var LP=P(function(l8e,CY){var __dirname="/home/expo/workingdir/build/node_modules/.bun/resolve-workspace-root@2.0.1/node_modules/resolve-workspace-root/build";(()=>{var e={610:(s,o,a)=>{let u=a(8750),l=a(9434),c=a(5873),f=a(6477),p=(d,m={})=>{let b=[];if(Array.isArray(d))for(let w of d){let E=p.create(w,m);if(Array.isArray(E))b.push(...E);else b.push(E)}else b=[].concat(p.create(d,m));if(m&&m.expand===!0&&m.nodupes===!0)b=[...new Set(b)];return b};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>{if(typeof d==="string")return u(p.parse(d,m),m);return u(d,m)},p.compile=(d,m={})=>{if(typeof d==="string")d=p.parse(d,m);return l(d,m)},p.expand=(d,m={})=>{if(typeof d==="string")d=p.parse(d,m);let b=c(d,m);if(m.noempty===!0)b=b.filter(Boolean);if(m.nodupes===!0)b=[...new Set(b)];return b},p.create=(d,m={})=>{if(d===""||d.length<3)return[d];return m.expand!==!0?p.compile(d,m):p.expand(d,m)},s.exports=p},9434:(s,o,a)=>{let u=a(6330),l=a(5207),c=(f,p={})=>{let d=(m,b={})=>{let w=l.isInvalidBrace(b),E=m.invalid===!0&&p.escapeInvalid===!0,D=w===!0||E===!0,x=p.escapeInvalid===!0?"\\":"",g="";if(m.isOpen===!0)return x+m.value;if(m.isClose===!0)return console.log("node.isClose",x,m.value),x+m.value;if(m.type==="open")return D?x+m.value:"(";if(m.type==="close")return D?x+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":D?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let y=l.reduce(m.nodes),h=u(...y,{...p,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return y.length>1&&h.length>1?`(${h})`:h}if(m.nodes)for(let y of m.nodes)g+=d(y,m);return g};return d(f)};s.exports=c},8774:(s)=>{s.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
389
|
+
`);return{line:s.length,column:s[s.length-1].length}}return null}function OP(e,t){if(e?.trim()==="")throw new ul.EmptyJsonFileError(t)}});var rY=P(function(t8e,tY){var tr=(...e)=>e.every((t)=>t)?e.join(""):"",fn=(e)=>e?encodeURIComponent(e):"",eY=(e)=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),o_e={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${tr("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${tr("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:o})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n||"HEAD"),"/",o)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:o,fragment:a,hashformat:u})=>`https://${e}/${t}/${r}/${s}/${fn(n||"HEAD")}/${o}${tr("#",u(a||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:o,fragment:a,hashformat:u})=>`https://${e}/${t}/${r}/${s}/${fn(n||"HEAD")}/${o}${tr("#",u(a||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${tr("/",n,"/",fn(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${fn(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${tr("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${tr("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:eY},ll={};ll.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:s})=>`https://${tr(e,"@")}raw.githubusercontent.com/${t}/${r}/${fn(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${fn(n||"HEAD")}`,extract:(e)=>{let[,t,r,n,s]=e.pathname.split("/",5);if(n&&n!=="tree")return;if(!n)s=e.hash.slice(1);if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:s}}};ll.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:o,editpath:a})=>`https://${e}/${t}/${r}${tr("/",s,"/",fn(n||"HEAD"),"/",o,a)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${fn(n||"HEAD")}.tar.gz`,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(["get"].includes(n))return;if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:e.hash.slice(1)}}};ll.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${tr(e,"@")}${t}/${r}/${n}.git${tr("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${fn(n||"HEAD")}`,extract:(e)=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();if(n.endsWith(".git"))n=n.slice(0,-4);let s=r.join("/");if(!s||!n)return;return{user:s,project:n,committish:e.hash.slice(1)}}};ll.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${tr("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${tr("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${tr("/",fn(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${tr("/",fn(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${tr("/",fn(r))}${tr("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${tr("/",fn(r))}${tr("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${tr("/",fn(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${tr("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${tr("/",fn(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${tr("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${tr("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${tr("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${fn(t||"HEAD")}`,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(n==="raw")return;if(!r){if(!t)return;r=t,t=null}if(r.endsWith(".git"))r=r.slice(0,-4);return{user:t,project:r,committish:e.hash.slice(1)}},hashformat:function(e){return e&&"file-"+eY(e)}};ll.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${fn(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${tr("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${fn(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(e)=>{let[,t,r,n]=e.pathname.split("/",4);if(["archive"].includes(n))return;if(r&&r.endsWith(".git"))r=r.slice(0,-4);if(!t||!r)return;return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(ll))ll[e]=Object.assign({},o_e,t);tY.exports=ll});var NP=P(function(r8e,iY){var a_e=require("url"),IP=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},nY=(e)=>{try{return new a_e.URL(e)}catch{}},u_e=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let s=e.indexOf("@");if(s>-1)if(s>r)return`git+ssh://${e}`;else return e;if(e.indexOf("//")===r+1)return e;return`${e.slice(0,r+1)}//${e.slice(r+1)}`},l_e=(e)=>{let t=IP(e,"@","#"),r=IP(e,":","#");if(r>t)e=e.slice(0,r)+"/"+e.slice(r+1);if(IP(e,":","#")===-1&&e.indexOf("//")===-1)e=`git+ssh://${e}`;return e};iY.exports=(e,t)=>{let r=t?u_e(e,t):e;return nY(r)||nY(l_e(r))}});var oY=P(function(n8e,sY){var c_e=NP(),f_e=(e)=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),s=e.indexOf(":"),o=/\s/.exec(e),a=e.indexOf("@"),u=!o||t>-1&&o.index>t,l=a===-1||t>-1&&a>t,c=s===-1||t>-1&&s>t,f=n===-1||t>-1&&n>t,p=r>0,d=t>-1?e[t-1]!=="/":!e.endsWith("/"),m=!e.startsWith(".");return u&&p&&d&&m&&l&&c&&f};sY.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let s=f_e(e)?`github:${e}`:e,o=c_e(s,n);if(!o)return;let a=r.byShortcut[o.protocol],u=r.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],l=a||u;if(!l)return;let c=r[a||u],f=null;if(n[o.protocol]?.auth&&(o.username||o.password))f=`${o.username}${o.password?":"+o.password:""}`;let p=null,d=null,m=null,b=null;try{if(a){let w=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,E=w.indexOf("@");if(E>-1)w=w.slice(E+1);let D=w.lastIndexOf("/");if(D>-1){if(d=decodeURIComponent(w.slice(0,D)),!d)d=null;m=decodeURIComponent(w.slice(D+1))}else m=decodeURIComponent(w);if(m.endsWith(".git"))m=m.slice(0,-4);if(o.hash)p=decodeURIComponent(o.hash.slice(1));b="shortcut"}else{if(!c.protocols.includes(o.protocol))return;let w=c.extract(o);if(!w)return;d=w.user&&decodeURIComponent(w.user),m=decodeURIComponent(w.project),p=decodeURIComponent(w.committish),b=n[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(w){if(w instanceof URIError)return;else throw w}return[l,d,f,m,p,b,t]}});var uY=P(function(i8e,aY){var{LRUCache:p_e}=xE(),h_e=rY(),d_e=oY(),m_e=NP(),RP=new p_e({max:1000});class bo{constructor(e,t,r,n,s,o,a={}){Object.assign(this,bo.#e[e],{type:e,user:t,auth:r,project:n,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#n={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,t){bo.#e[e]=t,bo.#e.byDomain[t.domain]=e,bo.#e.byShortcut[`${e}:`]=e,bo.#n[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!=="string")return;let r=e+JSON.stringify(t||{});if(!RP.has(r)){let n=d_e(e,t,{gitHosts:bo.#e,protocols:bo.#n});RP.set(r,n?new bo(...n):void 0)}return RP.get(r)}static parseUrl(e){return m_e(e)}#r(e,t){if(typeof e!=="function")return null;let r={...this,...this.opts,...t};if(!r.path)r.path="";if(r.path.startsWith("/"))r.path=r.path.slice(1);if(r.noCommittish)r.committish=null;let n=e(r);return r.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#r(this.sshtemplate,e)}sshurl(e){return this.#r(this.sshurltemplate,e)}browse(e,...t){if(typeof e!=="string")return this.#r(this.browsetemplate,e);if(typeof t[0]!=="string")return this.#r(this.browsetreetemplate,{...t[0],path:e});return this.#r(this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){if(typeof t[0]!=="string")return this.#r(this.browseblobtemplate,{...t[0],path:e});return this.#r(this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return this.#r(this.docstemplate,e)}bugs(e){return this.#r(this.bugstemplate,e)}https(e){return this.#r(this.httpstemplate,e)}git(e){return this.#r(this.gittemplate,e)}shortcut(e){return this.#r(this.shortcuttemplate,e)}path(e){return this.#r(this.pathtemplate,e)}tarball(e){return this.#r(this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return this.#r(this.filetemplate,{...t,path:e})}edit(e,t){return this.#r(this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){if(this.default&&typeof this[this.default]==="function")return this[this.default](e);return this.sshurl(e)}}for(let[e,t]of Object.entries(h_e))bo.addHost(e,t);aY.exports=bo});var cY=P(function(s8e,lY){var{builtinModules:g_e}=require("module"),y_e=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),b_e=["node_modules","favicon.ico"];function w_e(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),rm(t,r);if(e===void 0)return r.push("name cannot be undefined"),rm(t,r);if(typeof e!=="string")return r.push("name must be a string"),rm(t,r);if(!e.length)r.push("name length must be greater than zero");if(e.match(/^\./))r.push("name cannot start with a period");if(e.match(/^_/))r.push("name cannot start with an underscore");if(e.trim()!==e)r.push("name cannot contain leading or trailing spaces");if(b_e.forEach(function(a){if(e.toLowerCase()===a)r.push(a+" is a blacklisted name")}),g_e.includes(e.toLowerCase()))t.push(e+" is a core module name");if(e.length>214)t.push("name can no longer contain more than 214 characters");if(e.toLowerCase()!==e)t.push("name can no longer contain capital letters");if(/[~'!()*]/.test(e.split("/").slice(-1)[0]))t.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(e)!==e){var n=e.match(y_e);if(n){var s=n[1],o=n[2];if(encodeURIComponent(s)===s&&encodeURIComponent(o)===o)return rm(t,r)}r.push("name can only contain URL-friendly characters")}return rm(t,r)}var rm=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r};lY.exports=w_e});var pY=P(function(o8e,fY){var T_e=Symbol("proc-log.meta");fY.exports={META:T_e,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t==="function"){let n=t();if(n&&n.finally)return n.finally(r);return r(),n}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e==="function"){let r=e();if(r&&r.finally)return r.finally(t);return t(),r}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((s,o)=>{t=s,r=o});return process.emit("input","read",t,r,...e),n}}}});var TY=P(function(a8e,im){im.exports=nm;im.exports.resolve=wY;im.exports.toPurl=__e;im.exports.Result=Cp;var{URL:Pc}=require("url"),v_e=uY(),hY=V0(),cl=global.FAKE_WINDOWS?require("path").win32:require("path"),gY=cY(),{homedir:E_e}=require("os"),{log:A_e}=pY(),BP=process.platform==="win32"||global.FAKE_WINDOWS,yY=BP?/\\|[/]/:/[/]/,bY=/^(?:git[+])?[a-z]+:/i,D_e=/^[^@]+@[^:.]+\.[^:]+:.+$/i,MP=/[.](?:tgz|tar.gz|tar)$/i;function nm(e,t){let r,n;if(typeof e==="object")if(e instanceof Cp&&(!t||t===e.where))return e;else if(e.name&&e.rawSpec)return nm.resolve(e.name,e.rawSpec,t||e.where);else return nm(e.raw,t||e.where);let s=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),o=s>0?e.slice(0,s):e;if(bY.test(e))n=e;else if(D_e.test(e))n=`git+ssh://${e}`;else if(o[0]!=="@"&&(yY.test(o)||MP.test(o)))n=e;else if(s>0)r=o,n=e.slice(s+1)||"*";else if(gY(e).validForOldPackages)r=e,n="*";else n=e;return wY(r,n,t,e)}var C_e=BP?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function wY(e,t,r,n){let s=new Cp({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e)s.setName(e);if(t&&(C_e.test(t)||/^file:/i.test(t)))return mY(s,r);else if(t&&/^npm:/i.test(t))return N_e(s,r);let o=v_e.fromUrl(t,{noGitPlus:!0,noCommittish:!0});if(o)return k_e(s,o);else if(t&&bY.test(t))return I_e(s);else if(t&&(yY.test(t)||MP.test(t)))return mY(s,r);else return R_e(s)}var dY="https://registry.npmjs.org";function __e(e,t=dY){let r=nm(e);if(r.type!=="version")throw P_e(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;if(t!==dY)n+="?repository_url="+t;return n}function x_e(e,t,r){let n=Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function S_e(e,t){let r=Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function P_e(e,t){let r=Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}function Cp(e){if(this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null)this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec;else this.raw=e.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name)this.setName(e.name);this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}Cp.prototype.setName=function(e){let t=gY(e);if(!t.validForOldPackages)throw x_e(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};Cp.prototype.toString=function(){let e=[];if(this.name!=null&&this.name!=="")e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;if(t!=null&&t!=="")e.push(t);return e.length?e.join("@"):this.raw};Cp.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function FP(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,s]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw Error("cannot override existing committish with a semver range");if(e.gitRange)throw Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(s);continue}if(n==="path"){if(e.gitSubdir)throw Error("cannot override existing path with a second path");e.gitSubdir=`/${s}`;continue}A_e.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}function mY(e,t){if(!t)t=process.cwd();e.type=MP.test(e.rawSpec)?"file":"directory",e.where=t;let r,n,o=(!/^file:/.test(e.rawSpec)?"file:":"")+e.rawSpec,a=o.replace(/^file:/,"");try{n=new Pc(o,`file://${cl.resolve(t)}/`),r=new Pc(o)}catch(c){let f=Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(f,{raw:e.rawSpec,spec:e,where:t,originalError:c})}if(n.host&&n.host!=="localhost"){let c=e.rawSpec.replace(/^file:\/\//,"file:///");n=new Pc(c,`file://${cl.resolve(t)}/`),r=new Pc(c),a=c.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(a)){let c=e.rawSpec.replace(/^file:\/{1,3}/,"file:");n=new Pc(c,`file://${cl.resolve(t)}/`),r=new Pc(c),a=c.replace(/^file:/,"")}let u=decodeURIComponent(r.pathname),l=decodeURIComponent(n.pathname);if(BP)u=u.replace(/^\/+([a-z]:\/)/i,"$1"),l=l.replace(/^\/+([a-z]:\/)/i,"$1");if(/^\/~(\/|$)/.test(u))e.saveSpec=`file:${u.substr(1)}`,l=cl.resolve(E_e(),u.substr(3));else if(!cl.isAbsolute(a))e.saveSpec=`file:${cl.relative(t,l)}`;else e.saveSpec=`file:${cl.resolve(l)}`;return e.fetchSpec=cl.resolve(t,l),e}function k_e(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),FP(e,t.committish),e}function O_e(e,t){let r=Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function I_e(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(/:[0-9]+\/?.*$/i))return e.type="git",FP(e,n[2]),e.fetchSpec=n[1],e}else if(t.startsWith("git+file://"))t=t.replace(/\\/g,"/");let r=new Pc(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":if(e.type="git",FP(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t))e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`;else r.hash="",e.fetchSpec=r.toString();if(e.fetchSpec.startsWith("git+"))e.fetchSpec=e.fetchSpec.slice(4);break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw O_e(r.protocol,t)}return e}function N_e(e,t){let r=nm(e.rawSpec.substr(4),t);if(r.type==="alias")throw Error("nested aliases not supported");if(!r.registry)throw Error("aliases only work for registry deps");if(!r.name)throw Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function R_e(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=hY.valid(t,!0),n=hY.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw S_e(t,e.raw);e.type="tag"}return e}});var sm=P(function(_p){var rT=_p&&_p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_p,"__esModule",{value:!0});_p.BasePackageManager=void 0;var vY=rT(Dc()),F_e=rT(require("assert")),EY=rT(require("fs")),AY=rT(require("path"));class DY{silent;log;options;constructor({silent:e,log:t,env:r=process.env,...n}={}){this.silent=!!e,this.log=t??(!e?console.log:void 0),this.options={stdio:e?void 0:"inherit",...n,env:{...this.getDefaultEnvironment(),...r}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(e){let t=this.options.cwd?.toString(),r=this.constructor.name,n=e?`.${e}`:"";return(0,F_e.default)(t,`cwd is required for ${r}${n}`),t}runAsync(e,t={}){return this.log?.(`> ${this.name} ${e.join(" ")}`),(0,vY.default)(this.bin,e,{...this.options,...t})}runBinAsync(e,t={}){return this.log?.(`> ${this.name} ${e.join(" ")}`),(0,vY.default)(this.bin,e,{...this.options,...t})}async versionAsync(){let{stdout:e}=await this.runAsync(["--version"],{stdio:void 0});return e.trim()}async getConfigAsync(e){let{stdout:t}=await this.runAsync(["config","get",e]);return t.trim()}async removeLockfileAsync(){let e=this.ensureCwdDefined("removeLockFile"),t=AY.default.join(e,this.lockFile);await EY.default.promises.rm(t,{force:!0})}installAsync(e=[]){return this.runAsync(["install",...e])}async uninstallAsync(){let e=this.ensureCwdDefined("uninstallAsync"),t=AY.default.join(e,"node_modules");await EY.default.promises.rm(t,{force:!0,recursive:!0})}}_p.BasePackageManager=DY});var LP=P(function(l8e,CY){var __dirname="/Users/cedric/Projects/expo/launch/node_modules/.bun/resolve-workspace-root@2.0.1/node_modules/resolve-workspace-root/build";(()=>{var e={610:(s,o,a)=>{let u=a(8750),l=a(9434),c=a(5873),f=a(6477),p=(d,m={})=>{let b=[];if(Array.isArray(d))for(let w of d){let E=p.create(w,m);if(Array.isArray(E))b.push(...E);else b.push(E)}else b=[].concat(p.create(d,m));if(m&&m.expand===!0&&m.nodupes===!0)b=[...new Set(b)];return b};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>{if(typeof d==="string")return u(p.parse(d,m),m);return u(d,m)},p.compile=(d,m={})=>{if(typeof d==="string")d=p.parse(d,m);return l(d,m)},p.expand=(d,m={})=>{if(typeof d==="string")d=p.parse(d,m);let b=c(d,m);if(m.noempty===!0)b=b.filter(Boolean);if(m.nodupes===!0)b=[...new Set(b)];return b},p.create=(d,m={})=>{if(d===""||d.length<3)return[d];return m.expand!==!0?p.compile(d,m):p.expand(d,m)},s.exports=p},9434:(s,o,a)=>{let u=a(6330),l=a(5207),c=(f,p={})=>{let d=(m,b={})=>{let w=l.isInvalidBrace(b),E=m.invalid===!0&&p.escapeInvalid===!0,D=w===!0||E===!0,x=p.escapeInvalid===!0?"\\":"",g="";if(m.isOpen===!0)return x+m.value;if(m.isClose===!0)return console.log("node.isClose",x,m.value),x+m.value;if(m.type==="open")return D?x+m.value:"(";if(m.type==="close")return D?x+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":D?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let y=l.reduce(m.nodes),h=u(...y,{...p,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return y.length>1&&h.length>1?`(${h})`:h}if(m.nodes)for(let y of m.nodes)g+=d(y,m);return g};return d(f)};s.exports=c},8774:(s)=>{s.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
390
390
|
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(s,o,a)=>{let u=a(6330),l=a(8750),c=a(5207),f=(d="",m="",b=!1)=>{let w=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return b?c.flatten(m).map((E)=>`{${E}}`):m;for(let E of d)if(Array.isArray(E))for(let D of E)w.push(f(D,m,b));else for(let D of m){if(b===!0&&typeof D==="string")D=`{${D}}`;w.push(Array.isArray(D)?f(E,D,b):E+D)}return c.flatten(w)},p=(d,m={})=>{let b=m.rangeLimit===void 0?1000:m.rangeLimit,w=(E,D={})=>{E.queue=[];let x=D,g=D.queue;while(x.type!=="brace"&&x.type!=="root"&&x.parent)x=x.parent,g=x.queue;if(E.invalid||E.dollar){g.push(f(g.pop(),l(E,m)));return}if(E.type==="brace"&&E.invalid!==!0&&E.nodes.length===2){g.push(f(g.pop(),["{}"]));return}if(E.nodes&&E.ranges>0){let S=c.reduce(E.nodes);if(c.exceedsLimit(...S,m.step,b))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let C=u(...S,m);if(C.length===0)C=l(E,m);g.push(f(g.pop(),C)),E.nodes=[];return}let y=c.encloseBrace(E),h=E.queue,T=E;while(T.type!=="brace"&&T.type!=="root"&&T.parent)T=T.parent,h=T.queue;for(let S=0;S<E.nodes.length;S++){let C=E.nodes[S];if(C.type==="comma"&&E.type==="brace"){if(S===1)h.push("");h.push("");continue}if(C.type==="close"){g.push(f(g.pop(),h,y));continue}if(C.value&&C.type!=="open"){h.push(f(h.pop(),C.value));continue}if(C.nodes)w(C,E)}return h};return c.flatten(w(d))};s.exports=p},6477:(s,o,a)=>{let u=a(8750),{MAX_LENGTH:l,CHAR_BACKSLASH:c,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:b,CHAR_LEFT_CURLY_BRACE:w,CHAR_RIGHT_CURLY_BRACE:E,CHAR_LEFT_SQUARE_BRACKET:D,CHAR_RIGHT_SQUARE_BRACKET:x,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:h,CHAR_ZERO_WIDTH_NOBREAK_SPACE:T}=a(8774),S=(C,A={})=>{if(typeof C!=="string")throw TypeError("Expected a string");let _=A||{},k=typeof _.maxLength==="number"?Math.min(l,_.maxLength):l;if(C.length>k)throw SyntaxError(`Input length (${C.length}), exceeds max characters (${k})`);let F={type:"root",input:C,nodes:[]},M=[F],X=F,re=F,U=0,Y=C.length,K=0,Z=0,Q,Ae=()=>C[K++],je=(de)=>{if(de.type==="text"&&re.type==="dot")re.type="text";if(re&&re.type==="text"&&de.type==="text"){re.value+=de.value;return}return X.nodes.push(de),de.parent=X,de.prev=re,re=de,de};je({type:"bos"});while(K<Y){if(X=M[M.length-1],Q=Ae(),Q===T||Q===h)continue;if(Q===c){je({type:"text",value:(A.keepEscaping?Q:"")+Ae()});continue}if(Q===x){je({type:"text",value:"\\"+Q});continue}if(Q===D){U++;let de;while(K<Y&&(de=Ae())){if(Q+=de,de===D){U++;continue}if(de===c){Q+=Ae();continue}if(de===x){if(U--,U===0)break}}je({type:"text",value:Q});continue}if(Q===m){X=je({type:"paren",nodes:[]}),M.push(X),je({type:"text",value:Q});continue}if(Q===b){if(X.type!=="paren"){je({type:"text",value:Q});continue}X=M.pop(),je({type:"text",value:Q}),X=M[M.length-1];continue}if(Q===g||Q===y||Q===f){let de=Q,Fe;if(A.keepQuotes!==!0)Q="";while(K<Y&&(Fe=Ae())){if(Fe===c){Q+=Fe+Ae();continue}if(Fe===de){if(A.keepQuotes===!0)Q+=Fe;break}Q+=Fe}je({type:"text",value:Q});continue}if(Q===w){Z++;let Fe={type:"brace",open:!0,close:!1,dollar:re.value&&re.value.slice(-1)==="$"||X.dollar===!0,depth:Z,commas:0,ranges:0,nodes:[]};X=je(Fe),M.push(X),je({type:"open",value:Q});continue}if(Q===E){if(X.type!=="brace"){je({type:"text",value:Q});continue}let de="close";X=M.pop(),X.close=!0,je({type:de,value:Q}),Z--,X=M[M.length-1];continue}if(Q===p&&Z>0){if(X.ranges>0){X.ranges=0;let de=X.nodes.shift();X.nodes=[de,{type:"text",value:u(X)}]}je({type:"comma",value:Q}),X.commas++;continue}if(Q===d&&Z>0&&X.commas===0){let de=X.nodes;if(Z===0||de.length===0){je({type:"text",value:Q});continue}if(re.type==="dot"){if(X.range=[],re.value+=Q,re.type="range",X.nodes.length!==3&&X.nodes.length!==5){X.invalid=!0,X.ranges=0,re.type="text";continue}X.ranges++,X.args=[];continue}if(re.type==="range"){de.pop();let Fe=de[de.length-1];Fe.value+=re.value+Q,re=Fe,X.ranges--;continue}je({type:"dot",value:Q});continue}je({type:"text",value:Q})}do if(X=M.pop(),X.type!=="root"){X.nodes.forEach((et)=>{if(!et.nodes){if(et.type==="open")et.isOpen=!0;if(et.type==="close")et.isClose=!0;if(!et.nodes)et.type="text";et.invalid=!0}});let de=M[M.length-1],Fe=de.nodes.indexOf(X);de.nodes.splice(Fe,1,...X.nodes)}while(M.length>0);return je({type:"eos"}),F};s.exports=S},8750:(s,o,a)=>{let u=a(5207);s.exports=(l,c={})=>{let f=(p,d={})=>{let m=c.escapeInvalid&&u.isInvalidBrace(d),b=p.invalid===!0&&c.escapeInvalid===!0,w="";if(p.value){if((m||b)&&u.isOpenOrClose(p))return"\\"+p.value;return p.value}if(p.value)return p.value;if(p.nodes)for(let E of p.nodes)w+=f(E);return w};return f(l)}},5207:(s,o)=>{o.isInteger=(a)=>{if(typeof a==="number")return Number.isInteger(a);if(typeof a==="string"&&a.trim()!=="")return Number.isInteger(Number(a));return!1},o.find=(a,u)=>a.nodes.find((l)=>l.type===u),o.exceedsLimit=(a,u,l=1,c)=>{if(c===!1)return!1;if(!o.isInteger(a)||!o.isInteger(u))return!1;return(Number(u)-Number(a))/Number(l)>=c},o.escapeNode=(a,u=0,l)=>{let c=a.nodes[u];if(!c)return;if(l&&c.type===l||c.type==="open"||c.type==="close"){if(c.escaped!==!0)c.value="\\"+c.value,c.escaped=!0}},o.encloseBrace=(a)=>{if(a.type!=="brace")return!1;if(a.commas>>0+a.ranges>>0===0)return a.invalid=!0,!0;return!1},o.isInvalidBrace=(a)=>{if(a.type!=="brace")return!1;if(a.invalid===!0||a.dollar)return!0;if(a.commas>>0+a.ranges>>0===0)return a.invalid=!0,!0;if(a.open!==!0||a.close!==!0)return a.invalid=!0,!0;return!1},o.isOpenOrClose=(a)=>{if(a.type==="open"||a.type==="close")return!0;return a.open===!0||a.close===!0},o.reduce=(a)=>a.reduce((u,l)=>{if(l.type==="text")u.push(l.value);if(l.type==="range")l.type="text";return u},[]),o.flatten=(...a)=>{let u=[],l=(c)=>{for(let f=0;f<c.length;f++){let p=c[f];if(Array.isArray(p)){l(p);continue}if(p!==void 0)u.push(p)}return u};return l(a),u}},6330:(s,o,a)=>{/*!
|
|
391
391
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
392
392
|
*
|