@servicenow/sdk 4.4.0 → 4.4.1

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/dist/web/index.js CHANGED
@@ -31099,7 +31099,7 @@ function print() { __p += __j.call(arguments, '') }
31099
31099
  `)?`\`${RL.escapeBackticks(this.literalText)}\``:`'${RL.escapeSingleQuotes(this.literalText)}'`}};nh.StringLiteralShape=fse;var pIt=class extends RL{static{t(this,"TemplateSpanShape")}literalText;expression;constructor({source:e,literalText:s,expression:c}){super({source:e}),this.literalText=b0.from(e,s).asString().getValue(),this.expression=c}getLiteralText(){return this.literalText}getExpression(){return this.expression}getValue(e){return`${e instanceof b0?e.getValue():typeof e=="function"?e(this.expression):e??this.expression.toString().getValue()}${this.literalText}`}getCode(){return`\${${this.expression.getCode()}}${RL.escapeBackticks(this.literalText)}`}};nh.TemplateSpanShape=pIt;var Cje=class extends RL{static{t(this,"TemplateExpressionShape")}literalText;spans;constructor({source:e,literalText:s,spans:c}){super({source:e}),this.literalText=b0.from(e,s).asString().getValue(),this.spans=c??[]}getLiteralText(){return this.literalText}hasSubstitution(){return this.spans.length>0}getSpans(){return this.spans}getValue(e){return`${this.literalText}${this.spans.map((s,c)=>s.getValue(typeof e=="function"?e:e?.[c])).join("")}`}getCode(){return`\`${RL.escapeBackticks(this.literalText)}${this.spans.map(e=>e.getCode()).join("")}\``}};nh.TemplateExpressionShape=Cje;var dIt=class extends RL{static{t(this,"TaggedTemplateExpressionShape")}tag;template;constructor({source:e,tag:s,template:c}){super({source:e}),this.tag=b0.from(e,s).asString().getValue(),this.template=c.as(Cje,"Template must be a template expression shape")}getTag(){return this.tag}getTemplate(){return this.template}getValue(e){return this.template.getValue(e)}getCode(){return`${this.tag||""}${this.template.getCode()}`}};nh.TaggedTemplateExpressionShape=dIt;var kK=class extends b0{static{t(this,"NumberShape")}value;constructor({source:e,value:s}){super({source:e}),this.value=s}getValue(){return this.value}};nh.NumberShape=kK;var cz=class extends b0{static{t(this,"BooleanShape")}value;constructor({source:e,value:s}){super({source:e}),this.value=s}getValue(){return this.value}};nh.BooleanShape=cz;var MK=class n extends b0{static{t(this,"ArrayShape")}elements;constructor({source:e,elements:s}){super({source:e}),this.elements=s.map(c=>b0.from(e,c))}getValue(){return this.elements.map(e=>e.getValue())}getElements(e=!0){return e?this.elements.map(s=>s.isResolvable()?s.resolve(!0):s):this.elements}getElement(e,s=!0){return this.getElements(s)[e]??new k9({source:this})}hasElement(e){return e<this.elements.length}map(e,s=!0){return this.getElements(s).map(e)}equals(e){let s=b0.from(this,e);if(!s.isArray()||this.elements.length!==s.elements.length)return!1;for(let[c,d]of this.elements.entries())if(!d.equals(s.getElement(c)))return!1;return!0}static from(e,s){if(s instanceof n)return s;s=s instanceof b0?s.getValue():s;let c=Array.isArray(s)?s:[s];return new n({source:e,elements:c})}getCode(){return`[${this.map(e=>e.getCode(),!1).join(", ")}]`}};nh.ArrayShape=MK;var n$e=Symbol("MERGE"),TTi=t((n,e)=>{switch(n){case"string":return e.toString();case"number":return e.toNumber();case"cdata":return e.toString().withContentType("cdata");default:return e.toBoolean()}},"coerceTo"),wje=class n{static{t(this,"ShapeTransform")}shape;resolve;_from;_map;_def;_coerce;constructor(e,s=!0,c=void 0,d=void 0,_=void 0,m=void 0){this.shape=e,this.resolve=s,this._from=c,this._map=d,this._def=_,this._coerce=m}_(e){let s=(this._from??(e===n$e?[]:[e])).map(d=>this.shape.get(d,this.resolve)),c=this._map?this._map(...s):this._from?this._from.length===1?this.shape.get(this._from[0],this.resolve):this.shape.pick(this._from,{resolve:this.resolve}):e!==n$e?this.shape.get(e,this.resolve):this.shape.properties({resolve:this.resolve});if(this._coerce){let d=b0.from(this.shape,c);return{def:this._def,val:d.ifUndefined()??TTi(this._coerce,d)}}else return{def:this._def,val:c}}from(...e){return new n(this.shape,this.resolve,e,this._map,this._def,this._coerce)}map(e){return new n(this.shape,this.resolve,this._from,e,this._def,this._coerce)}val(e){return new n(this.shape,this.resolve,this._from,()=>e,this._def,this._coerce)}def(e){return new n(this.shape,this.resolve,this._from,this._map,e,this._coerce)}toCdata(){return new n(this.shape,this.resolve,this._from,this._map,this._def,"cdata")}toString(){return new n(this.shape,this.resolve,this._from,this._map,this._def,"string")}toNumber(){return new n(this.shape,this.resolve,this._from,this._map,this._def,"number")}toBoolean(){return new n(this.shape,this.resolve,this._from,this._map,this._def,"boolean")}};nh.ShapeTransform=wje;function t$e(n,e){if(e)for(let[s,c]of Object.entries(e))s in n||(n[s]=c)}t(t$e,"assignWithoutOverwriting");var uz=class n extends b0{static{t(this,"ObjectShape")}setProperties;defaultProperties;aliasedKeys;constructor({source:e,properties:s}){super({source:e}),s instanceof n?(this.defaultProperties=s.defaultProperties,this.setProperties=s.setProperties,this.aliasedKeys=s.aliasedKeys):(this.defaultProperties={},this.aliasedKeys={},this.setProperties=Object.fromEntries(Object.entries(s).map(([c,d])=>[c,b0.from(e,d)])))}withAliasedKeys(e){return this.aliasedKeys=e,this}getAliasedKeys(){return this.aliasedKeys}findAliasUsed(e){let s=this.getAliases(e),c=this.properties({resolve:!1});return s.find(d=>c[d])}getAliases(e){return this.aliasedKeys[e]??[]}properties({nonDefaultsOnly:e=!1,resolve:s=!0}={}){let c={};if(e){for(let d in this.setProperties){let _=this.setProperties[d];_&&_.isDefined()&&!_.equals(this.getDefault(d))&&(c[d]=s&&_.isResolvable()?_.resolve():_)}return c}for(let d in this.setProperties){let _=this.setProperties[d];_&&(c[d]=s&&_.isResolvable()?_.resolve():_)}for(let d in this.defaultProperties)if(!this.setProperties[d]||this.setProperties[d].isUndefined()){let _=this.defaultProperties[d];_&&(c[d]=s&&_.isResolvable()?_.resolve():_)}return c}getValue(e=!1){return Object.fromEntries(this.entries({nonDefaultsOnly:e}).map(([s,c])=>[s,c.getValue()]))}get(e,s=!0){let[c,d,..._]=typeof e=="string"?[e]:e,m=[c,...this.getAliases(c)],b=this.properties({resolve:s}),E=m.find(A=>A in b),C=E!==void 0?b[E]:void 0;return(d?C?.ifObject()?.get([d,..._],s):C)??new k9({source:this.getSource()})}getDefault(e){return this.defaultProperties[e]??new k9({source:this.getSource()})}keys(e=!1){return Object.keys(this.properties({nonDefaultsOnly:e}))}values(e={}){return Object.values(this.properties(e))}entries(e={}){return Object.entries(this.properties(e))}has(e){return e in this.setProperties}omit(e,s={}){e=typeof e=="string"?[e]:e;let c=new RegExp(`^(${e.map(d=>d.replaceAll("$","\\$")).join("|")})$`);return Object.fromEntries(this.entries(s).filter(([d])=>!c.test(d)).map(([d,_])=>[d,_]))}pick(e,s={}){e=typeof e=="string"?[e]:e;let c=new RegExp(`^(${e.join("|")})$`);return Object.fromEntries(this.entries(s).filter(([d])=>c.test(d)).map(([d,_])=>[d,_]))}setDefaults(e){this.defaultProperties=Object.fromEntries(Object.entries(e).map(([s,c])=>[s,b0.from(this.getSource(),c)]));for(let[s,c]of Object.entries(this.setProperties))c.isObject()&&this.defaultProperties[s]?.isObject()&&c.setDefaults(this.defaultProperties[s].getValue());return this}transform(e,s=!0){let c={},d={},_=e({merge:n$e,$:new wje(this,s)});for(let m of[...Object.keys(_),n$e])if(_[m]){let b=_[m]._(m);if(m===n$e){let{val:E,def:C}=b;if(E&&(typeof E!="object"||Array.isArray(E)))throw new Error("Cannot merge non-object value");if(C&&(typeof C!="object"||Array.isArray(C)))throw new Error("Cannot merge non-object default value");E instanceof n?(t$e(c,E.setProperties),t$e(d,E.defaultProperties)):t$e(c,E),C instanceof n?t$e(d,C.setProperties):C&&t$e(d,C)}else c[m]=b.val,b.def!==void 0&&(d[m]=b.def)}return new n({source:this.getSource(),properties:c}).setDefaults(d)}merge(e){let s={...this.setProperties},c={...this.defaultProperties};for(let[d,_]of[[s,e instanceof n?e.setProperties:e],[c,e instanceof n?e.defaultProperties:{}]])for(let[m,b]of Object.entries(_)){let E=b0.from(this,b);!(m in d)&&E.isUndefined()||d[m]?.equals(E)||(d[m]?.isObject()&&E.isObject()?d[m]=d[m].merge(E):d[m]=E)}return new n({source:this.getSource(),properties:s}).setDefaults(c).setCreator(this.getCreator())}equals(e){let s=b0.from(this,e);if(!s.isObject()||this.keys().length!==s.keys().length)return!1;for(let[c,d]of this.entries())if(!d.equals(s.get(c)))return!1;return!0}getCode(){return`{
31100
31100
  ${this.entries({nonDefaultsOnly:!0,resolve:!1}).map(([e,s])=>`${n.quotePropertyNameIfNeeded(e)}: ${s.getCode()}`).join(`,
31101
31101
  `)}
31102
- }`}static quotePropertyNameIfNeeded(e){return e===""||/[^\w$]/.test(e)?`'${e}'`:e}};nh.ObjectShape=uz;var $je=class extends b0{static{t(this,"CallExpressionShape")}callee;args;exportName;constructor({source:e,callee:s,args:c,exportName:d}){super({source:e}),this.callee=s,this.args=new MK({source:e,elements:c}),this.exportName=d}getCallee(){return this.callee}getExportName(){if(this.exportName)return MNn.camelCase(this.exportName)}hasExportName(){return!!this.exportName}getArguments(e=!0){return this.args.getElements(e)}getArgument(e,s=!0){return this.args.getElement(e,s)}hasArgument(e){return this.args.hasElement(e)}getDescription(){return`${this.getKind()} (${this.callee})`}getCode(){return`${this.callee}(${this.args.map(e=>e.getCode(),!1).join(", ")})`}};nh.CallExpressionShape=$je;var fIt=class extends RL{static{t(this,"SourceFileShape")}path;content;constructor({source:e,path:s,content:c}){super({source:e}),this.path=typeof s=="string"?s:s.asString(`Source file path must be a string, but received: ${s.getDescription()}`).getValue(),this.content=typeof c=="string"?c:c.asString(`Source file content must be a string, but received: ${c.getDescription()}`).getValue()}getPath(){return this.path}getBaseName(){return kNn.path.basename(this.path)}getExtension(){return kNn.path.extname(this.path)}getContent(){return this.content}getValue(){return this.getContent()}getCode(){return this.getContent()}};nh.SourceFileShape=fIt;var _It=class extends b0{static{t(this,"ElementAccessExpressionShape")}callee;arg;constructor({source:e,callee:s,arg:c}){super({source:e}),this.callee=s,this.arg=b0.from(e,c).pipe(d=>d.isResolvable()?d.resolve():d).as([RL,kK],`Invalid argument to element access expression: ${c instanceof b0?c.getDescription():JSON.stringify(c)}`)}getCallee(){return this.callee}getArg(){return this.arg}};nh.ElementAccessExpressionShape=_It;var hIt=class extends b0{static{t(this,"VariableStatementShape")}variableName;initializer;_isExported;constructor({source:e,variableName:s,initializer:c,isExported:d=!1}){super({source:e}),this.variableName=s instanceof b0?s:new ZZ({source:e,name:s}),this.initializer=b0.from(e,c),this._isExported=d}getVariableName(){return this.variableName}getInitializer(){return this.initializer}isExported(){return this._isExported}getCode(){return`${this.isExported()?"export ":""}const ${this.getVariableName().getName()} = ${this.getInitializer().getCode()}`}};nh.VariableStatementShape=hIt;function ONn(n){return n==="sys_app"?"scope":"update"}t(ONn,"getDefaultCategoryFromTable");function ITi(n){return n==="demo"?"unload.demo":"unload"}t(ITi,"getInstallCategoryFromInstallMethod");function DTi(n,e){let s=ONn(e);if(n instanceof $je){let c=n.getArgument(0).ifObject()?.get(["$meta","installMethod"]).ifString()?.getValue();c&&(s=ITi(c))}return s}t(DTi,"getInstallCategory");var ohe=class n extends uz{static{t(this,"Record")}id;related=[];action;installCategory;constructor({source:e,id:s,properties:c,action:d="INSERT_OR_UPDATE",installCategory:_=ONn(s.getTable())}){super({source:e,properties:c}),this.action=d,this.id=s,this.installCategory=_}static isDeleteAction(e){return e==="DELETE"||e==="delete_multiple"}getId(){return this.id}getInstallCategory(){return this.installCategory}getTable(){return this.id.getTable()}getAction(){return this.action}isDeleted(){return n.isDeleteAction(this.getAction())}with(...e){return this.related.length=0,this.related.push(...e),this}getRelated(){return this.related}flat(){return[this,...this.related.flatMap(e=>e.flat())]}getCount(){return 1+this.related.reduce((e,s)=>e+s.getCount(),0)}merge(e){return new n({source:this.getSource(),id:this.getId(),action:e instanceof n?e.getAction():this.getAction(),installCategory:this.getInstallCategory(),properties:super.merge(e)}).setCreator(this.getCreator()).with(...this.related)}equals(e){return this.getId().equals(e)}strictEquals(e){return!this.equals(e)||!(e instanceof n)?!1:this.getAction()===e.getAction()&&super.equals(e)}setCreator(e,s=!1){return this.related.forEach(c=>c.setCreator(e,s)),super.setCreator(e,s)}toRecordId(){return this.id}toString(){return this.id}};nh.Record=ohe;var lhe=class extends RL{static{t(this,"RecordId")}table;guid;keys;nowIdKey;constructor({source:e,table:s,guid:c,keys:d,nowIdKey:_}){let m=d instanceof uz?Object.fromEntries(d.entries().map(([b,E])=>[b,E.ifString()?.getValue()??E.toRecordId()])):d;if(m&&Object.keys(m).length<=0)throw new Error("Failed to create RecordId shape. Coalesce keys must contain at least one entry.");super({source:e}),this.table=s,this.guid=c,this.keys=m,this.nowIdKey=_}getTable(){return this.table}getGuidProducer(){return this.guid}getNowIdKey(){return this.nowIdKey}getKeys(){return this.keys}resolveKeys(){if(this.keys)return Object.fromEntries(Object.entries(this.keys).map(([e,s])=>[e,typeof s=="string"?s:s.getValue()]))}getKey(e){return this.getKeys()?.[e]}getPrimaryKey(){let e=Object.values(this.keys??{}),[s]=e;if(e.length!==1||!s||typeof s!="string")throw new Error("Tried to get primary key of record ID that doesn't have one");return s}hasPrimaryKey(){return!!this.keys&&Object.keys(this.keys).length===1}getValue(){return typeof this.guid=="string"?this.guid:this.guid()}equals(e){let s=b0.from(this,e);return s.isRecord()?this.equals(s.getId()):s.isRecordId()?this.getTable()===s.getTable()&&(this.getValue()===s.getValue()||this.keys!==void 0&&MNn.isEqual(this.keys,s.keys)):this.hasPrimaryKey()&&s.equals(this.getPrimaryKey())||super.equals(e)}getCode(){return`'${this.hasPrimaryKey()?this.getPrimaryKey():this.getValue()}'`}};nh.RecordId=lhe;function RTi(n){return typeof n.evaluate=="function"}t(RTi,"isLazyValue");function NTi(n){return typeof n.createAssociatedRecords=="function"}t(NTi,"hasAssociatedRecords")});var gIt=st(OK=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(OK,"__esModule",{value:!0});OK.formatDateToPlatformFormat=PTi;OK.formatDateToPlatformFormatLocal=LTi;OK.parseGlideDuration=kTi;OK.parseGlideTime=MTi;OK.parseDateTime=mIt;OK.durationFieldToXML=OTi;OK.timeFieldToXML=FTi;var pz=t(n=>String(n).padStart(2,"0"),"padZero");function PTi(n){return n===void 0?"1970-01-01 00:00:00":`${n.getUTCFullYear()}-${pz(n.getUTCMonth()+1)}-${pz(n.getUTCDate())} ${pz(n.getUTCHours())}:${pz(n.getUTCMinutes())}:${pz(n.getUTCSeconds())}`}t(PTi,"formatDateToPlatformFormat");function LTi(n){return n===void 0?"1970-01-01 00:00:00":`${n.getFullYear()}-${pz(n.getMonth()+1)}-${pz(n.getDate())} ${pz(n.getHours())}:${pz(n.getMinutes())}:${pz(n.getSeconds())}`}t(LTi,"formatDateToPlatformFormatLocal");function kTi(n){if(!n)return;let e=mIt(n);if(!e)return;let s=new Date(e.year,e.month-1,e.day,e.hours,e.minutes,e.seconds),c=new Date(1970,0,1,0,0,0),d=s.getTime()-c.getTime(),_={},m=Math.floor(d/(1e3*60*60*24));m>0&&(_.days=m,d-=m*1e3*60*60*24);let b=Math.floor(d/(1e3*60*60));b>0&&(_.hours=b,d-=b*1e3*60*60);let E=Math.floor(d/(1e3*60));E>0&&(_.minutes=E,d-=E*1e3*60);let C=Math.floor(d/1e3);return C>0&&(_.seconds=C),_}t(kTi,"parseGlideDuration");function MTi(n,e){if(!n)return;let s=mIt(n);if(!s)return;let c=new Date(Date.UTC(s.year,s.month-1,s.day,s.hours,s.minutes,s.seconds)),d,_,m;if(e){let{hour:E,minute:C,second:A}=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(c).reduce((D,N)=>((N.type==="hour"||N.type==="minute"||N.type==="second")&&(D[N.type]=Number(N.value)),D),{hour:0,minute:0,second:0});d=E,_=C,m=A}else d=c.getHours(),_=c.getMinutes(),m=c.getSeconds();let b={};return d>0&&(b.hours=d),_>0&&(b.minutes=_),m>0&&(b.seconds=m),b}t(MTi,"parseGlideTime");function mIt(n){if(!n)return;let e=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,s=n.match(e);if(s){let[,c,d,_,m,b,E]=s;return{year:Number(c),month:Number(d),day:Number(_),hours:Number(m),minutes:Number(b),seconds:Number(E)}}}t(mIt,"parseDateTime");function OTi(n){let e=BTi(n.days!==void 0?n.days:0,n.hours!==void 0?n.hours:0,n.minutes!==void 0?n.minutes:0,n.seconds!==void 0?n.seconds:0);return new Date(Date.UTC(1970,0,1)+e)}t(OTi,"durationFieldToXML");function FTi(n,e){let s=n.hours??0,c=n.minutes??0,d=n.seconds??0;if(e){let _=Date.UTC(1970,0,1,12,0,0),E=new Date(_).toLocaleString("en-US",{timeZone:e,hour:"2-digit",minute:"2-digit",hour12:!1}).split(":").map(Number),C=E[0]??12,A=E[1]??0,D=(C-12)*60+A,N=s*60+c-D;return new Date(Date.UTC(1970,0,1,Math.floor(N/60),N%60,d))}return new Date(1970,0,1,s,c,d)}t(FTi,"timeFieldToXML");function BTi(n,e,s,c){return n*864e5+e*36e5+s*6e4+c*1e3}t(BTi,"toMilliseconds")});var FNn=st(Z2=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Z2,"__esModule",{value:!0});Z2.TemplateValueShape=Z2.FieldListShape=Z2.TimeShape=Z2.DurationShape=Z2.DATA_HELPER_NAMES=void 0;Z2.asDataHelper=VTi;var i8=Aje(),che=gIt();Z2.DATA_HELPER_NAMES={DURATION:"Duration",TIME:"Time",FIELD_LIST:"FieldList",TEMPLATE_VALUE:"TemplateValue"};var uhe=class extends i8.CallExpressionShape{static{t(this,"DataHelperShape")}equals(e){return typeof e=="string"?this.toString().getValue()===e:e instanceof i8.Shape?e.equals(this.toString().getValue()):super.equals(e)}},Tje=class n extends uhe{static{t(this,"DurationShape")}constructor({source:e,value:s}){let c;if(s instanceof i8.ObjectShape){let d=s.pick(["days","hours","minutes","seconds"]);c=Object.fromEntries(Object.entries(d).map(([_,m])=>[_,i8.Shape.from(e,m).asNumber(`fields in Duration object can only contain numbers, got ${typeof m}`)]))}else c=s;super({source:e,callee:Z2.DATA_HELPER_NAMES.DURATION,args:[c]})}getDuration(){return this.getArgument(0).asObject().getValue()}toString(){let e=(0,che.durationFieldToXML)(this.getDuration()),s=(0,che.formatDateToPlatformFormat)(e);return i8.Shape.from(this.getSource(),s).asString()}static from(e,s){if(s instanceof i8.StringShape){let c=(0,che.parseGlideDuration)(s.getValue());if(!c)throw new Error(`Invalid duration value: ${s.getValue()}`);return new n({source:e,value:c})}return new n({source:e,value:s})}static zero(e){return new n({source:e,value:{seconds:0}})}};Z2.DurationShape=Tje;var Ije=class n extends uhe{static{t(this,"TimeShape")}timeZone;constructor({source:e,value:s,timeZone:c}){let d;if(s instanceof i8.ObjectShape){let m=s.pick(["hours","minutes","seconds"]);d=Object.fromEntries(Object.entries(m).map(([b,E])=>[b,i8.Shape.from(e,E).asNumber(`fields in Time object can only contain numbers, got ${typeof E}`)]))}else d=s;let _=[d];c&&_.push(c),super({source:e,callee:Z2.DATA_HELPER_NAMES.TIME,args:_}),this.timeZone=c}getTimeData(){return this.getArgument(0).asObject().getValue()}getTimeZone(){return this.timeZone}toString(){let e=(0,che.timeFieldToXML)(this.getTimeData(),this.timeZone),s=(0,che.formatDateToPlatformFormat)(e);return i8.Shape.from(this.getSource(),s).toString()}static from(e,s,c){if(s instanceof i8.StringShape){let d=(0,che.parseGlideTime)(s.getValue(),c);if(!d)throw new Error(`Invalid time value: ${s.getValue()}`);return new n({source:e,value:d,timeZone:c})}return new n({source:e,value:s,timeZone:c})}};Z2.TimeShape=Ije;var Dje=class n extends uhe{static{t(this,"FieldListShape")}constructor({source:e,fields:s}){super({source:e,callee:Z2.DATA_HELPER_NAMES.FIELD_LIST,args:[s]})}getFields(){return this.getArgument(0).asArray().getElements()}toString(){let e=this.getFields().map(s=>s.isRecord()?s.getId().getValue():s.getValue());return i8.Shape.from(this.getSource(),e.join(",")).asString()}static from(e,s){let c=s.getValue().split(",").map(d=>i8.Shape.from(e,d.trim()));return new n({source:e,fields:c})}};Z2.FieldListShape=Dje;var Rje=class n extends uhe{static{t(this,"TemplateValueShape")}constructor({source:e,value:s}){super({source:e,callee:Z2.DATA_HELPER_NAMES.TEMPLATE_VALUE,args:[s]})}getTemplateValue(){return this.getArgument(0).asObject()}toString(){let e=this.getTemplateValue().getValue(),s=Object.entries(e).map(([c,d])=>{let _=String(d).replace(/\^/g,"^^");return`${c}=${_}`}).join("^");return i8.Shape.from(this.getSource(),`${s}^EQ`).asString()}static from(e,s){let c=s.getValue(),d="\0CARET\0",m=c.replace(/\^\^/g,d).split("^"),b={};for(let E of m){let C=E.indexOf("=");if(C===-1)continue;let A=E.substring(0,C),D=E.substring(C+1);!A||!D||(b[A]=D.replace(new RegExp(d,"g"),"^"))}return new n({source:e,value:b})}};Z2.TemplateValueShape=Rje;function VTi(n,e,s){switch(n){case Z2.DATA_HELPER_NAMES.DURATION:return Tje.from(e.getSource(),e);case Z2.DATA_HELPER_NAMES.TIME:return Ije.from(e.getSource(),e,s);case Z2.DATA_HELPER_NAMES.FIELD_LIST:return Dje.from(e.getSource(),e);case Z2.DATA_HELPER_NAMES.TEMPLATE_VALUE:return Rje.from(e.getSource(),e);default:return}}t(VTi,"asDataHelper")});var VNn=st(BNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(BNn,"__esModule",{value:!0})});var jNn=st(UNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(UNn,"__esModule",{value:!0})});var yIt=st(phe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(phe,"__esModule",{value:!0});phe.DiffDatabase=phe.Database=void 0;var Nje=class n{static{t(this,"Database")}database={};constructor(e=[]){this.insert(...e)}insert(...e){for(let s of e){let c=this.database[s.getTable()]??={},d=s.getId().getValue();c[d]=s}}resolve(e){let s=e.getTable(),c=e.getValue(),d=this.database[s]?.[c];if(d)return d;let _=e.getKeys();if(!_)return;let m=this.query(s,_);if(m.length>1)throw new Error(`Multiple records found for table "${s}" with coalesce keys: ${JSON.stringify(_)}`);return m[0]}get(e,s){if(typeof s=="string")return this.database[e]?.[s];let[c,...d]=this.query(e,s);if(d.length>0)throw new Error(`Expected get() to return no more than 1 match, but ${d.length+1} matches were found.`);return c}query(e,s={}){if(!e)return Object.values(this.database).flatMap(d=>Object.values(d));let c=[];e:for(let d of Object.values(this.database[e]??{})){for(let[_,m]of Object.entries(s))if(!d.get(_).equals(m))continue e;c.push(d)}return c}compare(e){let s=new Pje(this.query());return s.insert(...e instanceof n?e.query():e),s}delete(e){let s=e.getTable(),c=e.getValue();if(this.database[s]?.[c]){delete this.database[s]?.[c];return}let _=e.getKeys();_&&Object.values(this.database[s]??{}).filter(m=>Object.entries(_).every(([b,E])=>m.get(b).equals(E))).forEach(m=>{delete this.database[s]?.[m.getId().getValue()]})}[Symbol.iterator](){return this.query()[Symbol.iterator]()}};phe.Database=Nje;var Pje=class extends Nje{static{t(this,"DiffDatabase")}changedGuids=[];constructor(e=[]){super(e)}hasChanges(){return this.changedGuids.length>0}insert(...e){if(!this.changedGuids){super.insert(...e);return}for(let s of e){let c=s.getId(),d=this.resolve(c);d&&!d.strictEquals(s)?(this.changedGuids.push(c.getValue()),super.insert(d.merge(s))):d||(this.changedGuids.push(c.getValue()),super.insert(s))}}isChanged(e){return this.changedGuids.includes(e.getId().getValue())}};phe.DiffDatabase=Pje});var WNn=st(Lje=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Lje,"__esModule",{value:!0});Lje.Cache=void 0;var vIt=class{static{t(this,"Cache")}cache=new WeakMap;get(e){return this.cache.get(e)}put(e,s){return this.cache.set(e,{success:!0,value:s}),s}error(e,s){return this.cache.set(e,{success:!1,error:s}),s}clear(){this.cache=new WeakMap}};Lje.Cache=vIt});var zNn=st(fhe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fhe,"__esModule",{value:!0});fhe.Plugins=fhe.Plugin=void 0;var bIt=HW(),UTi=Aje(),FK=yIt(),i$e=CIt(),SIt=WNn(),jTi=Lc(),dhe=Lc();function a$e(n,e){return e.success&&(e.value=Array.isArray(e.value)?e.value.map(s=>s.setCreator(n)):e.value.setCreator(n)),e}t(a$e,"setCreator");var xIt=class n{static{t(this,"Plugin")}config;nodeToShapeCache=new SIt.Cache;shapeToSubclassCache=new SIt.Cache;shapeToRecordCache=new SIt.Cache;relationships={};references={};constructor(e){this.config=e;for(let[s,c]of Object.entries(this.config.records??{}))this.parseRelationships([s,c.relationships])}parseRelationships([e,s]){if(!(e==="*"||!s)){this.relationships[e]={...this.relationships[e],...s};for(let[c,d]of Object.entries(s)){if(typeof d.via=="string"){let[_,m]=d.inverse?[c,e]:[e,c];this.references[m]={...this.references[m],[d.via]:_}}this.parseRelationships([c,d.relationships])}}}isComposite(e){return this.config.records?.[e]?.composite??!1}static create(e){return new n(e)}getName(){return this.config.name}getDocsMetadata(){if(!this.config.docs)return;let e={};for(let s of this.config.docs)e[s.apiName]={docPath:s.docPath,tags:s.tags};return e}getDescendants(e,s){let c=Object.entries(this.relationships[e.getTable()]??{}).filter(([,{descendant:m}])=>m),d=[],_=t(m=>{for(let b of[m].flat())b&&e!==b&&(d.push(b),d.push(...this.getDescendants(b,s)))},"push");for(let[m,{via:b,inverse:E=!1}]of c)typeof b=="string"?E?e.get(b).ifDefined()?.toString().pipe(C=>_(s.get(m,C.getValue()))):_(s.query(m,{[b]:e.toString().getValue()})):typeof b=="function"?_(s.query(m).filter(C=>b(e,C))):Array.isArray(b)?_(s.query(m).filter(C=>{for(let A of b){let{parent:[D,N],child:[F,W]}=A,G=e.get(D).ifString()?.asString(`Expected string value for column ${D} in regex-based via relationship`).getValue(),j=C.get(F).ifString()?.asString(`Expected string value for column ${F} in regex-based via relationship`).getValue();if(!G||!j)return!1;let K=G.match(new RegExp(N)),ee=j.match(new RegExp(W));if(!K||!ee)return!1;let re=K.slice(1),ie=ee.slice(1);if(re.length!==ie.length||re.some((_e,Te)=>_e!==ie[Te]))return!1}return!0})):_(s.query(m,Object.fromEntries(Object.entries(b).map(C=>{let[A,D]=E?C:[C[1],C[0]];return[D,e.get(A).getValue()]}))));return d}getCoalesceStrategy(e){return this.config.records?.[e]?.coalesce}getCoalesceTables(){return Object.entries(this.config.records??{}).filter(([e,s])=>s.coalesce).map(([e])=>e)}getTables(e,s=[]){let c=e?Object.entries(e).filter(([,d])=>d.descendant):Object.entries(this.config.records??{}).filter(([,d])=>d.toShape);return s.push(...c.filter(([d])=>d!=="*").map(([d])=>d)),c.filter(([d,_])=>_.relationships).forEach(([d,_])=>this.getTables(_.relationships,s)),new Set(s)}getReferenceColumns(e){return this.references[e]??{}}getRelationships(){return this.relationships}flushCache(){this.nodeToShapeCache.clear(),this.shapeToRecordCache.clear()}async nodeToShape(e,s){let c=this.nodeToShapeCache.get(e.compilerNode);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.nodes??[])if(d.toShape&&(0,bIt.getKindName)(e)===d.node&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getSourceFile().getFilePath(),s.project)))){let _=a$e(this,await d.toShape.bind(this)(e,{...s,self:this}));if(_.success)return this.nodeToShapeCache.put(e.compilerNode,_)}return this.nodeToShapeCache.put(e.compilerNode,{success:!1})}catch(d){throw this.nodeToShapeCache.error(e.compilerNode,d)}}async commit(e,s,c){for(let{shape:d,commit:_}of this.config.shapes??[])if(e.is(d)&&_){let m=await _.bind(this)(e,s,{...c,self:this});if(m.success)return m}return{success:!1}}async getTarget(e,s){for(let{shape:c,getTarget:d}of this.config.shapes??[])if(e.is(c)&&d){let _=await d.bind(this)(e,{...s,self:this});if(_.success)return _}return{success:!1}}async shapeToSubclass(e,s){let c=this.shapeToSubclassCache.get(e);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.shapes??[])if(d.toSubclass&&e.constructor===d.shape&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getOriginalFilePath(),s.project)))){let _=a$e(this,await d.toSubclass.bind(this)(e,{...s,self:this}));if(_.success){if(_.value.constructor===d.shape)throw new Error(`Result of subclassing "${d.shape.name}" is an instance of the same class. The result MUST be a subclass.`);return this.shapeToSubclassCache.put(e,_)}}return this.shapeToSubclassCache.put(e,{success:!1})}catch(d){throw this.shapeToSubclassCache.error(e,d)}}async shapeToRecord(e,s){let c=this.shapeToRecordCache.get(e);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.shapes??[])if(d.toRecord&&e.is(d.shape)&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getOriginalFilePath(),s.project)))){let _=a$e(this,await d.toRecord.bind(this)(e,{...s,self:this}));if(_.success)return this.shapeToRecordCache.put(e,_)}return this.shapeToRecordCache.put(e,{success:!1})}catch(d){throw this.shapeToRecordCache.error(e,d)}}async recordToShape0(e,s){if(e.getAction()!=="INSERT_OR_UPDATE")return{success:!0,value:new UTi.DeletedShape({source:e})};let c=e.getTable();for(let[d,{toShape:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=a$e(this,await _.bind(this)(e,{...s,self:this}));if(m.success)return m}return{success:!1}}async recordToShape({record:e,database:s,context:c}){c.logger.debug(`Transforming record into shape: ${e.getTable()}.${e.getId().getValue()}`);let d=this.getDescendants(e,s);return this.recordToShape0(e,{...c,database:s,descendants:new FK.Database(d.filter(_=>_.getAction()==="INSERT_OR_UPDATE"))})}async recordsToShapes({database:e,creatorOnly:s,changedOnly:c=!1,mode:d,handledRecords:_,context:m}){let b=!1,E=[];for(let[C,{toShape:A}]of Object.entries(this.config.records??{})){if(A){if(d==="explicit"&&C==="*")continue;if(d==="catch-all"&&C!=="*")continue}else continue;for(let D of C==="*"?e.query():e.query(C)){if(_.resolve(D.getId())||s&&D.getCreator()!==this)continue;m.logger.debug(`Database contains ${e.query().length} records for transformation.`),m.logger.debug(`Transforming record into shape: ${D.getTable()}.${D.getId().getValue()}`);let N=this.getDescendants(D,e);if(c){if(!(e instanceof FK.DiffDatabase))throw new Error("Tried to check for changed records while creating shapes, but the provided database does not support diffing.");if(![D,...N].some(ee=>e.isChanged(ee)))continue}let F=new FK.Database,W=new FK.Database;for(let ee of N)ee.isDeleted()?F.insert(ee):W.insert(ee);let G=await this.recordToShape0(D,{...m,database:e,descendants:W}),j=[],K=[];if(G.success==="partial")for(let ee of G.unhandledRecords)j.push(ee),K.push(ee.getId().getValue());if(G.success){b=!0,_.insert(D),E.push(...[G.value].flat());for(let ee of[...F,...W])K.includes(ee.getId().getValue())||_.insert(ee);if(m.logger.debug(`Plugin ${this.getName()} deferred handling of records: ${j.map(ee=>ee.getTable()+"_"+ee.getId().getValue()).join(", ")}`),j.length>0)return{success:"partial",value:E,unhandledRecords:j}}}}return{success:b,value:E}}async computeDiff({mode:e,existing:s,incoming:c,context:d,visitedRecords:_,mergedDatabase:m}){let b=[];for(let[E,{diff:C}]of Object.entries(this.config.records??{})){if(C){if(e==="explicit"&&E==="*")continue;if(e==="catch-all"&&E!=="*")continue}else continue;let A=E==="*"?m.query():m.query(E);for(let D of A){if(_.resolve(D.getId()))continue;let N=this.getDescendants(D,m),F=new FK.Database(N),W=[...[s.resolve(D.getId())].filter(K=>K!==void 0),...s.query().filter(K=>F.resolve(K.getId())!==void 0)],G=[...[c.resolve(D.getId())].filter(K=>K!==void 0),...c.query().filter(K=>F.resolve(K.getId())!==void 0)],j=await C.bind(this)(new FK.Database(W),new FK.Database(G),new FK.Database(N),{...d,self:this});j.success&&(b.push(...j.value.query()),_.insert(...W,...G))}}return b}async recordToFile(e,s){let c=e.getTable();for(let[d,{toFile:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=await _.bind(this)(e,{...s,self:this});if(m.success){let b=Array.isArray(m.value)?m.value:[m.value],E=dhe.path.normalize(e.getOriginalFilePath());if((0,i$e.isSNScope)(s.config.scope)&&E.endsWith(jTi.NOW_FILE_EXTENSION)){let C=dhe.path.relative(dhe.path.join(s.config.fluentDir,"if"),E);if(!C.startsWith("..")&&dhe.path.dirname(C)!==".")return{success:!0,value:b.map(A=>({...A,ifDirectoryPackage:dhe.path.join("if",dhe.path.dirname(C))}))}}return{success:!0,value:b}}}return{success:!1}}async recordsToFiles({database:e,mode:s,handledGuids:c,context:d}){let _=!1,m=[];for(let[b,{toFile:E}]of Object.entries(this.config.records??{})){if(E){if(s==="explicit"&&b==="*")continue;if(s==="catch-all"&&b!=="*")continue}else continue;for(let C of b==="*"?e.query():e.query(b)){if(c.has(C.getId().getValue()))continue;let A=this.getDescendants(C,e),D=await this.recordToFile(C,{...d,database:e,descendants:new FK.Database(A.filter(N=>N.getAction()==="INSERT_OR_UPDATE"))});D.success&&(_=!0,c.add(C.getId().getValue()),A.forEach(N=>c.add(N.getId().getValue())),d.config.type==="configuration"&&(Array.isArray(D.value)?D.value.forEach(N=>N.category=""):D.value.category=""),m.push(...[D.value].flat()))}}return{success:_,value:m}}async isEntryPoint(e,s){if(bIt.ts.Node.isNode(e))for(let c of this.config.nodes??[]){if((0,bIt.getKindName)(e)!==c.node)continue;let d=(0,i$e.getFileType)(e.getSourceFile().getFilePath(),s.project);if(!(c.fileTypes&&!c.fileTypes.includes(d)))return!!c.entryPoint}else for(let c of this.config.files??[])if(!(c.matcher instanceof RegExp&&!c.matcher.test(e))&&!(typeof c.matcher=="function"&&!await c.matcher(e,{...s,self:this})))return!!c.entryPoint;return!1}async fileToRecord(e,s){for(let c of this.config.files??[]){if(!c.toRecord||c.matcher instanceof RegExp&&!c.matcher.test(e.path)||typeof c.matcher=="function"&&!c.matcher(e.path,{...s,self:this}))continue;let d=a$e(this,await c.toRecord.bind(this)(e,{...s,self:this}));if(d.success)return d}return{success:!1}}inspect(e,s){for(let c of this.config.shapes??[])e.is(c.shape)&&c.inspect&&c.inspect.bind(this)(e,{...s,self:this})}async getUpdateName(e,s){let c=e.getTable();for(let[d,{getUpdateName:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=await _.bind(this)(e,{...s,self:this});if(m.success)return m}return{success:!1}}};fhe.Plugin=xIt;var EIt=class{static{t(this,"Plugins")}plugins;constructor(e){this.plugins=e}toArray(){return this.plugins}prepend(...e){this.plugins.unshift(...e)}append(...e){this.plugins.push(...e)}getCoalesceStrategy(e){for(let s of this.plugins){let c=s.getCoalesceStrategy(e);if(c)return c}}isComposite(e){for(let s of this.plugins)if(s.isComposite(e))return!0;return!1}getCoalesceTables(){let e=new Set;for(let s of this.plugins)s.getCoalesceTables().forEach(c=>{e.add(c)});return e}getReferenceColumns(e){let s=[];for(let c of this.plugins)s.push(...Object.entries(c.getReferenceColumns(e)));return Object.fromEntries(s)}async isEntryPoint(e,s){for(let c of this.plugins)if(await c.isEntryPoint(e,s))return!0;return!1}getDocsMetadata(){return this.plugins.reduce((e,s)=>{let c=s.getDocsMetadata();return c&&Object.assign(e,c),e},{})}};fhe.Plugins=EIt});var qNn=st(GNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(GNn,"__esModule",{value:!0})});var HNn=st(kje=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kje,"__esModule",{value:!0});kje.PluginUsageTracker=void 0;var wIt=class{static{t(this,"PluginUsageTracker")}sourcesConvertedToRecords=new Set;recordCountPerPlugin=new Map;clearPluginToRecordUsage(){this.sourcesConvertedToRecords.clear(),this.recordCountPerPlugin.clear()}addPluginToRecordUsage(e,s,c){if(!this.sourcesConvertedToRecords.has(s)){this.sourcesConvertedToRecords.add(s);let d=this.recordCountPerPlugin.get(e)??0;this.recordCountPerPlugin.set(e,d+c)}}getRecordCountPerPlugin(){return[...this.recordCountPerPlugin.entries()].map(([e,s])=>({plugin:e.getName().replace(/Plugin$/,""),count:s}))}};kje.PluginUsageTracker=wIt});var Mje=st(Gk=>{"use strict";pe();ue();oe();ce();le();var WTi=Gk&&Gk.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),dz=Gk&&Gk.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&WTi(e,n,s)};Object.defineProperty(Gk,"__esModule",{value:!0});dz(Aje(),Gk);dz(FNn(),Gk);dz(VNn(),Gk);dz(jNn(),Gk);dz(zNn(),Gk);dz(jwt(),Gk);dz(qNn(),Gk);dz(yIt(),Gk);dz(gIt(),Gk);dz(HNn(),Gk)});var KNn=st(AIt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AIt,"__esModule",{value:!0});AIt.deleteMultipleDiff=zTi;var $It=Mje();async function zTi(n,e,s,{factory:c}){if(e.query().length===0)return{success:!0,value:new $It.Database};let d=n.compare(e),_=s.query().filter(m=>!e.resolve(m.getId()));for(let m of _){let b=await c.createRecord({source:m.getSource(),table:m.getTable(),explicitId:m.getId(),properties:m.properties(),action:"DELETE"});d.insert(b)}return{success:!0,value:d.hasChanges()?new $It.Database(d.query()):new $It.Database}}t(zTi,"deleteMultipleDiff")});var CIt=st(BK=>{"use strict";pe();ue();oe();ce();le();var GTi=BK&&BK.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),TIt=BK&&BK.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&GTi(e,n,s)};Object.defineProperty(BK,"__esModule",{value:!0});TIt(j_n(),BK);TIt(W_n(),BK);TIt(KNn(),BK)});var JNn=st(Oje=>{pe();ue();oe();ce();le();(function(n){n.parser=function(f,h){return new s(f,h)},n.SAXParser=s,n.SAXStream=C,n.createStream=E,n.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function s(f,h){if(!(this instanceof s))return new s(f,h);var v=this;d(v),v.q=v.c="",v.bufferCheckPosition=n.MAX_BUFFER_LENGTH,v.opt=h||{},v.opt.lowercase=v.opt.lowercase||v.opt.lowercasetags,v.looseCase=v.opt.lowercase?"toLowerCase":"toUpperCase",v.tags=[],v.closed=v.closedRoot=v.sawRoot=!1,v.tag=v.error=null,v.strict=!!f,v.noscript=!!(f||v.opt.noscript),v.state=Ce.BEGIN,v.strictEntities=v.opt.strictEntities,v.ENTITIES=v.strictEntities?Object.create(n.XML_ENTITIES):Object.create(n.ENTITIES),v.attribList=[],v.opt.xmlns&&(v.ns=Object.create(W)),v.opt.unquotedAttributeValues===void 0&&(v.opt.unquotedAttributeValues=!f),v.trackPosition=v.opt.position!==!1,v.trackPosition&&(v.position=v.line=v.column=0),Ge(v,"onready")}t(s,"SAXParser"),Object.create||(Object.create=function(f){function h(){}t(h,"F"),h.prototype=f;var v=new h;return v}),Object.keys||(Object.keys=function(f){var h=[];for(var v in f)f.hasOwnProperty(v)&&h.push(v);return h});function c(f){for(var h=Math.max(n.MAX_BUFFER_LENGTH,10),v=0,S=0,w=e.length;S<w;S++){var P=f[e[S]].length;if(P>h)switch(e[S]){case"textNode":Ve(f);break;case"cdata":Ke(f,"oncdata",f.cdata),f.cdata="";break;case"script":Ke(f,"onscript",f.script),f.script="";break;default:J(f,"Max buffer length exceeded: "+e[S])}v=Math.max(v,P)}var O=n.MAX_BUFFER_LENGTH-v;f.bufferCheckPosition=O+f.position}t(c,"checkBufferLength");function d(f){for(var h=0,v=e.length;h<v;h++)f[e[h]]=""}t(d,"clearBuffers");function _(f){Ve(f),f.cdata!==""&&(Ke(f,"oncdata",f.cdata),f.cdata=""),f.script!==""&&(Ke(f,"onscript",f.script),f.script="")}t(_,"flushBuffers"),s.prototype={end:t(function(){i(this)},"end"),write:u,resume:t(function(){return this.error=null,this},"resume"),close:t(function(){return this.write(null)},"close"),flush:t(function(){_(this)},"flush")};var m;try{m=(Wfe(),Sc(jfe)).Stream}catch{m=t(function(){},"Stream")}m||(m=t(function(){},"Stream"));var b=n.EVENTS.filter(function(f){return f!=="error"&&f!=="end"});function E(f,h){return new C(f,h)}t(E,"createStream");function C(f,h){if(!(this instanceof C))return new C(f,h);m.apply(this),this._parser=new s(f,h),this.writable=!0,this.readable=!0;var v=this;this._parser.onend=function(){v.emit("end")},this._parser.onerror=function(S){v.emit("error",S),v._parser.error=null},this._decoder=null,b.forEach(function(S){Object.defineProperty(v,"on"+S,{get:t(function(){return v._parser["on"+S]},"get"),set:t(function(w){if(!w)return v.removeAllListeners(S),v._parser["on"+S]=w,w;v.on(S,w)},"set"),enumerable:!0,configurable:!1})})}t(C,"SAXStream"),C.prototype=Object.create(m.prototype,{constructor:{value:C}}),C.prototype.write=function(f){if(typeof it=="function"&&typeof it.isBuffer=="function"&&it.isBuffer(f)){if(!this._decoder){var h=(p2t(),Sc(u2t)).StringDecoder;this._decoder=new h("utf8")}f=this._decoder.write(f)}return this._parser.write(f.toString()),this.emit("data",f),!0},C.prototype.end=function(f){return f&&f.length&&this.write(f),this._parser.end(),!0},C.prototype.on=function(f,h){var v=this;return!v._parser["on"+f]&&b.indexOf(f)!==-1&&(v._parser["on"+f]=function(){var S=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);S.splice(0,0,f),v.emit.apply(v,S)}),m.prototype.on.call(v,f,h)};var A="[CDATA[",D="DOCTYPE",N="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/2000/xmlns/",W={xml:N,xmlns:F},G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,j=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ee=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function re(f){return f===" "||f===`
31102
+ }`}static quotePropertyNameIfNeeded(e){return e===""||/[^\w$]/.test(e)?`'${e}'`:e}};nh.ObjectShape=uz;var $je=class extends b0{static{t(this,"CallExpressionShape")}callee;args;exportName;constructor({source:e,callee:s,args:c,exportName:d}){super({source:e}),this.callee=s,this.args=new MK({source:e,elements:c}),this.exportName=d}getCallee(){return this.callee}getExportName(){if(this.exportName)return MNn.camelCase(this.exportName)}hasExportName(){return!!this.exportName}getArguments(e=!0){return this.args.getElements(e)}getArgument(e,s=!0){return this.args.getElement(e,s)}hasArgument(e){return this.args.hasElement(e)}getDescription(){return`${this.getKind()} (${this.callee})`}getCode(){return`${this.callee}(${this.args.map(e=>e.getCode(),!1).join(", ")})`}};nh.CallExpressionShape=$je;var fIt=class extends RL{static{t(this,"SourceFileShape")}path;content;constructor({source:e,path:s,content:c}){super({source:e}),this.path=typeof s=="string"?s:s.asString(`Source file path must be a string, but received: ${s.getDescription()}`).getValue(),this.content=typeof c=="string"?c:c.asString(`Source file content must be a string, but received: ${c.getDescription()}`).getValue()}getPath(){return this.path}getBaseName(){return kNn.path.basename(this.path)}getExtension(){return kNn.path.extname(this.path)}getContent(){return this.content}getValue(){return this.getContent()}getCode(){return this.getContent()}};nh.SourceFileShape=fIt;var _It=class extends b0{static{t(this,"ElementAccessExpressionShape")}callee;arg;constructor({source:e,callee:s,arg:c}){super({source:e}),this.callee=s,this.arg=b0.from(e,c).pipe(d=>d.isResolvable()?d.resolve():d).as([RL,kK],`Invalid argument to element access expression: ${c instanceof b0?c.getDescription():JSON.stringify(c)}`)}getCallee(){return this.callee}getArg(){return this.arg}};nh.ElementAccessExpressionShape=_It;var hIt=class extends b0{static{t(this,"VariableStatementShape")}variableName;initializer;_isExported;constructor({source:e,variableName:s,initializer:c,isExported:d=!1}){super({source:e}),this.variableName=s instanceof b0?s:new ZZ({source:e,name:s}),this.initializer=b0.from(e,c),this._isExported=d}getVariableName(){return this.variableName}getInitializer(){return this.initializer}isExported(){return this._isExported}getCode(){return`${this.isExported()?"export ":""}const ${this.getVariableName().getName()} = ${this.getInitializer().getCode()}`}};nh.VariableStatementShape=hIt;function ONn(n){return n==="sys_app"?"scope":"update"}t(ONn,"getDefaultCategoryFromTable");function ITi(n){return n==="demo"?"unload.demo":"unload"}t(ITi,"getInstallCategoryFromInstallMethod");function DTi(n,e){let s=ONn(e);if(n instanceof $je){let c=n.getArgument(0).ifObject()?.get(["$meta","installMethod"]).ifString()?.getValue();c&&(s=ITi(c))}return s}t(DTi,"getInstallCategory");var ohe=class n extends uz{static{t(this,"Record")}id;related=[];action;installCategory;constructor({source:e,id:s,properties:c,action:d="INSERT_OR_UPDATE",installCategory:_=ONn(s.getTable())}){super({source:e,properties:c}),this.action=d,this.id=s,this.installCategory=_}static isDeleteAction(e){return e==="DELETE"||e==="delete_multiple"}getId(){return this.id}getInstallCategory(){return this.installCategory}getTable(){return this.id.getTable()}getAction(){return this.action}isDeleted(){return n.isDeleteAction(this.getAction())}with(...e){return this.related.length=0,this.related.push(...e),this}getRelated(){return this.related}flat(){return[this,...this.related.flatMap(e=>e.flat())]}getCount(){return 1+this.related.reduce((e,s)=>e+s.getCount(),0)}merge(e){return new n({source:this.getSource(),id:this.getId(),action:e instanceof n?e.getAction():this.getAction(),installCategory:this.getInstallCategory(),properties:super.merge(e)}).setCreator(this.getCreator()).with(...this.related)}equals(e){return this.getId().equals(e)}strictEquals(e){return!this.equals(e)||!(e instanceof n)?!1:this.getAction()===e.getAction()&&super.equals(e)}setCreator(e,s=!1){return this.related.forEach(c=>c.setCreator(e,s)),super.setCreator(e,s)}toRecordId(){return this.id}toString(){return this.id}};nh.Record=ohe;var lhe=class extends RL{static{t(this,"RecordId")}table;guid;keys;nowIdKey;constructor({source:e,table:s,guid:c,keys:d,nowIdKey:_}){let m=d instanceof uz?Object.fromEntries(d.entries().map(([b,E])=>[b,E.ifString()?.getValue()??E.toRecordId()])):d;if(m&&Object.keys(m).length<=0)throw new Error("Failed to create RecordId shape. Coalesce keys must contain at least one entry.");super({source:e}),this.table=s,this.guid=c,this.keys=m,this.nowIdKey=_}getTable(){return this.table}getGuidProducer(){return this.guid}getNowIdKey(){return this.nowIdKey}getKeys(){return this.keys}resolveKeys(){if(this.keys)return Object.fromEntries(Object.entries(this.keys).map(([e,s])=>[e,typeof s=="string"?s:s.getValue()]))}getKey(e){return this.getKeys()?.[e]}getPrimaryKey(){let e=Object.values(this.keys??{}),[s]=e;if(e.length!==1||!s||typeof s!="string")throw new Error("Tried to get primary key of record ID that doesn't have one");return s}hasPrimaryKey(){return!!this.keys&&Object.keys(this.keys).length===1}getValue(){return typeof this.guid=="string"?this.guid:this.guid()}equals(e){let s=b0.from(this,e);return s.isRecord()?this.equals(s.getId()):s.isRecordId()?this.getTable()===s.getTable()&&(this.getValue()===s.getValue()||this.keys!==void 0&&MNn.isEqual(this.keys,s.keys)):this.hasPrimaryKey()&&s.equals(this.getPrimaryKey())||super.equals(e)}getCode(){return`'${this.hasPrimaryKey()?this.getPrimaryKey():this.getValue()}'`}};nh.RecordId=lhe;function RTi(n){return typeof n.evaluate=="function"}t(RTi,"isLazyValue");function NTi(n){return typeof n.createAssociatedRecords=="function"}t(NTi,"hasAssociatedRecords")});var gIt=st(OK=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(OK,"__esModule",{value:!0});OK.formatDateToPlatformFormat=PTi;OK.formatDateToPlatformFormatLocal=LTi;OK.parseGlideDuration=kTi;OK.parseGlideTime=MTi;OK.parseDateTime=mIt;OK.durationFieldToXML=OTi;OK.timeFieldToXML=FTi;var pz=t(n=>String(n).padStart(2,"0"),"padZero");function PTi(n){return n===void 0?"1970-01-01 00:00:00":`${n.getUTCFullYear()}-${pz(n.getUTCMonth()+1)}-${pz(n.getUTCDate())} ${pz(n.getUTCHours())}:${pz(n.getUTCMinutes())}:${pz(n.getUTCSeconds())}`}t(PTi,"formatDateToPlatformFormat");function LTi(n){return n===void 0?"1970-01-01 00:00:00":`${n.getFullYear()}-${pz(n.getMonth()+1)}-${pz(n.getDate())} ${pz(n.getHours())}:${pz(n.getMinutes())}:${pz(n.getSeconds())}`}t(LTi,"formatDateToPlatformFormatLocal");function kTi(n){if(!n)return;let e=mIt(n);if(!e)return;let s=new Date(e.year,e.month-1,e.day,e.hours,e.minutes,e.seconds),c=new Date(1970,0,1,0,0,0),d=s.getTime()-c.getTime(),_={},m=Math.floor(d/(1e3*60*60*24));m>0&&(_.days=m,d-=m*1e3*60*60*24);let b=Math.floor(d/(1e3*60*60));b>0&&(_.hours=b,d-=b*1e3*60*60);let E=Math.floor(d/(1e3*60));E>0&&(_.minutes=E,d-=E*1e3*60);let C=Math.floor(d/1e3);return C>0&&(_.seconds=C),_}t(kTi,"parseGlideDuration");function MTi(n,e){if(!n)return;let s=mIt(n);if(!s)return;let c=new Date(Date.UTC(s.year,s.month-1,s.day,s.hours,s.minutes,s.seconds)),d,_,m;if(e){let{hour:E,minute:C,second:A}=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(c).reduce((D,N)=>((N.type==="hour"||N.type==="minute"||N.type==="second")&&(D[N.type]=Number(N.value)),D),{hour:0,minute:0,second:0});d=E,_=C,m=A}else d=c.getHours(),_=c.getMinutes(),m=c.getSeconds();let b={};return d>0&&(b.hours=d),_>0&&(b.minutes=_),m>0&&(b.seconds=m),b}t(MTi,"parseGlideTime");function mIt(n){if(!n)return;let e=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,s=n.match(e);if(s){let[,c,d,_,m,b,E]=s;return{year:Number(c),month:Number(d),day:Number(_),hours:Number(m),minutes:Number(b),seconds:Number(E)}}}t(mIt,"parseDateTime");function OTi(n){let e=BTi(n.days!==void 0?n.days:0,n.hours!==void 0?n.hours:0,n.minutes!==void 0?n.minutes:0,n.seconds!==void 0?n.seconds:0);return new Date(Date.UTC(1970,0,1)+e)}t(OTi,"durationFieldToXML");function FTi(n,e){let s=n.hours??0,c=n.minutes??0,d=n.seconds??0;if(e){let _=Date.UTC(1970,0,1,12,0,0),E=new Date(_).toLocaleString("en-US",{timeZone:e,hour:"2-digit",minute:"2-digit",hour12:!1}).split(":").map(Number),C=E[0]??12,A=E[1]??0,D=(C-12)*60+A,N=s*60+c-D;return new Date(Date.UTC(1970,0,1,Math.floor(N/60),N%60,d))}return new Date(1970,0,1,s,c,d)}t(FTi,"timeFieldToXML");function BTi(n,e,s,c){return n*864e5+e*36e5+s*6e4+c*1e3}t(BTi,"toMilliseconds")});var FNn=st(Z2=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Z2,"__esModule",{value:!0});Z2.TemplateValueShape=Z2.FieldListShape=Z2.TimeShape=Z2.DurationShape=Z2.DATA_HELPER_NAMES=void 0;Z2.asDataHelper=VTi;var i8=Aje(),che=gIt();Z2.DATA_HELPER_NAMES={DURATION:"Duration",TIME:"Time",FIELD_LIST:"FieldList",TEMPLATE_VALUE:"TemplateValue"};var uhe=class extends i8.CallExpressionShape{static{t(this,"DataHelperShape")}equals(e){return typeof e=="string"?this.toString().getValue()===e:e instanceof i8.Shape?e.equals(this.toString().getValue()):super.equals(e)}},Tje=class n extends uhe{static{t(this,"DurationShape")}constructor({source:e,value:s}){let c;if(s instanceof i8.ObjectShape){let d=s.pick(["days","hours","minutes","seconds"]);c=Object.fromEntries(Object.entries(d).map(([_,m])=>[_,i8.Shape.from(e,m).asNumber(`fields in Duration object can only contain numbers, got ${typeof m}`)]))}else c=s;super({source:e,callee:Z2.DATA_HELPER_NAMES.DURATION,args:[c]})}getDuration(){return this.getArgument(0).asObject().getValue()}toString(){let e=(0,che.durationFieldToXML)(this.getDuration()),s=(0,che.formatDateToPlatformFormat)(e);return i8.Shape.from(this.getSource(),s).asString()}static from(e,s){if(s instanceof i8.StringShape){let c=(0,che.parseGlideDuration)(s.getValue());if(!c)throw new Error(`Invalid duration value: ${s.getValue()}`);return new n({source:e,value:c})}return new n({source:e,value:s})}static zero(e){return new n({source:e,value:{seconds:0}})}};Z2.DurationShape=Tje;var Ije=class n extends uhe{static{t(this,"TimeShape")}timeZone;constructor({source:e,value:s,timeZone:c}){let d;if(s instanceof i8.ObjectShape){let m=s.pick(["hours","minutes","seconds"]);d=Object.fromEntries(Object.entries(m).map(([b,E])=>[b,i8.Shape.from(e,E).asNumber(`fields in Time object can only contain numbers, got ${typeof E}`)]))}else d=s;let _=[d];c&&_.push(c),super({source:e,callee:Z2.DATA_HELPER_NAMES.TIME,args:_}),this.timeZone=c}getTimeData(){return this.getArgument(0).asObject().getValue()}getTimeZone(){return this.timeZone}toString(){let e=(0,che.timeFieldToXML)(this.getTimeData(),this.timeZone),s=(0,che.formatDateToPlatformFormat)(e);return i8.Shape.from(this.getSource(),s).toString()}static from(e,s,c){if(s instanceof i8.StringShape){let d=(0,che.parseGlideTime)(s.getValue(),c);if(!d)throw new Error(`Invalid time value: ${s.getValue()}`);return new n({source:e,value:d,timeZone:c})}return new n({source:e,value:s,timeZone:c})}};Z2.TimeShape=Ije;var Dje=class n extends uhe{static{t(this,"FieldListShape")}constructor({source:e,fields:s}){super({source:e,callee:Z2.DATA_HELPER_NAMES.FIELD_LIST,args:[s]})}getFields(){return this.getArgument(0).asArray().getElements()}toString(){let e=this.getFields().map(s=>s.isRecord()?s.getId().getValue():s.getValue());return i8.Shape.from(this.getSource(),e.join(",")).asString()}static from(e,s){let c=s.getValue().split(",").map(d=>i8.Shape.from(e,d.trim()));return new n({source:e,fields:c})}};Z2.FieldListShape=Dje;var Rje=class n extends uhe{static{t(this,"TemplateValueShape")}constructor({source:e,value:s}){super({source:e,callee:Z2.DATA_HELPER_NAMES.TEMPLATE_VALUE,args:[s]})}getTemplateValue(){return this.getArgument(0).asObject()}toString(){let e=this.getTemplateValue().getValue(),s=Object.entries(e).map(([c,d])=>{let _=String(d).replace(/\^/g,"^^");return`${c}=${_}`}).join("^");return i8.Shape.from(this.getSource(),`${s}^EQ`).asString()}static from(e,s){let c=s.getValue(),d="\0CARET\0",m=c.replace(/\^\^/g,d).split("^"),b={};for(let E of m){let C=E.indexOf("=");if(C===-1)continue;let A=E.substring(0,C),D=E.substring(C+1);!A||!D||(b[A]=D.replace(new RegExp(d,"g"),"^"))}return new n({source:e,value:b})}};Z2.TemplateValueShape=Rje;function VTi(n,e,s){switch(n){case Z2.DATA_HELPER_NAMES.DURATION:return Tje.from(e.getSource(),e);case Z2.DATA_HELPER_NAMES.TIME:return Ije.from(e.getSource(),e,s);case Z2.DATA_HELPER_NAMES.FIELD_LIST:return Dje.from(e.getSource(),e);case Z2.DATA_HELPER_NAMES.TEMPLATE_VALUE:return Rje.from(e.getSource(),e);default:return}}t(VTi,"asDataHelper")});var VNn=st(BNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(BNn,"__esModule",{value:!0})});var jNn=st(UNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(UNn,"__esModule",{value:!0})});var yIt=st(phe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(phe,"__esModule",{value:!0});phe.DiffDatabase=phe.Database=void 0;var Nje=class n{static{t(this,"Database")}database={};constructor(e=[]){this.insert(...e)}insert(...e){for(let s of e){let c=this.database[s.getTable()]??={},d=s.getId().getValue();c[d]=s}}resolve(e){let s=e.getTable(),c=e.getValue(),d=this.database[s]?.[c];if(d)return d;let _=e.getKeys();if(!_)return;let m=this.query(s,_);if(m.length>1)throw new Error(`Multiple records found for table "${s}" with coalesce keys: ${JSON.stringify(_)}`);return m[0]}get(e,s){if(typeof s=="string")return this.database[e]?.[s];let[c,...d]=this.query(e,s);if(d.length>0)throw new Error(`Expected get() to return no more than 1 match, but ${d.length+1} matches were found.`);return c}query(e,s={}){if(!e)return Object.values(this.database).flatMap(d=>Object.values(d));let c=[];e:for(let d of Object.values(this.database[e]??{})){for(let[_,m]of Object.entries(s))if(!d.get(_).equals(m))continue e;c.push(d)}return c}compare(e){let s=new Pje(this.query());return s.insert(...e instanceof n?e.query():e),s}delete(e){let s=e.getTable(),c=e.getValue();if(this.database[s]?.[c]){delete this.database[s]?.[c];return}let _=e.getKeys();_&&Object.values(this.database[s]??{}).filter(m=>Object.entries(_).every(([b,E])=>m.get(b).equals(E))).forEach(m=>{delete this.database[s]?.[m.getId().getValue()]})}[Symbol.iterator](){return this.query()[Symbol.iterator]()}};phe.Database=Nje;var Pje=class extends Nje{static{t(this,"DiffDatabase")}changedGuids=[];constructor(e=[]){super(e)}hasChanges(){return this.changedGuids.length>0}insert(...e){if(!this.changedGuids){super.insert(...e);return}for(let s of e){let c=s.getId(),d=this.resolve(c);d&&!d.strictEquals(s)?(this.changedGuids.push(c.getValue()),super.insert(d.merge(s))):d||(this.changedGuids.push(c.getValue()),super.insert(s))}}isChanged(e){return this.changedGuids.includes(e.getId().getValue())}};phe.DiffDatabase=Pje});var WNn=st(Lje=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Lje,"__esModule",{value:!0});Lje.Cache=void 0;var vIt=class{static{t(this,"Cache")}cache=new WeakMap;get(e){return this.cache.get(e)}put(e,s){return this.cache.set(e,{success:!0,value:s}),s}error(e,s){return this.cache.set(e,{success:!1,error:s}),s}clear(){this.cache=new WeakMap}};Lje.Cache=vIt});var zNn=st(fhe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fhe,"__esModule",{value:!0});fhe.Plugins=fhe.Plugin=void 0;var bIt=HW(),UTi=Aje(),FK=yIt(),i$e=CIt(),SIt=WNn(),jTi=Lc(),dhe=Lc();function a$e(n,e){return e.success&&(e.value=Array.isArray(e.value)?e.value.map(s=>s.setCreator(n)):e.value.setCreator(n)),e}t(a$e,"setCreator");var xIt=class n{static{t(this,"Plugin")}config;nodeToShapeCache=new SIt.Cache;shapeToSubclassCache=new SIt.Cache;shapeToRecordCache=new SIt.Cache;relationships={};references={};constructor(e){this.config=e;for(let[s,c]of Object.entries(this.config.records??{}))this.parseRelationships([s,c.relationships])}parseRelationships([e,s]){if(!(e==="*"||!s)){this.relationships[e]={...this.relationships[e],...s};for(let[c,d]of Object.entries(s)){if(typeof d.via=="string"){let[_,m]=d.inverse?[c,e]:[e,c];this.references[m]={...this.references[m],[d.via]:_}}this.parseRelationships([c,d.relationships])}}}isComposite(e){return this.config.records?.[e]?.composite??!1}static create(e){return new n(e)}getName(){return this.config.name}getDocsMetadata(){if(!this.config.docs)return;let e={};for(let s of this.config.docs)e[s.apiName]={docPath:s.docPath,tags:s.tags};return e}getDescendants(e,s){let c=Object.entries(this.relationships[e.getTable()]??{}).filter(([,{descendant:m}])=>m),d=[],_=t(m=>{for(let b of[m].flat())b&&e!==b&&(d.push(b),d.push(...this.getDescendants(b,s)))},"push");for(let[m,{via:b,inverse:E=!1}]of c)typeof b=="string"?E?e.get(b).ifDefined()?.toString().pipe(C=>_(s.get(m,C.getValue()))):_(s.query(m,{[b]:e.toString().getValue()})):typeof b=="function"?_(s.query(m).filter(C=>b(e,C))):Array.isArray(b)?_(s.query(m).filter(C=>{for(let A of b){let{parent:[D,N],child:[F,W]}=A,G=e.get(D).ifString()?.asString(`Expected string value for column ${D} in regex-based via relationship`).getValue(),j=C.get(F).ifString()?.asString(`Expected string value for column ${F} in regex-based via relationship`).getValue();if(!G||!j)return!1;let K=G.match(new RegExp(N)),ee=j.match(new RegExp(W));if(!K||!ee)return!1;let re=K.slice(1),ie=ee.slice(1);if(re.length!==ie.length||re.some((_e,Te)=>_e!==ie[Te]))return!1}return!0})):_(s.query(m,Object.fromEntries(Object.entries(b).map(C=>{let[A,D]=E?C:[C[1],C[0]];return[D,e.get(A).getValue()]}))));return d}getCoalesceStrategy(e){return this.config.records?.[e]?.coalesce}getCoalesceTables(){return Object.entries(this.config.records??{}).filter(([e,s])=>s.coalesce).map(([e])=>e)}getTables(e,s=[]){let c=e?Object.entries(e).filter(([,d])=>d.descendant):Object.entries(this.config.records??{}).filter(([,d])=>d.toShape);return s.push(...c.filter(([d])=>d!=="*").map(([d])=>d)),c.filter(([d,_])=>_.relationships).forEach(([d,_])=>this.getTables(_.relationships,s)),new Set(s)}getReferenceColumns(e){return this.references[e]??{}}getRelationships(){return this.relationships}flushCache(){this.nodeToShapeCache.clear(),this.shapeToRecordCache.clear()}async nodeToShape(e,s){let c=this.nodeToShapeCache.get(e.compilerNode);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.nodes??[])if(d.toShape&&(0,bIt.getKindName)(e)===d.node&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getSourceFile().getFilePath(),s.project)))){let _=a$e(this,await d.toShape.bind(this)(e,{...s,self:this}));if(_.success)return this.nodeToShapeCache.put(e.compilerNode,_)}return this.nodeToShapeCache.put(e.compilerNode,{success:!1})}catch(d){throw this.nodeToShapeCache.error(e.compilerNode,d)}}async commit(e,s,c){for(let{shape:d,commit:_}of this.config.shapes??[])if(e.is(d)&&_){let m=await _.bind(this)(e,s,{...c,self:this});if(m.success)return m}return{success:!1}}async getTarget(e,s){for(let{shape:c,getTarget:d}of this.config.shapes??[])if(e.is(c)&&d){let _=await d.bind(this)(e,{...s,self:this});if(_.success)return _}return{success:!1}}async shapeToSubclass(e,s){let c=this.shapeToSubclassCache.get(e);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.shapes??[])if(d.toSubclass&&e.constructor===d.shape&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getOriginalFilePath(),s.project)))){let _=a$e(this,await d.toSubclass.bind(this)(e,{...s,self:this}));if(_.success){if(_.value.constructor===d.shape)throw new Error(`Result of subclassing "${d.shape.name}" is an instance of the same class. The result MUST be a subclass.`);return this.shapeToSubclassCache.put(e,_)}}return this.shapeToSubclassCache.put(e,{success:!1})}catch(d){throw this.shapeToSubclassCache.error(e,d)}}async shapeToRecord(e,s){let c=this.shapeToRecordCache.get(e);if(c)return c.success?c.value:{success:!1};try{for(let d of this.config.shapes??[])if(d.toRecord&&e.is(d.shape)&&(!d.fileTypes||d.fileTypes.includes((0,i$e.getFileType)(e.getOriginalFilePath(),s.project)))){let _=a$e(this,await d.toRecord.bind(this)(e,{...s,self:this}));if(_.success)return this.shapeToRecordCache.put(e,_)}return this.shapeToRecordCache.put(e,{success:!1})}catch(d){throw this.shapeToRecordCache.error(e,d)}}async recordToShape0(e,s){if(e.getAction()!=="INSERT_OR_UPDATE")return{success:!0,value:new UTi.DeletedShape({source:e})};let c=e.getTable();for(let[d,{toShape:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=a$e(this,await _.bind(this)(e,{...s,self:this}));if(m.success)return m}return{success:!1}}async recordToShape({record:e,database:s,context:c}){c.logger.debug(`Transforming record into shape: ${e.getTable()}.${e.getId().getValue()}`);let d=this.getDescendants(e,s);return this.recordToShape0(e,{...c,database:s,descendants:new FK.Database(d.filter(_=>_.getAction()==="INSERT_OR_UPDATE"))})}async recordsToShapes({database:e,creatorOnly:s,changedOnly:c=!1,mode:d,handledRecords:_,context:m}){let b=!1,E=[];for(let[C,{toShape:A}]of Object.entries(this.config.records??{})){if(A){if(d==="explicit"&&C==="*")continue;if(d==="catch-all"&&C!=="*")continue}else continue;for(let D of C==="*"?e.query():e.query(C)){if(_.resolve(D.getId())||s&&D.getCreator()!==this)continue;m.logger.debug(`Database contains ${e.query().length} records for transformation.`),m.logger.debug(`Transforming record into shape: ${D.getTable()}.${D.getId().getValue()}`);let N=this.getDescendants(D,e);if(c){if(!(e instanceof FK.DiffDatabase))throw new Error("Tried to check for changed records while creating shapes, but the provided database does not support diffing.");if(![D,...N].some(ee=>e.isChanged(ee)))continue}let F=new FK.Database,W=new FK.Database;for(let ee of N)ee.isDeleted()?F.insert(ee):W.insert(ee);let G=await this.recordToShape0(D,{...m,database:e,descendants:W}),j=[],K=[];if(G.success==="partial")for(let ee of G.unhandledRecords)j.push(ee),K.push(ee.getId().getValue());if(G.success){b=!0,_.insert(D),E.push(...[G.value].flat());for(let ee of[...F,...W])K.includes(ee.getId().getValue())||_.insert(ee);if(m.logger.debug(`Plugin ${this.getName()} deferred handling of records: ${j.map(ee=>ee.getTable()+"_"+ee.getId().getValue()).join(", ")}`),j.length>0)return{success:"partial",value:E,unhandledRecords:j}}}}return{success:b,value:E}}async computeDiff({mode:e,existing:s,incoming:c,context:d,visitedRecords:_,mergedDatabase:m}){let b=[];for(let[E,{diff:C}]of Object.entries(this.config.records??{})){if(C){if(e==="explicit"&&E==="*")continue;if(e==="catch-all"&&E!=="*")continue}else continue;let A=E==="*"?m.query():m.query(E);for(let D of A){if(_.resolve(D.getId()))continue;let N=this.getDescendants(D,m),F=new FK.Database(N),W=[...[s.resolve(D.getId())].filter(K=>K!==void 0),...s.query().filter(K=>F.resolve(K.getId())!==void 0)],G=[...[c.resolve(D.getId())].filter(K=>K!==void 0),...c.query().filter(K=>F.resolve(K.getId())!==void 0)],j=await C.bind(this)(new FK.Database(W),new FK.Database(G),new FK.Database(N),{...d,self:this});j.success&&(b.push(...j.value.query()),_.insert(...W,...G))}}return b}async recordToFile(e,s){let c=e.getTable();for(let[d,{toFile:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=await _.bind(this)(e,{...s,self:this});if(m.success){let b=Array.isArray(m.value)?m.value:[m.value],E=dhe.path.normalize(e.getOriginalFilePath());if((0,i$e.isSNScope)(s.config.scope)&&E.endsWith(jTi.NOW_FILE_EXTENSION)){let C=dhe.path.relative(dhe.path.join(s.config.fluentDir,"if"),E);if(!C.startsWith("..")&&dhe.path.dirname(C)!==".")return{success:!0,value:b.map(A=>({...A,ifDirectoryPackage:dhe.path.join("if",dhe.path.dirname(C))}))}}return{success:!0,value:b}}}return{success:!1}}async recordsToFiles({database:e,mode:s,handledGuids:c,context:d}){let _=!1,m=[];for(let[b,{toFile:E}]of Object.entries(this.config.records??{})){if(E){if(s==="explicit"&&b==="*")continue;if(s==="catch-all"&&b!=="*")continue}else continue;for(let C of b==="*"?e.query():e.query(b)){if(c.has(C.getId().getValue()))continue;let A=this.getDescendants(C,e),D=await this.recordToFile(C,{...d,database:e,descendants:new FK.Database(A.filter(N=>N.getAction()==="INSERT_OR_UPDATE"))});D.success&&(_=!0,c.add(C.getId().getValue()),A.forEach(N=>c.add(N.getId().getValue())),d.config.type==="configuration"&&(Array.isArray(D.value)?D.value.forEach(N=>N.category=""):D.value.category=""),m.push(...[D.value].flat()))}}return{success:_,value:m}}async isEntryPoint(e,s){if(bIt.ts.Node.isNode(e))for(let c of this.config.nodes??[]){if((0,bIt.getKindName)(e)!==c.node)continue;let d=(0,i$e.getFileType)(e.getSourceFile().getFilePath(),s.project);if(!(c.fileTypes&&!c.fileTypes.includes(d)))return!!c.entryPoint}else for(let c of this.config.files??[])if(!(c.matcher instanceof RegExp&&!c.matcher.test(e))&&!(typeof c.matcher=="function"&&!await c.matcher(e,{...s,self:this})))return!!c.entryPoint;return!1}async fileToRecord(e,s){for(let c of this.config.files??[]){if(!c.toRecord||c.matcher instanceof RegExp&&!c.matcher.test(e.path)||typeof c.matcher=="function"&&!c.matcher(e.path,{...s,self:this}))continue;let d=a$e(this,await c.toRecord.bind(this)(e,{...s,self:this}));if(d.success)return d}return{success:!1}}inspect(e,s){for(let c of this.config.shapes??[])e.is(c.shape)&&c.inspect&&c.inspect.bind(this)(e,{...s,self:this})}async getUpdateName(e,s){let c=e.getTable();for(let[d,{getUpdateName:_}]of Object.entries(this.config.records??{}))if((d==="*"||d===c)&&_){let m=await _.bind(this)(e,{...s,self:this});if(m.success)return m}return{success:!1}}};fhe.Plugin=xIt;var EIt=class{static{t(this,"Plugins")}plugins;constructor(e){this.plugins=e}toArray(){return this.plugins}prepend(...e){this.plugins.unshift(...e)}append(...e){this.plugins.push(...e)}getCoalesceStrategy(e){for(let s of this.plugins){let c=s.getCoalesceStrategy(e);if(c)return c}}isComposite(e){for(let s of this.plugins)if(s.isComposite(e))return!0;return!1}getCoalesceTables(){let e=new Set;for(let s of this.plugins)s.getCoalesceTables().forEach(c=>{e.add(c)});return e}getReferenceColumns(e){let s=[];for(let c of this.plugins)s.push(...Object.entries(c.getReferenceColumns(e)));return Object.fromEntries(s)}async isEntryPoint(e,s){for(let c of this.plugins)if(await c.isEntryPoint(e,s))return!0;return!1}getDocsMetadata(){return this.plugins.reduce((e,s)=>{let c=s.getDocsMetadata();return c&&Object.assign(e,c),e},{})}};fhe.Plugins=EIt});var qNn=st(GNn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(GNn,"__esModule",{value:!0})});var HNn=st(kje=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kje,"__esModule",{value:!0});kje.PluginUsageTracker=void 0;var wIt=class{static{t(this,"PluginUsageTracker")}trackedSources=new Set;shapeCountPerPlugin=new Map;clearPluginShapeUsage(){this.trackedSources.clear(),this.shapeCountPerPlugin.clear()}addPluginShapeUsage(e,s){if(!this.trackedSources.has(s)){this.trackedSources.add(s);let c=this.shapeCountPerPlugin.get(e)??0;this.shapeCountPerPlugin.set(e,c+1)}}getShapeCountPerPlugin(){return[...this.shapeCountPerPlugin.entries()].map(([e,s])=>({plugin:e.getName().replace(/Plugin$/,""),count:s}))}};kje.PluginUsageTracker=wIt});var Mje=st(Gk=>{"use strict";pe();ue();oe();ce();le();var WTi=Gk&&Gk.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),dz=Gk&&Gk.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&WTi(e,n,s)};Object.defineProperty(Gk,"__esModule",{value:!0});dz(Aje(),Gk);dz(FNn(),Gk);dz(VNn(),Gk);dz(jNn(),Gk);dz(zNn(),Gk);dz(jwt(),Gk);dz(qNn(),Gk);dz(yIt(),Gk);dz(gIt(),Gk);dz(HNn(),Gk)});var KNn=st(AIt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AIt,"__esModule",{value:!0});AIt.deleteMultipleDiff=zTi;var $It=Mje();async function zTi(n,e,s,{factory:c}){if(e.query().length===0)return{success:!0,value:new $It.Database};let d=n.compare(e),_=s.query().filter(m=>!e.resolve(m.getId()));for(let m of _){let b=await c.createRecord({source:m.getSource(),table:m.getTable(),explicitId:m.getId(),properties:m.properties(),action:"DELETE"});d.insert(b)}return{success:!0,value:d.hasChanges()?new $It.Database(d.query()):new $It.Database}}t(zTi,"deleteMultipleDiff")});var CIt=st(BK=>{"use strict";pe();ue();oe();ce();le();var GTi=BK&&BK.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),TIt=BK&&BK.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&GTi(e,n,s)};Object.defineProperty(BK,"__esModule",{value:!0});TIt(j_n(),BK);TIt(W_n(),BK);TIt(KNn(),BK)});var JNn=st(Oje=>{pe();ue();oe();ce();le();(function(n){n.parser=function(f,h){return new s(f,h)},n.SAXParser=s,n.SAXStream=C,n.createStream=E,n.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function s(f,h){if(!(this instanceof s))return new s(f,h);var v=this;d(v),v.q=v.c="",v.bufferCheckPosition=n.MAX_BUFFER_LENGTH,v.opt=h||{},v.opt.lowercase=v.opt.lowercase||v.opt.lowercasetags,v.looseCase=v.opt.lowercase?"toLowerCase":"toUpperCase",v.tags=[],v.closed=v.closedRoot=v.sawRoot=!1,v.tag=v.error=null,v.strict=!!f,v.noscript=!!(f||v.opt.noscript),v.state=Ce.BEGIN,v.strictEntities=v.opt.strictEntities,v.ENTITIES=v.strictEntities?Object.create(n.XML_ENTITIES):Object.create(n.ENTITIES),v.attribList=[],v.opt.xmlns&&(v.ns=Object.create(W)),v.opt.unquotedAttributeValues===void 0&&(v.opt.unquotedAttributeValues=!f),v.trackPosition=v.opt.position!==!1,v.trackPosition&&(v.position=v.line=v.column=0),Ge(v,"onready")}t(s,"SAXParser"),Object.create||(Object.create=function(f){function h(){}t(h,"F"),h.prototype=f;var v=new h;return v}),Object.keys||(Object.keys=function(f){var h=[];for(var v in f)f.hasOwnProperty(v)&&h.push(v);return h});function c(f){for(var h=Math.max(n.MAX_BUFFER_LENGTH,10),v=0,S=0,w=e.length;S<w;S++){var P=f[e[S]].length;if(P>h)switch(e[S]){case"textNode":Ve(f);break;case"cdata":Ke(f,"oncdata",f.cdata),f.cdata="";break;case"script":Ke(f,"onscript",f.script),f.script="";break;default:J(f,"Max buffer length exceeded: "+e[S])}v=Math.max(v,P)}var O=n.MAX_BUFFER_LENGTH-v;f.bufferCheckPosition=O+f.position}t(c,"checkBufferLength");function d(f){for(var h=0,v=e.length;h<v;h++)f[e[h]]=""}t(d,"clearBuffers");function _(f){Ve(f),f.cdata!==""&&(Ke(f,"oncdata",f.cdata),f.cdata=""),f.script!==""&&(Ke(f,"onscript",f.script),f.script="")}t(_,"flushBuffers"),s.prototype={end:t(function(){i(this)},"end"),write:u,resume:t(function(){return this.error=null,this},"resume"),close:t(function(){return this.write(null)},"close"),flush:t(function(){_(this)},"flush")};var m;try{m=(Wfe(),Sc(jfe)).Stream}catch{m=t(function(){},"Stream")}m||(m=t(function(){},"Stream"));var b=n.EVENTS.filter(function(f){return f!=="error"&&f!=="end"});function E(f,h){return new C(f,h)}t(E,"createStream");function C(f,h){if(!(this instanceof C))return new C(f,h);m.apply(this),this._parser=new s(f,h),this.writable=!0,this.readable=!0;var v=this;this._parser.onend=function(){v.emit("end")},this._parser.onerror=function(S){v.emit("error",S),v._parser.error=null},this._decoder=null,b.forEach(function(S){Object.defineProperty(v,"on"+S,{get:t(function(){return v._parser["on"+S]},"get"),set:t(function(w){if(!w)return v.removeAllListeners(S),v._parser["on"+S]=w,w;v.on(S,w)},"set"),enumerable:!0,configurable:!1})})}t(C,"SAXStream"),C.prototype=Object.create(m.prototype,{constructor:{value:C}}),C.prototype.write=function(f){if(typeof it=="function"&&typeof it.isBuffer=="function"&&it.isBuffer(f)){if(!this._decoder){var h=(p2t(),Sc(u2t)).StringDecoder;this._decoder=new h("utf8")}f=this._decoder.write(f)}return this._parser.write(f.toString()),this.emit("data",f),!0},C.prototype.end=function(f){return f&&f.length&&this.write(f),this._parser.end(),!0},C.prototype.on=function(f,h){var v=this;return!v._parser["on"+f]&&b.indexOf(f)!==-1&&(v._parser["on"+f]=function(){var S=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);S.splice(0,0,f),v.emit.apply(v,S)}),m.prototype.on.call(v,f,h)};var A="[CDATA[",D="DOCTYPE",N="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/2000/xmlns/",W={xml:N,xmlns:F},G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,j=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ee=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function re(f){return f===" "||f===`
31103
31103
  `||f==="\r"||f===" "}t(re,"isWhitespace");function ie(f){return f==='"'||f==="'"}t(ie,"isQuote");function _e(f){return f===">"||re(f)}t(_e,"isAttribEnd");function Te(f,h){return f.test(h)}t(Te,"isMatch");function Se(f,h){return!Te(f,h)}t(Se,"notMatch");var Ce=0;n.STATE={BEGIN:Ce++,BEGIN_WHITESPACE:Ce++,TEXT:Ce++,TEXT_ENTITY:Ce++,OPEN_WAKA:Ce++,SGML_DECL:Ce++,SGML_DECL_QUOTED:Ce++,DOCTYPE:Ce++,DOCTYPE_QUOTED:Ce++,DOCTYPE_DTD:Ce++,DOCTYPE_DTD_QUOTED:Ce++,COMMENT_STARTING:Ce++,COMMENT:Ce++,COMMENT_ENDING:Ce++,COMMENT_ENDED:Ce++,CDATA:Ce++,CDATA_ENDING:Ce++,CDATA_ENDING_2:Ce++,PROC_INST:Ce++,PROC_INST_BODY:Ce++,PROC_INST_ENDING:Ce++,OPEN_TAG:Ce++,OPEN_TAG_SLASH:Ce++,ATTRIB:Ce++,ATTRIB_NAME:Ce++,ATTRIB_NAME_SAW_WHITE:Ce++,ATTRIB_VALUE:Ce++,ATTRIB_VALUE_QUOTED:Ce++,ATTRIB_VALUE_CLOSED:Ce++,ATTRIB_VALUE_UNQUOTED:Ce++,ATTRIB_VALUE_ENTITY_Q:Ce++,ATTRIB_VALUE_ENTITY_U:Ce++,CLOSE_TAG:Ce++,CLOSE_TAG_SAW_WHITE:Ce++,SCRIPT:Ce++,SCRIPT_ENDING:Ce++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(f){var h=n.ENTITIES[f],v=typeof h=="number"?String.fromCharCode(h):h;n.ENTITIES[f]=v});for(var We in n.STATE)n.STATE[n.STATE[We]]=We;Ce=n.STATE;function Ge(f,h,v){f[h]&&f[h](v)}t(Ge,"emit");function Ke(f,h,v){f.textNode&&Ve(f),Ge(f,h,v)}t(Ke,"emitNode");function Ve(f){f.textNode=Be(f.opt,f.textNode),f.textNode&&Ge(f,"ontext",f.textNode),f.textNode=""}t(Ve,"closeText");function Be(f,h){return f.trim&&(h=h.trim()),f.normalize&&(h=h.replace(/\s+/g," ")),h}t(Be,"textopts");function J(f,h){return Ve(f),f.trackPosition&&(h+=`
31104
31104
  Line: `+f.line+`
31105
31105
  Column: `+f.column+`
@@ -31218,7 +31218,7 @@ declare global {
31218
31218
  If you are not intending to do custom module transpilation, please remove 'transpiledSourceDir'
31219
31219
  and ensure 'serverModulesDir' is set to the directory containing modules `},n.parse=(_,m)=>(ENi(_),xNi(_,m),gNi(_)),n.parseFromPath=(_,m,b)=>{let E=Rkn(_,m);if(!E)throw new Error(`Failed to parse config file at path ${_}`);return n.parse(E,b)},n.parseFromDirectory=(_,m,b)=>n.parse(Rkn(n.getFilePath(_),m)??(0,Dkn.parsePackageJson)(_,m).now??{},b),n.exists=(_,m)=>hDt.FileSystem.existsSync(m,n.getFilePath(_))?!0:!!(hDt.FileSystem.existsSync(m,T3.path.join(_,"package.json"))&&(0,Dkn.parsePackageJson)(_,m).now),n.getFilePath=_=>T3.path.join(_,n.FILE_NAME);function e({scope:_,scopeId:m,...b}={}){return Nkn.parse({scope:_??"global",scopeId:m??(0,dNi.GUID)(),...b})}t(e,"create"),n.create=e;function s({rootDir:_,compiler:m,fileSystem:b,logger:E}){let C=n.getFilePath(_);return m.getSourceFile(C)?n.parseFromPath(C,m,E):n.exists(_,b)?n.parseFromPath(C,b,E):n.create()}t(s,"load"),n.load=s;function c(_,m,b,...E){return n.legacyPackageResolution(_)?b?T3.path.join(_.scope,...E):T3.path.join(_.scope,m.name,m.version,...E):T3.path.join(_.scope==="global"?T3.path.sep:"",_.scope,m.name,m.version,...E)}t(c,"moduleResolutionPath"),n.moduleResolutionPath=c;function d(_){if(_.packageResolverVersion){if(_.scope==="global"&&_.packageResolverVersion===I3.MODULE_RESOLUTION.V1)throw new Error("Global modules must use packageResolverVersion: '2.0.0' or higher");return _.packageResolverVersion===I3.MODULE_RESOLUTION.V1}return _.scope!=="global"}t(d,"legacyPackageResolution"),n.legacyPackageResolution=d})(whe||(I3.NowConfig=whe={}));var hNi=Ikn();function mNi(n){return new cNi.Validator().validate(n,hNi)}t(mNi,"getNowConfigFileValidationResults");function gNi(n){let e=Nkn.safeParse(n);if(!e.success){let s=`Invalid '${whe.FILE_NAME}' file:
31220
31220
  `;throw e.error.errors.map(c=>s+=`${c.path}: ${c.message}
31221
- `),new Error(s)}return e.data}t(gNi,"getParsedNowConfigData");function yNi(n,e){let s=(0,uNi.readJson)(n,"",e);if(!bNi(s))throw new Error(`Config file '${whe.FILE_NAME}' is empty or malformed`);let c=mNi(s);if(c.errors.length>0)throw new Error(`${whe.FILE_NAME} - error: ${vNi(c.errors)}`);return s}t(yNi,"validateNowConfigJsonFile");function vNi(n){return n.filter(e=>!e.message.includes("does not match allOf schema")).map(e=>e.path.length?`"${e.path.join(".")}" ${e.message}`:e.message==="is of prohibited type [object Object]"?e.argument.errorMessage:e.message).join(", ")}t(vNi,"formatValidationErrorMessage");function Rkn(n,e){return(e instanceof pNi.Compiler?!!e.getSourceFile(n):hDt.FileSystem.existsSync(e,n))?yNi(n,e):null}t(Rkn,"readNowConfigJsonFile");function bNi(n){if(!n||typeof n!="object"||Array.isArray(n))return!1;for(let e in n)if(typeof e!="string")return!1;return!0}t(bNi,"isObjectWithStringKeys");var SNi={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function xNi(n,e){for(let[s,{replacedBy:c,transfer:d}]of Object.entries(SNi))s in n&&(e.warn(`'${s}' is deprecated${c?`, please replace with '${c}'`:" and can be removed"}`),d&&c&&(n[c]=n[s]))}t(xNi,"replaceDeprecatedFields");function ENi(n){for(let[e,s]of Object.entries(whe.ERROR_ON_DEPRECATED_PROPS))if(e in n)throw new Error(s)}t(ENi,"checkRemovedProperties")});var Lkn=st(sWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(sWe,"__esModule",{value:!0});sWe.createConsoleLogger=CNi;sWe.createSilentLogger=wNi;function CNi(){return console}t(CNi,"createConsoleLogger");function wNi(){return{info:t(()=>{},"info"),warn:t(()=>{},"warn"),error:t(()=>{},"error"),debug:t(()=>{},"debug")}}t(wNi,"createSilentLogger")});var yMn=st(Bm=>{"use strict";pe();ue();oe();ce();le();var kkn={},Fkn={};Fkn.default=function(n,e,s,c,d){var _=new Worker(kkn[e]||(kkn[e]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return _.onmessage=function(m){var b=m.data,E=b.$e$;if(E){var C=new Error(E[0]);C.code=E[1],C.stack=E[2],d(C,null)}else d(null,b)},_.postMessage(s,c),_};var Dy=Uint8Array,wO=Uint16Array,g$e=Int32Array,Dhe=new Dy([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rhe=new Dy([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_$e=new Dy([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bkn=t(function(n,e){for(var s=new wO(31),c=0;c<31;++c)s[c]=e+=1<<n[c-1];for(var d=new g$e(s[30]),c=1;c<30;++c)for(var _=s[c];_<s[c+1];++_)d[_]=_-s[c]<<5|c;return{b:s,r:d}},"freb"),Vkn=Bkn(Dhe,2),CDt=Vkn.b,pWe=Vkn.r;CDt[28]=258,pWe[258]=28;var Ukn=Bkn(Rhe,0),jkn=Ukn.b,gDt=Ukn.r,h$e=new wO(32768);for(Z1=0;Z1<32768;++Z1)zK=(Z1&43690)>>1|(Z1&21845)<<1,zK=(zK&52428)>>2|(zK&13107)<<2,zK=(zK&61680)>>4|(zK&3855)<<4,h$e[Z1]=((zK&65280)>>8|(zK&255)<<8)>>1;var zK,Z1,VB=t(function(n,e,s){for(var c=n.length,d=0,_=new wO(e);d<c;++d)n[d]&&++_[n[d]-1];var m=new wO(e);for(d=1;d<e;++d)m[d]=m[d-1]+_[d-1]<<1;var b;if(s){b=new wO(1<<e);var E=15-e;for(d=0;d<c;++d)if(n[d])for(var C=d<<4|n[d],A=e-n[d],D=m[n[d]-1]++<<A,N=D|(1<<A)-1;D<=N;++D)b[h$e[D]>>E]=C}else for(b=new wO(c),d=0;d<c;++d)n[d]&&(b[d]=h$e[m[n[d]-1]++]>>15-n[d]);return b},"hMap"),GK=new Dy(288);for(Z1=0;Z1<144;++Z1)GK[Z1]=8;var Z1;for(Z1=144;Z1<256;++Z1)GK[Z1]=9;var Z1;for(Z1=256;Z1<280;++Z1)GK[Z1]=7;var Z1;for(Z1=280;Z1<288;++Z1)GK[Z1]=8;var Z1,The=new Dy(32);for(Z1=0;Z1<32;++Z1)The[Z1]=5;var Z1,Wkn=VB(GK,9,0),zkn=VB(GK,9,1),Gkn=VB(The,5,0),qkn=VB(The,5,1),lWe=t(function(n){for(var e=n[0],s=1;s<n.length;++s)n[s]>e&&(e=n[s]);return e},"max"),BB=t(function(n,e,s){var c=e/8|0;return(n[c]|n[c+1]<<8)>>(e&7)&s},"bits"),cWe=t(function(n,e){var s=e/8|0;return(n[s]|n[s+1]<<8|n[s+2]<<16)>>(e&7)},"bits16"),Nhe=t(function(n){return(n+7)/8|0},"shft"),UB=t(function(n,e,s){return(e==null||e<0)&&(e=0),(s==null||s>n.length)&&(s=n.length),new Dy(n.subarray(e,s))},"slc");Bm.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var Hkn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],uh=t(function(n,e,s){var c=new Error(e||Hkn[n]);if(c.code=n,Error.captureStackTrace&&Error.captureStackTrace(c,uh),!s)throw c;return c},"err"),y$e=t(function(n,e,s,c){var d=n.length,_=c?c.length:0;if(!d||e.f&&!e.l)return s||new Dy(0);var m=!s,b=m||e.i!=2,E=e.i;m&&(s=new Dy(d*3));var C=t(function(P){var O=s.length;if(P>O){var q=new Dy(Math.max(O*2,P));q.set(s),s=q}},"cbuf"),A=e.f||0,D=e.p||0,N=e.b||0,F=e.l,W=e.d,G=e.m,j=e.n,K=d*8;do{if(!F){A=BB(n,D,1);var ee=BB(n,D+1,3);if(D+=3,ee)if(ee==1)F=zkn,W=qkn,G=9,j=5;else if(ee==2){var Te=BB(n,D,31)+257,Se=BB(n,D+10,15)+4,Ce=Te+BB(n,D+5,31)+1;D+=14;for(var We=new Dy(Ce),Ge=new Dy(19),Ke=0;Ke<Se;++Ke)Ge[_$e[Ke]]=BB(n,D+Ke*3,7);D+=Se*3;for(var Ve=lWe(Ge),Be=(1<<Ve)-1,J=VB(Ge,Ve,1),Ke=0;Ke<Ce;){var i=J[BB(n,D,Be)];D+=i&15;var re=i>>4;if(re<16)We[Ke++]=re;else{var R=0,ut=0;for(re==16?(ut=3+BB(n,D,3),D+=2,R=We[Ke-1]):re==17?(ut=3+BB(n,D,7),D+=3):re==18&&(ut=11+BB(n,D,127),D+=7);ut--;)We[Ke++]=R}}var ae=We.subarray(0,Te),xt=We.subarray(Te);G=lWe(ae),j=lWe(xt),F=VB(ae,G,1),W=VB(xt,j,1)}else uh(1);else{var re=Nhe(D)+4,ie=n[re-4]|n[re-3]<<8,_e=re+ie;if(_e>d){E&&uh(0);break}b&&C(N+ie),s.set(n.subarray(re,_e),N),e.b=N+=ie,e.p=D=_e*8,e.f=A;continue}if(D>K){E&&uh(0);break}}b&&C(N+131072);for(var Re=(1<<G)-1,B=(1<<j)-1,r=D;;r=D){var R=F[cWe(n,D)&Re],a=R>>4;if(D+=R&15,D>K){E&&uh(0);break}if(R||uh(2),a<256)s[N++]=a;else if(a==256){r=D,F=null;break}else{var l=a-254;if(a>264){var Ke=a-257,u=Dhe[Ke];l=BB(n,D,(1<<u)-1)+CDt[Ke],D+=u}var f=W[cWe(n,D)&B],h=f>>4;f||uh(3),D+=f&15;var xt=jkn[h];if(h>3){var u=Rhe[h];xt+=cWe(n,D)&(1<<u)-1,D+=u}if(D>K){E&&uh(0);break}b&&C(N+131072);var v=N+l;if(N<xt){var S=_-xt,w=Math.min(xt,v);for(S+N<0&&uh(3);N<w;++N)s[N]=c[S+N]}for(;N<v;++N)s[N]=s[N-xt]}}e.l=F,e.p=r,e.b=N,e.f=A,F&&(A=1,e.m=G,e.d=W,e.n=j)}while(!A);return N!=s.length&&m?UB(s,0,N):s.subarray(0,N)},"inflt"),bz=t(function(n,e,s){s<<=e&7;var c=e/8|0;n[c]|=s,n[c+1]|=s>>8},"wbits"),$he=t(function(n,e,s){s<<=e&7;var c=e/8|0;n[c]|=s,n[c+1]|=s>>8,n[c+2]|=s>>16},"wbits16"),uWe=t(function(n,e){for(var s=[],c=0;c<n.length;++c)n[c]&&s.push({s:c,f:n[c]});var d=s.length,_=s.slice();if(!d)return{t:oee,l:0};if(d==1){var m=new Dy(s[0].s+1);return m[s[0].s]=1,{t:m,l:1}}s.sort(function(_e,Te){return _e.f-Te.f}),s.push({s:-1,f:25001});var b=s[0],E=s[1],C=0,A=1,D=2;for(s[0]={s:-1,f:b.f+E.f,l:b,r:E};A!=d-1;)b=s[s[C].f<s[D].f?C++:D++],E=s[C!=A&&s[C].f<s[D].f?C++:D++],s[A++]={s:-1,f:b.f+E.f,l:b,r:E};for(var N=_[0].s,c=1;c<d;++c)_[c].s>N&&(N=_[c].s);var F=new wO(N+1),W=dWe(s[A-1],F,0);if(W>e){var c=0,G=0,j=W-e,K=1<<j;for(_.sort(function(Te,Se){return F[Se.s]-F[Te.s]||Te.f-Se.f});c<d;++c){var ee=_[c].s;if(F[ee]>e)G+=K-(1<<W-F[ee]),F[ee]=e;else break}for(G>>=j;G>0;){var re=_[c].s;F[re]<e?G-=1<<e-F[re]++-1:++c}for(;c>=0&&G;--c){var ie=_[c].s;F[ie]==e&&(--F[ie],++G)}W=e}return{t:new Dy(F),l:W}},"hTree"),dWe=t(function(n,e,s){return n.s==-1?Math.max(dWe(n.l,e,s+1),dWe(n.r,e,s+1)):e[n.s]=s},"ln"),yDt=t(function(n){for(var e=n.length;e&&!n[--e];);for(var s=new wO(++e),c=0,d=n[0],_=1,m=t(function(E){s[c++]=E},"w"),b=1;b<=e;++b)if(n[b]==d&&b!=e)++_;else{if(!d&&_>2){for(;_>138;_-=138)m(32754);_>2&&(m(_>10?_-11<<5|28690:_-3<<5|12305),_=0)}else if(_>3){for(m(d),--_;_>6;_-=6)m(8304);_>2&&(m(_-3<<5|8208),_=0)}for(;_--;)m(d);_=1,d=n[b]}return{c:s.subarray(0,c),n:e}},"lc"),Ahe=t(function(n,e){for(var s=0,c=0;c<e.length;++c)s+=n[c]*e[c];return s},"clen"),wDt=t(function(n,e,s){var c=s.length,d=Nhe(e+2);n[d]=c&255,n[d+1]=c>>8,n[d+2]=n[d]^255,n[d+3]=n[d+1]^255;for(var _=0;_<c;++_)n[d+_+4]=s[_];return(d+4+c)*8},"wfblk"),vDt=t(function(n,e,s,c,d,_,m,b,E,C,A){bz(e,A++,s),++d[256];for(var D=uWe(d,15),N=D.t,F=D.l,W=uWe(_,15),G=W.t,j=W.l,K=yDt(N),ee=K.c,re=K.n,ie=yDt(G),_e=ie.c,Te=ie.n,Se=new wO(19),Ce=0;Ce<ee.length;++Ce)++Se[ee[Ce]&31];for(var Ce=0;Ce<_e.length;++Ce)++Se[_e[Ce]&31];for(var We=uWe(Se,7),Ge=We.t,Ke=We.l,Ve=19;Ve>4&&!Ge[_$e[Ve-1]];--Ve);var Be=C+5<<3,J=Ahe(d,GK)+Ahe(_,The)+m,i=Ahe(d,N)+Ahe(_,G)+m+14+3*Ve+Ahe(Se,Ge)+2*Se[16]+3*Se[17]+7*Se[18];if(E>=0&&Be<=J&&Be<=i)return wDt(e,A,n.subarray(E,E+C));var R,ut,ae,xt;if(bz(e,A,1+(i<J)),A+=2,i<J){R=VB(N,F,0),ut=N,ae=VB(G,j,0),xt=G;var Re=VB(Ge,Ke,0);bz(e,A,re-257),bz(e,A+5,Te-1),bz(e,A+10,Ve-4),A+=14;for(var Ce=0;Ce<Ve;++Ce)bz(e,A+3*Ce,Ge[_$e[Ce]]);A+=3*Ve;for(var B=[ee,_e],r=0;r<2;++r)for(var a=B[r],Ce=0;Ce<a.length;++Ce){var l=a[Ce]&31;bz(e,A,Re[l]),A+=Ge[l],l>15&&(bz(e,A,a[Ce]>>5&127),A+=a[Ce]>>12)}}else R=Wkn,ut=GK,ae=Gkn,xt=The;for(var Ce=0;Ce<b;++Ce){var u=c[Ce];if(u>255){var l=u>>18&31;$he(e,A,R[l+257]),A+=ut[l+257],l>7&&(bz(e,A,u>>23&31),A+=Dhe[l]);var f=u&31;$he(e,A,ae[f]),A+=xt[f],f>3&&($he(e,A,u>>5&8191),A+=Rhe[f])}else $he(e,A,R[u]),A+=ut[u]}return $he(e,A,R[256]),A+ut[256]},"wblk"),Kkn=new g$e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oee=new Dy(0),Jkn=t(function(n,e,s,c,d,_){var m=_.z||n.length,b=new Dy(c+m+5*(1+Math.ceil(m/7e3))+d),E=b.subarray(c,b.length-d),C=_.l,A=(_.r||0)&7;if(e){A&&(E[0]=_.r>>3);for(var D=Kkn[e-1],N=D>>13,F=D&8191,W=(1<<s)-1,G=_.p||new wO(32768),j=_.h||new wO(W+1),K=Math.ceil(s/3),ee=2*K,re=t(function(Y){return(n[Y]^n[Y+1]<<K^n[Y+2]<<ee)&W},"hsh"),ie=new g$e(25e3),_e=new wO(288),Te=new wO(32),Se=0,Ce=0,We=_.i||0,Ge=0,Ke=_.w||0,Ve=0;We+2<m;++We){var Be=re(We),J=We&32767,i=j[Be];if(G[J]=i,j[Be]=J,Ke<=We){var R=m-We;if((Se>7e3||Ge>24576)&&(R>423||!C)){A=vDt(n,E,0,ie,_e,Te,Ce,Ge,Ve,We-Ve,A),Ge=Se=Ce=0,Ve=We;for(var ut=0;ut<286;++ut)_e[ut]=0;for(var ut=0;ut<30;++ut)Te[ut]=0}var ae=2,xt=0,Re=F,B=J-i&32767;if(R>2&&Be==re(We-B))for(var r=Math.min(N,R)-1,a=Math.min(32767,We),l=Math.min(258,R);B<=a&&--Re&&J!=i;){if(n[We+ae]==n[We+ae-B]){for(var u=0;u<l&&n[We+u]==n[We+u-B];++u);if(u>ae){if(ae=u,xt=B,u>r)break;for(var f=Math.min(B,u-2),h=0,ut=0;ut<f;++ut){var v=We-B+ut&32767,S=G[v],w=v-S&32767;w>h&&(h=w,i=v)}}}J=i,i=G[J],B+=J-i&32767}if(xt){ie[Ge++]=268435456|pWe[ae]<<18|gDt[xt];var P=pWe[ae]&31,O=gDt[xt]&31;Ce+=Dhe[P]+Rhe[O],++_e[257+P],++Te[O],Ke=We+ae,++Se}else ie[Ge++]=n[We],++_e[n[We]]}}for(We=Math.max(We,Ke);We<m;++We)ie[Ge++]=n[We],++_e[n[We]];A=vDt(n,E,C,ie,_e,Te,Ce,Ge,Ve,We-Ve,A),C||(_.r=A&7|E[A/8|0]<<3,A-=7,_.h=j,_.p=G,_.i=We,_.w=Ke)}else{for(var We=_.w||0;We<m+C;We+=65535){var q=We+65535;q>=m&&(E[A/8|0]=C,q=m),A=wDt(E,A+1,n.subarray(We,q))}_.i=m}return UB(b,0,c+Nhe(A)+d)},"dflt"),Xkn=function(){for(var n=new Int32Array(256),e=0;e<256;++e){for(var s=e,c=9;--c;)s=(s&1&&-306674912)^s>>>1;n[e]=s}return n}(),Phe=t(function(){var n=-1;return{p:t(function(e){for(var s=n,c=0;c<e.length;++c)s=Xkn[s&255^e[c]]^s>>>8;n=s},"p"),d:t(function(){return~n},"d")}},"crc"),bWe=t(function(){var n=1,e=0;return{p:t(function(s){for(var c=n,d=e,_=s.length|0,m=0;m!=_;){for(var b=Math.min(m+2655,_);m<b;++m)d+=c+=s[m];c=(c&65535)+15*(c>>16),d=(d&65535)+15*(d>>16)}n=c,e=d},"p"),d:t(function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8},"d")}},"adler"),Pse=t(function(n,e,s,c,d){if(!d&&(d={l:1},e.dictionary)){var _=e.dictionary.subarray(-32768),m=new Dy(_.length+n.length);m.set(_),m.set(n,_.length),n=m,d.w=_.length}return Jkn(n,e.level==null?6:e.level,e.mem==null?d.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,s,c,d)},"dopt"),v$e=t(function(n,e){var s={};for(var c in n)s[c]=n[c];for(var c in e)s[c]=e[c];return s},"mrg"),Mkn=t(function(n,e,s){for(var c=n(),d=n.toString(),_=d.slice(d.indexOf("[")+1,d.lastIndexOf("]")).replace(/\s+/g,"").split(","),m=0;m<c.length;++m){var b=c[m],E=_[m];if(typeof b=="function"){e+=";"+E+"=";var C=b.toString();if(b.prototype)if(C.indexOf("[native code]")!=-1){var A=C.indexOf(" ",8)+1;e+=C.slice(A,C.indexOf("(",A))}else{e+=C;for(var D in b.prototype)e+=";"+E+".prototype."+D+"="+b.prototype[D].toString()}else e+=C}else s[E]=b}return e},"wcln"),oWe=[],$Ni=t(function(n){var e=[];for(var s in n)n[s].buffer&&e.push((n[s]=new n[s].constructor(n[s])).buffer);return e},"cbfs"),Ykn=t(function(n,e,s,c){if(!oWe[s]){for(var d="",_={},m=n.length-1,b=0;b<m;++b)d=Mkn(n[b],d,_);oWe[s]={c:Mkn(n[m],d,_),e:_}}var E=v$e({},oWe[s].e);return(0,Fkn.default)(oWe[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,E,$Ni(E),c)},"wrkr"),Lhe=t(function(){return[Dy,wO,g$e,Dhe,Rhe,_$e,CDt,jkn,zkn,qkn,h$e,Hkn,VB,lWe,BB,cWe,Nhe,UB,uh,y$e,Fhe,uee,$Dt]},"bInflt"),khe=t(function(){return[Dy,wO,g$e,Dhe,Rhe,_$e,pWe,gDt,Wkn,GK,Gkn,The,h$e,Kkn,oee,VB,bz,$he,uWe,dWe,yDt,Ahe,wDt,vDt,Nhe,UB,Jkn,Pse,b$e,uee]},"bDflt"),Qkn=t(function(){return[ADt,IDt,Q1,Phe,Xkn]},"gze"),Zkn=t(function(){return[TDt,nMn]},"guze"),eMn=t(function(){return[DDt,Q1,bWe]},"zle"),tMn=t(function(){return[RDt]},"zule"),uee=t(function(n){return postMessage(n,[n.buffer])},"pbf"),$Dt=t(function(n){return n&&{out:n.size&&new Dy(n.size),dictionary:n.dictionary}},"gopt"),Mhe=t(function(n,e,s,c,d,_){var m=Ykn(s,c,d,function(b,E){m.terminate(),_(b,E)});return m.postMessage([n,e],e.consume?[n.buffer]:[]),function(){m.terminate()}},"cbify"),WB=t(function(n){return n.ondata=function(e,s){return postMessage([e,s],[e.buffer])},function(e){e.data.length?(n.push(e.data[0],e.data[1]),postMessage([e.data[0].length])):n.flush()}},"astrm"),Ohe=t(function(n,e,s,c,d,_,m){var b,E=Ykn(n,c,d,function(C,A){C?(E.terminate(),e.ondata.call(e,C)):Array.isArray(A)?A.length==1?(e.queuedSize-=A[0],e.ondrain&&e.ondrain(A[0])):(A[1]&&E.terminate(),e.ondata.call(e,C,A[0],A[1])):m(A)});E.postMessage(s),e.queuedSize=0,e.push=function(C,A){e.ondata||uh(5),b&&e.ondata(uh(4,0,1),null,!!A),e.queuedSize+=C.length,E.postMessage([C,b=A],[C.buffer])},e.terminate=function(){E.terminate()},_&&(e.flush=function(){E.postMessage([])})},"astrmify"),CO=t(function(n,e){return n[e]|n[e+1]<<8},"b2"),eI=t(function(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0},"b4"),mDt=t(function(n,e){return eI(n,e)+eI(n,e+4)*4294967296},"b8"),Q1=t(function(n,e,s){for(;s;++e)n[e]=s,s>>>=8},"wbytes"),ADt=t(function(n,e){var s=e.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=e.level<2?4:e.level==9?2:0,n[9]=3,e.mtime!=0&&Q1(n,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),s){n[3]=8;for(var c=0;c<=s.length;++c)n[c+10]=s.charCodeAt(c)}},"gzh"),TDt=t(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&uh(6,"invalid gzip data");var e=n[3],s=10;e&4&&(s+=(n[10]|n[11]<<8)+2);for(var c=(e>>3&1)+(e>>4&1);c>0;c-=!n[s++]);return s+(e&2)},"gzs"),nMn=t(function(n){var e=n.length;return(n[e-4]|n[e-3]<<8|n[e-2]<<16|n[e-1]<<24)>>>0},"gzl"),IDt=t(function(n){return 10+(n.filename?n.filename.length+1:0)},"gzhl"),DDt=t(function(n,e){var s=e.level,c=s==0?0:s<6?1:s==9?3:2;if(n[0]=120,n[1]=c<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var d=bWe();d.p(e.dictionary),Q1(n,2,d.d())}},"zlh"),RDt=t(function(n,e){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&uh(6,"invalid zlib data"),(n[1]>>5&1)==+!e&&uh(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2},"zls");function Lse(n,e){return typeof n=="function"&&(e=n,n={}),this.ondata=e,n}t(Lse,"StrmOpt");var jB=function(){function n(e,s){if(typeof e=="function"&&(s=e,e={}),this.ondata=s,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Dy(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return t(n,"Deflate"),n.prototype.p=function(e,s){this.ondata(Pse(e,this.o,0,0,this.s),s)},n.prototype.push=function(e,s){this.ondata||uh(5),this.s.l&&uh(4);var c=e.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new Dy(c&-32768);d.set(this.b.subarray(0,this.s.z)),this.b=d}var _=this.b.length-this.s.z;this.b.set(e.subarray(0,_),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(_),32768),this.s.z=e.length-_+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=s&1,(this.s.z>this.s.w+8191||s)&&(this.p(this.b,s||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||uh(5),this.s.l&&uh(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();Bm.Deflate=jB;var rMn=function(){function n(e,s){Ohe([khe,function(){return[WB,jB]}],this,Lse.call(this,e,s),function(c){var d=new jB(c.data);onmessage=WB(d)},6,1)}return t(n,"AsyncDeflate"),n}();Bm.AsyncDeflate=rMn;function iMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe],function(c){return uee(b$e(c.data[0],c.data[1]))},0,s)}t(iMn,"deflate");Bm.deflate=iMn;function b$e(n,e){return Pse(n,e||{},0,0)}t(b$e,"deflateSync");Bm.deflateSync=b$e;var D3=function(){function n(e,s){typeof e=="function"&&(s=e,e={}),this.ondata=s;var c=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new Dy(32768),this.p=new Dy(0),c&&this.o.set(c)}return t(n,"Inflate"),n.prototype.e=function(e){if(this.ondata||uh(5),this.d&&uh(4),!this.p.length)this.p=e;else if(e.length){var s=new Dy(this.p.length+e.length);s.set(this.p),s.set(e,this.p.length),this.p=s}},n.prototype.c=function(e){this.s.i=+(this.d=e||!1);var s=this.s.b,c=y$e(this.p,this.s,this.o);this.ondata(UB(c,s,this.s.b),this.d),this.o=UB(c,this.s.b-32768),this.s.b=this.o.length,this.p=UB(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(e,s){this.e(e),this.c(s)},n}();Bm.Inflate=D3;var NDt=function(){function n(e,s){Ohe([Lhe,function(){return[WB,D3]}],this,Lse.call(this,e,s),function(c){var d=new D3(c.data);onmessage=WB(d)},7,0)}return t(n,"AsyncInflate"),n}();Bm.AsyncInflate=NDt;function PDt(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe],function(c){return uee(Fhe(c.data[0],$Dt(c.data[1])))},1,s)}t(PDt,"inflate");Bm.inflate=PDt;function Fhe(n,e){return y$e(n,{i:2},e&&e.out,e&&e.dictionary)}t(Fhe,"inflateSync");Bm.inflateSync=Fhe;var fWe=function(){function n(e,s){this.c=Phe(),this.l=0,this.v=1,jB.call(this,e,s)}return t(n,"Gzip"),n.prototype.push=function(e,s){this.c.p(e),this.l+=e.length,jB.prototype.push.call(this,e,s)},n.prototype.p=function(e,s){var c=Pse(e,this.o,this.v&&IDt(this.o),s&&8,this.s);this.v&&(ADt(c,this.o),this.v=0),s&&(Q1(c,c.length-8,this.c.d()),Q1(c,c.length-4,this.l)),this.ondata(c,s)},n.prototype.flush=function(){jB.prototype.flush.call(this)},n}();Bm.Gzip=fWe;Bm.Compress=fWe;var aMn=function(){function n(e,s){Ohe([khe,Qkn,function(){return[WB,jB,fWe]}],this,Lse.call(this,e,s),function(c){var d=new fWe(c.data);onmessage=WB(d)},8,1)}return t(n,"AsyncGzip"),n}();Bm.AsyncGzip=aMn;Bm.AsyncCompress=aMn;function sMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe,Qkn,function(){return[_We]}],function(c){return uee(_We(c.data[0],c.data[1]))},2,s)}t(sMn,"gzip");Bm.gzip=sMn;Bm.compress=sMn;function _We(n,e){e||(e={});var s=Phe(),c=n.length;s.p(n);var d=Pse(n,e,IDt(e),8),_=d.length;return ADt(d,e),Q1(d,_-8,s.d()),Q1(d,_-4,c),d}t(_We,"gzipSync");Bm.gzipSync=_We;Bm.compressSync=_We;var hWe=function(){function n(e,s){this.v=1,this.r=0,D3.call(this,e,s)}return t(n,"Gunzip"),n.prototype.push=function(e,s){if(D3.prototype.e.call(this,e),this.r+=e.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?TDt(c):4;if(d>c.length){if(!s)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}D3.prototype.c.call(this,s),this.s.f&&!this.s.l&&!s&&(this.v=Nhe(this.s.p)+9,this.s={i:0},this.o=new Dy(0),this.push(new Dy(0),s))},n}();Bm.Gunzip=hWe;var oMn=function(){function n(e,s){var c=this;Ohe([Lhe,Zkn,function(){return[WB,D3,hWe]}],this,Lse.call(this,e,s),function(d){var _=new hWe(d.data);_.onmember=function(m){return postMessage(m)},onmessage=WB(_)},9,0,function(d){return c.onmember&&c.onmember(d)})}return t(n,"AsyncGunzip"),n}();Bm.AsyncGunzip=oMn;function lMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe,Zkn,function(){return[mWe]}],function(c){return uee(mWe(c.data[0],c.data[1]))},3,s)}t(lMn,"gunzip");Bm.gunzip=lMn;function mWe(n,e){var s=TDt(n);return s+8>n.length&&uh(6,"invalid gzip data"),y$e(n.subarray(s,-8),{i:2},e&&e.out||new Dy(nMn(n)),e&&e.dictionary)}t(mWe,"gunzipSync");Bm.gunzipSync=mWe;var bDt=function(){function n(e,s){this.c=bWe(),this.v=1,jB.call(this,e,s)}return t(n,"Zlib"),n.prototype.push=function(e,s){this.c.p(e),jB.prototype.push.call(this,e,s)},n.prototype.p=function(e,s){var c=Pse(e,this.o,this.v&&(this.o.dictionary?6:2),s&&4,this.s);this.v&&(DDt(c,this.o),this.v=0),s&&Q1(c,c.length-4,this.c.d()),this.ondata(c,s)},n.prototype.flush=function(){jB.prototype.flush.call(this)},n}();Bm.Zlib=bDt;var ANi=function(){function n(e,s){Ohe([khe,eMn,function(){return[WB,jB,bDt]}],this,Lse.call(this,e,s),function(c){var d=new bDt(c.data);onmessage=WB(d)},10,1)}return t(n,"AsyncZlib"),n}();Bm.AsyncZlib=ANi;function TNi(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe,eMn,function(){return[SDt]}],function(c){return uee(SDt(c.data[0],c.data[1]))},4,s)}t(TNi,"zlib");Bm.zlib=TNi;function SDt(n,e){e||(e={});var s=bWe();s.p(n);var c=Pse(n,e,e.dictionary?6:2,4);return DDt(c,e),Q1(c,c.length-4,s.d()),c}t(SDt,"zlibSync");Bm.zlibSync=SDt;var gWe=function(){function n(e,s){D3.call(this,e,s),this.v=e&&e.dictionary?2:1}return t(n,"Unzlib"),n.prototype.push=function(e,s){if(D3.prototype.e.call(this,e),this.v){if(this.p.length<6&&!s)return;this.p=this.p.subarray(RDt(this.p,this.v-1)),this.v=0}s&&(this.p.length<4&&uh(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),D3.prototype.c.call(this,s)},n}();Bm.Unzlib=gWe;var cMn=function(){function n(e,s){Ohe([Lhe,tMn,function(){return[WB,D3,gWe]}],this,Lse.call(this,e,s),function(c){var d=new gWe(c.data);onmessage=WB(d)},11,0)}return t(n,"AsyncUnzlib"),n}();Bm.AsyncUnzlib=cMn;function uMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe,tMn,function(){return[yWe]}],function(c){return uee(yWe(c.data[0],$Dt(c.data[1])))},5,s)}t(uMn,"unzlib");Bm.unzlib=uMn;function yWe(n,e){return y$e(n.subarray(RDt(n,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}t(yWe,"unzlibSync");Bm.unzlibSync=yWe;var xDt=function(){function n(e,s){this.o=Lse.call(this,e,s)||{},this.G=hWe,this.I=D3,this.Z=gWe}return t(n,"Decompress"),n.prototype.i=function(){var e=this;this.s.ondata=function(s,c){e.ondata(s,c)}},n.prototype.push=function(e,s){if(this.ondata||uh(5),this.s)this.s.push(e,s);else{if(this.p&&this.p.length){var c=new Dy(this.p.length+e.length);c.set(this.p),c.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,s),this.p=null)}},n}();Bm.Decompress=xDt;var INi=function(){function n(e,s){xDt.call(this,e,s),this.queuedSize=0,this.G=oMn,this.I=NDt,this.Z=cMn}return t(n,"AsyncDecompress"),n.prototype.i=function(){var e=this;this.s.ondata=function(s,c,d){e.ondata(s,c,d)},this.s.ondrain=function(s){e.queuedSize-=s,e.ondrain&&e.ondrain(s)}},n.prototype.push=function(e,s){this.queuedSize+=e.length,xDt.prototype.push.call(this,e,s)},n}();Bm.AsyncDecompress=INi;function DNi(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),n[0]==31&&n[1]==139&&n[2]==8?lMn(n,e,s):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?PDt(n,e,s):uMn(n,e,s)}t(DNi,"decompress");Bm.decompress=DNi;function RNi(n,e){return n[0]==31&&n[1]==139&&n[2]==8?mWe(n,e):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Fhe(n,e):yWe(n,e)}t(RNi,"decompressSync");Bm.decompressSync=RNi;var LDt=t(function(n,e,s,c){for(var d in n){var _=n[d],m=e+d,b=c;Array.isArray(_)&&(b=v$e(c,_[1]),_=_[0]),_ instanceof Dy?s[m]=[_,b]:(s[m+="/"]=[new Dy(0),b],LDt(_,m,s,c))}},"fltn"),Okn=typeof TextEncoder<"u"&&new TextEncoder,EDt=typeof TextDecoder<"u"&&new TextDecoder,pMn=0;try{EDt.decode(oee,{stream:!0}),pMn=1}catch{}var dMn=t(function(n){for(var e="",s=0;;){var c=n[s++],d=(c>127)+(c>223)+(c>239);if(s+d>n.length)return{s:e,r:UB(n,s-1)};d?d==3?(c=((c&15)<<18|(n[s++]&63)<<12|(n[s++]&63)<<6|n[s++]&63)-65536,e+=String.fromCharCode(55296|c>>10,56320|c&1023)):d&1?e+=String.fromCharCode((c&31)<<6|n[s++]&63):e+=String.fromCharCode((c&15)<<12|(n[s++]&63)<<6|n[s++]&63):e+=String.fromCharCode(c)}},"dutf8"),NNi=function(){function n(e){this.ondata=e,pMn?this.t=new TextDecoder:this.p=oee}return t(n,"DecodeUTF8"),n.prototype.push=function(e,s){if(this.ondata||uh(5),s=!!s,this.t){this.ondata(this.t.decode(e,{stream:!0}),s),s&&(this.t.decode().length&&uh(8),this.t=null);return}this.p||uh(4);var c=new Dy(this.p.length+e.length);c.set(this.p),c.set(e,this.p.length);var d=dMn(c),_=d.s,m=d.r;s?(m.length&&uh(8),this.p=null):this.p=m,this.ondata(_,s)},n}();Bm.DecodeUTF8=NNi;var PNi=function(){function n(e){this.ondata=e}return t(n,"EncodeUTF8"),n.prototype.push=function(e,s){this.ondata||uh(5),this.d&&uh(4),this.ondata(cee(e),this.d=s||!1)},n}();Bm.EncodeUTF8=PNi;function cee(n,e){if(e){for(var s=new Dy(n.length),c=0;c<n.length;++c)s[c]=n.charCodeAt(c);return s}if(Okn)return Okn.encode(n);for(var d=n.length,_=new Dy(n.length+(n.length>>1)),m=0,b=t(function(A){_[m++]=A},"w"),c=0;c<d;++c){if(m+5>_.length){var E=new Dy(m+8+(d-c<<1));E.set(_),_=E}var C=n.charCodeAt(c);C<128||e?b(C):C<2048?(b(192|C>>6),b(128|C&63)):C>55295&&C<57344?(C=65536+(C&1047552)|n.charCodeAt(++c)&1023,b(240|C>>18),b(128|C>>12&63),b(128|C>>6&63),b(128|C&63)):(b(224|C>>12),b(128|C>>6&63),b(128|C&63))}return UB(_,0,m)}t(cee,"strToU8");Bm.strToU8=cee;function kDt(n,e){if(e){for(var s="",c=0;c<n.length;c+=16384)s+=String.fromCharCode.apply(null,n.subarray(c,c+16384));return s}else{if(EDt)return EDt.decode(n);var d=dMn(n),_=d.s,s=d.r;return s.length&&uh(8),_}}t(kDt,"strFromU8");Bm.strFromU8=kDt;var fMn=t(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),_Mn=t(function(n,e){return e+30+CO(n,e+26)+CO(n,e+28)},"slzh"),hMn=t(function(n,e,s){var c=CO(n,e+28),d=kDt(n.subarray(e+46,e+46+c),!(CO(n,e+8)&2048)),_=e+46+c,m=eI(n,e+20),b=s&&m==4294967295?mMn(n,_):[m,eI(n,e+24),eI(n,e+42)],E=b[0],C=b[1],A=b[2];return[CO(n,e+10),E,C,d,_+CO(n,e+30)+CO(n,e+32),A]},"zh"),mMn=t(function(n,e){for(;CO(n,e)!=1;e+=4+CO(n,e+2));return[mDt(n,e+12),mDt(n,e+4),mDt(n,e+20)]},"z64e"),lee=t(function(n){var e=0;if(n)for(var s in n){var c=n[s].length;c>65535&&uh(9),e+=c+4}return e},"exfl"),Ihe=t(function(n,e,s,c,d,_,m,b){var E=c.length,C=s.extra,A=b&&b.length,D=lee(C);Q1(n,e,m!=null?33639248:67324752),e+=4,m!=null&&(n[e++]=20,n[e++]=s.os),n[e]=20,e+=2,n[e++]=s.flag<<1|(_<0&&8),n[e++]=d&&8,n[e++]=s.compression&255,n[e++]=s.compression>>8;var N=new Date(s.mtime==null?Date.now():s.mtime),F=N.getFullYear()-1980;if((F<0||F>119)&&uh(10),Q1(n,e,F<<25|N.getMonth()+1<<21|N.getDate()<<16|N.getHours()<<11|N.getMinutes()<<5|N.getSeconds()>>1),e+=4,_!=-1&&(Q1(n,e,s.crc),Q1(n,e+4,_<0?-_-2:_),Q1(n,e+8,s.size)),Q1(n,e+12,E),Q1(n,e+14,D),e+=16,m!=null&&(Q1(n,e,A),Q1(n,e+6,s.attrs),Q1(n,e+10,m),e+=14),n.set(c,e),e+=E,D)for(var W in C){var G=C[W],j=G.length;Q1(n,e,+W),Q1(n,e+2,j),n.set(G,e+4),e+=4+j}return A&&(n.set(b,e),e+=A),e},"wzh"),MDt=t(function(n,e,s,c,d){Q1(n,e,101010256),Q1(n,e+8,s),Q1(n,e+10,s),Q1(n,e+12,c),Q1(n,e+16,d)},"wzf"),m$e=function(){function n(e){this.filename=e,this.c=Phe(),this.size=0,this.compression=0}return t(n,"ZipPassThrough"),n.prototype.process=function(e,s){this.ondata(null,e,s)},n.prototype.push=function(e,s){this.ondata||uh(5),this.c.p(e),this.size+=e.length,s&&(this.crc=this.c.d()),this.process(e,s||!1)},n}();Bm.ZipPassThrough=m$e;var LNi=function(){function n(e,s){var c=this;s||(s={}),m$e.call(this,e),this.d=new jB(s,function(d,_){c.ondata(null,d,_)}),this.compression=8,this.flag=fMn(s.level)}return t(n,"ZipDeflate"),n.prototype.process=function(e,s){try{this.d.push(e,s)}catch(c){this.ondata(c,null,s)}},n.prototype.push=function(e,s){m$e.prototype.push.call(this,e,s)},n}();Bm.ZipDeflate=LNi;var kNi=function(){function n(e,s){var c=this;s||(s={}),m$e.call(this,e),this.d=new rMn(s,function(d,_,m){c.ondata(d,_,m)}),this.compression=8,this.flag=fMn(s.level),this.terminate=this.d.terminate}return t(n,"AsyncZipDeflate"),n.prototype.process=function(e,s){this.d.push(e,s)},n.prototype.push=function(e,s){m$e.prototype.push.call(this,e,s)},n}();Bm.AsyncZipDeflate=kNi;var MNi=function(){function n(e){this.ondata=e,this.u=[],this.d=1}return t(n,"Zip"),n.prototype.add=function(e){var s=this;if(this.ondata||uh(5),this.d&2)this.ondata(uh(4+(this.d&1)*8,0,1),null,!1);else{var c=cee(e.filename),d=c.length,_=e.comment,m=_&&cee(_),b=d!=e.filename.length||m&&_.length!=m.length,E=d+lee(e.extra)+30;d>65535&&this.ondata(uh(11,0,1),null,!1);var C=new Dy(E);Ihe(C,0,e,c,b,-1);var A=[C],D=t(function(){for(var j=0,K=A;j<K.length;j++){var ee=K[j];s.ondata(null,ee,!1)}A=[]},"pAll_1"),N=this.d;this.d=0;var F=this.u.length,W=v$e(e,{f:c,u:b,o:m,t:t(function(){e.terminate&&e.terminate()},"t"),r:t(function(){if(D(),N){var j=s.u[F+1];j?j.r():s.d=1}N=1},"r")}),G=0;e.ondata=function(j,K,ee){if(j)s.ondata(j,K,ee),s.terminate();else if(G+=K.length,A.push(K),ee){var re=new Dy(16);Q1(re,0,134695760),Q1(re,4,e.crc),Q1(re,8,G),Q1(re,12,e.size),A.push(re),W.c=G,W.b=E+G+16,W.crc=e.crc,W.size=e.size,N&&W.r(),N=1}else N&&D()},this.u.push(W)}},n.prototype.end=function(){var e=this;if(this.d&2){this.ondata(uh(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:t(function(){e.d&1&&(e.u.splice(-1,1),e.e())},"r"),t:t(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var e=0,s=0,c=0,d=0,_=this.u;d<_.length;d++){var m=_[d];c+=46+m.f.length+lee(m.extra)+(m.o?m.o.length:0)}for(var b=new Dy(c+22),E=0,C=this.u;E<C.length;E++){var m=C[E];Ihe(b,e,m,m.f,m.u,-m.c-2,s,m.o),e+=46+m.f.length+lee(m.extra)+(m.o?m.o.length:0),s+=m.b}MDt(b,e,this.u.length,c,s),this.ondata(null,b,!0),this.d=2},n.prototype.terminate=function(){for(var e=0,s=this.u;e<s.length;e++){var c=s[e];c.t()}this.d=2},n}();Bm.Zip=MNi;function ONi(n,e,s){s||(s=e,e={}),typeof s!="function"&&uh(7);var c={};LDt(n,"",c,e);var d=Object.keys(c),_=d.length,m=0,b=0,E=_,C=new Array(_),A=[],D=t(function(){for(var j=0;j<A.length;++j)A[j]()},"tAll"),N=t(function(j,K){vWe(function(){s(j,K)})},"cbd");vWe(function(){N=s});var F=t(function(){var j=new Dy(b+22),K=m,ee=b-m;b=0;for(var re=0;re<E;++re){var ie=C[re];try{var _e=ie.c.length;Ihe(j,b,ie,ie.f,ie.u,_e);var Te=30+ie.f.length+lee(ie.extra),Se=b+Te;j.set(ie.c,Se),Ihe(j,m,ie,ie.f,ie.u,_e,b,ie.m),m+=16+Te+(ie.m?ie.m.length:0),b=Se+_e}catch(Ce){return N(Ce,null)}}MDt(j,m,C.length,ee,K),N(null,j)},"cbf");_||F();for(var W=t(function(j){var K=d[j],ee=c[K],re=ee[0],ie=ee[1],_e=Phe(),Te=re.length;_e.p(re);var Se=cee(K),Ce=Se.length,We=ie.comment,Ge=We&&cee(We),Ke=Ge&&Ge.length,Ve=lee(ie.extra),Be=ie.level==0?0:8,J=t(function(i,R){if(i)D(),N(i,null);else{var ut=R.length;C[j]=v$e(ie,{size:Te,crc:_e.d(),c:R,f:Se,m:Ge,u:Ce!=K.length||Ge&&We.length!=Ke,compression:Be}),m+=30+Ce+Ve+ut,b+=76+2*(Ce+Ve)+(Ke||0)+ut,--_||F()}},"cbl");if(Ce>65535&&J(uh(11,0,1),null),!Be)J(null,re);else if(Te<16e4)try{J(null,b$e(re,ie))}catch(i){J(i,null)}else A.push(iMn(re,ie,J))},"_loop_1"),G=0;G<E;++G)W(G);return D}t(ONi,"zip");Bm.zip=ONi;function FNi(n,e){e||(e={});var s={},c=[];LDt(n,"",s,e);var d=0,_=0;for(var m in s){var b=s[m],E=b[0],C=b[1],A=C.level==0?0:8,D=cee(m),N=D.length,F=C.comment,W=F&&cee(F),G=W&&W.length,j=lee(C.extra);N>65535&&uh(11);var K=A?b$e(E,C):E,ee=K.length,re=Phe();re.p(E),c.push(v$e(C,{size:E.length,crc:re.d(),c:K,f:D,m:W,u:N!=m.length||W&&F.length!=G,o:d,compression:A})),d+=30+N+j+ee,_+=76+2*(N+j)+(G||0)+ee}for(var ie=new Dy(_+22),_e=d,Te=_-d,Se=0;Se<c.length;++Se){var D=c[Se];Ihe(ie,D.o,D,D.f,D.u,D.c.length);var Ce=30+D.f.length+lee(D.extra);ie.set(D.c,D.o+Ce),Ihe(ie,d,D,D.f,D.u,D.c.length,D.o,D.m),d+=16+Ce+(D.m?D.m.length:0)}return MDt(ie,d,c.length,Te,_e),ie}t(FNi,"zipSync");Bm.zipSync=FNi;var gMn=function(){function n(){}return t(n,"UnzipPassThrough"),n.prototype.push=function(e,s){this.ondata(null,e,s)},n.compression=0,n}();Bm.UnzipPassThrough=gMn;var BNi=function(){function n(){var e=this;this.i=new D3(function(s,c){e.ondata(null,s,c)})}return t(n,"UnzipInflate"),n.prototype.push=function(e,s){try{this.i.push(e,s)}catch(c){this.ondata(c,null,s)}},n.compression=8,n}();Bm.UnzipInflate=BNi;var VNi=function(){function n(e,s){var c=this;s<32e4?this.i=new D3(function(d,_){c.ondata(null,d,_)}):(this.i=new NDt(function(d,_,m){c.ondata(d,_,m)}),this.terminate=this.i.terminate)}return t(n,"AsyncUnzipInflate"),n.prototype.push=function(e,s){this.i.terminate&&(e=UB(e,0)),this.i.push(e,s)},n.compression=8,n}();Bm.AsyncUnzipInflate=VNi;var UNi=function(){function n(e){this.onfile=e,this.k=[],this.o={0:gMn},this.p=oee}return t(n,"Unzip"),n.prototype.push=function(e,s){var c=this;if(this.onfile||uh(5),this.p||uh(4),this.c>0){var d=Math.min(this.c,e.length),_=e.subarray(0,d);if(this.c-=d,this.d?this.d.push(_,!this.c):this.k[0].push(_),e=e.subarray(d),e.length)return this.push(e,s)}else{var m=0,b=0,E=void 0,C=void 0;this.p.length?e.length?(C=new Dy(this.p.length+e.length),C.set(this.p),C.set(e,this.p.length)):C=this.p:C=e;for(var A=C.length,D=this.c,N=D&&this.d,F=t(function(){var K,ee=eI(C,b);if(ee==67324752){m=1,E=b,W.d=null,W.c=0;var re=CO(C,b+6),ie=CO(C,b+8),_e=re&2048,Te=re&8,Se=CO(C,b+26),Ce=CO(C,b+28);if(A>b+30+Se+Ce){var We=[];W.k.unshift(We),m=2;var Ge=eI(C,b+18),Ke=eI(C,b+22),Ve=kDt(C.subarray(b+30,b+=30+Se),!_e);Ge==4294967295?(K=Te?[-2]:mMn(C,b),Ge=K[0],Ke=K[1]):Te&&(Ge=-1),b+=Ce,W.c=Ge;var Be,J={name:Ve,compression:ie,start:t(function(){if(J.ondata||uh(5),!Ge)J.ondata(null,oee,!0);else{var i=c.o[ie];i||J.ondata(uh(14,"unknown compression type "+ie,1),null,!1),Be=Ge<0?new i(Ve):new i(Ve,Ge,Ke),Be.ondata=function(xt,Re,B){J.ondata(xt,Re,B)};for(var R=0,ut=We;R<ut.length;R++){var ae=ut[R];Be.push(ae,!1)}c.k[0]==We&&c.c?c.d=Be:Be.push(oee,!0)}},"start"),terminate:t(function(){Be&&Be.terminate&&Be.terminate()},"terminate")};Ge>=0&&(J.size=Ge,J.originalSize=Ke),W.onfile(J)}return"break"}else if(D){if(ee==134695760)return E=b+=12+(D==-2&&8),m=3,W.c=0,"break";if(ee==33639248)return E=b-=4,m=3,W.c=0,"break"}},"_loop_2"),W=this;b<A-4;++b){var G=F();if(G==="break")break}if(this.p=oee,D<0){var j=m?C.subarray(0,E-12-(D==-2&&8)-(eI(C,E-16)==134695760&&4)):C.subarray(0,b);N?N.push(j,!!m):this.k[+(m==2)].push(j)}if(m&2)return this.push(C.subarray(b),s);this.p=C.subarray(b)}s&&(this.c&&uh(13),this.p=null)},n.prototype.register=function(e){this.o[e.compression]=e},n}();Bm.Unzip=UNi;var vWe=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function jNi(n,e,s){s||(s=e,e={}),typeof s!="function"&&uh(7);var c=[],d=t(function(){for(var j=0;j<c.length;++j)c[j]()},"tAll"),_={},m=t(function(j,K){vWe(function(){s(j,K)})},"cbd");vWe(function(){m=s});for(var b=n.length-22;eI(n,b)!=101010256;--b)if(!b||n.length-b>65558)return m(uh(13,0,1),null),d;var E=CO(n,b+8);if(E){var C=E,A=eI(n,b+16),D=A==4294967295||C==65535;if(D){var N=eI(n,b-12);D=eI(n,N)==101075792,D&&(C=E=eI(n,N+32),A=eI(n,N+48))}for(var F=e&&e.filter,W=t(function(j){var K=hMn(n,A,D),ee=K[0],re=K[1],ie=K[2],_e=K[3],Te=K[4],Se=K[5],Ce=_Mn(n,Se);A=Te;var We=t(function(Ke,Ve){Ke?(d(),m(Ke,null)):(Ve&&(_[_e]=Ve),--E||m(null,_))},"cbl");if(!F||F({name:_e,size:re,originalSize:ie,compression:ee}))if(!ee)We(null,UB(n,Ce,Ce+re));else if(ee==8){var Ge=n.subarray(Ce,Ce+re);if(ie<524288||re>.8*ie)try{We(null,Fhe(Ge,{out:new Dy(ie)}))}catch(Ke){We(Ke,null)}else c.push(PDt(Ge,{size:ie},We))}else We(uh(14,"unknown compression type "+ee,1),null);else We(null,null)},"_loop_3"),G=0;G<C;++G)W(G)}else m(null,{});return d}t(jNi,"unzip");Bm.unzip=jNi;function WNi(n,e){for(var s={},c=n.length-22;eI(n,c)!=101010256;--c)(!c||n.length-c>65558)&&uh(13);var d=CO(n,c+8);if(!d)return{};var _=eI(n,c+16),m=_==4294967295||d==65535;if(m){var b=eI(n,c-12);m=eI(n,b)==101075792,m&&(d=eI(n,b+32),_=eI(n,b+48))}for(var E=e&&e.filter,C=0;C<d;++C){var A=hMn(n,_,m),D=A[0],N=A[1],F=A[2],W=A[3],G=A[4],j=A[5],K=_Mn(n,j);_=G,(!E||E({name:W,size:N,originalSize:F,compression:D}))&&(D?D==8?s[W]=Fhe(n.subarray(K,K+N),{out:new Dy(F)}):uh(14,"unknown compression type "+D):s[W]=UB(n,K,K+N))}return s}t(WNi,"unzipSync");Bm.unzipSync=WNi});var vMn=st(Xk=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xk,"__esModule",{value:!0});Xk.unzipSync=Xk.zipSync=Xk.gunzipSync=Xk.gunzip=Xk.gzipSync=Xk.zipDirectory=Xk.unzipAppPackage=void 0;var pee=yMn();Object.defineProperty(Xk,"unzipSync",{enumerable:!0,get:t(function(){return pee.unzipSync},"get")});Object.defineProperty(Xk,"zipSync",{enumerable:!0,get:t(function(){return pee.zipSync},"get")});Object.defineProperty(Xk,"gzipSync",{enumerable:!0,get:t(function(){return pee.gzipSync},"get")});Object.defineProperty(Xk,"gunzipSync",{enumerable:!0,get:t(function(){return pee.gunzipSync},"get")});var FDt=Zwe(),BDt=KW(),ODt="status.json",zNi=t(async(n,e,s)=>{let c=new Uint8Array(n.readFileSync(e)),d=(0,pee.unzipSync)(c);if(d["package_inventory.csv"]&&delete d["package_inventory.csv"],ODt in d){let m=JSON.parse(it.from(d[ODt]).toString("utf8"));if(m.status==="error")throw new Error("Application download failed with error, "+m.message);delete d[ODt]}return{files:Object.entries(d).map(([m,b])=>{let E=BDt.path.join(s,m),C=BDt.path.dirname(E);return FDt.FileSystem.ensureDirSync(n,C),n.writeFileSync(E,b),E})}},"unzipAppPackage");Xk.unzipAppPackage=zNi;var GNi=t(async(n,e,s)=>new Promise((c,d)=>{try{let _=new pee.Zip,m=FDt.FileSystem.createWriteStream(n,s);_.ondata=(C,A,D)=>{C?(m.destroy(),d(C)):(m.write(A),D&&m.end())},m.on("finish",()=>{c(s)}),m.on("error",C=>{d(C)});let E=new FDt.TsMorphFileSystemWrapper(n).globSync(["**"],{cwd:e});E.length===0&&d(`No files found in ${e} directory to create zip.`);for(let C of E){let A=BDt.path.normalize(C),D=n.readFileSync(A),N=new pee.ZipDeflate(A.replace(e,""),{level:6});_.add(N),N.push(D,!0)}_.end()}catch(_){d(_)}}),"zipDirectory");Xk.zipDirectory=GNi;var qNi=t(n=>new Promise((e,s)=>(0,pee.gunzip)(n,(c,d)=>{c?s(c):e(d)})),"gunzip");Xk.gunzip=qNi});var bMn=st(SWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(SWe,"__esModule",{value:!0});SWe.NoOpTelemetry=void 0;var VDt=class{static{t(this,"NoOpTelemetry")}startTimerEvent(){return{end:t(()=>({name:"",data:{}}),"end")}}start=t(()=>{},"start");sendEvent=t(()=>{},"sendEvent");error=t(()=>{},"error")};SWe.NoOpTelemetry=VDt});var SMn=st((VNs,HNi)=>{HNi.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var CMn=st(V9=>{"use strict";pe();ue();oe();ce();le();var xMn=SMn(),tI=Ye.env;Object.defineProperty(V9,"_vendors",{value:xMn.map(function(n){return n.constant})});V9.name=null;V9.isPR=null;V9.id=null;tI.CI!=="false"&&xMn.forEach(function(n){let s=(Array.isArray(n.env)?n.env:[n.env]).every(function(c){return EMn(c)});V9[n.constant]=s,s&&(V9.name=n.name,V9.isPR=KNi(n),V9.id=n.constant)});V9.isCI=!!(tI.CI!=="false"&&(tI.BUILD_ID||tI.BUILD_NUMBER||tI.CI||tI.CI_APP_ID||tI.CI_BUILD_ID||tI.CI_BUILD_NUMBER||tI.CI_NAME||tI.CONTINUOUS_INTEGRATION||tI.RUN_ID||V9.name));function EMn(n){return typeof n=="string"?!!tI[n]:"env"in n?tI[n.env]&&tI[n.env].includes(n.includes):"any"in n?n.any.some(function(e){return!!tI[e]}):Object.keys(n).every(function(e){return tI[e]===n[e]})}t(EMn,"checkEnv");function KNi(n){switch(typeof n.pr){case"string":return!!tI[n.pr];case"object":return"env"in n.pr?"any"in n.pr?n.pr.any.some(function(e){return tI[n.pr.env]===e}):n.pr.env in tI&&tI[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some(function(e){return!!tI[e]}):EMn(n.pr);default:return null}}t(KNi,"checkPR")});var UDt=st(Bhe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Bhe,"__esModule",{value:!0});Bhe.DatapointType=Bhe.NETWORK_TIMEOUT_MS=void 0;Bhe.NETWORK_TIMEOUT_MS=2e3;var wMn;(function(n){n[n.Page=0]="Page",n[n.Event=1]="Event",n[n.User=2]="User",n[n.PerformanceTrace=3]="PerformanceTrace"})(wMn||(Bhe.DatapointType=wMn={}))});var $Mn=st(xWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xWe,"__esModule",{value:!0});xWe.AppSeeTimerMetric=void 0;var jDt=class{static{t(this,"AppSeeTimerMetric")}name;startTime;constructor(e){this.name=e,this.startTime=Date.now()}getDurationMs(){let e=Date.now();return{duration:e-this.startTime,now:e}}end(e){let s=Date.now()-this.startTime;return{name:this.name,appInfo:e?.appInfo||{},data:{...e?.data,durationMs:s}}}};xWe.AppSeeTimerMetric=jDt});var zDt=st(EWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(EWe,"__esModule",{value:!0});EWe.AbstractAppSeeClient=void 0;var JNi=$Mn(),WDt=class{static{t(this,"AbstractAppSeeClient")}config;telemetryAttributes;sdkVersion;clientName;hostname;session;startPromise;constructor(e,s){this.config=e,this.telemetryAttributes=s,this.sdkVersion=s.sdkVersion,this.clientName=s.clientName,this.hostname=s.hostname}startTimerEvent(e){return new JNi.AppSeeTimerMetric(e)}start(){return this.startPromise||(this.startPromise=this.doStart()),this.startPromise}sendEvent(e){this.start().then(()=>this.doSendEvent(e)).catch(()=>{})}error(e,s,c){this.sendEvent([{name:"error",data:{event:e,...s instanceof Error?{name:s.name,message:s.message,stack:s.stack}:{message:s?.toString()},...c}}])}};EWe.AbstractAppSeeClient=WDt});var TMn=st(zB=>{"use strict";pe();ue();oe();ce();le();var XNi=zB&&zB.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),YNi=zB&&zB.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),QNi=zB&&zB.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&XNi(e,n,s);return YNi(e,n),e},ZNi=zB&&zB.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(zB,"__esModule",{value:!0});zB.NodeTelemetryClient=void 0;var qDt=QNi((gB(),Sc(mB))),GDt=ZNi(CMn()),CWe=UDt(),ePi=zDt();function AMn(){return EL("node:crypto").randomBytes(16).toString("hex")}t(AMn,"generateHexString");async function tPi(){let n=`${qDt.userInfo().username}:${qDt.hostname()}`;if(!n)return"unknown";let e=new TextEncoder().encode(n),s=await crypto.subtle.digest("SHA-256",e);return it.from(s).toString("hex")}t(tPi,"getUserHash");var HDt=class extends ePi.AbstractAppSeeClient{static{t(this,"NodeTelemetryClient")}constructor(e,s){super(e,{...s??{},clientName:s?.clientName??"cli"})}userId;async doStart(){try{if(this.session)return;this.userId=await tPi();let e=AMn(),s={RequestId:AMn(),TabId:e,SystemLocale:(Ye.env.LANG||"unknown").split(".")[0],AppUserId:this.userId,ScreenHeight:0,ScreenWidth:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},c=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(s),signal:AbortSignal.timeout(CWe.NETWORK_TIMEOUT_MS)}),d=await c.json();if(c.ok)this.session={...d,TabId:e};else throw new Error(`Failed to start session with status ${c.status}: ${d.Error}`)}catch{}}doSendEvent(e){try{if(!this.session)return;let s=this.getDefaultDataValues(),c=Array.isArray(e)?e:[e],d=Date.now(),_=this.hostname?{hostname:this.hostname}:{},m=c.map(C=>({t:CWe.DatapointType.Event,d,n:C.name,p:{scopeId:C.appInfo?.scopeId,..._,...s,...C.data}})),b=this.applyCITelemetry({..._});m.push({t:CWe.DatapointType.User,d,n:this.userId,p:b});let E={SessionId:this.session.SessionId,DataPoints:m,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(E),signal:AbortSignal.timeout(CWe.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){let e={os:qDt.type(),version:this.sdkVersion||"unknown",nodeVersion:Ye.version,clientName:this.clientName};return this.applyCITelemetry(e)}applyCITelemetry(e){return GDt.default.isCI?{...e,ci:!0,ciName:GDt.default.name,ciPR:GDt.default.isPR}:e}};zB.NodeTelemetryClient=HDt});var IMn=st($We=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($We,"__esModule",{value:!0});$We.BrowserTelemetryClient=void 0;var wWe=UDt(),nPi=zDt(),KDt=class extends nPi.AbstractAppSeeClient{static{t(this,"BrowserTelemetryClient")}constructor(e,s){let{ideVersion:c,...d}=s??{};super(e,{...d,clientName:s?.clientName??"ide"}),this.ideVersion=c}ideVersion;userId;async getUserHash(){let e=await this.getUserIdentifier(),s=new TextEncoder().encode(e),c=await crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(c)).map(_=>_.toString(16).padStart(2,"0")).join("")}async getUserIdentifier(){if(typeof window>"u")return"unknown";let e="sdk_telemetry_user_id";try{let s=localStorage.getItem(e);return s||(s=`anon_${Date.now()}_${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(e,s)),s}catch{return`temp_${Math.random().toString(36).substring(2,15)}`}}generateHexString(){return crypto.randomUUID()}async doStart(){try{if(this.session)return;this.userId=await this.getUserHash();let e=this.generateHexString(),s={RequestId:this.generateHexString(),TabId:e,SystemLocale:nt.language??"unknown",AppUserId:this.userId,ScreenHeight:typeof screen<"u"?screen.height:0,ScreenWidth:typeof screen<"u"?screen.width:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},c=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(s),signal:AbortSignal.timeout(wWe.NETWORK_TIMEOUT_MS)}),d=await c.json();if(c.ok)this.session={...d,TabId:e};else throw new Error(`Failed to start session with status ${c.status}: ${d.Error}`)}catch{}}doSendEvent(e){try{if(!this.session)return;let s=this.getDefaultDataValues(),c=Array.isArray(e)?e:[e],d=Date.now(),_=this.hostname?{hostname:this.hostname}:{},m=c.map(C=>({t:wWe.DatapointType.Event,d,n:C.name,p:{scopeId:C.appInfo?.scopeId,..._,...s,...C.data}})),b={hostname:_};m.push({t:wWe.DatapointType.User,d,n:this.userId,p:b});let E={SessionId:this.session.SessionId,DataPoints:m,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(E),signal:AbortSignal.timeout(wWe.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){return{browser:nt.userAgent||"unknown",version:this.sdkVersion||"unknown",clientName:this.clientName,ideVersion:this.ideVersion||"unknown"}}};$We.BrowserTelemetryClient=KDt});var NMn=st((TPs,RMn)=>{"use strict";pe();ue();oe();ce();le();var JDt=Object.defineProperty,rPi=Object.getOwnPropertyDescriptor,iPi=Object.getOwnPropertyNames,aPi=Object.prototype.hasOwnProperty,sPi=t((n,e)=>{for(var s in e)JDt(n,s,{get:e[s],enumerable:!0})},"__export"),oPi=t((n,e,s,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of iPi(e))!aPi.call(n,d)&&d!==s&&JDt(n,d,{get:t(()=>e[d],"get"),enumerable:!(c=rPi(e,d))||c.enumerable});return n},"__copyProps"),lPi=t(n=>oPi(JDt({},"__esModule",{value:!0}),n),"__toCommonJS"),DMn={};sPi(DMn,{getAppSeeConfig:t(()=>cPi,"getAppSeeConfig")});RMn.exports=lPi(DMn);var cPi=t(()=>({APIKey:"demonightlycrf:6488f3cdc18547c19b2c8852b276a210",APIAuth:"f3bfba5cdd1f417589a0b1b290fd3346",BaseUrl:"https://api-appsee.service-now.com"}),"getAppSeeConfig")});var PMn=st(AWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AWe,"__esModule",{value:!0});AWe.TelemetryFactory=void 0;var uPi=bMn(),pPi=TMn(),dPi=IMn(),fPi=NMn(),XDt=class{static{t(this,"TelemetryFactory")}static create(e){let s=(0,fPi.getAppSeeConfig)();if(!e||!e.type||!s.APIKey||!s.APIAuth||!s.BaseUrl)return new uPi.NoOpTelemetry;if(e.type==="node")return new pPi.NodeTelemetryClient(s,e.attributes);if(e.type==="browser")return new dPi.BrowserTelemetryClient(s,e.attributes);throw new Error("Invalid telemetry type.")}};AWe.TelemetryFactory=XDt});var LMn=st(TWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(TWe,"__esModule",{value:!0});TWe.TelemetryFactory=void 0;var _Pi=PMn();Object.defineProperty(TWe,"TelemetryFactory",{enumerable:!0,get:t(function(){return _Pi.TelemetryFactory},"get")})});var kMn=st(YDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(YDt,"__esModule",{value:!0});YDt.validateClaimsFile=yPi;var hPi=YZ(),mPi=uDt(),gPi={id:"/.claims",type:"object",patternProperties:{".*":{type:"array"}}};function yPi(n){let e=hPi.JSON5.parse(n),c=new mPi.Validator().validate(e,gPi);if(c.errors&&c.errors.length>0)throw new Error(`Error reading .claims.json, ${c.errors[0]?.stack}`)}t(yPi,"validateClaimsFile")});var Lc=st(Ex=>{"use strict";pe();ue();oe();ce();le();var vPi=Ex&&Ex.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),JA=Ex&&Ex.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vPi(e,n,s)};Object.defineProperty(Ex,"__esModule",{value:!0});JA(CIt(),Ex);JA(EPn(),Ex);JA(Mje(),Ex);JA(zje(),Ex);JA(tLn(),Ex);JA(nLn(),Ex);JA(sLn(),Ex);JA(tIt(),Ex);JA(Pkn(),Ex);JA(Eje(),Ex);JA(WUe(),Ex);JA(eDt(),Ex);JA(YZ(),Ex);JA(Lkn(),Ex);JA(Zwe(),Ex);JA(KW(),Ex);JA(HW(),Ex);JA(PIt(),Ex);JA(vMn(),Ex);JA(qIt(),Ex);JA(LMn(),Ex);JA(kMn(),Ex);JA(fDt(),Ex)});var MMn=st(GB=>{"use strict";pe();ue();oe();ce();le();var bPi=GB&&GB.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),SPi=GB&&GB.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),xPi=GB&&GB.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&bPi(e,n,s);return SPi(e,n),e};Object.defineProperty(GB,"__esModule",{value:!0});GB.writeFileWithParentDirs=CPi;GB.createDirIfNotExists=wPi;GB.defaultDownloadDir=$Pi;GB.writeFileStream=APi;var Vhe=Lc(),EPi=xPi((gB(),Sc(mB)));function CPi(n,{path:e,content:s}){let c=Vhe.path.dirname(e);Vhe.FileSystem.existsSync(n,c)||n.mkdirSync(c,{recursive:!0}),n.writeFileSync(e,s,{encoding:"utf-8"})}t(CPi,"writeFileWithParentDirs");function wPi(n,e){Vhe.FileSystem.existsSync(e,n)||e.mkdirSync(n,{recursive:!0})}t(wPi,"createDirIfNotExists");function $Pi(){return Vhe.path.join(EPi.tmpdir(),".now/metadata",(0,Vhe.GUID)())}t($Pi,"defaultDownloadDir");function APi(n,e,s){let c=Vhe.FileSystem.createWriteStream(n,e);return s.pipeTo(new WritableStream({write:t(d=>new Promise((_,m)=>{c.write(d,b=>{b?m(b):_()})}),"write"),close:t(()=>new Promise((d,_)=>{c.end(m=>{m?_(m):d()})}),"close"),abort:t(d=>new Promise((_,m)=>{c.end(b=>{m(d??b)})}),"abort")}))}t(APi,"writeFileStream")});var BMn=st(QDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QDt,"__esModule",{value:!0});QDt.traverseDirectory=FMn;var OMn=Lc();function FMn(n,e,s){if(!OMn.FileSystem.existsSync(n,e))return;let c=n.readdirSync(e,{withFileTypes:!0}),{extensions:d,ignore_extensions:_,visitor:m}=s||{};for(let b of c){let E=OMn.path.resolve(e,b.name);b.isDirectory()?FMn(n,E,s):_&&_.find(C=>E.toLocaleLowerCase().endsWith(C.toLocaleLowerCase()))||(!d||d.length===0||d.some(C=>E.toLocaleLowerCase().endsWith(C.toLocaleLowerCase())))&&m(E)}}t(FMn,"traverseDirectory")});var VMn=st(ZDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZDt,"__esModule",{value:!0});ZDt.getOutput=TPi;async function TPi(n,e){let s=new Set,c=[];for(let d of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let _ of e.plugins.toArray()){let m=await _.recordsToFiles({...d,database:n,context:e,handledGuids:s});m.success&&c.push(...m.value)}return c.map(d=>({source:d.source,path:e.project.resolvePath(e.config.appOutputDir,d.ifDirectoryPackage??"",d.category,d.name),content:d.content}))}t(TPi,"getOutput")});var UMn=st(S$e=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(S$e,"__esModule",{value:!0});S$e.createPackageJson=IPi;S$e.getPackageJsonFilePath=DPi;S$e.validatePackageName=RPi;var IWe=Lc();function IPi({rootDir:n,compiler:e,fileSystem:s}){let c=IWe.path.join(n,"package.json"),d=e.getSourceFile(c);if(!d&&!IWe.FileSystem.existsSync(s,c))return{name:"my-fluent-app",version:"0.0.1"};let _=d?d.getFullText():s.readFileSync(c,{encoding:"utf-8"});return IWe.JSON5.parse(_)}t(IPi,"createPackageJson");function DPi(n){return IWe.path.join(n,"package.json")}t(DPi,"getPackageJsonFilePath");function RPi(n){if(n===null)throw new Error("name cannot be null");if(n===void 0)throw new Error("name cannot be undefined");if(!n.length)throw new Error("name length must be greater than zero");if(n.match(/^\./))throw new Error("name cannot start with a period");if(n.match(/^_/))throw new Error("name cannot start with an underscore");if(n.trim()!==n)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(n)!==n){let e=/^(?:@([^/]+?)[/])?([^/]+?)$/,s=n.match(e);if(s){let c=s[1],d=s[2];if(encodeURIComponent(c)===c&&encodeURIComponent(d)===d)return}throw new Error("name can only contain URL-friendly characters")}}t(RPi,"validatePackageName")});var DWe=st(x$e=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(x$e,"__esModule",{value:!0});x$e.isWebWorker=void 0;x$e.hasModuleLoader=NPi;x$e.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function NPi(){return EL?.IDE_MODULE_LOADER}t(NPi,"hasModuleLoader")});var eRt=st(RWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(RWe,"__esModule",{value:!0});RWe.createSandboxedRegisterExplicitId=void 0;var PPi="sys_ux_theme_asset",LPi=t(n=>t((s,c)=>{if(s!==PPi)throw new Error(`registerExplicitId is not supported for the "${s}" table.`);return n.registerExplicitId(s,c)},"registerExplicitId"),"createSandboxedRegisterExplicitId");RWe.createSandboxedRegisterExplicitId=LPi});var tRt=st(NWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(NWe,"__esModule",{value:!0});NWe.projectHasScript=MPi;NWe.runScriptInProject=OPi;var E$e=Lc(),jMn=DWe(),kPi=eRt();function MPi(n,e){let s=n.getFileSystem(),d=n.getConfig().scripts?.[e];if(d){let m=n.resolvePath(d);if(E$e.FileSystem.existsSync(s,m))return!0}let _=n.resolvePath(`now.${e}.mjs`);return!!E$e.FileSystem.existsSync(s,_)}t(MPi,"projectHasScript");async function OPi({scriptName:n,project:e,credential:s,throwIfNotFound:c=!1}){let d=e.getRootDir(),_=e.getFileSystem(),m=e.getConfig(),b=e.getLogger(),E=(0,kPi.createSandboxedRegisterExplicitId)(e),C=null,A=m.scripts?.[n];if(A){let F=e.resolvePath(A);if(!E$e.FileSystem.existsSync(_,F)){if(c)throw Error(`Script "${n}" defined in config at "${A}" not found at ${F}.`);return}C=F}else{let F=e.resolvePath(`now.${n}.mjs`);if(E$e.FileSystem.existsSync(_,F))C=F;else{if(c)throw Error(`No script defined for "${n}". Please add it to scripts in now.config.json or create now.${n}.mjs.`);return}}b.info(`Running script "${n}" from ${C}`);let D=null;jMn.isWebWorker&&(0,jMn.hasModuleLoader)()?D=await EL(C):D=await import(t(W=>`file://${W}`,"webpackWillIgnoreThisIhateYouWebpack")(C));let N=Array.isArray(D.default)?D.default:[D.default];for(let F of N)typeof F=="function"?await F({rootDir:d,config:m,fs:_,path:E$e.path,logger:b,registerExplicitId:E,credential:s}):b.warn(`Skipping non-function task in script "${n}": ${F?.toString()} . Please export a function or an array of functions.`);b.info(`Script "${n}" completed successfully`)}t(OPi,"runScriptInProject")});var zMn=st(WMn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(WMn,"__esModule",{value:!0})});var Gme={};CL(Gme,{RollupFsAdapter:()=>Cme,commonjs:()=>M4n,createUpdateSrcPath:()=>oBn,cssUrl:()=>dBn,define:()=>RUi,glob:()=>aBi,header:()=>FPt,inputOptions:()=>WUi,json:()=>Y4n,minify:()=>B4n,nodeResolve:()=>eLt,outputOptions:()=>pBn,polyfill:()=>a8i,replace:()=>V4n,resolver:()=>D8n,rollup:()=>UUi,rollupPluginSbom:()=>iBi,sass:()=>w5n,seismic:()=>R8n,servicenowFrontEndPlugins:()=>MUi,sourcemapUrl:()=>sBn,swc:()=>F4n,uiPage:()=>K5n,uiPageSourceManifest:()=>vUi,url:()=>Y5n,watch:()=>jUi,webFsLoader:()=>aBn});function FPi(n,e){return e.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(c){if(c!=="default"&&!(c in n)){var d=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:t(function(){return s[c]},"get")})}})}),Object.freeze(n)}function kL(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function tqe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var s=t(function c(){return this instanceof c?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a");s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(n).forEach(function(c){var d=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(s,c,d.get?d:{enumerable:!0,get:t(function(){return n[c]},"get")})}),s}function T3n(){throw new Error("setTimeout has not been defined")}function I3n(){throw new Error("clearTimeout has not been defined")}function D3n(n){if(fee===setTimeout)return setTimeout(n,0);if((fee===T3n||!fee)&&setTimeout)return fee=setTimeout,setTimeout(n,0);try{return fee(n,0)}catch{try{return fee.call(null,n,0)}catch{return fee.call(this,n,0)}}}function BPi(n){if(_ee===clearTimeout)return clearTimeout(n);if((_ee===I3n||!_ee)&&clearTimeout)return _ee=clearTimeout,clearTimeout(n);try{return _ee(n)}catch{try{return _ee.call(null,n)}catch{return _ee.call(this,n)}}}function VPi(){!ome||!qse||(ome=!1,qse.length?YK=qse.concat(YK):JWe=-1,YK.length&&R3n())}function R3n(){if(!ome){var n=D3n(VPi);ome=!0;for(var e=YK.length;e;){for(qse=YK,YK=[];++JWe<e;)qse&&qse[JWe].run();JWe=-1,e=YK.length}qse=null,ome=!1,BPi(n)}}function UPi(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];YK.push(new N3n(n,e)),YK.length===1&&!ome&&D3n(R3n)}function N3n(n,e){this.fun=n,this.array=e}function soe(){}function iLi(n){throw new Error("process.binding is not supported")}function aLi(){return"/"}function sLi(n){throw new Error("process.chdir is not supported")}function oLi(){return 0}function cLi(n){var e=lLi.call(Xhe)*.001,s=Math.floor(e),c=Math.floor(e%1*1e9);return n&&(s=s-n[0],c=c-n[1],c<0&&(s--,c+=1e9)),[s,c]}function pLi(){var n=new Date,e=n-uLi;return e/1e3}function dLi(){if(GMn)return nRt;GMn=1;function n(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}t(n,"assertPath");function e(d,_){for(var m="",b=0,E=-1,C=0,A,D=0;D<=d.length;++D){if(D<d.length)A=d.charCodeAt(D);else{if(A===47)break;A=47}if(A===47){if(!(E===D-1||C===1))if(E!==D-1&&C===2){if(m.length<2||b!==2||m.charCodeAt(m.length-1)!==46||m.charCodeAt(m.length-2)!==46){if(m.length>2){var N=m.lastIndexOf("/");if(N!==m.length-1){N===-1?(m="",b=0):(m=m.slice(0,N),b=m.length-1-m.lastIndexOf("/")),E=D,C=0;continue}}else if(m.length===2||m.length===1){m="",b=0,E=D,C=0;continue}}_&&(m.length>0?m+="/..":m="..",b=2)}else m.length>0?m+="/"+d.slice(E+1,D):m=d.slice(E+1,D),b=D-E-1;E=D,C=0}else A===46&&C!==-1?++C:C=-1}return m}t(e,"normalizeStringPosix");function s(d,_){var m=_.dir||_.root,b=_.base||(_.name||"")+(_.ext||"");return m?m===_.root?m+b:m+d+b:b}t(s,"_format");var c={resolve:t(function(){for(var _="",m=!1,b,E=arguments.length-1;E>=-1&&!m;E--){var C;E>=0?C=arguments[E]:(b===void 0&&(b=A_.cwd()),C=b),n(C),C.length!==0&&(_=C+"/"+_,m=C.charCodeAt(0)===47)}return _=e(_,!m),m?_.length>0?"/"+_:"/":_.length>0?_:"."},"resolve"),normalize:t(function(_){if(n(_),_.length===0)return".";var m=_.charCodeAt(0)===47,b=_.charCodeAt(_.length-1)===47;return _=e(_,!m),_.length===0&&!m&&(_="."),_.length>0&&b&&(_+="/"),m?"/"+_:_},"normalize"),isAbsolute:t(function(_){return n(_),_.length>0&&_.charCodeAt(0)===47},"isAbsolute"),join:t(function(){if(arguments.length===0)return".";for(var _,m=0;m<arguments.length;++m){var b=arguments[m];n(b),b.length>0&&(_===void 0?_=b:_+="/"+b)}return _===void 0?".":c.normalize(_)},"join"),relative:t(function(_,m){if(n(_),n(m),_===m||(_=c.resolve(_),m=c.resolve(m),_===m))return"";for(var b=1;b<_.length&&_.charCodeAt(b)===47;++b);for(var E=_.length,C=E-b,A=1;A<m.length&&m.charCodeAt(A)===47;++A);for(var D=m.length,N=D-A,F=C<N?C:N,W=-1,G=0;G<=F;++G){if(G===F){if(N>F){if(m.charCodeAt(A+G)===47)return m.slice(A+G+1);if(G===0)return m.slice(A+G)}else C>F&&(_.charCodeAt(b+G)===47?W=G:G===0&&(W=0));break}var j=_.charCodeAt(b+G),K=m.charCodeAt(A+G);if(j!==K)break;j===47&&(W=G)}var ee="";for(G=b+W+1;G<=E;++G)(G===E||_.charCodeAt(G)===47)&&(ee.length===0?ee+="..":ee+="/..");return ee.length>0?ee+m.slice(A+W):(A+=W,m.charCodeAt(A)===47&&++A,m.slice(A))},"relative"),_makeLong:t(function(_){return _},"_makeLong"),dirname:t(function(_){if(n(_),_.length===0)return".";for(var m=_.charCodeAt(0),b=m===47,E=-1,C=!0,A=_.length-1;A>=1;--A)if(m=_.charCodeAt(A),m===47){if(!C){E=A;break}}else C=!1;return E===-1?b?"/":".":b&&E===1?"//":_.slice(0,E)},"dirname"),basename:t(function(_,m){if(m!==void 0&&typeof m!="string")throw new TypeError('"ext" argument must be a string');n(_);var b=0,E=-1,C=!0,A;if(m!==void 0&&m.length>0&&m.length<=_.length){if(m.length===_.length&&m===_)return"";var D=m.length-1,N=-1;for(A=_.length-1;A>=0;--A){var F=_.charCodeAt(A);if(F===47){if(!C){b=A+1;break}}else N===-1&&(C=!1,N=A+1),D>=0&&(F===m.charCodeAt(D)?--D===-1&&(E=A):(D=-1,E=N))}return b===E?E=N:E===-1&&(E=_.length),_.slice(b,E)}else{for(A=_.length-1;A>=0;--A)if(_.charCodeAt(A)===47){if(!C){b=A+1;break}}else E===-1&&(C=!1,E=A+1);return E===-1?"":_.slice(b,E)}},"basename"),extname:t(function(_){n(_);for(var m=-1,b=0,E=-1,C=!0,A=0,D=_.length-1;D>=0;--D){var N=_.charCodeAt(D);if(N===47){if(!C){b=D+1;break}continue}E===-1&&(C=!1,E=D+1),N===46?m===-1?m=D:A!==1&&(A=1):m!==-1&&(A=-1)}return m===-1||E===-1||A===0||A===1&&m===E-1&&m===b+1?"":_.slice(m,E)},"extname"),format:t(function(_){if(_===null||typeof _!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof _);return s("/",_)},"format"),parse:t(function(_){n(_);var m={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return m;var b=_.charCodeAt(0),E=b===47,C;E?(m.root="/",C=1):C=0;for(var A=-1,D=0,N=-1,F=!0,W=_.length-1,G=0;W>=C;--W){if(b=_.charCodeAt(W),b===47){if(!F){D=W+1;break}continue}N===-1&&(F=!1,N=W+1),b===46?A===-1?A=W:G!==1&&(G=1):A!==-1&&(G=-1)}return A===-1||N===-1||G===0||G===1&&A===N-1&&A===D+1?N!==-1&&(D===0&&E?m.base=m.name=_.slice(1,N):m.base=m.name=_.slice(D,N)):(D===0&&E?(m.name=_.slice(1,A),m.base=_.slice(1,N)):(m.name=_.slice(D,A),m.base=_.slice(D,N)),m.ext=_.slice(A,N)),D>0?m.dir=_.slice(0,D-1):E&&(m.dir="/"),m},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return c.posix=c,nRt=c,nRt}function Fz(){if(qMn)return rRt;qMn=1;function n(){return typeof window<"u"&&typeof window.document<"u"||typeof self<"u"&&typeof self.importScripts=="function"}t(n,"isBrowserOrWorkerEnvironment");function e(){if(n()){let s=dLi();return s.win32={sep:"\\"},s}return Fz()}return t(e,"getPathModule"),rRt=e(),rRt}function gLi(n){return!!n&&typeof n=="object"}function yLi(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||SLi(n)}function SLi(n){return n.$$typeof===bLi}function xLi(n){return Array.isArray(n)?[]:{}}function rAe(n,e){return e.clone!==!1&&e.isMergeableObject(n)?dme(xLi(n),n,e):n}function ELi(n,e,s){return n.concat(e).map(function(c){return rAe(c,s)})}function CLi(n,e){if(!e.customMerge)return dme;var s=e.customMerge(n);return typeof s=="function"?s:dme}function wLi(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function KMn(n){return Object.keys(n).concat(wLi(n))}function P3n(n,e){try{return e in n}catch{return!1}}function $Li(n,e){return P3n(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function ALi(n,e,s){var c={};return s.isMergeableObject(n)&&KMn(n).forEach(function(d){c[d]=rAe(n[d],s)}),KMn(e).forEach(function(d){$Li(n,d)||(P3n(n,d)&&s.isMergeableObject(e[d])?c[d]=CLi(d,s)(n[d],e[d],s):c[d]=rAe(e[d],s))}),c}function dme(n,e,s){s=s||{},s.arrayMerge=s.arrayMerge||ELi,s.isMergeableObject=s.isMergeableObject||mLi,s.cloneUnlessOtherwiseSpecified=rAe;var c=Array.isArray(e),d=Array.isArray(n),_=c===d;return _?c?s.arrayMerge(n,e,s):ALi(n,e,s):rAe(e,s)}function kLi(n){let e=[];if(n.customResolveOptions){let{customResolveOptions:s}=n;if(s.moduleDirectory&&(n.moduleDirectories=Array.isArray(s.moduleDirectory)?s.moduleDirectory:[s.moduleDirectory],e.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.")),s.preserveSymlinks)throw new Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach(c=>{if(s[c])throw new Error(`node-resolve: \`customResolveOptions.${c}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:e}}function L3n(){if(typeof PWe>"u"){var n=new ArrayBuffer(2),e=new Uint8Array(n),s=new Uint16Array(n);if(e[0]=1,e[1]=2,s[0]===258)PWe="BE";else if(s[0]===513)PWe="LE";else throw new Error("unable to figure out endianess")}return PWe}function k3n(){return typeof m8.location<"u"?m8.location.hostname:""}function M3n(){return[]}function O3n(){return 0}function F3n(){return Number.MAX_VALUE}function B3n(){return Number.MAX_VALUE}function V3n(){return[]}function U3n(){return"Browser"}function j3n(){return typeof m8.navigator<"u"?m8.navigator.appVersion:""}function W3n(){return{}}function z3n(){return{}}function G3n(){return"javascript"}function q3n(){return"browser"}function jPt(){return"/tmp"}function J3n(){return"$HOME"}function WLi(){if(JMn)return Uhe.exports;JMn=1;var n=A_.platform==="win32",e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,s={};function c(b){return e.exec(b).slice(1)}t(c,"win32SplitPath"),s.parse=function(b){if(typeof b!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b);var E=c(b);if(!E||E.length!==5)throw new TypeError("Invalid path '"+b+"'");return{root:E[1],dir:E[0]===E[1]?E[0]:E[0].slice(0,-1),base:E[2],ext:E[4],name:E[3]}};var d=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,_={};function m(b){return d.exec(b).slice(1)}return t(m,"posixSplitPath"),_.parse=function(b){if(typeof b!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b);var E=m(b);if(!E||E.length!==5)throw new TypeError("Invalid path '"+b+"'");return{root:E[1],dir:E[0].slice(0,-1),base:E[2],ext:E[4],name:E[3]}},n?Uhe.exports=s.parse:Uhe.exports=_.parse,Uhe.exports.posix=_.parse,Uhe.exports.win32=s.parse,Uhe.exports}function mMi(n,e){for(var s=n.split("."),c=e.split(" "),d=c.length>1?c[0]:"=",_=(c.length>1?c[1]:c[0]).split("."),m=0;m<3;++m){var b=parseInt(s[m]||0,10),E=parseInt(_[m]||0,10);if(b!==E)return d==="<"?b<E:d===">="?b>=E:!1}return d===">="}function ZMn(n,e){var s=e.split(/ ?&& ?/);if(s.length===0)return!1;for(var c=0;c<s.length;++c)if(!mMi(n,s[c]))return!1;return!0}function gMi(n,e){if(typeof e=="boolean")return e;var s=typeof n>"u"?A_.versions&&"18.16.1":n;if(typeof s!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var c=0;c<e.length;++c)if(ZMn(s,e[c]))return!0;return!1}return ZMn(s,e)}async function jRt(n,e){return await Nze(n,e)?e.realpath(n):n}function WPt(n,{enter:e,leave:s}){return new zRt(e,s).visit(n,null)}function pOi(n){return Array.isArray(n)}function lOn(n){return pOi(n)?n:n==null?[]:[n]}function dOi(n,e){if(e===!1||tf.isAbsolute(n)||n.startsWith("*"))return XWe(n);let s=XWe(tf.resolve(e||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return tf.posix.join(s,XWe(n))}function s6n(n){if(n.startsWith(".")||n.startsWith("/"))return null;let e=n.split("/");return e[0][0]==="@"?`${e[0]}/${e[1]}`:e[0]}function hOi(n){let e;if(n.mainFields?{mainFields:e}=n:e=["module","main"],n.browser&&e.indexOf("browser")===-1)return["browser"].concat(e);if(!e.length)throw new Error("Please ensure at least one `mainFields` value is specified");return e}function o6n(n){let{cache:e,extensions:s,pkg:c,mainFields:d,preserveSymlinks:_,useBrowserOverrides:m,rootDir:b,ignoreSideEffectsForRoot:E,fs:C}=n,{pkgPath:A}=n;if(e.has(A))return e.get(A);_||(A=C.realpathSync(A));let D=tf.dirname(A),N={packageJson:{...c},packageJsonPath:A,root:D,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},F=!1;for(let j=0;j<d.length;j++){let K=d[j];if(typeof c[K]=="string"){c.main=c[K],N.resolvedMainField=K,F=!0;break}}let W={cachedPkg:c,hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:F!==!1||d.indexOf("main")!==-1,packageBrowserField:m&&typeof c.browser=="object"&&Object.keys(c.browser).reduce((j,K)=>{let ee=c.browser[K];if(ee&&ee[0]==="."&&(ee=tf.resolve(D,ee)),j[K]=ee,K[0]==="."){let re=tf.resolve(D,K);j[re]=ee,tf.extname(K)||s.reduce((ie,_e)=>(ie[re+_e]=ie[K],ie),j)}return j},{}),packageInfo:N},G=W.packageBrowserField;if(m&&typeof c.browser=="object"&&G.hasOwnProperty(c.main)?(N.resolvedEntryPoint=G[c.main],N.browserMappedMain=!0):(N.resolvedEntryPoint=tf.resolve(D,c.main||"index.js"),N.browserMappedMain=!1),!E||b!==D){let j=c.sideEffects;if(typeof j=="boolean")W.hasModuleSideEffects=()=>j;else if(Array.isArray(j)){let K=j.map(ee=>ee.includes("/")?ee:`**/${ee}`);W.hasModuleSideEffects=sJ(K,null,{resolve:D})}}return e.set(A,W),W}function mOi(n){return Array.isArray(n)?n:typeof n=="object"?Object.values(n):[n]}function l6n(){KPt=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,s=n.length;e<s;++e)wz[e]=n[e],JB[n.charCodeAt(e)]=e;JB[45]=62,JB[95]=63}function yOi(n){KPt||l6n();var e,s,c,d,_,m,b=n.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");_=n[b-2]==="="?2:n[b-1]==="="?1:0,m=new gOi(b*3/4-_),c=_>0?b-4:b;var E=0;for(e=0,s=0;e<c;e+=4,s+=3)d=JB[n.charCodeAt(e)]<<18|JB[n.charCodeAt(e+1)]<<12|JB[n.charCodeAt(e+2)]<<6|JB[n.charCodeAt(e+3)],m[E++]=d>>16&255,m[E++]=d>>8&255,m[E++]=d&255;return _===2?(d=JB[n.charCodeAt(e)]<<2|JB[n.charCodeAt(e+1)]>>4,m[E++]=d&255):_===1&&(d=JB[n.charCodeAt(e)]<<10|JB[n.charCodeAt(e+1)]<<4|JB[n.charCodeAt(e+2)]>>2,m[E++]=d>>8&255,m[E++]=d&255),m}function vOi(n){return wz[n>>18&63]+wz[n>>12&63]+wz[n>>6&63]+wz[n&63]}function bOi(n,e,s){for(var c,d=[],_=e;_<s;_+=3)c=(n[_]<<16)+(n[_+1]<<8)+n[_+2],d.push(vOi(c));return d.join("")}function cOn(n){KPt||l6n();for(var e,s=n.length,c=s%3,d="",_=[],m=16383,b=0,E=s-c;b<E;b+=m)_.push(bOi(n,b,b+m>E?E:b+m));return c===1?(e=n[s-1],d+=wz[e>>2],d+=wz[e<<4&63],d+="=="):c===2&&(e=(n[s-2]<<8)+n[s-1],d+=wz[e>>10],d+=wz[e>>4&63],d+=wz[e<<2&63],d+="="),_.push(d),_.join("")}function aqe(n,e,s,c,d){var _,m,b=d*8-c-1,E=(1<<b)-1,C=E>>1,A=-7,D=s?d-1:0,N=s?-1:1,F=n[e+D];for(D+=N,_=F&(1<<-A)-1,F>>=-A,A+=b;A>0;_=_*256+n[e+D],D+=N,A-=8);for(m=_&(1<<-A)-1,_>>=-A,A+=c;A>0;m=m*256+n[e+D],D+=N,A-=8);if(_===0)_=1-C;else{if(_===E)return m?NaN:(F?-1:1)*(1/0);m=m+Math.pow(2,c),_=_-C}return(F?-1:1)*m*Math.pow(2,_-c)}function c6n(n,e,s,c,d,_){var m,b,E,C=_*8-d-1,A=(1<<C)-1,D=A>>1,N=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=c?0:_-1,W=c?1:-1,G=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(b=isNaN(e)?1:0,m=A):(m=Math.floor(Math.log(e)/Math.LN2),e*(E=Math.pow(2,-m))<1&&(m--,E*=2),m+D>=1?e+=N/E:e+=N*Math.pow(2,1-D),e*E>=2&&(m++,E/=2),m+D>=A?(b=0,m=A):m+D>=1?(b=(e*E-1)*Math.pow(2,d),m=m+D):(b=e*Math.pow(2,D-1)*Math.pow(2,d),m=0));d>=8;n[s+F]=b&255,F+=W,b/=256,d-=8);for(m=m<<d|b,C+=d;C>0;n[s+F]=m&255,F+=W,m/=256,C-=8);n[s+F-W]|=G*128}function Mze(){return bu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function QK(n,e){if(Mze()<e)throw new RangeError("Invalid typed array length");return bu.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e),n.__proto__=bu.prototype):(n===null&&(n=new bu(e)),n.length=e),n}function bu(n,e,s){if(!bu.TYPED_ARRAY_SUPPORT&&!(this instanceof bu))return new bu(n,e,s);if(typeof n=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return JPt(this,n)}return p6n(this,n,e,s)}function p6n(n,e,s,c){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?wOi(n,e,s,c):typeof e=="string"?COi(n,e,s):$Oi(n,e)}function d6n(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function EOi(n,e,s,c){return d6n(e),e<=0?QK(n,e):s!==void 0?typeof c=="string"?QK(n,e).fill(s,c):QK(n,e).fill(s):QK(n,e)}function JPt(n,e){if(d6n(e),n=QK(n,e<0?0:XPt(e)|0),!bu.TYPED_ARRAY_SUPPORT)for(var s=0;s<e;++s)n[s]=0;return n}function COi(n,e,s){if((typeof s!="string"||s==="")&&(s="utf8"),!bu.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');var c=f6n(e,s)|0;n=QK(n,c);var d=n.write(e,s);return d!==c&&(n=n.slice(0,d)),n}function qRt(n,e){var s=e.length<0?0:XPt(e.length)|0;n=QK(n,s);for(var c=0;c<s;c+=1)n[c]=e[c]&255;return n}function wOi(n,e,s,c){if(e.byteLength,s<0||e.byteLength<s)throw new RangeError("'offset' is out of bounds");if(e.byteLength<s+(c||0))throw new RangeError("'length' is out of bounds");return s===void 0&&c===void 0?e=new Uint8Array(e):c===void 0?e=new Uint8Array(e,s):e=new Uint8Array(e,s,c),bu.TYPED_ARRAY_SUPPORT?(n=e,n.__proto__=bu.prototype):n=qRt(n,e),n}function $Oi(n,e){if(Lz(e)){var s=XPt(e.length)|0;return n=QK(n,s),n.length===0||e.copy(n,0,0,s),n}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||GOi(e.length)?QK(n,0):qRt(n,e);if(e.type==="Buffer"&&u6n(e.data))return qRt(n,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function XPt(n){if(n>=Mze())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Mze().toString(16)+" bytes");return n|0}function Lz(n){return!!(n!=null&&n._isBuffer)}function f6n(n,e){if(Lz(n))return n.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var s=n.length;if(s===0)return 0;for(var c=!1;;)switch(e){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return Oze(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return b6n(n).length;default:if(c)return Oze(n).length;e=(""+e).toLowerCase(),c=!0}}function AOi(n,e,s){var c=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,e>>>=0,s<=e))return"";for(n||(n="utf8");;)switch(n){case"hex":return OOi(this,e,s);case"utf8":case"utf-8":return m6n(this,e,s);case"ascii":return kOi(this,e,s);case"latin1":case"binary":return MOi(this,e,s);case"base64":return POi(this,e,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return FOi(this,e,s);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),c=!0}}function Kse(n,e,s){var c=n[e];n[e]=n[s],n[s]=c}function _6n(n,e,s,c,d){if(n.length===0)return-1;if(typeof s=="string"?(c=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=d?0:n.length-1),s<0&&(s=n.length+s),s>=n.length){if(d)return-1;s=n.length-1}else if(s<0)if(d)s=0;else return-1;if(typeof e=="string"&&(e=bu.from(e,c)),Lz(e))return e.length===0?-1:uOn(n,e,s,c,d);if(typeof e=="number")return e=e&255,bu.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?d?Uint8Array.prototype.indexOf.call(n,e,s):Uint8Array.prototype.lastIndexOf.call(n,e,s):uOn(n,[e],s,c,d);throw new TypeError("val must be string, number or Buffer")}function uOn(n,e,s,c,d){var _=1,m=n.length,b=e.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(n.length<2||e.length<2)return-1;_=2,m/=2,b/=2,s/=2}function E(F,W){return _===1?F[W]:F.readUInt16BE(W*_)}t(E,"read");var C;if(d){var A=-1;for(C=s;C<m;C++)if(E(n,C)===E(e,A===-1?0:C-A)){if(A===-1&&(A=C),C-A+1===b)return A*_}else A!==-1&&(C-=C-A),A=-1}else for(s+b>m&&(s=m-b),C=s;C>=0;C--){for(var D=!0,N=0;N<b;N++)if(E(n,C+N)!==E(e,N)){D=!1;break}if(D)return C}return-1}function TOi(n,e,s,c){s=Number(s)||0;var d=n.length-s;c?(c=Number(c),c>d&&(c=d)):c=d;var _=e.length;if(_%2!==0)throw new TypeError("Invalid hex string");c>_/2&&(c=_/2);for(var m=0;m<c;++m){var b=parseInt(e.substr(m*2,2),16);if(isNaN(b))return m;n[s+m]=b}return m}function IOi(n,e,s,c){return lqe(Oze(e,n.length-s),n,s,c)}function h6n(n,e,s,c){return lqe(WOi(e),n,s,c)}function DOi(n,e,s,c){return h6n(n,e,s,c)}function ROi(n,e,s,c){return lqe(b6n(e),n,s,c)}function NOi(n,e,s,c){return lqe(zOi(e,n.length-s),n,s,c)}function POi(n,e,s){return e===0&&s===n.length?cOn(n):cOn(n.slice(e,s))}function m6n(n,e,s){s=Math.min(n.length,s);for(var c=[],d=e;d<s;){var _=n[d],m=null,b=_>239?4:_>223?3:_>191?2:1;if(d+b<=s){var E,C,A,D;switch(b){case 1:_<128&&(m=_);break;case 2:E=n[d+1],(E&192)===128&&(D=(_&31)<<6|E&63,D>127&&(m=D));break;case 3:E=n[d+1],C=n[d+2],(E&192)===128&&(C&192)===128&&(D=(_&15)<<12|(E&63)<<6|C&63,D>2047&&(D<55296||D>57343)&&(m=D));break;case 4:E=n[d+1],C=n[d+2],A=n[d+3],(E&192)===128&&(C&192)===128&&(A&192)===128&&(D=(_&15)<<18|(E&63)<<12|(C&63)<<6|A&63,D>65535&&D<1114112&&(m=D))}}m===null?(m=65533,b=1):m>65535&&(m-=65536,c.push(m>>>10&1023|55296),m=56320|m&1023),c.push(m),d+=b}return LOi(c)}function LOi(n){var e=n.length;if(e<=pOn)return String.fromCharCode.apply(String,n);for(var s="",c=0;c<e;)s+=String.fromCharCode.apply(String,n.slice(c,c+=pOn));return s}function kOi(n,e,s){var c="";s=Math.min(n.length,s);for(var d=e;d<s;++d)c+=String.fromCharCode(n[d]&127);return c}function MOi(n,e,s){var c="";s=Math.min(n.length,s);for(var d=e;d<s;++d)c+=String.fromCharCode(n[d]);return c}function OOi(n,e,s){var c=n.length;(!e||e<0)&&(e=0),(!s||s<0||s>c)&&(s=c);for(var d="",_=e;_<s;++_)d+=jOi(n[_]);return d}function FOi(n,e,s){for(var c=n.slice(e,s),d="",_=0;_<c.length;_+=2)d+=String.fromCharCode(c[_]+c[_+1]*256);return d}function mP(n,e,s){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+e>s)throw new RangeError("Trying to access beyond buffer length")}function O3(n,e,s,c,d,_){if(!Lz(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>d||e<_)throw new RangeError('"value" argument is out of bounds');if(s+c>n.length)throw new RangeError("Index out of range")}function sqe(n,e,s,c){e<0&&(e=65535+e+1);for(var d=0,_=Math.min(n.length-s,2);d<_;++d)n[s+d]=(e&255<<8*(c?d:1-d))>>>(c?d:1-d)*8}function oqe(n,e,s,c){e<0&&(e=4294967295+e+1);for(var d=0,_=Math.min(n.length-s,4);d<_;++d)n[s+d]=e>>>(c?d:3-d)*8&255}function g6n(n,e,s,c,d,_){if(s+c>n.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function y6n(n,e,s,c,d){return d||g6n(n,e,s,4),c6n(n,e,s,c,23,4),s+4}function v6n(n,e,s,c,d){return d||g6n(n,e,s,8),c6n(n,e,s,c,52,8),s+8}function VOi(n){if(n=UOi(n).replace(BOi,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function UOi(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function jOi(n){return n<16?"0"+n.toString(16):n.toString(16)}function Oze(n,e){e=e||1/0;for(var s,c=n.length,d=null,_=[],m=0;m<c;++m){if(s=n.charCodeAt(m),s>55295&&s<57344){if(!d){if(s>56319){(e-=3)>-1&&_.push(239,191,189);continue}else if(m+1===c){(e-=3)>-1&&_.push(239,191,189);continue}d=s;continue}if(s<56320){(e-=3)>-1&&_.push(239,191,189),d=s;continue}s=(d-55296<<10|s-56320)+65536}else d&&(e-=3)>-1&&_.push(239,191,189);if(d=null,s<128){if((e-=1)<0)break;_.push(s)}else if(s<2048){if((e-=2)<0)break;_.push(s>>6|192,s&63|128)}else if(s<65536){if((e-=3)<0)break;_.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((e-=4)<0)break;_.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return _}function WOi(n){for(var e=[],s=0;s<n.length;++s)e.push(n.charCodeAt(s)&255);return e}function zOi(n,e){for(var s,c,d,_=[],m=0;m<n.length&&!((e-=2)<0);++m)s=n.charCodeAt(m),c=s>>8,d=s%256,_.push(d),_.push(c);return _}function b6n(n){return yOi(VOi(n))}function lqe(n,e,s,c){for(var d=0;d<c&&!(d+s>=e.length||d>=n.length);++d)e[d+s]=n[d];return d}function GOi(n){return n!==n}function qOi(n){return n!=null&&(!!n._isBuffer||S6n(n)||HOi(n))}function S6n(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function HOi(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&S6n(n.slice(0,0))}function LWe(n){return n===null}function JOi(n){return n==null}function YPt(n){return typeof n=="string"}function x6n(n){return typeof n=="object"&&n!==null}function cqe(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(Ose&&n[Ose]){var e=n[Ose];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,Ose,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var s,c,d=new Promise(function(b,E){s=b,c=E}),_=[],m=0;m<arguments.length;m++)_.push(arguments[m]);_.push(function(b,E){b?c(b):s(E)});try{n.apply(this,_)}catch(b){c(b)}return d}return t(e,"fn"),Object.setPrototypeOf(e,Object.getPrototypeOf(n)),Ose&&Object.defineProperty(e,Ose,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,KOi(n))}function XOi(n,e){return e.some(s=>n.endsWith(s))}async function E6n(n,e,s){let{root:c}=Fg.parse(n),d=n;for(;d!==c&&!XOi(d,e);){let _=Fg.join(d,"package.json");if(await Nze(_,s)){let m=await s.readFile(_,"utf8");return{pkgJson:JSON.parse(m),pkgPath:d,pkgJsonPath:_}}d=Fg.resolve(d,"..")}return null}function YOi(n){try{return!!new URL(n)}catch{return!1}}function C6n(n){return typeof n=="object"&&Object.keys(n).every(e=>!e.startsWith("."))}function dOn(n){return typeof n=="object"&&!C6n(n)}function QOi(n){let e=Object.keys(n);return e.some(s=>s.startsWith("."))&&e.some(s=>!s.startsWith("."))}function w6n(n,e){return`Could not resolve import "${n}" in ${e}`}function QPt(n,e,s){let{importSpecifier:c,importer:d,pkgJsonPath:_}=n;return`${w6n(c,d)} using ${s?"imports":"exports"} defined in ${_}.${e?` ${e}`:""}`}function fOn(n,e){let s=["",".","..",...e];return n.some(c=>s.includes(c)||s.includes(decodeURI(c)))}async function iAe(n,{target:e,patternMatch:s,isImports:c,validateImportsExports:d=!0}){if(typeof e=="string"){if(!e.startsWith("./")){if(!c||["/","../"].some(b=>e.startsWith(b))||YOi(e))throw new jse(n,`Invalid mapping: "${e}".`);if(typeof s=="string"){let b=await n.resolveId(e.replace(/\*/g,s),n.pkgURL);return b?b.location:null}let m=await n.resolveId(e,n.pkgURL);return m?m.location:null}n.allowExportsFolderMapping&&(e=e.replace(/\/$/,"/*"));{let m=e.split(/\/|\\/),b=m.indexOf(".");if(b!==-1&&m.slice(b),b!==-1&&b<m.length-1&&fOn(m.slice(b+1),n.moduleDirs))throw new jse(n,`Invalid mapping: "${e}".`)}let _=tf.resolve(n.pkgURL,e);if(!_.startsWith(n.pkgURL))throw new jse(n,`Resolved to ${_} which is outside package ${n.pkgURL}`);if(!s)return _;if(d&&fOn(s.split(/\/|\\/),n.moduleDirs))throw new See(n);return _.replace(/\*/g,s)}if(Array.isArray(e)){if(e.length===0)return null;let _=null;for(let m of e)try{let b=await iAe(n,{target:m,patternMatch:s,isImports:c,validateImportsExports:d});if(b!==void 0)return b}catch(b){if(b instanceof jse)_=b;else throw b}if(_)throw _;return null}if(e&&typeof e=="object"){for(let[_,m]of Object.entries(e))if(_==="default"||n.conditions.includes(_)){let b=await iAe(n,{target:m,patternMatch:s,isImports:c,validateImportsExports:d});if(b!==void 0)return b}return}if(e===null)return null;throw new jse(n,"Invalid exports field.")}function ZOi(n,e){let s=n.includes("*")?n.indexOf("*")+1:n.length,d=(e.includes("*")?e.indexOf("*")+1:e.length)-s;return d!==0?d:n.includes("*")?e.includes("*")?e.length-n.length:-1:1}async function $6n(n,{matchKey:e,matchObj:s,isImports:c,validateImportsExports:d=!0}){if(!e.includes("*")&&e in s){let m=s[e];return await iAe(n,{target:m,patternMatch:"",isImports:c,validateImportsExports:d})}let _=Object.keys(s).filter(m=>m.endsWith("/")||m.includes("*")).sort(ZOi);for(let m of _){let b=m.indexOf("*"),E=b===-1?m:m.substring(0,b);if(e.startsWith(E)&&e!==E){let C=b!==-1?m.substring(b+1):"";if(C.length===0||e.endsWith(C)&&e.length>=m.length){let A=s[m],D=e.substring(E.length,e.length-C.length);return await iAe(n,{target:A,patternMatch:D,isImports:c,validateImportsExports:d})}}}if(d)throw new See(n,c)}async function eFi(n,e,s,c=!0){if(c&&QOi(s))throw new HRt(n,"All keys must either start with ./, or without one.");if(e==="."){let d;if(typeof s=="string"||Array.isArray(s)||C6n(s)?d=s:dOn(s)&&(d=s["."]),d){let _=await iAe(n,{target:d,patternMatch:"",isImports:!1,validateImportsExports:c});if(_)return _}}else if(dOn(s)){let d=await $6n(n,{matchKey:e,matchObj:s,isImports:!1,validateImportsExports:c});if(d)return d}if(c)throw new See(n)}async function tFi({importSpecifier:n,importer:e,moduleDirs:s,conditions:c,resolveId:d,fs:_,validateImportsExports:m=!0}){let b=await E6n(e,s,_);if(!b)throw new Error(`${w6n(n,e)}. Could not find a parent package.json.`);let{pkgPath:E,pkgJsonPath:C,pkgJson:A}=b,D=`/${E}/`,N={importer:e,importSpecifier:n,moduleDirs:s,pkgURL:D,pkgJsonPath:C,conditions:c,resolveId:d};if(m&&!n.startsWith("#"))throw new See(N,!0,"Invalid import specifier.");if(m&&(n==="#"||n.startsWith("#/")))throw new See(N,!0,"Invalid import specifier.");let{imports:F}=A;if(m&&!F)throw new See(N,!0);return $6n(N,{matchKey:n,matchObj:F,isImports:!0,validateImportsExports:m})}async function lFi(n,e,s,c,d){if(n){let _=await E6n(n,c,d);if(_&&_.pkgJson.name===e)return _}try{let _=await T6n(`${e}/package.json`,s),m=JSON.parse(await d.readFile(_,"utf8"));return{pkgJsonPath:_,pkgJson:m,pkgPath:tf.dirname(_)}}catch{return null}}async function I6n({importSpecifier:n,packageInfoCache:e,extensions:s,mainFields:c,preserveSymlinks:d,useBrowserOverrides:_,baseDir:m,moduleDirectories:b,modulePaths:E,rootDir:C,ignoreSideEffectsForRoot:A,fs:D}){let N=t(()=>null,"hasModuleSideEffects"),F=!0,W=!1,G,j=t((re,ie)=>{let _e=o6n({cache:e,extensions:s,pkg:re,pkgPath:ie,mainFields:c,preserveSymlinks:d,useBrowserOverrides:_,rootDir:C,ignoreSideEffectsForRoot:A,fs:D});return{packageInfo:G,hasModuleSideEffects:N,hasPackageEntry:F,packageBrowserField:W}=_e,_e.cachedPkg},"filter"),K={...ZPt(D),basedir:await D.realpath(m),extensions:s,includeCoreModules:!1,moduleDirectory:b,paths:E,preserveSymlinks:d,packageFilter:j},ee;try{ee=await T6n(n,K)}catch(re){if(re.code!=="MODULE_NOT_FOUND")throw re;return null}return{location:d?ee:await jRt(ee,D),hasModuleSideEffects:N,hasPackageEntry:F,packageBrowserField:W,packageInfo:G}}async function cFi({importer:n,importSpecifier:e,exportConditions:s,packageInfoCache:c,extensions:d,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,baseDir:E,moduleDirectories:C,modulePaths:A,rootDir:D,ignoreSideEffectsForRoot:N,allowExportsFolderMapping:F,fs:W,validateImportsExports:G}){if(e.startsWith("#")){let ee=await tFi({importSpecifier:e,importer:n,moduleDirs:C,conditions:s,validateImportsExports:G,fs:W,resolveId(re){return I6n({importSpecifier:re,packageInfoCache:c,extensions:d,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,baseDir:E,moduleDirectories:C,modulePaths:A,fs:W})}});return{location:ee,location:m?ee:await jRt(ee,W),hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let j=s6n(e);if(j){let K=t(()=>null,"hasModuleSideEffects"),ee=!0,re=!1,ie,_e=t((Ce,We)=>{let Ge=o6n({cache:c,extensions:d,pkg:Ce,pkgPath:We,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,rootDir:D,ignoreSideEffectsForRoot:N,fs:W});return{packageInfo:ie,hasModuleSideEffects:K,hasPackageEntry:ee,packageBrowserField:re}=Ge,Ge.cachedPkg},"filter"),Te={...ZPt(W),basedir:await W.realpath(E),extensions:d,includeCoreModules:!1,moduleDirectory:C,paths:A,preserveSymlinks:m,packageFilter:_e},Se=await lFi(n,j,Te,C,W);if(Se&&Se.pkgJson.exports){let{pkgJson:Ce,pkgJsonPath:We}=Se,Ge=j===e?".":`.${e.substring(j.length)}`,Ve=We.replace("package.json",""),i=await eFi({importer:n,importSpecifier:e,moduleDirs:C,pkgURL:Ve,pkgJsonPath:We,allowExportsFolderMapping:F,conditions:s},Ge,Ce.exports,G);if(i)return{location:m?i:await jRt(i,W),hasModuleSideEffects:K,hasPackageEntry:ee,packageBrowserField:re,packageInfo:ie}}}return null}async function uFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:W}){for(let G=0;G<e.length;G++){let j=await I6n({importSpecifier:e[G],packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:W});if(j)return j}return null}async function pFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,allowExportsFolderMapping:W,fs:G,validateImportsExports:j,ignoreExports:K}){if(!K)try{let ee=await cFi({importer:n,importSpecifier:e[0],exportConditions:s,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,allowExportsFolderMapping:W,fs:G,validateImportsExports:j});if(ee)return ee}catch(ee){if(ee instanceof _me)return c(ee),null;throw ee}return uFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:G})}function eLt(n={}){let{warnings:e}=kLi(n),s={...N6n,...n},{extensions:c,jail:d,moduleDirectories:_,modulePaths:m,ignoreSideEffectsForRoot:b}=s,E=[...dFi,...s.exportConditions||[]],C=[...fFi,...s.exportConditions||[]],A=new Map,D=new Map,N=hOi(s),F=N.indexOf("browser")!==-1,W=s.preferBuiltins===!0||s.preferBuiltins===!1,G=W?s.preferBuiltins:!0,j=tf.resolve(s.rootDir||Ye.cwd()),{dedupe:K}=s,ee;if(_.some(Ce=>Ce.includes("/")))throw new Error("`moduleDirectories` option must only contain directory names. If you want to load modules from somewhere not supported by the default module resolution algorithm, see `modulePaths`.");typeof K!="function"&&(K=t(Ce=>s.dedupe.includes(Ce)||s.dedupe.includes(s6n(Ce)),"dedupe"));let re=t(Ce=>{let We=Ce.map(Ge=>{if(Ge instanceof RegExp)return Ge;let Ke=Ge.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${Ke}$`)});return Ge=>!We.length||We.some(Ke=>Ke.test(Ge))},"allowPatterns"),ie=typeof s.resolveOnly=="function"?s.resolveOnly:re(s.resolveOnly),_e=new Map,Te,Se=t(async(Ce,We,Ge,Ke,Ve)=>{let[Be,J]=We.split("?"),i=`${J?`?${J}`:""}`;We=Be;let R=!Ge||K(We)?j:tf.dirname(Ge),ut=_e.get(Ge);if(F&&ut){let q=tf.resolve(R,We);if(ut[We]===!1||ut[q]===!1)return{id:kWe};let Y=We[0]!=="."&&ut[We]||ut[q]||ut[`${q}.js`]||ut[`${q}.json`];Y&&(We=Y)}let ae=We.split(/[/\\]/),xt=ae.shift(),Re=!1;if(xt[0]==="@"&&ae.length>0?xt+=`/${ae.shift()}`:xt[0]==="."&&(xt=tf.resolve(R,We),Re=!0),!Re&&!ie(xt))return mOi(ee.input).includes(We)?null:!1;let B=[We];if(Ge===void 0&&!We[0].match(/^\.?\.?\//)&&B.push(`./${We}`),Ge&&/\.(ts|mts|cts|tsx)$/.test(Ge))for(let[q,Y]of[[".js",".ts"],[".js",".tsx"],[".jsx",".tsx"],[".mjs",".mts"],[".cjs",".cts"]])We.endsWith(q)&&c.includes(Y)&&B.push(We.slice(0,-q.length)+Y);let r=t((...q)=>Ce.warn(...q),"warn"),l=Ke&&Ke["node-resolve"]&&Ke["node-resolve"].isRequire?C:E;F&&!l.includes("browser")&&l.push("browser");let u=await pFi({importer:Ge,importSpecifierList:B,exportConditions:l,warn:r,packageInfoCache:A,extensions:c,mainFields:N,preserveSymlinks:Te,useBrowserOverrides:F,baseDir:R,moduleDirectories:_,modulePaths:m,rootDir:j,ignoreSideEffectsForRoot:b,allowExportsFolderMapping:s.allowExportsFolderMapping,fs:Ve,validateImportsExports:s.validateImportsExports,ignoreExports:s.ignoreExports}),f=hLi(We),h=f&&G?{packageInfo:void 0,hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:!0,packageBrowserField:!1}:u;if(!h)return null;let{packageInfo:v,hasModuleSideEffects:S,hasPackageEntry:w,packageBrowserField:P}=h,{location:O}=h;if(P){if(Object.prototype.hasOwnProperty.call(P,O)){if(!P[O])return _e.set(O,P),{id:kWe};O=P[O]}_e.set(O,P)}if(w&&!Te&&await Nze(O,Ve)&&(O=await Ve.realpath(O)),D.set(O,v),w){if(f&&G)return!W&&u&&h!==We&&Ce.warn(`preferring built-in module '${We}' over local alternative at '${u.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),!1;if(d&&O.indexOf(tf.normalize(d.trim(tf.sep)))!==0)return null}if(s.modulesOnly&&await Nze(O,Ve)){let q=await Ve.readFile(O,"utf8");return LLi(q)?{id:`${O}${i}`,moduleSideEffects:S(O)}:null}return{id:`${O}${i}`,moduleSideEffects:S(O)}},"resolveLikeNode");return{name:"node-resolve",version:"1.0.0",buildStart(Ce){ee=Ce;for(let We of e)this.warn(We);({preserveSymlinks:Te}=Ce)},generateBundle(){},resolveId:{order:"post",async handler(Ce,We,Ge){if(Ce===kWe)return Ce;if(/\0/.test(Ce))return null;let{custom:Ke={}}=Ge,{"node-resolve":{resolved:Ve}={}}=Ke;if(Ve)return Ve;/\0/.test(We)&&(We=void 0);let Be=s.fs||globalThis.__rollupFs||hme,J=await Se(this,Ce,We,Ke,Be);if(J){let i=await this.resolve(J.id,We,{...Ge,skipSelf:!1,custom:{...Ke,"node-resolve":{...Ke["node-resolve"],resolved:J,importee:Ce}}});if(i)return i.external?!1:i.id!==J.id?i:{...J,meta:i.meta}}return J}},load(Ce){return Ce===kWe?"export default {};":null},getPackageInfoForId(Ce){return D.get(Ce)}}}function P6n(n,e,s){try{return n(e,{allowReturnOutsideFunction:!0})}catch(c){throw c.message+=` in ${s}`,c}}function mFi(n,e){return(e?hFi:_Fi).test(n)}function gFi(n,e,s){let c=P6n(n,e,s),d=!1,_=!1,m=!1;for(let b of c.body)switch(b.type){case"ExportDefaultDeclaration":d=!0,_=!0;break;case"ExportNamedDeclaration":if(d=!0,b.declaration)m=!0;else for(let E of b.specifiers)E.exported.name==="default"?_=!0:m=!0;break;case"ExportAllDeclaration":d=!0,b.exported&&b.exported.name==="default"?_=!0:m=!0;break;case"ImportDeclaration":d=!0;break}return{isEsModule:d,hasDefaultExport:_,hasNamedExports:m,ast:c}}function L6n(n,e,s){n instanceof RegExp&&(n=_On(n,s)),e instanceof RegExp&&(e=_On(e,s));var c=k6n(n,e,s);return c&&{start:c[0],end:c[1],pre:s.slice(0,c[0]),body:s.slice(c[0]+n.length,c[1]),post:s.slice(c[1]+e.length)}}function _On(n,e){var s=e.match(n);return s?s[0]:null}function k6n(n,e,s){var c,d,_,m,b,E=s.indexOf(n),C=s.indexOf(e,E+1),A=E;if(E>=0&&C>0){if(n===e)return[E,C];for(c=[],_=s.length;A>=0&&!b;)A==E?(c.push(A),E=s.indexOf(n,A+1)):c.length==1?b=[c.pop(),C]:(d=c.pop(),d<_&&(_=d,m=C),C=s.indexOf(e,A+1)),A=E<C&&E>=0?E:C;c.length&&(b=[_,m])}return b}function cRt(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function EFi(n){return n.split("\\\\").join(O6n).split("\\{").join(F6n).split("\\}").join(tLt).split("\\,").join(B6n).split("\\.").join(V6n)}function CFi(n){return n.split(O6n).join("\\").split(F6n).join("{").split(tLt).join("}").split(B6n).join(",").split(V6n).join(".")}function U6n(n){if(!n)return[""];var e=[],s=M6n("{","}",n);if(!s)return n.split(",");var c=s.pre,d=s.body,_=s.post,m=c.split(",");m[m.length-1]+="{"+d+"}";var b=U6n(_);return _.length&&(m[m.length-1]+=b.shift(),m.push.apply(m,b)),e.push.apply(e,m),e}function wFi(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),M$e(EFi(n),!0).map(CFi)):[]}function $Fi(n){return"{"+n+"}"}function AFi(n){return/^-?0\d/.test(n)}function TFi(n,e){return n<=e}function IFi(n,e){return n>=e}function M$e(n,e){var s=[],c=M6n("{","}",n);if(!c)return[n];var d=c.pre,_=c.post.length?M$e(c.post,!1):[""];if(/\$$/.test(c.pre))for(var m=0;m<_.length;m++){var b=d+"{"+c.body+"}"+_[m];s.push(b)}else{var E=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body),C=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body),A=E||C,D=c.body.indexOf(",")>=0;if(!A&&!D)return c.post.match(/,(?!,).*\}/)?(n=c.pre+"{"+c.body+tLt+c.post,M$e(n)):[n];var N;if(A)N=c.body.split(/\.\./);else if(N=U6n(c.body),N.length===1&&(N=M$e(N[0],!1).map($Fi),N.length===1))return _.map(function(Ge){return c.pre+N[0]+Ge});var F;if(A){var W=cRt(N[0]),G=cRt(N[1]),j=Math.max(N[0].length,N[1].length),K=N.length==3?Math.abs(cRt(N[2])):1,ee=TFi,re=G<W;re&&(K*=-1,ee=IFi);var ie=N.some(AFi);F=[];for(var _e=W;ee(_e,G);_e+=K){var Te;if(C)Te=String.fromCharCode(_e),Te==="\\"&&(Te="");else if(Te=String(_e),ie){var Se=j-Te.length;if(Se>0){var Ce=new Array(Se+1).join("0");_e<0?Te="-"+Ce+Te.slice(1):Te=Ce+Te}}F.push(Te)}}else{F=[];for(var We=0;We<N.length;We++)F.push.apply(F,M$e(N[We],!1))}for(var We=0;We<F.length;We++)for(var m=0;m<_.length;m++){var b=d+F[We]+_[m];(!e||A||b)&&s.push(b)}}return s}function Wse(n){throw new RangeError(A3i[n])}function o4n(n,e){for(var s=n.length,c=[];s--;)c[s]=e(n[s]);return c}function l4n(n,e){var s=n.split("@"),c="";s.length>1&&(c=s[0]+"@",n=s[1]),n=n.replace($3i,".");var d=n.split("."),_=o4n(d,e).join(".");return c+_}function c4n(n){for(var e=[],s=0,c=n.length,d,_;s<c;)d=n.charCodeAt(s++),d>=55296&&d<=56319&&s<c?(_=n.charCodeAt(s++),(_&64512)==56320?e.push(((d&1023)<<10)+(_&1023)+65536):(e.push(d),s--)):e.push(d);return e}function u4n(n){return o4n(n,function(e){var s="";return e>65535&&(e-=65536,s+=Q$e(e>>>10&1023|55296),e=56320|e&1023),s+=Q$e(e),s}).join("")}function T3i(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:Iz}function $On(n,e){return n+22+75*(n<26)-((e!=0)<<5)}function p4n(n,e,s){var c=0;for(n=s?Dz(n/E3i):n>>1,n+=Dz(n/e);n>dRt*oAe>>1;c+=Iz)n=Dz(n/dRt);return Dz(c+(dRt+1)*n/(n+x3i))}function iLt(n){var e=[],s=n.length,c,d=0,_=a4n,m=i4n,b,E,C,A,D,N,F,W,G;for(b=n.lastIndexOf(s4n),b<0&&(b=0),E=0;E<b;++E)n.charCodeAt(E)>=128&&Wse("not-basic"),e.push(n.charCodeAt(E));for(C=b>0?b+1:0;C<s;){for(A=d,D=1,N=Iz;C>=s&&Wse("invalid-input"),F=T3i(n.charCodeAt(C++)),(F>=Iz||F>Dz((cme-d)/D))&&Wse("overflow"),d+=F*D,W=N<=m?rLt:N>=m+oAe?oAe:N-m,!(F<W);N+=Iz)G=Iz-W,D>Dz(cme/G)&&Wse("overflow"),D*=G;c=e.length+1,m=p4n(d-A,c,A==0),Dz(d/c)>cme-_&&Wse("overflow"),_+=Dz(d/c),d%=c,e.splice(d++,0,_)}return u4n(e)}function aLt(n){var e,s,c,d,_,m,b,E,C,A,D,N=[],F,W,G,j;for(n=c4n(n),F=n.length,e=a4n,s=0,_=i4n,m=0;m<F;++m)D=n[m],D<128&&N.push(Q$e(D));for(c=d=N.length,d&&N.push(s4n);c<F;){for(b=cme,m=0;m<F;++m)D=n[m],D>=e&&D<b&&(b=D);for(W=c+1,b-e>Dz((cme-s)/W)&&Wse("overflow"),s+=(b-e)*W,e=b,m=0;m<F;++m)if(D=n[m],D<e&&++s>cme&&Wse("overflow"),D==e){for(E=s,C=Iz;A=C<=_?rLt:C>=_+oAe?oAe:C-_,!(E<A);C+=Iz)j=E-A,G=Iz-A,N.push(Q$e($On(A+j%G,0))),E=Dz(j/G);N.push(Q$e($On(E,0))),_=p4n(s,W,c==d),s=0,++c}++s,++e}return N.join("")}function d4n(n){return l4n(n,function(e){return C3i.test(e)?iLt(e.slice(4).toLowerCase()):e})}function sLt(n){return l4n(n,function(e){return w3i.test(e)?"xn--"+aLt(e):e})}function R3i(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function A$e(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}}function lAe(n,e,s,c){return e=e||"&",s=s||"=",n===null&&(n=void 0),typeof n=="object"?AOn(N3i(n),function(d){var _=encodeURIComponent(A$e(d))+s;return h4n(n[d])?AOn(n[d],function(m){return _+encodeURIComponent(A$e(m))}).join(e):_+encodeURIComponent(A$e(n[d]))}).join(e):c?encodeURIComponent(A$e(c))+s+encodeURIComponent(A$e(n)):""}function AOn(n,e){if(n.map)return n.map(e);for(var s=[],c=0;c<n.length;c++)s.push(e(n[c],c));return s}function mme(n,e,s,c){e=e||"&",s=s||"=";var d={};if(typeof n!="string"||n.length===0)return d;var _=/\+/g;n=n.split(e);var m=1e3;c&&typeof c.maxKeys=="number"&&(m=c.maxKeys);var b=n.length;m>0&&b>m&&(b=m);for(var E=0;E<b;++E){var C=n[E].replace(_,"%20"),A=C.indexOf(s),D,N,F,W;A>=0?(D=C.substr(0,A),N=C.substr(A+1)):(D=C,N=""),F=decodeURIComponent(D),W=decodeURIComponent(N),R3i(d,F)?h4n(d[F])?d[F].push(W):d[F]=[d[F],W]:d[F]=W}return d}function _8(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function EAe(n,e,s){if(n&&x6n(n)&&n instanceof _8)return n;var c=new _8;return c.parse(n,e,s),c}function y4n(n,e,s,c){if(!YPt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var d=e.indexOf("?"),_=d!==-1&&d<e.indexOf("#")?"?":"#",m=e.split(_),b=/\\/g;m[0]=m[0].replace(b,"/"),e=m.join(_);var E=e;if(E=E.trim(),!c&&e.split("#").length===1){var C=F3i.exec(E);if(C)return n.path=E,n.href=E,n.pathname=C[1],C[2]?(n.search=C[2],s?n.query=mme(n.search.substr(1)):n.query=n.search.substr(1)):s&&(n.search="",n.query={}),n}var A=M3i.exec(E);if(A){A=A[0];var D=A.toLowerCase();n.protocol=D,E=E.substr(A.length)}if(c||A||E.match(/^\/\/[^@\/]+@[^@\/]+/)){var N=E.substr(0,2)==="//";N&&!(A&&QRt[A])&&(E=E.substr(2),n.slashes=!0)}var F,W,G,j;if(!QRt[A]&&(N||A&&!ume[A])){var K=-1;for(F=0;F<IOn.length;F++)W=E.indexOf(IOn[F]),W!==-1&&(K===-1||W<K)&&(K=W);var ee,re;for(K===-1?re=E.lastIndexOf("@"):re=E.lastIndexOf("@",K),re!==-1&&(ee=E.slice(0,re),E=E.slice(re+1),n.auth=decodeURIComponent(ee)),K=-1,F=0;F<TOn.length;F++)W=E.indexOf(TOn[F]),W!==-1&&(K===-1||W<K)&&(K=W);K===-1&&(K=E.length),n.host=E.slice(0,K),E=E.slice(K),x4n(n),n.hostname=n.hostname||"";var ie=n.hostname[0]==="["&&n.hostname[n.hostname.length-1]==="]";if(!ie){var _e=n.hostname.split(/\./);for(F=0,G=_e.length;F<G;F++){var Te=_e[F];if(Te&&!Te.match(DOn)){for(var Se="",Ce=0,We=Te.length;Ce<We;Ce++)Te.charCodeAt(Ce)>127?Se+="x":Se+=Te[Ce];if(!Se.match(DOn)){var Ge=_e.slice(0,F),Ke=_e.slice(F+1),Ve=Te.match(j3i);Ve&&(Ge.push(Ve[1]),Ke.unshift(Ve[2])),Ke.length&&(E="/"+Ke.join(".")+E),n.hostname=Ge.join(".");break}}}}n.hostname.length>U3i?n.hostname="":n.hostname=n.hostname.toLowerCase(),ie||(n.hostname=sLt(n.hostname)),j=n.port?":"+n.port:"";var Be=n.hostname||"";n.host=Be+j,n.href+=n.host,ie&&(n.hostname=n.hostname.substr(1,n.hostname.length-2),E[0]!=="/"&&(E="/"+E))}if(!W3i[D])for(F=0,G=YRt.length;F<G;F++){var J=YRt[F];if(E.indexOf(J)!==-1){var i=encodeURIComponent(J);i===J&&(i=escape(J)),E=E.split(J).join(i)}}var R=E.indexOf("#");R!==-1&&(n.hash=E.substr(R),E=E.slice(0,R));var ut=E.indexOf("?");if(ut!==-1?(n.search=E.substr(ut),n.query=E.substr(ut+1),s&&(n.query=mme(n.query)),E=E.slice(0,ut)):s&&(n.search="",n.query={}),E&&(n.pathname=E),ume[D]&&n.hostname&&!n.pathname&&(n.pathname="/"),n.pathname||n.search){j=n.pathname||"";var ae=n.search||"";n.path=j+ae}return n.href=lLt(n),n}function oLt(n){if(typeof n=="string")n=new _8().parse(n);else if(!(n instanceof _8))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof n+String(n));if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return z3i(n)}function z3i(n){let e=n.pathname;for(let s=0;s<e.length;s++)if(e[s]==="%"){let c=e.codePointAt(s+2)|32;if(e[s+1]==="2"&&c===102)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(e)}function v4n(n){return YPt(n)&&(n=y4n({},n)),lLt(n)}function lLt(n){var e=n.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var s=n.protocol||"",c=n.pathname||"",d=n.hash||"",_=!1,m="";n.host?_=e+n.host:n.hostname&&(_=e+(n.hostname.indexOf(":")===-1?n.hostname:"["+this.hostname+"]"),n.port&&(_+=":"+n.port)),n.query&&x6n(n.query)&&Object.keys(n.query).length&&(m=lAe(n.query));var b=n.search||m&&"?"+m||"";return s&&s.substr(-1)!==":"&&(s+=":"),n.slashes||(!s||ume[s])&&_!==!1?(_="//"+(_||""),c&&c.charAt(0)!=="/"&&(c="/"+c)):_||(_=""),d&&d.charAt(0)!=="#"&&(d="#"+d),b&&b.charAt(0)!=="?"&&(b="?"+b),c=c.replace(/[?#]/g,function(E){return encodeURIComponent(E)}),b=b.replace("#","%23"),s+_+c+b+d}function b4n(n,e){return EAe(n,!1,!0).resolve(e)}function S4n(n,e){return n?EAe(n,!1,!0).resolveObject(e):e}function x4n(n){var e=n.host,s=O3i.exec(e);s&&(s=s[0],s!==":"&&(n.port=s.substr(1)),e=e.substr(0,e.length-s.length)),e&&(n.hostname=e)}function uqe(n,e={}){return new eJ(n,e).streamSync()}function E4n(n,e={}){return new eJ(n,e).stream()}function C4n(n,e={}){return new eJ(n,e).walkSync()}async function ROn(n,e={}){return new eJ(n,e).walk()}function pqe(n,e={}){return new eJ(n,e).iterateSync()}function w4n(n,e={}){return new eJ(n,e).iterate()}function dee(n,e,s){let c=1,d=fme(s),_=t(()=>n.some(m=>m.contains(d))||e.has(d),"hasConflicts");for(;_();)d=fme(`${s}_${c}`),c+=1;for(let m of n)m.declarations[d]=!0;return d}function gme(n){let e=fme(tf.basename(n,tf.extname(n)));return e!=="index"?e:fme(tf.basename(tf.dirname(n)))}function uAe(n){return n.replace(/\\/g,"/")}function nNt(n){return n[0].toUpperCase()+n.slice(1)}function r6i({strictRequires:n}){switch(n){case!0:return{strictRequiresFilter:t(()=>!0,"strictRequiresFilter"),detectCyclesAndConditional:!1};case void 0:case"auto":case"debug":case null:return{strictRequiresFilter:t(()=>!1,"strictRequiresFilter"),detectCyclesAndConditional:!0};case!1:return{strictRequiresFilter:t(()=>!1,"strictRequiresFilter"),detectCyclesAndConditional:!1};default:if(typeof n=="string"||Array.isArray(n))return{strictRequiresFilter:sJ(n),detectCyclesAndConditional:!1};throw new Error('Unexpected value for "strictRequires" option.')}}async function i6i(n,e){let s="index.js";try{(await e.stat(tf.join(n,"package.json"))).isFile()&&(s=JSON.parse(await e.readFile(tf.join(n,"package.json"),"utf8")).main||s)}catch{}return s}async function a6i(n,e){try{if((await e.stat(n)).isDirectory())return!0}catch{}return!1}async function s6i(n,e,s,c){let d=new Map,_=new Set;for(let m of!n||Array.isArray(n)?n||[]:[n]){let b=m.startsWith("!"),E=t((A,D)=>b?d.delete(A):d.set(A,D),"modifyMap"),C=await cAe(b?m.substr(1):m,{fs:c,cwd:s});for(let A of C.sort((D,N)=>D.localeCompare(N,"en"))){let D=tf.resolve(A),N=uAe(D);if(await a6i(D,c)){_.add(D);let F=tf.resolve(tf.join(D,await i6i(A,c)));E(N,F),E(uAe(F),F)}else _.add(tf.dirname(D)),E(N,D)}}return{commonDir:_.size?bFi([..._,e]):null,dynamicRequireModules:d}}function o6i(n,e,s,c){if(!n)return`export function ${cLt}(path) {
31221
+ `),new Error(s)}return e.data}t(gNi,"getParsedNowConfigData");function yNi(n,e){let s=(0,uNi.readJson)(n,"",e);if(!bNi(s))throw new Error(`Config file '${whe.FILE_NAME}' is empty or malformed`);let c=mNi(s);if(c.errors.length>0)throw new Error(`${whe.FILE_NAME} - error: ${vNi(c.errors)}`);return s}t(yNi,"validateNowConfigJsonFile");function vNi(n){return n.filter(e=>!e.message.includes("does not match allOf schema")).map(e=>e.path.length?`"${e.path.join(".")}" ${e.message}`:e.message==="is of prohibited type [object Object]"?e.argument.errorMessage:e.message).join(", ")}t(vNi,"formatValidationErrorMessage");function Rkn(n,e){return(e instanceof pNi.Compiler?!!e.getSourceFile(n):hDt.FileSystem.existsSync(e,n))?yNi(n,e):null}t(Rkn,"readNowConfigJsonFile");function bNi(n){if(!n||typeof n!="object"||Array.isArray(n))return!1;for(let e in n)if(typeof e!="string")return!1;return!0}t(bNi,"isObjectWithStringKeys");var SNi={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function xNi(n,e){for(let[s,{replacedBy:c,transfer:d}]of Object.entries(SNi))s in n&&(e.warn(`'${s}' is deprecated${c?`, please replace with '${c}'`:" and can be removed"}`),d&&c&&(n[c]=n[s]))}t(xNi,"replaceDeprecatedFields");function ENi(n){for(let[e,s]of Object.entries(whe.ERROR_ON_DEPRECATED_PROPS))if(e in n)throw new Error(s)}t(ENi,"checkRemovedProperties")});var Lkn=st(sWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(sWe,"__esModule",{value:!0});sWe.createConsoleLogger=CNi;sWe.createSilentLogger=wNi;function CNi(){return console}t(CNi,"createConsoleLogger");function wNi(){return{info:t(()=>{},"info"),warn:t(()=>{},"warn"),error:t(()=>{},"error"),debug:t(()=>{},"debug")}}t(wNi,"createSilentLogger")});var yMn=st(Bm=>{"use strict";pe();ue();oe();ce();le();var kkn={},Fkn={};Fkn.default=function(n,e,s,c,d){var _=new Worker(kkn[e]||(kkn[e]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return _.onmessage=function(m){var b=m.data,E=b.$e$;if(E){var C=new Error(E[0]);C.code=E[1],C.stack=E[2],d(C,null)}else d(null,b)},_.postMessage(s,c),_};var Dy=Uint8Array,wO=Uint16Array,g$e=Int32Array,Dhe=new Dy([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rhe=new Dy([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_$e=new Dy([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bkn=t(function(n,e){for(var s=new wO(31),c=0;c<31;++c)s[c]=e+=1<<n[c-1];for(var d=new g$e(s[30]),c=1;c<30;++c)for(var _=s[c];_<s[c+1];++_)d[_]=_-s[c]<<5|c;return{b:s,r:d}},"freb"),Vkn=Bkn(Dhe,2),CDt=Vkn.b,pWe=Vkn.r;CDt[28]=258,pWe[258]=28;var Ukn=Bkn(Rhe,0),jkn=Ukn.b,gDt=Ukn.r,h$e=new wO(32768);for(Z1=0;Z1<32768;++Z1)zK=(Z1&43690)>>1|(Z1&21845)<<1,zK=(zK&52428)>>2|(zK&13107)<<2,zK=(zK&61680)>>4|(zK&3855)<<4,h$e[Z1]=((zK&65280)>>8|(zK&255)<<8)>>1;var zK,Z1,VB=t(function(n,e,s){for(var c=n.length,d=0,_=new wO(e);d<c;++d)n[d]&&++_[n[d]-1];var m=new wO(e);for(d=1;d<e;++d)m[d]=m[d-1]+_[d-1]<<1;var b;if(s){b=new wO(1<<e);var E=15-e;for(d=0;d<c;++d)if(n[d])for(var C=d<<4|n[d],A=e-n[d],D=m[n[d]-1]++<<A,N=D|(1<<A)-1;D<=N;++D)b[h$e[D]>>E]=C}else for(b=new wO(c),d=0;d<c;++d)n[d]&&(b[d]=h$e[m[n[d]-1]++]>>15-n[d]);return b},"hMap"),GK=new Dy(288);for(Z1=0;Z1<144;++Z1)GK[Z1]=8;var Z1;for(Z1=144;Z1<256;++Z1)GK[Z1]=9;var Z1;for(Z1=256;Z1<280;++Z1)GK[Z1]=7;var Z1;for(Z1=280;Z1<288;++Z1)GK[Z1]=8;var Z1,The=new Dy(32);for(Z1=0;Z1<32;++Z1)The[Z1]=5;var Z1,Wkn=VB(GK,9,0),zkn=VB(GK,9,1),Gkn=VB(The,5,0),qkn=VB(The,5,1),lWe=t(function(n){for(var e=n[0],s=1;s<n.length;++s)n[s]>e&&(e=n[s]);return e},"max"),BB=t(function(n,e,s){var c=e/8|0;return(n[c]|n[c+1]<<8)>>(e&7)&s},"bits"),cWe=t(function(n,e){var s=e/8|0;return(n[s]|n[s+1]<<8|n[s+2]<<16)>>(e&7)},"bits16"),Nhe=t(function(n){return(n+7)/8|0},"shft"),UB=t(function(n,e,s){return(e==null||e<0)&&(e=0),(s==null||s>n.length)&&(s=n.length),new Dy(n.subarray(e,s))},"slc");Bm.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var Hkn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],uh=t(function(n,e,s){var c=new Error(e||Hkn[n]);if(c.code=n,Error.captureStackTrace&&Error.captureStackTrace(c,uh),!s)throw c;return c},"err"),y$e=t(function(n,e,s,c){var d=n.length,_=c?c.length:0;if(!d||e.f&&!e.l)return s||new Dy(0);var m=!s,b=m||e.i!=2,E=e.i;m&&(s=new Dy(d*3));var C=t(function(P){var O=s.length;if(P>O){var q=new Dy(Math.max(O*2,P));q.set(s),s=q}},"cbuf"),A=e.f||0,D=e.p||0,N=e.b||0,F=e.l,W=e.d,G=e.m,j=e.n,K=d*8;do{if(!F){A=BB(n,D,1);var ee=BB(n,D+1,3);if(D+=3,ee)if(ee==1)F=zkn,W=qkn,G=9,j=5;else if(ee==2){var Te=BB(n,D,31)+257,Se=BB(n,D+10,15)+4,Ce=Te+BB(n,D+5,31)+1;D+=14;for(var We=new Dy(Ce),Ge=new Dy(19),Ke=0;Ke<Se;++Ke)Ge[_$e[Ke]]=BB(n,D+Ke*3,7);D+=Se*3;for(var Ve=lWe(Ge),Be=(1<<Ve)-1,J=VB(Ge,Ve,1),Ke=0;Ke<Ce;){var i=J[BB(n,D,Be)];D+=i&15;var re=i>>4;if(re<16)We[Ke++]=re;else{var R=0,ut=0;for(re==16?(ut=3+BB(n,D,3),D+=2,R=We[Ke-1]):re==17?(ut=3+BB(n,D,7),D+=3):re==18&&(ut=11+BB(n,D,127),D+=7);ut--;)We[Ke++]=R}}var ae=We.subarray(0,Te),xt=We.subarray(Te);G=lWe(ae),j=lWe(xt),F=VB(ae,G,1),W=VB(xt,j,1)}else uh(1);else{var re=Nhe(D)+4,ie=n[re-4]|n[re-3]<<8,_e=re+ie;if(_e>d){E&&uh(0);break}b&&C(N+ie),s.set(n.subarray(re,_e),N),e.b=N+=ie,e.p=D=_e*8,e.f=A;continue}if(D>K){E&&uh(0);break}}b&&C(N+131072);for(var Re=(1<<G)-1,B=(1<<j)-1,r=D;;r=D){var R=F[cWe(n,D)&Re],a=R>>4;if(D+=R&15,D>K){E&&uh(0);break}if(R||uh(2),a<256)s[N++]=a;else if(a==256){r=D,F=null;break}else{var l=a-254;if(a>264){var Ke=a-257,u=Dhe[Ke];l=BB(n,D,(1<<u)-1)+CDt[Ke],D+=u}var f=W[cWe(n,D)&B],h=f>>4;f||uh(3),D+=f&15;var xt=jkn[h];if(h>3){var u=Rhe[h];xt+=cWe(n,D)&(1<<u)-1,D+=u}if(D>K){E&&uh(0);break}b&&C(N+131072);var v=N+l;if(N<xt){var S=_-xt,w=Math.min(xt,v);for(S+N<0&&uh(3);N<w;++N)s[N]=c[S+N]}for(;N<v;++N)s[N]=s[N-xt]}}e.l=F,e.p=r,e.b=N,e.f=A,F&&(A=1,e.m=G,e.d=W,e.n=j)}while(!A);return N!=s.length&&m?UB(s,0,N):s.subarray(0,N)},"inflt"),bz=t(function(n,e,s){s<<=e&7;var c=e/8|0;n[c]|=s,n[c+1]|=s>>8},"wbits"),$he=t(function(n,e,s){s<<=e&7;var c=e/8|0;n[c]|=s,n[c+1]|=s>>8,n[c+2]|=s>>16},"wbits16"),uWe=t(function(n,e){for(var s=[],c=0;c<n.length;++c)n[c]&&s.push({s:c,f:n[c]});var d=s.length,_=s.slice();if(!d)return{t:oee,l:0};if(d==1){var m=new Dy(s[0].s+1);return m[s[0].s]=1,{t:m,l:1}}s.sort(function(_e,Te){return _e.f-Te.f}),s.push({s:-1,f:25001});var b=s[0],E=s[1],C=0,A=1,D=2;for(s[0]={s:-1,f:b.f+E.f,l:b,r:E};A!=d-1;)b=s[s[C].f<s[D].f?C++:D++],E=s[C!=A&&s[C].f<s[D].f?C++:D++],s[A++]={s:-1,f:b.f+E.f,l:b,r:E};for(var N=_[0].s,c=1;c<d;++c)_[c].s>N&&(N=_[c].s);var F=new wO(N+1),W=dWe(s[A-1],F,0);if(W>e){var c=0,G=0,j=W-e,K=1<<j;for(_.sort(function(Te,Se){return F[Se.s]-F[Te.s]||Te.f-Se.f});c<d;++c){var ee=_[c].s;if(F[ee]>e)G+=K-(1<<W-F[ee]),F[ee]=e;else break}for(G>>=j;G>0;){var re=_[c].s;F[re]<e?G-=1<<e-F[re]++-1:++c}for(;c>=0&&G;--c){var ie=_[c].s;F[ie]==e&&(--F[ie],++G)}W=e}return{t:new Dy(F),l:W}},"hTree"),dWe=t(function(n,e,s){return n.s==-1?Math.max(dWe(n.l,e,s+1),dWe(n.r,e,s+1)):e[n.s]=s},"ln"),yDt=t(function(n){for(var e=n.length;e&&!n[--e];);for(var s=new wO(++e),c=0,d=n[0],_=1,m=t(function(E){s[c++]=E},"w"),b=1;b<=e;++b)if(n[b]==d&&b!=e)++_;else{if(!d&&_>2){for(;_>138;_-=138)m(32754);_>2&&(m(_>10?_-11<<5|28690:_-3<<5|12305),_=0)}else if(_>3){for(m(d),--_;_>6;_-=6)m(8304);_>2&&(m(_-3<<5|8208),_=0)}for(;_--;)m(d);_=1,d=n[b]}return{c:s.subarray(0,c),n:e}},"lc"),Ahe=t(function(n,e){for(var s=0,c=0;c<e.length;++c)s+=n[c]*e[c];return s},"clen"),wDt=t(function(n,e,s){var c=s.length,d=Nhe(e+2);n[d]=c&255,n[d+1]=c>>8,n[d+2]=n[d]^255,n[d+3]=n[d+1]^255;for(var _=0;_<c;++_)n[d+_+4]=s[_];return(d+4+c)*8},"wfblk"),vDt=t(function(n,e,s,c,d,_,m,b,E,C,A){bz(e,A++,s),++d[256];for(var D=uWe(d,15),N=D.t,F=D.l,W=uWe(_,15),G=W.t,j=W.l,K=yDt(N),ee=K.c,re=K.n,ie=yDt(G),_e=ie.c,Te=ie.n,Se=new wO(19),Ce=0;Ce<ee.length;++Ce)++Se[ee[Ce]&31];for(var Ce=0;Ce<_e.length;++Ce)++Se[_e[Ce]&31];for(var We=uWe(Se,7),Ge=We.t,Ke=We.l,Ve=19;Ve>4&&!Ge[_$e[Ve-1]];--Ve);var Be=C+5<<3,J=Ahe(d,GK)+Ahe(_,The)+m,i=Ahe(d,N)+Ahe(_,G)+m+14+3*Ve+Ahe(Se,Ge)+2*Se[16]+3*Se[17]+7*Se[18];if(E>=0&&Be<=J&&Be<=i)return wDt(e,A,n.subarray(E,E+C));var R,ut,ae,xt;if(bz(e,A,1+(i<J)),A+=2,i<J){R=VB(N,F,0),ut=N,ae=VB(G,j,0),xt=G;var Re=VB(Ge,Ke,0);bz(e,A,re-257),bz(e,A+5,Te-1),bz(e,A+10,Ve-4),A+=14;for(var Ce=0;Ce<Ve;++Ce)bz(e,A+3*Ce,Ge[_$e[Ce]]);A+=3*Ve;for(var B=[ee,_e],r=0;r<2;++r)for(var a=B[r],Ce=0;Ce<a.length;++Ce){var l=a[Ce]&31;bz(e,A,Re[l]),A+=Ge[l],l>15&&(bz(e,A,a[Ce]>>5&127),A+=a[Ce]>>12)}}else R=Wkn,ut=GK,ae=Gkn,xt=The;for(var Ce=0;Ce<b;++Ce){var u=c[Ce];if(u>255){var l=u>>18&31;$he(e,A,R[l+257]),A+=ut[l+257],l>7&&(bz(e,A,u>>23&31),A+=Dhe[l]);var f=u&31;$he(e,A,ae[f]),A+=xt[f],f>3&&($he(e,A,u>>5&8191),A+=Rhe[f])}else $he(e,A,R[u]),A+=ut[u]}return $he(e,A,R[256]),A+ut[256]},"wblk"),Kkn=new g$e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oee=new Dy(0),Jkn=t(function(n,e,s,c,d,_){var m=_.z||n.length,b=new Dy(c+m+5*(1+Math.ceil(m/7e3))+d),E=b.subarray(c,b.length-d),C=_.l,A=(_.r||0)&7;if(e){A&&(E[0]=_.r>>3);for(var D=Kkn[e-1],N=D>>13,F=D&8191,W=(1<<s)-1,G=_.p||new wO(32768),j=_.h||new wO(W+1),K=Math.ceil(s/3),ee=2*K,re=t(function(Y){return(n[Y]^n[Y+1]<<K^n[Y+2]<<ee)&W},"hsh"),ie=new g$e(25e3),_e=new wO(288),Te=new wO(32),Se=0,Ce=0,We=_.i||0,Ge=0,Ke=_.w||0,Ve=0;We+2<m;++We){var Be=re(We),J=We&32767,i=j[Be];if(G[J]=i,j[Be]=J,Ke<=We){var R=m-We;if((Se>7e3||Ge>24576)&&(R>423||!C)){A=vDt(n,E,0,ie,_e,Te,Ce,Ge,Ve,We-Ve,A),Ge=Se=Ce=0,Ve=We;for(var ut=0;ut<286;++ut)_e[ut]=0;for(var ut=0;ut<30;++ut)Te[ut]=0}var ae=2,xt=0,Re=F,B=J-i&32767;if(R>2&&Be==re(We-B))for(var r=Math.min(N,R)-1,a=Math.min(32767,We),l=Math.min(258,R);B<=a&&--Re&&J!=i;){if(n[We+ae]==n[We+ae-B]){for(var u=0;u<l&&n[We+u]==n[We+u-B];++u);if(u>ae){if(ae=u,xt=B,u>r)break;for(var f=Math.min(B,u-2),h=0,ut=0;ut<f;++ut){var v=We-B+ut&32767,S=G[v],w=v-S&32767;w>h&&(h=w,i=v)}}}J=i,i=G[J],B+=J-i&32767}if(xt){ie[Ge++]=268435456|pWe[ae]<<18|gDt[xt];var P=pWe[ae]&31,O=gDt[xt]&31;Ce+=Dhe[P]+Rhe[O],++_e[257+P],++Te[O],Ke=We+ae,++Se}else ie[Ge++]=n[We],++_e[n[We]]}}for(We=Math.max(We,Ke);We<m;++We)ie[Ge++]=n[We],++_e[n[We]];A=vDt(n,E,C,ie,_e,Te,Ce,Ge,Ve,We-Ve,A),C||(_.r=A&7|E[A/8|0]<<3,A-=7,_.h=j,_.p=G,_.i=We,_.w=Ke)}else{for(var We=_.w||0;We<m+C;We+=65535){var q=We+65535;q>=m&&(E[A/8|0]=C,q=m),A=wDt(E,A+1,n.subarray(We,q))}_.i=m}return UB(b,0,c+Nhe(A)+d)},"dflt"),Xkn=function(){for(var n=new Int32Array(256),e=0;e<256;++e){for(var s=e,c=9;--c;)s=(s&1&&-306674912)^s>>>1;n[e]=s}return n}(),Phe=t(function(){var n=-1;return{p:t(function(e){for(var s=n,c=0;c<e.length;++c)s=Xkn[s&255^e[c]]^s>>>8;n=s},"p"),d:t(function(){return~n},"d")}},"crc"),bWe=t(function(){var n=1,e=0;return{p:t(function(s){for(var c=n,d=e,_=s.length|0,m=0;m!=_;){for(var b=Math.min(m+2655,_);m<b;++m)d+=c+=s[m];c=(c&65535)+15*(c>>16),d=(d&65535)+15*(d>>16)}n=c,e=d},"p"),d:t(function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8},"d")}},"adler"),Pse=t(function(n,e,s,c,d){if(!d&&(d={l:1},e.dictionary)){var _=e.dictionary.subarray(-32768),m=new Dy(_.length+n.length);m.set(_),m.set(n,_.length),n=m,d.w=_.length}return Jkn(n,e.level==null?6:e.level,e.mem==null?d.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,s,c,d)},"dopt"),v$e=t(function(n,e){var s={};for(var c in n)s[c]=n[c];for(var c in e)s[c]=e[c];return s},"mrg"),Mkn=t(function(n,e,s){for(var c=n(),d=n.toString(),_=d.slice(d.indexOf("[")+1,d.lastIndexOf("]")).replace(/\s+/g,"").split(","),m=0;m<c.length;++m){var b=c[m],E=_[m];if(typeof b=="function"){e+=";"+E+"=";var C=b.toString();if(b.prototype)if(C.indexOf("[native code]")!=-1){var A=C.indexOf(" ",8)+1;e+=C.slice(A,C.indexOf("(",A))}else{e+=C;for(var D in b.prototype)e+=";"+E+".prototype."+D+"="+b.prototype[D].toString()}else e+=C}else s[E]=b}return e},"wcln"),oWe=[],$Ni=t(function(n){var e=[];for(var s in n)n[s].buffer&&e.push((n[s]=new n[s].constructor(n[s])).buffer);return e},"cbfs"),Ykn=t(function(n,e,s,c){if(!oWe[s]){for(var d="",_={},m=n.length-1,b=0;b<m;++b)d=Mkn(n[b],d,_);oWe[s]={c:Mkn(n[m],d,_),e:_}}var E=v$e({},oWe[s].e);return(0,Fkn.default)(oWe[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,E,$Ni(E),c)},"wrkr"),Lhe=t(function(){return[Dy,wO,g$e,Dhe,Rhe,_$e,CDt,jkn,zkn,qkn,h$e,Hkn,VB,lWe,BB,cWe,Nhe,UB,uh,y$e,Fhe,uee,$Dt]},"bInflt"),khe=t(function(){return[Dy,wO,g$e,Dhe,Rhe,_$e,pWe,gDt,Wkn,GK,Gkn,The,h$e,Kkn,oee,VB,bz,$he,uWe,dWe,yDt,Ahe,wDt,vDt,Nhe,UB,Jkn,Pse,b$e,uee]},"bDflt"),Qkn=t(function(){return[ADt,IDt,Q1,Phe,Xkn]},"gze"),Zkn=t(function(){return[TDt,nMn]},"guze"),eMn=t(function(){return[DDt,Q1,bWe]},"zle"),tMn=t(function(){return[RDt]},"zule"),uee=t(function(n){return postMessage(n,[n.buffer])},"pbf"),$Dt=t(function(n){return n&&{out:n.size&&new Dy(n.size),dictionary:n.dictionary}},"gopt"),Mhe=t(function(n,e,s,c,d,_){var m=Ykn(s,c,d,function(b,E){m.terminate(),_(b,E)});return m.postMessage([n,e],e.consume?[n.buffer]:[]),function(){m.terminate()}},"cbify"),WB=t(function(n){return n.ondata=function(e,s){return postMessage([e,s],[e.buffer])},function(e){e.data.length?(n.push(e.data[0],e.data[1]),postMessage([e.data[0].length])):n.flush()}},"astrm"),Ohe=t(function(n,e,s,c,d,_,m){var b,E=Ykn(n,c,d,function(C,A){C?(E.terminate(),e.ondata.call(e,C)):Array.isArray(A)?A.length==1?(e.queuedSize-=A[0],e.ondrain&&e.ondrain(A[0])):(A[1]&&E.terminate(),e.ondata.call(e,C,A[0],A[1])):m(A)});E.postMessage(s),e.queuedSize=0,e.push=function(C,A){e.ondata||uh(5),b&&e.ondata(uh(4,0,1),null,!!A),e.queuedSize+=C.length,E.postMessage([C,b=A],[C.buffer])},e.terminate=function(){E.terminate()},_&&(e.flush=function(){E.postMessage([])})},"astrmify"),CO=t(function(n,e){return n[e]|n[e+1]<<8},"b2"),eI=t(function(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0},"b4"),mDt=t(function(n,e){return eI(n,e)+eI(n,e+4)*4294967296},"b8"),Q1=t(function(n,e,s){for(;s;++e)n[e]=s,s>>>=8},"wbytes"),ADt=t(function(n,e){var s=e.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=e.level<2?4:e.level==9?2:0,n[9]=3,e.mtime!=0&&Q1(n,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),s){n[3]=8;for(var c=0;c<=s.length;++c)n[c+10]=s.charCodeAt(c)}},"gzh"),TDt=t(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&uh(6,"invalid gzip data");var e=n[3],s=10;e&4&&(s+=(n[10]|n[11]<<8)+2);for(var c=(e>>3&1)+(e>>4&1);c>0;c-=!n[s++]);return s+(e&2)},"gzs"),nMn=t(function(n){var e=n.length;return(n[e-4]|n[e-3]<<8|n[e-2]<<16|n[e-1]<<24)>>>0},"gzl"),IDt=t(function(n){return 10+(n.filename?n.filename.length+1:0)},"gzhl"),DDt=t(function(n,e){var s=e.level,c=s==0?0:s<6?1:s==9?3:2;if(n[0]=120,n[1]=c<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var d=bWe();d.p(e.dictionary),Q1(n,2,d.d())}},"zlh"),RDt=t(function(n,e){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&uh(6,"invalid zlib data"),(n[1]>>5&1)==+!e&&uh(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2},"zls");function Lse(n,e){return typeof n=="function"&&(e=n,n={}),this.ondata=e,n}t(Lse,"StrmOpt");var jB=function(){function n(e,s){if(typeof e=="function"&&(s=e,e={}),this.ondata=s,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Dy(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return t(n,"Deflate"),n.prototype.p=function(e,s){this.ondata(Pse(e,this.o,0,0,this.s),s)},n.prototype.push=function(e,s){this.ondata||uh(5),this.s.l&&uh(4);var c=e.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new Dy(c&-32768);d.set(this.b.subarray(0,this.s.z)),this.b=d}var _=this.b.length-this.s.z;this.b.set(e.subarray(0,_),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(_),32768),this.s.z=e.length-_+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=s&1,(this.s.z>this.s.w+8191||s)&&(this.p(this.b,s||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||uh(5),this.s.l&&uh(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();Bm.Deflate=jB;var rMn=function(){function n(e,s){Ohe([khe,function(){return[WB,jB]}],this,Lse.call(this,e,s),function(c){var d=new jB(c.data);onmessage=WB(d)},6,1)}return t(n,"AsyncDeflate"),n}();Bm.AsyncDeflate=rMn;function iMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe],function(c){return uee(b$e(c.data[0],c.data[1]))},0,s)}t(iMn,"deflate");Bm.deflate=iMn;function b$e(n,e){return Pse(n,e||{},0,0)}t(b$e,"deflateSync");Bm.deflateSync=b$e;var D3=function(){function n(e,s){typeof e=="function"&&(s=e,e={}),this.ondata=s;var c=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new Dy(32768),this.p=new Dy(0),c&&this.o.set(c)}return t(n,"Inflate"),n.prototype.e=function(e){if(this.ondata||uh(5),this.d&&uh(4),!this.p.length)this.p=e;else if(e.length){var s=new Dy(this.p.length+e.length);s.set(this.p),s.set(e,this.p.length),this.p=s}},n.prototype.c=function(e){this.s.i=+(this.d=e||!1);var s=this.s.b,c=y$e(this.p,this.s,this.o);this.ondata(UB(c,s,this.s.b),this.d),this.o=UB(c,this.s.b-32768),this.s.b=this.o.length,this.p=UB(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(e,s){this.e(e),this.c(s)},n}();Bm.Inflate=D3;var NDt=function(){function n(e,s){Ohe([Lhe,function(){return[WB,D3]}],this,Lse.call(this,e,s),function(c){var d=new D3(c.data);onmessage=WB(d)},7,0)}return t(n,"AsyncInflate"),n}();Bm.AsyncInflate=NDt;function PDt(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe],function(c){return uee(Fhe(c.data[0],$Dt(c.data[1])))},1,s)}t(PDt,"inflate");Bm.inflate=PDt;function Fhe(n,e){return y$e(n,{i:2},e&&e.out,e&&e.dictionary)}t(Fhe,"inflateSync");Bm.inflateSync=Fhe;var fWe=function(){function n(e,s){this.c=Phe(),this.l=0,this.v=1,jB.call(this,e,s)}return t(n,"Gzip"),n.prototype.push=function(e,s){this.c.p(e),this.l+=e.length,jB.prototype.push.call(this,e,s)},n.prototype.p=function(e,s){var c=Pse(e,this.o,this.v&&IDt(this.o),s&&8,this.s);this.v&&(ADt(c,this.o),this.v=0),s&&(Q1(c,c.length-8,this.c.d()),Q1(c,c.length-4,this.l)),this.ondata(c,s)},n.prototype.flush=function(){jB.prototype.flush.call(this)},n}();Bm.Gzip=fWe;Bm.Compress=fWe;var aMn=function(){function n(e,s){Ohe([khe,Qkn,function(){return[WB,jB,fWe]}],this,Lse.call(this,e,s),function(c){var d=new fWe(c.data);onmessage=WB(d)},8,1)}return t(n,"AsyncGzip"),n}();Bm.AsyncGzip=aMn;Bm.AsyncCompress=aMn;function sMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe,Qkn,function(){return[_We]}],function(c){return uee(_We(c.data[0],c.data[1]))},2,s)}t(sMn,"gzip");Bm.gzip=sMn;Bm.compress=sMn;function _We(n,e){e||(e={});var s=Phe(),c=n.length;s.p(n);var d=Pse(n,e,IDt(e),8),_=d.length;return ADt(d,e),Q1(d,_-8,s.d()),Q1(d,_-4,c),d}t(_We,"gzipSync");Bm.gzipSync=_We;Bm.compressSync=_We;var hWe=function(){function n(e,s){this.v=1,this.r=0,D3.call(this,e,s)}return t(n,"Gunzip"),n.prototype.push=function(e,s){if(D3.prototype.e.call(this,e),this.r+=e.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?TDt(c):4;if(d>c.length){if(!s)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}D3.prototype.c.call(this,s),this.s.f&&!this.s.l&&!s&&(this.v=Nhe(this.s.p)+9,this.s={i:0},this.o=new Dy(0),this.push(new Dy(0),s))},n}();Bm.Gunzip=hWe;var oMn=function(){function n(e,s){var c=this;Ohe([Lhe,Zkn,function(){return[WB,D3,hWe]}],this,Lse.call(this,e,s),function(d){var _=new hWe(d.data);_.onmember=function(m){return postMessage(m)},onmessage=WB(_)},9,0,function(d){return c.onmember&&c.onmember(d)})}return t(n,"AsyncGunzip"),n}();Bm.AsyncGunzip=oMn;function lMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe,Zkn,function(){return[mWe]}],function(c){return uee(mWe(c.data[0],c.data[1]))},3,s)}t(lMn,"gunzip");Bm.gunzip=lMn;function mWe(n,e){var s=TDt(n);return s+8>n.length&&uh(6,"invalid gzip data"),y$e(n.subarray(s,-8),{i:2},e&&e.out||new Dy(nMn(n)),e&&e.dictionary)}t(mWe,"gunzipSync");Bm.gunzipSync=mWe;var bDt=function(){function n(e,s){this.c=bWe(),this.v=1,jB.call(this,e,s)}return t(n,"Zlib"),n.prototype.push=function(e,s){this.c.p(e),jB.prototype.push.call(this,e,s)},n.prototype.p=function(e,s){var c=Pse(e,this.o,this.v&&(this.o.dictionary?6:2),s&&4,this.s);this.v&&(DDt(c,this.o),this.v=0),s&&Q1(c,c.length-4,this.c.d()),this.ondata(c,s)},n.prototype.flush=function(){jB.prototype.flush.call(this)},n}();Bm.Zlib=bDt;var ANi=function(){function n(e,s){Ohe([khe,eMn,function(){return[WB,jB,bDt]}],this,Lse.call(this,e,s),function(c){var d=new bDt(c.data);onmessage=WB(d)},10,1)}return t(n,"AsyncZlib"),n}();Bm.AsyncZlib=ANi;function TNi(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[khe,eMn,function(){return[SDt]}],function(c){return uee(SDt(c.data[0],c.data[1]))},4,s)}t(TNi,"zlib");Bm.zlib=TNi;function SDt(n,e){e||(e={});var s=bWe();s.p(n);var c=Pse(n,e,e.dictionary?6:2,4);return DDt(c,e),Q1(c,c.length-4,s.d()),c}t(SDt,"zlibSync");Bm.zlibSync=SDt;var gWe=function(){function n(e,s){D3.call(this,e,s),this.v=e&&e.dictionary?2:1}return t(n,"Unzlib"),n.prototype.push=function(e,s){if(D3.prototype.e.call(this,e),this.v){if(this.p.length<6&&!s)return;this.p=this.p.subarray(RDt(this.p,this.v-1)),this.v=0}s&&(this.p.length<4&&uh(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),D3.prototype.c.call(this,s)},n}();Bm.Unzlib=gWe;var cMn=function(){function n(e,s){Ohe([Lhe,tMn,function(){return[WB,D3,gWe]}],this,Lse.call(this,e,s),function(c){var d=new gWe(c.data);onmessage=WB(d)},11,0)}return t(n,"AsyncUnzlib"),n}();Bm.AsyncUnzlib=cMn;function uMn(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),Mhe(n,e,[Lhe,tMn,function(){return[yWe]}],function(c){return uee(yWe(c.data[0],$Dt(c.data[1])))},5,s)}t(uMn,"unzlib");Bm.unzlib=uMn;function yWe(n,e){return y$e(n.subarray(RDt(n,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}t(yWe,"unzlibSync");Bm.unzlibSync=yWe;var xDt=function(){function n(e,s){this.o=Lse.call(this,e,s)||{},this.G=hWe,this.I=D3,this.Z=gWe}return t(n,"Decompress"),n.prototype.i=function(){var e=this;this.s.ondata=function(s,c){e.ondata(s,c)}},n.prototype.push=function(e,s){if(this.ondata||uh(5),this.s)this.s.push(e,s);else{if(this.p&&this.p.length){var c=new Dy(this.p.length+e.length);c.set(this.p),c.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,s),this.p=null)}},n}();Bm.Decompress=xDt;var INi=function(){function n(e,s){xDt.call(this,e,s),this.queuedSize=0,this.G=oMn,this.I=NDt,this.Z=cMn}return t(n,"AsyncDecompress"),n.prototype.i=function(){var e=this;this.s.ondata=function(s,c,d){e.ondata(s,c,d)},this.s.ondrain=function(s){e.queuedSize-=s,e.ondrain&&e.ondrain(s)}},n.prototype.push=function(e,s){this.queuedSize+=e.length,xDt.prototype.push.call(this,e,s)},n}();Bm.AsyncDecompress=INi;function DNi(n,e,s){return s||(s=e,e={}),typeof s!="function"&&uh(7),n[0]==31&&n[1]==139&&n[2]==8?lMn(n,e,s):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?PDt(n,e,s):uMn(n,e,s)}t(DNi,"decompress");Bm.decompress=DNi;function RNi(n,e){return n[0]==31&&n[1]==139&&n[2]==8?mWe(n,e):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Fhe(n,e):yWe(n,e)}t(RNi,"decompressSync");Bm.decompressSync=RNi;var LDt=t(function(n,e,s,c){for(var d in n){var _=n[d],m=e+d,b=c;Array.isArray(_)&&(b=v$e(c,_[1]),_=_[0]),_ instanceof Dy?s[m]=[_,b]:(s[m+="/"]=[new Dy(0),b],LDt(_,m,s,c))}},"fltn"),Okn=typeof TextEncoder<"u"&&new TextEncoder,EDt=typeof TextDecoder<"u"&&new TextDecoder,pMn=0;try{EDt.decode(oee,{stream:!0}),pMn=1}catch{}var dMn=t(function(n){for(var e="",s=0;;){var c=n[s++],d=(c>127)+(c>223)+(c>239);if(s+d>n.length)return{s:e,r:UB(n,s-1)};d?d==3?(c=((c&15)<<18|(n[s++]&63)<<12|(n[s++]&63)<<6|n[s++]&63)-65536,e+=String.fromCharCode(55296|c>>10,56320|c&1023)):d&1?e+=String.fromCharCode((c&31)<<6|n[s++]&63):e+=String.fromCharCode((c&15)<<12|(n[s++]&63)<<6|n[s++]&63):e+=String.fromCharCode(c)}},"dutf8"),NNi=function(){function n(e){this.ondata=e,pMn?this.t=new TextDecoder:this.p=oee}return t(n,"DecodeUTF8"),n.prototype.push=function(e,s){if(this.ondata||uh(5),s=!!s,this.t){this.ondata(this.t.decode(e,{stream:!0}),s),s&&(this.t.decode().length&&uh(8),this.t=null);return}this.p||uh(4);var c=new Dy(this.p.length+e.length);c.set(this.p),c.set(e,this.p.length);var d=dMn(c),_=d.s,m=d.r;s?(m.length&&uh(8),this.p=null):this.p=m,this.ondata(_,s)},n}();Bm.DecodeUTF8=NNi;var PNi=function(){function n(e){this.ondata=e}return t(n,"EncodeUTF8"),n.prototype.push=function(e,s){this.ondata||uh(5),this.d&&uh(4),this.ondata(cee(e),this.d=s||!1)},n}();Bm.EncodeUTF8=PNi;function cee(n,e){if(e){for(var s=new Dy(n.length),c=0;c<n.length;++c)s[c]=n.charCodeAt(c);return s}if(Okn)return Okn.encode(n);for(var d=n.length,_=new Dy(n.length+(n.length>>1)),m=0,b=t(function(A){_[m++]=A},"w"),c=0;c<d;++c){if(m+5>_.length){var E=new Dy(m+8+(d-c<<1));E.set(_),_=E}var C=n.charCodeAt(c);C<128||e?b(C):C<2048?(b(192|C>>6),b(128|C&63)):C>55295&&C<57344?(C=65536+(C&1047552)|n.charCodeAt(++c)&1023,b(240|C>>18),b(128|C>>12&63),b(128|C>>6&63),b(128|C&63)):(b(224|C>>12),b(128|C>>6&63),b(128|C&63))}return UB(_,0,m)}t(cee,"strToU8");Bm.strToU8=cee;function kDt(n,e){if(e){for(var s="",c=0;c<n.length;c+=16384)s+=String.fromCharCode.apply(null,n.subarray(c,c+16384));return s}else{if(EDt)return EDt.decode(n);var d=dMn(n),_=d.s,s=d.r;return s.length&&uh(8),_}}t(kDt,"strFromU8");Bm.strFromU8=kDt;var fMn=t(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),_Mn=t(function(n,e){return e+30+CO(n,e+26)+CO(n,e+28)},"slzh"),hMn=t(function(n,e,s){var c=CO(n,e+28),d=kDt(n.subarray(e+46,e+46+c),!(CO(n,e+8)&2048)),_=e+46+c,m=eI(n,e+20),b=s&&m==4294967295?mMn(n,_):[m,eI(n,e+24),eI(n,e+42)],E=b[0],C=b[1],A=b[2];return[CO(n,e+10),E,C,d,_+CO(n,e+30)+CO(n,e+32),A]},"zh"),mMn=t(function(n,e){for(;CO(n,e)!=1;e+=4+CO(n,e+2));return[mDt(n,e+12),mDt(n,e+4),mDt(n,e+20)]},"z64e"),lee=t(function(n){var e=0;if(n)for(var s in n){var c=n[s].length;c>65535&&uh(9),e+=c+4}return e},"exfl"),Ihe=t(function(n,e,s,c,d,_,m,b){var E=c.length,C=s.extra,A=b&&b.length,D=lee(C);Q1(n,e,m!=null?33639248:67324752),e+=4,m!=null&&(n[e++]=20,n[e++]=s.os),n[e]=20,e+=2,n[e++]=s.flag<<1|(_<0&&8),n[e++]=d&&8,n[e++]=s.compression&255,n[e++]=s.compression>>8;var N=new Date(s.mtime==null?Date.now():s.mtime),F=N.getFullYear()-1980;if((F<0||F>119)&&uh(10),Q1(n,e,F<<25|N.getMonth()+1<<21|N.getDate()<<16|N.getHours()<<11|N.getMinutes()<<5|N.getSeconds()>>1),e+=4,_!=-1&&(Q1(n,e,s.crc),Q1(n,e+4,_<0?-_-2:_),Q1(n,e+8,s.size)),Q1(n,e+12,E),Q1(n,e+14,D),e+=16,m!=null&&(Q1(n,e,A),Q1(n,e+6,s.attrs),Q1(n,e+10,m),e+=14),n.set(c,e),e+=E,D)for(var W in C){var G=C[W],j=G.length;Q1(n,e,+W),Q1(n,e+2,j),n.set(G,e+4),e+=4+j}return A&&(n.set(b,e),e+=A),e},"wzh"),MDt=t(function(n,e,s,c,d){Q1(n,e,101010256),Q1(n,e+8,s),Q1(n,e+10,s),Q1(n,e+12,c),Q1(n,e+16,d)},"wzf"),m$e=function(){function n(e){this.filename=e,this.c=Phe(),this.size=0,this.compression=0}return t(n,"ZipPassThrough"),n.prototype.process=function(e,s){this.ondata(null,e,s)},n.prototype.push=function(e,s){this.ondata||uh(5),this.c.p(e),this.size+=e.length,s&&(this.crc=this.c.d()),this.process(e,s||!1)},n}();Bm.ZipPassThrough=m$e;var LNi=function(){function n(e,s){var c=this;s||(s={}),m$e.call(this,e),this.d=new jB(s,function(d,_){c.ondata(null,d,_)}),this.compression=8,this.flag=fMn(s.level)}return t(n,"ZipDeflate"),n.prototype.process=function(e,s){try{this.d.push(e,s)}catch(c){this.ondata(c,null,s)}},n.prototype.push=function(e,s){m$e.prototype.push.call(this,e,s)},n}();Bm.ZipDeflate=LNi;var kNi=function(){function n(e,s){var c=this;s||(s={}),m$e.call(this,e),this.d=new rMn(s,function(d,_,m){c.ondata(d,_,m)}),this.compression=8,this.flag=fMn(s.level),this.terminate=this.d.terminate}return t(n,"AsyncZipDeflate"),n.prototype.process=function(e,s){this.d.push(e,s)},n.prototype.push=function(e,s){m$e.prototype.push.call(this,e,s)},n}();Bm.AsyncZipDeflate=kNi;var MNi=function(){function n(e){this.ondata=e,this.u=[],this.d=1}return t(n,"Zip"),n.prototype.add=function(e){var s=this;if(this.ondata||uh(5),this.d&2)this.ondata(uh(4+(this.d&1)*8,0,1),null,!1);else{var c=cee(e.filename),d=c.length,_=e.comment,m=_&&cee(_),b=d!=e.filename.length||m&&_.length!=m.length,E=d+lee(e.extra)+30;d>65535&&this.ondata(uh(11,0,1),null,!1);var C=new Dy(E);Ihe(C,0,e,c,b,-1);var A=[C],D=t(function(){for(var j=0,K=A;j<K.length;j++){var ee=K[j];s.ondata(null,ee,!1)}A=[]},"pAll_1"),N=this.d;this.d=0;var F=this.u.length,W=v$e(e,{f:c,u:b,o:m,t:t(function(){e.terminate&&e.terminate()},"t"),r:t(function(){if(D(),N){var j=s.u[F+1];j?j.r():s.d=1}N=1},"r")}),G=0;e.ondata=function(j,K,ee){if(j)s.ondata(j,K,ee),s.terminate();else if(G+=K.length,A.push(K),ee){var re=new Dy(16);Q1(re,0,134695760),Q1(re,4,e.crc),Q1(re,8,G),Q1(re,12,e.size),A.push(re),W.c=G,W.b=E+G+16,W.crc=e.crc,W.size=e.size,N&&W.r(),N=1}else N&&D()},this.u.push(W)}},n.prototype.end=function(){var e=this;if(this.d&2){this.ondata(uh(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:t(function(){e.d&1&&(e.u.splice(-1,1),e.e())},"r"),t:t(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var e=0,s=0,c=0,d=0,_=this.u;d<_.length;d++){var m=_[d];c+=46+m.f.length+lee(m.extra)+(m.o?m.o.length:0)}for(var b=new Dy(c+22),E=0,C=this.u;E<C.length;E++){var m=C[E];Ihe(b,e,m,m.f,m.u,-m.c-2,s,m.o),e+=46+m.f.length+lee(m.extra)+(m.o?m.o.length:0),s+=m.b}MDt(b,e,this.u.length,c,s),this.ondata(null,b,!0),this.d=2},n.prototype.terminate=function(){for(var e=0,s=this.u;e<s.length;e++){var c=s[e];c.t()}this.d=2},n}();Bm.Zip=MNi;function ONi(n,e,s){s||(s=e,e={}),typeof s!="function"&&uh(7);var c={};LDt(n,"",c,e);var d=Object.keys(c),_=d.length,m=0,b=0,E=_,C=new Array(_),A=[],D=t(function(){for(var j=0;j<A.length;++j)A[j]()},"tAll"),N=t(function(j,K){vWe(function(){s(j,K)})},"cbd");vWe(function(){N=s});var F=t(function(){var j=new Dy(b+22),K=m,ee=b-m;b=0;for(var re=0;re<E;++re){var ie=C[re];try{var _e=ie.c.length;Ihe(j,b,ie,ie.f,ie.u,_e);var Te=30+ie.f.length+lee(ie.extra),Se=b+Te;j.set(ie.c,Se),Ihe(j,m,ie,ie.f,ie.u,_e,b,ie.m),m+=16+Te+(ie.m?ie.m.length:0),b=Se+_e}catch(Ce){return N(Ce,null)}}MDt(j,m,C.length,ee,K),N(null,j)},"cbf");_||F();for(var W=t(function(j){var K=d[j],ee=c[K],re=ee[0],ie=ee[1],_e=Phe(),Te=re.length;_e.p(re);var Se=cee(K),Ce=Se.length,We=ie.comment,Ge=We&&cee(We),Ke=Ge&&Ge.length,Ve=lee(ie.extra),Be=ie.level==0?0:8,J=t(function(i,R){if(i)D(),N(i,null);else{var ut=R.length;C[j]=v$e(ie,{size:Te,crc:_e.d(),c:R,f:Se,m:Ge,u:Ce!=K.length||Ge&&We.length!=Ke,compression:Be}),m+=30+Ce+Ve+ut,b+=76+2*(Ce+Ve)+(Ke||0)+ut,--_||F()}},"cbl");if(Ce>65535&&J(uh(11,0,1),null),!Be)J(null,re);else if(Te<16e4)try{J(null,b$e(re,ie))}catch(i){J(i,null)}else A.push(iMn(re,ie,J))},"_loop_1"),G=0;G<E;++G)W(G);return D}t(ONi,"zip");Bm.zip=ONi;function FNi(n,e){e||(e={});var s={},c=[];LDt(n,"",s,e);var d=0,_=0;for(var m in s){var b=s[m],E=b[0],C=b[1],A=C.level==0?0:8,D=cee(m),N=D.length,F=C.comment,W=F&&cee(F),G=W&&W.length,j=lee(C.extra);N>65535&&uh(11);var K=A?b$e(E,C):E,ee=K.length,re=Phe();re.p(E),c.push(v$e(C,{size:E.length,crc:re.d(),c:K,f:D,m:W,u:N!=m.length||W&&F.length!=G,o:d,compression:A})),d+=30+N+j+ee,_+=76+2*(N+j)+(G||0)+ee}for(var ie=new Dy(_+22),_e=d,Te=_-d,Se=0;Se<c.length;++Se){var D=c[Se];Ihe(ie,D.o,D,D.f,D.u,D.c.length);var Ce=30+D.f.length+lee(D.extra);ie.set(D.c,D.o+Ce),Ihe(ie,d,D,D.f,D.u,D.c.length,D.o,D.m),d+=16+Ce+(D.m?D.m.length:0)}return MDt(ie,d,c.length,Te,_e),ie}t(FNi,"zipSync");Bm.zipSync=FNi;var gMn=function(){function n(){}return t(n,"UnzipPassThrough"),n.prototype.push=function(e,s){this.ondata(null,e,s)},n.compression=0,n}();Bm.UnzipPassThrough=gMn;var BNi=function(){function n(){var e=this;this.i=new D3(function(s,c){e.ondata(null,s,c)})}return t(n,"UnzipInflate"),n.prototype.push=function(e,s){try{this.i.push(e,s)}catch(c){this.ondata(c,null,s)}},n.compression=8,n}();Bm.UnzipInflate=BNi;var VNi=function(){function n(e,s){var c=this;s<32e4?this.i=new D3(function(d,_){c.ondata(null,d,_)}):(this.i=new NDt(function(d,_,m){c.ondata(d,_,m)}),this.terminate=this.i.terminate)}return t(n,"AsyncUnzipInflate"),n.prototype.push=function(e,s){this.i.terminate&&(e=UB(e,0)),this.i.push(e,s)},n.compression=8,n}();Bm.AsyncUnzipInflate=VNi;var UNi=function(){function n(e){this.onfile=e,this.k=[],this.o={0:gMn},this.p=oee}return t(n,"Unzip"),n.prototype.push=function(e,s){var c=this;if(this.onfile||uh(5),this.p||uh(4),this.c>0){var d=Math.min(this.c,e.length),_=e.subarray(0,d);if(this.c-=d,this.d?this.d.push(_,!this.c):this.k[0].push(_),e=e.subarray(d),e.length)return this.push(e,s)}else{var m=0,b=0,E=void 0,C=void 0;this.p.length?e.length?(C=new Dy(this.p.length+e.length),C.set(this.p),C.set(e,this.p.length)):C=this.p:C=e;for(var A=C.length,D=this.c,N=D&&this.d,F=t(function(){var K,ee=eI(C,b);if(ee==67324752){m=1,E=b,W.d=null,W.c=0;var re=CO(C,b+6),ie=CO(C,b+8),_e=re&2048,Te=re&8,Se=CO(C,b+26),Ce=CO(C,b+28);if(A>b+30+Se+Ce){var We=[];W.k.unshift(We),m=2;var Ge=eI(C,b+18),Ke=eI(C,b+22),Ve=kDt(C.subarray(b+30,b+=30+Se),!_e);Ge==4294967295?(K=Te?[-2]:mMn(C,b),Ge=K[0],Ke=K[1]):Te&&(Ge=-1),b+=Ce,W.c=Ge;var Be,J={name:Ve,compression:ie,start:t(function(){if(J.ondata||uh(5),!Ge)J.ondata(null,oee,!0);else{var i=c.o[ie];i||J.ondata(uh(14,"unknown compression type "+ie,1),null,!1),Be=Ge<0?new i(Ve):new i(Ve,Ge,Ke),Be.ondata=function(xt,Re,B){J.ondata(xt,Re,B)};for(var R=0,ut=We;R<ut.length;R++){var ae=ut[R];Be.push(ae,!1)}c.k[0]==We&&c.c?c.d=Be:Be.push(oee,!0)}},"start"),terminate:t(function(){Be&&Be.terminate&&Be.terminate()},"terminate")};Ge>=0&&(J.size=Ge,J.originalSize=Ke),W.onfile(J)}return"break"}else if(D){if(ee==134695760)return E=b+=12+(D==-2&&8),m=3,W.c=0,"break";if(ee==33639248)return E=b-=4,m=3,W.c=0,"break"}},"_loop_2"),W=this;b<A-4;++b){var G=F();if(G==="break")break}if(this.p=oee,D<0){var j=m?C.subarray(0,E-12-(D==-2&&8)-(eI(C,E-16)==134695760&&4)):C.subarray(0,b);N?N.push(j,!!m):this.k[+(m==2)].push(j)}if(m&2)return this.push(C.subarray(b),s);this.p=C.subarray(b)}s&&(this.c&&uh(13),this.p=null)},n.prototype.register=function(e){this.o[e.compression]=e},n}();Bm.Unzip=UNi;var vWe=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function jNi(n,e,s){s||(s=e,e={}),typeof s!="function"&&uh(7);var c=[],d=t(function(){for(var j=0;j<c.length;++j)c[j]()},"tAll"),_={},m=t(function(j,K){vWe(function(){s(j,K)})},"cbd");vWe(function(){m=s});for(var b=n.length-22;eI(n,b)!=101010256;--b)if(!b||n.length-b>65558)return m(uh(13,0,1),null),d;var E=CO(n,b+8);if(E){var C=E,A=eI(n,b+16),D=A==4294967295||C==65535;if(D){var N=eI(n,b-12);D=eI(n,N)==101075792,D&&(C=E=eI(n,N+32),A=eI(n,N+48))}for(var F=e&&e.filter,W=t(function(j){var K=hMn(n,A,D),ee=K[0],re=K[1],ie=K[2],_e=K[3],Te=K[4],Se=K[5],Ce=_Mn(n,Se);A=Te;var We=t(function(Ke,Ve){Ke?(d(),m(Ke,null)):(Ve&&(_[_e]=Ve),--E||m(null,_))},"cbl");if(!F||F({name:_e,size:re,originalSize:ie,compression:ee}))if(!ee)We(null,UB(n,Ce,Ce+re));else if(ee==8){var Ge=n.subarray(Ce,Ce+re);if(ie<524288||re>.8*ie)try{We(null,Fhe(Ge,{out:new Dy(ie)}))}catch(Ke){We(Ke,null)}else c.push(PDt(Ge,{size:ie},We))}else We(uh(14,"unknown compression type "+ee,1),null);else We(null,null)},"_loop_3"),G=0;G<C;++G)W(G)}else m(null,{});return d}t(jNi,"unzip");Bm.unzip=jNi;function WNi(n,e){for(var s={},c=n.length-22;eI(n,c)!=101010256;--c)(!c||n.length-c>65558)&&uh(13);var d=CO(n,c+8);if(!d)return{};var _=eI(n,c+16),m=_==4294967295||d==65535;if(m){var b=eI(n,c-12);m=eI(n,b)==101075792,m&&(d=eI(n,b+32),_=eI(n,b+48))}for(var E=e&&e.filter,C=0;C<d;++C){var A=hMn(n,_,m),D=A[0],N=A[1],F=A[2],W=A[3],G=A[4],j=A[5],K=_Mn(n,j);_=G,(!E||E({name:W,size:N,originalSize:F,compression:D}))&&(D?D==8?s[W]=Fhe(n.subarray(K,K+N),{out:new Dy(F)}):uh(14,"unknown compression type "+D):s[W]=UB(n,K,K+N))}return s}t(WNi,"unzipSync");Bm.unzipSync=WNi});var vMn=st(Xk=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xk,"__esModule",{value:!0});Xk.unzipSync=Xk.zipSync=Xk.gunzipSync=Xk.gunzip=Xk.gzipSync=Xk.zipDirectory=Xk.unzipAppPackage=void 0;var pee=yMn();Object.defineProperty(Xk,"unzipSync",{enumerable:!0,get:t(function(){return pee.unzipSync},"get")});Object.defineProperty(Xk,"zipSync",{enumerable:!0,get:t(function(){return pee.zipSync},"get")});Object.defineProperty(Xk,"gzipSync",{enumerable:!0,get:t(function(){return pee.gzipSync},"get")});Object.defineProperty(Xk,"gunzipSync",{enumerable:!0,get:t(function(){return pee.gunzipSync},"get")});var FDt=Zwe(),BDt=KW(),ODt="status.json",zNi=t(async(n,e,s)=>{let c=new Uint8Array(n.readFileSync(e)),d=(0,pee.unzipSync)(c);if(d["package_inventory.csv"]&&delete d["package_inventory.csv"],ODt in d){let m=JSON.parse(it.from(d[ODt]).toString("utf8"));if(m.status==="error")throw new Error("Application download failed with error, "+m.message);delete d[ODt]}return{files:Object.entries(d).map(([m,b])=>{let E=BDt.path.join(s,m),C=BDt.path.dirname(E);return FDt.FileSystem.ensureDirSync(n,C),n.writeFileSync(E,b),E})}},"unzipAppPackage");Xk.unzipAppPackage=zNi;var GNi=t(async(n,e,s)=>new Promise((c,d)=>{try{let _=new pee.Zip,m=FDt.FileSystem.createWriteStream(n,s);_.ondata=(C,A,D)=>{C?(m.destroy(),d(C)):(m.write(A),D&&m.end())},m.on("finish",()=>{c(s)}),m.on("error",C=>{d(C)});let E=new FDt.TsMorphFileSystemWrapper(n).globSync(["**"],{cwd:e});E.length===0&&d(`No files found in ${e} directory to create zip.`);for(let C of E){let A=BDt.path.normalize(C),D=n.readFileSync(A),N=new pee.ZipDeflate(A.replace(e,""),{level:6});_.add(N),N.push(D,!0)}_.end()}catch(_){d(_)}}),"zipDirectory");Xk.zipDirectory=GNi;var qNi=t(n=>new Promise((e,s)=>(0,pee.gunzip)(n,(c,d)=>{c?s(c):e(d)})),"gunzip");Xk.gunzip=qNi});var bMn=st(SWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(SWe,"__esModule",{value:!0});SWe.NoOpTelemetry=void 0;var VDt=class{static{t(this,"NoOpTelemetry")}startTimerEvent(){return{end:t(()=>({name:"",data:{}}),"end")}}start=t(()=>{},"start");sendEvent=t(()=>{},"sendEvent");error=t(()=>{},"error")};SWe.NoOpTelemetry=VDt});var SMn=st((VNs,HNi)=>{HNi.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var CMn=st(V9=>{"use strict";pe();ue();oe();ce();le();var xMn=SMn(),tI=Ye.env;Object.defineProperty(V9,"_vendors",{value:xMn.map(function(n){return n.constant})});V9.name=null;V9.isPR=null;V9.id=null;tI.CI!=="false"&&xMn.forEach(function(n){let s=(Array.isArray(n.env)?n.env:[n.env]).every(function(c){return EMn(c)});V9[n.constant]=s,s&&(V9.name=n.name,V9.isPR=KNi(n),V9.id=n.constant)});V9.isCI=!!(tI.CI!=="false"&&(tI.BUILD_ID||tI.BUILD_NUMBER||tI.CI||tI.CI_APP_ID||tI.CI_BUILD_ID||tI.CI_BUILD_NUMBER||tI.CI_NAME||tI.CONTINUOUS_INTEGRATION||tI.RUN_ID||V9.name));function EMn(n){return typeof n=="string"?!!tI[n]:"env"in n?tI[n.env]&&tI[n.env].includes(n.includes):"any"in n?n.any.some(function(e){return!!tI[e]}):Object.keys(n).every(function(e){return tI[e]===n[e]})}t(EMn,"checkEnv");function KNi(n){switch(typeof n.pr){case"string":return!!tI[n.pr];case"object":return"env"in n.pr?"any"in n.pr?n.pr.any.some(function(e){return tI[n.pr.env]===e}):n.pr.env in tI&&tI[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some(function(e){return!!tI[e]}):EMn(n.pr);default:return null}}t(KNi,"checkPR")});var UDt=st(Bhe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Bhe,"__esModule",{value:!0});Bhe.DatapointType=Bhe.NETWORK_TIMEOUT_MS=void 0;Bhe.NETWORK_TIMEOUT_MS=2e3;var wMn;(function(n){n[n.Page=0]="Page",n[n.Event=1]="Event",n[n.User=2]="User",n[n.PerformanceTrace=3]="PerformanceTrace"})(wMn||(Bhe.DatapointType=wMn={}))});var $Mn=st(xWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xWe,"__esModule",{value:!0});xWe.AppSeeTimerMetric=void 0;var jDt=class{static{t(this,"AppSeeTimerMetric")}name;startTime;constructor(e){this.name=e,this.startTime=Date.now()}getDurationMs(){let e=Date.now();return{duration:e-this.startTime,now:e}}end(e){let s=Date.now()-this.startTime;return{name:this.name,appInfo:e?.appInfo||{},data:{...e?.data,durationMs:s}}}};xWe.AppSeeTimerMetric=jDt});var zDt=st(EWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(EWe,"__esModule",{value:!0});EWe.AbstractAppSeeClient=void 0;var JNi=$Mn(),WDt=class{static{t(this,"AbstractAppSeeClient")}config;telemetryAttributes;sdkVersion;clientName;hostname;session;startPromise;constructor(e,s){this.config=e,this.telemetryAttributes=s,this.sdkVersion=s.sdkVersion,this.clientName=s.clientName,this.hostname=s.hostname}startTimerEvent(e){return new JNi.AppSeeTimerMetric(e)}start(){return this.startPromise||(this.startPromise=this.doStart()),this.startPromise}sendEvent(e){this.start().then(()=>this.doSendEvent(e)).catch(()=>{})}error(e,s,c){this.sendEvent([{name:"error",data:{event:e,...s instanceof Error?{name:s.name,message:s.message,stack:s.stack}:{message:s?.toString()},...c}}])}};EWe.AbstractAppSeeClient=WDt});var TMn=st(zB=>{"use strict";pe();ue();oe();ce();le();var XNi=zB&&zB.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),YNi=zB&&zB.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),QNi=zB&&zB.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&XNi(e,n,s);return YNi(e,n),e},ZNi=zB&&zB.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(zB,"__esModule",{value:!0});zB.NodeTelemetryClient=void 0;var qDt=QNi((gB(),Sc(mB))),GDt=ZNi(CMn()),CWe=UDt(),ePi=zDt();function AMn(){return EL("node:crypto").randomBytes(16).toString("hex")}t(AMn,"generateHexString");async function tPi(){let n=`${qDt.userInfo().username}:${qDt.hostname()}`;if(!n)return"unknown";let e=new TextEncoder().encode(n),s=await crypto.subtle.digest("SHA-256",e);return it.from(s).toString("hex")}t(tPi,"getUserHash");var HDt=class extends ePi.AbstractAppSeeClient{static{t(this,"NodeTelemetryClient")}constructor(e,s){super(e,{...s??{},clientName:s?.clientName??"cli"})}userId;async doStart(){try{if(this.session)return;this.userId=await tPi();let e=AMn(),s={RequestId:AMn(),TabId:e,SystemLocale:(Ye.env.LANG||"unknown").split(".")[0],AppUserId:this.userId,ScreenHeight:0,ScreenWidth:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},c=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(s),signal:AbortSignal.timeout(CWe.NETWORK_TIMEOUT_MS)}),d=await c.json();if(c.ok)this.session={...d,TabId:e};else throw new Error(`Failed to start session with status ${c.status}: ${d.Error}`)}catch{}}doSendEvent(e){try{if(!this.session)return;let s=this.getDefaultDataValues(),c=Array.isArray(e)?e:[e],d=Date.now(),_=this.hostname?{hostname:this.hostname}:{},m=c.map(C=>({t:CWe.DatapointType.Event,d,n:C.name,p:{scopeId:C.appInfo?.scopeId,..._,...s,...C.data}})),b=this.applyCITelemetry({..._});m.push({t:CWe.DatapointType.User,d,n:this.userId,p:b});let E={SessionId:this.session.SessionId,DataPoints:m,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(E),signal:AbortSignal.timeout(CWe.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){let e={os:qDt.type(),version:this.sdkVersion||"unknown",nodeVersion:Ye.version,clientName:this.clientName};return this.applyCITelemetry(e)}applyCITelemetry(e){return GDt.default.isCI?{...e,ci:!0,ciName:GDt.default.name,ciPR:GDt.default.isPR}:e}};zB.NodeTelemetryClient=HDt});var IMn=st($We=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($We,"__esModule",{value:!0});$We.BrowserTelemetryClient=void 0;var wWe=UDt(),nPi=zDt(),KDt=class extends nPi.AbstractAppSeeClient{static{t(this,"BrowserTelemetryClient")}constructor(e,s){let{ideVersion:c,...d}=s??{};super(e,{...d,clientName:s?.clientName??"ide"}),this.ideVersion=c}ideVersion;userId;async getUserHash(){let e=await this.getUserIdentifier(),s=new TextEncoder().encode(e),c=await crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(c)).map(_=>_.toString(16).padStart(2,"0")).join("")}async getUserIdentifier(){if(typeof window>"u")return"unknown";let e="sdk_telemetry_user_id";try{let s=localStorage.getItem(e);return s||(s=`anon_${Date.now()}_${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(e,s)),s}catch{return`temp_${Math.random().toString(36).substring(2,15)}`}}generateHexString(){return crypto.randomUUID()}async doStart(){try{if(this.session)return;this.userId=await this.getUserHash();let e=this.generateHexString(),s={RequestId:this.generateHexString(),TabId:e,SystemLocale:nt.language??"unknown",AppUserId:this.userId,ScreenHeight:typeof screen<"u"?screen.height:0,ScreenWidth:typeof screen<"u"?screen.width:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},c=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(s),signal:AbortSignal.timeout(wWe.NETWORK_TIMEOUT_MS)}),d=await c.json();if(c.ok)this.session={...d,TabId:e};else throw new Error(`Failed to start session with status ${c.status}: ${d.Error}`)}catch{}}doSendEvent(e){try{if(!this.session)return;let s=this.getDefaultDataValues(),c=Array.isArray(e)?e:[e],d=Date.now(),_=this.hostname?{hostname:this.hostname}:{},m=c.map(C=>({t:wWe.DatapointType.Event,d,n:C.name,p:{scopeId:C.appInfo?.scopeId,..._,...s,...C.data}})),b={hostname:_};m.push({t:wWe.DatapointType.User,d,n:this.userId,p:b});let E={SessionId:this.session.SessionId,DataPoints:m,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(E),signal:AbortSignal.timeout(wWe.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){return{browser:nt.userAgent||"unknown",version:this.sdkVersion||"unknown",clientName:this.clientName,ideVersion:this.ideVersion||"unknown"}}};$We.BrowserTelemetryClient=KDt});var NMn=st((TPs,RMn)=>{"use strict";pe();ue();oe();ce();le();var JDt=Object.defineProperty,rPi=Object.getOwnPropertyDescriptor,iPi=Object.getOwnPropertyNames,aPi=Object.prototype.hasOwnProperty,sPi=t((n,e)=>{for(var s in e)JDt(n,s,{get:e[s],enumerable:!0})},"__export"),oPi=t((n,e,s,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of iPi(e))!aPi.call(n,d)&&d!==s&&JDt(n,d,{get:t(()=>e[d],"get"),enumerable:!(c=rPi(e,d))||c.enumerable});return n},"__copyProps"),lPi=t(n=>oPi(JDt({},"__esModule",{value:!0}),n),"__toCommonJS"),DMn={};sPi(DMn,{getAppSeeConfig:t(()=>cPi,"getAppSeeConfig")});RMn.exports=lPi(DMn);var cPi=t(()=>({APIKey:"demonightlycrf:6488f3cdc18547c19b2c8852b276a210",APIAuth:"f3bfba5cdd1f417589a0b1b290fd3346",BaseUrl:"https://api-appsee.service-now.com"}),"getAppSeeConfig")});var PMn=st(AWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AWe,"__esModule",{value:!0});AWe.TelemetryFactory=void 0;var uPi=bMn(),pPi=TMn(),dPi=IMn(),fPi=NMn(),XDt=class{static{t(this,"TelemetryFactory")}static create(e){let s=(0,fPi.getAppSeeConfig)();if(!e||!e.type||!s.APIKey||!s.APIAuth||!s.BaseUrl)return new uPi.NoOpTelemetry;if(e.type==="node")return new pPi.NodeTelemetryClient(s,e.attributes);if(e.type==="browser")return new dPi.BrowserTelemetryClient(s,e.attributes);throw new Error("Invalid telemetry type.")}};AWe.TelemetryFactory=XDt});var LMn=st(TWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(TWe,"__esModule",{value:!0});TWe.TelemetryFactory=void 0;var _Pi=PMn();Object.defineProperty(TWe,"TelemetryFactory",{enumerable:!0,get:t(function(){return _Pi.TelemetryFactory},"get")})});var kMn=st(YDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(YDt,"__esModule",{value:!0});YDt.validateClaimsFile=yPi;var hPi=YZ(),mPi=uDt(),gPi={id:"/.claims",type:"object",patternProperties:{".*":{type:"array"}}};function yPi(n){let e=hPi.JSON5.parse(n),c=new mPi.Validator().validate(e,gPi);if(c.errors&&c.errors.length>0)throw new Error(`Error reading .claims.json, ${c.errors[0]?.stack}`)}t(yPi,"validateClaimsFile")});var Lc=st(Ex=>{"use strict";pe();ue();oe();ce();le();var vPi=Ex&&Ex.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),JA=Ex&&Ex.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vPi(e,n,s)};Object.defineProperty(Ex,"__esModule",{value:!0});JA(CIt(),Ex);JA(EPn(),Ex);JA(Mje(),Ex);JA(zje(),Ex);JA(tLn(),Ex);JA(nLn(),Ex);JA(sLn(),Ex);JA(tIt(),Ex);JA(Pkn(),Ex);JA(Eje(),Ex);JA(WUe(),Ex);JA(eDt(),Ex);JA(YZ(),Ex);JA(Lkn(),Ex);JA(Zwe(),Ex);JA(KW(),Ex);JA(HW(),Ex);JA(PIt(),Ex);JA(vMn(),Ex);JA(qIt(),Ex);JA(LMn(),Ex);JA(kMn(),Ex);JA(fDt(),Ex)});var MMn=st(GB=>{"use strict";pe();ue();oe();ce();le();var bPi=GB&&GB.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),SPi=GB&&GB.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),xPi=GB&&GB.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&bPi(e,n,s);return SPi(e,n),e};Object.defineProperty(GB,"__esModule",{value:!0});GB.writeFileWithParentDirs=CPi;GB.createDirIfNotExists=wPi;GB.defaultDownloadDir=$Pi;GB.writeFileStream=APi;var Vhe=Lc(),EPi=xPi((gB(),Sc(mB)));function CPi(n,{path:e,content:s,originalPath:c}){let d=Vhe.path.dirname(e);Vhe.FileSystem.existsSync(n,d)||n.mkdirSync(d,{recursive:!0}),c?n.copyFileSync(c,e):n.writeFileSync(e,s,{encoding:"utf-8"})}t(CPi,"writeFileWithParentDirs");function wPi(n,e){Vhe.FileSystem.existsSync(e,n)||e.mkdirSync(n,{recursive:!0})}t(wPi,"createDirIfNotExists");function $Pi(){return Vhe.path.join(EPi.tmpdir(),".now/metadata",(0,Vhe.GUID)())}t($Pi,"defaultDownloadDir");function APi(n,e,s){let c=Vhe.FileSystem.createWriteStream(n,e);return s.pipeTo(new WritableStream({write:t(d=>new Promise((_,m)=>{c.write(d,b=>{b?m(b):_()})}),"write"),close:t(()=>new Promise((d,_)=>{c.end(m=>{m?_(m):d()})}),"close"),abort:t(d=>new Promise((_,m)=>{c.end(b=>{m(d??b)})}),"abort")}))}t(APi,"writeFileStream")});var BMn=st(QDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QDt,"__esModule",{value:!0});QDt.traverseDirectory=FMn;var OMn=Lc();function FMn(n,e,s){if(!OMn.FileSystem.existsSync(n,e))return;let c=n.readdirSync(e,{withFileTypes:!0}),{extensions:d,ignore_extensions:_,visitor:m}=s||{};for(let b of c){let E=OMn.path.resolve(e,b.name);b.isDirectory()?FMn(n,E,s):_&&_.find(C=>E.toLocaleLowerCase().endsWith(C.toLocaleLowerCase()))||(!d||d.length===0||d.some(C=>E.toLocaleLowerCase().endsWith(C.toLocaleLowerCase())))&&m(E)}}t(FMn,"traverseDirectory")});var VMn=st(ZDt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZDt,"__esModule",{value:!0});ZDt.getOutput=TPi;async function TPi(n,e){let s=new Set,c=[];for(let d of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let _ of e.plugins.toArray()){let m=await _.recordsToFiles({...d,database:n,context:e,handledGuids:s});m.success&&c.push(...m.value)}return c.map(d=>({source:d.source,path:e.project.resolvePath(e.config.appOutputDir,d.ifDirectoryPackage??"",d.category,d.name),content:d.content}))}t(TPi,"getOutput")});var UMn=st(S$e=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(S$e,"__esModule",{value:!0});S$e.createPackageJson=IPi;S$e.getPackageJsonFilePath=DPi;S$e.validatePackageName=RPi;var IWe=Lc();function IPi({rootDir:n,compiler:e,fileSystem:s}){let c=IWe.path.join(n,"package.json"),d=e.getSourceFile(c);if(!d&&!IWe.FileSystem.existsSync(s,c))return{name:"my-fluent-app",version:"0.0.1"};let _=d?d.getFullText():s.readFileSync(c,{encoding:"utf-8"});return IWe.JSON5.parse(_)}t(IPi,"createPackageJson");function DPi(n){return IWe.path.join(n,"package.json")}t(DPi,"getPackageJsonFilePath");function RPi(n){if(n===null)throw new Error("name cannot be null");if(n===void 0)throw new Error("name cannot be undefined");if(!n.length)throw new Error("name length must be greater than zero");if(n.match(/^\./))throw new Error("name cannot start with a period");if(n.match(/^_/))throw new Error("name cannot start with an underscore");if(n.trim()!==n)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(n)!==n){let e=/^(?:@([^/]+?)[/])?([^/]+?)$/,s=n.match(e);if(s){let c=s[1],d=s[2];if(encodeURIComponent(c)===c&&encodeURIComponent(d)===d)return}throw new Error("name can only contain URL-friendly characters")}}t(RPi,"validatePackageName")});var DWe=st(x$e=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(x$e,"__esModule",{value:!0});x$e.isWebWorker=void 0;x$e.hasModuleLoader=NPi;x$e.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function NPi(){return EL?.IDE_MODULE_LOADER}t(NPi,"hasModuleLoader")});var eRt=st(RWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(RWe,"__esModule",{value:!0});RWe.createSandboxedRegisterExplicitId=void 0;var PPi="sys_ux_theme_asset",LPi=t(n=>t((s,c)=>{if(s!==PPi)throw new Error(`registerExplicitId is not supported for the "${s}" table.`);return n.registerExplicitId(s,c)},"registerExplicitId"),"createSandboxedRegisterExplicitId");RWe.createSandboxedRegisterExplicitId=LPi});var tRt=st(NWe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(NWe,"__esModule",{value:!0});NWe.projectHasScript=MPi;NWe.runScriptInProject=OPi;var E$e=Lc(),jMn=DWe(),kPi=eRt();function MPi(n,e){let s=n.getFileSystem(),d=n.getConfig().scripts?.[e];if(d){let m=n.resolvePath(d);if(E$e.FileSystem.existsSync(s,m))return!0}let _=n.resolvePath(`now.${e}.mjs`);return!!E$e.FileSystem.existsSync(s,_)}t(MPi,"projectHasScript");async function OPi({scriptName:n,project:e,credential:s,throwIfNotFound:c=!1}){let d=e.getRootDir(),_=e.getFileSystem(),m=e.getConfig(),b=e.getLogger(),E=(0,kPi.createSandboxedRegisterExplicitId)(e),C=null,A=m.scripts?.[n];if(A){let F=e.resolvePath(A);if(!E$e.FileSystem.existsSync(_,F)){if(c)throw Error(`Script "${n}" defined in config at "${A}" not found at ${F}.`);return}C=F}else{let F=e.resolvePath(`now.${n}.mjs`);if(E$e.FileSystem.existsSync(_,F))C=F;else{if(c)throw Error(`No script defined for "${n}". Please add it to scripts in now.config.json or create now.${n}.mjs.`);return}}b.info(`Running script "${n}" from ${C}`);let D=null;jMn.isWebWorker&&(0,jMn.hasModuleLoader)()?D=await EL(C):D=await import(t(W=>`file://${W}`,"webpackWillIgnoreThisIhateYouWebpack")(C));let N=Array.isArray(D.default)?D.default:[D.default];for(let F of N)typeof F=="function"?await F({rootDir:d,config:m,fs:_,path:E$e.path,logger:b,registerExplicitId:E,credential:s}):b.warn(`Skipping non-function task in script "${n}": ${F?.toString()} . Please export a function or an array of functions.`);b.info(`Script "${n}" completed successfully`)}t(OPi,"runScriptInProject")});var zMn=st(WMn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(WMn,"__esModule",{value:!0})});var Gme={};CL(Gme,{RollupFsAdapter:()=>Cme,commonjs:()=>M4n,createUpdateSrcPath:()=>oBn,cssUrl:()=>dBn,define:()=>RUi,glob:()=>aBi,header:()=>FPt,inputOptions:()=>WUi,json:()=>Y4n,minify:()=>B4n,nodeResolve:()=>eLt,outputOptions:()=>pBn,polyfill:()=>a8i,replace:()=>V4n,resolver:()=>D8n,rollup:()=>UUi,rollupPluginSbom:()=>iBi,sass:()=>w5n,seismic:()=>R8n,servicenowFrontEndPlugins:()=>MUi,sourcemapUrl:()=>sBn,swc:()=>F4n,uiPage:()=>K5n,uiPageSourceManifest:()=>vUi,url:()=>Y5n,watch:()=>jUi,webFsLoader:()=>aBn});function FPi(n,e){return e.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(c){if(c!=="default"&&!(c in n)){var d=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:t(function(){return s[c]},"get")})}})}),Object.freeze(n)}function kL(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function tqe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var s=t(function c(){return this instanceof c?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a");s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(n).forEach(function(c){var d=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(s,c,d.get?d:{enumerable:!0,get:t(function(){return n[c]},"get")})}),s}function T3n(){throw new Error("setTimeout has not been defined")}function I3n(){throw new Error("clearTimeout has not been defined")}function D3n(n){if(fee===setTimeout)return setTimeout(n,0);if((fee===T3n||!fee)&&setTimeout)return fee=setTimeout,setTimeout(n,0);try{return fee(n,0)}catch{try{return fee.call(null,n,0)}catch{return fee.call(this,n,0)}}}function BPi(n){if(_ee===clearTimeout)return clearTimeout(n);if((_ee===I3n||!_ee)&&clearTimeout)return _ee=clearTimeout,clearTimeout(n);try{return _ee(n)}catch{try{return _ee.call(null,n)}catch{return _ee.call(this,n)}}}function VPi(){!ome||!qse||(ome=!1,qse.length?YK=qse.concat(YK):JWe=-1,YK.length&&R3n())}function R3n(){if(!ome){var n=D3n(VPi);ome=!0;for(var e=YK.length;e;){for(qse=YK,YK=[];++JWe<e;)qse&&qse[JWe].run();JWe=-1,e=YK.length}qse=null,ome=!1,BPi(n)}}function UPi(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];YK.push(new N3n(n,e)),YK.length===1&&!ome&&D3n(R3n)}function N3n(n,e){this.fun=n,this.array=e}function soe(){}function iLi(n){throw new Error("process.binding is not supported")}function aLi(){return"/"}function sLi(n){throw new Error("process.chdir is not supported")}function oLi(){return 0}function cLi(n){var e=lLi.call(Xhe)*.001,s=Math.floor(e),c=Math.floor(e%1*1e9);return n&&(s=s-n[0],c=c-n[1],c<0&&(s--,c+=1e9)),[s,c]}function pLi(){var n=new Date,e=n-uLi;return e/1e3}function dLi(){if(GMn)return nRt;GMn=1;function n(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}t(n,"assertPath");function e(d,_){for(var m="",b=0,E=-1,C=0,A,D=0;D<=d.length;++D){if(D<d.length)A=d.charCodeAt(D);else{if(A===47)break;A=47}if(A===47){if(!(E===D-1||C===1))if(E!==D-1&&C===2){if(m.length<2||b!==2||m.charCodeAt(m.length-1)!==46||m.charCodeAt(m.length-2)!==46){if(m.length>2){var N=m.lastIndexOf("/");if(N!==m.length-1){N===-1?(m="",b=0):(m=m.slice(0,N),b=m.length-1-m.lastIndexOf("/")),E=D,C=0;continue}}else if(m.length===2||m.length===1){m="",b=0,E=D,C=0;continue}}_&&(m.length>0?m+="/..":m="..",b=2)}else m.length>0?m+="/"+d.slice(E+1,D):m=d.slice(E+1,D),b=D-E-1;E=D,C=0}else A===46&&C!==-1?++C:C=-1}return m}t(e,"normalizeStringPosix");function s(d,_){var m=_.dir||_.root,b=_.base||(_.name||"")+(_.ext||"");return m?m===_.root?m+b:m+d+b:b}t(s,"_format");var c={resolve:t(function(){for(var _="",m=!1,b,E=arguments.length-1;E>=-1&&!m;E--){var C;E>=0?C=arguments[E]:(b===void 0&&(b=A_.cwd()),C=b),n(C),C.length!==0&&(_=C+"/"+_,m=C.charCodeAt(0)===47)}return _=e(_,!m),m?_.length>0?"/"+_:"/":_.length>0?_:"."},"resolve"),normalize:t(function(_){if(n(_),_.length===0)return".";var m=_.charCodeAt(0)===47,b=_.charCodeAt(_.length-1)===47;return _=e(_,!m),_.length===0&&!m&&(_="."),_.length>0&&b&&(_+="/"),m?"/"+_:_},"normalize"),isAbsolute:t(function(_){return n(_),_.length>0&&_.charCodeAt(0)===47},"isAbsolute"),join:t(function(){if(arguments.length===0)return".";for(var _,m=0;m<arguments.length;++m){var b=arguments[m];n(b),b.length>0&&(_===void 0?_=b:_+="/"+b)}return _===void 0?".":c.normalize(_)},"join"),relative:t(function(_,m){if(n(_),n(m),_===m||(_=c.resolve(_),m=c.resolve(m),_===m))return"";for(var b=1;b<_.length&&_.charCodeAt(b)===47;++b);for(var E=_.length,C=E-b,A=1;A<m.length&&m.charCodeAt(A)===47;++A);for(var D=m.length,N=D-A,F=C<N?C:N,W=-1,G=0;G<=F;++G){if(G===F){if(N>F){if(m.charCodeAt(A+G)===47)return m.slice(A+G+1);if(G===0)return m.slice(A+G)}else C>F&&(_.charCodeAt(b+G)===47?W=G:G===0&&(W=0));break}var j=_.charCodeAt(b+G),K=m.charCodeAt(A+G);if(j!==K)break;j===47&&(W=G)}var ee="";for(G=b+W+1;G<=E;++G)(G===E||_.charCodeAt(G)===47)&&(ee.length===0?ee+="..":ee+="/..");return ee.length>0?ee+m.slice(A+W):(A+=W,m.charCodeAt(A)===47&&++A,m.slice(A))},"relative"),_makeLong:t(function(_){return _},"_makeLong"),dirname:t(function(_){if(n(_),_.length===0)return".";for(var m=_.charCodeAt(0),b=m===47,E=-1,C=!0,A=_.length-1;A>=1;--A)if(m=_.charCodeAt(A),m===47){if(!C){E=A;break}}else C=!1;return E===-1?b?"/":".":b&&E===1?"//":_.slice(0,E)},"dirname"),basename:t(function(_,m){if(m!==void 0&&typeof m!="string")throw new TypeError('"ext" argument must be a string');n(_);var b=0,E=-1,C=!0,A;if(m!==void 0&&m.length>0&&m.length<=_.length){if(m.length===_.length&&m===_)return"";var D=m.length-1,N=-1;for(A=_.length-1;A>=0;--A){var F=_.charCodeAt(A);if(F===47){if(!C){b=A+1;break}}else N===-1&&(C=!1,N=A+1),D>=0&&(F===m.charCodeAt(D)?--D===-1&&(E=A):(D=-1,E=N))}return b===E?E=N:E===-1&&(E=_.length),_.slice(b,E)}else{for(A=_.length-1;A>=0;--A)if(_.charCodeAt(A)===47){if(!C){b=A+1;break}}else E===-1&&(C=!1,E=A+1);return E===-1?"":_.slice(b,E)}},"basename"),extname:t(function(_){n(_);for(var m=-1,b=0,E=-1,C=!0,A=0,D=_.length-1;D>=0;--D){var N=_.charCodeAt(D);if(N===47){if(!C){b=D+1;break}continue}E===-1&&(C=!1,E=D+1),N===46?m===-1?m=D:A!==1&&(A=1):m!==-1&&(A=-1)}return m===-1||E===-1||A===0||A===1&&m===E-1&&m===b+1?"":_.slice(m,E)},"extname"),format:t(function(_){if(_===null||typeof _!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof _);return s("/",_)},"format"),parse:t(function(_){n(_);var m={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return m;var b=_.charCodeAt(0),E=b===47,C;E?(m.root="/",C=1):C=0;for(var A=-1,D=0,N=-1,F=!0,W=_.length-1,G=0;W>=C;--W){if(b=_.charCodeAt(W),b===47){if(!F){D=W+1;break}continue}N===-1&&(F=!1,N=W+1),b===46?A===-1?A=W:G!==1&&(G=1):A!==-1&&(G=-1)}return A===-1||N===-1||G===0||G===1&&A===N-1&&A===D+1?N!==-1&&(D===0&&E?m.base=m.name=_.slice(1,N):m.base=m.name=_.slice(D,N)):(D===0&&E?(m.name=_.slice(1,A),m.base=_.slice(1,N)):(m.name=_.slice(D,A),m.base=_.slice(D,N)),m.ext=_.slice(A,N)),D>0?m.dir=_.slice(0,D-1):E&&(m.dir="/"),m},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return c.posix=c,nRt=c,nRt}function Fz(){if(qMn)return rRt;qMn=1;function n(){return typeof window<"u"&&typeof window.document<"u"||typeof self<"u"&&typeof self.importScripts=="function"}t(n,"isBrowserOrWorkerEnvironment");function e(){if(n()){let s=dLi();return s.win32={sep:"\\"},s}return Fz()}return t(e,"getPathModule"),rRt=e(),rRt}function gLi(n){return!!n&&typeof n=="object"}function yLi(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||SLi(n)}function SLi(n){return n.$$typeof===bLi}function xLi(n){return Array.isArray(n)?[]:{}}function rAe(n,e){return e.clone!==!1&&e.isMergeableObject(n)?dme(xLi(n),n,e):n}function ELi(n,e,s){return n.concat(e).map(function(c){return rAe(c,s)})}function CLi(n,e){if(!e.customMerge)return dme;var s=e.customMerge(n);return typeof s=="function"?s:dme}function wLi(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function KMn(n){return Object.keys(n).concat(wLi(n))}function P3n(n,e){try{return e in n}catch{return!1}}function $Li(n,e){return P3n(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function ALi(n,e,s){var c={};return s.isMergeableObject(n)&&KMn(n).forEach(function(d){c[d]=rAe(n[d],s)}),KMn(e).forEach(function(d){$Li(n,d)||(P3n(n,d)&&s.isMergeableObject(e[d])?c[d]=CLi(d,s)(n[d],e[d],s):c[d]=rAe(e[d],s))}),c}function dme(n,e,s){s=s||{},s.arrayMerge=s.arrayMerge||ELi,s.isMergeableObject=s.isMergeableObject||mLi,s.cloneUnlessOtherwiseSpecified=rAe;var c=Array.isArray(e),d=Array.isArray(n),_=c===d;return _?c?s.arrayMerge(n,e,s):ALi(n,e,s):rAe(e,s)}function kLi(n){let e=[];if(n.customResolveOptions){let{customResolveOptions:s}=n;if(s.moduleDirectory&&(n.moduleDirectories=Array.isArray(s.moduleDirectory)?s.moduleDirectory:[s.moduleDirectory],e.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.")),s.preserveSymlinks)throw new Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach(c=>{if(s[c])throw new Error(`node-resolve: \`customResolveOptions.${c}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:e}}function L3n(){if(typeof PWe>"u"){var n=new ArrayBuffer(2),e=new Uint8Array(n),s=new Uint16Array(n);if(e[0]=1,e[1]=2,s[0]===258)PWe="BE";else if(s[0]===513)PWe="LE";else throw new Error("unable to figure out endianess")}return PWe}function k3n(){return typeof m8.location<"u"?m8.location.hostname:""}function M3n(){return[]}function O3n(){return 0}function F3n(){return Number.MAX_VALUE}function B3n(){return Number.MAX_VALUE}function V3n(){return[]}function U3n(){return"Browser"}function j3n(){return typeof m8.navigator<"u"?m8.navigator.appVersion:""}function W3n(){return{}}function z3n(){return{}}function G3n(){return"javascript"}function q3n(){return"browser"}function jPt(){return"/tmp"}function J3n(){return"$HOME"}function WLi(){if(JMn)return Uhe.exports;JMn=1;var n=A_.platform==="win32",e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,s={};function c(b){return e.exec(b).slice(1)}t(c,"win32SplitPath"),s.parse=function(b){if(typeof b!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b);var E=c(b);if(!E||E.length!==5)throw new TypeError("Invalid path '"+b+"'");return{root:E[1],dir:E[0]===E[1]?E[0]:E[0].slice(0,-1),base:E[2],ext:E[4],name:E[3]}};var d=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,_={};function m(b){return d.exec(b).slice(1)}return t(m,"posixSplitPath"),_.parse=function(b){if(typeof b!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b);var E=m(b);if(!E||E.length!==5)throw new TypeError("Invalid path '"+b+"'");return{root:E[1],dir:E[0].slice(0,-1),base:E[2],ext:E[4],name:E[3]}},n?Uhe.exports=s.parse:Uhe.exports=_.parse,Uhe.exports.posix=_.parse,Uhe.exports.win32=s.parse,Uhe.exports}function mMi(n,e){for(var s=n.split("."),c=e.split(" "),d=c.length>1?c[0]:"=",_=(c.length>1?c[1]:c[0]).split("."),m=0;m<3;++m){var b=parseInt(s[m]||0,10),E=parseInt(_[m]||0,10);if(b!==E)return d==="<"?b<E:d===">="?b>=E:!1}return d===">="}function ZMn(n,e){var s=e.split(/ ?&& ?/);if(s.length===0)return!1;for(var c=0;c<s.length;++c)if(!mMi(n,s[c]))return!1;return!0}function gMi(n,e){if(typeof e=="boolean")return e;var s=typeof n>"u"?A_.versions&&"18.16.1":n;if(typeof s!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var c=0;c<e.length;++c)if(ZMn(s,e[c]))return!0;return!1}return ZMn(s,e)}async function jRt(n,e){return await Nze(n,e)?e.realpath(n):n}function WPt(n,{enter:e,leave:s}){return new zRt(e,s).visit(n,null)}function pOi(n){return Array.isArray(n)}function lOn(n){return pOi(n)?n:n==null?[]:[n]}function dOi(n,e){if(e===!1||tf.isAbsolute(n)||n.startsWith("*"))return XWe(n);let s=XWe(tf.resolve(e||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return tf.posix.join(s,XWe(n))}function s6n(n){if(n.startsWith(".")||n.startsWith("/"))return null;let e=n.split("/");return e[0][0]==="@"?`${e[0]}/${e[1]}`:e[0]}function hOi(n){let e;if(n.mainFields?{mainFields:e}=n:e=["module","main"],n.browser&&e.indexOf("browser")===-1)return["browser"].concat(e);if(!e.length)throw new Error("Please ensure at least one `mainFields` value is specified");return e}function o6n(n){let{cache:e,extensions:s,pkg:c,mainFields:d,preserveSymlinks:_,useBrowserOverrides:m,rootDir:b,ignoreSideEffectsForRoot:E,fs:C}=n,{pkgPath:A}=n;if(e.has(A))return e.get(A);_||(A=C.realpathSync(A));let D=tf.dirname(A),N={packageJson:{...c},packageJsonPath:A,root:D,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},F=!1;for(let j=0;j<d.length;j++){let K=d[j];if(typeof c[K]=="string"){c.main=c[K],N.resolvedMainField=K,F=!0;break}}let W={cachedPkg:c,hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:F!==!1||d.indexOf("main")!==-1,packageBrowserField:m&&typeof c.browser=="object"&&Object.keys(c.browser).reduce((j,K)=>{let ee=c.browser[K];if(ee&&ee[0]==="."&&(ee=tf.resolve(D,ee)),j[K]=ee,K[0]==="."){let re=tf.resolve(D,K);j[re]=ee,tf.extname(K)||s.reduce((ie,_e)=>(ie[re+_e]=ie[K],ie),j)}return j},{}),packageInfo:N},G=W.packageBrowserField;if(m&&typeof c.browser=="object"&&G.hasOwnProperty(c.main)?(N.resolvedEntryPoint=G[c.main],N.browserMappedMain=!0):(N.resolvedEntryPoint=tf.resolve(D,c.main||"index.js"),N.browserMappedMain=!1),!E||b!==D){let j=c.sideEffects;if(typeof j=="boolean")W.hasModuleSideEffects=()=>j;else if(Array.isArray(j)){let K=j.map(ee=>ee.includes("/")?ee:`**/${ee}`);W.hasModuleSideEffects=sJ(K,null,{resolve:D})}}return e.set(A,W),W}function mOi(n){return Array.isArray(n)?n:typeof n=="object"?Object.values(n):[n]}function l6n(){KPt=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,s=n.length;e<s;++e)wz[e]=n[e],JB[n.charCodeAt(e)]=e;JB[45]=62,JB[95]=63}function yOi(n){KPt||l6n();var e,s,c,d,_,m,b=n.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");_=n[b-2]==="="?2:n[b-1]==="="?1:0,m=new gOi(b*3/4-_),c=_>0?b-4:b;var E=0;for(e=0,s=0;e<c;e+=4,s+=3)d=JB[n.charCodeAt(e)]<<18|JB[n.charCodeAt(e+1)]<<12|JB[n.charCodeAt(e+2)]<<6|JB[n.charCodeAt(e+3)],m[E++]=d>>16&255,m[E++]=d>>8&255,m[E++]=d&255;return _===2?(d=JB[n.charCodeAt(e)]<<2|JB[n.charCodeAt(e+1)]>>4,m[E++]=d&255):_===1&&(d=JB[n.charCodeAt(e)]<<10|JB[n.charCodeAt(e+1)]<<4|JB[n.charCodeAt(e+2)]>>2,m[E++]=d>>8&255,m[E++]=d&255),m}function vOi(n){return wz[n>>18&63]+wz[n>>12&63]+wz[n>>6&63]+wz[n&63]}function bOi(n,e,s){for(var c,d=[],_=e;_<s;_+=3)c=(n[_]<<16)+(n[_+1]<<8)+n[_+2],d.push(vOi(c));return d.join("")}function cOn(n){KPt||l6n();for(var e,s=n.length,c=s%3,d="",_=[],m=16383,b=0,E=s-c;b<E;b+=m)_.push(bOi(n,b,b+m>E?E:b+m));return c===1?(e=n[s-1],d+=wz[e>>2],d+=wz[e<<4&63],d+="=="):c===2&&(e=(n[s-2]<<8)+n[s-1],d+=wz[e>>10],d+=wz[e>>4&63],d+=wz[e<<2&63],d+="="),_.push(d),_.join("")}function aqe(n,e,s,c,d){var _,m,b=d*8-c-1,E=(1<<b)-1,C=E>>1,A=-7,D=s?d-1:0,N=s?-1:1,F=n[e+D];for(D+=N,_=F&(1<<-A)-1,F>>=-A,A+=b;A>0;_=_*256+n[e+D],D+=N,A-=8);for(m=_&(1<<-A)-1,_>>=-A,A+=c;A>0;m=m*256+n[e+D],D+=N,A-=8);if(_===0)_=1-C;else{if(_===E)return m?NaN:(F?-1:1)*(1/0);m=m+Math.pow(2,c),_=_-C}return(F?-1:1)*m*Math.pow(2,_-c)}function c6n(n,e,s,c,d,_){var m,b,E,C=_*8-d-1,A=(1<<C)-1,D=A>>1,N=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=c?0:_-1,W=c?1:-1,G=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(b=isNaN(e)?1:0,m=A):(m=Math.floor(Math.log(e)/Math.LN2),e*(E=Math.pow(2,-m))<1&&(m--,E*=2),m+D>=1?e+=N/E:e+=N*Math.pow(2,1-D),e*E>=2&&(m++,E/=2),m+D>=A?(b=0,m=A):m+D>=1?(b=(e*E-1)*Math.pow(2,d),m=m+D):(b=e*Math.pow(2,D-1)*Math.pow(2,d),m=0));d>=8;n[s+F]=b&255,F+=W,b/=256,d-=8);for(m=m<<d|b,C+=d;C>0;n[s+F]=m&255,F+=W,m/=256,C-=8);n[s+F-W]|=G*128}function Mze(){return bu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function QK(n,e){if(Mze()<e)throw new RangeError("Invalid typed array length");return bu.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e),n.__proto__=bu.prototype):(n===null&&(n=new bu(e)),n.length=e),n}function bu(n,e,s){if(!bu.TYPED_ARRAY_SUPPORT&&!(this instanceof bu))return new bu(n,e,s);if(typeof n=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return JPt(this,n)}return p6n(this,n,e,s)}function p6n(n,e,s,c){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?wOi(n,e,s,c):typeof e=="string"?COi(n,e,s):$Oi(n,e)}function d6n(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function EOi(n,e,s,c){return d6n(e),e<=0?QK(n,e):s!==void 0?typeof c=="string"?QK(n,e).fill(s,c):QK(n,e).fill(s):QK(n,e)}function JPt(n,e){if(d6n(e),n=QK(n,e<0?0:XPt(e)|0),!bu.TYPED_ARRAY_SUPPORT)for(var s=0;s<e;++s)n[s]=0;return n}function COi(n,e,s){if((typeof s!="string"||s==="")&&(s="utf8"),!bu.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');var c=f6n(e,s)|0;n=QK(n,c);var d=n.write(e,s);return d!==c&&(n=n.slice(0,d)),n}function qRt(n,e){var s=e.length<0?0:XPt(e.length)|0;n=QK(n,s);for(var c=0;c<s;c+=1)n[c]=e[c]&255;return n}function wOi(n,e,s,c){if(e.byteLength,s<0||e.byteLength<s)throw new RangeError("'offset' is out of bounds");if(e.byteLength<s+(c||0))throw new RangeError("'length' is out of bounds");return s===void 0&&c===void 0?e=new Uint8Array(e):c===void 0?e=new Uint8Array(e,s):e=new Uint8Array(e,s,c),bu.TYPED_ARRAY_SUPPORT?(n=e,n.__proto__=bu.prototype):n=qRt(n,e),n}function $Oi(n,e){if(Lz(e)){var s=XPt(e.length)|0;return n=QK(n,s),n.length===0||e.copy(n,0,0,s),n}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||GOi(e.length)?QK(n,0):qRt(n,e);if(e.type==="Buffer"&&u6n(e.data))return qRt(n,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function XPt(n){if(n>=Mze())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Mze().toString(16)+" bytes");return n|0}function Lz(n){return!!(n!=null&&n._isBuffer)}function f6n(n,e){if(Lz(n))return n.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var s=n.length;if(s===0)return 0;for(var c=!1;;)switch(e){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return Oze(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return b6n(n).length;default:if(c)return Oze(n).length;e=(""+e).toLowerCase(),c=!0}}function AOi(n,e,s){var c=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,e>>>=0,s<=e))return"";for(n||(n="utf8");;)switch(n){case"hex":return OOi(this,e,s);case"utf8":case"utf-8":return m6n(this,e,s);case"ascii":return kOi(this,e,s);case"latin1":case"binary":return MOi(this,e,s);case"base64":return POi(this,e,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return FOi(this,e,s);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),c=!0}}function Kse(n,e,s){var c=n[e];n[e]=n[s],n[s]=c}function _6n(n,e,s,c,d){if(n.length===0)return-1;if(typeof s=="string"?(c=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=d?0:n.length-1),s<0&&(s=n.length+s),s>=n.length){if(d)return-1;s=n.length-1}else if(s<0)if(d)s=0;else return-1;if(typeof e=="string"&&(e=bu.from(e,c)),Lz(e))return e.length===0?-1:uOn(n,e,s,c,d);if(typeof e=="number")return e=e&255,bu.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?d?Uint8Array.prototype.indexOf.call(n,e,s):Uint8Array.prototype.lastIndexOf.call(n,e,s):uOn(n,[e],s,c,d);throw new TypeError("val must be string, number or Buffer")}function uOn(n,e,s,c,d){var _=1,m=n.length,b=e.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(n.length<2||e.length<2)return-1;_=2,m/=2,b/=2,s/=2}function E(F,W){return _===1?F[W]:F.readUInt16BE(W*_)}t(E,"read");var C;if(d){var A=-1;for(C=s;C<m;C++)if(E(n,C)===E(e,A===-1?0:C-A)){if(A===-1&&(A=C),C-A+1===b)return A*_}else A!==-1&&(C-=C-A),A=-1}else for(s+b>m&&(s=m-b),C=s;C>=0;C--){for(var D=!0,N=0;N<b;N++)if(E(n,C+N)!==E(e,N)){D=!1;break}if(D)return C}return-1}function TOi(n,e,s,c){s=Number(s)||0;var d=n.length-s;c?(c=Number(c),c>d&&(c=d)):c=d;var _=e.length;if(_%2!==0)throw new TypeError("Invalid hex string");c>_/2&&(c=_/2);for(var m=0;m<c;++m){var b=parseInt(e.substr(m*2,2),16);if(isNaN(b))return m;n[s+m]=b}return m}function IOi(n,e,s,c){return lqe(Oze(e,n.length-s),n,s,c)}function h6n(n,e,s,c){return lqe(WOi(e),n,s,c)}function DOi(n,e,s,c){return h6n(n,e,s,c)}function ROi(n,e,s,c){return lqe(b6n(e),n,s,c)}function NOi(n,e,s,c){return lqe(zOi(e,n.length-s),n,s,c)}function POi(n,e,s){return e===0&&s===n.length?cOn(n):cOn(n.slice(e,s))}function m6n(n,e,s){s=Math.min(n.length,s);for(var c=[],d=e;d<s;){var _=n[d],m=null,b=_>239?4:_>223?3:_>191?2:1;if(d+b<=s){var E,C,A,D;switch(b){case 1:_<128&&(m=_);break;case 2:E=n[d+1],(E&192)===128&&(D=(_&31)<<6|E&63,D>127&&(m=D));break;case 3:E=n[d+1],C=n[d+2],(E&192)===128&&(C&192)===128&&(D=(_&15)<<12|(E&63)<<6|C&63,D>2047&&(D<55296||D>57343)&&(m=D));break;case 4:E=n[d+1],C=n[d+2],A=n[d+3],(E&192)===128&&(C&192)===128&&(A&192)===128&&(D=(_&15)<<18|(E&63)<<12|(C&63)<<6|A&63,D>65535&&D<1114112&&(m=D))}}m===null?(m=65533,b=1):m>65535&&(m-=65536,c.push(m>>>10&1023|55296),m=56320|m&1023),c.push(m),d+=b}return LOi(c)}function LOi(n){var e=n.length;if(e<=pOn)return String.fromCharCode.apply(String,n);for(var s="",c=0;c<e;)s+=String.fromCharCode.apply(String,n.slice(c,c+=pOn));return s}function kOi(n,e,s){var c="";s=Math.min(n.length,s);for(var d=e;d<s;++d)c+=String.fromCharCode(n[d]&127);return c}function MOi(n,e,s){var c="";s=Math.min(n.length,s);for(var d=e;d<s;++d)c+=String.fromCharCode(n[d]);return c}function OOi(n,e,s){var c=n.length;(!e||e<0)&&(e=0),(!s||s<0||s>c)&&(s=c);for(var d="",_=e;_<s;++_)d+=jOi(n[_]);return d}function FOi(n,e,s){for(var c=n.slice(e,s),d="",_=0;_<c.length;_+=2)d+=String.fromCharCode(c[_]+c[_+1]*256);return d}function mP(n,e,s){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+e>s)throw new RangeError("Trying to access beyond buffer length")}function O3(n,e,s,c,d,_){if(!Lz(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>d||e<_)throw new RangeError('"value" argument is out of bounds');if(s+c>n.length)throw new RangeError("Index out of range")}function sqe(n,e,s,c){e<0&&(e=65535+e+1);for(var d=0,_=Math.min(n.length-s,2);d<_;++d)n[s+d]=(e&255<<8*(c?d:1-d))>>>(c?d:1-d)*8}function oqe(n,e,s,c){e<0&&(e=4294967295+e+1);for(var d=0,_=Math.min(n.length-s,4);d<_;++d)n[s+d]=e>>>(c?d:3-d)*8&255}function g6n(n,e,s,c,d,_){if(s+c>n.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function y6n(n,e,s,c,d){return d||g6n(n,e,s,4),c6n(n,e,s,c,23,4),s+4}function v6n(n,e,s,c,d){return d||g6n(n,e,s,8),c6n(n,e,s,c,52,8),s+8}function VOi(n){if(n=UOi(n).replace(BOi,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function UOi(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function jOi(n){return n<16?"0"+n.toString(16):n.toString(16)}function Oze(n,e){e=e||1/0;for(var s,c=n.length,d=null,_=[],m=0;m<c;++m){if(s=n.charCodeAt(m),s>55295&&s<57344){if(!d){if(s>56319){(e-=3)>-1&&_.push(239,191,189);continue}else if(m+1===c){(e-=3)>-1&&_.push(239,191,189);continue}d=s;continue}if(s<56320){(e-=3)>-1&&_.push(239,191,189),d=s;continue}s=(d-55296<<10|s-56320)+65536}else d&&(e-=3)>-1&&_.push(239,191,189);if(d=null,s<128){if((e-=1)<0)break;_.push(s)}else if(s<2048){if((e-=2)<0)break;_.push(s>>6|192,s&63|128)}else if(s<65536){if((e-=3)<0)break;_.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((e-=4)<0)break;_.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return _}function WOi(n){for(var e=[],s=0;s<n.length;++s)e.push(n.charCodeAt(s)&255);return e}function zOi(n,e){for(var s,c,d,_=[],m=0;m<n.length&&!((e-=2)<0);++m)s=n.charCodeAt(m),c=s>>8,d=s%256,_.push(d),_.push(c);return _}function b6n(n){return yOi(VOi(n))}function lqe(n,e,s,c){for(var d=0;d<c&&!(d+s>=e.length||d>=n.length);++d)e[d+s]=n[d];return d}function GOi(n){return n!==n}function qOi(n){return n!=null&&(!!n._isBuffer||S6n(n)||HOi(n))}function S6n(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function HOi(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&S6n(n.slice(0,0))}function LWe(n){return n===null}function JOi(n){return n==null}function YPt(n){return typeof n=="string"}function x6n(n){return typeof n=="object"&&n!==null}function cqe(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(Ose&&n[Ose]){var e=n[Ose];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,Ose,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var s,c,d=new Promise(function(b,E){s=b,c=E}),_=[],m=0;m<arguments.length;m++)_.push(arguments[m]);_.push(function(b,E){b?c(b):s(E)});try{n.apply(this,_)}catch(b){c(b)}return d}return t(e,"fn"),Object.setPrototypeOf(e,Object.getPrototypeOf(n)),Ose&&Object.defineProperty(e,Ose,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,KOi(n))}function XOi(n,e){return e.some(s=>n.endsWith(s))}async function E6n(n,e,s){let{root:c}=Fg.parse(n),d=n;for(;d!==c&&!XOi(d,e);){let _=Fg.join(d,"package.json");if(await Nze(_,s)){let m=await s.readFile(_,"utf8");return{pkgJson:JSON.parse(m),pkgPath:d,pkgJsonPath:_}}d=Fg.resolve(d,"..")}return null}function YOi(n){try{return!!new URL(n)}catch{return!1}}function C6n(n){return typeof n=="object"&&Object.keys(n).every(e=>!e.startsWith("."))}function dOn(n){return typeof n=="object"&&!C6n(n)}function QOi(n){let e=Object.keys(n);return e.some(s=>s.startsWith("."))&&e.some(s=>!s.startsWith("."))}function w6n(n,e){return`Could not resolve import "${n}" in ${e}`}function QPt(n,e,s){let{importSpecifier:c,importer:d,pkgJsonPath:_}=n;return`${w6n(c,d)} using ${s?"imports":"exports"} defined in ${_}.${e?` ${e}`:""}`}function fOn(n,e){let s=["",".","..",...e];return n.some(c=>s.includes(c)||s.includes(decodeURI(c)))}async function iAe(n,{target:e,patternMatch:s,isImports:c,validateImportsExports:d=!0}){if(typeof e=="string"){if(!e.startsWith("./")){if(!c||["/","../"].some(b=>e.startsWith(b))||YOi(e))throw new jse(n,`Invalid mapping: "${e}".`);if(typeof s=="string"){let b=await n.resolveId(e.replace(/\*/g,s),n.pkgURL);return b?b.location:null}let m=await n.resolveId(e,n.pkgURL);return m?m.location:null}n.allowExportsFolderMapping&&(e=e.replace(/\/$/,"/*"));{let m=e.split(/\/|\\/),b=m.indexOf(".");if(b!==-1&&m.slice(b),b!==-1&&b<m.length-1&&fOn(m.slice(b+1),n.moduleDirs))throw new jse(n,`Invalid mapping: "${e}".`)}let _=tf.resolve(n.pkgURL,e);if(!_.startsWith(n.pkgURL))throw new jse(n,`Resolved to ${_} which is outside package ${n.pkgURL}`);if(!s)return _;if(d&&fOn(s.split(/\/|\\/),n.moduleDirs))throw new See(n);return _.replace(/\*/g,s)}if(Array.isArray(e)){if(e.length===0)return null;let _=null;for(let m of e)try{let b=await iAe(n,{target:m,patternMatch:s,isImports:c,validateImportsExports:d});if(b!==void 0)return b}catch(b){if(b instanceof jse)_=b;else throw b}if(_)throw _;return null}if(e&&typeof e=="object"){for(let[_,m]of Object.entries(e))if(_==="default"||n.conditions.includes(_)){let b=await iAe(n,{target:m,patternMatch:s,isImports:c,validateImportsExports:d});if(b!==void 0)return b}return}if(e===null)return null;throw new jse(n,"Invalid exports field.")}function ZOi(n,e){let s=n.includes("*")?n.indexOf("*")+1:n.length,d=(e.includes("*")?e.indexOf("*")+1:e.length)-s;return d!==0?d:n.includes("*")?e.includes("*")?e.length-n.length:-1:1}async function $6n(n,{matchKey:e,matchObj:s,isImports:c,validateImportsExports:d=!0}){if(!e.includes("*")&&e in s){let m=s[e];return await iAe(n,{target:m,patternMatch:"",isImports:c,validateImportsExports:d})}let _=Object.keys(s).filter(m=>m.endsWith("/")||m.includes("*")).sort(ZOi);for(let m of _){let b=m.indexOf("*"),E=b===-1?m:m.substring(0,b);if(e.startsWith(E)&&e!==E){let C=b!==-1?m.substring(b+1):"";if(C.length===0||e.endsWith(C)&&e.length>=m.length){let A=s[m],D=e.substring(E.length,e.length-C.length);return await iAe(n,{target:A,patternMatch:D,isImports:c,validateImportsExports:d})}}}if(d)throw new See(n,c)}async function eFi(n,e,s,c=!0){if(c&&QOi(s))throw new HRt(n,"All keys must either start with ./, or without one.");if(e==="."){let d;if(typeof s=="string"||Array.isArray(s)||C6n(s)?d=s:dOn(s)&&(d=s["."]),d){let _=await iAe(n,{target:d,patternMatch:"",isImports:!1,validateImportsExports:c});if(_)return _}}else if(dOn(s)){let d=await $6n(n,{matchKey:e,matchObj:s,isImports:!1,validateImportsExports:c});if(d)return d}if(c)throw new See(n)}async function tFi({importSpecifier:n,importer:e,moduleDirs:s,conditions:c,resolveId:d,fs:_,validateImportsExports:m=!0}){let b=await E6n(e,s,_);if(!b)throw new Error(`${w6n(n,e)}. Could not find a parent package.json.`);let{pkgPath:E,pkgJsonPath:C,pkgJson:A}=b,D=`/${E}/`,N={importer:e,importSpecifier:n,moduleDirs:s,pkgURL:D,pkgJsonPath:C,conditions:c,resolveId:d};if(m&&!n.startsWith("#"))throw new See(N,!0,"Invalid import specifier.");if(m&&(n==="#"||n.startsWith("#/")))throw new See(N,!0,"Invalid import specifier.");let{imports:F}=A;if(m&&!F)throw new See(N,!0);return $6n(N,{matchKey:n,matchObj:F,isImports:!0,validateImportsExports:m})}async function lFi(n,e,s,c,d){if(n){let _=await E6n(n,c,d);if(_&&_.pkgJson.name===e)return _}try{let _=await T6n(`${e}/package.json`,s),m=JSON.parse(await d.readFile(_,"utf8"));return{pkgJsonPath:_,pkgJson:m,pkgPath:tf.dirname(_)}}catch{return null}}async function I6n({importSpecifier:n,packageInfoCache:e,extensions:s,mainFields:c,preserveSymlinks:d,useBrowserOverrides:_,baseDir:m,moduleDirectories:b,modulePaths:E,rootDir:C,ignoreSideEffectsForRoot:A,fs:D}){let N=t(()=>null,"hasModuleSideEffects"),F=!0,W=!1,G,j=t((re,ie)=>{let _e=o6n({cache:e,extensions:s,pkg:re,pkgPath:ie,mainFields:c,preserveSymlinks:d,useBrowserOverrides:_,rootDir:C,ignoreSideEffectsForRoot:A,fs:D});return{packageInfo:G,hasModuleSideEffects:N,hasPackageEntry:F,packageBrowserField:W}=_e,_e.cachedPkg},"filter"),K={...ZPt(D),basedir:await D.realpath(m),extensions:s,includeCoreModules:!1,moduleDirectory:b,paths:E,preserveSymlinks:d,packageFilter:j},ee;try{ee=await T6n(n,K)}catch(re){if(re.code!=="MODULE_NOT_FOUND")throw re;return null}return{location:d?ee:await jRt(ee,D),hasModuleSideEffects:N,hasPackageEntry:F,packageBrowserField:W,packageInfo:G}}async function cFi({importer:n,importSpecifier:e,exportConditions:s,packageInfoCache:c,extensions:d,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,baseDir:E,moduleDirectories:C,modulePaths:A,rootDir:D,ignoreSideEffectsForRoot:N,allowExportsFolderMapping:F,fs:W,validateImportsExports:G}){if(e.startsWith("#")){let ee=await tFi({importSpecifier:e,importer:n,moduleDirs:C,conditions:s,validateImportsExports:G,fs:W,resolveId(re){return I6n({importSpecifier:re,packageInfoCache:c,extensions:d,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,baseDir:E,moduleDirectories:C,modulePaths:A,fs:W})}});return{location:ee,location:m?ee:await jRt(ee,W),hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let j=s6n(e);if(j){let K=t(()=>null,"hasModuleSideEffects"),ee=!0,re=!1,ie,_e=t((Ce,We)=>{let Ge=o6n({cache:c,extensions:d,pkg:Ce,pkgPath:We,mainFields:_,preserveSymlinks:m,useBrowserOverrides:b,rootDir:D,ignoreSideEffectsForRoot:N,fs:W});return{packageInfo:ie,hasModuleSideEffects:K,hasPackageEntry:ee,packageBrowserField:re}=Ge,Ge.cachedPkg},"filter"),Te={...ZPt(W),basedir:await W.realpath(E),extensions:d,includeCoreModules:!1,moduleDirectory:C,paths:A,preserveSymlinks:m,packageFilter:_e},Se=await lFi(n,j,Te,C,W);if(Se&&Se.pkgJson.exports){let{pkgJson:Ce,pkgJsonPath:We}=Se,Ge=j===e?".":`.${e.substring(j.length)}`,Ve=We.replace("package.json",""),i=await eFi({importer:n,importSpecifier:e,moduleDirs:C,pkgURL:Ve,pkgJsonPath:We,allowExportsFolderMapping:F,conditions:s},Ge,Ce.exports,G);if(i)return{location:m?i:await jRt(i,W),hasModuleSideEffects:K,hasPackageEntry:ee,packageBrowserField:re,packageInfo:ie}}}return null}async function uFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:W}){for(let G=0;G<e.length;G++){let j=await I6n({importSpecifier:e[G],packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:W});if(j)return j}return null}async function pFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,allowExportsFolderMapping:W,fs:G,validateImportsExports:j,ignoreExports:K}){if(!K)try{let ee=await cFi({importer:n,importSpecifier:e[0],exportConditions:s,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,allowExportsFolderMapping:W,fs:G,validateImportsExports:j});if(ee)return ee}catch(ee){if(ee instanceof _me)return c(ee),null;throw ee}return uFi({importer:n,importSpecifierList:e,exportConditions:s,warn:c,packageInfoCache:d,extensions:_,mainFields:m,preserveSymlinks:b,useBrowserOverrides:E,baseDir:C,moduleDirectories:A,modulePaths:D,rootDir:N,ignoreSideEffectsForRoot:F,fs:G})}function eLt(n={}){let{warnings:e}=kLi(n),s={...N6n,...n},{extensions:c,jail:d,moduleDirectories:_,modulePaths:m,ignoreSideEffectsForRoot:b}=s,E=[...dFi,...s.exportConditions||[]],C=[...fFi,...s.exportConditions||[]],A=new Map,D=new Map,N=hOi(s),F=N.indexOf("browser")!==-1,W=s.preferBuiltins===!0||s.preferBuiltins===!1,G=W?s.preferBuiltins:!0,j=tf.resolve(s.rootDir||Ye.cwd()),{dedupe:K}=s,ee;if(_.some(Ce=>Ce.includes("/")))throw new Error("`moduleDirectories` option must only contain directory names. If you want to load modules from somewhere not supported by the default module resolution algorithm, see `modulePaths`.");typeof K!="function"&&(K=t(Ce=>s.dedupe.includes(Ce)||s.dedupe.includes(s6n(Ce)),"dedupe"));let re=t(Ce=>{let We=Ce.map(Ge=>{if(Ge instanceof RegExp)return Ge;let Ke=Ge.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${Ke}$`)});return Ge=>!We.length||We.some(Ke=>Ke.test(Ge))},"allowPatterns"),ie=typeof s.resolveOnly=="function"?s.resolveOnly:re(s.resolveOnly),_e=new Map,Te,Se=t(async(Ce,We,Ge,Ke,Ve)=>{let[Be,J]=We.split("?"),i=`${J?`?${J}`:""}`;We=Be;let R=!Ge||K(We)?j:tf.dirname(Ge),ut=_e.get(Ge);if(F&&ut){let q=tf.resolve(R,We);if(ut[We]===!1||ut[q]===!1)return{id:kWe};let Y=We[0]!=="."&&ut[We]||ut[q]||ut[`${q}.js`]||ut[`${q}.json`];Y&&(We=Y)}let ae=We.split(/[/\\]/),xt=ae.shift(),Re=!1;if(xt[0]==="@"&&ae.length>0?xt+=`/${ae.shift()}`:xt[0]==="."&&(xt=tf.resolve(R,We),Re=!0),!Re&&!ie(xt))return mOi(ee.input).includes(We)?null:!1;let B=[We];if(Ge===void 0&&!We[0].match(/^\.?\.?\//)&&B.push(`./${We}`),Ge&&/\.(ts|mts|cts|tsx)$/.test(Ge))for(let[q,Y]of[[".js",".ts"],[".js",".tsx"],[".jsx",".tsx"],[".mjs",".mts"],[".cjs",".cts"]])We.endsWith(q)&&c.includes(Y)&&B.push(We.slice(0,-q.length)+Y);let r=t((...q)=>Ce.warn(...q),"warn"),l=Ke&&Ke["node-resolve"]&&Ke["node-resolve"].isRequire?C:E;F&&!l.includes("browser")&&l.push("browser");let u=await pFi({importer:Ge,importSpecifierList:B,exportConditions:l,warn:r,packageInfoCache:A,extensions:c,mainFields:N,preserveSymlinks:Te,useBrowserOverrides:F,baseDir:R,moduleDirectories:_,modulePaths:m,rootDir:j,ignoreSideEffectsForRoot:b,allowExportsFolderMapping:s.allowExportsFolderMapping,fs:Ve,validateImportsExports:s.validateImportsExports,ignoreExports:s.ignoreExports}),f=hLi(We),h=f&&G?{packageInfo:void 0,hasModuleSideEffects:t(()=>null,"hasModuleSideEffects"),hasPackageEntry:!0,packageBrowserField:!1}:u;if(!h)return null;let{packageInfo:v,hasModuleSideEffects:S,hasPackageEntry:w,packageBrowserField:P}=h,{location:O}=h;if(P){if(Object.prototype.hasOwnProperty.call(P,O)){if(!P[O])return _e.set(O,P),{id:kWe};O=P[O]}_e.set(O,P)}if(w&&!Te&&await Nze(O,Ve)&&(O=await Ve.realpath(O)),D.set(O,v),w){if(f&&G)return!W&&u&&h!==We&&Ce.warn(`preferring built-in module '${We}' over local alternative at '${u.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),!1;if(d&&O.indexOf(tf.normalize(d.trim(tf.sep)))!==0)return null}if(s.modulesOnly&&await Nze(O,Ve)){let q=await Ve.readFile(O,"utf8");return LLi(q)?{id:`${O}${i}`,moduleSideEffects:S(O)}:null}return{id:`${O}${i}`,moduleSideEffects:S(O)}},"resolveLikeNode");return{name:"node-resolve",version:"1.0.0",buildStart(Ce){ee=Ce;for(let We of e)this.warn(We);({preserveSymlinks:Te}=Ce)},generateBundle(){},resolveId:{order:"post",async handler(Ce,We,Ge){if(Ce===kWe)return Ce;if(/\0/.test(Ce))return null;let{custom:Ke={}}=Ge,{"node-resolve":{resolved:Ve}={}}=Ke;if(Ve)return Ve;/\0/.test(We)&&(We=void 0);let Be=s.fs||globalThis.__rollupFs||hme,J=await Se(this,Ce,We,Ke,Be);if(J){let i=await this.resolve(J.id,We,{...Ge,skipSelf:!1,custom:{...Ke,"node-resolve":{...Ke["node-resolve"],resolved:J,importee:Ce}}});if(i)return i.external?!1:i.id!==J.id?i:{...J,meta:i.meta}}return J}},load(Ce){return Ce===kWe?"export default {};":null},getPackageInfoForId(Ce){return D.get(Ce)}}}function P6n(n,e,s){try{return n(e,{allowReturnOutsideFunction:!0})}catch(c){throw c.message+=` in ${s}`,c}}function mFi(n,e){return(e?hFi:_Fi).test(n)}function gFi(n,e,s){let c=P6n(n,e,s),d=!1,_=!1,m=!1;for(let b of c.body)switch(b.type){case"ExportDefaultDeclaration":d=!0,_=!0;break;case"ExportNamedDeclaration":if(d=!0,b.declaration)m=!0;else for(let E of b.specifiers)E.exported.name==="default"?_=!0:m=!0;break;case"ExportAllDeclaration":d=!0,b.exported&&b.exported.name==="default"?_=!0:m=!0;break;case"ImportDeclaration":d=!0;break}return{isEsModule:d,hasDefaultExport:_,hasNamedExports:m,ast:c}}function L6n(n,e,s){n instanceof RegExp&&(n=_On(n,s)),e instanceof RegExp&&(e=_On(e,s));var c=k6n(n,e,s);return c&&{start:c[0],end:c[1],pre:s.slice(0,c[0]),body:s.slice(c[0]+n.length,c[1]),post:s.slice(c[1]+e.length)}}function _On(n,e){var s=e.match(n);return s?s[0]:null}function k6n(n,e,s){var c,d,_,m,b,E=s.indexOf(n),C=s.indexOf(e,E+1),A=E;if(E>=0&&C>0){if(n===e)return[E,C];for(c=[],_=s.length;A>=0&&!b;)A==E?(c.push(A),E=s.indexOf(n,A+1)):c.length==1?b=[c.pop(),C]:(d=c.pop(),d<_&&(_=d,m=C),C=s.indexOf(e,A+1)),A=E<C&&E>=0?E:C;c.length&&(b=[_,m])}return b}function cRt(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function EFi(n){return n.split("\\\\").join(O6n).split("\\{").join(F6n).split("\\}").join(tLt).split("\\,").join(B6n).split("\\.").join(V6n)}function CFi(n){return n.split(O6n).join("\\").split(F6n).join("{").split(tLt).join("}").split(B6n).join(",").split(V6n).join(".")}function U6n(n){if(!n)return[""];var e=[],s=M6n("{","}",n);if(!s)return n.split(",");var c=s.pre,d=s.body,_=s.post,m=c.split(",");m[m.length-1]+="{"+d+"}";var b=U6n(_);return _.length&&(m[m.length-1]+=b.shift(),m.push.apply(m,b)),e.push.apply(e,m),e}function wFi(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),M$e(EFi(n),!0).map(CFi)):[]}function $Fi(n){return"{"+n+"}"}function AFi(n){return/^-?0\d/.test(n)}function TFi(n,e){return n<=e}function IFi(n,e){return n>=e}function M$e(n,e){var s=[],c=M6n("{","}",n);if(!c)return[n];var d=c.pre,_=c.post.length?M$e(c.post,!1):[""];if(/\$$/.test(c.pre))for(var m=0;m<_.length;m++){var b=d+"{"+c.body+"}"+_[m];s.push(b)}else{var E=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body),C=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body),A=E||C,D=c.body.indexOf(",")>=0;if(!A&&!D)return c.post.match(/,(?!,).*\}/)?(n=c.pre+"{"+c.body+tLt+c.post,M$e(n)):[n];var N;if(A)N=c.body.split(/\.\./);else if(N=U6n(c.body),N.length===1&&(N=M$e(N[0],!1).map($Fi),N.length===1))return _.map(function(Ge){return c.pre+N[0]+Ge});var F;if(A){var W=cRt(N[0]),G=cRt(N[1]),j=Math.max(N[0].length,N[1].length),K=N.length==3?Math.abs(cRt(N[2])):1,ee=TFi,re=G<W;re&&(K*=-1,ee=IFi);var ie=N.some(AFi);F=[];for(var _e=W;ee(_e,G);_e+=K){var Te;if(C)Te=String.fromCharCode(_e),Te==="\\"&&(Te="");else if(Te=String(_e),ie){var Se=j-Te.length;if(Se>0){var Ce=new Array(Se+1).join("0");_e<0?Te="-"+Ce+Te.slice(1):Te=Ce+Te}}F.push(Te)}}else{F=[];for(var We=0;We<N.length;We++)F.push.apply(F,M$e(N[We],!1))}for(var We=0;We<F.length;We++)for(var m=0;m<_.length;m++){var b=d+F[We]+_[m];(!e||A||b)&&s.push(b)}}return s}function Wse(n){throw new RangeError(A3i[n])}function o4n(n,e){for(var s=n.length,c=[];s--;)c[s]=e(n[s]);return c}function l4n(n,e){var s=n.split("@"),c="";s.length>1&&(c=s[0]+"@",n=s[1]),n=n.replace($3i,".");var d=n.split("."),_=o4n(d,e).join(".");return c+_}function c4n(n){for(var e=[],s=0,c=n.length,d,_;s<c;)d=n.charCodeAt(s++),d>=55296&&d<=56319&&s<c?(_=n.charCodeAt(s++),(_&64512)==56320?e.push(((d&1023)<<10)+(_&1023)+65536):(e.push(d),s--)):e.push(d);return e}function u4n(n){return o4n(n,function(e){var s="";return e>65535&&(e-=65536,s+=Q$e(e>>>10&1023|55296),e=56320|e&1023),s+=Q$e(e),s}).join("")}function T3i(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:Iz}function $On(n,e){return n+22+75*(n<26)-((e!=0)<<5)}function p4n(n,e,s){var c=0;for(n=s?Dz(n/E3i):n>>1,n+=Dz(n/e);n>dRt*oAe>>1;c+=Iz)n=Dz(n/dRt);return Dz(c+(dRt+1)*n/(n+x3i))}function iLt(n){var e=[],s=n.length,c,d=0,_=a4n,m=i4n,b,E,C,A,D,N,F,W,G;for(b=n.lastIndexOf(s4n),b<0&&(b=0),E=0;E<b;++E)n.charCodeAt(E)>=128&&Wse("not-basic"),e.push(n.charCodeAt(E));for(C=b>0?b+1:0;C<s;){for(A=d,D=1,N=Iz;C>=s&&Wse("invalid-input"),F=T3i(n.charCodeAt(C++)),(F>=Iz||F>Dz((cme-d)/D))&&Wse("overflow"),d+=F*D,W=N<=m?rLt:N>=m+oAe?oAe:N-m,!(F<W);N+=Iz)G=Iz-W,D>Dz(cme/G)&&Wse("overflow"),D*=G;c=e.length+1,m=p4n(d-A,c,A==0),Dz(d/c)>cme-_&&Wse("overflow"),_+=Dz(d/c),d%=c,e.splice(d++,0,_)}return u4n(e)}function aLt(n){var e,s,c,d,_,m,b,E,C,A,D,N=[],F,W,G,j;for(n=c4n(n),F=n.length,e=a4n,s=0,_=i4n,m=0;m<F;++m)D=n[m],D<128&&N.push(Q$e(D));for(c=d=N.length,d&&N.push(s4n);c<F;){for(b=cme,m=0;m<F;++m)D=n[m],D>=e&&D<b&&(b=D);for(W=c+1,b-e>Dz((cme-s)/W)&&Wse("overflow"),s+=(b-e)*W,e=b,m=0;m<F;++m)if(D=n[m],D<e&&++s>cme&&Wse("overflow"),D==e){for(E=s,C=Iz;A=C<=_?rLt:C>=_+oAe?oAe:C-_,!(E<A);C+=Iz)j=E-A,G=Iz-A,N.push(Q$e($On(A+j%G,0))),E=Dz(j/G);N.push(Q$e($On(E,0))),_=p4n(s,W,c==d),s=0,++c}++s,++e}return N.join("")}function d4n(n){return l4n(n,function(e){return C3i.test(e)?iLt(e.slice(4).toLowerCase()):e})}function sLt(n){return l4n(n,function(e){return w3i.test(e)?"xn--"+aLt(e):e})}function R3i(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function A$e(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}}function lAe(n,e,s,c){return e=e||"&",s=s||"=",n===null&&(n=void 0),typeof n=="object"?AOn(N3i(n),function(d){var _=encodeURIComponent(A$e(d))+s;return h4n(n[d])?AOn(n[d],function(m){return _+encodeURIComponent(A$e(m))}).join(e):_+encodeURIComponent(A$e(n[d]))}).join(e):c?encodeURIComponent(A$e(c))+s+encodeURIComponent(A$e(n)):""}function AOn(n,e){if(n.map)return n.map(e);for(var s=[],c=0;c<n.length;c++)s.push(e(n[c],c));return s}function mme(n,e,s,c){e=e||"&",s=s||"=";var d={};if(typeof n!="string"||n.length===0)return d;var _=/\+/g;n=n.split(e);var m=1e3;c&&typeof c.maxKeys=="number"&&(m=c.maxKeys);var b=n.length;m>0&&b>m&&(b=m);for(var E=0;E<b;++E){var C=n[E].replace(_,"%20"),A=C.indexOf(s),D,N,F,W;A>=0?(D=C.substr(0,A),N=C.substr(A+1)):(D=C,N=""),F=decodeURIComponent(D),W=decodeURIComponent(N),R3i(d,F)?h4n(d[F])?d[F].push(W):d[F]=[d[F],W]:d[F]=W}return d}function _8(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function EAe(n,e,s){if(n&&x6n(n)&&n instanceof _8)return n;var c=new _8;return c.parse(n,e,s),c}function y4n(n,e,s,c){if(!YPt(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var d=e.indexOf("?"),_=d!==-1&&d<e.indexOf("#")?"?":"#",m=e.split(_),b=/\\/g;m[0]=m[0].replace(b,"/"),e=m.join(_);var E=e;if(E=E.trim(),!c&&e.split("#").length===1){var C=F3i.exec(E);if(C)return n.path=E,n.href=E,n.pathname=C[1],C[2]?(n.search=C[2],s?n.query=mme(n.search.substr(1)):n.query=n.search.substr(1)):s&&(n.search="",n.query={}),n}var A=M3i.exec(E);if(A){A=A[0];var D=A.toLowerCase();n.protocol=D,E=E.substr(A.length)}if(c||A||E.match(/^\/\/[^@\/]+@[^@\/]+/)){var N=E.substr(0,2)==="//";N&&!(A&&QRt[A])&&(E=E.substr(2),n.slashes=!0)}var F,W,G,j;if(!QRt[A]&&(N||A&&!ume[A])){var K=-1;for(F=0;F<IOn.length;F++)W=E.indexOf(IOn[F]),W!==-1&&(K===-1||W<K)&&(K=W);var ee,re;for(K===-1?re=E.lastIndexOf("@"):re=E.lastIndexOf("@",K),re!==-1&&(ee=E.slice(0,re),E=E.slice(re+1),n.auth=decodeURIComponent(ee)),K=-1,F=0;F<TOn.length;F++)W=E.indexOf(TOn[F]),W!==-1&&(K===-1||W<K)&&(K=W);K===-1&&(K=E.length),n.host=E.slice(0,K),E=E.slice(K),x4n(n),n.hostname=n.hostname||"";var ie=n.hostname[0]==="["&&n.hostname[n.hostname.length-1]==="]";if(!ie){var _e=n.hostname.split(/\./);for(F=0,G=_e.length;F<G;F++){var Te=_e[F];if(Te&&!Te.match(DOn)){for(var Se="",Ce=0,We=Te.length;Ce<We;Ce++)Te.charCodeAt(Ce)>127?Se+="x":Se+=Te[Ce];if(!Se.match(DOn)){var Ge=_e.slice(0,F),Ke=_e.slice(F+1),Ve=Te.match(j3i);Ve&&(Ge.push(Ve[1]),Ke.unshift(Ve[2])),Ke.length&&(E="/"+Ke.join(".")+E),n.hostname=Ge.join(".");break}}}}n.hostname.length>U3i?n.hostname="":n.hostname=n.hostname.toLowerCase(),ie||(n.hostname=sLt(n.hostname)),j=n.port?":"+n.port:"";var Be=n.hostname||"";n.host=Be+j,n.href+=n.host,ie&&(n.hostname=n.hostname.substr(1,n.hostname.length-2),E[0]!=="/"&&(E="/"+E))}if(!W3i[D])for(F=0,G=YRt.length;F<G;F++){var J=YRt[F];if(E.indexOf(J)!==-1){var i=encodeURIComponent(J);i===J&&(i=escape(J)),E=E.split(J).join(i)}}var R=E.indexOf("#");R!==-1&&(n.hash=E.substr(R),E=E.slice(0,R));var ut=E.indexOf("?");if(ut!==-1?(n.search=E.substr(ut),n.query=E.substr(ut+1),s&&(n.query=mme(n.query)),E=E.slice(0,ut)):s&&(n.search="",n.query={}),E&&(n.pathname=E),ume[D]&&n.hostname&&!n.pathname&&(n.pathname="/"),n.pathname||n.search){j=n.pathname||"";var ae=n.search||"";n.path=j+ae}return n.href=lLt(n),n}function oLt(n){if(typeof n=="string")n=new _8().parse(n);else if(!(n instanceof _8))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof n+String(n));if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return z3i(n)}function z3i(n){let e=n.pathname;for(let s=0;s<e.length;s++)if(e[s]==="%"){let c=e.codePointAt(s+2)|32;if(e[s+1]==="2"&&c===102)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(e)}function v4n(n){return YPt(n)&&(n=y4n({},n)),lLt(n)}function lLt(n){var e=n.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var s=n.protocol||"",c=n.pathname||"",d=n.hash||"",_=!1,m="";n.host?_=e+n.host:n.hostname&&(_=e+(n.hostname.indexOf(":")===-1?n.hostname:"["+this.hostname+"]"),n.port&&(_+=":"+n.port)),n.query&&x6n(n.query)&&Object.keys(n.query).length&&(m=lAe(n.query));var b=n.search||m&&"?"+m||"";return s&&s.substr(-1)!==":"&&(s+=":"),n.slashes||(!s||ume[s])&&_!==!1?(_="//"+(_||""),c&&c.charAt(0)!=="/"&&(c="/"+c)):_||(_=""),d&&d.charAt(0)!=="#"&&(d="#"+d),b&&b.charAt(0)!=="?"&&(b="?"+b),c=c.replace(/[?#]/g,function(E){return encodeURIComponent(E)}),b=b.replace("#","%23"),s+_+c+b+d}function b4n(n,e){return EAe(n,!1,!0).resolve(e)}function S4n(n,e){return n?EAe(n,!1,!0).resolveObject(e):e}function x4n(n){var e=n.host,s=O3i.exec(e);s&&(s=s[0],s!==":"&&(n.port=s.substr(1)),e=e.substr(0,e.length-s.length)),e&&(n.hostname=e)}function uqe(n,e={}){return new eJ(n,e).streamSync()}function E4n(n,e={}){return new eJ(n,e).stream()}function C4n(n,e={}){return new eJ(n,e).walkSync()}async function ROn(n,e={}){return new eJ(n,e).walk()}function pqe(n,e={}){return new eJ(n,e).iterateSync()}function w4n(n,e={}){return new eJ(n,e).iterate()}function dee(n,e,s){let c=1,d=fme(s),_=t(()=>n.some(m=>m.contains(d))||e.has(d),"hasConflicts");for(;_();)d=fme(`${s}_${c}`),c+=1;for(let m of n)m.declarations[d]=!0;return d}function gme(n){let e=fme(tf.basename(n,tf.extname(n)));return e!=="index"?e:fme(tf.basename(tf.dirname(n)))}function uAe(n){return n.replace(/\\/g,"/")}function nNt(n){return n[0].toUpperCase()+n.slice(1)}function r6i({strictRequires:n}){switch(n){case!0:return{strictRequiresFilter:t(()=>!0,"strictRequiresFilter"),detectCyclesAndConditional:!1};case void 0:case"auto":case"debug":case null:return{strictRequiresFilter:t(()=>!1,"strictRequiresFilter"),detectCyclesAndConditional:!0};case!1:return{strictRequiresFilter:t(()=>!1,"strictRequiresFilter"),detectCyclesAndConditional:!1};default:if(typeof n=="string"||Array.isArray(n))return{strictRequiresFilter:sJ(n),detectCyclesAndConditional:!1};throw new Error('Unexpected value for "strictRequires" option.')}}async function i6i(n,e){let s="index.js";try{(await e.stat(tf.join(n,"package.json"))).isFile()&&(s=JSON.parse(await e.readFile(tf.join(n,"package.json"),"utf8")).main||s)}catch{}return s}async function a6i(n,e){try{if((await e.stat(n)).isDirectory())return!0}catch{}return!1}async function s6i(n,e,s,c){let d=new Map,_=new Set;for(let m of!n||Array.isArray(n)?n||[]:[n]){let b=m.startsWith("!"),E=t((A,D)=>b?d.delete(A):d.set(A,D),"modifyMap"),C=await cAe(b?m.substr(1):m,{fs:c,cwd:s});for(let A of C.sort((D,N)=>D.localeCompare(N,"en"))){let D=tf.resolve(A),N=uAe(D);if(await a6i(D,c)){_.add(D);let F=tf.resolve(tf.join(D,await i6i(A,c)));E(N,F),E(uAe(F),F)}else _.add(tf.dirname(D)),E(N,D)}}return{commonDir:_.size?bFi([..._,e]):null,dynamicRequireModules:d}}function o6i(n,e,s,c){if(!n)return`export function ${cLt}(path) {
31222
31222
  ${NOn}
31223
31223
  }`;let d=[...e.values()].map((m,b)=>`import ${m.endsWith(".json")?`json${b}`:`{ __require as require${b} }`} from ${JSON.stringify(m)};`).join(`
31224
31224
  `),_=[...e.keys()].map((m,b)=>` ${JSON.stringify($4n(m,s))}: ${m.endsWith(".json")?`function () { return json${b}; }`:`require${b}`}`).join(`,
@@ -48786,7 +48786,7 @@ Additionally, handling the error in the 'buildEnd' hook caused the following err
48786
48786
  ${JSON.stringify(E.getCompilerOptions(),null,2)}`);let C=E.addSourceFilesAtPaths([i7.path.join(d,"**/*.ts"),i7.path.join(d,"**/*.tsx"),i7.path.join(d,"**/*.d.ts"),"!**/node_modules/**"]);e.debug(`Type checking ${C.length} client source files:
48787
48787
  ${C.map(D=>` - ${D.getFilePath()}`).join(`
48788
48788
  `)}`);let A=E.getPreEmitDiagnostics();if(A.length>0)throw new Error(`Type check failed!
48789
- ${E.formatDiagnosticsWithColorAndContext(A)}`);e.info("Type check completed successfully")}},"typeCheckProject");hoe.typeCheckProject=bji;async function Sji({project:n}){let e=n.getLogger(),s=n.getConfig(),c=n.getFileSystem();(0,hoe.typeCheckProject)(n);let d=(0,Yqe.projectHasScript)(n,"prebuild");if((!Qqe.isWebWorker||(0,Qqe.hasModuleLoader)())&&d)await(0,Yqe.runScriptInProject)({scriptName:"prebuild",project:n,throwIfNotFound:!1});else if(s.clientDir){d&&e.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:m}=await Promise.resolve().then(()=>VQ(gBn()));await m({project:n})}if(i7.FileSystem.existsSync(c,n.resolvePath(s.staticContentDir)))for(let m of n.reloadDirectory(s.staticContentDir))m.setReadOnly(!0)}t(Sji,"uiPrebuild");async function xji({project:n}){let e=n.getLogger();!Qqe.isWebWorker||(0,Qqe.hasModuleLoader)()?await(0,Yqe.runScriptInProject)({scriptName:"postbuild",project:n,throwIfNotFound:!1}):(0,Yqe.projectHasScript)(n,"postbuild")&&e.warn("Custom scripts are not supported, skipping postbuild script")}t(xji,"uiPostbuild")});var Lee=st(B3=>{"use strict";pe();ue();oe();ce();le();var Eji=B3&&B3.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Pee=B3&&B3.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Eji(e,n,s)};Object.defineProperty(B3,"__esModule",{value:!0});Pee(MMn(),B3);Pee(BMn(),B3);Pee(VMn(),B3);Pee(UMn(),B3);Pee(tRt(),B3);Pee(DWe(),B3);Pee(zMn(),B3);Pee(yBn(),B3)});var vBn=st(eHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eHe,"__esModule",{value:!0});eHe.Diagnostics=void 0;var V3=Lc();function Zqe(n){return V3.ts.Node.isNode(n)?n:n.getOriginalNode()}t(Zqe,"getOriginalNode");var okt=class{static{t(this,"Diagnostics")}diagnostics=[];error(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Error}))}warn(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Warn}))}info(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Info}))}hint(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Hint}))}add(e){Cji(e)||this.diagnostics.some(s=>s.message===e.message&&s.code===e.code&&s.level===e.level&&s.source===e.source&&s.position.start===e.position.start&&s.position.end===e.position.end&&s.file.getFilePath()===e.file.getFilePath())||this.diagnostics.push(e)}getAll(e){return e?this.diagnostics.filter(s=>s.file.getFilePath()===e):this.diagnostics}clear(e){this.diagnostics=e?this.diagnostics.filter(s=>s.file.getFilePath()!==e):[]}getWarnings(e){return this.getAll(e).filter(s=>s.level===V3.Diagnostic.Level.Warn)}hasErrors(e){return this.getAll(e).some(s=>s.level===V3.Diagnostic.Level.Error)}getErrors(e){return this.getAll(e).filter(s=>s.level===V3.Diagnostic.Level.Error)}};eHe.Diagnostics=okt;function Cji(n){return n instanceof V3.FluentDiagnostic&&(0,V3.hasDirective)(n.node,"@fluent-ignore")}t(Cji,"isIgnored")});var bBn=st(nHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nHe,"__esModule",{value:!0});nHe.MultiProjectTransform=void 0;var Uz=Lc(),wji=qAe(),tHe=class{static{t(this,"Transform")}project;pluginUsageTracker;constructor(e,s){this.project=e,this.pluginUsageTracker=s}async shapeToSubclass(e,s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.shapeToSubclass(e,this.project.getContext());if(d.success)return await this.shapeToSubclass(d.value,s)}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to subclass "${e.getKind()}" shape:`,d)}return{success:!0,value:e}}async shapeToRecord(e,s){if(e.isRecord())return{success:!0,value:e};for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.shapeToRecord(e,this.project.getContext());if(d.success)return this.pluginUsageTracker.addPluginToRecordUsage(c,e,d.value.getCount()),{success:!0,value:d.value}}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${e.getKind()}" shape into record:`,d)}return{success:!1}}async nodeToRecord(e,s){let c=await this.toShape(e,...s);return c.success?this.shapeToRecord(c.value,s):c}async fileToRecord(e,s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.fileToRecord(e,this.project.getContext());if(d.success)return this.pluginUsageTracker.addPluginToRecordUsage(c,e,d.value.getCount()),{success:!0,value:d.value}}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${e.path}" into records:`,d)}return{success:!1}}async toRecord(e,...s){return Uz.ts.Node.isNode(e)?this.nodeToRecord(e,s):e instanceof Uz.Shape?this.shapeToRecord(e,s):this.fileToRecord(e,s)}async toShape(e,...s){let c=this.project.getDiagnosticsService();if(!(0,Uz.isSupportedNode)(e))return(0,Uz.isFluentNode)(e)&&c.error(e,`Node kind "${(0,Uz.getUnsupportedKindName)(e)}" is not allowed in Fluent files.`),{success:!1};for(let d of s.length>0?s:this.project.getPlugins().toArray())try{let _=await d.nodeToShape(e,this.project.getContext()),m=_.success?await this.shapeToSubclass(_.value,s):_,b=m.success?await this.toRecord(m.value,...s):m,E=b.success?b:m;if(E.success)return E}catch(_){this.project.getLogger().error(`Plugin "${d.getName()}" failed to transform "${e.getKindName()}" node into shape:`,_)}return{success:!1}}async recordToShape(e,s,...c){for(let d of c.length>0?c:this.project.getPlugins().toArray()){let _=await d.recordToShape({record:e,database:s,context:this.project.getContext()});if(_.success)return _}return{success:!1}}async toSubclass(e,...s){return this.shapeToSubclass(e,s)}async getUpdateName(e,...s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.getUpdateName(e,this.project.getContext());if(d.success)return d.value}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to get update name for record: ${e.getTable()}`,d)}throw new Error(`Failed to get update name for record: ${e.getTable()}`)}},lkt=class{static{t(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(e,s){this.rootProject=e,this.pluginUsageTracker=s,this.rootTransform=new tHe(e,this.pluginUsageTracker),this.transformMap[e.getRootDir()]=this.rootTransform}toRecord(e,...s){return this.getTransformForPath(Uz.ts.Node.isNode(e)?e.getSourceFile().getFilePath():e instanceof Uz.Shape?e.getOriginalFilePath():e.path).toRecord(e,...s)}async toShape(e,...s){return this.getTransformForPath(e.getSourceFile().getFilePath()).toShape(e,...s)}async recordToShape(e,s,...c){return this.getTransformForPath(e.getOriginalFilePath()).recordToShape(e,s,...c)}async toSubclass(e,...s){return this.getTransformForPath(e.getOriginalFilePath()).toSubclass(e,...s)}async getUpdateName(e,...s){return this.getTransformForPath(e.getOriginalFilePath()).getUpdateName(e,...s)}createTransform(e){let{plugins:s,fs:c,logger:d,diagnostics:_,transform:m}=this.rootProject.getContext();return new tHe(new wji.Project({rootDir:e,plugins:s,fileSystem:c,logger:d,diagnostics:_,transform:m}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(e){if(this.transformMap[e])return this.transformMap[e];if(this.rootProject.getFileIfExists(e))return this.transformMap[e]=this.rootTransform;let s=this.findProjectRootForPath(e);return s&&this.transformMap[s]?this.transformMap[s]:s?this.transformMap[s]=this.createTransform(s):this.getFallbackTransform()}findProjectRootForPath(e){if(this.isProjectRoot(e))return e;let s=Uz.path.dirname(e);if(s!==e)return this.findProjectRootForPath(s)}isProjectRootCache={};isProjectRoot(e){if(typeof this.isProjectRootCache[e]=="boolean")return this.isProjectRootCache[e];let s=Uz.path.join(e,"now.config.json");return this.isProjectRootCache[e]=e in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(s)||Uz.FileSystem.existsSync(this.rootProject.getFileSystem(),s)}};nHe.MultiProjectTransform=lkt});var SBn=st(rHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rHe,"__esModule",{value:!0});rHe.Keys=void 0;var ckt=Lc(),ukt=class{static{t(this,"Keys")}keys;constructor(e){this.keys=new ckt.KeysRegistry(e.getCompiler(),{rootDir:e.getRootDir(),config:e.getConfig(),package:e.getPackage()},e.getFileSystem())}queryExplicitId(e,s){return this.keys.queryExplicitId(e,s instanceof ckt.Shape?(s.ifString()??s.asNumber("Explicit key must be a string or number")).getValue():s)}registerExplicitId(e,s,c){return s instanceof ckt.Shape?this.keys.registerExplicitId(e,(s.ifString()??s.asNumber("Explicit key must be a string or number")).getValue(),c):this.keys.registerExplicitId(e,s,c)}deleteExplicitId(e,s,c){return this.keys.deleteExplicitId(e,s,c)}queryCoalesceId(e,s){return this.keys.queryCompositeId(e,s)}registerCoalesceId(e,s,c){return this.keys.registerCompositeId(e,s,c)}deleteCoalesceId(e,s,c){return this.keys.deleteCompositeId(e,s,c)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(e){await this.keys.commit(e)}reload(){this.keys.reload()}};rHe.Keys=ukt});var xBn=st(iHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iHe,"__esModule",{value:!0});iHe.Inspector=void 0;var pkt=class{static{t(this,"Inspector")}project;constructor(e){this.project=e}inspect(e,...s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{c.inspect(e,this.project.getContext())}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to inspect shape "${e.getKind()}":`,d)}}};iHe.Inspector=pkt});var Uy=st(Hme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Hme,"__esModule",{value:!0});Hme.NowIdPlugin=Hme.NowIdShape=void 0;var aHe=Lc(),sHe=class n extends aHe.ElementAccessExpressionShape{static{t(this,"NowIdShape")}constructor({source:e,id:s}){super({source:e,callee:"Now.ID",arg:s})}getValue(){return this.getArg().getValue()}static from(e){let s=e.getId().getNowIdKey()??e.getId().getValue();return new n({source:e,id:s})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};Hme.NowIdShape=sHe;Hme.NowIdPlugin=aHe.Plugin.create({name:"NowIdPlugin",shapes:[{shape:aHe.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e}){if(n.getCallee()!=="Now.ID")return{success:!1};let s=n.getArg();return!s.isString()&&!s.isNumber()?(e.error(s,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new sHe({source:n,id:s.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(n,{transform:e}){if(n.getName()!=="$id")return{success:!1};let s=n.getExpressionIfKind(aHe.ts.SyntaxKind.Identifier);if(!s)return{success:!1};let c=await e.toShape(s);if(!c.success||!c.value.isIdentifier())return{success:!1};let d=c.value.resolve();return d.isRecord()?{success:!0,value:d.getId()}:{success:!1}}}]})});var EBn=st(oHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(oHe,"__esModule",{value:!0});oHe.ApplicationMenuPlugin=void 0;var dkt=Lc(),$ji=Uy();oHe.ApplicationMenuPlugin=dkt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},async toShape(n,{factory:e}){let s=n.get("roles"),c=s.ifString()?.ifNotEmpty()?.split(",")??[],d=[];for(let _ of c)d.push(await e.createReference({source:s,table:"sys_user_role",keys:{name:_}}));return{success:!0,value:new dkt.CallExpressionShape({source:n,callee:"ApplicationMenu",exportName:n.get("sys_name")?.ifString()?.getValue(),args:[n.transform(({$:_})=>({$id:_.val($ji.NowIdShape.from(n)),title:_,category:_,hint:_.def(""),description:_.def(""),name:_.def(""),active:_.toBoolean().def(!0),order:_.map(m=>m.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:_.val(d).def([])}))]})}}}},shapes:[{shape:dkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e}){if(n.getCallee()!=="ApplicationMenu")return{success:!1};let s=n.getArgument(0).asObject();return{success:!0,value:await e.createRecord({source:n,table:"sys_app_application",explicitId:s.get("$id"),properties:s.transform(({$:c})=>({title:c,hint:c.def(""),description:c.def(""),name:c.def(""),active:c.def(!0),order:c.def(100),device_type:c.val("browser"),roles:c.map(d=>d.ifArray()?.map(_=>(_.ifRecord()?.get("name")??_.asString()).getValue()).join(",")).def(""),category:c}))})}}}]})});var nw=st(a7=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(a7,"__esModule",{value:!0});a7.INVALID_XML_CHARACTERS=void 0;a7.toReference=Aji;a7.reverseObject=Tji;a7.noThrow=Iji;a7.applyPathMappings=Dji;a7.getCallExpressionName=Rji;a7.generateDeprecatedDiagnostics=Nji;a7.validateClientSideScript=Lji;a7.createSdkDocEntry=kji;var HAe=Lc();function Aji(n){return n.ifRecord()?.getId()??n.ifString()?.getValue()??""}t(Aji,"toReference");function Tji(n){let e={};for(let s in n){let c=n[s];typeof c=="string"&&(e[c]=s)}return e}t(Tji,"reverseObject");function Iji(n){try{return n()}catch(e){return e}}t(Iji,"noThrow");a7.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function Dji(n,e){if(!e)return n;for(let[s,c]of Object.entries(e)){let d=n.match(`${s.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(d!==void 0)return c.replace(/\*+/,d)}return n}t(Dji,"applyPathMappings");function Rji(n){let e=n.getExpression();if(HAe.ts.Node.isIdentifier(e)||HAe.ts.Node.isPropertyAccessExpression(e))return e.getText();throw`CallExpression does not have a name: ${e.getText()}`}t(Rji,"getCallExpressionName");function Nji(n,e){Object.keys(n.getAliasedKeys()).forEach(s=>{let c=n.findAliasUsed(s);c&&e.hint(n.get(s),`The property '${c}' is deprecated, use '${s}' instead.`)})}t(Nji,"generateDeprecatedDiagnostics");function Pji(n){let e=n.getExpression();return HAe.ts.Node.isIdentifier(e)&&e.getText()==="require"}t(Pji,"isRequire");function Lji(n,e){let s=e.createSourceFile("tmp-script.ts",n),c=s.getDescendantsOfKind(HAe.ts.SyntaxKind.ImportDeclaration).length>0,d=s.getDescendantsOfKind(HAe.ts.SyntaxKind.CallExpression).some(Pji),_=!(c||d);return e.removeSourceFile(s),_}t(Lji,"validateClientSideScript");function kji(n,e){return{apiName:n,docPath:`@servicenow/sdk/docs/${n}/${n}.md`,tags:e}}t(kji,"createSdkDocEntry")});var fkt=st(KAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KAe,"__esModule",{value:!0});KAe.DataPlugin=void 0;KAe.isDataHelper=Oji;var v8=Lc(),Mji=nw();function Oji(n){if(!v8.ts.Node.isCallExpression(n))return!1;let e=(0,Mji.getCallExpressionName)(n);return Object.values(v8.DATA_HELPER_NAMES).includes(e)}t(Oji,"isDataHelper");var Fji={[v8.DATA_HELPER_NAMES.DURATION]:Bji,[v8.DATA_HELPER_NAMES.TIME]:Vji,[v8.DATA_HELPER_NAMES.FIELD_LIST]:Uji,[v8.DATA_HELPER_NAMES.TEMPLATE_VALUE]:jji};KAe.DataPlugin=v8.Plugin.create({name:"DataPlugin",shapes:[{shape:v8.CallExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e}){let s=n.getCallee(),c=Fji[s];return c?c(n,e):{success:!1}}}]});function CBn(n,e){let s=[];for(let c of e){let d=n[c];if(!d?.isDefined()||!d.isNumber())continue;let _=d.asNumber().getValue();_<0&&s.push(`${c} must be >= 0, got ${_}`)}return s}t(CBn,"validateNonNegative");function wBn(n,e){return e.some(s=>n[s]?.isDefined())}t(wBn,"hasAtLeastOneField");function Bji(n,e){let s=n.getArgument(0),c=s.asObject().properties({resolve:!1});if(!wBn(c,["days","hours","minutes","seconds"]))return e.error(n,"Duration must have at least one field defined (days, hours, minutes, or seconds)"),{success:!1};let d=CBn(c,["days","hours","minutes","seconds"]);return d.length>0?(e.error(n,`Invalid duration values: ${d.join(", ")}`),{success:!1}):{success:!0,value:new v8.DurationShape({source:n,value:s.asObject()})}}t(Bji,"createDurationShape");function Vji(n,e){let s=n.getArgument(0),c=s.asObject().properties({resolve:!1});if(!wBn(c,["hours","minutes","seconds"]))return e.error(n,"Time must have at least one field defined (hours, minutes, or seconds)"),{success:!1};let d=CBn(c,["hours","minutes","seconds"]);if(d.length>0)return e.error(n,`Invalid time values: ${d.join(", ")}`),{success:!1};let _=n.getArgument(1);if(_.isUndefined())return{success:!0,value:new v8.TimeShape({source:n,value:s.asObject()})};if(!_.isString())return e.error(n,"Second argument (timezone) must be a string literal"),{success:!1};let m=_.asString().getValue();return Wji(m)?{success:!0,value:new v8.TimeShape({source:n,value:s.asObject(),timeZone:m})}:(e.error(n,`Invalid IANA timezone: '${m}'. Use a valid timezone like 'America/New_York', 'Europe/London', or 'UTC'.`),{success:!1})}t(Vji,"createTimeShape");function Uji(n,e){let s=n.getArgument(0).asArray().getElements();return{success:!0,value:new v8.FieldListShape({source:n,fields:s})}}t(Uji,"createFieldListShape");function jji(n,e){let s=n.getArgument(0).asObject().properties({resolve:!1});for(let[c,d]of Object.entries(s))if(d.isString()&&d.getValue().includes("^^"))return e.error(n,`Template field '${c}' contains an invalid character sequence: multiple carets (^^). Use a single caret (^) if needed, it will be escaped automatically.`),{success:!1};return{success:!0,value:new v8.TemplateValueShape({source:n,value:s})}}t(jji,"createTemplateValueShape");function Wji(n){try{return Intl.DateTimeFormat(void 0,{timeZone:n}),!0}catch{return!1}}t(Wji,"isValidTimeZone")});var _kt=st(lHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(lHe,"__esModule",{value:!0});lHe.BasicSyntaxPlugin=void 0;var rp=Lc(),zji=fkt(),Gji=nw();lHe.BasicSyntaxPlugin=rp.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${rp.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:rp.SourceFileShape,getTarget(n,{compiler:e,project:s}){let c=n.getOriginalSource();return{success:!0,value:rp.ts.Node.isNode(c)?c:e.getOrCreateSourceFile(s.resolvePath(n.getPath()))}},commit(n,e,{project:s}){let c=s.getFileIfExists(n.getPath());return c?c.setContent(n.getContent()):s.addFile({path:n.getPath(),content:n.getContent()}),{success:!0}}},{shape:rp.Shape,getTarget(n,{compiler:e,project:s,config:c}){let d=n.getOriginalSource();if((0,rp.isValidNode)(d))return{success:!0,value:d};if(n.isNoOp()||n.isUndefined()||n.isRecord()&&n.isDeleted())return{success:!1};let{generatedDir:_,taxonomy:m}=c,b=n.getSource()instanceof rp.Record?n.getSource().getTable():void 0,E=b&&m.mapping[b]?rp.path.join(_,m.mapping[b]):_,C=rp.path.basename(d.path).replace(RegExp(`${rp.path.extname(d.path)}$`),"");if(!C){let N=n.getSource()instanceof rp.Record?n.getSource().getId().getValue():void 0;C=`${b}_${N}`}s.isTypesGenerationMode()&&n.is(rp.VariableStatementShape)&&n.isExported()&&(C=n.getVariableName().getName());let A=e.getOrCreateSourceFile(s.resolvePath(s.getRootDir(),E,`${C}.now.ts`)),D=s.addFile(A.getFilePath(),{resolveDependencies:!1}).addStatement(n.getCode());return{success:!0,value:D.isKind(rp.ts.SyntaxKind.ExpressionStatement)?D.getExpression():D}}},{shape:rp.DeletedShape,commit(n,e){return(0,rp.removeReferences)(e),(0,rp.remove)(e),{success:!0}}},{shape:rp.UndefinedShape,commit(n,e){return(0,rp.isUndefined)(e)||e.replaceWithText("undefined"),{success:!0}}},{shape:rp.TemplateExpressionShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isTemplateExpression(e)&&!rp.ts.Node.isTaggedTemplateExpression(e)&&!rp.ts.Node.isNoSubstitutionTemplateLiteral(e))return e.replaceWithText(n.getCode()),{success:!0};let c=rp.ts.Node.isTaggedTemplateExpression(e)?e.removeTag():e,d=rp.ts.Node.isTemplateExpression(c)?c.getTemplateSpans():[],_=n.getSpans();if(_.length!==d.length)return c.replaceWithText(n.getCode()),{success:!0};for(let[m,b]of d.entries()){let E=_[m];if(!E)throw new Error(`Expected shape to have a span at index ${m}`);await s(E,b)}return{success:!0}}},{shape:rp.TemplateSpanShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isTemplateSpan(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getLiteral();return n.getLiteralText()!==c.getLiteralText()&&(c.isKind(rp.ts.SyntaxKind.TemplateMiddle)?c.replaceWithText(`}${n.getLiteralText()}\${`):c.isKind(rp.ts.SyntaxKind.TemplateTail)&&c.replaceWithText(`}${n.getLiteralText()}\``)),await s(n.getExpression(),e.getExpression()),{success:!0}}},{shape:rp.StringLiteralShape,async commit(n,e,{commit:s}){let c=(()=>{try{if(rp.ts.Node.isTrueLiteral(e)||rp.ts.Node.isFalseLiteral(e))return n.toBoolean();if(rp.ts.Node.isNumericLiteral(e)){let d=n.toNumber();return d.getValue().toString()===n.getValue()?d:void 0}else if((0,zji.isDataHelper)(e)){if(!rp.ts.Node.isCallExpression(e))return;let d=(0,Gji.getCallExpressionName)(e),_=e.getArguments()[1]?.asKind(rp.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return(0,rp.asDataHelper)(d,n,_)}else return}catch{return}})();return c?(await s(c,e),{success:!0}):(rp.ts.Node.isTaggedTemplateExpression(e)?e.getTemplate().replaceWithText(new rp.TemplateExpressionShape({source:n,literalText:n}).getCode()):e.replaceWithText(n.getCode()),{success:!0})}},{shape:rp.NumberShape,commit(n,e){return rp.ts.Node.isNumericLiteral(e)&&e.getLiteralValue()===n.getValue()?{success:!0}:(e.replaceWithText(n.getValue().toString()),{success:!0})}},{shape:rp.BooleanShape,commit(n,e){return(rp.ts.Node.isTrueLiteral(e)||rp.ts.Node.isFalseLiteral(e))&&e.getLiteralValue()===n.getValue()?{success:!0}:(e.replaceWithText(n.getValue().toString()),{success:!0})}},{shape:rp.ArrayShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isArrayLiteralExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getElements(),d=n.getElements(!1),_=c.length-d.length;for(let b=1;b<=_;b++)e.removeElement(c.length-b);for(let[b,E]of e.getElements().entries())await s(n.getElement(b,!1),E);let m=d.slice(e.getElements().length).map(b=>b.getCode());return m.length>0&&e.addElements(m),{success:!0}}},{shape:rp.ObjectShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isObjectLiteralExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getProperties().filter(b=>b.isKind(rp.ts.SyntaxKind.PropertyAssignment)).reduce((b,E)=>b.set(qji(E),E.getInitializerOrThrow()),new Map),d=new Set(["$meta"]),_=[];for(let[b,E]of n.entries({resolve:!1})){let C=[...n.getAliases(b),b].find(A=>c.has(A));C!==void 0?(C!==b&&e.getPropertyOrThrow(C).asKindOrThrow(rp.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(b),await s(E,c.get(C))):E.equals(n.getDefault(b))||_.push({name:rp.ObjectShape.quotePropertyNameIfNeeded(b),initializer:E.getCode(),kind:rp.ts.StructureKind.PropertyAssignment}),d.add(b)}return _.length>0&&e.addPropertyAssignments(_),[...c.keys()].filter(b=>!d.has(b)).forEach(b=>{e.getProperty(b)?.asKindOrThrow(rp.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:rp.IdentifierShape,commit(n,e){return rp.ts.Node.isIdentifier(e)&&e.getText()===n.getName()?{success:!0}:(e.replaceWithText(n.getName()),{success:!0})}},{shape:rp.VariableStatementShape,async commit(n,e,{commit:s}){if(rp.ts.Node.isExpressionStatement(e))return e.replaceWithText(n.getCode()),{success:!0};if(rp.ts.Node.isCallExpression(e)){let b=e.getParentIfKind(rp.ts.SyntaxKind.ExpressionStatement);if(b)return b.replaceWithText(n.getCode()),{success:!0}}let c=rp.ts.Node.isVariableStatement(e)?e:e.getFirstAncestorByKindOrThrow(rp.ts.SyntaxKind.VariableStatement);c.isExported()!==n.isExported()&&c.setIsExported(n.isExported());let[d,_]=c.getDeclarations();if(!d)throw new Error(`Variable statement is missing a declaration: ${c.getFullText()}`);_&&((0,rp.removeReferences)(_),(0,rp.remove)(_));let m=n.getVariableName();return d.getName()!==m.getName()&&await s(m,d.getNameNode()),await s(n.getInitializer(),d.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(n,{diagnostics:e,transform:s}){if((0,rp.isFluentFile)(n)){let c=n.getChildSyntaxList();if(!c)return e.error(n,"Fluent source file contains no meaningful content."),{success:!1};for(let d of c.getChildren()){if(rp.ts.Node.isCommentNode(d))continue;if(!(await s.toShape(d)).success)return e.error(d,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new rp.SourceFileShape({source:n,path:n.getFilePath(),content:n.getFullText()})}}},{node:"StringLiteral",toShape(n){return{success:!0,value:new rp.StringLiteralShape({source:n,literalText:n.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(n){return{success:!0,value:new rp.TemplateExpressionShape({source:n,literalText:n.getLiteralValue()})}}},{node:"NumericLiteral",toShape(n){return{success:!0,value:new rp.NumberShape({source:n,value:n.getLiteralValue()})}}},{node:"NullKeyword",toShape(n){return{success:!0,value:new rp.UndefinedShape({source:n})}}},{node:"TrueKeyword",toShape(n){return{success:!0,value:new rp.BooleanShape({source:n,value:!0})}}},{node:"FalseKeyword",toShape(n){return{success:!0,value:new rp.BooleanShape({source:n,value:!1})}}},{node:"AsExpression",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"ExportAssignment",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"ComputedPropertyName",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"PropertyAccessExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getNameNode(),d=await e.toShape(c);if(!d.success||!d.value.isIdentifier())return s.error(c,"Last element of property access expression is unsupported"),{success:!1};let _=n.getExpression(),m=await e.toShape(_);if(!m.success||!m.value.is([rp.IdentifierShape,rp.PropertyAccessShape]))return s.error(_,"Left side of property access expression is unsupported"),{success:!1};let b=m.value.isIdentifier()?[m.value,d.value]:[...m.value.getElements(),d.value];return{success:!0,value:new rp.PropertyAccessShape({source:n,elements:b})}}},{node:"ExpressionStatement",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"Identifier",async toShape(n,{transform:e}){if((0,rp.isUndefined)(n))return{success:!0,value:new rp.UndefinedShape({source:n})};let s=n.getSymbol()?.getName()??n.getText(),c=(0,rp.getValueDeclaration)(n),d=c&&await e.toShape(c);return{success:!0,value:d?.success?new rp.IdentifierShape({source:n,name:s,value:d.value}):new rp.IdentifierShape({source:n,name:s})}}},{node:"Parameter",toShape(n){return{success:!0,value:new rp.IdentifierShape({source:n,name:n.getName()})}}},{node:"VariableStatement",async toShape(n,{transform:e,diagnostics:s}){let c=n.getDeclarationKind();if(c!==rp.ts.VariableDeclarationKind.Const)return s.error(n.getDeclarationKindKeywords()[0]??n,`Declaration kind "${c}" is not supported. Only const variables are supported.`),{success:!1};let d=n.getDefaultKeyword();if(d)return s.error(d,"Default exports are not supported"),{success:!1};let[_,m]=n.getDeclarations();if(!_)return s.error(n,"Missing declaration in variable statement"),{success:!1};if(m)return s.error(m,"Additional declarations in variable statements are not supported"),{success:!1};let b=_.getInitializerOrThrow(),E=await e.toShape(b);return E.success?{success:!0,value:new rp.VariableStatementShape({source:n,variableName:new rp.IdentifierShape({source:n,name:_.getName()}),initializer:E.value,isExported:n.isExported()})}:(s.error(b,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(n,{transform:e}){let s=n.getInitializer();return s?e.toShape(s):{success:!0,value:new rp.UndefinedShape({source:n})}}},{node:"ArrayLiteralExpression",async toShape(n,{transform:e}){let s=[];for(let c of n.getElements()){let d=await e.toShape(c);if(!d.success)return{success:!1};s.push(d.value)}return{success:!0,value:new rp.ArrayShape({source:n,elements:s})}}},{node:"PropertyAssignment",toShape(n,{transform:e,diagnostics:s}){let c=n.getInitializer();return c?e.toShape(c):(s.error(n,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(n,{transform:e,diagnostics:s}){let c={};for(let d of n.getProperties()){if(!rp.ts.Node.isPropertyAssignment(d)){s.error(d,"Only property assignments are allowed");continue}let _=await e.toShape(d);if(!_.success)return s.error(d,"Failed to parse property"),{success:!1};let m=d.getNameNode(),b=rp.ts.Node.isStringLiteral(m)?m.getLiteralValue():d.getName();c[b]=_.value}return{success:!0,value:new rp.ObjectShape({source:n,properties:c})}}},{node:"TemplateSpan",async toShape(n,{transform:e,diagnostics:s}){let c=await e.toShape(n.getExpression());return c.success?{success:!0,value:new rp.TemplateSpanShape({source:n,expression:c.value,literalText:n.getLiteral().getLiteralText()})}:(s.error(n,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(n,{transform:e,diagnostics:s}){let c=[];for(let d of n.getTemplateSpans()){let _=await e.toShape(d);if(!_.success||!_.value.is(rp.TemplateSpanShape))return s.error(d,"Unsupported span in template expression"),{success:!1};c.push(_.value)}return{success:!0,value:new rp.TemplateExpressionShape({source:n,literalText:n.getHead().getLiteralText(),spans:c})}}},{node:"TaggedTemplateExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getTemplate(),d=await e.toShape(c);return!d.success||!d.value.is(rp.TemplateExpressionShape)?(s.error(c,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new rp.TaggedTemplateExpressionShape({source:n,tag:n.getTag().getText(),template:d.value})}}},{node:"PrefixUnaryExpression",toShape(n,{diagnostics:e}){return!rp.ts.Node.isNumericLiteral(n.getOperand())||n.getOperatorToken()!==rp.ts.SyntaxKind.MinusToken?(e.error(n,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new rp.NumberShape({source:n,value:-n.getOperand().asKindOrThrow(rp.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getArgumentExpression();if(!c)return s.error(n,"Element access expression must have an argument"),{success:!1};let d=await e.toShape(c);return d.success?{success:!0,value:new rp.ElementAccessExpressionShape({source:n,callee:n.getExpression().getText(),arg:d.value})}:(s.error(n,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(n){return{success:!0,value:rp.Shape.noOp(n)}}},{node:"ExportDeclaration",toShape(n){return{success:!0,value:rp.Shape.noOp(n)}}}]});function qji(n){let e=n.getNameNode();return rp.ts.Node.isStringLiteral(e)||rp.ts.Node.isNoSubstitutionTemplateLiteral(e)?e.getLiteralValue():e.getText()}t(qji,"getName")});var XAe=st(cHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(cHe,"__esModule",{value:!0});cHe.CallExpressionPlugin=void 0;var JAe=Lc(),Hji=nw();cHe.CallExpressionPlugin=JAe.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(n,{transform:e}){let s=[];for(let c of n.getArguments()){let d=await e.toShape(c);if(!d.success)return{success:!1};s.push(d.value)}return{success:!0,value:new JAe.CallExpressionShape({source:n,callee:(0,Hji.getCallExpressionName)(n),args:s})}}}],shapes:[{shape:JAe.CallExpressionShape,async commit(n,e,{commit:s}){if(e.isKind(JAe.ts.SyntaxKind.ExpressionStatement)&&(e=e.getExpression()),!JAe.ts.Node.isCallExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getExpression();c.getText()!==n.getCallee()&&c.replaceWithText(n.getCallee());let d=e.getArguments(),_=n.getArguments(!1),m=d.length-_.length;for(let E=1;E<=m;E++)e.removeArgument(d.length-E);for(let[E,C]of e.getArguments().entries())await s(n.getArgument(E,!1),C);let b=_.slice(e.getArguments().length).map(E=>E.getCode());return b.length>0&&e.addArguments(b),{success:!0}}}]})});var oJ=st(Kme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Kme,"__esModule",{value:!0});Kme.NowIncludePlugin=Kme.NowIncludeShape=void 0;var s7=Lc(),Kji=XAe(),moe=class n extends s7.CallExpressionShape{static{t(this,"NowIncludeShape")}includedText;constructor({source:e,path:s,includedText:c}){super({source:e,callee:"Now.include",args:[s]}),this.includedText=c}getPath(){return this.getArgument(0).asString().getValue()}getValue(){return this.includedText}toString(){return s7.Shape.from(this,this.getValue()).asString().withContentType("cdata")}equals(e){return typeof e=="string"?this.includedText===e:e instanceof s7.Shape?e.equals(this.includedText):super.equals(e)}static async fromRecord(e,s,c){let d=s7.taxonomySchemaDefault[e.getTable()],_=d?.startsWith("client-development")?".client":d?.startsWith("server-development")?".server":"";return new n({source:e,path:`./${await c.getUpdateName(e)}${_}.js`,includedText:s instanceof s7.Shape?s.toString().getValue():s})}};Kme.NowIncludeShape=moe;Kme.NowIncludePlugin=s7.Plugin.create({name:"NowIncludePlugin",shapes:[{shape:s7.CallExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e,project:s}){if(n.getCallee()!=="Now.include")return{success:!1};let c=n.getArgument(0);if(!c.isString())return e.error(c,"Now.include() must have a string argument"),{success:!1};let d=c.getValue();if(!/^\.\.?\/.*$/.test(d.trim())&&d.includes("/"))return e.error(c,"Now.include() argument must be a relative path"),{success:!1};let _=s7.path.resolve(s7.path.dirname(n.getOriginalFilePath()),d);if(!s.isInRootDir(_))return e.error(c,`Included file path is not within project: ${_}`),{success:!1};let m;try{m=s.addFile(_,{resolveDependencies:!1,excludeFromCompiler:!0})}catch(b){return e.error(c,`Failed to include file. Reason: ${b instanceof Error?b.message:b}`),{success:!1}}return{success:!0,value:new moe({source:n,path:d,includedText:m.getContent()})}}},{shape:moe,async commit(n,e,{transform:s,commit:c,project:d,fs:_}){let m=await s.toShape(e);if(!m.success)return{success:!1};let b=e.getSourceFile().getDirectoryPath(),E=d.resolvePath(b,n.getPath()),{value:C}=m;return C.equals(n.getValue())?{success:!0}:(C.is(moe)?d.getFile(d.resolvePath(b,C.getPath())).setContent(n.getValue()):C.is(s7.CallExpressionShape)&&C.getCallee()==="Now.include"?(await c(n,e,Kji.CallExpressionPlugin),s7.FileSystem.existsSync(_,E)?d.addFile(E,{resolveDependencies:!1,excludeFromCompiler:!0}).setContent(n.getValue()):d.addFile({path:E,content:n.getValue()},{resolveDependencies:!1,excludeFromCompiler:!0})):e.replaceWithText(n.toString().getCode()),{success:!0})}},{shape:s7.StringShape,async commit(n,e,{transform:s,project:c}){let d=await s.toShape(e);if(!d.success)return{success:!1};let _=d.value.ifIdentifier()?.resolve()??d.value;if(!_.is(moe))return{success:!1};if(!n.equals(_.getValue())){let m=e.getSourceFile().getDirectoryPath();c.getFile(c.resolvePath(m,_.getPath())).setContent(n.getValue())}return{success:!0}}}]})});var TBn=st(uHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(uHe,"__esModule",{value:!0});uHe.ClientScriptPlugin=void 0;var hkt=Lc(),Jji=Uy(),$Bn=nw(),Xji=oJ(),YAe;(function(n){n[n.desktop=0]="desktop",n[n.mobile_or_service_portal=1]="mobile_or_service_portal",n[n.all=10]="all"})(YAe||(YAe={}));var ABn={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};uHe.ClientScriptPlugin=hkt.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{async toShape(n,{transform:e}){let s=await Xji.NowIncludeShape.fromRecord(n,n.get("script"),e);return{success:!0,value:new hkt.CallExpressionShape({source:n,callee:"ClientScript",args:[n.transform(({$:c,merge:d})=>({$id:c.val(Jji.NowIdShape.from(n)),type:c.def(""),table:c,appliesExtended:c.from("applies_extended").toBoolean().def(!1),isolateScript:c.from("isolate_script").toBoolean().def(!1),script:c.val(s),name:c,description:c.def(""),messages:c.def(""),global:c.toBoolean().def(!0),active:c.toBoolean().def(!0),view:c.def(""),uiType:c.from("ui_type").map(_=>Yji(_.toNumber().getValue())).def("desktop"),[d]:c.from("field","type").map((_,m)=>m.isString()&&["onChange","onCellEdit"].includes(m.getValue())&&!_.ifString()?.isEmpty()?{field:_}:{})})).withAliasedKeys(ABn)]})}}}},shapes:[{shape:hkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{diagnostics:e,factory:s,compiler:c}){if(n.getCallee()!=="ClientScript")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(ABn);(0,$Bn.generateDeprecatedDiagnostics)(d,e);let _=d.get("script").ifDefined()?.toString().getValue(),m=d.get("type").ifString()?.getValue();return d.get("field").ifString()?.getValue()&&!m&&e.error(d.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),_&&!(0,$Bn.validateClientSideScript)(_,c)&&e.error(d.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:await s.createRecord({source:n,table:"sys_script_client",explicitId:d.get("$id"),properties:d.transform(({$:E})=>({table:E,global:E.def(!0),view:E,field:E,script:E.toCdata(),type:E,name:E,active:E.def(!0),applies_extended:E.from("appliesExtended").def(!1),description:E,messages:E,isolate_script:E.from("isolateScript").def(!1),ui_type:E.from("uiType").map(C=>C.isString()?Qji(C.getValue()):void 0).def(0)}))})}}}]});function Yji(n){let e=YAe[n];if(!e)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return e}t(Yji,"getUITypeFromId");function Qji(n){if(n in YAe)return YAe[n];throw Error("Invalid ui_type found in xml")}t(Qji,"getUITypeId")});var DBn=st(pHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(pHe,"__esModule",{value:!0});pHe.CrossScopePrivilegePlugin=void 0;var mkt=Lc(),Zji=Uy(),eWi=nw(),IBn={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};pHe.CrossScopePrivilegePlugin=mkt.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{relationships:{sys_scope:{via:"target_scope",inverse:!0}},toShape(n){return{success:!0,value:new mkt.CallExpressionShape({source:n,callee:"CrossScopePrivilege",args:[n.transform(({$:e})=>({$id:e.val(Zji.NowIdShape.from(n)),operation:e,status:e,targetName:e.from("target_name"),targetScope:e.from("target_scope"),targetType:e.from("target_type")})).withAliasedKeys(IBn)]})}}}},shapes:[{shape:mkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e,config:s,diagnostics:c}){if(n.getCallee()!=="CrossScopePrivilege")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(IBn);(0,eWi.generateDeprecatedDiagnostics)(d,c);let _=d.get("targetScope"),m=_.isString()?await e.createReference({source:_,table:"sys_scope",guid:_}):void 0;return{success:!0,value:await e.createRecord({source:n,table:"sys_scope_privilege",explicitId:d.get("$id"),properties:d.transform(({$:b})=>({operation:b,status:b,target_name:b.from("targetName"),target_scope:b.val(m),target_type:b.from("targetType"),source_scope:b.val(s.scopeId)}))})}}}]})});var RBn=st(gkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(gkt,"__esModule",{value:!0});gkt.ApplicationMenu=tWi;function tWi(n){return n}t(tWi,"ApplicationMenu")});var NBn=st(ykt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ykt,"__esModule",{value:!0});ykt.Property=nWi;function nWi(n){return n}t(nWi,"Property")});var PBn=st(vkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(vkt,"__esModule",{value:!0});vkt.UserPreference=rWi;function rWi(n){return n}t(rWi,"UserPreference")});var LBn=st(bkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bkt,"__esModule",{value:!0});bkt.CrossScopePrivilege=iWi;function iWi(n){return n}t(iWi,"CrossScopePrivilege")});var kBn=st(Skt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Skt,"__esModule",{value:!0});Skt.BusinessRule=aWi;function aWi(n){return n}t(aWi,"BusinessRule")});var MBn=st(o7=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(o7,"__esModule",{value:!0});o7.AclAttributes=o7.AclOperations=o7.AclTypes=o7.AclNamedTypes=void 0;o7.Acl=oWi;var sWi={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",pd_action:"pd_action",record:"record"};o7.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234"};o7.AclTypes={...sWi,...o7.AclNamedTypes};o7.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};o7.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function oWi(n){return n}t(oWi,"Acl")});var OBn=st(xkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xkt,"__esModule",{value:!0});xkt.Role=lWi;function lWi(n){return n}t(lWi,"Role")});var BBn=st(FBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(FBn,"__esModule",{value:!0})});var UBn=st(VBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(VBn,"__esModule",{value:!0})});var WBn=st(jBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jBn,"__esModule",{value:!0})});var GBn=st(zBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zBn,"__esModule",{value:!0})});var HBn=st(qBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qBn,"__esModule",{value:!0})});var JBn=st(KBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KBn,"__esModule",{value:!0})});var YBn=st(XBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(XBn,"__esModule",{value:!0})});var ZBn=st(QBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QBn,"__esModule",{value:!0})});var t7n=st(e7n=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(e7n,"__esModule",{value:!0})});var n7n=st(U3=>{"use strict";pe();ue();oe();ce();le();var cWi=U3&&U3.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),kee=U3&&U3.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&cWi(e,n,s)};Object.defineProperty(U3,"__esModule",{value:!0});kee(BBn(),U3);kee(UBn(),U3);kee(WBn(),U3);kee(GBn(),U3);kee(HBn(),U3);kee(JBn(),U3);kee(YBn(),U3);kee(ZBn(),U3);t7n()});var r7n=st(Ekt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ekt,"__esModule",{value:!0});Ekt.Test=uWi;n7n();function uWi(n,e){return{inputObject:n,configurationFunction:e}}t(uWi,"Test")});var i7n=st(Ckt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ckt,"__esModule",{value:!0});Ckt.ImportSet=pWi;function pWi(n){return n}t(pWi,"ImportSet")});var a7n=st(wkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(wkt,"__esModule",{value:!0});wkt.Sla=dWi;function dWi(n){return n}t(dWi,"Sla")});var dHe=st(tM=>{"use strict";pe();ue();oe();ce();le();var fWi=tM&&tM.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),jz=tM&&tM.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&fWi(e,n,s)};Object.defineProperty(tM,"__esModule",{value:!0});jz(RBn(),tM);jz(NBn(),tM);jz(PBn(),tM);jz(LBn(),tM);jz(kBn(),tM);jz(MBn(),tM);jz(OBn(),tM);jz(r7n(),tM);jz(i7n(),tM);jz(a7n(),tM)});var s7n=st($kt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($kt,"__esModule",{value:!0});$kt.SPAngularProvider=_Wi;function _Wi(n){return n}t(_Wi,"SPAngularProvider")});var o7n=st(QAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QAe,"__esModule",{value:!0});QAe.SPWidgetDependency=hWi;QAe.JsInclude=mWi;QAe.CssInclude=gWi;function hWi(n){return n}t(hWi,"SPWidgetDependency");function mWi(n){return n}t(mWi,"JsInclude");function gWi(n){return n}t(gWi,"CssInclude")});var l7n=st(ZAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZAe,"__esModule",{value:!0});ZAe.WidgetCategories=void 0;ZAe.SPWidget=yWi;ZAe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function yWi(n){return n}t(yWi,"SPWidget")});var Tkt=st(lJ=>{"use strict";pe();ue();oe();ce();le();var vWi=lJ&&lJ.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Akt=lJ&&lJ.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vWi(e,n,s)};Object.defineProperty(lJ,"__esModule",{value:!0});Akt(s7n(),lJ);Akt(o7n(),lJ);Akt(l7n(),lJ)});var c7n=st(Ikt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ikt,"__esModule",{value:!0});Ikt.AttachmentVariable=bWi;function bWi(n){return n}t(bWi,"AttachmentVariable")});var u7n=st(Dkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Dkt,"__esModule",{value:!0});Dkt.BreakVariable=SWi;function SWi(n){return n}t(SWi,"BreakVariable")});var d7n=st(p7n=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(p7n,"__esModule",{value:!0})});var f7n=st(Rkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Rkt,"__esModule",{value:!0});Rkt.CheckboxVariable=xWi;function xWi(n){return n}t(xWi,"CheckboxVariable")});var _7n=st(Nkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Nkt,"__esModule",{value:!0});Nkt.ContainerEndVariable=EWi;function EWi(n){return n}t(EWi,"ContainerEndVariable")});var h7n=st(Pkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Pkt,"__esModule",{value:!0});Pkt.ContainerSplitVariable=CWi;function CWi(n){return n}t(CWi,"ContainerSplitVariable")});var m7n=st(Lkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Lkt,"__esModule",{value:!0});Lkt.ContainerStartVariable=wWi;function wWi(n){return n}t(wWi,"ContainerStartVariable")});var g7n=st(kkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kkt,"__esModule",{value:!0});kkt.CustomVariable=$Wi;function $Wi(n){return n}t($Wi,"CustomVariable")});var y7n=st(Mkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Mkt,"__esModule",{value:!0});Mkt.CustomWithLabelVariable=AWi;function AWi(n){return n}t(AWi,"CustomWithLabelVariable")});var v7n=st(Okt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Okt,"__esModule",{value:!0});Okt.DateVariable=TWi;function TWi(n){return n}t(TWi,"DateVariable")});var b7n=st(Fkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Fkt,"__esModule",{value:!0});Fkt.DateTimeVariable=IWi;function IWi(n){return n}t(IWi,"DateTimeVariable")});var S7n=st(Bkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Bkt,"__esModule",{value:!0});Bkt.DurationVariable=DWi;function DWi(n){return n}t(DWi,"DurationVariable")});var x7n=st(Vkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Vkt,"__esModule",{value:!0});Vkt.EmailVariable=RWi;function RWi(n){return n}t(RWi,"EmailVariable")});var E7n=st(Ukt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ukt,"__esModule",{value:!0});Ukt.HtmlVariable=NWi;function NWi(n){return n}t(NWi,"HtmlVariable")});var C7n=st(jkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jkt,"__esModule",{value:!0});jkt.IpAddressVariable=PWi;function PWi(n){return n}t(PWi,"IpAddressVariable")});var w7n=st(Wkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Wkt,"__esModule",{value:!0});Wkt.LabelVariable=LWi;function LWi(n){return n}t(LWi,"LabelVariable")});var $7n=st(zkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zkt,"__esModule",{value:!0});zkt.ListCollectorVariable=kWi;function kWi(n){return n}t(kWi,"ListCollectorVariable")});var A7n=st(Gkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Gkt,"__esModule",{value:!0});Gkt.LookupMultipleChoiceVariable=MWi;function MWi(n){return n}t(MWi,"LookupMultipleChoiceVariable")});var T7n=st(qkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qkt,"__esModule",{value:!0});qkt.LookupSelectBoxVariable=OWi;function OWi(n){return n}t(OWi,"LookupSelectBoxVariable")});var I7n=st(Hkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Hkt,"__esModule",{value:!0});Hkt.MaskedVariable=FWi;function FWi(n){return n}t(FWi,"MaskedVariable")});var D7n=st(Kkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Kkt,"__esModule",{value:!0});Kkt.MultiLineTextVariable=BWi;function BWi(n){return n}t(BWi,"MultiLineTextVariable")});var R7n=st(Jkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Jkt,"__esModule",{value:!0});Jkt.MultipleChoiceVariable=VWi;function VWi(n){return n}t(VWi,"MultipleChoiceVariable")});var N7n=st(Xkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xkt,"__esModule",{value:!0});Xkt.NumericScaleVariable=UWi;function UWi(n){return n}t(UWi,"NumericScaleVariable")});var P7n=st(Ykt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ykt,"__esModule",{value:!0});Ykt.ReferenceVariable=jWi;function jWi(n){return n}t(jWi,"ReferenceVariable")});var L7n=st(Qkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Qkt,"__esModule",{value:!0});Qkt.RequestedForVariable=WWi;function WWi(n){return n}t(WWi,"RequestedForVariable")});var k7n=st(Zkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Zkt,"__esModule",{value:!0});Zkt.RichTextLabelVariable=zWi;function zWi(n){return n}t(zWi,"RichTextLabelVariable")});var M7n=st(eMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eMt,"__esModule",{value:!0});eMt.SelectBoxVariable=GWi;function GWi(n){return n}t(GWi,"SelectBoxVariable")});var O7n=st(tMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(tMt,"__esModule",{value:!0});tMt.SingleLineTextVariable=qWi;function qWi(n){return n}t(qWi,"SingleLineTextVariable")});var F7n=st(nMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nMt,"__esModule",{value:!0});nMt.UrlVariable=HWi;function HWi(n){return n}t(HWi,"UrlVariable")});var B7n=st(rMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rMt,"__esModule",{value:!0});rMt.WideSingleLineTextVariable=KWi;function KWi(n){return n}t(KWi,"WideSingleLineTextVariable")});var V7n=st(iMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iMt,"__esModule",{value:!0});iMt.YesNoVariable=JWi;function JWi(n){return n}t(JWi,"YesNoVariable")});var U7n=st(aMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(aMt,"__esModule",{value:!0});aMt.UIPageVariable=XWi;function XWi(n){return n}t(XWi,"UIPageVariable")});var j7n=st(q0=>{"use strict";pe();ue();oe();ce();le();var YWi=q0&&q0.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),x1=q0&&q0.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&YWi(e,n,s)};Object.defineProperty(q0,"__esModule",{value:!0});x1(c7n(),q0);x1(u7n(),q0);x1(d7n(),q0);x1(f7n(),q0);x1(_7n(),q0);x1(h7n(),q0);x1(m7n(),q0);x1(g7n(),q0);x1(y7n(),q0);x1(v7n(),q0);x1(b7n(),q0);x1(S7n(),q0);x1(x7n(),q0);x1(E7n(),q0);x1(C7n(),q0);x1(w7n(),q0);x1($7n(),q0);x1(A7n(),q0);x1(T7n(),q0);x1(I7n(),q0);x1(D7n(),q0);x1(R7n(),q0);x1(N7n(),q0);x1(P7n(),q0);x1(L7n(),q0);x1(k7n(),q0);x1(M7n(),q0);x1(O7n(),q0);x1(F7n(),q0);x1(B7n(),q0);x1(V7n(),q0);x1(U7n(),q0)});var W7n=st(sMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(sMt,"__esModule",{value:!0});sMt.VariableSet=QWi;function QWi(n){return n}t(QWi,"VariableSet")});var z7n=st(oMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(oMt,"__esModule",{value:!0});oMt.CatalogItem=ZWi;function ZWi(n){return n}t(ZWi,"CatalogItem")});var G7n=st(lMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(lMt,"__esModule",{value:!0});lMt.CatalogItemRecordProducer=ezi;function ezi(n){return n}t(ezi,"CatalogItemRecordProducer")});var q7n=st(cMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(cMt,"__esModule",{value:!0});cMt.CatalogUiPolicy=tzi;function tzi(n){return n}t(tzi,"CatalogUiPolicy")});var H7n=st(uMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(uMt,"__esModule",{value:!0});uMt.CatalogClientScript=nzi;function nzi(n){return n}t(nzi,"CatalogClientScript")});var pMt=st(l7=>{"use strict";pe();ue();oe();ce();le();var rzi=l7&&l7.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Jme=l7&&l7.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&rzi(e,n,s)};Object.defineProperty(l7,"__esModule",{value:!0});Jme(j7n(),l7);Jme(W7n(),l7);Jme(z7n(),l7);Jme(G7n(),l7);Jme(q7n(),l7);Jme(H7n(),l7)});var K7n=st(dMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(dMt,"__esModule",{value:!0});dMt.ClientScript=izi;function izi(n){return n}t(izi,"ClientScript")});var J7n=st(goe=>{"use strict";pe();ue();oe();ce();le();var azi=goe&&goe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),szi=goe&&goe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&azi(e,n,s)};Object.defineProperty(goe,"__esModule",{value:!0});szi(K7n(),goe)});var X7n=st(fMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fMt,"__esModule",{value:!0});fMt.SysAttachment=ozi;function ozi(n){return n}t(ozi,"SysAttachment")});var Y7n=st(_Mt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(_Mt,"__esModule",{value:!0});_Mt.ScriptInclude=lzi;function lzi(n){return n}t(lzi,"ScriptInclude")});var Q7n=st(hMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(hMt,"__esModule",{value:!0});hMt.ScriptAction=czi;function czi(n){return n}t(czi,"ScriptAction")});var Z7n=st(cJ=>{"use strict";pe();ue();oe();ce();le();var uzi=cJ&&cJ.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),mMt=cJ&&cJ.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&uzi(e,n,s)};Object.defineProperty(cJ,"__esModule",{value:!0});mMt(X7n(),cJ);mMt(Y7n(),cJ);mMt(Q7n(),cJ)});var eVn=st(gMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(gMt,"__esModule",{value:!0});gMt.List=pzi;function pzi(n){return n}t(pzi,"List")});var tVn=st(yMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yMt,"__esModule",{value:!0});yMt.UiPage=dzi;function dzi(n){return n}t(dzi,"UiPage")});var nVn=st(vMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(vMt,"__esModule",{value:!0});vMt.UiAction=fzi;function fzi(n){return n}t(fzi,"UiAction")});var rVn=st(bMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bMt,"__esModule",{value:!0});bMt.UiPolicy=_zi;function _zi(n){return n}t(_zi,"UiPolicy")});var SMt=st(Wz=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Wz,"__esModule",{value:!0});Wz.UiPolicy=Wz.UiAction=Wz.UiPage=Wz.List=void 0;var hzi=eVn();Object.defineProperty(Wz,"List",{enumerable:!0,get:t(function(){return hzi.List},"get")});var mzi=tVn();Object.defineProperty(Wz,"UiPage",{enumerable:!0,get:t(function(){return mzi.UiPage},"get")});var gzi=nVn();Object.defineProperty(Wz,"UiAction",{enumerable:!0,get:t(function(){return gzi.UiAction},"get")});var yzi=rVn();Object.defineProperty(Wz,"UiPolicy",{enumerable:!0,get:t(function(){return yzi.UiPolicy},"get")})});var iVn=st(xMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xMt,"__esModule",{value:!0});xMt.Table=vzi;function vzi(n){return n}t(vzi,"Table")});var aVn=st(EMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(EMt,"__esModule",{value:!0});EMt.Record=bzi;function bzi(n){return n}t(bzi,"Record")});var sVn=st(yoe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yoe,"__esModule",{value:!0});yoe.readOnlyOption=yoe.type=void 0;yoe.Column=Szi;yoe.type="__type__";yoe.readOnlyOption=["instance_configured","display_read_only","client_script_modifiable","strict_read_only"];function Szi(n){return n}t(Szi,"Column")});var oVn=st(eTe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eTe,"__esModule",{value:!0});eTe.choiceDropdown=void 0;eTe.ChoiceColumn=xzi;eTe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function xzi(n){return n}t(xzi,"ChoiceColumn")});var lVn=st(Xme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xme,"__esModule",{value:!0});Xme.StringColumn=Ezi;Xme.MultiLineTextColumn=Czi;Xme.ApprovalRulesColumn=wzi;Xme.SlushBucketColumn=$zi;function Ezi(n){return n}t(Ezi,"StringColumn");function Czi(n){return n}t(Czi,"MultiLineTextColumn");function wzi(n){return n}t(wzi,"ApprovalRulesColumn");function $zi(n){return n}t($zi,"SlushBucketColumn")});var cVn=st(CMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(CMt,"__esModule",{value:!0});CMt.IntegerColumn=Azi;function Azi(n){return n}t(Azi,"IntegerColumn")});var uVn=st(wMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(wMt,"__esModule",{value:!0});wMt.BooleanColumn=Tzi;function Tzi(n){return n}t(Tzi,"BooleanColumn")});var pVn=st(zz=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zz,"__esModule",{value:!0});zz.DateColumn=Izi;zz.DateTimeColumn=Dzi;zz.CalendarDateTimeColumn=Rzi;zz.ScheduleDateTimeColumn=Nzi;zz.IntegerDateColumn=Pzi;zz.DueDateColumn=Lzi;zz.BasicDateTimeColumn=kzi;zz.OtherDateColumn=Mzi;function Izi(n){return n}t(Izi,"DateColumn");function Dzi(n){return n}t(Dzi,"DateTimeColumn");function Rzi(n){return n}t(Rzi,"CalendarDateTimeColumn");function Nzi(n){return n}t(Nzi,"ScheduleDateTimeColumn");function Pzi(n){return n}t(Pzi,"IntegerDateColumn");function Lzi(n){return n}t(Lzi,"DueDateColumn");function kzi(n){return n}t(kzi,"BasicDateTimeColumn");function Mzi(n){return n}t(Mzi,"OtherDateColumn")});var dVn=st($Mt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($Mt,"__esModule",{value:!0});$Mt.ScriptColumn=Ozi;function Ozi(n){return{...n,columnType:"script"}}t(Ozi,"ScriptColumn")});var fVn=st(AMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AMt,"__esModule",{value:!0});AMt.TableNameColumn=Fzi;function Fzi(n){return n}t(Fzi,"TableNameColumn")});var _Vn=st(TMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(TMt,"__esModule",{value:!0});TMt.DocumentIdColumn=Bzi;function Bzi(n){return n}t(Bzi,"DocumentIdColumn")});var hVn=st(IMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(IMt,"__esModule",{value:!0});IMt.ReferenceColumn=Vzi;function Vzi(n){return n}t(Vzi,"ReferenceColumn")});var mVn=st(DMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(DMt,"__esModule",{value:!0});DMt.ListColumn=Uzi;function Uzi(n){return n}t(Uzi,"ListColumn")});var gVn=st(RMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(RMt,"__esModule",{value:!0});RMt.DecimalColumn=jzi;function jzi(n){return n}t(jzi,"DecimalColumn")});var yVn=st(NMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(NMt,"__esModule",{value:!0});NMt.DomainIdColumn=Wzi;function Wzi(n){return n}t(Wzi,"DomainIdColumn")});var vVn=st(PMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(PMt,"__esModule",{value:!0});PMt.DomainPathColumn=zzi;function zzi(n){return n}t(zzi,"DomainPathColumn")});var bVn=st(LMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(LMt,"__esModule",{value:!0});LMt.TemplateValueColumn=Gzi;function Gzi(n){return n}t(Gzi,"TemplateValueColumn")});var SVn=st(kMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kMt,"__esModule",{value:!0});kMt.TranslatedFieldColumn=qzi;function qzi(n){return n}t(qzi,"TranslatedFieldColumn")});var xVn=st(MMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(MMt,"__esModule",{value:!0});MMt.UserRolesColumn=Hzi;function Hzi(n){return n}t(Hzi,"UserRolesColumn")});var EVn=st(OMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(OMt,"__esModule",{value:!0});OMt.BasicImageColumn=Kzi;function Kzi(n){return n}t(Kzi,"BasicImageColumn")});var CVn=st(FMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(FMt,"__esModule",{value:!0});FMt.ConditionsColumn=Jzi;function Jzi(n){return n}t(Jzi,"ConditionsColumn")});var wVn=st(BMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(BMt,"__esModule",{value:!0});BMt.TranslatedTextColumn=Xzi;function Xzi(n){return n}t(Xzi,"TranslatedTextColumn")});var $Vn=st(VMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(VMt,"__esModule",{value:!0});VMt.VersionColumn=Yzi;function Yzi(n){return n}t(Yzi,"VersionColumn")});var AVn=st(UMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(UMt,"__esModule",{value:!0});UMt.SystemClassNameColumn=Qzi;function Qzi(n){return n}t(Qzi,"SystemClassNameColumn")});var TVn=st(jMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jMt,"__esModule",{value:!0});jMt.FieldNameColumn=Zzi;function Zzi(n){return n}t(Zzi,"FieldNameColumn")});var IVn=st(WMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(WMt,"__esModule",{value:!0});WMt.RadioColumn=eGi;function eGi(n){return n}t(eGi,"RadioColumn")});var DVn=st(zMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zMt,"__esModule",{value:!0});zMt.GenericColumn=tGi;function tGi(n){return n}t(tGi,"GenericColumn")});var RVn=st(GMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(GMt,"__esModule",{value:!0});GMt.GuidColumn=nGi;function nGi(n){return n}t(nGi,"GuidColumn")});var NVn=st(qMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qMt,"__esModule",{value:!0});qMt.Password2Column=rGi;function rGi(n){return n}t(rGi,"Password2Column")});var PVn=st(fHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fHe,"__esModule",{value:!0});fHe.JsonColumn=iGi;fHe.NameValuePairsColumn=aGi;function iGi(n){return n}t(iGi,"JsonColumn");function aGi(n){return n}t(aGi,"NameValuePairsColumn")});var LVn=st(HMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(HMt,"__esModule",{value:!0});HMt.UrlColumn=sGi;function sGi(n){return n}t(sGi,"UrlColumn")});var kVn=st(KMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KMt,"__esModule",{value:!0});KMt.EmailColumn=oGi;function oGi(n){return n}t(oGi,"EmailColumn")});var MVn=st(JMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(JMt,"__esModule",{value:!0});JMt.HtmlColumn=lGi;function lGi(n){return n}t(lGi,"HtmlColumn")});var OVn=st(XMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(XMt,"__esModule",{value:!0});XMt.FloatColumn=cGi;function cGi(n){return n}t(cGi,"FloatColumn")});var FVn=st(YMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(YMt,"__esModule",{value:!0});YMt.FieldListColumn=uGi;function uGi(n){return n}t(uGi,"FieldListColumn")});var BVn=st(_He=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(_He,"__esModule",{value:!0});_He.DurationColumn=pGi;_He.TimeColumn=dGi;function pGi(n){return n}t(pGi,"DurationColumn");function dGi(n){return n}t(dGi,"TimeColumn")});var VVn=st(hHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(hHe,"__esModule",{value:!0});hHe.DayOfWeekColumn=fGi;hHe.DaysOfWeekColumn=_Gi;function fGi(n){return n}t(fGi,"DayOfWeekColumn");function _Gi(n){return n}t(_Gi,"DaysOfWeekColumn")});var UVn=st(QMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QMt,"__esModule",{value:!0});QMt.RecordsColumn=hGi;function hGi(n){return n}t(hGi,"RecordsColumn")});var jVn=st(ZMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZMt,"__esModule",{value:!0});ZMt.UserImageColumn=mGi;function mGi(n){return{...n,columnType:"user_image"}}t(mGi,"UserImageColumn")});var nm=st(Bg=>{"use strict";pe();ue();oe();ce();le();var gGi=Bg&&Bg.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),E0=Bg&&Bg.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&gGi(e,n,s)};Object.defineProperty(Bg,"__esModule",{value:!0});E0(iVn(),Bg);E0(aVn(),Bg);E0(sVn(),Bg);E0(oVn(),Bg);E0(lVn(),Bg);E0(cVn(),Bg);E0(uVn(),Bg);E0(pVn(),Bg);E0(dVn(),Bg);E0(fVn(),Bg);E0(_Vn(),Bg);E0(hVn(),Bg);E0(mVn(),Bg);E0(gVn(),Bg);E0(yVn(),Bg);E0(vVn(),Bg);E0(bVn(),Bg);E0(SVn(),Bg);E0(xVn(),Bg);E0(EVn(),Bg);E0(CVn(),Bg);E0(wVn(),Bg);E0($Vn(),Bg);E0(AVn(),Bg);E0(TVn(),Bg);E0(IVn(),Bg);E0(DVn(),Bg);E0(RVn(),Bg);E0(NVn(),Bg);E0(PVn(),Bg);E0(LVn(),Bg);E0(kVn(),Bg);E0(MVn(),Bg);E0(OVn(),Bg);E0(FVn(),Bg);E0(BVn(),Bg);E0(VVn(),Bg);E0(UVn(),Bg);E0(jVn(),Bg)});var WVn=st(eOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eOt,"__esModule",{value:!0});eOt.RestApi=yGi;function yGi(n){return n}t(yGi,"RestApi")});var zVn=st(voe=>{"use strict";pe();ue();oe();ce();le();var vGi=voe&&voe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),bGi=voe&&voe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vGi(e,n,s)};Object.defineProperty(voe,"__esModule",{value:!0});bGi(WVn(),voe)});var GVn=st(tOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(tOt,"__esModule",{value:!0});tOt.EmailNotification=SGi;function SGi(n){return n}t(SGi,"EmailNotification")});var qVn=st(boe=>{"use strict";pe();ue();oe();ce();le();var xGi=boe&&boe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),EGi=boe&&boe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&xGi(e,n,s)};Object.defineProperty(boe,"__esModule",{value:!0});EGi(GVn(),boe)});var HVn=st(nOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nOt,"__esModule",{value:!0});nOt.Workspace=CGi;function CGi(n){return n}t(CGi,"Workspace")});var KVn=st(rOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rOt,"__esModule",{value:!0});rOt.UxListMenuConfig=wGi;function wGi(n){return n}t(wGi,"UxListMenuConfig")});var JVn=st(iOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iOt,"__esModule",{value:!0});iOt.Applicability=$Gi;function $Gi(n){return n}t($Gi,"Applicability")});var XVn=st(Mee=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Mee,"__esModule",{value:!0});Mee.Applicability=Mee.UxListMenuConfig=Mee.Workspace=void 0;var AGi=HVn();Object.defineProperty(Mee,"Workspace",{enumerable:!0,get:t(function(){return AGi.Workspace},"get")});var TGi=KVn();Object.defineProperty(Mee,"UxListMenuConfig",{enumerable:!0,get:t(function(){return TGi.UxListMenuConfig},"get")});var IGi=JVn();Object.defineProperty(Mee,"Applicability",{enumerable:!0,get:t(function(){return IGi.Applicability},"get")})});var YVn=st(aOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(aOt,"__esModule",{value:!0});aOt.Dashboard=DGi;function DGi(n){return n}t(DGi,"Dashboard")});var QVn=st(mHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(mHe,"__esModule",{value:!0});mHe.Dashboard=void 0;var RGi=YVn();Object.defineProperty(mHe,"Dashboard",{enumerable:!0,get:t(function(){return RGi.Dashboard},"get")})});var n9n=st(Coe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Coe,"__esModule",{value:!0});Coe.TableOwnership=Coe.RecordPlugin=void 0;var Yme=Lc(),NGi=Uy(),j3=dHe(),z9=Tkt(),tTe=pMt(),PGi=J7n(),ZVn=Z7n(),e9n=SMt(),t9n=nm(),Soe=zVn(),LGi=qVn(),xoe=SMt(),Eoe=XVn(),Qme=QVn();Coe.RecordPlugin=Yme.Plugin.create({name:"RecordPlugin",records:{"*":{getUpdateName(n){return{success:!0,value:`${n.getTable()}_${n.getId().getValue()}`}},async diff(n,e){let s=n.compare(e);return{success:!0,value:s.hasChanges()?new Yme.Database(s.query()):new Yme.Database}},async toShape(n,{compiler:e}){let s=n.getTable(),c=e.getTableColumnTypes(s),d=n.transform(({$:m})=>Object.fromEntries(n.keys().filter(b=>b!=="sys_name").map(b=>{let E=n.get(b);if(c?.has(b)&&E?.isString()){let C=c.get(b);try{if(C==="boolean")return[b,m.val(E.toBoolean())];if(C==="number")return[b,m.val(E.toNumber())];if(C==="array")return[b,m.val(E.asString().split(",")).def([""])];if(C==="array-optional"){let A=E.asString().includes(",");return[b,A?m.val(E.asString().split(",")).def([""]):m]}}catch{}}return[b,E?.isString()?m.def(""):m]})));return{success:!0,value:new Yme.CallExpressionShape({source:n,callee:"Record",exportName:n.get("sys_name")?.ifDefined()?.asString().getValue(),args:[{$id:NGi.NowIdShape.from(n),table:s,data:d}]})}},async toFile(n,{config:e,database:s,transform:c}){let d=(0,Yme.unloadBuilder)({scope:e.scope,scopeId:e.scopeId,table:n.getTable()}),_=await c.getUpdateName(n),m=d.record(n,_);n.entries().sort(([E],[C])=>E.localeCompare(C)).forEach(([E,C])=>m.field(E,C));let b=s.query("sys_claim").filter(E=>E.get("metadata_update_name").equals(_));for(let E of b){let C=await c.getUpdateName(E),A=d.record(E,C);E.entries().sort(([D],[N])=>D.localeCompare(N)).forEach(([D,N])=>A.field(D,N))}return{success:!0,value:{source:n,name:`${_}.xml`,category:n.getInstallCategory(),content:d.end()}}}}},shapes:[{shape:Yme.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e,diagnostics:s}){if(n.getCallee()!=="Record")return{success:!1};let c=n.getArgument(0).asObject(),d=c.get("table").asString().getValue(),_=Coe.TableOwnership[d];return _&&s.hint(n,`For a better experience, consider using the ${_} API`),{success:!0,value:await e.createRecord({source:n,table:d,explicitId:c.get("$id"),properties:c.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,async toRecord(n,{parser:e,logger:s}){try{let c=await e.parsePayload(n),d=new Map;for(let E of c){let C=`${E.getTable()}::${E.getId().getValue()}`,A=d.get(C),D=A?A.merge(E.properties()):E;d.set(C,D)}let _=Array.from(d.values()),[m,...b]=_;return m?{success:!0,value:m.with(...b)}:{success:!1}}catch(c){return s.debug(c),{success:!1}}}}]});Coe.TableOwnership={contract_sla:j3.Sla.name,sys_security_acl:j3.Acl.name,sys_security_acl_role:j3.Acl.name,sys_app_application:j3.ApplicationMenu.name,sys_script:j3.BusinessRule.name,sys_script_client:PGi.ClientScript.name,sys_scope_privilege:j3.CrossScopePrivilege.name,sys_ui_list_element:e9n.List.name,sys_ui_list:e9n.List.name,sys_properties:j3.Property.name,sys_user_role:j3.Role.name,sys_user_role_contains:j3.Role.name,sys_script_include:ZVn.ScriptInclude.name,sp_widget:z9.SPWidget.name,m2m_sp_widget_dependency:z9.SPWidget.name,m2m_sp_ng_pro_sp_widget:z9.SPWidget.name,sp_ng_template:z9.SPWidget.name,sp_dependency:z9.SPWidgetDependency.name,m2m_sp_dependency_css_include:z9.SPWidgetDependency.name,m2m_sp_dependency_js_include:z9.SPWidgetDependency.name,sp_css_include:z9.CssInclude.name,sp_js_include:z9.JsInclude.name,sp_angular_provider:z9.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:z9.SPAngularProvider.name,sys_atf_test:j3.Test.name,sys_ws_header_map:Soe.RestApi.name,sys_ws_query_parameter_map:Soe.RestApi.name,sys_ws_definition:Soe.RestApi.name,sys_ws_operation:Soe.RestApi.name,sys_ws_version:Soe.RestApi.name,sys_ws_header:Soe.RestApi.name,sys_ws_query_parameter:Soe.RestApi.name,sys_user_preference:j3.UserPreference.name,sys_ui_page:xoe.UiPage.name,sys_ui_action:xoe.UiAction.name,sys_ui_action_role:xoe.UiAction.name,sys_ui_action_view:xoe.UiAction.name,sys_ui_policy:xoe.UiPolicy.name,sys_ui_policy_action:xoe.UiPolicy.name,sys_ui_policy_rl_action:xoe.UiPolicy.name,sysevent_script_action:ZVn.ScriptAction.name,sysevent_email_action:LGi.EmailNotification.name,sys_db_object:t9n.Table.name,sys_dictionary:t9n.Table.name,sys_hub_flow:"Flow",sys_hub_trigger_instance_v2:"wfa.trigger",sys_hub_action_instance_v2:"wfa.action",sys_hub_sub_flow_instance_v2:"wfa.subflow",sys_hub_flow_logic_instance_v2:"wfa.flowLogic",sys_flow_step_definition:"ActionStepDefinition",sys_decision:"DecisionTablePlugin",sys_hub_action_type_definition:"Action",sys_hub_step_instance:"wfa.action_step",sys_transform_map:j3.ImportSet.name,sys_transform_entry:j3.ImportSet.name,sys_transform_script:j3.ImportSet.name,sys_ux_applicability:Eoe.Applicability.name,sys_ux_list_menu_config:Eoe.UxListMenuConfig.name,sys_ux_list_category:Eoe.UxListMenuConfig.name,sys_ux_list:Eoe.UxListMenuConfig.name,sys_ux_applicability_m2m_list:Eoe.UxListMenuConfig.name,sys_ux_page_registry:Eoe.Workspace.name,sys_ux_app_config:Eoe.Workspace.name,par_dashboard:Qme.Dashboard.name,par_dashboard_canvas:Qme.Dashboard.name,par_dashboard_tab:Qme.Dashboard.name,par_dashboard_widget:Qme.Dashboard.name,par_dashboard_permission:Qme.Dashboard.name,par_dashboard_visibility:Qme.Dashboard.name,item_option_new_set:tTe.VariableSet.name,sc_cat_item:tTe.CatalogItem.name,sc_cat_item_producer:tTe.CatalogItemRecordProducer.name,catalog_script_client:tTe.CatalogClientScript.name,catalog_ui_policy:tTe.CatalogUiPolicy.name}});var r9n=st(yHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yHe,"__esModule",{value:!0});yHe.NowRefPlugin=void 0;var gHe=Lc(),kGi=XAe();yHe.NowRefPlugin=gHe.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(n,{transform:e,factory:s}){let c=await e.toShape(n,kGi.CallExpressionPlugin);if(!c.success||!c.value.is(gHe.CallExpressionShape)||c.value.getCallee()!=="Now.ref")return{success:!1};let d=c.value,_=d.getArgument(0).asString("The first argument to Now.ref() must be a table name"),m=d.getArgument(1).as([gHe.StringShape,gHe.ObjectShape],"The second argument to Now.ref() must be a GUID, a Now ID string, or a coalesce keys object"),b=d.hasArgument(2)?d.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[E,C]=b?[m.asString(),b]:m.isString()?[m.asString(),void 0]:[void 0,m.asObject()];return{success:!0,value:await s.createReference({source:n,table:_,guid:E,keys:C})}}}]})});var i9n=st(bHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bHe,"__esModule",{value:!0});bHe.NowUnresolvedPlugin=void 0;var vHe=Lc();bHe.NowUnresolvedPlugin=vHe.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:vHe.UnresolvedShape,commit(n,e){return e.replaceWithText(n.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(n){return n.getText()!==vHe.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new vHe.UnresolvedShape({source:n})}}}]})});var o9n=st(SHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(SHe,"__esModule",{value:!0});SHe.PropertyPlugin=void 0;var MGi=Lc(),sOt=Lc(),OGi=Uy(),a9n=t(n=>n.split(",").map(e=>e.trim()).filter(e=>e),"getRolesArray");SHe.PropertyPlugin=sOt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(n,{config:e}){return{success:!0,value:new sOt.CallExpressionShape({source:n,callee:"Property",args:[n.transform(({$:s})=>({$id:s.val(OGi.NowIdShape.from(n)),name:s.from("name","suffix").map((c,d)=>c.ifString()??(e.scope==="global"?d:`${e.scope}.${d.asString().getValue()}`)),value:s,description:s.def(""),type:s.def("string"),choices:s.map(c=>c.toString().getValue().split(/[,\n]/).map(_=>_.trim()).filter(_=>_)).def([]),isPrivate:s.from("is_private").toBoolean().def(!1),ignoreCache:s.from("ignore_cache").toBoolean().def(!1),roles:s.from("read_roles","write_roles").def({read:[],write:[]}).map((c,d)=>({read:c.ifString()?.pipe(_=>a9n(_.getValue())),write:d.ifString()?.pipe(_=>a9n(_.getValue()))}))}))]})}}}},shapes:[{shape:sOt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{config:e,diagnostics:s,factory:c}){if(n.getCallee()!=="Property")return{success:!1};let d=n.getArgument(0).asObject(),_=e.scope,m=d.get("name").asString();return!(0,MGi.isSNScope)(_)&&e.scope!=="global"&&!m.asString().startsWith(`${_}.`)&&s.error(m.getOriginalNode(),`Property name must begin with '${_}.'`),{success:!0,value:await c.createRecord({source:n,table:"sys_properties",explicitId:d.get("$id"),properties:d.transform(({$:b,merge:E})=>({name:b,suffix:b.from("name").map(C=>C.asString().replace(new RegExp(`^${e.scope}\\.`),"")),description:b,type:b.def("string"),value:b.toString(),is_private:b.from("isPrivate").def(!1),ignore_cache:b.from("ignoreCache").def(!1),choices:b.map(C=>C.ifArray()?.getValue().join(",")),[E]:b.from("roles").def({read_roles:"",write_roles:""}).map(C=>C.ifObject()?.transform(({$:A})=>({read_roles:A.from("read").map(D=>s9n(D)),write_roles:A.from("write").map(D=>s9n(D))})).properties())}))})}}}]});function s9n(n){return n.ifArray()?.pipe(e=>Array.from(new Set(e.getElements().map(s=>s.ifRecord()?.get("name").getValue()??s.getValue()))).join(","))}t(s9n,"getRolesString")});var c9n=st(xHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xHe,"__esModule",{value:!0});xHe.RolePlugin=void 0;var FGi=Lc(),oOt=Lc(),BGi=nw(),l9n={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};xHe.RolePlugin=oOt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(n,{descendants:e}){return{success:!0,value:new oOt.CallExpressionShape({source:n,exportName:n.get("name").ifString()?.getValue(),callee:"Role",args:[n.transform(({$:s})=>({name:s,assignableBy:s.from("assignable_by").def(""),description:s.def(""),canDelegate:s.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:s.from("elevated_privilege").toBoolean().def(!1),grantable:s.toBoolean().def(!0),scopedAdmin:s.from("scoped_admin").toBoolean().def(!1),containsRoles:s.val(e.query("sys_user_role_contains").map(c=>c.get("contains").toRecordId())).def([])})).withAliasedKeys(l9n)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:oOt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{config:e,diagnostics:s,factory:c}){if(n.getCallee()!=="Role")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(l9n);(0,BGi.generateDeprecatedDiagnostics)(d,s);let _=e.scope,m=d.get("name").asString();_!=="global"&&!(0,FGi.isSNScope)(_)&&!m.getValue().startsWith(`${_}.`)&&s.error(m.getOriginalNode(),`Role name must begin with '${_}.'`);let b=await c.createRecord({explicitId:d.get("$id"),source:n,table:"sys_user_role",properties:d.transform(({$:C})=>({name:C,assignable_by:C.from("assignableBy").def(""),can_delegate:C.from("canDelegate").def(!0),description:C.def(""),elevated_privilege:C.from("elevatedPrivilege").def(!1),grantable:C.def(!0),scoped_admin:C.from("scopedAdmin").def(!1),suffix:C.from("name").map(A=>A.asString().getValue().replace(new RegExp(`^${e.scope}\\.`),""))}))}),E=[];for(let C of d.get("containsRoles").ifArray()?.getElements()??[])E.push(await c.createRecord({source:n,table:"sys_user_role_contains",properties:{role:b,contains:C.isStringLiteral()?await c.createReference({source:C,table:"sys_user_role",keys:{name:C}}):C}}));return{success:!0,value:b.with(...E??[])}}}]})});var d9n=st((CHe,p9n)=>{pe();ue();oe();ce();le();var lOt,EHe;lOt=CHe,EHe=t(function(n){var e=typeof document<"u"?document.currentScript:null,s="4.43.0";function c(we){return we&&we.__esModule&&Object.prototype.hasOwnProperty.call(we,"default")?we.default:we}t(c,"s");var d,_={exports:{}};function m(){return d||(d=1,function(we,U){(function(M){let Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=new Uint8Array(64),Ne=new Uint8Array(128);for(let Gi=0;Gi<Z.length;Gi++){let Pi=Z.charCodeAt(Gi);ye[Gi]=Pi,Ne[Pi]=Gi}function Xe(Gi,Pi){let mi=0,$i=0,wi=0;do{let wa=Gi.next();wi=Ne[wa],mi|=(31&wi)<<$i,$i+=5}while(32&wi);let aa=1&mi;return mi>>>=1,aa&&(mi=-2147483648|-mi),Pi+mi}t(Xe,"o");function pt(Gi,Pi,mi){let $i=Pi-mi;$i=$i<0?-$i<<1|1:$i<<1;do{let wi=31&$i;$i>>>=5,$i>0&&(wi|=32),Gi.write(ye[wi])}while($i>0);return Pi}t(pt,"a");function $t(Gi,Pi){return!(Gi.pos>=Pi)&&Gi.peek()!==44}t($t,"l");let Kt=16384,mn=typeof TextDecoder<"u"?new TextDecoder:typeof it<"u"?{decode:t(Gi=>it.from(Gi.buffer,Gi.byteOffset,Gi.byteLength).toString(),"decode")}:{decode(Gi){let Pi="";for(let mi=0;mi<Gi.length;mi++)Pi+=String.fromCharCode(Gi[mi]);return Pi}};class qn{static{t(this,"d")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Kt)}write(Pi){let{buffer:mi}=this;mi[this.pos++]=Pi,this.pos===Kt&&(this.out+=mn.decode(mi),this.pos=0)}flush(){let{buffer:Pi,out:mi,pos:$i}=this;return $i>0?mi+mn.decode(Pi.subarray(0,$i)):mi}}class fr{static{t(this,"h")}constructor(Pi){this.pos=0,this.buffer=Pi}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(Pi){let{buffer:mi,pos:$i}=this,wi=mi.indexOf(Pi,$i);return wi===-1?mi.length:wi}}let yr=[];function Hr(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=[],aa=0;for(;mi.pos<Pi;mi.pos++){aa=Xe(mi,aa);let wa=Xe(mi,0);if(!$t(mi,Pi)){let hl=wi.pop();hl[2]=aa,hl[3]=wa;continue}let as=Xe(mi,0),Zs=1&Xe(mi,0)?[aa,wa,0,0,as,Xe(mi,0)]:[aa,wa,0,0,as],$r=yr;if($t(mi,Pi)){$r=[];do{let hl=Xe(mi,0);$r.push(hl)}while($t(mi,Pi))}Zs.vars=$r,$i.push(Zs),wi.push(Zs)}return $i}t(Hr,"f");function kr(Gi){let Pi=new qn;for(let mi=0;mi<Gi.length;)mi=jr(Gi,mi,Pi,[0]);return Pi.flush()}t(kr,"m");function jr(Gi,Pi,mi,$i){let wi=Gi[Pi],{0:aa,1:wa,2:as,3:Zs,4:$r,vars:hl}=wi;Pi>0&&mi.write(44),$i[0]=pt(mi,aa,$i[0]),pt(mi,wa,0),pt(mi,$r,0),pt(mi,wi.length===6?1:0,0),wi.length===6&&pt(mi,wi[5],0);for(let Ia of hl)pt(mi,Ia,0);for(Pi++;Pi<Gi.length;){let Ia=Gi[Pi],{0:ml,1:ts}=Ia;if(ml>as||ml===as&&ts>=Zs)break;Pi=jr(Gi,Pi,mi,$i)}return mi.write(44),$i[0]=pt(mi,as,$i[0]),pt(mi,Zs,0),Pi}t(jr,"g");function Br(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=[],aa=0,wa=0,as=0,Zs=0,$r=0,hl=0,Ia=0,ml=0;do{let ts=mi.indexOf(";"),Qa=0;for(;mi.pos<ts;mi.pos++){if(Qa=Xe(mi,Qa),!$t(mi,ts)){let Xd=wi.pop();Xd[2]=aa,Xd[3]=Qa;continue}let Rs=Xe(mi,0),fs=2&Rs,Mc=4&Rs,Cc,Md=null,dd=yr;if(1&Rs){let Xd=Xe(mi,wa);as=Xe(mi,wa===Xd?as:0),wa=Xd,Cc=[aa,Qa,0,0,Xd,as]}else Cc=[aa,Qa,0,0];if(Cc.isScope=!!Mc,fs){let Xd=Zs,Y_=$r;Zs=Xe(mi,Zs);let b_=Xd===Zs;$r=Xe(mi,b_?$r:0),hl=Xe(mi,b_&&Y_===$r?hl:0),Md=[Zs,$r,hl]}if(Cc.callsite=Md,$t(mi,ts)){dd=[];do{Ia=aa,ml=Qa;let Xd=Xe(mi,0),Y_;if(Xd<-1){Y_=[[Xe(mi,0)]];for(let b_=-1;b_>Xd;b_--){let np=Ia;Ia=Xe(mi,Ia),ml=Xe(mi,Ia===np?ml:0);let Qm=Xe(mi,0);Y_.push([Qm,Ia,ml])}}else Y_=[[Xd]];dd.push(Y_)}while($t(mi,ts))}Cc.bindings=dd,$i.push(Cc),wi.push(Cc)}aa++,mi.pos=ts+1}while(mi.pos<Pi);return $i}t(Br,"y");function ci(Gi){if(Gi.length===0)return"";let Pi=new qn;for(let mi=0;mi<Gi.length;)mi=ti(Gi,mi,Pi,[0,0,0,0,0,0,0]);return Pi.flush()}t(ci,"b");function ti(Gi,Pi,mi,$i){let wi=Gi[Pi],{0:aa,1:wa,2:as,3:Zs,isScope:$r,callsite:hl,bindings:Ia}=wi;if($i[0]<aa?(Ni(mi,$i[0],aa),$i[0]=aa,$i[1]=0):Pi>0&&mi.write(44),$i[1]=pt(mi,wi[1],$i[1]),pt(mi,(wi.length===6?1:0)|(hl?2:0)|($r?4:0),0),wi.length===6){let{4:ml,5:ts}=wi;ml!==$i[2]&&($i[3]=0),$i[2]=pt(mi,ml,$i[2]),$i[3]=pt(mi,ts,$i[3])}if(hl){let{0:ml,1:ts,2:Qa}=wi.callsite;ml!==$i[4]?($i[5]=0,$i[6]=0):ts!==$i[5]&&($i[6]=0),$i[4]=pt(mi,ml,$i[4]),$i[5]=pt(mi,ts,$i[5]),$i[6]=pt(mi,Qa,$i[6])}if(Ia)for(let ml of Ia){ml.length>1&&pt(mi,-ml.length,0),pt(mi,ml[0][0],0);let ts=aa,Qa=wa;for(let Rs=1;Rs<ml.length;Rs++){let fs=ml[Rs];ts=pt(mi,fs[1],ts),Qa=pt(mi,fs[2],Qa),pt(mi,fs[0],0)}}for(Pi++;Pi<Gi.length;){let ml=Gi[Pi],{0:ts,1:Qa}=ml;if(ts>as||ts===as&&Qa>=Zs)break;Pi=ti(Gi,Pi,mi,$i)}return $i[0]<as?(Ni(mi,$i[0],as),$i[0]=as,$i[1]=0):mi.write(44),$i[1]=pt(mi,Zs,$i[1]),Pi}t(ti,"E");function Ni(Gi,Pi,mi){do Gi.write(59);while(++Pi<mi)}t(Ni,"x");function na(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=0,aa=0,wa=0,as=0,Zs=0;do{let $r=mi.indexOf(";"),hl=[],Ia=!0,ml=0;for(wi=0;mi.pos<$r;){let ts;wi=Xe(mi,wi),wi<ml&&(Ia=!1),ml=wi,$t(mi,$r)?(aa=Xe(mi,aa),wa=Xe(mi,wa),as=Xe(mi,as),$t(mi,$r)?(Zs=Xe(mi,Zs),ts=[wi,aa,wa,as,Zs]):ts=[wi,aa,wa,as]):ts=[wi],hl.push(ts),mi.pos++}Ia||ba(hl),$i.push(hl),mi.pos=$r+1}while(mi.pos<=Pi);return $i}t(na,"A");function ba(Gi){Gi.sort(Ja)}t(ba,"S");function Ja(Gi,Pi){return Gi[0]-Pi[0]}t(Ja,"$");function da(Gi){let Pi=new qn,mi=0,$i=0,wi=0,aa=0;for(let wa=0;wa<Gi.length;wa++){let as=Gi[wa];if(wa>0&&Pi.write(59),as.length===0)continue;let Zs=0;for(let $r=0;$r<as.length;$r++){let hl=as[$r];$r>0&&Pi.write(44),Zs=pt(Pi,hl[0],Zs),hl.length!==1&&(mi=pt(Pi,hl[1],mi),$i=pt(Pi,hl[2],$i),wi=pt(Pi,hl[3],wi),hl.length!==4&&(aa=pt(Pi,hl[4],aa)))}}return Pi.flush()}t(da,"v"),M.decode=na,M.decodeGeneratedRanges=Br,M.decodeOriginalScopes=Hr,M.encode=da,M.encodeGeneratedRanges=ci,M.encodeOriginalScopes=kr,Object.defineProperty(M,"__esModule",{value:!0})})(U)}(0,_.exports)),_.exports}t(m,"o");var b=m();class E{static{t(this,"l")}constructor(U){this.bits=U instanceof E?U.bits.slice():[]}add(U){this.bits[U>>5]|=1<<(31&U)}has(U){return!!(this.bits[U>>5]&1<<(31&U))}}let C=class cOt{static{t(this,"e")}constructor(U,M,$){this.start=U,this.end=M,this.original=$,this.intro="",this.outro="",this.content=$,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(U){this.outro+=U}appendRight(U){this.intro=this.intro+U}clone(){let U=new cOt(this.start,this.end,this.original);return U.intro=this.intro,U.outro=this.outro,U.content=this.content,U.storeName=this.storeName,U.edited=this.edited,U}contains(U){return this.start<U&&U<this.end}eachNext(U){let M=this;for(;M;)U(M),M=M.next}eachPrevious(U){let M=this;for(;M;)U(M),M=M.previous}edit(U,M,$){return this.content=U,$||(this.intro="",this.outro=""),this.storeName=M,this.edited=!0,this}prependLeft(U){this.outro=U+this.outro}prependRight(U){this.intro=U+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(U){let M=U-this.start,$=this.original.slice(0,M),V=this.original.slice(M);this.original=$;let Z=new cOt(U,this.end,V);return Z.outro=this.outro,this.outro="",this.end=U,this.edited?(Z.edit("",!1),this.content=""):this.content=$,Z.next=this.next,Z.next&&(Z.next.previous=Z),Z.previous=this,this.next=Z,Z}toString(){return this.intro+this.content+this.outro}trimEnd(U){if(this.outro=this.outro.replace(U,""),this.outro.length)return!0;let M=this.content.replace(U,"");return M.length?(M!==this.content&&(this.split(this.start+M.length).edit("",void 0,!0),this.edited&&this.edit(M,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(U,""),!!this.intro.length||void 0)}trimStart(U){if(this.intro=this.intro.replace(U,""),this.intro.length)return!0;let M=this.content.replace(U,"");if(M.length){if(M!==this.content){let $=this.split(this.end-M.length);this.edited&&$.edit(M,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(U,""),!!this.outro.length||void 0}};function A(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?we=>globalThis.btoa(unescape(encodeURIComponent(we))):typeof it=="function"?we=>it.from(we,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}t(A,"u");let D=A();class N{static{t(this,"h")}constructor(U){this.version=3,this.file=U.file,this.sources=U.sources,this.sourcesContent=U.sourcesContent,this.names=U.names,this.mappings=b.encode(U.mappings),U.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=U.x_google_ignoreList),U.debugId!==void 0&&(this.debugId=U.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+D(this.toString())}}function F(we,U){let M=we.split(/[/\\]/),$=U.split(/[/\\]/);for(M.pop();M[0]===$[0];)M.shift(),$.shift();if(M.length){let V=M.length;for(;V--;)M[V]=".."}return M.concat($).join("/")}t(F,"p");let W=Object.prototype.toString;function G(we){return W.call(we)==="[object Object]"}t(G,"m");function j(we){let U=we.split(`
48789
+ ${E.formatDiagnosticsWithColorAndContext(A)}`);e.info("Type check completed successfully")}},"typeCheckProject");hoe.typeCheckProject=bji;async function Sji({project:n}){let e=n.getLogger(),s=n.getConfig(),c=n.getFileSystem();(0,hoe.typeCheckProject)(n);let d=(0,Yqe.projectHasScript)(n,"prebuild");if((!Qqe.isWebWorker||(0,Qqe.hasModuleLoader)())&&d)await(0,Yqe.runScriptInProject)({scriptName:"prebuild",project:n,throwIfNotFound:!1});else if(s.clientDir){d&&e.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:m}=await Promise.resolve().then(()=>VQ(gBn()));await m({project:n})}if(i7.FileSystem.existsSync(c,n.resolvePath(s.staticContentDir)))for(let m of n.reloadDirectory(s.staticContentDir))m.setReadOnly(!0)}t(Sji,"uiPrebuild");async function xji({project:n}){let e=n.getLogger();!Qqe.isWebWorker||(0,Qqe.hasModuleLoader)()?await(0,Yqe.runScriptInProject)({scriptName:"postbuild",project:n,throwIfNotFound:!1}):(0,Yqe.projectHasScript)(n,"postbuild")&&e.warn("Custom scripts are not supported, skipping postbuild script")}t(xji,"uiPostbuild")});var Lee=st(B3=>{"use strict";pe();ue();oe();ce();le();var Eji=B3&&B3.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Pee=B3&&B3.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Eji(e,n,s)};Object.defineProperty(B3,"__esModule",{value:!0});Pee(MMn(),B3);Pee(BMn(),B3);Pee(VMn(),B3);Pee(UMn(),B3);Pee(tRt(),B3);Pee(DWe(),B3);Pee(zMn(),B3);Pee(yBn(),B3)});var vBn=st(eHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eHe,"__esModule",{value:!0});eHe.Diagnostics=void 0;var V3=Lc();function Zqe(n){return V3.ts.Node.isNode(n)?n:n.getOriginalNode()}t(Zqe,"getOriginalNode");var okt=class{static{t(this,"Diagnostics")}diagnostics=[];error(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Error}))}warn(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Warn}))}info(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Info}))}hint(e,s){this.add(new V3.FluentDiagnostic(Zqe(e),s,{level:V3.Diagnostic.Level.Hint}))}add(e){Cji(e)||this.diagnostics.some(s=>s.message===e.message&&s.code===e.code&&s.level===e.level&&s.source===e.source&&s.position.start===e.position.start&&s.position.end===e.position.end&&s.file.getFilePath()===e.file.getFilePath())||this.diagnostics.push(e)}getAll(e){return e?this.diagnostics.filter(s=>s.file.getFilePath()===e):this.diagnostics}clear(e){this.diagnostics=e?this.diagnostics.filter(s=>s.file.getFilePath()!==e):[]}getWarnings(e){return this.getAll(e).filter(s=>s.level===V3.Diagnostic.Level.Warn)}hasErrors(e){return this.getAll(e).some(s=>s.level===V3.Diagnostic.Level.Error)}getErrors(e){return this.getAll(e).filter(s=>s.level===V3.Diagnostic.Level.Error)}};eHe.Diagnostics=okt;function Cji(n){return n instanceof V3.FluentDiagnostic&&(0,V3.hasDirective)(n.node,"@fluent-ignore")}t(Cji,"isIgnored")});var bBn=st(nHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nHe,"__esModule",{value:!0});nHe.MultiProjectTransform=void 0;var Uz=Lc(),wji=qAe(),tHe=class{static{t(this,"Transform")}project;pluginUsageTracker;constructor(e,s){this.project=e,this.pluginUsageTracker=s}async shapeToSubclass(e,s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.shapeToSubclass(e,this.project.getContext());if(d.success)return await this.shapeToSubclass(d.value,s)}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to subclass "${e.getKind()}" shape:`,d)}return{success:!0,value:e}}async shapeToRecord(e,s){if(e.isRecord())return{success:!0,value:e};for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.shapeToRecord(e,this.project.getContext());if(d.success)return this.pluginUsageTracker.addPluginShapeUsage(c,e),{success:!0,value:d.value}}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${e.getKind()}" shape into record:`,d)}return{success:!1}}async nodeToRecord(e,s){let c=await this.toShape(e,...s);return c.success?this.shapeToRecord(c.value,s):c}async fileToRecord(e,s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.fileToRecord(e,this.project.getContext());if(d.success)return this.pluginUsageTracker.addPluginShapeUsage(c,e),{success:!0,value:d.value}}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${e.path}" into records:`,d)}return{success:!1}}async toRecord(e,...s){return Uz.ts.Node.isNode(e)?this.nodeToRecord(e,s):e instanceof Uz.Shape?this.shapeToRecord(e,s):this.fileToRecord(e,s)}async toShape(e,...s){let c=this.project.getDiagnosticsService();if(!(0,Uz.isSupportedNode)(e))return(0,Uz.isFluentNode)(e)&&c.error(e,`Node kind "${(0,Uz.getUnsupportedKindName)(e)}" is not allowed in Fluent files.`),{success:!1};for(let d of s.length>0?s:this.project.getPlugins().toArray())try{let _=await d.nodeToShape(e,this.project.getContext()),m=_.success?await this.shapeToSubclass(_.value,s):_,b=m.success?await this.toRecord(m.value,...s):m,E=b.success?b:m;if(E.success)return E}catch(_){this.project.getLogger().error(`Plugin "${d.getName()}" failed to transform "${e.getKindName()}" node into shape:`,_)}return{success:!1}}async recordToShape(e,s,...c){for(let d of c.length>0?c:this.project.getPlugins().toArray()){let _=await d.recordToShape({record:e,database:s,context:this.project.getContext()});if(_.success)return _}return{success:!1}}async toSubclass(e,...s){return this.shapeToSubclass(e,s)}async getUpdateName(e,...s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{let d=await c.getUpdateName(e,this.project.getContext());if(d.success)return d.value}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to get update name for record: ${e.getTable()}`,d)}throw new Error(`Failed to get update name for record: ${e.getTable()}`)}},lkt=class{static{t(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(e,s){this.rootProject=e,this.pluginUsageTracker=s,this.rootTransform=new tHe(e,this.pluginUsageTracker),this.transformMap[e.getRootDir()]=this.rootTransform}toRecord(e,...s){return this.getTransformForPath(Uz.ts.Node.isNode(e)?e.getSourceFile().getFilePath():e instanceof Uz.Shape?e.getOriginalFilePath():e.path).toRecord(e,...s)}async toShape(e,...s){return this.getTransformForPath(e.getSourceFile().getFilePath()).toShape(e,...s)}async recordToShape(e,s,...c){return this.getTransformForPath(e.getOriginalFilePath()).recordToShape(e,s,...c)}async toSubclass(e,...s){return this.getTransformForPath(e.getOriginalFilePath()).toSubclass(e,...s)}async getUpdateName(e,...s){return this.getTransformForPath(e.getOriginalFilePath()).getUpdateName(e,...s)}createTransform(e){let{plugins:s,fs:c,logger:d,diagnostics:_,transform:m}=this.rootProject.getContext();return new tHe(new wji.Project({rootDir:e,plugins:s,fileSystem:c,logger:d,diagnostics:_,transform:m}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(e){if(this.transformMap[e])return this.transformMap[e];if(this.rootProject.getFileIfExists(e))return this.transformMap[e]=this.rootTransform;let s=this.findProjectRootForPath(e);return s&&this.transformMap[s]?this.transformMap[s]:s?this.transformMap[s]=this.createTransform(s):this.getFallbackTransform()}findProjectRootForPath(e){if(this.isProjectRoot(e))return e;let s=Uz.path.dirname(e);if(s!==e)return this.findProjectRootForPath(s)}isProjectRootCache={};isProjectRoot(e){if(typeof this.isProjectRootCache[e]=="boolean")return this.isProjectRootCache[e];let s=Uz.path.join(e,"now.config.json");return this.isProjectRootCache[e]=e in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(s)||Uz.FileSystem.existsSync(this.rootProject.getFileSystem(),s)}};nHe.MultiProjectTransform=lkt});var SBn=st(rHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rHe,"__esModule",{value:!0});rHe.Keys=void 0;var ckt=Lc(),ukt=class{static{t(this,"Keys")}keys;constructor(e){this.keys=new ckt.KeysRegistry(e.getCompiler(),{rootDir:e.getRootDir(),config:e.getConfig(),package:e.getPackage()},e.getFileSystem())}queryExplicitId(e,s){return this.keys.queryExplicitId(e,s instanceof ckt.Shape?(s.ifString()??s.asNumber("Explicit key must be a string or number")).getValue():s)}registerExplicitId(e,s,c){return s instanceof ckt.Shape?this.keys.registerExplicitId(e,(s.ifString()??s.asNumber("Explicit key must be a string or number")).getValue(),c):this.keys.registerExplicitId(e,s,c)}deleteExplicitId(e,s,c){return this.keys.deleteExplicitId(e,s,c)}queryCoalesceId(e,s){return this.keys.queryCompositeId(e,s)}registerCoalesceId(e,s,c){return this.keys.registerCompositeId(e,s,c)}deleteCoalesceId(e,s,c){return this.keys.deleteCompositeId(e,s,c)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(e){await this.keys.commit(e)}reload(){this.keys.reload()}};rHe.Keys=ukt});var xBn=st(iHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iHe,"__esModule",{value:!0});iHe.Inspector=void 0;var pkt=class{static{t(this,"Inspector")}project;constructor(e){this.project=e}inspect(e,...s){for(let c of s.length>0?s:this.project.getPlugins().toArray())try{c.inspect(e,this.project.getContext())}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to inspect shape "${e.getKind()}":`,d)}}};iHe.Inspector=pkt});var Uy=st(Hme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Hme,"__esModule",{value:!0});Hme.NowIdPlugin=Hme.NowIdShape=void 0;var aHe=Lc(),sHe=class n extends aHe.ElementAccessExpressionShape{static{t(this,"NowIdShape")}constructor({source:e,id:s}){super({source:e,callee:"Now.ID",arg:s})}getValue(){return this.getArg().getValue()}static from(e){let s=e.getId().getNowIdKey()??e.getId().getValue();return new n({source:e,id:s})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};Hme.NowIdShape=sHe;Hme.NowIdPlugin=aHe.Plugin.create({name:"NowIdPlugin",shapes:[{shape:aHe.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e}){if(n.getCallee()!=="Now.ID")return{success:!1};let s=n.getArg();return!s.isString()&&!s.isNumber()?(e.error(s,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new sHe({source:n,id:s.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(n,{transform:e}){if(n.getName()!=="$id")return{success:!1};let s=n.getExpressionIfKind(aHe.ts.SyntaxKind.Identifier);if(!s)return{success:!1};let c=await e.toShape(s);if(!c.success||!c.value.isIdentifier())return{success:!1};let d=c.value.resolve();return d.isRecord()?{success:!0,value:d.getId()}:{success:!1}}}]})});var EBn=st(oHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(oHe,"__esModule",{value:!0});oHe.ApplicationMenuPlugin=void 0;var dkt=Lc(),$ji=Uy();oHe.ApplicationMenuPlugin=dkt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},async toShape(n,{factory:e}){let s=n.get("roles"),c=s.ifString()?.ifNotEmpty()?.split(",")??[],d=[];for(let _ of c)d.push(await e.createReference({source:s,table:"sys_user_role",keys:{name:_}}));return{success:!0,value:new dkt.CallExpressionShape({source:n,callee:"ApplicationMenu",exportName:n.get("sys_name")?.ifString()?.getValue(),args:[n.transform(({$:_})=>({$id:_.val($ji.NowIdShape.from(n)),title:_,category:_,hint:_.def(""),description:_.def(""),name:_.def(""),active:_.toBoolean().def(!0),order:_.map(m=>m.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:_.val(d).def([])}))]})}}}},shapes:[{shape:dkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e}){if(n.getCallee()!=="ApplicationMenu")return{success:!1};let s=n.getArgument(0).asObject();return{success:!0,value:await e.createRecord({source:n,table:"sys_app_application",explicitId:s.get("$id"),properties:s.transform(({$:c})=>({title:c,hint:c.def(""),description:c.def(""),name:c.def(""),active:c.def(!0),order:c.def(100),device_type:c.val("browser"),roles:c.map(d=>d.ifArray()?.map(_=>(_.ifRecord()?.get("name")??_.asString()).getValue()).join(",")).def(""),category:c}))})}}}]})});var nw=st(a7=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(a7,"__esModule",{value:!0});a7.INVALID_XML_CHARACTERS=void 0;a7.toReference=Aji;a7.reverseObject=Tji;a7.noThrow=Iji;a7.applyPathMappings=Dji;a7.getCallExpressionName=Rji;a7.generateDeprecatedDiagnostics=Nji;a7.validateClientSideScript=Lji;a7.createSdkDocEntry=kji;var HAe=Lc();function Aji(n){return n.ifRecord()?.getId()??n.ifString()?.getValue()??""}t(Aji,"toReference");function Tji(n){let e={};for(let s in n){let c=n[s];typeof c=="string"&&(e[c]=s)}return e}t(Tji,"reverseObject");function Iji(n){try{return n()}catch(e){return e}}t(Iji,"noThrow");a7.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function Dji(n,e){if(!e)return n;for(let[s,c]of Object.entries(e)){let d=n.match(`${s.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(d!==void 0)return c.replace(/\*+/,d)}return n}t(Dji,"applyPathMappings");function Rji(n){let e=n.getExpression();if(HAe.ts.Node.isIdentifier(e)||HAe.ts.Node.isPropertyAccessExpression(e))return e.getText();throw`CallExpression does not have a name: ${e.getText()}`}t(Rji,"getCallExpressionName");function Nji(n,e){Object.keys(n.getAliasedKeys()).forEach(s=>{let c=n.findAliasUsed(s);c&&e.hint(n.get(s),`The property '${c}' is deprecated, use '${s}' instead.`)})}t(Nji,"generateDeprecatedDiagnostics");function Pji(n){let e=n.getExpression();return HAe.ts.Node.isIdentifier(e)&&e.getText()==="require"}t(Pji,"isRequire");function Lji(n,e){let s=e.createSourceFile("tmp-script.ts",n),c=s.getDescendantsOfKind(HAe.ts.SyntaxKind.ImportDeclaration).length>0,d=s.getDescendantsOfKind(HAe.ts.SyntaxKind.CallExpression).some(Pji),_=!(c||d);return e.removeSourceFile(s),_}t(Lji,"validateClientSideScript");function kji(n,e){return{apiName:n,docPath:`@servicenow/sdk/docs/${n}/${n}.md`,tags:e}}t(kji,"createSdkDocEntry")});var fkt=st(KAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KAe,"__esModule",{value:!0});KAe.DataPlugin=void 0;KAe.isDataHelper=Oji;var v8=Lc(),Mji=nw();function Oji(n){if(!v8.ts.Node.isCallExpression(n))return!1;let e=(0,Mji.getCallExpressionName)(n);return Object.values(v8.DATA_HELPER_NAMES).includes(e)}t(Oji,"isDataHelper");var Fji={[v8.DATA_HELPER_NAMES.DURATION]:Bji,[v8.DATA_HELPER_NAMES.TIME]:Vji,[v8.DATA_HELPER_NAMES.FIELD_LIST]:Uji,[v8.DATA_HELPER_NAMES.TEMPLATE_VALUE]:jji};KAe.DataPlugin=v8.Plugin.create({name:"DataPlugin",shapes:[{shape:v8.CallExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e}){let s=n.getCallee(),c=Fji[s];return c?c(n,e):{success:!1}}}]});function CBn(n,e){let s=[];for(let c of e){let d=n[c];if(!d?.isDefined()||!d.isNumber())continue;let _=d.asNumber().getValue();_<0&&s.push(`${c} must be >= 0, got ${_}`)}return s}t(CBn,"validateNonNegative");function wBn(n,e){return e.some(s=>n[s]?.isDefined())}t(wBn,"hasAtLeastOneField");function Bji(n,e){let s=n.getArgument(0),c=s.asObject().properties({resolve:!1});if(!wBn(c,["days","hours","minutes","seconds"]))return e.error(n,"Duration must have at least one field defined (days, hours, minutes, or seconds)"),{success:!1};let d=CBn(c,["days","hours","minutes","seconds"]);return d.length>0?(e.error(n,`Invalid duration values: ${d.join(", ")}`),{success:!1}):{success:!0,value:new v8.DurationShape({source:n,value:s.asObject()})}}t(Bji,"createDurationShape");function Vji(n,e){let s=n.getArgument(0),c=s.asObject().properties({resolve:!1});if(!wBn(c,["hours","minutes","seconds"]))return e.error(n,"Time must have at least one field defined (hours, minutes, or seconds)"),{success:!1};let d=CBn(c,["hours","minutes","seconds"]);if(d.length>0)return e.error(n,`Invalid time values: ${d.join(", ")}`),{success:!1};let _=n.getArgument(1);if(_.isUndefined())return{success:!0,value:new v8.TimeShape({source:n,value:s.asObject()})};if(!_.isString())return e.error(n,"Second argument (timezone) must be a string literal"),{success:!1};let m=_.asString().getValue();return Wji(m)?{success:!0,value:new v8.TimeShape({source:n,value:s.asObject(),timeZone:m})}:(e.error(n,`Invalid IANA timezone: '${m}'. Use a valid timezone like 'America/New_York', 'Europe/London', or 'UTC'.`),{success:!1})}t(Vji,"createTimeShape");function Uji(n,e){let s=n.getArgument(0).asArray().getElements();return{success:!0,value:new v8.FieldListShape({source:n,fields:s})}}t(Uji,"createFieldListShape");function jji(n,e){let s=n.getArgument(0).asObject().properties({resolve:!1});for(let[c,d]of Object.entries(s))if(d.isString()&&d.getValue().includes("^^"))return e.error(n,`Template field '${c}' contains an invalid character sequence: multiple carets (^^). Use a single caret (^) if needed, it will be escaped automatically.`),{success:!1};return{success:!0,value:new v8.TemplateValueShape({source:n,value:s})}}t(jji,"createTemplateValueShape");function Wji(n){try{return Intl.DateTimeFormat(void 0,{timeZone:n}),!0}catch{return!1}}t(Wji,"isValidTimeZone")});var _kt=st(lHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(lHe,"__esModule",{value:!0});lHe.BasicSyntaxPlugin=void 0;var rp=Lc(),zji=fkt(),Gji=nw();lHe.BasicSyntaxPlugin=rp.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${rp.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:rp.SourceFileShape,getTarget(n,{compiler:e,project:s}){let c=n.getOriginalSource();return{success:!0,value:rp.ts.Node.isNode(c)?c:e.getOrCreateSourceFile(s.resolvePath(n.getPath()))}},commit(n,e,{project:s}){let c=s.getFileIfExists(n.getPath());return c?c.setContent(n.getContent()):s.addFile({path:n.getPath(),content:n.getContent()}),{success:!0}}},{shape:rp.Shape,getTarget(n,{compiler:e,project:s,config:c}){let d=n.getOriginalSource();if((0,rp.isValidNode)(d))return{success:!0,value:d};if(n.isNoOp()||n.isUndefined()||n.isRecord()&&n.isDeleted())return{success:!1};let{generatedDir:_,taxonomy:m}=c,b=n.getSource()instanceof rp.Record?n.getSource().getTable():void 0,E=b&&m.mapping[b]?rp.path.join(_,m.mapping[b]):_,C=rp.path.basename(d.path).replace(RegExp(`${rp.path.extname(d.path)}$`),"");if(!C){let N=n.getSource()instanceof rp.Record?n.getSource().getId().getValue():void 0;C=`${b}_${N}`}s.isTypesGenerationMode()&&n.is(rp.VariableStatementShape)&&n.isExported()&&(C=n.getVariableName().getName());let A=e.getOrCreateSourceFile(s.resolvePath(s.getRootDir(),E,`${C}.now.ts`)),D=s.addFile(A.getFilePath(),{resolveDependencies:!1}).addStatement(n.getCode());return{success:!0,value:D.isKind(rp.ts.SyntaxKind.ExpressionStatement)?D.getExpression():D}}},{shape:rp.DeletedShape,commit(n,e){return(0,rp.removeReferences)(e),(0,rp.remove)(e),{success:!0}}},{shape:rp.UndefinedShape,commit(n,e){return(0,rp.isUndefined)(e)||e.replaceWithText("undefined"),{success:!0}}},{shape:rp.TemplateExpressionShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isTemplateExpression(e)&&!rp.ts.Node.isTaggedTemplateExpression(e)&&!rp.ts.Node.isNoSubstitutionTemplateLiteral(e))return e.replaceWithText(n.getCode()),{success:!0};let c=rp.ts.Node.isTaggedTemplateExpression(e)?e.removeTag():e,d=rp.ts.Node.isTemplateExpression(c)?c.getTemplateSpans():[],_=n.getSpans();if(_.length!==d.length)return c.replaceWithText(n.getCode()),{success:!0};for(let[m,b]of d.entries()){let E=_[m];if(!E)throw new Error(`Expected shape to have a span at index ${m}`);await s(E,b)}return{success:!0}}},{shape:rp.TemplateSpanShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isTemplateSpan(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getLiteral();return n.getLiteralText()!==c.getLiteralText()&&(c.isKind(rp.ts.SyntaxKind.TemplateMiddle)?c.replaceWithText(`}${n.getLiteralText()}\${`):c.isKind(rp.ts.SyntaxKind.TemplateTail)&&c.replaceWithText(`}${n.getLiteralText()}\``)),await s(n.getExpression(),e.getExpression()),{success:!0}}},{shape:rp.StringLiteralShape,async commit(n,e,{commit:s}){let c=(()=>{try{if(rp.ts.Node.isTrueLiteral(e)||rp.ts.Node.isFalseLiteral(e))return n.toBoolean();if(rp.ts.Node.isNumericLiteral(e)){let d=n.toNumber();return d.getValue().toString()===n.getValue()?d:void 0}else if((0,zji.isDataHelper)(e)){if(!rp.ts.Node.isCallExpression(e))return;let d=(0,Gji.getCallExpressionName)(e),_=e.getArguments()[1]?.asKind(rp.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return(0,rp.asDataHelper)(d,n,_)}else return}catch{return}})();return c?(await s(c,e),{success:!0}):(rp.ts.Node.isTaggedTemplateExpression(e)?e.getTemplate().replaceWithText(new rp.TemplateExpressionShape({source:n,literalText:n}).getCode()):e.replaceWithText(n.getCode()),{success:!0})}},{shape:rp.NumberShape,commit(n,e){return rp.ts.Node.isNumericLiteral(e)&&e.getLiteralValue()===n.getValue()?{success:!0}:(e.replaceWithText(n.getValue().toString()),{success:!0})}},{shape:rp.BooleanShape,commit(n,e){return(rp.ts.Node.isTrueLiteral(e)||rp.ts.Node.isFalseLiteral(e))&&e.getLiteralValue()===n.getValue()?{success:!0}:(e.replaceWithText(n.getValue().toString()),{success:!0})}},{shape:rp.ArrayShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isArrayLiteralExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getElements(),d=n.getElements(!1),_=c.length-d.length;for(let b=1;b<=_;b++)e.removeElement(c.length-b);for(let[b,E]of e.getElements().entries())await s(n.getElement(b,!1),E);let m=d.slice(e.getElements().length).map(b=>b.getCode());return m.length>0&&e.addElements(m),{success:!0}}},{shape:rp.ObjectShape,async commit(n,e,{commit:s}){if(!rp.ts.Node.isObjectLiteralExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getProperties().filter(b=>b.isKind(rp.ts.SyntaxKind.PropertyAssignment)).reduce((b,E)=>b.set(qji(E),E.getInitializerOrThrow()),new Map),d=new Set(["$meta"]),_=[];for(let[b,E]of n.entries({resolve:!1})){let C=[...n.getAliases(b),b].find(A=>c.has(A));C!==void 0?(C!==b&&e.getPropertyOrThrow(C).asKindOrThrow(rp.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(b),await s(E,c.get(C))):E.equals(n.getDefault(b))||_.push({name:rp.ObjectShape.quotePropertyNameIfNeeded(b),initializer:E.getCode(),kind:rp.ts.StructureKind.PropertyAssignment}),d.add(b)}return _.length>0&&e.addPropertyAssignments(_),[...c.keys()].filter(b=>!d.has(b)).forEach(b=>{e.getProperty(b)?.asKindOrThrow(rp.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:rp.IdentifierShape,commit(n,e){return rp.ts.Node.isIdentifier(e)&&e.getText()===n.getName()?{success:!0}:(e.replaceWithText(n.getName()),{success:!0})}},{shape:rp.VariableStatementShape,async commit(n,e,{commit:s}){if(rp.ts.Node.isExpressionStatement(e))return e.replaceWithText(n.getCode()),{success:!0};if(rp.ts.Node.isCallExpression(e)){let b=e.getParentIfKind(rp.ts.SyntaxKind.ExpressionStatement);if(b)return b.replaceWithText(n.getCode()),{success:!0}}let c=rp.ts.Node.isVariableStatement(e)?e:e.getFirstAncestorByKindOrThrow(rp.ts.SyntaxKind.VariableStatement);c.isExported()!==n.isExported()&&c.setIsExported(n.isExported());let[d,_]=c.getDeclarations();if(!d)throw new Error(`Variable statement is missing a declaration: ${c.getFullText()}`);_&&((0,rp.removeReferences)(_),(0,rp.remove)(_));let m=n.getVariableName();return d.getName()!==m.getName()&&await s(m,d.getNameNode()),await s(n.getInitializer(),d.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(n,{diagnostics:e,transform:s}){if((0,rp.isFluentFile)(n)){let c=n.getChildSyntaxList();if(!c)return e.error(n,"Fluent source file contains no meaningful content."),{success:!1};for(let d of c.getChildren()){if(rp.ts.Node.isCommentNode(d))continue;if(!(await s.toShape(d)).success)return e.error(d,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new rp.SourceFileShape({source:n,path:n.getFilePath(),content:n.getFullText()})}}},{node:"StringLiteral",toShape(n){return{success:!0,value:new rp.StringLiteralShape({source:n,literalText:n.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(n){return{success:!0,value:new rp.TemplateExpressionShape({source:n,literalText:n.getLiteralValue()})}}},{node:"NumericLiteral",toShape(n){return{success:!0,value:new rp.NumberShape({source:n,value:n.getLiteralValue()})}}},{node:"NullKeyword",toShape(n){return{success:!0,value:new rp.UndefinedShape({source:n})}}},{node:"TrueKeyword",toShape(n){return{success:!0,value:new rp.BooleanShape({source:n,value:!0})}}},{node:"FalseKeyword",toShape(n){return{success:!0,value:new rp.BooleanShape({source:n,value:!1})}}},{node:"AsExpression",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"ExportAssignment",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"ComputedPropertyName",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"PropertyAccessExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getNameNode(),d=await e.toShape(c);if(!d.success||!d.value.isIdentifier())return s.error(c,"Last element of property access expression is unsupported"),{success:!1};let _=n.getExpression(),m=await e.toShape(_);if(!m.success||!m.value.is([rp.IdentifierShape,rp.PropertyAccessShape]))return s.error(_,"Left side of property access expression is unsupported"),{success:!1};let b=m.value.isIdentifier()?[m.value,d.value]:[...m.value.getElements(),d.value];return{success:!0,value:new rp.PropertyAccessShape({source:n,elements:b})}}},{node:"ExpressionStatement",toShape(n,{transform:e}){return e.toShape(n.getExpression())}},{node:"Identifier",async toShape(n,{transform:e}){if((0,rp.isUndefined)(n))return{success:!0,value:new rp.UndefinedShape({source:n})};let s=n.getSymbol()?.getName()??n.getText(),c=(0,rp.getValueDeclaration)(n),d=c&&await e.toShape(c);return{success:!0,value:d?.success?new rp.IdentifierShape({source:n,name:s,value:d.value}):new rp.IdentifierShape({source:n,name:s})}}},{node:"Parameter",toShape(n){return{success:!0,value:new rp.IdentifierShape({source:n,name:n.getName()})}}},{node:"VariableStatement",async toShape(n,{transform:e,diagnostics:s}){let c=n.getDeclarationKind();if(c!==rp.ts.VariableDeclarationKind.Const)return s.error(n.getDeclarationKindKeywords()[0]??n,`Declaration kind "${c}" is not supported. Only const variables are supported.`),{success:!1};let d=n.getDefaultKeyword();if(d)return s.error(d,"Default exports are not supported"),{success:!1};let[_,m]=n.getDeclarations();if(!_)return s.error(n,"Missing declaration in variable statement"),{success:!1};if(m)return s.error(m,"Additional declarations in variable statements are not supported"),{success:!1};let b=_.getInitializerOrThrow(),E=await e.toShape(b);return E.success?{success:!0,value:new rp.VariableStatementShape({source:n,variableName:new rp.IdentifierShape({source:n,name:_.getName()}),initializer:E.value,isExported:n.isExported()})}:(s.error(b,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(n,{transform:e}){let s=n.getInitializer();return s?e.toShape(s):{success:!0,value:new rp.UndefinedShape({source:n})}}},{node:"ArrayLiteralExpression",async toShape(n,{transform:e}){let s=[];for(let c of n.getElements()){let d=await e.toShape(c);if(!d.success)return{success:!1};s.push(d.value)}return{success:!0,value:new rp.ArrayShape({source:n,elements:s})}}},{node:"PropertyAssignment",toShape(n,{transform:e,diagnostics:s}){let c=n.getInitializer();return c?e.toShape(c):(s.error(n,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(n,{transform:e,diagnostics:s}){let c={};for(let d of n.getProperties()){if(!rp.ts.Node.isPropertyAssignment(d)){s.error(d,"Only property assignments are allowed");continue}let _=await e.toShape(d);if(!_.success)return s.error(d,"Failed to parse property"),{success:!1};let m=d.getNameNode(),b=rp.ts.Node.isStringLiteral(m)?m.getLiteralValue():d.getName();c[b]=_.value}return{success:!0,value:new rp.ObjectShape({source:n,properties:c})}}},{node:"TemplateSpan",async toShape(n,{transform:e,diagnostics:s}){let c=await e.toShape(n.getExpression());return c.success?{success:!0,value:new rp.TemplateSpanShape({source:n,expression:c.value,literalText:n.getLiteral().getLiteralText()})}:(s.error(n,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(n,{transform:e,diagnostics:s}){let c=[];for(let d of n.getTemplateSpans()){let _=await e.toShape(d);if(!_.success||!_.value.is(rp.TemplateSpanShape))return s.error(d,"Unsupported span in template expression"),{success:!1};c.push(_.value)}return{success:!0,value:new rp.TemplateExpressionShape({source:n,literalText:n.getHead().getLiteralText(),spans:c})}}},{node:"TaggedTemplateExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getTemplate(),d=await e.toShape(c);return!d.success||!d.value.is(rp.TemplateExpressionShape)?(s.error(c,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new rp.TaggedTemplateExpressionShape({source:n,tag:n.getTag().getText(),template:d.value})}}},{node:"PrefixUnaryExpression",toShape(n,{diagnostics:e}){return!rp.ts.Node.isNumericLiteral(n.getOperand())||n.getOperatorToken()!==rp.ts.SyntaxKind.MinusToken?(e.error(n,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new rp.NumberShape({source:n,value:-n.getOperand().asKindOrThrow(rp.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(n,{transform:e,diagnostics:s}){let c=n.getArgumentExpression();if(!c)return s.error(n,"Element access expression must have an argument"),{success:!1};let d=await e.toShape(c);return d.success?{success:!0,value:new rp.ElementAccessExpressionShape({source:n,callee:n.getExpression().getText(),arg:d.value})}:(s.error(n,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(n){return{success:!0,value:rp.Shape.noOp(n)}}},{node:"ExportDeclaration",toShape(n){return{success:!0,value:rp.Shape.noOp(n)}}}]});function qji(n){let e=n.getNameNode();return rp.ts.Node.isStringLiteral(e)||rp.ts.Node.isNoSubstitutionTemplateLiteral(e)?e.getLiteralValue():e.getText()}t(qji,"getName")});var XAe=st(cHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(cHe,"__esModule",{value:!0});cHe.CallExpressionPlugin=void 0;var JAe=Lc(),Hji=nw();cHe.CallExpressionPlugin=JAe.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(n,{transform:e}){let s=[];for(let c of n.getArguments()){let d=await e.toShape(c);if(!d.success)return{success:!1};s.push(d.value)}return{success:!0,value:new JAe.CallExpressionShape({source:n,callee:(0,Hji.getCallExpressionName)(n),args:s})}}}],shapes:[{shape:JAe.CallExpressionShape,async commit(n,e,{commit:s}){if(e.isKind(JAe.ts.SyntaxKind.ExpressionStatement)&&(e=e.getExpression()),!JAe.ts.Node.isCallExpression(e))return e.replaceWithText(n.getCode()),{success:!0};let c=e.getExpression();c.getText()!==n.getCallee()&&c.replaceWithText(n.getCallee());let d=e.getArguments(),_=n.getArguments(!1),m=d.length-_.length;for(let E=1;E<=m;E++)e.removeArgument(d.length-E);for(let[E,C]of e.getArguments().entries())await s(n.getArgument(E,!1),C);let b=_.slice(e.getArguments().length).map(E=>E.getCode());return b.length>0&&e.addArguments(b),{success:!0}}}]})});var oJ=st(Kme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Kme,"__esModule",{value:!0});Kme.NowIncludePlugin=Kme.NowIncludeShape=void 0;var s7=Lc(),Kji=XAe(),moe=class n extends s7.CallExpressionShape{static{t(this,"NowIncludeShape")}includedText;constructor({source:e,path:s,includedText:c}){super({source:e,callee:"Now.include",args:[s]}),this.includedText=c}getPath(){return this.getArgument(0).asString().getValue()}getValue(){return this.includedText}toString(){return s7.Shape.from(this,this.getValue()).asString().withContentType("cdata")}equals(e){return typeof e=="string"?this.includedText===e:e instanceof s7.Shape?e.equals(this.includedText):super.equals(e)}static async fromRecord(e,s,c){let d=s7.taxonomySchemaDefault[e.getTable()],_=d?.startsWith("client-development")?".client":d?.startsWith("server-development")?".server":"";return new n({source:e,path:`./${await c.getUpdateName(e)}${_}.js`,includedText:s instanceof s7.Shape?s.toString().getValue():s})}};Kme.NowIncludeShape=moe;Kme.NowIncludePlugin=s7.Plugin.create({name:"NowIncludePlugin",shapes:[{shape:s7.CallExpressionShape,fileTypes:["fluent"],toSubclass(n,{diagnostics:e,project:s}){if(n.getCallee()!=="Now.include")return{success:!1};let c=n.getArgument(0);if(!c.isString())return e.error(c,"Now.include() must have a string argument"),{success:!1};let d=c.getValue();if(!/^\.\.?\/.*$/.test(d.trim())&&d.includes("/"))return e.error(c,"Now.include() argument must be a relative path"),{success:!1};let _=s7.path.resolve(s7.path.dirname(n.getOriginalFilePath()),d);if(!s.isInRootDir(_))return e.error(c,`Included file path is not within project: ${_}`),{success:!1};let m;try{m=s.addFile(_,{resolveDependencies:!1,excludeFromCompiler:!0})}catch(b){return e.error(c,`Failed to include file. Reason: ${b instanceof Error?b.message:b}`),{success:!1}}return{success:!0,value:new moe({source:n,path:d,includedText:m.getContent()})}}},{shape:moe,async commit(n,e,{transform:s,commit:c,project:d,fs:_}){let m=await s.toShape(e);if(!m.success)return{success:!1};let b=e.getSourceFile().getDirectoryPath(),E=d.resolvePath(b,n.getPath()),{value:C}=m;return C.equals(n.getValue())?{success:!0}:(C.is(moe)?d.getFile(d.resolvePath(b,C.getPath())).setContent(n.getValue()):C.is(s7.CallExpressionShape)&&C.getCallee()==="Now.include"?(await c(n,e,Kji.CallExpressionPlugin),s7.FileSystem.existsSync(_,E)?d.addFile(E,{resolveDependencies:!1,excludeFromCompiler:!0}).setContent(n.getValue()):d.addFile({path:E,content:n.getValue()},{resolveDependencies:!1,excludeFromCompiler:!0})):e.replaceWithText(n.toString().getCode()),{success:!0})}},{shape:s7.StringShape,async commit(n,e,{transform:s,project:c}){let d=await s.toShape(e);if(!d.success)return{success:!1};let _=d.value.ifIdentifier()?.resolve()??d.value;if(!_.is(moe))return{success:!1};if(!n.equals(_.getValue())){let m=e.getSourceFile().getDirectoryPath();c.getFile(c.resolvePath(m,_.getPath())).setContent(n.getValue())}return{success:!0}}}]})});var TBn=st(uHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(uHe,"__esModule",{value:!0});uHe.ClientScriptPlugin=void 0;var hkt=Lc(),Jji=Uy(),$Bn=nw(),Xji=oJ(),YAe;(function(n){n[n.desktop=0]="desktop",n[n.mobile_or_service_portal=1]="mobile_or_service_portal",n[n.all=10]="all"})(YAe||(YAe={}));var ABn={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};uHe.ClientScriptPlugin=hkt.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{async toShape(n,{transform:e}){let s=await Xji.NowIncludeShape.fromRecord(n,n.get("script"),e);return{success:!0,value:new hkt.CallExpressionShape({source:n,callee:"ClientScript",args:[n.transform(({$:c,merge:d})=>({$id:c.val(Jji.NowIdShape.from(n)),type:c.def(""),table:c,appliesExtended:c.from("applies_extended").toBoolean().def(!1),isolateScript:c.from("isolate_script").toBoolean().def(!1),script:c.val(s),name:c,description:c.def(""),messages:c.def(""),global:c.toBoolean().def(!0),active:c.toBoolean().def(!0),view:c.def(""),uiType:c.from("ui_type").map(_=>Yji(_.toNumber().getValue())).def("desktop"),[d]:c.from("field","type").map((_,m)=>m.isString()&&["onChange","onCellEdit"].includes(m.getValue())&&!_.ifString()?.isEmpty()?{field:_}:{})})).withAliasedKeys(ABn)]})}}}},shapes:[{shape:hkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{diagnostics:e,factory:s,compiler:c}){if(n.getCallee()!=="ClientScript")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(ABn);(0,$Bn.generateDeprecatedDiagnostics)(d,e);let _=d.get("script").ifDefined()?.toString().getValue(),m=d.get("type").ifString()?.getValue();return d.get("field").ifString()?.getValue()&&!m&&e.error(d.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),_&&!(0,$Bn.validateClientSideScript)(_,c)&&e.error(d.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:await s.createRecord({source:n,table:"sys_script_client",explicitId:d.get("$id"),properties:d.transform(({$:E})=>({table:E,global:E.def(!0),view:E,field:E,script:E.toCdata(),type:E,name:E,active:E.def(!0),applies_extended:E.from("appliesExtended").def(!1),description:E,messages:E,isolate_script:E.from("isolateScript").def(!1),ui_type:E.from("uiType").map(C=>C.isString()?Qji(C.getValue()):void 0).def(0)}))})}}}]});function Yji(n){let e=YAe[n];if(!e)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return e}t(Yji,"getUITypeFromId");function Qji(n){if(n in YAe)return YAe[n];throw Error("Invalid ui_type found in xml")}t(Qji,"getUITypeId")});var DBn=st(pHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(pHe,"__esModule",{value:!0});pHe.CrossScopePrivilegePlugin=void 0;var mkt=Lc(),Zji=Uy(),eWi=nw(),IBn={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};pHe.CrossScopePrivilegePlugin=mkt.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{relationships:{sys_scope:{via:"target_scope",inverse:!0}},toShape(n){return{success:!0,value:new mkt.CallExpressionShape({source:n,callee:"CrossScopePrivilege",args:[n.transform(({$:e})=>({$id:e.val(Zji.NowIdShape.from(n)),operation:e,status:e,targetName:e.from("target_name"),targetScope:e.from("target_scope"),targetType:e.from("target_type")})).withAliasedKeys(IBn)]})}}}},shapes:[{shape:mkt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e,config:s,diagnostics:c}){if(n.getCallee()!=="CrossScopePrivilege")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(IBn);(0,eWi.generateDeprecatedDiagnostics)(d,c);let _=d.get("targetScope"),m=_.isString()?await e.createReference({source:_,table:"sys_scope",guid:_}):void 0;return{success:!0,value:await e.createRecord({source:n,table:"sys_scope_privilege",explicitId:d.get("$id"),properties:d.transform(({$:b})=>({operation:b,status:b,target_name:b.from("targetName"),target_scope:b.val(m),target_type:b.from("targetType"),source_scope:b.val(s.scopeId)}))})}}}]})});var RBn=st(gkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(gkt,"__esModule",{value:!0});gkt.ApplicationMenu=tWi;function tWi(n){return n}t(tWi,"ApplicationMenu")});var NBn=st(ykt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ykt,"__esModule",{value:!0});ykt.Property=nWi;function nWi(n){return n}t(nWi,"Property")});var PBn=st(vkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(vkt,"__esModule",{value:!0});vkt.UserPreference=rWi;function rWi(n){return n}t(rWi,"UserPreference")});var LBn=st(bkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bkt,"__esModule",{value:!0});bkt.CrossScopePrivilege=iWi;function iWi(n){return n}t(iWi,"CrossScopePrivilege")});var kBn=st(Skt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Skt,"__esModule",{value:!0});Skt.BusinessRule=aWi;function aWi(n){return n}t(aWi,"BusinessRule")});var MBn=st(o7=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(o7,"__esModule",{value:!0});o7.AclAttributes=o7.AclOperations=o7.AclTypes=o7.AclNamedTypes=void 0;o7.Acl=oWi;var sWi={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",pd_action:"pd_action",record:"record"};o7.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234"};o7.AclTypes={...sWi,...o7.AclNamedTypes};o7.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};o7.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function oWi(n){return n}t(oWi,"Acl")});var OBn=st(xkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xkt,"__esModule",{value:!0});xkt.Role=lWi;function lWi(n){return n}t(lWi,"Role")});var BBn=st(FBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(FBn,"__esModule",{value:!0})});var UBn=st(VBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(VBn,"__esModule",{value:!0})});var WBn=st(jBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jBn,"__esModule",{value:!0})});var GBn=st(zBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zBn,"__esModule",{value:!0})});var HBn=st(qBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qBn,"__esModule",{value:!0})});var JBn=st(KBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KBn,"__esModule",{value:!0})});var YBn=st(XBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(XBn,"__esModule",{value:!0})});var ZBn=st(QBn=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QBn,"__esModule",{value:!0})});var t7n=st(e7n=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(e7n,"__esModule",{value:!0})});var n7n=st(U3=>{"use strict";pe();ue();oe();ce();le();var cWi=U3&&U3.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),kee=U3&&U3.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&cWi(e,n,s)};Object.defineProperty(U3,"__esModule",{value:!0});kee(BBn(),U3);kee(UBn(),U3);kee(WBn(),U3);kee(GBn(),U3);kee(HBn(),U3);kee(JBn(),U3);kee(YBn(),U3);kee(ZBn(),U3);t7n()});var r7n=st(Ekt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ekt,"__esModule",{value:!0});Ekt.Test=uWi;n7n();function uWi(n,e){return{inputObject:n,configurationFunction:e}}t(uWi,"Test")});var i7n=st(Ckt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ckt,"__esModule",{value:!0});Ckt.ImportSet=pWi;function pWi(n){return n}t(pWi,"ImportSet")});var a7n=st(wkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(wkt,"__esModule",{value:!0});wkt.Sla=dWi;function dWi(n){return n}t(dWi,"Sla")});var dHe=st(tM=>{"use strict";pe();ue();oe();ce();le();var fWi=tM&&tM.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),jz=tM&&tM.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&fWi(e,n,s)};Object.defineProperty(tM,"__esModule",{value:!0});jz(RBn(),tM);jz(NBn(),tM);jz(PBn(),tM);jz(LBn(),tM);jz(kBn(),tM);jz(MBn(),tM);jz(OBn(),tM);jz(r7n(),tM);jz(i7n(),tM);jz(a7n(),tM)});var s7n=st($kt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($kt,"__esModule",{value:!0});$kt.SPAngularProvider=_Wi;function _Wi(n){return n}t(_Wi,"SPAngularProvider")});var o7n=st(QAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QAe,"__esModule",{value:!0});QAe.SPWidgetDependency=hWi;QAe.JsInclude=mWi;QAe.CssInclude=gWi;function hWi(n){return n}t(hWi,"SPWidgetDependency");function mWi(n){return n}t(mWi,"JsInclude");function gWi(n){return n}t(gWi,"CssInclude")});var l7n=st(ZAe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZAe,"__esModule",{value:!0});ZAe.WidgetCategories=void 0;ZAe.SPWidget=yWi;ZAe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function yWi(n){return n}t(yWi,"SPWidget")});var Tkt=st(lJ=>{"use strict";pe();ue();oe();ce();le();var vWi=lJ&&lJ.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Akt=lJ&&lJ.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vWi(e,n,s)};Object.defineProperty(lJ,"__esModule",{value:!0});Akt(s7n(),lJ);Akt(o7n(),lJ);Akt(l7n(),lJ)});var c7n=st(Ikt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ikt,"__esModule",{value:!0});Ikt.AttachmentVariable=bWi;function bWi(n){return n}t(bWi,"AttachmentVariable")});var u7n=st(Dkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Dkt,"__esModule",{value:!0});Dkt.BreakVariable=SWi;function SWi(n){return n}t(SWi,"BreakVariable")});var d7n=st(p7n=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(p7n,"__esModule",{value:!0})});var f7n=st(Rkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Rkt,"__esModule",{value:!0});Rkt.CheckboxVariable=xWi;function xWi(n){return n}t(xWi,"CheckboxVariable")});var _7n=st(Nkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Nkt,"__esModule",{value:!0});Nkt.ContainerEndVariable=EWi;function EWi(n){return n}t(EWi,"ContainerEndVariable")});var h7n=st(Pkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Pkt,"__esModule",{value:!0});Pkt.ContainerSplitVariable=CWi;function CWi(n){return n}t(CWi,"ContainerSplitVariable")});var m7n=st(Lkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Lkt,"__esModule",{value:!0});Lkt.ContainerStartVariable=wWi;function wWi(n){return n}t(wWi,"ContainerStartVariable")});var g7n=st(kkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kkt,"__esModule",{value:!0});kkt.CustomVariable=$Wi;function $Wi(n){return n}t($Wi,"CustomVariable")});var y7n=st(Mkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Mkt,"__esModule",{value:!0});Mkt.CustomWithLabelVariable=AWi;function AWi(n){return n}t(AWi,"CustomWithLabelVariable")});var v7n=st(Okt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Okt,"__esModule",{value:!0});Okt.DateVariable=TWi;function TWi(n){return n}t(TWi,"DateVariable")});var b7n=st(Fkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Fkt,"__esModule",{value:!0});Fkt.DateTimeVariable=IWi;function IWi(n){return n}t(IWi,"DateTimeVariable")});var S7n=st(Bkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Bkt,"__esModule",{value:!0});Bkt.DurationVariable=DWi;function DWi(n){return n}t(DWi,"DurationVariable")});var x7n=st(Vkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Vkt,"__esModule",{value:!0});Vkt.EmailVariable=RWi;function RWi(n){return n}t(RWi,"EmailVariable")});var E7n=st(Ukt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ukt,"__esModule",{value:!0});Ukt.HtmlVariable=NWi;function NWi(n){return n}t(NWi,"HtmlVariable")});var C7n=st(jkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jkt,"__esModule",{value:!0});jkt.IpAddressVariable=PWi;function PWi(n){return n}t(PWi,"IpAddressVariable")});var w7n=st(Wkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Wkt,"__esModule",{value:!0});Wkt.LabelVariable=LWi;function LWi(n){return n}t(LWi,"LabelVariable")});var $7n=st(zkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zkt,"__esModule",{value:!0});zkt.ListCollectorVariable=kWi;function kWi(n){return n}t(kWi,"ListCollectorVariable")});var A7n=st(Gkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Gkt,"__esModule",{value:!0});Gkt.LookupMultipleChoiceVariable=MWi;function MWi(n){return n}t(MWi,"LookupMultipleChoiceVariable")});var T7n=st(qkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qkt,"__esModule",{value:!0});qkt.LookupSelectBoxVariable=OWi;function OWi(n){return n}t(OWi,"LookupSelectBoxVariable")});var I7n=st(Hkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Hkt,"__esModule",{value:!0});Hkt.MaskedVariable=FWi;function FWi(n){return n}t(FWi,"MaskedVariable")});var D7n=st(Kkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Kkt,"__esModule",{value:!0});Kkt.MultiLineTextVariable=BWi;function BWi(n){return n}t(BWi,"MultiLineTextVariable")});var R7n=st(Jkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Jkt,"__esModule",{value:!0});Jkt.MultipleChoiceVariable=VWi;function VWi(n){return n}t(VWi,"MultipleChoiceVariable")});var N7n=st(Xkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xkt,"__esModule",{value:!0});Xkt.NumericScaleVariable=UWi;function UWi(n){return n}t(UWi,"NumericScaleVariable")});var P7n=st(Ykt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Ykt,"__esModule",{value:!0});Ykt.ReferenceVariable=jWi;function jWi(n){return n}t(jWi,"ReferenceVariable")});var L7n=st(Qkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Qkt,"__esModule",{value:!0});Qkt.RequestedForVariable=WWi;function WWi(n){return n}t(WWi,"RequestedForVariable")});var k7n=st(Zkt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Zkt,"__esModule",{value:!0});Zkt.RichTextLabelVariable=zWi;function zWi(n){return n}t(zWi,"RichTextLabelVariable")});var M7n=st(eMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eMt,"__esModule",{value:!0});eMt.SelectBoxVariable=GWi;function GWi(n){return n}t(GWi,"SelectBoxVariable")});var O7n=st(tMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(tMt,"__esModule",{value:!0});tMt.SingleLineTextVariable=qWi;function qWi(n){return n}t(qWi,"SingleLineTextVariable")});var F7n=st(nMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nMt,"__esModule",{value:!0});nMt.UrlVariable=HWi;function HWi(n){return n}t(HWi,"UrlVariable")});var B7n=st(rMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rMt,"__esModule",{value:!0});rMt.WideSingleLineTextVariable=KWi;function KWi(n){return n}t(KWi,"WideSingleLineTextVariable")});var V7n=st(iMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iMt,"__esModule",{value:!0});iMt.YesNoVariable=JWi;function JWi(n){return n}t(JWi,"YesNoVariable")});var U7n=st(aMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(aMt,"__esModule",{value:!0});aMt.UIPageVariable=XWi;function XWi(n){return n}t(XWi,"UIPageVariable")});var j7n=st(q0=>{"use strict";pe();ue();oe();ce();le();var YWi=q0&&q0.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),x1=q0&&q0.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&YWi(e,n,s)};Object.defineProperty(q0,"__esModule",{value:!0});x1(c7n(),q0);x1(u7n(),q0);x1(d7n(),q0);x1(f7n(),q0);x1(_7n(),q0);x1(h7n(),q0);x1(m7n(),q0);x1(g7n(),q0);x1(y7n(),q0);x1(v7n(),q0);x1(b7n(),q0);x1(S7n(),q0);x1(x7n(),q0);x1(E7n(),q0);x1(C7n(),q0);x1(w7n(),q0);x1($7n(),q0);x1(A7n(),q0);x1(T7n(),q0);x1(I7n(),q0);x1(D7n(),q0);x1(R7n(),q0);x1(N7n(),q0);x1(P7n(),q0);x1(L7n(),q0);x1(k7n(),q0);x1(M7n(),q0);x1(O7n(),q0);x1(F7n(),q0);x1(B7n(),q0);x1(V7n(),q0);x1(U7n(),q0)});var W7n=st(sMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(sMt,"__esModule",{value:!0});sMt.VariableSet=QWi;function QWi(n){return n}t(QWi,"VariableSet")});var z7n=st(oMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(oMt,"__esModule",{value:!0});oMt.CatalogItem=ZWi;function ZWi(n){return n}t(ZWi,"CatalogItem")});var G7n=st(lMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(lMt,"__esModule",{value:!0});lMt.CatalogItemRecordProducer=ezi;function ezi(n){return n}t(ezi,"CatalogItemRecordProducer")});var q7n=st(cMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(cMt,"__esModule",{value:!0});cMt.CatalogUiPolicy=tzi;function tzi(n){return n}t(tzi,"CatalogUiPolicy")});var H7n=st(uMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(uMt,"__esModule",{value:!0});uMt.CatalogClientScript=nzi;function nzi(n){return n}t(nzi,"CatalogClientScript")});var pMt=st(l7=>{"use strict";pe();ue();oe();ce();le();var rzi=l7&&l7.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),Jme=l7&&l7.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&rzi(e,n,s)};Object.defineProperty(l7,"__esModule",{value:!0});Jme(j7n(),l7);Jme(W7n(),l7);Jme(z7n(),l7);Jme(G7n(),l7);Jme(q7n(),l7);Jme(H7n(),l7)});var K7n=st(dMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(dMt,"__esModule",{value:!0});dMt.ClientScript=izi;function izi(n){return n}t(izi,"ClientScript")});var J7n=st(goe=>{"use strict";pe();ue();oe();ce();le();var azi=goe&&goe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),szi=goe&&goe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&azi(e,n,s)};Object.defineProperty(goe,"__esModule",{value:!0});szi(K7n(),goe)});var X7n=st(fMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fMt,"__esModule",{value:!0});fMt.SysAttachment=ozi;function ozi(n){return n}t(ozi,"SysAttachment")});var Y7n=st(_Mt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(_Mt,"__esModule",{value:!0});_Mt.ScriptInclude=lzi;function lzi(n){return n}t(lzi,"ScriptInclude")});var Q7n=st(hMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(hMt,"__esModule",{value:!0});hMt.ScriptAction=czi;function czi(n){return n}t(czi,"ScriptAction")});var Z7n=st(cJ=>{"use strict";pe();ue();oe();ce();le();var uzi=cJ&&cJ.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),mMt=cJ&&cJ.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&uzi(e,n,s)};Object.defineProperty(cJ,"__esModule",{value:!0});mMt(X7n(),cJ);mMt(Y7n(),cJ);mMt(Q7n(),cJ)});var eVn=st(gMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(gMt,"__esModule",{value:!0});gMt.List=pzi;function pzi(n){return n}t(pzi,"List")});var tVn=st(yMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yMt,"__esModule",{value:!0});yMt.UiPage=dzi;function dzi(n){return n}t(dzi,"UiPage")});var nVn=st(vMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(vMt,"__esModule",{value:!0});vMt.UiAction=fzi;function fzi(n){return n}t(fzi,"UiAction")});var rVn=st(bMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bMt,"__esModule",{value:!0});bMt.UiPolicy=_zi;function _zi(n){return n}t(_zi,"UiPolicy")});var SMt=st(Wz=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Wz,"__esModule",{value:!0});Wz.UiPolicy=Wz.UiAction=Wz.UiPage=Wz.List=void 0;var hzi=eVn();Object.defineProperty(Wz,"List",{enumerable:!0,get:t(function(){return hzi.List},"get")});var mzi=tVn();Object.defineProperty(Wz,"UiPage",{enumerable:!0,get:t(function(){return mzi.UiPage},"get")});var gzi=nVn();Object.defineProperty(Wz,"UiAction",{enumerable:!0,get:t(function(){return gzi.UiAction},"get")});var yzi=rVn();Object.defineProperty(Wz,"UiPolicy",{enumerable:!0,get:t(function(){return yzi.UiPolicy},"get")})});var iVn=st(xMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xMt,"__esModule",{value:!0});xMt.Table=vzi;function vzi(n){return n}t(vzi,"Table")});var aVn=st(EMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(EMt,"__esModule",{value:!0});EMt.Record=bzi;function bzi(n){return n}t(bzi,"Record")});var sVn=st(yoe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yoe,"__esModule",{value:!0});yoe.readOnlyOption=yoe.type=void 0;yoe.Column=Szi;yoe.type="__type__";yoe.readOnlyOption=["instance_configured","display_read_only","client_script_modifiable","strict_read_only"];function Szi(n){return n}t(Szi,"Column")});var oVn=st(eTe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eTe,"__esModule",{value:!0});eTe.choiceDropdown=void 0;eTe.ChoiceColumn=xzi;eTe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function xzi(n){return n}t(xzi,"ChoiceColumn")});var lVn=st(Xme=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Xme,"__esModule",{value:!0});Xme.StringColumn=Ezi;Xme.MultiLineTextColumn=Czi;Xme.ApprovalRulesColumn=wzi;Xme.SlushBucketColumn=$zi;function Ezi(n){return n}t(Ezi,"StringColumn");function Czi(n){return n}t(Czi,"MultiLineTextColumn");function wzi(n){return n}t(wzi,"ApprovalRulesColumn");function $zi(n){return n}t($zi,"SlushBucketColumn")});var cVn=st(CMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(CMt,"__esModule",{value:!0});CMt.IntegerColumn=Azi;function Azi(n){return n}t(Azi,"IntegerColumn")});var uVn=st(wMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(wMt,"__esModule",{value:!0});wMt.BooleanColumn=Tzi;function Tzi(n){return n}t(Tzi,"BooleanColumn")});var pVn=st(zz=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zz,"__esModule",{value:!0});zz.DateColumn=Izi;zz.DateTimeColumn=Dzi;zz.CalendarDateTimeColumn=Rzi;zz.ScheduleDateTimeColumn=Nzi;zz.IntegerDateColumn=Pzi;zz.DueDateColumn=Lzi;zz.BasicDateTimeColumn=kzi;zz.OtherDateColumn=Mzi;function Izi(n){return n}t(Izi,"DateColumn");function Dzi(n){return n}t(Dzi,"DateTimeColumn");function Rzi(n){return n}t(Rzi,"CalendarDateTimeColumn");function Nzi(n){return n}t(Nzi,"ScheduleDateTimeColumn");function Pzi(n){return n}t(Pzi,"IntegerDateColumn");function Lzi(n){return n}t(Lzi,"DueDateColumn");function kzi(n){return n}t(kzi,"BasicDateTimeColumn");function Mzi(n){return n}t(Mzi,"OtherDateColumn")});var dVn=st($Mt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty($Mt,"__esModule",{value:!0});$Mt.ScriptColumn=Ozi;function Ozi(n){return{...n,columnType:"script"}}t(Ozi,"ScriptColumn")});var fVn=st(AMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(AMt,"__esModule",{value:!0});AMt.TableNameColumn=Fzi;function Fzi(n){return n}t(Fzi,"TableNameColumn")});var _Vn=st(TMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(TMt,"__esModule",{value:!0});TMt.DocumentIdColumn=Bzi;function Bzi(n){return n}t(Bzi,"DocumentIdColumn")});var hVn=st(IMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(IMt,"__esModule",{value:!0});IMt.ReferenceColumn=Vzi;function Vzi(n){return n}t(Vzi,"ReferenceColumn")});var mVn=st(DMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(DMt,"__esModule",{value:!0});DMt.ListColumn=Uzi;function Uzi(n){return n}t(Uzi,"ListColumn")});var gVn=st(RMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(RMt,"__esModule",{value:!0});RMt.DecimalColumn=jzi;function jzi(n){return n}t(jzi,"DecimalColumn")});var yVn=st(NMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(NMt,"__esModule",{value:!0});NMt.DomainIdColumn=Wzi;function Wzi(n){return n}t(Wzi,"DomainIdColumn")});var vVn=st(PMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(PMt,"__esModule",{value:!0});PMt.DomainPathColumn=zzi;function zzi(n){return n}t(zzi,"DomainPathColumn")});var bVn=st(LMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(LMt,"__esModule",{value:!0});LMt.TemplateValueColumn=Gzi;function Gzi(n){return n}t(Gzi,"TemplateValueColumn")});var SVn=st(kMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(kMt,"__esModule",{value:!0});kMt.TranslatedFieldColumn=qzi;function qzi(n){return n}t(qzi,"TranslatedFieldColumn")});var xVn=st(MMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(MMt,"__esModule",{value:!0});MMt.UserRolesColumn=Hzi;function Hzi(n){return n}t(Hzi,"UserRolesColumn")});var EVn=st(OMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(OMt,"__esModule",{value:!0});OMt.BasicImageColumn=Kzi;function Kzi(n){return n}t(Kzi,"BasicImageColumn")});var CVn=st(FMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(FMt,"__esModule",{value:!0});FMt.ConditionsColumn=Jzi;function Jzi(n){return n}t(Jzi,"ConditionsColumn")});var wVn=st(BMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(BMt,"__esModule",{value:!0});BMt.TranslatedTextColumn=Xzi;function Xzi(n){return n}t(Xzi,"TranslatedTextColumn")});var $Vn=st(VMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(VMt,"__esModule",{value:!0});VMt.VersionColumn=Yzi;function Yzi(n){return n}t(Yzi,"VersionColumn")});var AVn=st(UMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(UMt,"__esModule",{value:!0});UMt.SystemClassNameColumn=Qzi;function Qzi(n){return n}t(Qzi,"SystemClassNameColumn")});var TVn=st(jMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(jMt,"__esModule",{value:!0});jMt.FieldNameColumn=Zzi;function Zzi(n){return n}t(Zzi,"FieldNameColumn")});var IVn=st(WMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(WMt,"__esModule",{value:!0});WMt.RadioColumn=eGi;function eGi(n){return n}t(eGi,"RadioColumn")});var DVn=st(zMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(zMt,"__esModule",{value:!0});zMt.GenericColumn=tGi;function tGi(n){return n}t(tGi,"GenericColumn")});var RVn=st(GMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(GMt,"__esModule",{value:!0});GMt.GuidColumn=nGi;function nGi(n){return n}t(nGi,"GuidColumn")});var NVn=st(qMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(qMt,"__esModule",{value:!0});qMt.Password2Column=rGi;function rGi(n){return n}t(rGi,"Password2Column")});var PVn=st(fHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(fHe,"__esModule",{value:!0});fHe.JsonColumn=iGi;fHe.NameValuePairsColumn=aGi;function iGi(n){return n}t(iGi,"JsonColumn");function aGi(n){return n}t(aGi,"NameValuePairsColumn")});var LVn=st(HMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(HMt,"__esModule",{value:!0});HMt.UrlColumn=sGi;function sGi(n){return n}t(sGi,"UrlColumn")});var kVn=st(KMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(KMt,"__esModule",{value:!0});KMt.EmailColumn=oGi;function oGi(n){return n}t(oGi,"EmailColumn")});var MVn=st(JMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(JMt,"__esModule",{value:!0});JMt.HtmlColumn=lGi;function lGi(n){return n}t(lGi,"HtmlColumn")});var OVn=st(XMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(XMt,"__esModule",{value:!0});XMt.FloatColumn=cGi;function cGi(n){return n}t(cGi,"FloatColumn")});var FVn=st(YMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(YMt,"__esModule",{value:!0});YMt.FieldListColumn=uGi;function uGi(n){return n}t(uGi,"FieldListColumn")});var BVn=st(_He=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(_He,"__esModule",{value:!0});_He.DurationColumn=pGi;_He.TimeColumn=dGi;function pGi(n){return n}t(pGi,"DurationColumn");function dGi(n){return n}t(dGi,"TimeColumn")});var VVn=st(hHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(hHe,"__esModule",{value:!0});hHe.DayOfWeekColumn=fGi;hHe.DaysOfWeekColumn=_Gi;function fGi(n){return n}t(fGi,"DayOfWeekColumn");function _Gi(n){return n}t(_Gi,"DaysOfWeekColumn")});var UVn=st(QMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(QMt,"__esModule",{value:!0});QMt.RecordsColumn=hGi;function hGi(n){return n}t(hGi,"RecordsColumn")});var jVn=st(ZMt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(ZMt,"__esModule",{value:!0});ZMt.UserImageColumn=mGi;function mGi(n){return{...n,columnType:"user_image"}}t(mGi,"UserImageColumn")});var nm=st(Bg=>{"use strict";pe();ue();oe();ce();le();var gGi=Bg&&Bg.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),E0=Bg&&Bg.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&gGi(e,n,s)};Object.defineProperty(Bg,"__esModule",{value:!0});E0(iVn(),Bg);E0(aVn(),Bg);E0(sVn(),Bg);E0(oVn(),Bg);E0(lVn(),Bg);E0(cVn(),Bg);E0(uVn(),Bg);E0(pVn(),Bg);E0(dVn(),Bg);E0(fVn(),Bg);E0(_Vn(),Bg);E0(hVn(),Bg);E0(mVn(),Bg);E0(gVn(),Bg);E0(yVn(),Bg);E0(vVn(),Bg);E0(bVn(),Bg);E0(SVn(),Bg);E0(xVn(),Bg);E0(EVn(),Bg);E0(CVn(),Bg);E0(wVn(),Bg);E0($Vn(),Bg);E0(AVn(),Bg);E0(TVn(),Bg);E0(IVn(),Bg);E0(DVn(),Bg);E0(RVn(),Bg);E0(NVn(),Bg);E0(PVn(),Bg);E0(LVn(),Bg);E0(kVn(),Bg);E0(MVn(),Bg);E0(OVn(),Bg);E0(FVn(),Bg);E0(BVn(),Bg);E0(VVn(),Bg);E0(UVn(),Bg);E0(jVn(),Bg)});var WVn=st(eOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(eOt,"__esModule",{value:!0});eOt.RestApi=yGi;function yGi(n){return n}t(yGi,"RestApi")});var zVn=st(voe=>{"use strict";pe();ue();oe();ce();le();var vGi=voe&&voe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),bGi=voe&&voe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&vGi(e,n,s)};Object.defineProperty(voe,"__esModule",{value:!0});bGi(WVn(),voe)});var GVn=st(tOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(tOt,"__esModule",{value:!0});tOt.EmailNotification=SGi;function SGi(n){return n}t(SGi,"EmailNotification")});var qVn=st(boe=>{"use strict";pe();ue();oe();ce();le();var xGi=boe&&boe.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),EGi=boe&&boe.__exportStar||function(n,e){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&xGi(e,n,s)};Object.defineProperty(boe,"__esModule",{value:!0});EGi(GVn(),boe)});var HVn=st(nOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(nOt,"__esModule",{value:!0});nOt.Workspace=CGi;function CGi(n){return n}t(CGi,"Workspace")});var KVn=st(rOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(rOt,"__esModule",{value:!0});rOt.UxListMenuConfig=wGi;function wGi(n){return n}t(wGi,"UxListMenuConfig")});var JVn=st(iOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(iOt,"__esModule",{value:!0});iOt.Applicability=$Gi;function $Gi(n){return n}t($Gi,"Applicability")});var XVn=st(Mee=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Mee,"__esModule",{value:!0});Mee.Applicability=Mee.UxListMenuConfig=Mee.Workspace=void 0;var AGi=HVn();Object.defineProperty(Mee,"Workspace",{enumerable:!0,get:t(function(){return AGi.Workspace},"get")});var TGi=KVn();Object.defineProperty(Mee,"UxListMenuConfig",{enumerable:!0,get:t(function(){return TGi.UxListMenuConfig},"get")});var IGi=JVn();Object.defineProperty(Mee,"Applicability",{enumerable:!0,get:t(function(){return IGi.Applicability},"get")})});var YVn=st(aOt=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(aOt,"__esModule",{value:!0});aOt.Dashboard=DGi;function DGi(n){return n}t(DGi,"Dashboard")});var QVn=st(mHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(mHe,"__esModule",{value:!0});mHe.Dashboard=void 0;var RGi=YVn();Object.defineProperty(mHe,"Dashboard",{enumerable:!0,get:t(function(){return RGi.Dashboard},"get")})});var n9n=st(Coe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(Coe,"__esModule",{value:!0});Coe.TableOwnership=Coe.RecordPlugin=void 0;var Yme=Lc(),NGi=Uy(),j3=dHe(),z9=Tkt(),tTe=pMt(),PGi=J7n(),ZVn=Z7n(),e9n=SMt(),t9n=nm(),Soe=zVn(),LGi=qVn(),xoe=SMt(),Eoe=XVn(),Qme=QVn();Coe.RecordPlugin=Yme.Plugin.create({name:"RecordPlugin",records:{"*":{getUpdateName(n){return{success:!0,value:`${n.getTable()}_${n.getId().getValue()}`}},async diff(n,e){let s=n.compare(e);return{success:!0,value:s.hasChanges()?new Yme.Database(s.query()):new Yme.Database}},async toShape(n,{compiler:e}){let s=n.getTable(),c=e.getTableColumnTypes(s),d=n.transform(({$:m})=>Object.fromEntries(n.keys().filter(b=>b!=="sys_name").map(b=>{let E=n.get(b);if(c?.has(b)&&E?.isString()){let C=c.get(b);try{if(C==="boolean")return[b,m.val(E.toBoolean())];if(C==="number")return[b,m.val(E.toNumber())];if(C==="array")return[b,m.val(E.asString().split(",")).def([""])];if(C==="array-optional"){let A=E.asString().includes(",");return[b,A?m.val(E.asString().split(",")).def([""]):m]}}catch{}}return[b,E?.isString()?m.def(""):m]})));return{success:!0,value:new Yme.CallExpressionShape({source:n,callee:"Record",exportName:n.get("sys_name")?.ifDefined()?.asString().getValue(),args:[{$id:NGi.NowIdShape.from(n),table:s,data:d}]})}},async toFile(n,{config:e,database:s,transform:c}){let d=(0,Yme.unloadBuilder)({scope:e.scope,scopeId:e.scopeId,table:n.getTable()}),_=await c.getUpdateName(n),m=d.record(n,_);n.entries().sort(([E],[C])=>E.localeCompare(C)).forEach(([E,C])=>m.field(E,C));let b=s.query("sys_claim").filter(E=>E.get("metadata_update_name").equals(_));for(let E of b){let C=await c.getUpdateName(E),A=d.record(E,C);E.entries().sort(([D],[N])=>D.localeCompare(N)).forEach(([D,N])=>A.field(D,N))}return{success:!0,value:{source:n,name:`${_}.xml`,category:n.getInstallCategory(),content:d.end()}}}}},shapes:[{shape:Yme.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{factory:e,diagnostics:s}){if(n.getCallee()!=="Record")return{success:!1};let c=n.getArgument(0).asObject(),d=c.get("table").asString().getValue(),_=Coe.TableOwnership[d];return _&&s.hint(n,`For a better experience, consider using the ${_} API`),{success:!0,value:await e.createRecord({source:n,table:d,explicitId:c.get("$id"),properties:c.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,async toRecord(n,{parser:e,logger:s}){try{let c=await e.parsePayload(n),d=new Map;for(let E of c){let C=`${E.getTable()}::${E.getId().getValue()}`,A=d.get(C),D=A?A.merge(E.properties()):E;d.set(C,D)}let _=Array.from(d.values()),[m,...b]=_;return m?{success:!0,value:m.with(...b)}:{success:!1}}catch(c){return s.debug(c),{success:!1}}}}]});Coe.TableOwnership={contract_sla:j3.Sla.name,sys_security_acl:j3.Acl.name,sys_security_acl_role:j3.Acl.name,sys_app_application:j3.ApplicationMenu.name,sys_script:j3.BusinessRule.name,sys_script_client:PGi.ClientScript.name,sys_scope_privilege:j3.CrossScopePrivilege.name,sys_ui_list_element:e9n.List.name,sys_ui_list:e9n.List.name,sys_properties:j3.Property.name,sys_user_role:j3.Role.name,sys_user_role_contains:j3.Role.name,sys_script_include:ZVn.ScriptInclude.name,sp_widget:z9.SPWidget.name,m2m_sp_widget_dependency:z9.SPWidget.name,m2m_sp_ng_pro_sp_widget:z9.SPWidget.name,sp_ng_template:z9.SPWidget.name,sp_dependency:z9.SPWidgetDependency.name,m2m_sp_dependency_css_include:z9.SPWidgetDependency.name,m2m_sp_dependency_js_include:z9.SPWidgetDependency.name,sp_css_include:z9.CssInclude.name,sp_js_include:z9.JsInclude.name,sp_angular_provider:z9.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:z9.SPAngularProvider.name,sys_atf_test:j3.Test.name,sys_ws_header_map:Soe.RestApi.name,sys_ws_query_parameter_map:Soe.RestApi.name,sys_ws_definition:Soe.RestApi.name,sys_ws_operation:Soe.RestApi.name,sys_ws_version:Soe.RestApi.name,sys_ws_header:Soe.RestApi.name,sys_ws_query_parameter:Soe.RestApi.name,sys_user_preference:j3.UserPreference.name,sys_ui_page:xoe.UiPage.name,sys_ui_action:xoe.UiAction.name,sys_ui_action_role:xoe.UiAction.name,sys_ui_action_view:xoe.UiAction.name,sys_ui_policy:xoe.UiPolicy.name,sys_ui_policy_action:xoe.UiPolicy.name,sys_ui_policy_rl_action:xoe.UiPolicy.name,sysevent_script_action:ZVn.ScriptAction.name,sysevent_email_action:LGi.EmailNotification.name,sys_db_object:t9n.Table.name,sys_dictionary:t9n.Table.name,sys_hub_flow:"Flow",sys_hub_trigger_instance_v2:"wfa.trigger",sys_hub_action_instance_v2:"wfa.action",sys_hub_sub_flow_instance_v2:"wfa.subflow",sys_hub_flow_logic_instance_v2:"wfa.flowLogic",sys_flow_step_definition:"ActionStepDefinition",sys_decision:"DecisionTablePlugin",sys_hub_action_type_definition:"Action",sys_hub_step_instance:"wfa.action_step",sys_transform_map:j3.ImportSet.name,sys_transform_entry:j3.ImportSet.name,sys_transform_script:j3.ImportSet.name,sys_ux_applicability:Eoe.Applicability.name,sys_ux_list_menu_config:Eoe.UxListMenuConfig.name,sys_ux_list_category:Eoe.UxListMenuConfig.name,sys_ux_list:Eoe.UxListMenuConfig.name,sys_ux_applicability_m2m_list:Eoe.UxListMenuConfig.name,sys_ux_page_registry:Eoe.Workspace.name,sys_ux_app_config:Eoe.Workspace.name,par_dashboard:Qme.Dashboard.name,par_dashboard_canvas:Qme.Dashboard.name,par_dashboard_tab:Qme.Dashboard.name,par_dashboard_widget:Qme.Dashboard.name,par_dashboard_permission:Qme.Dashboard.name,par_dashboard_visibility:Qme.Dashboard.name,item_option_new_set:tTe.VariableSet.name,sc_cat_item:tTe.CatalogItem.name,sc_cat_item_producer:tTe.CatalogItemRecordProducer.name,catalog_script_client:tTe.CatalogClientScript.name,catalog_ui_policy:tTe.CatalogUiPolicy.name}});var r9n=st(yHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(yHe,"__esModule",{value:!0});yHe.NowRefPlugin=void 0;var gHe=Lc(),kGi=XAe();yHe.NowRefPlugin=gHe.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(n,{transform:e,factory:s}){let c=await e.toShape(n,kGi.CallExpressionPlugin);if(!c.success||!c.value.is(gHe.CallExpressionShape)||c.value.getCallee()!=="Now.ref")return{success:!1};let d=c.value,_=d.getArgument(0).asString("The first argument to Now.ref() must be a table name"),m=d.getArgument(1).as([gHe.StringShape,gHe.ObjectShape],"The second argument to Now.ref() must be a GUID, a Now ID string, or a coalesce keys object"),b=d.hasArgument(2)?d.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[E,C]=b?[m.asString(),b]:m.isString()?[m.asString(),void 0]:[void 0,m.asObject()];return{success:!0,value:await s.createReference({source:n,table:_,guid:E,keys:C})}}}]})});var i9n=st(bHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(bHe,"__esModule",{value:!0});bHe.NowUnresolvedPlugin=void 0;var vHe=Lc();bHe.NowUnresolvedPlugin=vHe.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:vHe.UnresolvedShape,commit(n,e){return e.replaceWithText(n.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(n){return n.getText()!==vHe.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new vHe.UnresolvedShape({source:n})}}}]})});var o9n=st(SHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(SHe,"__esModule",{value:!0});SHe.PropertyPlugin=void 0;var MGi=Lc(),sOt=Lc(),OGi=Uy(),a9n=t(n=>n.split(",").map(e=>e.trim()).filter(e=>e),"getRolesArray");SHe.PropertyPlugin=sOt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(n,{config:e}){return{success:!0,value:new sOt.CallExpressionShape({source:n,callee:"Property",args:[n.transform(({$:s})=>({$id:s.val(OGi.NowIdShape.from(n)),name:s.from("name","suffix").map((c,d)=>c.ifString()??(e.scope==="global"?d:`${e.scope}.${d.asString().getValue()}`)),value:s,description:s.def(""),type:s.def("string"),choices:s.map(c=>c.toString().getValue().split(/[,\n]/).map(_=>_.trim()).filter(_=>_)).def([]),isPrivate:s.from("is_private").toBoolean().def(!1),ignoreCache:s.from("ignore_cache").toBoolean().def(!1),roles:s.from("read_roles","write_roles").def({read:[],write:[]}).map((c,d)=>({read:c.ifString()?.pipe(_=>a9n(_.getValue())),write:d.ifString()?.pipe(_=>a9n(_.getValue()))}))}))]})}}}},shapes:[{shape:sOt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{config:e,diagnostics:s,factory:c}){if(n.getCallee()!=="Property")return{success:!1};let d=n.getArgument(0).asObject(),_=e.scope,m=d.get("name").asString();return!(0,MGi.isSNScope)(_)&&e.scope!=="global"&&!m.asString().startsWith(`${_}.`)&&s.error(m.getOriginalNode(),`Property name must begin with '${_}.'`),{success:!0,value:await c.createRecord({source:n,table:"sys_properties",explicitId:d.get("$id"),properties:d.transform(({$:b,merge:E})=>({name:b,suffix:b.from("name").map(C=>C.asString().replace(new RegExp(`^${e.scope}\\.`),"")),description:b,type:b.def("string"),value:b.toString(),is_private:b.from("isPrivate").def(!1),ignore_cache:b.from("ignoreCache").def(!1),choices:b.map(C=>C.ifArray()?.getValue().join(",")),[E]:b.from("roles").def({read_roles:"",write_roles:""}).map(C=>C.ifObject()?.transform(({$:A})=>({read_roles:A.from("read").map(D=>s9n(D)),write_roles:A.from("write").map(D=>s9n(D))})).properties())}))})}}}]});function s9n(n){return n.ifArray()?.pipe(e=>Array.from(new Set(e.getElements().map(s=>s.ifRecord()?.get("name").getValue()??s.getValue()))).join(","))}t(s9n,"getRolesString")});var c9n=st(xHe=>{"use strict";pe();ue();oe();ce();le();Object.defineProperty(xHe,"__esModule",{value:!0});xHe.RolePlugin=void 0;var FGi=Lc(),oOt=Lc(),BGi=nw(),l9n={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};xHe.RolePlugin=oOt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(n,{descendants:e}){return{success:!0,value:new oOt.CallExpressionShape({source:n,exportName:n.get("name").ifString()?.getValue(),callee:"Role",args:[n.transform(({$:s})=>({name:s,assignableBy:s.from("assignable_by").def(""),description:s.def(""),canDelegate:s.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:s.from("elevated_privilege").toBoolean().def(!1),grantable:s.toBoolean().def(!0),scopedAdmin:s.from("scoped_admin").toBoolean().def(!1),containsRoles:s.val(e.query("sys_user_role_contains").map(c=>c.get("contains").toRecordId())).def([])})).withAliasedKeys(l9n)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:oOt.CallExpressionShape,fileTypes:["fluent"],async toRecord(n,{config:e,diagnostics:s,factory:c}){if(n.getCallee()!=="Role")return{success:!1};let d=n.getArgument(0).asObject().withAliasedKeys(l9n);(0,BGi.generateDeprecatedDiagnostics)(d,s);let _=e.scope,m=d.get("name").asString();_!=="global"&&!(0,FGi.isSNScope)(_)&&!m.getValue().startsWith(`${_}.`)&&s.error(m.getOriginalNode(),`Role name must begin with '${_}.'`);let b=await c.createRecord({explicitId:d.get("$id"),source:n,table:"sys_user_role",properties:d.transform(({$:C})=>({name:C,assignable_by:C.from("assignableBy").def(""),can_delegate:C.from("canDelegate").def(!0),description:C.def(""),elevated_privilege:C.from("elevatedPrivilege").def(!1),grantable:C.def(!0),scoped_admin:C.from("scopedAdmin").def(!1),suffix:C.from("name").map(A=>A.asString().getValue().replace(new RegExp(`^${e.scope}\\.`),""))}))}),E=[];for(let C of d.get("containsRoles").ifArray()?.getElements()??[])E.push(await c.createRecord({source:n,table:"sys_user_role_contains",properties:{role:b,contains:C.isStringLiteral()?await c.createReference({source:C,table:"sys_user_role",keys:{name:C}}):C}}));return{success:!0,value:b.with(...E??[])}}}]})});var d9n=st((CHe,p9n)=>{pe();ue();oe();ce();le();var lOt,EHe;lOt=CHe,EHe=t(function(n){var e=typeof document<"u"?document.currentScript:null,s="4.43.0";function c(we){return we&&we.__esModule&&Object.prototype.hasOwnProperty.call(we,"default")?we.default:we}t(c,"s");var d,_={exports:{}};function m(){return d||(d=1,function(we,U){(function(M){let Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=new Uint8Array(64),Ne=new Uint8Array(128);for(let Gi=0;Gi<Z.length;Gi++){let Pi=Z.charCodeAt(Gi);ye[Gi]=Pi,Ne[Pi]=Gi}function Xe(Gi,Pi){let mi=0,$i=0,wi=0;do{let wa=Gi.next();wi=Ne[wa],mi|=(31&wi)<<$i,$i+=5}while(32&wi);let aa=1&mi;return mi>>>=1,aa&&(mi=-2147483648|-mi),Pi+mi}t(Xe,"o");function pt(Gi,Pi,mi){let $i=Pi-mi;$i=$i<0?-$i<<1|1:$i<<1;do{let wi=31&$i;$i>>>=5,$i>0&&(wi|=32),Gi.write(ye[wi])}while($i>0);return Pi}t(pt,"a");function $t(Gi,Pi){return!(Gi.pos>=Pi)&&Gi.peek()!==44}t($t,"l");let Kt=16384,mn=typeof TextDecoder<"u"?new TextDecoder:typeof it<"u"?{decode:t(Gi=>it.from(Gi.buffer,Gi.byteOffset,Gi.byteLength).toString(),"decode")}:{decode(Gi){let Pi="";for(let mi=0;mi<Gi.length;mi++)Pi+=String.fromCharCode(Gi[mi]);return Pi}};class qn{static{t(this,"d")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Kt)}write(Pi){let{buffer:mi}=this;mi[this.pos++]=Pi,this.pos===Kt&&(this.out+=mn.decode(mi),this.pos=0)}flush(){let{buffer:Pi,out:mi,pos:$i}=this;return $i>0?mi+mn.decode(Pi.subarray(0,$i)):mi}}class fr{static{t(this,"h")}constructor(Pi){this.pos=0,this.buffer=Pi}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(Pi){let{buffer:mi,pos:$i}=this,wi=mi.indexOf(Pi,$i);return wi===-1?mi.length:wi}}let yr=[];function Hr(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=[],aa=0;for(;mi.pos<Pi;mi.pos++){aa=Xe(mi,aa);let wa=Xe(mi,0);if(!$t(mi,Pi)){let hl=wi.pop();hl[2]=aa,hl[3]=wa;continue}let as=Xe(mi,0),Zs=1&Xe(mi,0)?[aa,wa,0,0,as,Xe(mi,0)]:[aa,wa,0,0,as],$r=yr;if($t(mi,Pi)){$r=[];do{let hl=Xe(mi,0);$r.push(hl)}while($t(mi,Pi))}Zs.vars=$r,$i.push(Zs),wi.push(Zs)}return $i}t(Hr,"f");function kr(Gi){let Pi=new qn;for(let mi=0;mi<Gi.length;)mi=jr(Gi,mi,Pi,[0]);return Pi.flush()}t(kr,"m");function jr(Gi,Pi,mi,$i){let wi=Gi[Pi],{0:aa,1:wa,2:as,3:Zs,4:$r,vars:hl}=wi;Pi>0&&mi.write(44),$i[0]=pt(mi,aa,$i[0]),pt(mi,wa,0),pt(mi,$r,0),pt(mi,wi.length===6?1:0,0),wi.length===6&&pt(mi,wi[5],0);for(let Ia of hl)pt(mi,Ia,0);for(Pi++;Pi<Gi.length;){let Ia=Gi[Pi],{0:ml,1:ts}=Ia;if(ml>as||ml===as&&ts>=Zs)break;Pi=jr(Gi,Pi,mi,$i)}return mi.write(44),$i[0]=pt(mi,as,$i[0]),pt(mi,Zs,0),Pi}t(jr,"g");function Br(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=[],aa=0,wa=0,as=0,Zs=0,$r=0,hl=0,Ia=0,ml=0;do{let ts=mi.indexOf(";"),Qa=0;for(;mi.pos<ts;mi.pos++){if(Qa=Xe(mi,Qa),!$t(mi,ts)){let Xd=wi.pop();Xd[2]=aa,Xd[3]=Qa;continue}let Rs=Xe(mi,0),fs=2&Rs,Mc=4&Rs,Cc,Md=null,dd=yr;if(1&Rs){let Xd=Xe(mi,wa);as=Xe(mi,wa===Xd?as:0),wa=Xd,Cc=[aa,Qa,0,0,Xd,as]}else Cc=[aa,Qa,0,0];if(Cc.isScope=!!Mc,fs){let Xd=Zs,Y_=$r;Zs=Xe(mi,Zs);let b_=Xd===Zs;$r=Xe(mi,b_?$r:0),hl=Xe(mi,b_&&Y_===$r?hl:0),Md=[Zs,$r,hl]}if(Cc.callsite=Md,$t(mi,ts)){dd=[];do{Ia=aa,ml=Qa;let Xd=Xe(mi,0),Y_;if(Xd<-1){Y_=[[Xe(mi,0)]];for(let b_=-1;b_>Xd;b_--){let np=Ia;Ia=Xe(mi,Ia),ml=Xe(mi,Ia===np?ml:0);let Qm=Xe(mi,0);Y_.push([Qm,Ia,ml])}}else Y_=[[Xd]];dd.push(Y_)}while($t(mi,ts))}Cc.bindings=dd,$i.push(Cc),wi.push(Cc)}aa++,mi.pos=ts+1}while(mi.pos<Pi);return $i}t(Br,"y");function ci(Gi){if(Gi.length===0)return"";let Pi=new qn;for(let mi=0;mi<Gi.length;)mi=ti(Gi,mi,Pi,[0,0,0,0,0,0,0]);return Pi.flush()}t(ci,"b");function ti(Gi,Pi,mi,$i){let wi=Gi[Pi],{0:aa,1:wa,2:as,3:Zs,isScope:$r,callsite:hl,bindings:Ia}=wi;if($i[0]<aa?(Ni(mi,$i[0],aa),$i[0]=aa,$i[1]=0):Pi>0&&mi.write(44),$i[1]=pt(mi,wi[1],$i[1]),pt(mi,(wi.length===6?1:0)|(hl?2:0)|($r?4:0),0),wi.length===6){let{4:ml,5:ts}=wi;ml!==$i[2]&&($i[3]=0),$i[2]=pt(mi,ml,$i[2]),$i[3]=pt(mi,ts,$i[3])}if(hl){let{0:ml,1:ts,2:Qa}=wi.callsite;ml!==$i[4]?($i[5]=0,$i[6]=0):ts!==$i[5]&&($i[6]=0),$i[4]=pt(mi,ml,$i[4]),$i[5]=pt(mi,ts,$i[5]),$i[6]=pt(mi,Qa,$i[6])}if(Ia)for(let ml of Ia){ml.length>1&&pt(mi,-ml.length,0),pt(mi,ml[0][0],0);let ts=aa,Qa=wa;for(let Rs=1;Rs<ml.length;Rs++){let fs=ml[Rs];ts=pt(mi,fs[1],ts),Qa=pt(mi,fs[2],Qa),pt(mi,fs[0],0)}}for(Pi++;Pi<Gi.length;){let ml=Gi[Pi],{0:ts,1:Qa}=ml;if(ts>as||ts===as&&Qa>=Zs)break;Pi=ti(Gi,Pi,mi,$i)}return $i[0]<as?(Ni(mi,$i[0],as),$i[0]=as,$i[1]=0):mi.write(44),$i[1]=pt(mi,Zs,$i[1]),Pi}t(ti,"E");function Ni(Gi,Pi,mi){do Gi.write(59);while(++Pi<mi)}t(Ni,"x");function na(Gi){let{length:Pi}=Gi,mi=new fr(Gi),$i=[],wi=0,aa=0,wa=0,as=0,Zs=0;do{let $r=mi.indexOf(";"),hl=[],Ia=!0,ml=0;for(wi=0;mi.pos<$r;){let ts;wi=Xe(mi,wi),wi<ml&&(Ia=!1),ml=wi,$t(mi,$r)?(aa=Xe(mi,aa),wa=Xe(mi,wa),as=Xe(mi,as),$t(mi,$r)?(Zs=Xe(mi,Zs),ts=[wi,aa,wa,as,Zs]):ts=[wi,aa,wa,as]):ts=[wi],hl.push(ts),mi.pos++}Ia||ba(hl),$i.push(hl),mi.pos=$r+1}while(mi.pos<=Pi);return $i}t(na,"A");function ba(Gi){Gi.sort(Ja)}t(ba,"S");function Ja(Gi,Pi){return Gi[0]-Pi[0]}t(Ja,"$");function da(Gi){let Pi=new qn,mi=0,$i=0,wi=0,aa=0;for(let wa=0;wa<Gi.length;wa++){let as=Gi[wa];if(wa>0&&Pi.write(59),as.length===0)continue;let Zs=0;for(let $r=0;$r<as.length;$r++){let hl=as[$r];$r>0&&Pi.write(44),Zs=pt(Pi,hl[0],Zs),hl.length!==1&&(mi=pt(Pi,hl[1],mi),$i=pt(Pi,hl[2],$i),wi=pt(Pi,hl[3],wi),hl.length!==4&&(aa=pt(Pi,hl[4],aa)))}}return Pi.flush()}t(da,"v"),M.decode=na,M.decodeGeneratedRanges=Br,M.decodeOriginalScopes=Hr,M.encode=da,M.encodeGeneratedRanges=ci,M.encodeOriginalScopes=kr,Object.defineProperty(M,"__esModule",{value:!0})})(U)}(0,_.exports)),_.exports}t(m,"o");var b=m();class E{static{t(this,"l")}constructor(U){this.bits=U instanceof E?U.bits.slice():[]}add(U){this.bits[U>>5]|=1<<(31&U)}has(U){return!!(this.bits[U>>5]&1<<(31&U))}}let C=class cOt{static{t(this,"e")}constructor(U,M,$){this.start=U,this.end=M,this.original=$,this.intro="",this.outro="",this.content=$,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(U){this.outro+=U}appendRight(U){this.intro=this.intro+U}clone(){let U=new cOt(this.start,this.end,this.original);return U.intro=this.intro,U.outro=this.outro,U.content=this.content,U.storeName=this.storeName,U.edited=this.edited,U}contains(U){return this.start<U&&U<this.end}eachNext(U){let M=this;for(;M;)U(M),M=M.next}eachPrevious(U){let M=this;for(;M;)U(M),M=M.previous}edit(U,M,$){return this.content=U,$||(this.intro="",this.outro=""),this.storeName=M,this.edited=!0,this}prependLeft(U){this.outro=U+this.outro}prependRight(U){this.intro=U+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(U){let M=U-this.start,$=this.original.slice(0,M),V=this.original.slice(M);this.original=$;let Z=new cOt(U,this.end,V);return Z.outro=this.outro,this.outro="",this.end=U,this.edited?(Z.edit("",!1),this.content=""):this.content=$,Z.next=this.next,Z.next&&(Z.next.previous=Z),Z.previous=this,this.next=Z,Z}toString(){return this.intro+this.content+this.outro}trimEnd(U){if(this.outro=this.outro.replace(U,""),this.outro.length)return!0;let M=this.content.replace(U,"");return M.length?(M!==this.content&&(this.split(this.start+M.length).edit("",void 0,!0),this.edited&&this.edit(M,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(U,""),!!this.intro.length||void 0)}trimStart(U){if(this.intro=this.intro.replace(U,""),this.intro.length)return!0;let M=this.content.replace(U,"");if(M.length){if(M!==this.content){let $=this.split(this.end-M.length);this.edited&&$.edit(M,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(U,""),!!this.outro.length||void 0}};function A(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?we=>globalThis.btoa(unescape(encodeURIComponent(we))):typeof it=="function"?we=>it.from(we,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}t(A,"u");let D=A();class N{static{t(this,"h")}constructor(U){this.version=3,this.file=U.file,this.sources=U.sources,this.sourcesContent=U.sourcesContent,this.names=U.names,this.mappings=b.encode(U.mappings),U.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=U.x_google_ignoreList),U.debugId!==void 0&&(this.debugId=U.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+D(this.toString())}}function F(we,U){let M=we.split(/[/\\]/),$=U.split(/[/\\]/);for(M.pop();M[0]===$[0];)M.shift(),$.shift();if(M.length){let V=M.length;for(;V--;)M[V]=".."}return M.concat($).join("/")}t(F,"p");let W=Object.prototype.toString;function G(we){return W.call(we)==="[object Object]"}t(G,"m");function j(we){let U=we.split(`
48790
48790
  `),M=[];for(let $=0,V=0;$<U.length;$++)M.push(V),V+=U[$].length+1;return function($){let V=0,Z=M.length;for(;V<Z;){let Ne=V+Z>>1;$<M[Ne]?Z=Ne:V=Ne+1}let ye=V-1;return{line:ye,column:$-M[ye]}}}t(j,"g");let K=/\w/;class ee{static{t(this,"b")}constructor(U){this.hires=U,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(U,M,$,V){if(M.length){let Z=M.length-1,ye=M.indexOf(`
48791
48791
  `,0),Ne=-1;for(;ye>=0&&Z>ye;){let pt=[this.generatedCodeColumn,U,$.line,$.column];V>=0&&pt.push(V),this.rawSegments.push(pt),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,Ne=ye,ye=M.indexOf(`
48792
48792
  `,ye+1)}let Xe=[this.generatedCodeColumn,U,$.line,$.column];V>=0&&Xe.push(V),this.rawSegments.push(Xe),this.advance(M.slice(Ne+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(M));this.pending=null}addUneditedChunk(U,M,$,V,Z){let ye=M.start,Ne=!0,Xe=!1;for(;ye<M.end;){if($[ye]===`
@@ -49248,12 +49248,12 @@ ${s.getFullText()}`);if(!(d.value.equals(e)||e.equals(d.value))){this.decorateNo
49248
49248
  Provided statement:
49249
49249
  ${e}`);return s}};Ant.ProjectFile=cjt;function NBa(n){return n.replace(/,{2,}$/gm,",")}t(NBa,"fixAdditionalTrailingCommas");var P2r=t((n,e,s)=>{e.getLanguageService().getCombinedCodeFix(n,"unusedIdentifier_delete").getChanges().forEach(d=>{s(d)})},"unusedChangesIterator");function PBa(n,e){(0,zS.hasDirective)(n,"@fluent-disable-sync-for-file")||P2r(n,e,s=>{s.getTextChanges().map(d=>n.getDescendantAtPos(d.getSpan().getStart())).forEach(d=>{d?.isKind(zS.ts.SyntaxKind.SingleLineCommentTrivia)||d?.isKind(zS.ts.SyntaxKind.MultiLineCommentTrivia)?d=d?.getNextSiblingIfKind(zS.ts.SyntaxKind.VariableStatement):d=d?.getFirstAncestorByKind(zS.ts.SyntaxKind.VariableStatement);let _=d?.asKind(zS.ts.SyntaxKind.VariableStatement),m=_?.getDeclarations()[0]?.getInitializerIfKind(zS.ts.SyntaxKind.CallExpression);m&&d&&!_?.isExported()&&d.replaceWithText(m.getText())})})}t(PBa,"fixUnusedCode");function LBa(n,e){PBa(n,e.getCompiler());let s=[];P2r(n,e.getCompiler(),c=>{c.getTextChanges().forEach(d=>{let _=d.getSpan();s.push(n.getFullText().substring(_.getStart(),_.getEnd()))}),c.applyChanges()}),s.length>0&&e.getLogger().debug([`Removing the following unused code from ${n.getFilePath().replace(e.getRootDir(),"")}:`,...s.map((c,d)=>`${d+1}:${c.trim()}`)].join(`
49250
49250
 
49251
- `)),e.getCompiler().getLanguageService().getCombinedCodeFix(n,"unusedIdentifier_deleteImports").applyChanges()}t(LBa,"deleteUnusedCode")});var k2r=st((Tnt,L2r)=>{pe();ue();oe();ce();le();(function(n,e){typeof Tnt=="object"?L2r.exports=Tnt=e():typeof define=="function"&&define.amd?define([],e):n.CryptoJS=e()})(Tnt,function(){var n=n||function(e,s){var c;if(typeof window<"u"&&window.crypto&&(c=window.crypto),typeof self<"u"&&self.crypto&&(c=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window<"u"&&window.msCrypto&&(c=window.msCrypto),!c&&typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof EL=="function")try{c=Gbt()}catch{}var d=t(function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),_=Object.create||function(){function K(){}return t(K,"F"),function(ee){var re;return K.prototype=ee,re=new K,K.prototype=null,re}}(),m={},b=m.lib={},E=b.Base=function(){return{extend:t(function(K){var ee=_(this);return K&&ee.mixIn(K),(!ee.hasOwnProperty("init")||this.init===ee.init)&&(ee.init=function(){ee.$super.init.apply(this,arguments)}),ee.init.prototype=ee,ee.$super=this,ee},"extend"),create:t(function(){var K=this.extend();return K.init.apply(K,arguments),K},"create"),init:t(function(){},"init"),mixIn:t(function(K){for(var ee in K)K.hasOwnProperty(ee)&&(this[ee]=K[ee]);K.hasOwnProperty("toString")&&(this.toString=K.toString)},"mixIn"),clone:t(function(){return this.init.prototype.extend(this)},"clone")}}(),C=b.WordArray=E.extend({init:t(function(K,ee){K=this.words=K||[],ee!=s?this.sigBytes=ee:this.sigBytes=K.length*4},"init"),toString:t(function(K){return(K||D).stringify(this)},"toString"),concat:t(function(K){var ee=this.words,re=K.words,ie=this.sigBytes,_e=K.sigBytes;if(this.clamp(),ie%4)for(var Te=0;Te<_e;Te++){var Se=re[Te>>>2]>>>24-Te%4*8&255;ee[ie+Te>>>2]|=Se<<24-(ie+Te)%4*8}else for(var Ce=0;Ce<_e;Ce+=4)ee[ie+Ce>>>2]=re[Ce>>>2];return this.sigBytes+=_e,this},"concat"),clamp:t(function(){var K=this.words,ee=this.sigBytes;K[ee>>>2]&=4294967295<<32-ee%4*8,K.length=e.ceil(ee/4)},"clamp"),clone:t(function(){var K=E.clone.call(this);return K.words=this.words.slice(0),K},"clone"),random:t(function(K){for(var ee=[],re=0;re<K;re+=4)ee.push(d());return new C.init(ee,K)},"random")}),A=m.enc={},D=A.Hex={stringify:t(function(K){for(var ee=K.words,re=K.sigBytes,ie=[],_e=0;_e<re;_e++){var Te=ee[_e>>>2]>>>24-_e%4*8&255;ie.push((Te>>>4).toString(16)),ie.push((Te&15).toString(16))}return ie.join("")},"stringify"),parse:t(function(K){for(var ee=K.length,re=[],ie=0;ie<ee;ie+=2)re[ie>>>3]|=parseInt(K.substr(ie,2),16)<<24-ie%8*4;return new C.init(re,ee/2)},"parse")},N=A.Latin1={stringify:t(function(K){for(var ee=K.words,re=K.sigBytes,ie=[],_e=0;_e<re;_e++){var Te=ee[_e>>>2]>>>24-_e%4*8&255;ie.push(String.fromCharCode(Te))}return ie.join("")},"stringify"),parse:t(function(K){for(var ee=K.length,re=[],ie=0;ie<ee;ie++)re[ie>>>2]|=(K.charCodeAt(ie)&255)<<24-ie%4*8;return new C.init(re,ee)},"parse")},F=A.Utf8={stringify:t(function(K){try{return decodeURIComponent(escape(N.stringify(K)))}catch{throw new Error("Malformed UTF-8 data")}},"stringify"),parse:t(function(K){return N.parse(unescape(encodeURIComponent(K)))},"parse")},W=b.BufferedBlockAlgorithm=E.extend({reset:t(function(){this._data=new C.init,this._nDataBytes=0},"reset"),_append:t(function(K){typeof K=="string"&&(K=F.parse(K)),this._data.concat(K),this._nDataBytes+=K.sigBytes},"_append"),_process:t(function(K){var ee,re=this._data,ie=re.words,_e=re.sigBytes,Te=this.blockSize,Se=Te*4,Ce=_e/Se;K?Ce=e.ceil(Ce):Ce=e.max((Ce|0)-this._minBufferSize,0);var We=Ce*Te,Ge=e.min(We*4,_e);if(We){for(var Ke=0;Ke<We;Ke+=Te)this._doProcessBlock(ie,Ke);ee=ie.splice(0,We),re.sigBytes-=Ge}return new C.init(ee,Ge)},"_process"),clone:t(function(){var K=E.clone.call(this);return K._data=this._data.clone(),K},"clone"),_minBufferSize:0}),G=b.Hasher=W.extend({cfg:E.extend(),init:t(function(K){this.cfg=this.cfg.extend(K),this.reset()},"init"),reset:t(function(){W.reset.call(this),this._doReset()},"reset"),update:t(function(K){return this._append(K),this._process(),this},"update"),finalize:t(function(K){K&&this._append(K);var ee=this._doFinalize();return ee},"finalize"),blockSize:512/32,_createHelper:t(function(K){return function(ee,re){return new K.init(re).finalize(ee)}},"_createHelper"),_createHmacHelper:t(function(K){return function(ee,re){return new j.HMAC.init(K,re).finalize(ee)}},"_createHmacHelper")}),j=m.algo={};return m}(Math);return n})});var O2r=st((Int,M2r)=>{pe();ue();oe();ce();le();(function(n,e){typeof Int=="object"?M2r.exports=Int=e(k2r()):typeof define=="function"&&define.amd?define(["./core"],e):e(n.CryptoJS)})(Int,function(n){return function(e){var s=n,c=s.lib,d=c.WordArray,_=c.Hasher,m=s.algo,b=[];(function(){for(var F=0;F<64;F++)b[F]=e.abs(e.sin(F+1))*4294967296|0})();var E=m.MD5=_.extend({_doReset:t(function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878])},"_doReset"),_doProcessBlock:t(function(F,W){for(var G=0;G<16;G++){var j=W+G,K=F[j];F[j]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}var ee=this._hash.words,re=F[W+0],ie=F[W+1],_e=F[W+2],Te=F[W+3],Se=F[W+4],Ce=F[W+5],We=F[W+6],Ge=F[W+7],Ke=F[W+8],Ve=F[W+9],Be=F[W+10],J=F[W+11],i=F[W+12],R=F[W+13],ut=F[W+14],ae=F[W+15],xt=ee[0],Re=ee[1],B=ee[2],r=ee[3];xt=C(xt,Re,B,r,re,7,b[0]),r=C(r,xt,Re,B,ie,12,b[1]),B=C(B,r,xt,Re,_e,17,b[2]),Re=C(Re,B,r,xt,Te,22,b[3]),xt=C(xt,Re,B,r,Se,7,b[4]),r=C(r,xt,Re,B,Ce,12,b[5]),B=C(B,r,xt,Re,We,17,b[6]),Re=C(Re,B,r,xt,Ge,22,b[7]),xt=C(xt,Re,B,r,Ke,7,b[8]),r=C(r,xt,Re,B,Ve,12,b[9]),B=C(B,r,xt,Re,Be,17,b[10]),Re=C(Re,B,r,xt,J,22,b[11]),xt=C(xt,Re,B,r,i,7,b[12]),r=C(r,xt,Re,B,R,12,b[13]),B=C(B,r,xt,Re,ut,17,b[14]),Re=C(Re,B,r,xt,ae,22,b[15]),xt=A(xt,Re,B,r,ie,5,b[16]),r=A(r,xt,Re,B,We,9,b[17]),B=A(B,r,xt,Re,J,14,b[18]),Re=A(Re,B,r,xt,re,20,b[19]),xt=A(xt,Re,B,r,Ce,5,b[20]),r=A(r,xt,Re,B,Be,9,b[21]),B=A(B,r,xt,Re,ae,14,b[22]),Re=A(Re,B,r,xt,Se,20,b[23]),xt=A(xt,Re,B,r,Ve,5,b[24]),r=A(r,xt,Re,B,ut,9,b[25]),B=A(B,r,xt,Re,Te,14,b[26]),Re=A(Re,B,r,xt,Ke,20,b[27]),xt=A(xt,Re,B,r,R,5,b[28]),r=A(r,xt,Re,B,_e,9,b[29]),B=A(B,r,xt,Re,Ge,14,b[30]),Re=A(Re,B,r,xt,i,20,b[31]),xt=D(xt,Re,B,r,Ce,4,b[32]),r=D(r,xt,Re,B,Ke,11,b[33]),B=D(B,r,xt,Re,J,16,b[34]),Re=D(Re,B,r,xt,ut,23,b[35]),xt=D(xt,Re,B,r,ie,4,b[36]),r=D(r,xt,Re,B,Se,11,b[37]),B=D(B,r,xt,Re,Ge,16,b[38]),Re=D(Re,B,r,xt,Be,23,b[39]),xt=D(xt,Re,B,r,R,4,b[40]),r=D(r,xt,Re,B,re,11,b[41]),B=D(B,r,xt,Re,Te,16,b[42]),Re=D(Re,B,r,xt,We,23,b[43]),xt=D(xt,Re,B,r,Ve,4,b[44]),r=D(r,xt,Re,B,i,11,b[45]),B=D(B,r,xt,Re,ae,16,b[46]),Re=D(Re,B,r,xt,_e,23,b[47]),xt=N(xt,Re,B,r,re,6,b[48]),r=N(r,xt,Re,B,Ge,10,b[49]),B=N(B,r,xt,Re,ut,15,b[50]),Re=N(Re,B,r,xt,Ce,21,b[51]),xt=N(xt,Re,B,r,i,6,b[52]),r=N(r,xt,Re,B,Te,10,b[53]),B=N(B,r,xt,Re,Be,15,b[54]),Re=N(Re,B,r,xt,ie,21,b[55]),xt=N(xt,Re,B,r,Ke,6,b[56]),r=N(r,xt,Re,B,ae,10,b[57]),B=N(B,r,xt,Re,We,15,b[58]),Re=N(Re,B,r,xt,R,21,b[59]),xt=N(xt,Re,B,r,Se,6,b[60]),r=N(r,xt,Re,B,J,10,b[61]),B=N(B,r,xt,Re,_e,15,b[62]),Re=N(Re,B,r,xt,Ve,21,b[63]),ee[0]=ee[0]+xt|0,ee[1]=ee[1]+Re|0,ee[2]=ee[2]+B|0,ee[3]=ee[3]+r|0},"_doProcessBlock"),_doFinalize:t(function(){var F=this._data,W=F.words,G=this._nDataBytes*8,j=F.sigBytes*8;W[j>>>5]|=128<<24-j%32;var K=e.floor(G/4294967296),ee=G;W[(j+64>>>9<<4)+15]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W[(j+64>>>9<<4)+14]=(ee<<8|ee>>>24)&16711935|(ee<<24|ee>>>8)&4278255360,F.sigBytes=(W.length+1)*4,this._process();for(var re=this._hash,ie=re.words,_e=0;_e<4;_e++){var Te=ie[_e];ie[_e]=(Te<<8|Te>>>24)&16711935|(Te<<24|Te>>>8)&4278255360}return re},"_doFinalize"),clone:t(function(){var F=_.clone.call(this);return F._hash=this._hash.clone(),F},"clone")});function C(F,W,G,j,K,ee,re){var ie=F+(W&G|~W&j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(C,"FF");function A(F,W,G,j,K,ee,re){var ie=F+(W&j|G&~j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(A,"GG");function D(F,W,G,j,K,ee,re){var ie=F+(W^G^j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(D,"HH");function N(F,W,G,j,K,ee,re){var ie=F+(G^(W|~j))+K+re;return(ie<<ee|ie>>>32-ee)+W}t(N,"II"),s.MD5=_._createHelper(E),s.HmacMD5=_._createHmacHelper(E)}(Math),n.MD5})});var qAe=st(D7=>{"use strict";pe();ue();oe();ce();le();var kBa=D7&&D7.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),MBa=D7&&D7.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),OBa=D7&&D7.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&kBa(e,n,s);return MBa(e,n),e},FBa=D7&&D7.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(D7,"__esModule",{value:!0});D7.Project=void 0;var Ote=Lee(),VJ=$nt(),yd=Lc(),I_=OBa(fDe()),pjt=ujt(),F2r=Lee(),B2r=FBa(O2r()),V2r=vle(),BBa=[I_.ClaimsPlugin,I_.ApplicationMenuPlugin,I_.BusinessRulePlugin,I_.RolePlugin,I_.AclPlugin,I_.ClientScriptPlugin,I_.CrossScopePrivilegePlugin,I_.PropertyPlugin,I_.NowConfigPlugin,I_.PackageJsonPlugin,I_.ServerModulePlugin,I_.ViewPlugin,I_.UserPreferencePlugin,I_.ColumnPlugin,I_.TablePlugin,I_.ListPlugin,I_.UiPagePlugin,I_.UiActionPlugin,I_.ScriptIncludePlugin,I_.RestApiPlugin,I_.StaticContentPlugin,I_.ScriptActionPlugin,I_.UiPolicyPlugin,I_.TestPlugin,I_.NowAttachPlugin,I_.SLAPlugin,I_.EmailNotificationPlugin,I_.UxListMenuConfigPlugin,I_.WorkspacePlugin,I_.DashboardPlugin,I_.ApplicabilityPlugin,I_.VariableSetPlugin,I_.CatalogItemRecordProducerPlugin,I_.CatalogItemPlugin,I_.CatalogClientScriptPlugin,I_.CatalogUiPolicyPlugin,I_.SPWidgetPlugin,I_.SPWidgetDependencyPlugin,I_.SPAngularProviderPlugin,I_.WfaDataPillPlugin,I_.FlowDefinitionPlugin,I_.InlineScriptPlugin,I_.ApprovalRulesPlugin,I_.ActionDefinitionPlugin,I_.TriggerPlugin,I_.FlowDiagnosticsPlugin,I_.RecordPlugin,I_.NowIncludePlugin,I_.NowRefPlugin,I_.NowIdPlugin,I_.NowUnresolvedPlugin,I_.HtmlImportPlugin,I_.JsonPlugin,I_.ArrowFunctionPlugin,I_.DataPlugin,I_.CallExpressionPlugin,I_.BasicSyntaxPlugin,I_.ImportSetPlugin];function U2r(n){switch(yd.path.extname(n)){case".ts":return yd.ts.ScriptKind.TS;case".js":return yd.ts.ScriptKind.JS;case".json":return yd.ts.ScriptKind.JSON;default:return yd.ts.ScriptKind.Unknown}}t(U2r,"getScriptKindFromPath");function VBa(n,e){let s=yd.path.basename(n);return s===`sys_app_${e}.xml`||s===`sys_store_app_${e}.xml`}t(VBa,"isSysAppXml");var fjt=class n{static{t(this,"Project")}rootDir;files={};filesForDeletion=new Set;plugins;fileSystem;logger;compiler;config;package;keys;diagnostics;transformService;factory;parser;inspector;committer;targeter;context;telemetryClient;pluginUsageTracker=new yd.PluginUsageTracker;transformMode;constructor({fileSystem:e=(q2(),Sc(G2)),logger:s=(0,yd.createConsoleLogger)(),rootDir:c=Ye&&"cwd"in Ye?yd.path.normalize(Ye.cwd()):"/",sourceFilePaths:d=[],compilerOptions:_=yd.DEFAULT_COMPILER_OPTIONS,compiler:m=new yd.Compiler(e,{rootDir:c,compilerOptions:{...yd.DEFAULT_COMPILER_OPTIONS,..._},sourceFilePaths:d,typesDir:yd.path.join("@types","servicenow")}),plugins:b=BBa,config:E,packageJson:C=(0,Ote.createPackageJson)({rootDir:c,compiler:m,fileSystem:e}),keys:A,diagnostics:D=new VJ.Diagnostics,transform:N,factory:F,parser:W,inspector:G,committer:j,targeter:K,telemetryClient:ee,transformMode:re}={}){if(!yd.path.isAbsolute(c))throw new Error(`Supplied root directory '${c}' is not an absolute path`);this.rootDir=c,this.plugins=b instanceof yd.Plugins?b:new yd.Plugins(b),this.fileSystem=e,this.logger=s,this.compiler=m,this.config=E?yd.NowConfig.create(E):yd.NowConfig.load({rootDir:c,compiler:m,fileSystem:e,logger:s}),this.package=C,this.keys=A??new VJ.Keys(this),this.diagnostics=D,this.transformService=N??new VJ.MultiProjectTransform(this,this.pluginUsageTracker),this.factory=F??new VJ.Factory(this),this.inspector=G??new VJ.Inspector(this),this.committer=j??new VJ.Committer(this),this.targeter=K??new VJ.Targeter(this),this.parser=W??new VJ.Parser(this),this.context={project:this,fs:this.fileSystem,logger:this.logger,compiler:this.compiler,diagnostics:this.diagnostics,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys,transform:this.transformService,factory:this.factory,parser:this.parser,inspect:this.inspector.inspect.bind(this.inspector),commit:this.committer.commit.bind(this.committer)},this.telemetryClient=ee??yd.TelemetryFactory.create(),this.transformMode=re??"transform";let ie=yd.path.resolve(c,this.config.fluentDir),_e=yd.NowConfig.getFilePath(c),Te=(0,Ote.getPackageJsonFilePath)(c),Se=yd.path.resolve(c,this.config.metadataDir);yd.FileSystem.existsSync(this.fileSystem,Se)&&this.addDirectory(Se,!1);let Ce=yd.path.resolve(c,this.config.staticContentDir);if(yd.FileSystem.existsSync(this.fileSystem,Ce)&&this.addDirectory(Ce,!1),Ye&&"env"in Ye){let We=Ye.env.FLUENT_INJECT_PLUGINS;if(We){let{createRequire:Ge}=(kfe(),Sc(Lfe)),Ke=Ge(this.resolvePath("package.json"));for(let Ve of We.split(",").map(Be=>Be.trim())){if(!Ve)continue;let Be=[Ke(Ve)].flat();for(let{default:J}of Be)J&&typeof J=="object"&&!Array.isArray(J)&&J.constructor.name==="Plugin"?this.plugins.prepend(J):s.error(`Value from injected package "${Ve}" is not a plugin: ${J} (${typeof J})`)}}}this.registerFiles([this.keys.getSourceFile(),this.compiler.addSourceFileAtPathIfExists(_e)??this.compiler.createSourceFile(_e,JSON.stringify({scope:this.config.scope,scopeId:this.config.scopeId},null,4),{overwrite:!0,scriptKind:yd.ts.ScriptKind.JSON}),this.compiler.addSourceFileAtPathIfExists(Te)??this.compiler.createSourceFile(Te,JSON.stringify(C,null,4),{overwrite:!0,scriptKind:yd.ts.ScriptKind.JSON}),...this.compiler.addFluentSourceFilesFromDirectory(ie),...this.compiler.addSourceFilesFromDirectory(this.resolvePath(this.config.serverModulesDir),this.config.serverModulesIncludePatterns,this.config.serverModulesExcludePatterns)]),this.registerClaimsFile()}registerClaimsFile(){let e=this.compiler.addSourceFileAtPathIfExists(this.resolvePath(this.config.generatedDir,I_.CLAIMS_FILE));e&&((0,yd.validateClaimsFile)(e.getFullText()),this.registerFiles([e],!1))}registerFiles(e,s=djt()){e.forEach(c=>{let d=c instanceof yd.ts.SourceFile?c.getFilePath():c.path,_=this.files[d];_?_.reload(!1):this.files[d]=new pjt.ProjectFile(c,this)}),s&&this.compiler.resolveSourceFileDependencies()}async getDocsMetadata(){let e=this.plugins.getDocsMetadata(),s={},c=await I_.resolveModule("@servicenow/sdk/package.json",this.logger,this.fileSystem,this.rootDir);if(!c)return this.logger.warn("Could not find @servicenow/sdk installation, unable to resolve doc paths"),s;let d=yd.path.dirname(c);for(let[_,m]of Object.entries(e)){let b=await I_.resolveModule(m.docPath,this.logger,this.fileSystem,d);b?s[_]={docPath:b,tags:m.tags}:this.logger.warn(`Could not resolve doc path for ${_}: ${m.docPath}`)}return s}getContext(){return this.context}getTelemetryClient(){return this.telemetryClient}getPlugins(){return this.plugins}getFileSystem(){return this.fileSystem}getLogger(){return this.logger}getDiagnosticsService(){return this.diagnostics}getCompiler(){return this.compiler}getKeys(){return this.keys}getConfig(){return this.config}getPackage(){return this.package}getTransform(){return this.transformService}getFactory(){return this.factory}getFiles(){return Object.values(this.files)}async getEntryPoints(){let e=this.getContext(),s=[];for(let c of this.getFiles())(c.isInMetadataDir()&&!c.isInUiHtmlContentDir()||await this.plugins.isEntryPoint(c.getPath(),e))&&s.push(c);return s}getFileIfExists(e){let s=this.resolvePath(e);return this.files[s]}getFile(e){let s=this.getFileIfExists(e);if(s)return s;throw new Error(`No file found at path: ${this.resolvePath(e)}`)}findFile(e){return typeof e=="string"?Object.entries(this.files).find(([s])=>yd.path.basename(s)===e)?.[1]:Object.values(this.files).find(e)}reloadFile(e,s=!0){let c=this.resolvePath(e),d;return c in this.files?(d=this.getFile(e),d.reload(s)):d=this.addFile(c),d}reloadDirectory(e,s=!0){let c=this.resolvePath(e);this.checkDirectoryExists(c);let d=[],_=new Set;for(let m of Object.keys(this.files))this.resolvePath(m).startsWith(c)&&_.add(m);(0,Ote.traverseDirectory)(this.fileSystem,c,{visitor:(m=>{_.delete(m),d.push(this.reloadFile(m,s))}).bind(this)});for(let m of _)this.removeFile(m);return d}addFile(e,s){return this.addFiles(typeof e=="string"?[e]:[e],s),this.getFile(typeof e=="string"?e:e.path)}addFiles(e,{resolveDependencies:s=djt(),excludeFromCompiler:c=!1}={}){let _=e.reduce((m,b)=>{let{path:E,content:C}=typeof b=="string"?{path:b,content:void 0}:b,A=this.getFileIfExists(E);return A?C!==void 0&&A.setContent(C):m.push(b),m},[]).map(m=>{let{path:b,content:E}=typeof m=="string"?{path:m,content:void 0}:m,C=this.resolvePath(b),A=U2r(b),D;if(A===yd.ts.ScriptKind.Unknown||b.startsWith(yd.path.join(this.rootDir,this.config.staticContentDir))||c)if(E!==void 0)D={path:C,content:E};else if(yd.FileSystem.existsSync(this.fileSystem,C)){if(this.fileSystem.statSync(C).isDirectory())throw new Error(`Cannot add directory as file: ${C}`);D={path:C,content:this.fileSystem.readFileSync(C).toString("utf-8")}}else throw new Error(`No file found at path: ${C}`);else D=E===void 0?this.compiler.addSourceFileAtPath(C):this.compiler.createSourceFile(C,E,{overwrite:!0,scriptKind:U2r(b)});return C===(0,Ote.getPackageJsonFilePath)(this.rootDir)?j2r(this.package,(0,Ote.createPackageJson)({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem})):C===yd.NowConfig.getFilePath(this.rootDir)&&j2r(this.config,yd.NowConfig.load({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger})),D});return this.registerFiles(_,s),e.map(m=>this.getFile(typeof m=="string"?m:m.path))}checkDirectoryExists(e){if(!yd.FileSystem.existsSync(this.fileSystem,e))throw Error(`No directory found at path: ${e}`);if(!this.fileSystem.statSync(e).isDirectory())throw Error(`Expected directory but got file path: ${e}`)}addDirectory(e,s=djt()){let c=this.resolvePath(e);this.checkDirectoryExists(c);let d=[];return(0,Ote.traverseDirectory)(this.fileSystem,c,{visitor:(_=>{d.push(_)}).bind(this)}),this.addFiles(d,{resolveDependencies:s})}removeFile(e){let s=e instanceof pjt.ProjectFile?e:this.getFileIfExists(e);s&&(delete this.files[s.getPath()],s.remove())}async transform(e,{format:s=!0}={}){let c=Date.now();await this.getRecords();let d=Array.isArray(e)?e:[e],_=[],m=[];for(let Ce of d)if(typeof Ce=="string"){let We=this.resolvePath(Ce),Ge=[];this.fileSystem.statSync(We).isDirectory()?(0,Ote.traverseDirectory)(this.fileSystem,We,{extensions:[".xml"],visitor:t(Ke=>Ge.push(Ke),"visitor")}):Ge.push(We),_.push(...Ge.map(Ke=>({path:Ke,content:this.fileSystem.readFileSync(Ke).toString("utf-8")})))}else Ce instanceof yd.Shape?m.push(Ce):_.push({path:this.resolvePath(Ce.path),content:Ce.content});let b=new yd.Database,E=new yd.Database,C=Date.now();for(let Ce of await this.getEntryPoints())this.logger.debug(`Parsing records from existing file: ${Ce.getPath()}`),(Ce.isInMetadataDir()?E:b).insert(...await Ce.getRecords(!1));this.logger.debug(`Finished parsing existing records in ${Date.now()-C}ms`);let A=new n({compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger,rootDir:this.rootDir,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys}),D=new yd.Database,N=Date.now(),F=new Set;for(let Ce of _.map(We=>A.addFile(We))){let We=Ce.getPath();this.logger.debug(`Parsing records from incoming file: ${We}`);let Ge=this.isInMetadataDir(We),Ke,Ve,Be=await Ce.getRecords(!1),J=Be.query();if(Ce.isUpdateSetXml()){let i=[];for(let ut of J)if(E.resolve(ut.getId()))i.push(ut);else if(this.config.ignoreTransformTableList.includes(ut.getTable()))i.push(ut);else{let xt=await this.getAttachmentsForFields(Be,ut);D.insert(ut.setCreator(void 0,!0).merge(xt)),F.add(We)}(await(0,F2r.getOutput)(new yd.Database(i),this.context)).forEach(ut=>{this.handleMetadataCopy(new pjt.ProjectFile(ut,this))})}else{for(let i of J){let R=E.resolve(i.getId());if(R){Ke??=R;break}this.config.ignoreTransformTableList.includes(i.getTable())&&(Ve=i)}if(!Ge&&Ke)this.logger.debug(`Updating incoming ${Ke.getTable()} record with ID ${Ke.getId().getValue()} in metadata directory as XML`),this.handleMetadataCopy(Ce,Ke.getOriginalFilePath());else if(Ve)this.logger.debug(`Incoming ${Ve.getTable()} record with ID ${Ve.getId().getValue()} is in "ignoreTransformTableList" configuration and moved to metadata directory as XML`),this.handleMetadataCopy(Ce);else if(!Ge&&J.length===0)this.logger.info(`No records parsed from ${Ce.getName()}, moving to metadata directory`),this.handleMetadataCopy(Ce);else for(let i of Be){let R=await this.getAttachmentsForFields(Be,i);D.insert(i.setCreator(void 0,!0).merge(R)),F.add(We)}}}let W=b.compare(D),G=new yd.DiffDatabase(b.query()),j=new yd.Database;for(let Ce of["explicit","catch-all"])for(let We of this.plugins.toArray()){let Ge=await We.computeDiff({mode:Ce,existing:b,incoming:D,context:this.getContext(),visitedRecords:j,mergedDatabase:W});G.insert(...Ge)}await this.getKeys().commit(),this.logger.debug(`Finished parsing incoming records in ${Date.now()-N}ms`);let K={};for(let Ce of this.getFiles())K[Ce.getPath()]=(0,B2r.default)(Ce.getContent()).toString();let ee=this.getContext(),re=new yd.Database,ie=Date.now();for(let Ce of[{mode:"explicit",creatorOnly:!0},{mode:"catch-all",creatorOnly:!0},{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let We of this.plugins.toArray()){let Ge=await We.recordsToShapes({...Ce,database:G,context:ee,handledRecords:re,changedOnly:!0});Ge.success==="partial"&&Ge.unhandledRecords.length>0&&G.insert(...Ge.unhandledRecords),(Ge.success===!0||Ge.success==="partial")&&m.push(...Ge.value)}this.logger.debug(`Finished transforming records into shapes in ${Date.now()-ie}ms`);let _e=[];this.isTypesGenerationMode()?_e.push(...m.map(Ce=>{if(Ce.is(yd.CallExpressionShape)){let We=Ce.getExportName();return We?new yd.VariableStatementShape({source:Ce.getSource(),isExported:!0,variableName:We,initializer:Ce}):Ce}return Ce})):_e.push(...m);let Te=Date.now();for(let Ce of _e.sort(We=>We.isUndefined()?-1:0)){let We=await this.targeter.getTarget(Ce);We.success&&(this.logger.debug(`Committing shape: ${Ce.getDescription()}`),await ee.commit(Ce,We.value))}this.logger.debug(`Finished committing shapes in ${Date.now()-Te}ms`);let Se=[];for(let Ce of this.getFiles()){if(!K[Ce.getPath()]){Se.push(Ce);continue}let We=K[Ce.getPath()],Ge=(0,B2r.default)(Ce.getContent()).toString();We!==Ge&&Se.push(Ce)}for(let Ce of Se)Ce.fix(),s&&await Ce.format(),Ce.reload(!1);return this.logger.debug(`Transform completed in ${Date.now()-c}ms`),{changedFiles:Se,handledPaths:[...F]}}registerExplicitId(e,s,c){return this.keys.registerExplicitId(e,s,c)}registerCoalesceId(e,s,c){return this.keys.registerCoalesceId(e,s,c)}async getOutput(e){this.pluginUsageTracker.clearPluginToRecordUsage();let s=await this.getOutput0(e),c=s.find(d=>VBa(d.path,this.config.scopeId));if(c){let d=yd.NowConfig.moduleResolutionPath(this.config,this.package,!1,"package.json");UBa(c,d,this.package.version,this.config)&&this.logger.warn(`Fixed package and version in sys_app output file: ${this.relativePath(c.path)}
49252
- This is likely due to a static sys_app XML file in the metadata directory. It is recommended to remove this file and allow the build system to generate one.`)}return this.telemetryClient.sendEvent(this.pluginUsageTracker.getRecordCountPerPlugin().map(d=>({name:"build.plugin",appInfo:{scopeId:this.config.scopeId},data:d}))),s}async getOutput0(e){this.pluginUsageTracker.clearPluginToRecordUsage();let s=await this.getRecords(e),c=new yd.Database(s.query().filter(m=>!this.isInMetadataDir(m.getOriginalFilePath()))),d=Object.fromEntries((await(0,F2r.getOutput)(c,this.getContext())).map(m=>[m.path,{source:m.source,content:m.content}])),_=this.copyMetadataRecords(d,s,e);return Object.entries(_).map(([m,b])=>({path:m,...b}))}copyMetadataRecords(e,s,c){if(!c){for(let m of this.getFiles().filter(b=>b.isInMetadataDir())){let b=this.config.type==="configuration"?m.getName():yd.path.relative(this.getMetadataDir(),m.getPath());e[this.resolvePath(this.config.appOutputDir,b)]={content:m.getContent()}}return e}return new yd.Database(s.query().filter(m=>this.isInMetadataDir(m.getOriginalFilePath()))).query().filter(m=>c.has(m.getId().getValue())).forEach(m=>{let b=yd.path.relative(this.getMetadataDir(),m.getOriginalFilePath());e[this.resolvePath(this.config.appOutputDir,b)]={content:m.getSource().content}}),e}async getRecords(e){this.pluginUsageTracker.clearPluginToRecordUsage();let s=[],c=this.config.type==="package"?(await this.getEntryPoints()).sort((j,K)=>(j.isInMetadataDir()?0:j.isInServerModulesDir()?1:2)-(K.isInMetadataDir()?0:K.isInServerModulesDir()?1:2)):(await this.getEntryPoints()).filter(j=>!j.isInServerModulesDir()).sort((j,K)=>(j.isInMetadataDir()?0:1)-(K.isInMetadataDir()?0:1));for(let j of c)for(let K of(await j.getRecordsNoDedupe(!1,e)).reverse())s.push(K);let d=c.filter(j=>yd.path.basename(j.getPath()).endsWith(yd.NOW_FILE_EXTENSION));for(let j of d)this.compiler.getDiagnosticsForFluentFile(j.getPath()).forEach(K=>{this.diagnostics.add(K)});this.diagnostics.getWarnings().forEach(j=>this.logger.warn(j.getFormattedText()));let m=this.diagnostics.getErrors();if(m.length>0)throw m.forEach(j=>this.logger.error(j.getFormattedText())),new Error(`Found ${m.length} diagnostic error(s) while building the project.`);let b=e||this.config.type==="configuration"?new yd.Database:this.generateRecordsFromDeletedKeys(),E=new WeakSet(b.query()),C=t((j,K)=>this.isInMetadataDir(j.getOriginalFilePath())&&j.isDeleted()&&E.has(K)||j.getOriginalSource()===K.getOriginalSource(),"isSelfConflicting"),A=t((j,K)=>this.isInMetadataDir(j.getOriginalFilePath())&&this.isInMetadataDir(K.getOriginalFilePath()),"isMetadataDirOnlyConflict"),D=t((j,K)=>j.getTable()==="sys_module"&&K.getTable()==="sys_module","isModuleConflict"),N={};for(let j of s.reverse()){let K=b.resolve(j.getId());K&&!C(j,K)&&!A(j,K)&&!D(j,K)&&(N[`${K.getTable()}.${K.getId().getValue()}`]??=[K]).push(j),b.insert(j)}for(let[j,K]of Object.entries(N))this.logger.warn(`Record "${j}" is defined ${K.length} times in the project:
49251
+ `)),e.getCompiler().getLanguageService().getCombinedCodeFix(n,"unusedIdentifier_deleteImports").applyChanges()}t(LBa,"deleteUnusedCode")});var k2r=st((Tnt,L2r)=>{pe();ue();oe();ce();le();(function(n,e){typeof Tnt=="object"?L2r.exports=Tnt=e():typeof define=="function"&&define.amd?define([],e):n.CryptoJS=e()})(Tnt,function(){var n=n||function(e,s){var c;if(typeof window<"u"&&window.crypto&&(c=window.crypto),typeof self<"u"&&self.crypto&&(c=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window<"u"&&window.msCrypto&&(c=window.msCrypto),!c&&typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof EL=="function")try{c=Gbt()}catch{}var d=t(function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),_=Object.create||function(){function K(){}return t(K,"F"),function(ee){var re;return K.prototype=ee,re=new K,K.prototype=null,re}}(),m={},b=m.lib={},E=b.Base=function(){return{extend:t(function(K){var ee=_(this);return K&&ee.mixIn(K),(!ee.hasOwnProperty("init")||this.init===ee.init)&&(ee.init=function(){ee.$super.init.apply(this,arguments)}),ee.init.prototype=ee,ee.$super=this,ee},"extend"),create:t(function(){var K=this.extend();return K.init.apply(K,arguments),K},"create"),init:t(function(){},"init"),mixIn:t(function(K){for(var ee in K)K.hasOwnProperty(ee)&&(this[ee]=K[ee]);K.hasOwnProperty("toString")&&(this.toString=K.toString)},"mixIn"),clone:t(function(){return this.init.prototype.extend(this)},"clone")}}(),C=b.WordArray=E.extend({init:t(function(K,ee){K=this.words=K||[],ee!=s?this.sigBytes=ee:this.sigBytes=K.length*4},"init"),toString:t(function(K){return(K||D).stringify(this)},"toString"),concat:t(function(K){var ee=this.words,re=K.words,ie=this.sigBytes,_e=K.sigBytes;if(this.clamp(),ie%4)for(var Te=0;Te<_e;Te++){var Se=re[Te>>>2]>>>24-Te%4*8&255;ee[ie+Te>>>2]|=Se<<24-(ie+Te)%4*8}else for(var Ce=0;Ce<_e;Ce+=4)ee[ie+Ce>>>2]=re[Ce>>>2];return this.sigBytes+=_e,this},"concat"),clamp:t(function(){var K=this.words,ee=this.sigBytes;K[ee>>>2]&=4294967295<<32-ee%4*8,K.length=e.ceil(ee/4)},"clamp"),clone:t(function(){var K=E.clone.call(this);return K.words=this.words.slice(0),K},"clone"),random:t(function(K){for(var ee=[],re=0;re<K;re+=4)ee.push(d());return new C.init(ee,K)},"random")}),A=m.enc={},D=A.Hex={stringify:t(function(K){for(var ee=K.words,re=K.sigBytes,ie=[],_e=0;_e<re;_e++){var Te=ee[_e>>>2]>>>24-_e%4*8&255;ie.push((Te>>>4).toString(16)),ie.push((Te&15).toString(16))}return ie.join("")},"stringify"),parse:t(function(K){for(var ee=K.length,re=[],ie=0;ie<ee;ie+=2)re[ie>>>3]|=parseInt(K.substr(ie,2),16)<<24-ie%8*4;return new C.init(re,ee/2)},"parse")},N=A.Latin1={stringify:t(function(K){for(var ee=K.words,re=K.sigBytes,ie=[],_e=0;_e<re;_e++){var Te=ee[_e>>>2]>>>24-_e%4*8&255;ie.push(String.fromCharCode(Te))}return ie.join("")},"stringify"),parse:t(function(K){for(var ee=K.length,re=[],ie=0;ie<ee;ie++)re[ie>>>2]|=(K.charCodeAt(ie)&255)<<24-ie%4*8;return new C.init(re,ee)},"parse")},F=A.Utf8={stringify:t(function(K){try{return decodeURIComponent(escape(N.stringify(K)))}catch{throw new Error("Malformed UTF-8 data")}},"stringify"),parse:t(function(K){return N.parse(unescape(encodeURIComponent(K)))},"parse")},W=b.BufferedBlockAlgorithm=E.extend({reset:t(function(){this._data=new C.init,this._nDataBytes=0},"reset"),_append:t(function(K){typeof K=="string"&&(K=F.parse(K)),this._data.concat(K),this._nDataBytes+=K.sigBytes},"_append"),_process:t(function(K){var ee,re=this._data,ie=re.words,_e=re.sigBytes,Te=this.blockSize,Se=Te*4,Ce=_e/Se;K?Ce=e.ceil(Ce):Ce=e.max((Ce|0)-this._minBufferSize,0);var We=Ce*Te,Ge=e.min(We*4,_e);if(We){for(var Ke=0;Ke<We;Ke+=Te)this._doProcessBlock(ie,Ke);ee=ie.splice(0,We),re.sigBytes-=Ge}return new C.init(ee,Ge)},"_process"),clone:t(function(){var K=E.clone.call(this);return K._data=this._data.clone(),K},"clone"),_minBufferSize:0}),G=b.Hasher=W.extend({cfg:E.extend(),init:t(function(K){this.cfg=this.cfg.extend(K),this.reset()},"init"),reset:t(function(){W.reset.call(this),this._doReset()},"reset"),update:t(function(K){return this._append(K),this._process(),this},"update"),finalize:t(function(K){K&&this._append(K);var ee=this._doFinalize();return ee},"finalize"),blockSize:512/32,_createHelper:t(function(K){return function(ee,re){return new K.init(re).finalize(ee)}},"_createHelper"),_createHmacHelper:t(function(K){return function(ee,re){return new j.HMAC.init(K,re).finalize(ee)}},"_createHmacHelper")}),j=m.algo={};return m}(Math);return n})});var O2r=st((Int,M2r)=>{pe();ue();oe();ce();le();(function(n,e){typeof Int=="object"?M2r.exports=Int=e(k2r()):typeof define=="function"&&define.amd?define(["./core"],e):e(n.CryptoJS)})(Int,function(n){return function(e){var s=n,c=s.lib,d=c.WordArray,_=c.Hasher,m=s.algo,b=[];(function(){for(var F=0;F<64;F++)b[F]=e.abs(e.sin(F+1))*4294967296|0})();var E=m.MD5=_.extend({_doReset:t(function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878])},"_doReset"),_doProcessBlock:t(function(F,W){for(var G=0;G<16;G++){var j=W+G,K=F[j];F[j]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}var ee=this._hash.words,re=F[W+0],ie=F[W+1],_e=F[W+2],Te=F[W+3],Se=F[W+4],Ce=F[W+5],We=F[W+6],Ge=F[W+7],Ke=F[W+8],Ve=F[W+9],Be=F[W+10],J=F[W+11],i=F[W+12],R=F[W+13],ut=F[W+14],ae=F[W+15],xt=ee[0],Re=ee[1],B=ee[2],r=ee[3];xt=C(xt,Re,B,r,re,7,b[0]),r=C(r,xt,Re,B,ie,12,b[1]),B=C(B,r,xt,Re,_e,17,b[2]),Re=C(Re,B,r,xt,Te,22,b[3]),xt=C(xt,Re,B,r,Se,7,b[4]),r=C(r,xt,Re,B,Ce,12,b[5]),B=C(B,r,xt,Re,We,17,b[6]),Re=C(Re,B,r,xt,Ge,22,b[7]),xt=C(xt,Re,B,r,Ke,7,b[8]),r=C(r,xt,Re,B,Ve,12,b[9]),B=C(B,r,xt,Re,Be,17,b[10]),Re=C(Re,B,r,xt,J,22,b[11]),xt=C(xt,Re,B,r,i,7,b[12]),r=C(r,xt,Re,B,R,12,b[13]),B=C(B,r,xt,Re,ut,17,b[14]),Re=C(Re,B,r,xt,ae,22,b[15]),xt=A(xt,Re,B,r,ie,5,b[16]),r=A(r,xt,Re,B,We,9,b[17]),B=A(B,r,xt,Re,J,14,b[18]),Re=A(Re,B,r,xt,re,20,b[19]),xt=A(xt,Re,B,r,Ce,5,b[20]),r=A(r,xt,Re,B,Be,9,b[21]),B=A(B,r,xt,Re,ae,14,b[22]),Re=A(Re,B,r,xt,Se,20,b[23]),xt=A(xt,Re,B,r,Ve,5,b[24]),r=A(r,xt,Re,B,ut,9,b[25]),B=A(B,r,xt,Re,Te,14,b[26]),Re=A(Re,B,r,xt,Ke,20,b[27]),xt=A(xt,Re,B,r,R,5,b[28]),r=A(r,xt,Re,B,_e,9,b[29]),B=A(B,r,xt,Re,Ge,14,b[30]),Re=A(Re,B,r,xt,i,20,b[31]),xt=D(xt,Re,B,r,Ce,4,b[32]),r=D(r,xt,Re,B,Ke,11,b[33]),B=D(B,r,xt,Re,J,16,b[34]),Re=D(Re,B,r,xt,ut,23,b[35]),xt=D(xt,Re,B,r,ie,4,b[36]),r=D(r,xt,Re,B,Se,11,b[37]),B=D(B,r,xt,Re,Ge,16,b[38]),Re=D(Re,B,r,xt,Be,23,b[39]),xt=D(xt,Re,B,r,R,4,b[40]),r=D(r,xt,Re,B,re,11,b[41]),B=D(B,r,xt,Re,Te,16,b[42]),Re=D(Re,B,r,xt,We,23,b[43]),xt=D(xt,Re,B,r,Ve,4,b[44]),r=D(r,xt,Re,B,i,11,b[45]),B=D(B,r,xt,Re,ae,16,b[46]),Re=D(Re,B,r,xt,_e,23,b[47]),xt=N(xt,Re,B,r,re,6,b[48]),r=N(r,xt,Re,B,Ge,10,b[49]),B=N(B,r,xt,Re,ut,15,b[50]),Re=N(Re,B,r,xt,Ce,21,b[51]),xt=N(xt,Re,B,r,i,6,b[52]),r=N(r,xt,Re,B,Te,10,b[53]),B=N(B,r,xt,Re,Be,15,b[54]),Re=N(Re,B,r,xt,ie,21,b[55]),xt=N(xt,Re,B,r,Ke,6,b[56]),r=N(r,xt,Re,B,ae,10,b[57]),B=N(B,r,xt,Re,We,15,b[58]),Re=N(Re,B,r,xt,R,21,b[59]),xt=N(xt,Re,B,r,Se,6,b[60]),r=N(r,xt,Re,B,J,10,b[61]),B=N(B,r,xt,Re,_e,15,b[62]),Re=N(Re,B,r,xt,Ve,21,b[63]),ee[0]=ee[0]+xt|0,ee[1]=ee[1]+Re|0,ee[2]=ee[2]+B|0,ee[3]=ee[3]+r|0},"_doProcessBlock"),_doFinalize:t(function(){var F=this._data,W=F.words,G=this._nDataBytes*8,j=F.sigBytes*8;W[j>>>5]|=128<<24-j%32;var K=e.floor(G/4294967296),ee=G;W[(j+64>>>9<<4)+15]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W[(j+64>>>9<<4)+14]=(ee<<8|ee>>>24)&16711935|(ee<<24|ee>>>8)&4278255360,F.sigBytes=(W.length+1)*4,this._process();for(var re=this._hash,ie=re.words,_e=0;_e<4;_e++){var Te=ie[_e];ie[_e]=(Te<<8|Te>>>24)&16711935|(Te<<24|Te>>>8)&4278255360}return re},"_doFinalize"),clone:t(function(){var F=_.clone.call(this);return F._hash=this._hash.clone(),F},"clone")});function C(F,W,G,j,K,ee,re){var ie=F+(W&G|~W&j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(C,"FF");function A(F,W,G,j,K,ee,re){var ie=F+(W&j|G&~j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(A,"GG");function D(F,W,G,j,K,ee,re){var ie=F+(W^G^j)+K+re;return(ie<<ee|ie>>>32-ee)+W}t(D,"HH");function N(F,W,G,j,K,ee,re){var ie=F+(G^(W|~j))+K+re;return(ie<<ee|ie>>>32-ee)+W}t(N,"II"),s.MD5=_._createHelper(E),s.HmacMD5=_._createHmacHelper(E)}(Math),n.MD5})});var qAe=st(D7=>{"use strict";pe();ue();oe();ce();le();var kBa=D7&&D7.__createBinding||(Object.create?function(n,e,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(e,s);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:t(function(){return e[s]},"get")}),Object.defineProperty(n,c,d)}:function(n,e,s,c){c===void 0&&(c=s),n[c]=e[s]}),MBa=D7&&D7.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),OBa=D7&&D7.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&kBa(e,n,s);return MBa(e,n),e},FBa=D7&&D7.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(D7,"__esModule",{value:!0});D7.Project=void 0;var Ote=Lee(),VJ=$nt(),yd=Lc(),I_=OBa(fDe()),pjt=ujt(),F2r=Lee(),B2r=FBa(O2r()),V2r=vle(),BBa=[I_.ClaimsPlugin,I_.ApplicationMenuPlugin,I_.BusinessRulePlugin,I_.RolePlugin,I_.AclPlugin,I_.ClientScriptPlugin,I_.CrossScopePrivilegePlugin,I_.PropertyPlugin,I_.NowConfigPlugin,I_.PackageJsonPlugin,I_.ServerModulePlugin,I_.ViewPlugin,I_.UserPreferencePlugin,I_.ColumnPlugin,I_.TablePlugin,I_.ListPlugin,I_.UiPagePlugin,I_.UiActionPlugin,I_.ScriptIncludePlugin,I_.RestApiPlugin,I_.StaticContentPlugin,I_.ScriptActionPlugin,I_.UiPolicyPlugin,I_.TestPlugin,I_.NowAttachPlugin,I_.SLAPlugin,I_.EmailNotificationPlugin,I_.UxListMenuConfigPlugin,I_.WorkspacePlugin,I_.DashboardPlugin,I_.ApplicabilityPlugin,I_.VariableSetPlugin,I_.CatalogItemRecordProducerPlugin,I_.CatalogItemPlugin,I_.CatalogClientScriptPlugin,I_.CatalogUiPolicyPlugin,I_.SPWidgetPlugin,I_.SPWidgetDependencyPlugin,I_.SPAngularProviderPlugin,I_.WfaDataPillPlugin,I_.FlowDefinitionPlugin,I_.InlineScriptPlugin,I_.ApprovalRulesPlugin,I_.ActionDefinitionPlugin,I_.TriggerPlugin,I_.FlowDiagnosticsPlugin,I_.RecordPlugin,I_.NowIncludePlugin,I_.NowRefPlugin,I_.NowIdPlugin,I_.NowUnresolvedPlugin,I_.HtmlImportPlugin,I_.JsonPlugin,I_.ArrowFunctionPlugin,I_.DataPlugin,I_.CallExpressionPlugin,I_.BasicSyntaxPlugin,I_.ImportSetPlugin];function U2r(n){switch(yd.path.extname(n)){case".ts":return yd.ts.ScriptKind.TS;case".js":return yd.ts.ScriptKind.JS;case".json":return yd.ts.ScriptKind.JSON;default:return yd.ts.ScriptKind.Unknown}}t(U2r,"getScriptKindFromPath");function VBa(n,e){let s=yd.path.basename(n);return s===`sys_app_${e}.xml`||s===`sys_store_app_${e}.xml`}t(VBa,"isSysAppXml");var fjt=class n{static{t(this,"Project")}rootDir;files={};filesForDeletion=new Set;plugins;fileSystem;logger;compiler;config;package;keys;diagnostics;transformService;factory;parser;inspector;committer;targeter;context;telemetryClient;pluginUsageTracker=new yd.PluginUsageTracker;transformMode;constructor({fileSystem:e=(q2(),Sc(G2)),logger:s=(0,yd.createConsoleLogger)(),rootDir:c=Ye&&"cwd"in Ye?yd.path.normalize(Ye.cwd()):"/",sourceFilePaths:d=[],compilerOptions:_=yd.DEFAULT_COMPILER_OPTIONS,compiler:m=new yd.Compiler(e,{rootDir:c,compilerOptions:{...yd.DEFAULT_COMPILER_OPTIONS,..._},sourceFilePaths:d,typesDir:yd.path.join("@types","servicenow")}),plugins:b=BBa,config:E,packageJson:C=(0,Ote.createPackageJson)({rootDir:c,compiler:m,fileSystem:e}),keys:A,diagnostics:D=new VJ.Diagnostics,transform:N,factory:F,parser:W,inspector:G,committer:j,targeter:K,telemetryClient:ee,transformMode:re}={}){if(!yd.path.isAbsolute(c))throw new Error(`Supplied root directory '${c}' is not an absolute path`);this.rootDir=c,this.plugins=b instanceof yd.Plugins?b:new yd.Plugins(b),this.fileSystem=e,this.logger=s,this.compiler=m,this.config=E?yd.NowConfig.create(E):yd.NowConfig.load({rootDir:c,compiler:m,fileSystem:e,logger:s}),this.package=C,this.keys=A??new VJ.Keys(this),this.diagnostics=D,this.transformService=N??new VJ.MultiProjectTransform(this,this.pluginUsageTracker),this.factory=F??new VJ.Factory(this),this.inspector=G??new VJ.Inspector(this),this.committer=j??new VJ.Committer(this),this.targeter=K??new VJ.Targeter(this),this.parser=W??new VJ.Parser(this),this.context={project:this,fs:this.fileSystem,logger:this.logger,compiler:this.compiler,diagnostics:this.diagnostics,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys,transform:this.transformService,factory:this.factory,parser:this.parser,inspect:this.inspector.inspect.bind(this.inspector),commit:this.committer.commit.bind(this.committer)},this.telemetryClient=ee??yd.TelemetryFactory.create(),this.transformMode=re??"transform";let ie=yd.path.resolve(c,this.config.fluentDir),_e=yd.NowConfig.getFilePath(c),Te=(0,Ote.getPackageJsonFilePath)(c),Se=yd.path.resolve(c,this.config.metadataDir);yd.FileSystem.existsSync(this.fileSystem,Se)&&this.addDirectory(Se,!1);let Ce=yd.path.resolve(c,this.config.staticContentDir);if(yd.FileSystem.existsSync(this.fileSystem,Ce)&&this.addDirectory(Ce,!1),Ye&&"env"in Ye){let We=Ye.env.FLUENT_INJECT_PLUGINS;if(We){let{createRequire:Ge}=(kfe(),Sc(Lfe)),Ke=Ge(this.resolvePath("package.json"));for(let Ve of We.split(",").map(Be=>Be.trim())){if(!Ve)continue;let Be=[Ke(Ve)].flat();for(let{default:J}of Be)J&&typeof J=="object"&&!Array.isArray(J)&&J.constructor.name==="Plugin"?this.plugins.prepend(J):s.error(`Value from injected package "${Ve}" is not a plugin: ${J} (${typeof J})`)}}}this.registerFiles([this.keys.getSourceFile(),this.compiler.addSourceFileAtPathIfExists(_e)??this.compiler.createSourceFile(_e,JSON.stringify({scope:this.config.scope,scopeId:this.config.scopeId},null,4),{overwrite:!0,scriptKind:yd.ts.ScriptKind.JSON}),this.compiler.addSourceFileAtPathIfExists(Te)??this.compiler.createSourceFile(Te,JSON.stringify(C,null,4),{overwrite:!0,scriptKind:yd.ts.ScriptKind.JSON}),...this.compiler.addFluentSourceFilesFromDirectory(ie),...this.compiler.addSourceFilesFromDirectory(this.resolvePath(this.config.serverModulesDir),this.config.serverModulesIncludePatterns,this.config.serverModulesExcludePatterns)]),this.registerClaimsFile()}registerClaimsFile(){let e=this.compiler.addSourceFileAtPathIfExists(this.resolvePath(this.config.generatedDir,I_.CLAIMS_FILE));e&&((0,yd.validateClaimsFile)(e.getFullText()),this.registerFiles([e],!1))}registerFiles(e,s=djt()){e.forEach(c=>{let d=c instanceof yd.ts.SourceFile?c.getFilePath():c.path,_=this.files[d];_?_.reload(!1):this.files[d]=new pjt.ProjectFile(c,this)}),s&&this.compiler.resolveSourceFileDependencies()}async getDocsMetadata(){let e=this.plugins.getDocsMetadata(),s={},c=await I_.resolveModule("@servicenow/sdk/package.json",this.logger,this.fileSystem,this.rootDir);if(!c)return this.logger.warn("Could not find @servicenow/sdk installation, unable to resolve doc paths"),s;let d=yd.path.dirname(c);for(let[_,m]of Object.entries(e)){let b=await I_.resolveModule(m.docPath,this.logger,this.fileSystem,d);b?s[_]={docPath:b,tags:m.tags}:this.logger.warn(`Could not resolve doc path for ${_}: ${m.docPath}`)}return s}getContext(){return this.context}getTelemetryClient(){return this.telemetryClient}getPlugins(){return this.plugins}getFileSystem(){return this.fileSystem}getLogger(){return this.logger}getDiagnosticsService(){return this.diagnostics}getCompiler(){return this.compiler}getKeys(){return this.keys}getConfig(){return this.config}getPackage(){return this.package}getTransform(){return this.transformService}getFactory(){return this.factory}getFiles(){return Object.values(this.files)}async getEntryPoints(){let e=this.getContext(),s=[];for(let c of this.getFiles())(c.isInMetadataDir()&&!c.isInUiHtmlContentDir()||await this.plugins.isEntryPoint(c.getPath(),e))&&s.push(c);return s}getFileIfExists(e){let s=this.resolvePath(e);return this.files[s]}getFile(e){let s=this.getFileIfExists(e);if(s)return s;throw new Error(`No file found at path: ${this.resolvePath(e)}`)}findFile(e){return typeof e=="string"?Object.entries(this.files).find(([s])=>yd.path.basename(s)===e)?.[1]:Object.values(this.files).find(e)}reloadFile(e,s=!0){let c=this.resolvePath(e),d;return c in this.files?(d=this.getFile(e),d.reload(s)):d=this.addFile(c),d}reloadDirectory(e,s=!0){let c=this.resolvePath(e);this.checkDirectoryExists(c);let d=[],_=new Set;for(let m of Object.keys(this.files))this.resolvePath(m).startsWith(c)&&_.add(m);(0,Ote.traverseDirectory)(this.fileSystem,c,{visitor:(m=>{_.delete(m),d.push(this.reloadFile(m,s))}).bind(this)});for(let m of _)this.removeFile(m);return d}addFile(e,s){return this.addFiles(typeof e=="string"?[e]:[e],s),this.getFile(typeof e=="string"?e:e.path)}addFiles(e,{resolveDependencies:s=djt(),excludeFromCompiler:c=!1}={}){let _=e.reduce((m,b)=>{let{path:E,content:C}=typeof b=="string"?{path:b,content:void 0}:b,A=this.getFileIfExists(E);return A?C!==void 0&&A.setContent(C):m.push(b),m},[]).map(m=>{let{path:b,content:E}=typeof m=="string"?{path:m,content:void 0}:m,C=this.resolvePath(b),A=U2r(b),D;if(A===yd.ts.ScriptKind.Unknown||b.startsWith(yd.path.join(this.rootDir,this.config.staticContentDir))||c)if(E!==void 0)D={path:C,content:E};else if(yd.FileSystem.existsSync(this.fileSystem,C)){if(this.fileSystem.statSync(C).isDirectory())throw new Error(`Cannot add directory as file: ${C}`);D={path:C,content:this.fileSystem.readFileSync(C).toString("utf-8")}}else throw new Error(`No file found at path: ${C}`);else D=E===void 0?this.compiler.addSourceFileAtPath(C):this.compiler.createSourceFile(C,E,{overwrite:!0,scriptKind:U2r(b)});return C===(0,Ote.getPackageJsonFilePath)(this.rootDir)?j2r(this.package,(0,Ote.createPackageJson)({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem})):C===yd.NowConfig.getFilePath(this.rootDir)&&j2r(this.config,yd.NowConfig.load({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger})),D});return this.registerFiles(_,s),e.map(m=>this.getFile(typeof m=="string"?m:m.path))}checkDirectoryExists(e){if(!yd.FileSystem.existsSync(this.fileSystem,e))throw Error(`No directory found at path: ${e}`);if(!this.fileSystem.statSync(e).isDirectory())throw Error(`Expected directory but got file path: ${e}`)}addDirectory(e,s=djt()){let c=this.resolvePath(e);this.checkDirectoryExists(c);let d=[];return(0,Ote.traverseDirectory)(this.fileSystem,c,{visitor:(_=>{d.push(_)}).bind(this)}),this.addFiles(d,{resolveDependencies:s})}removeFile(e){let s=e instanceof pjt.ProjectFile?e:this.getFileIfExists(e);s&&(delete this.files[s.getPath()],s.remove())}async transform(e,{format:s=!0}={}){let c=Date.now();await this.getRecords();let d=Array.isArray(e)?e:[e],_=[],m=[];for(let Ce of d)if(typeof Ce=="string"){let We=this.resolvePath(Ce),Ge=[];this.fileSystem.statSync(We).isDirectory()?(0,Ote.traverseDirectory)(this.fileSystem,We,{extensions:[".xml"],visitor:t(Ke=>Ge.push(Ke),"visitor")}):Ge.push(We),_.push(...Ge.map(Ke=>({path:Ke,content:this.fileSystem.readFileSync(Ke).toString("utf-8")})))}else Ce instanceof yd.Shape?m.push(Ce):_.push({path:this.resolvePath(Ce.path),content:Ce.content});let b=new yd.Database,E=new yd.Database,C=Date.now();for(let Ce of await this.getEntryPoints())this.logger.debug(`Parsing records from existing file: ${Ce.getPath()}`),(Ce.isInMetadataDir()?E:b).insert(...await Ce.getRecords(!1));this.logger.debug(`Finished parsing existing records in ${Date.now()-C}ms`);let A=new n({compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger,rootDir:this.rootDir,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys}),D=new yd.Database,N=Date.now(),F=new Set;for(let Ce of _.map(We=>A.addFile(We))){let We=Ce.getPath();this.logger.debug(`Parsing records from incoming file: ${We}`);let Ge=this.isInMetadataDir(We),Ke,Ve,Be=await Ce.getRecords(!1),J=Be.query();if(Ce.isUpdateSetXml()){let i=[];for(let ut of J)if(E.resolve(ut.getId()))i.push(ut);else if(this.config.ignoreTransformTableList.includes(ut.getTable()))i.push(ut);else{let xt=await this.getAttachmentsForFields(Be,ut);D.insert(ut.setCreator(void 0,!0).merge(xt)),F.add(We)}(await(0,F2r.getOutput)(new yd.Database(i),this.context)).forEach(ut=>{this.handleMetadataCopy(new pjt.ProjectFile(ut,this))})}else{for(let i of J){let R=E.resolve(i.getId());if(R){Ke??=R;break}this.config.ignoreTransformTableList.includes(i.getTable())&&(Ve=i)}if(!Ge&&Ke)this.logger.debug(`Updating incoming ${Ke.getTable()} record with ID ${Ke.getId().getValue()} in metadata directory as XML`),this.handleMetadataCopy(Ce,Ke.getOriginalFilePath());else if(Ve)this.logger.debug(`Incoming ${Ve.getTable()} record with ID ${Ve.getId().getValue()} is in "ignoreTransformTableList" configuration and moved to metadata directory as XML`),this.handleMetadataCopy(Ce);else if(!Ge&&J.length===0)this.logger.info(`No records parsed from ${Ce.getName()}, moving to metadata directory`),this.handleMetadataCopy(Ce);else for(let i of Be){let R=await this.getAttachmentsForFields(Be,i);D.insert(i.setCreator(void 0,!0).merge(R)),F.add(We)}}}let W=b.compare(D),G=new yd.DiffDatabase(b.query()),j=new yd.Database;for(let Ce of["explicit","catch-all"])for(let We of this.plugins.toArray()){let Ge=await We.computeDiff({mode:Ce,existing:b,incoming:D,context:this.getContext(),visitedRecords:j,mergedDatabase:W});G.insert(...Ge)}await this.getKeys().commit(),this.logger.debug(`Finished parsing incoming records in ${Date.now()-N}ms`);let K={};for(let Ce of this.getFiles())K[Ce.getPath()]=(0,B2r.default)(Ce.getContent()).toString();let ee=this.getContext(),re=new yd.Database,ie=Date.now();for(let Ce of[{mode:"explicit",creatorOnly:!0},{mode:"catch-all",creatorOnly:!0},{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let We of this.plugins.toArray()){let Ge=await We.recordsToShapes({...Ce,database:G,context:ee,handledRecords:re,changedOnly:!0});Ge.success==="partial"&&Ge.unhandledRecords.length>0&&G.insert(...Ge.unhandledRecords),(Ge.success===!0||Ge.success==="partial")&&m.push(...Ge.value)}this.logger.debug(`Finished transforming records into shapes in ${Date.now()-ie}ms`);let _e=[];this.isTypesGenerationMode()?_e.push(...m.map(Ce=>{if(Ce.is(yd.CallExpressionShape)){let We=Ce.getExportName();return We?new yd.VariableStatementShape({source:Ce.getSource(),isExported:!0,variableName:We,initializer:Ce}):Ce}return Ce})):_e.push(...m);let Te=Date.now();for(let Ce of _e.sort(We=>We.isUndefined()?-1:0)){let We=await this.targeter.getTarget(Ce);We.success&&(this.logger.debug(`Committing shape: ${Ce.getDescription()}`),await ee.commit(Ce,We.value))}this.logger.debug(`Finished committing shapes in ${Date.now()-Te}ms`);let Se=[];for(let Ce of this.getFiles()){if(!K[Ce.getPath()]){Se.push(Ce);continue}let We=K[Ce.getPath()],Ge=(0,B2r.default)(Ce.getContent()).toString();We!==Ge&&Se.push(Ce)}for(let Ce of Se)Ce.fix(),s&&await Ce.format(),Ce.reload(!1);return this.logger.debug(`Transform completed in ${Date.now()-c}ms`),{changedFiles:Se,handledPaths:[...F]}}registerExplicitId(e,s,c){return this.keys.registerExplicitId(e,s,c)}registerCoalesceId(e,s,c){return this.keys.registerCoalesceId(e,s,c)}async getOutput(e){let s=await this.getOutput0(e),c=s.find(d=>VBa(d.path,this.config.scopeId));if(c){let d=yd.NowConfig.moduleResolutionPath(this.config,this.package,!1,"package.json");UBa(c,d,this.package.version,this.config)&&this.logger.warn(`Fixed package and version in sys_app output file: ${this.relativePath(c.path)}
49252
+ This is likely due to a static sys_app XML file in the metadata directory. It is recommended to remove this file and allow the build system to generate one.`)}return this.telemetryClient.sendEvent(this.pluginUsageTracker.getShapeCountPerPlugin().map(d=>({name:"build.plugin",appInfo:{scopeId:this.config.scopeId},data:d}))),s}async getOutput0(e){this.pluginUsageTracker.clearPluginShapeUsage();let s=await this.getRecords(e),c=new yd.Database(s.query().filter(m=>!this.isInMetadataDir(m.getOriginalFilePath()))),d=Object.fromEntries((await(0,F2r.getOutput)(c,this.getContext())).map(m=>[m.path,{source:m.source,content:m.content}])),_=this.copyMetadataRecords(d,s,e);return Object.entries(_).map(([m,b])=>({path:m,...b}))}copyMetadataRecords(e,s,c){if(!c){for(let m of this.getFiles().filter(b=>b.isInMetadataDir())){let b=this.config.type==="configuration"?m.getName():yd.path.relative(this.getMetadataDir(),m.getPath());e[this.resolvePath(this.config.appOutputDir,b)]={content:m.getContent(),originalPath:m.getPath()}}return e}return new yd.Database(s.query().filter(m=>this.isInMetadataDir(m.getOriginalFilePath()))).query().filter(m=>c.has(m.getId().getValue())).forEach(m=>{let b=yd.path.relative(this.getMetadataDir(),m.getOriginalFilePath());e[this.resolvePath(this.config.appOutputDir,b)]={content:m.getSource().content,originalPath:m.getSource().path}}),e}async getRecords(e){this.pluginUsageTracker.clearPluginShapeUsage();let s=[],c=this.config.type==="package"?(await this.getEntryPoints()).sort((j,K)=>(j.isInMetadataDir()?0:j.isInServerModulesDir()?1:2)-(K.isInMetadataDir()?0:K.isInServerModulesDir()?1:2)):(await this.getEntryPoints()).filter(j=>!j.isInServerModulesDir()).sort((j,K)=>(j.isInMetadataDir()?0:1)-(K.isInMetadataDir()?0:1));for(let j of c)for(let K of(await j.getRecordsNoDedupe(!1,e)).reverse())s.push(K);let d=c.filter(j=>yd.path.basename(j.getPath()).endsWith(yd.NOW_FILE_EXTENSION));for(let j of d)this.compiler.getDiagnosticsForFluentFile(j.getPath()).forEach(K=>{this.diagnostics.add(K)});this.diagnostics.getWarnings().forEach(j=>this.logger.warn(j.getFormattedText()));let m=this.diagnostics.getErrors();if(m.length>0)throw m.forEach(j=>this.logger.error(j.getFormattedText())),new Error(`Found ${m.length} diagnostic error(s) while building the project.`);let b=e||this.config.type==="configuration"?new yd.Database:this.generateRecordsFromDeletedKeys(),E=new WeakSet(b.query()),C=t((j,K)=>this.isInMetadataDir(j.getOriginalFilePath())&&j.isDeleted()&&E.has(K)||j.getOriginalSource()===K.getOriginalSource(),"isSelfConflicting"),A=t((j,K)=>this.isInMetadataDir(j.getOriginalFilePath())&&this.isInMetadataDir(K.getOriginalFilePath()),"isMetadataDirOnlyConflict"),D=t((j,K)=>j.getTable()==="sys_module"&&K.getTable()==="sys_module","isModuleConflict"),N={};for(let j of s.reverse()){let K=b.resolve(j.getId());K&&!C(j,K)&&!A(j,K)&&!D(j,K)&&(N[`${K.getTable()}.${K.getId().getValue()}`]??=[K]).push(j),b.insert(j)}for(let[j,K]of Object.entries(N))this.logger.warn(`Record "${j}" is defined ${K.length} times in the project:
49253
49253
  ${K.map((ee,re)=>{let ie=this.relativePath(ee.getOriginalFilePath()),_e=ee.getOriginalSource(),Te=ee.isDeleted()?" (delete)":"",Se=yd.ts.Node.isNode(_e)?`:${_e.getStartLineNumber(!1)}`:"";return`${re+1}. ${ie}${Se}${Te}`}).join(`
49254
49254
  `)}`);let F=Object.keys(N).length;F>0&&this.logger.warn(`Total of ${F} conflicts found. The last entry from each conflict will take precedence.`);let W=new Map;b.query().forEach(j=>{let K=j.getId().getNowIdKey();K!==void 0&&j.getTable()!=="sys_module"&&W.set(K,[...W.get(K)??[],j])});let G=Array.from(W.entries()).filter(([j,K])=>K.length>1);if(G.length>0)throw G.forEach(([j,K])=>{this.logger.error(`Explicit key "${j}" is defined multiple times in the project:
49255
49255
  ${K.map((ee,re)=>{let ie=this.relativePath(ee.getOriginalFilePath()),_e=ee.getOriginalSource(),Te=yd.ts.Node.isNode(_e)?`:${_e.getStartLineNumber(!1)}`:"",Se=ee.getTable();return`${re+1}. [${Se}] ${ie}${Te}`}).join(`
49256
- `)}`)}),new Error(`Found ${G.length} duplicate explicit key(s) in the project.`);return await this.getKeys().commit(),b}async getAttachmentsForFields(e,s){let c=await this.getTransform().getUpdateName(s);return Object.fromEntries(e.query("sys_attachment",{table_name:`ZZ_YY${s.getTable()}`,table_sys_id:s.getId().getValue()}).map(d=>[d.get("file_name").toString().getValue(),I_.NowAttachShape.fromAttachmentRecord(c,d,e.query("sys_attachment_doc",{sys_attachment:d.getId().getValue()}))]))}generateRecordsFromDeletedKeys(){let e=new yd.Database,s=this.getKeys().getSourceFile();for(let{table:c,id:d,key:_}of this.getKeys().getEffectiveDeletedKeys()){if(c==="sys_ui_view")continue;if(c==="sys_user_role"){let b=this.getConfig().scope,E=_?.name;if(E&&typeof E=="string"&&!E.startsWith(b))continue}let m=Object.fromEntries(Object.entries(_??{}).map(([b,E])=>[b,typeof E=="string"?E==="NULL"?void 0:E:new yd.RecordId({source:s,guid:E.id,table:b,keys:Object.fromEntries(Object.entries(E.key).map(([C,A])=>[C,typeof A=="string"?A:A.id]))})]));e.insert(new yd.Record({source:s,action:"DELETE",installCategory:"author_elective_update",properties:m,id:new yd.RecordId({source:s,table:c,guid:d})}))}return e}async getDiagnostics(){this.pluginUsageTracker.clearPluginToRecordUsage();let e=new VJ.Diagnostics,s=await this.getEntryPoints();s.sort((d,_)=>this.isInServerDir(d.getPath())?-1:1);for(let d of s)if(!d.isInMetadataDir())for(let _ of await d.getDiagnostics())e.add(_);let c=s.filter(d=>yd.path.basename(d.getPath()).endsWith(yd.NOW_FILE_EXTENSION));for(let d of c)this.compiler.getDiagnosticsForFluentFile(d.getPath()).forEach(_=>{e.add(_)});return e.getAll()}isInDir(e,s){return!yd.path.relative(this.resolvePath(e),this.resolvePath(s)).startsWith("..")}getRootDir(){return this.rootDir}isInRootDir(e){return this.isInDir(this.getRootDir(),e)}getMetadataDir(){return this.resolvePath(this.config.metadataDir)}isInMetadataDir(e){return this.isInDir(this.getMetadataDir(),e)}isInUiHtmlContentDir(e){return this.isInDir(yd.path.join(this.getMetadataDir(),"ui.html"),e)}getSnDirName(e){let s=yd.path.basename(yd.path.dirname(e));return["update","author_elective_update","dictionary","scope","demo","unload","unload.demo","apply_once","if"].includes(s)?s:""}getFluentDir(){return this.resolvePath(this.config.fluentDir)}isInFluentDir(e){return this.isInDir(this.getFluentDir(),e)}getServerDir(){return this.resolvePath(this.config.serverModulesDir)}isInServerDir(e){return this.isInDir(this.getServerDir(),e)}resolvePath(...e){let s=yd.path.join(...e);return yd.path.isAbsolute(s)?yd.path.normalize(s):yd.path.resolve(this.rootDir,s)}relativePath(...e){return yd.path.relative(this.rootDir,this.resolvePath(...e))}dispose(){this.compiler.getLanguageService().compilerObject.dispose()}async fix(){return Promise.all(this.getFiles().map(e=>e.fix()))}async format(){let e=new yd.Formatter(this.fileSystem);return Promise.all(this.getFiles().map(s=>s.format(e)))}save(){this.getFiles().forEach(e=>e.save()),this.filesForDeletion.forEach(e=>this.fileSystem.rmSync(e,{force:!0}))}async saveOutput(e){let s=await this.getOutput(e);return s.forEach(c=>(0,Ote.writeFileWithParentDirs)(this.fileSystem,c)),s}deleteFile(e){this.removeFile(e),this.filesForDeletion.add(e)}handleMetadataCopy(e,s){let c;return s&&e.getName()===yd.path.basename(s)?c=s:c=yd.path.join(this.getMetadataDir(),this.getSnDirName(e.getPath()),yd.path.basename(e.getPath())),this.addFile({content:e.getContent(),path:c})}isTypesGenerationMode(){return this.transformMode==="type-generation"}};D7.Project=fjt;function UBa(n,e,s,c){let _=new V2r.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!1}).parse(n.content),m=_.record_update.sys_app||_.record_update.sys_store_app,b=new V2r.XMLBuilder({format:!0,indentBy:" ",ignoreAttributes:!1,suppressEmptyNode:!0}),E=WBa(m,e,s),C=jBa(m,c);return E||C?(n.content=b.build(_).replace(/(<\?xml[^>]*\?>)\s*/,"$1"),!0):!1}t(UBa,"updateSysApp");function jBa(n,e){let s=yd.NowConfig.legacyPackageResolution(e);return n.package_resolver_version?!1:(n.package_resolver_version=s?yd.MODULE_RESOLUTION.V1:yd.MODULE_RESOLUTION.V2,!0)}t(jBa,"updateSysAppWithPackageResolverVersion");function WBa(n,e,s){return n.version&&n.version===s&&n.package_json===e?!1:(n.package_json=e,s&&(n.version=s),!0)}t(WBa,"updateSysAppWithPackageJsonPath");function j2r(n,e){for(let s in n)delete n[s];Object.assign(n,e)}t(j2r,"overwriteObject");function djt(){let n=Ye.env.FLUENT_RESOLVE_DEPENDENCIES;return n===void 0||n===""?!0:n!=="false"&&n!=="0"}t(djt,"shouldResolveDependencies")});var zO=st(k8=>{"use strict";pe();ue();oe();ce();le();k8.__esModule=!0;k8.extend=W2r;k8.indexOf=KBa;k8.escapeExpression=JBa;k8.isEmpty=XBa;k8.createFrame=YBa;k8.blockParams=QBa;k8.appendContextPath=ZBa;var zBa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},GBa=/[&<>"'`=]/g,qBa=/[&<>"'`=]/;function HBa(n){return zBa[n]}t(HBa,"escapeChar");function W2r(n){for(var e=1;e<arguments.length;e++)for(var s in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],s)&&(n[s]=arguments[e][s]);return n}t(W2r,"extend");var hjt=Object.prototype.toString;k8.toString=hjt;var _jt=t(function(e){return typeof e=="function"},"isFunction");_jt(/x/)&&(k8.isFunction=_jt=t(function(n){return typeof n=="function"&&hjt.call(n)==="[object Function]"},"isFunction"));k8.isFunction=_jt;var z2r=Array.isArray||function(n){return n&&typeof n=="object"?hjt.call(n)==="[object Array]":!1};k8.isArray=z2r;function KBa(n,e){for(var s=0,c=n.length;s<c;s++)if(n[s]===e)return s;return-1}t(KBa,"indexOf");function JBa(n){if(typeof n!="string"){if(n&&n.toHTML)return n.toHTML();if(n==null)return"";if(!n)return n+"";n=""+n}return qBa.test(n)?n.replace(GBa,HBa):n}t(JBa,"escapeExpression");function XBa(n){return!n&&n!==0?!0:!!(z2r(n)&&n.length===0)}t(XBa,"isEmpty");function YBa(n){var e=W2r({},n);return e._parent=n,e}t(YBa,"createFrame");function QBa(n,e){return n.path=e,n}t(QBa,"blockParams");function ZBa(n,e){return(n?n+".":"")+e}t(ZBa,"appendContextPath")});var R7=st((Dnt,G2r)=>{"use strict";pe();ue();oe();ce();le();Dnt.__esModule=!0;var mjt=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function gjt(n,e){var s=e&&e.loc,c=void 0,d=void 0,_=void 0,m=void 0;s&&(c=s.start.line,d=s.end.line,_=s.start.column,m=s.end.column,n+=" - "+c+":"+_);for(var b=Error.prototype.constructor.call(this,n),E=0;E<mjt.length;E++)this[mjt[E]]=b[mjt[E]];Error.captureStackTrace&&Error.captureStackTrace(this,gjt);try{s&&(this.lineNumber=c,this.endLineNumber=d,Object.defineProperty?(Object.defineProperty(this,"column",{value:_,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=_,this.endColumn=m))}catch{}}t(gjt,"Exception");gjt.prototype=new Error;Dnt.default=gjt;G2r.exports=Dnt.default});var H2r=st((Rnt,q2r)=>{"use strict";pe();ue();oe();ce();le();Rnt.__esModule=!0;var yjt=zO();Rnt.default=function(n){n.registerHelper("blockHelperMissing",function(e,s){var c=s.inverse,d=s.fn;if(e===!0)return d(this);if(e===!1||e==null)return c(this);if(yjt.isArray(e))return e.length>0?(s.ids&&(s.ids=[s.name]),n.helpers.each(e,s)):c(this);if(s.data&&s.ids){var _=yjt.createFrame(s.data);_.contextPath=yjt.appendContextPath(s.data.contextPath,s.name),s={data:_}}return d(e,s)})};q2r.exports=Rnt.default});var J2r=st((Nnt,K2r)=>{"use strict";pe();ue();oe();ce();le();Nnt.__esModule=!0;function e7a(n){return n&&n.__esModule?n:{default:n}}t(e7a,"_interopRequireDefault");var hDe=zO(),t7a=R7(),n7a=e7a(t7a);Nnt.default=function(n){n.registerHelper("each",function(e,s){if(!s)throw new n7a.default("Must pass iterator to #each");var c=s.fn,d=s.inverse,_=0,m="",b=void 0,E=void 0;s.data&&s.ids&&(E=hDe.appendContextPath(s.data.contextPath,s.ids[0])+"."),hDe.isFunction(e)&&(e=e.call(this)),s.data&&(b=hDe.createFrame(s.data));function C(W,G,j){b&&(b.key=W,b.index=G,b.first=G===0,b.last=!!j,E&&(b.contextPath=E+W)),m=m+c(e[W],{data:b,blockParams:hDe.blockParams([e[W],W],[E+W,null])})}if(t(C,"execIteration"),e&&typeof e=="object")if(hDe.isArray(e))for(var A=e.length;_<A;_++)_ in e&&C(_,_,_===e.length-1);else if(typeof Symbol=="function"&&e[Symbol.iterator]){for(var D=[],N=e[Symbol.iterator](),F=N.next();!F.done;F=N.next())D.push(F.value);e=D;for(var A=e.length;_<A;_++)C(_,_,_===e.length-1)}else(function(){var W=void 0;Object.keys(e).forEach(function(G){W!==void 0&&C(W,_-1),W=G,_++}),W!==void 0&&C(W,_-1,!0)})();return _===0&&(m=d(this)),m})};K2r.exports=Nnt.default});var Y2r=st((Pnt,X2r)=>{"use strict";pe();ue();oe();ce();le();Pnt.__esModule=!0;function r7a(n){return n&&n.__esModule?n:{default:n}}t(r7a,"_interopRequireDefault");var i7a=R7(),a7a=r7a(i7a);Pnt.default=function(n){n.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a7a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};X2r.exports=Pnt.default});var tIr=st((Lnt,eIr)=>{"use strict";pe();ue();oe();ce();le();Lnt.__esModule=!0;function s7a(n){return n&&n.__esModule?n:{default:n}}t(s7a,"_interopRequireDefault");var Q2r=zO(),o7a=R7(),Z2r=s7a(o7a);Lnt.default=function(n){n.registerHelper("if",function(e,s){if(arguments.length!=2)throw new Z2r.default("#if requires exactly one argument");return Q2r.isFunction(e)&&(e=e.call(this)),!s.hash.includeZero&&!e||Q2r.isEmpty(e)?s.inverse(this):s.fn(this)}),n.registerHelper("unless",function(e,s){if(arguments.length!=2)throw new Z2r.default("#unless requires exactly one argument");return n.helpers.if.call(this,e,{fn:s.inverse,inverse:s.fn,hash:s.hash})})};eIr.exports=Lnt.default});var rIr=st((knt,nIr)=>{"use strict";pe();ue();oe();ce();le();knt.__esModule=!0;knt.default=function(n){n.registerHelper("log",function(){for(var e=[void 0],s=arguments[arguments.length-1],c=0;c<arguments.length-1;c++)e.push(arguments[c]);var d=1;s.hash.level!=null?d=s.hash.level:s.data&&s.data.level!=null&&(d=s.data.level),e[0]=d,n.log.apply(n,e)})};nIr.exports=knt.default});var aIr=st((Mnt,iIr)=>{"use strict";pe();ue();oe();ce();le();Mnt.__esModule=!0;Mnt.default=function(n){n.registerHelper("lookup",function(e,s,c){return e&&c.lookupProperty(e,s)})};iIr.exports=Mnt.default});var oIr=st((Ont,sIr)=>{"use strict";pe();ue();oe();ce();le();Ont.__esModule=!0;function l7a(n){return n&&n.__esModule?n:{default:n}}t(l7a,"_interopRequireDefault");var mDe=zO(),c7a=R7(),u7a=l7a(c7a);Ont.default=function(n){n.registerHelper("with",function(e,s){if(arguments.length!=2)throw new u7a.default("#with requires exactly one argument");mDe.isFunction(e)&&(e=e.call(this));var c=s.fn;if(mDe.isEmpty(e))return s.inverse(this);var d=s.data;return s.data&&s.ids&&(d=mDe.createFrame(s.data),d.contextPath=mDe.appendContextPath(s.data.contextPath,s.ids[0])),c(e,{data:d,blockParams:mDe.blockParams([e],[d&&d.contextPath])})})};sIr.exports=Ont.default});var vjt=st(Fnt=>{"use strict";pe();ue();oe();ce();le();Fnt.__esModule=!0;Fnt.registerDefaultHelpers=w7a;Fnt.moveHelperToHooks=$7a;function Yle(n){return n&&n.__esModule?n:{default:n}}t(Yle,"_interopRequireDefault");var p7a=H2r(),d7a=Yle(p7a),f7a=J2r(),_7a=Yle(f7a),h7a=Y2r(),m7a=Yle(h7a),g7a=tIr(),y7a=Yle(g7a),v7a=rIr(),b7a=Yle(v7a),S7a=aIr(),x7a=Yle(S7a),E7a=oIr(),C7a=Yle(E7a);function w7a(n){d7a.default(n),_7a.default(n),m7a.default(n),y7a.default(n),b7a.default(n),x7a.default(n),C7a.default(n)}t(w7a,"registerDefaultHelpers");function $7a(n,e,s){n.helpers[e]&&(n.hooks[e]=n.helpers[e],s||delete n.helpers[e])}t($7a,"moveHelperToHooks")});var cIr=st((Bnt,lIr)=>{"use strict";pe();ue();oe();ce();le();Bnt.__esModule=!0;var A7a=zO();Bnt.default=function(n){n.registerDecorator("inline",function(e,s,c,d){var _=e;return s.partials||(s.partials={},_=t(function(m,b){var E=c.partials;c.partials=A7a.extend({},E,s.partials);var C=e(m,b);return c.partials=E,C},"ret")),s.partials[d.args[0]]=d.fn,_})};lIr.exports=Bnt.default});var uIr=st(bjt=>{"use strict";pe();ue();oe();ce();le();bjt.__esModule=!0;bjt.registerDefaultDecorators=R7a;function T7a(n){return n&&n.__esModule?n:{default:n}}t(T7a,"_interopRequireDefault");var I7a=cIr(),D7a=T7a(I7a);function R7a(n){D7a.default(n)}t(R7a,"registerDefaultDecorators")});var Sjt=st((Vnt,pIr)=>{"use strict";pe();ue();oe();ce();le();Vnt.__esModule=!0;var N7a=zO(),V0e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:t(function(e){if(typeof e=="string"){var s=N7a.indexOf(V0e.methodMap,e.toLowerCase());s>=0?e=s:e=parseInt(e,10)}return e},"lookupLevel"),log:t(function(e){if(e=V0e.lookupLevel(e),typeof console<"u"&&V0e.lookupLevel(V0e.level)<=e){var s=V0e.methodMap[e];console[s]||(s="log");for(var c=arguments.length,d=Array(c>1?c-1:0),_=1;_<c;_++)d[_-1]=arguments[_];console[s].apply(console,d)}},"log")};Vnt.default=V0e;pIr.exports=Vnt.default});var dIr=st(xjt=>{"use strict";pe();ue();oe();ce();le();xjt.__esModule=!0;xjt.createNewLookupObject=L7a;var P7a=zO();function L7a(){for(var n=arguments.length,e=Array(n),s=0;s<n;s++)e[s]=arguments[s];return P7a.extend.apply(void 0,[Object.create(null)].concat(e))}t(L7a,"createNewLookupObject")});var Ejt=st(gDe=>{"use strict";pe();ue();oe();ce();le();gDe.__esModule=!0;gDe.createProtoAccessControl=F7a;gDe.resultIsAllowed=B7a;gDe.resetLoggedProperties=U7a;function k7a(n){return n&&n.__esModule?n:{default:n}}t(k7a,"_interopRequireDefault");var fIr=dIr(),M7a=Sjt(),O7a=k7a(M7a),Unt=Object.create(null);function F7a(n){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var s=Object.create(null);return s.__proto__=!1,{properties:{whitelist:fIr.createNewLookupObject(s,n.allowedProtoProperties),defaultValue:n.allowProtoPropertiesByDefault},methods:{whitelist:fIr.createNewLookupObject(e,n.allowedProtoMethods),defaultValue:n.allowProtoMethodsByDefault}}}t(F7a,"createProtoAccessControl");function B7a(n,e,s){return _Ir(typeof n=="function"?e.methods:e.properties,s)}t(B7a,"resultIsAllowed");function _Ir(n,e){return n.whitelist[e]!==void 0?n.whitelist[e]===!0:n.defaultValue!==void 0?n.defaultValue:(V7a(e),!1)}t(_Ir,"checkWhiteList");function V7a(n){Unt[n]!==!0&&(Unt[n]=!0,O7a.default.log("error",'Handlebars: Access has been denied to resolve the property "'+n+`" because it is not an "own property" of its parent.
49256
+ `)}`)}),new Error(`Found ${G.length} duplicate explicit key(s) in the project.`);return await this.getKeys().commit(),b}async getAttachmentsForFields(e,s){let c=await this.getTransform().getUpdateName(s);return Object.fromEntries(e.query("sys_attachment",{table_name:`ZZ_YY${s.getTable()}`,table_sys_id:s.getId().getValue()}).map(d=>[d.get("file_name").toString().getValue(),I_.NowAttachShape.fromAttachmentRecord(c,d,e.query("sys_attachment_doc",{sys_attachment:d.getId().getValue()}))]))}generateRecordsFromDeletedKeys(){let e=new yd.Database,s=this.getKeys().getSourceFile();for(let{table:c,id:d,key:_}of this.getKeys().getEffectiveDeletedKeys()){if(c==="sys_ui_view")continue;if(c==="sys_user_role"){let b=this.getConfig().scope,E=_?.name;if(E&&typeof E=="string"&&!E.startsWith(b))continue}let m=Object.fromEntries(Object.entries(_??{}).map(([b,E])=>[b,typeof E=="string"?E==="NULL"?void 0:E:new yd.RecordId({source:s,guid:E.id,table:b,keys:Object.fromEntries(Object.entries(E.key).map(([C,A])=>[C,typeof A=="string"?A:A.id]))})]));e.insert(new yd.Record({source:s,action:"DELETE",installCategory:"author_elective_update",properties:m,id:new yd.RecordId({source:s,table:c,guid:d})}))}return e}async getDiagnostics(){this.pluginUsageTracker.clearPluginShapeUsage();let e=new VJ.Diagnostics,s=await this.getEntryPoints();s.sort((d,_)=>this.isInServerDir(d.getPath())?-1:1);for(let d of s)if(!d.isInMetadataDir())for(let _ of await d.getDiagnostics())e.add(_);let c=s.filter(d=>yd.path.basename(d.getPath()).endsWith(yd.NOW_FILE_EXTENSION));for(let d of c)this.compiler.getDiagnosticsForFluentFile(d.getPath()).forEach(_=>{e.add(_)});return e.getAll()}isInDir(e,s){return!yd.path.relative(this.resolvePath(e),this.resolvePath(s)).startsWith("..")}getRootDir(){return this.rootDir}isInRootDir(e){return this.isInDir(this.getRootDir(),e)}getMetadataDir(){return this.resolvePath(this.config.metadataDir)}isInMetadataDir(e){return this.isInDir(this.getMetadataDir(),e)}isInUiHtmlContentDir(e){return this.isInDir(yd.path.join(this.getMetadataDir(),"ui.html"),e)}getSnDirName(e){let s=yd.path.basename(yd.path.dirname(e));return["update","author_elective_update","dictionary","scope","demo","unload","unload.demo","apply_once","if"].includes(s)?s:""}getFluentDir(){return this.resolvePath(this.config.fluentDir)}isInFluentDir(e){return this.isInDir(this.getFluentDir(),e)}getServerDir(){return this.resolvePath(this.config.serverModulesDir)}isInServerDir(e){return this.isInDir(this.getServerDir(),e)}resolvePath(...e){let s=yd.path.join(...e);return yd.path.isAbsolute(s)?yd.path.normalize(s):yd.path.resolve(this.rootDir,s)}relativePath(...e){return yd.path.relative(this.rootDir,this.resolvePath(...e))}dispose(){this.compiler.getLanguageService().compilerObject.dispose()}async fix(){return Promise.all(this.getFiles().map(e=>e.fix()))}async format(){let e=new yd.Formatter(this.fileSystem);return Promise.all(this.getFiles().map(s=>s.format(e)))}save(){this.getFiles().forEach(e=>e.save()),this.filesForDeletion.forEach(e=>this.fileSystem.rmSync(e,{force:!0}))}async saveOutput(e){let s=await this.getOutput(e);return s.forEach(c=>(0,Ote.writeFileWithParentDirs)(this.fileSystem,c)),s}deleteFile(e){this.removeFile(e),this.filesForDeletion.add(e)}handleMetadataCopy(e,s){let c;return s&&e.getName()===yd.path.basename(s)?c=s:c=yd.path.join(this.getMetadataDir(),this.getSnDirName(e.getPath()),yd.path.basename(e.getPath())),this.addFile({content:e.getContent(),path:c})}isTypesGenerationMode(){return this.transformMode==="type-generation"}};D7.Project=fjt;function UBa(n,e,s,c){let _=new V2r.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!1}).parse(n.content),m=_.record_update.sys_app||_.record_update.sys_store_app,b=new V2r.XMLBuilder({format:!0,indentBy:" ",ignoreAttributes:!1,suppressEmptyNode:!0}),E=WBa(m,e,s),C=jBa(m,c);return E||C?(n.content=b.build(_).replace(/(<\?xml[^>]*\?>)\s*/,"$1"),!0):!1}t(UBa,"updateSysApp");function jBa(n,e){let s=yd.NowConfig.legacyPackageResolution(e);return n.package_resolver_version?!1:(n.package_resolver_version=s?yd.MODULE_RESOLUTION.V1:yd.MODULE_RESOLUTION.V2,!0)}t(jBa,"updateSysAppWithPackageResolverVersion");function WBa(n,e,s){return n.version&&n.version===s&&n.package_json===e?!1:(n.package_json=e,s&&(n.version=s),!0)}t(WBa,"updateSysAppWithPackageJsonPath");function j2r(n,e){for(let s in n)delete n[s];Object.assign(n,e)}t(j2r,"overwriteObject");function djt(){let n=Ye.env.FLUENT_RESOLVE_DEPENDENCIES;return n===void 0||n===""?!0:n!=="false"&&n!=="0"}t(djt,"shouldResolveDependencies")});var zO=st(k8=>{"use strict";pe();ue();oe();ce();le();k8.__esModule=!0;k8.extend=W2r;k8.indexOf=KBa;k8.escapeExpression=JBa;k8.isEmpty=XBa;k8.createFrame=YBa;k8.blockParams=QBa;k8.appendContextPath=ZBa;var zBa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},GBa=/[&<>"'`=]/g,qBa=/[&<>"'`=]/;function HBa(n){return zBa[n]}t(HBa,"escapeChar");function W2r(n){for(var e=1;e<arguments.length;e++)for(var s in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],s)&&(n[s]=arguments[e][s]);return n}t(W2r,"extend");var hjt=Object.prototype.toString;k8.toString=hjt;var _jt=t(function(e){return typeof e=="function"},"isFunction");_jt(/x/)&&(k8.isFunction=_jt=t(function(n){return typeof n=="function"&&hjt.call(n)==="[object Function]"},"isFunction"));k8.isFunction=_jt;var z2r=Array.isArray||function(n){return n&&typeof n=="object"?hjt.call(n)==="[object Array]":!1};k8.isArray=z2r;function KBa(n,e){for(var s=0,c=n.length;s<c;s++)if(n[s]===e)return s;return-1}t(KBa,"indexOf");function JBa(n){if(typeof n!="string"){if(n&&n.toHTML)return n.toHTML();if(n==null)return"";if(!n)return n+"";n=""+n}return qBa.test(n)?n.replace(GBa,HBa):n}t(JBa,"escapeExpression");function XBa(n){return!n&&n!==0?!0:!!(z2r(n)&&n.length===0)}t(XBa,"isEmpty");function YBa(n){var e=W2r({},n);return e._parent=n,e}t(YBa,"createFrame");function QBa(n,e){return n.path=e,n}t(QBa,"blockParams");function ZBa(n,e){return(n?n+".":"")+e}t(ZBa,"appendContextPath")});var R7=st((Dnt,G2r)=>{"use strict";pe();ue();oe();ce();le();Dnt.__esModule=!0;var mjt=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function gjt(n,e){var s=e&&e.loc,c=void 0,d=void 0,_=void 0,m=void 0;s&&(c=s.start.line,d=s.end.line,_=s.start.column,m=s.end.column,n+=" - "+c+":"+_);for(var b=Error.prototype.constructor.call(this,n),E=0;E<mjt.length;E++)this[mjt[E]]=b[mjt[E]];Error.captureStackTrace&&Error.captureStackTrace(this,gjt);try{s&&(this.lineNumber=c,this.endLineNumber=d,Object.defineProperty?(Object.defineProperty(this,"column",{value:_,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=_,this.endColumn=m))}catch{}}t(gjt,"Exception");gjt.prototype=new Error;Dnt.default=gjt;G2r.exports=Dnt.default});var H2r=st((Rnt,q2r)=>{"use strict";pe();ue();oe();ce();le();Rnt.__esModule=!0;var yjt=zO();Rnt.default=function(n){n.registerHelper("blockHelperMissing",function(e,s){var c=s.inverse,d=s.fn;if(e===!0)return d(this);if(e===!1||e==null)return c(this);if(yjt.isArray(e))return e.length>0?(s.ids&&(s.ids=[s.name]),n.helpers.each(e,s)):c(this);if(s.data&&s.ids){var _=yjt.createFrame(s.data);_.contextPath=yjt.appendContextPath(s.data.contextPath,s.name),s={data:_}}return d(e,s)})};q2r.exports=Rnt.default});var J2r=st((Nnt,K2r)=>{"use strict";pe();ue();oe();ce();le();Nnt.__esModule=!0;function e7a(n){return n&&n.__esModule?n:{default:n}}t(e7a,"_interopRequireDefault");var hDe=zO(),t7a=R7(),n7a=e7a(t7a);Nnt.default=function(n){n.registerHelper("each",function(e,s){if(!s)throw new n7a.default("Must pass iterator to #each");var c=s.fn,d=s.inverse,_=0,m="",b=void 0,E=void 0;s.data&&s.ids&&(E=hDe.appendContextPath(s.data.contextPath,s.ids[0])+"."),hDe.isFunction(e)&&(e=e.call(this)),s.data&&(b=hDe.createFrame(s.data));function C(W,G,j){b&&(b.key=W,b.index=G,b.first=G===0,b.last=!!j,E&&(b.contextPath=E+W)),m=m+c(e[W],{data:b,blockParams:hDe.blockParams([e[W],W],[E+W,null])})}if(t(C,"execIteration"),e&&typeof e=="object")if(hDe.isArray(e))for(var A=e.length;_<A;_++)_ in e&&C(_,_,_===e.length-1);else if(typeof Symbol=="function"&&e[Symbol.iterator]){for(var D=[],N=e[Symbol.iterator](),F=N.next();!F.done;F=N.next())D.push(F.value);e=D;for(var A=e.length;_<A;_++)C(_,_,_===e.length-1)}else(function(){var W=void 0;Object.keys(e).forEach(function(G){W!==void 0&&C(W,_-1),W=G,_++}),W!==void 0&&C(W,_-1,!0)})();return _===0&&(m=d(this)),m})};K2r.exports=Nnt.default});var Y2r=st((Pnt,X2r)=>{"use strict";pe();ue();oe();ce();le();Pnt.__esModule=!0;function r7a(n){return n&&n.__esModule?n:{default:n}}t(r7a,"_interopRequireDefault");var i7a=R7(),a7a=r7a(i7a);Pnt.default=function(n){n.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a7a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};X2r.exports=Pnt.default});var tIr=st((Lnt,eIr)=>{"use strict";pe();ue();oe();ce();le();Lnt.__esModule=!0;function s7a(n){return n&&n.__esModule?n:{default:n}}t(s7a,"_interopRequireDefault");var Q2r=zO(),o7a=R7(),Z2r=s7a(o7a);Lnt.default=function(n){n.registerHelper("if",function(e,s){if(arguments.length!=2)throw new Z2r.default("#if requires exactly one argument");return Q2r.isFunction(e)&&(e=e.call(this)),!s.hash.includeZero&&!e||Q2r.isEmpty(e)?s.inverse(this):s.fn(this)}),n.registerHelper("unless",function(e,s){if(arguments.length!=2)throw new Z2r.default("#unless requires exactly one argument");return n.helpers.if.call(this,e,{fn:s.inverse,inverse:s.fn,hash:s.hash})})};eIr.exports=Lnt.default});var rIr=st((knt,nIr)=>{"use strict";pe();ue();oe();ce();le();knt.__esModule=!0;knt.default=function(n){n.registerHelper("log",function(){for(var e=[void 0],s=arguments[arguments.length-1],c=0;c<arguments.length-1;c++)e.push(arguments[c]);var d=1;s.hash.level!=null?d=s.hash.level:s.data&&s.data.level!=null&&(d=s.data.level),e[0]=d,n.log.apply(n,e)})};nIr.exports=knt.default});var aIr=st((Mnt,iIr)=>{"use strict";pe();ue();oe();ce();le();Mnt.__esModule=!0;Mnt.default=function(n){n.registerHelper("lookup",function(e,s,c){return e&&c.lookupProperty(e,s)})};iIr.exports=Mnt.default});var oIr=st((Ont,sIr)=>{"use strict";pe();ue();oe();ce();le();Ont.__esModule=!0;function l7a(n){return n&&n.__esModule?n:{default:n}}t(l7a,"_interopRequireDefault");var mDe=zO(),c7a=R7(),u7a=l7a(c7a);Ont.default=function(n){n.registerHelper("with",function(e,s){if(arguments.length!=2)throw new u7a.default("#with requires exactly one argument");mDe.isFunction(e)&&(e=e.call(this));var c=s.fn;if(mDe.isEmpty(e))return s.inverse(this);var d=s.data;return s.data&&s.ids&&(d=mDe.createFrame(s.data),d.contextPath=mDe.appendContextPath(s.data.contextPath,s.ids[0])),c(e,{data:d,blockParams:mDe.blockParams([e],[d&&d.contextPath])})})};sIr.exports=Ont.default});var vjt=st(Fnt=>{"use strict";pe();ue();oe();ce();le();Fnt.__esModule=!0;Fnt.registerDefaultHelpers=w7a;Fnt.moveHelperToHooks=$7a;function Yle(n){return n&&n.__esModule?n:{default:n}}t(Yle,"_interopRequireDefault");var p7a=H2r(),d7a=Yle(p7a),f7a=J2r(),_7a=Yle(f7a),h7a=Y2r(),m7a=Yle(h7a),g7a=tIr(),y7a=Yle(g7a),v7a=rIr(),b7a=Yle(v7a),S7a=aIr(),x7a=Yle(S7a),E7a=oIr(),C7a=Yle(E7a);function w7a(n){d7a.default(n),_7a.default(n),m7a.default(n),y7a.default(n),b7a.default(n),x7a.default(n),C7a.default(n)}t(w7a,"registerDefaultHelpers");function $7a(n,e,s){n.helpers[e]&&(n.hooks[e]=n.helpers[e],s||delete n.helpers[e])}t($7a,"moveHelperToHooks")});var cIr=st((Bnt,lIr)=>{"use strict";pe();ue();oe();ce();le();Bnt.__esModule=!0;var A7a=zO();Bnt.default=function(n){n.registerDecorator("inline",function(e,s,c,d){var _=e;return s.partials||(s.partials={},_=t(function(m,b){var E=c.partials;c.partials=A7a.extend({},E,s.partials);var C=e(m,b);return c.partials=E,C},"ret")),s.partials[d.args[0]]=d.fn,_})};lIr.exports=Bnt.default});var uIr=st(bjt=>{"use strict";pe();ue();oe();ce();le();bjt.__esModule=!0;bjt.registerDefaultDecorators=R7a;function T7a(n){return n&&n.__esModule?n:{default:n}}t(T7a,"_interopRequireDefault");var I7a=cIr(),D7a=T7a(I7a);function R7a(n){D7a.default(n)}t(R7a,"registerDefaultDecorators")});var Sjt=st((Vnt,pIr)=>{"use strict";pe();ue();oe();ce();le();Vnt.__esModule=!0;var N7a=zO(),V0e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:t(function(e){if(typeof e=="string"){var s=N7a.indexOf(V0e.methodMap,e.toLowerCase());s>=0?e=s:e=parseInt(e,10)}return e},"lookupLevel"),log:t(function(e){if(e=V0e.lookupLevel(e),typeof console<"u"&&V0e.lookupLevel(V0e.level)<=e){var s=V0e.methodMap[e];console[s]||(s="log");for(var c=arguments.length,d=Array(c>1?c-1:0),_=1;_<c;_++)d[_-1]=arguments[_];console[s].apply(console,d)}},"log")};Vnt.default=V0e;pIr.exports=Vnt.default});var dIr=st(xjt=>{"use strict";pe();ue();oe();ce();le();xjt.__esModule=!0;xjt.createNewLookupObject=L7a;var P7a=zO();function L7a(){for(var n=arguments.length,e=Array(n),s=0;s<n;s++)e[s]=arguments[s];return P7a.extend.apply(void 0,[Object.create(null)].concat(e))}t(L7a,"createNewLookupObject")});var Ejt=st(gDe=>{"use strict";pe();ue();oe();ce();le();gDe.__esModule=!0;gDe.createProtoAccessControl=F7a;gDe.resultIsAllowed=B7a;gDe.resetLoggedProperties=U7a;function k7a(n){return n&&n.__esModule?n:{default:n}}t(k7a,"_interopRequireDefault");var fIr=dIr(),M7a=Sjt(),O7a=k7a(M7a),Unt=Object.create(null);function F7a(n){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var s=Object.create(null);return s.__proto__=!1,{properties:{whitelist:fIr.createNewLookupObject(s,n.allowedProtoProperties),defaultValue:n.allowProtoPropertiesByDefault},methods:{whitelist:fIr.createNewLookupObject(e,n.allowedProtoMethods),defaultValue:n.allowProtoMethodsByDefault}}}t(F7a,"createProtoAccessControl");function B7a(n,e,s){return _Ir(typeof n=="function"?e.methods:e.properties,s)}t(B7a,"resultIsAllowed");function _Ir(n,e){return n.whitelist[e]!==void 0?n.whitelist[e]===!0:n.defaultValue!==void 0?n.defaultValue:(V7a(e),!1)}t(_Ir,"checkWhiteList");function V7a(n){Unt[n]!==!0&&(Unt[n]=!0,O7a.default.log("error",'Handlebars: Access has been denied to resolve the property "'+n+`" because it is not an "own property" of its parent.
49257
49257
  You can add a runtime option to disable the check or this warning:
49258
49258
  See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}t(V7a,"logUnexpecedPropertyAccessOnce");function U7a(){Object.keys(Unt).forEach(function(n){delete Unt[n]})}t(U7a,"resetLoggedProperties")});var Wnt=st(yG=>{"use strict";pe();ue();oe();ce();le();yG.__esModule=!0;yG.HandlebarsEnvironment=$jt;function hIr(n){return n&&n.__esModule?n:{default:n}}t(hIr,"_interopRequireDefault");var Qle=zO(),j7a=R7(),Cjt=hIr(j7a),W7a=vjt(),z7a=uIr(),G7a=Sjt(),jnt=hIr(G7a),q7a=Ejt(),H7a="4.7.8";yG.VERSION=H7a;var K7a=8;yG.COMPILER_REVISION=K7a;var J7a=7;yG.LAST_COMPATIBLE_COMPILER_REVISION=J7a;var X7a={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};yG.REVISION_CHANGES=X7a;var wjt="[object Object]";function $jt(n,e,s){this.helpers=n||{},this.partials=e||{},this.decorators=s||{},W7a.registerDefaultHelpers(this),z7a.registerDefaultDecorators(this)}t($jt,"HandlebarsEnvironment");$jt.prototype={constructor:$jt,logger:jnt.default,log:jnt.default.log,registerHelper:t(function(e,s){if(Qle.toString.call(e)===wjt){if(s)throw new Cjt.default("Arg not supported with multiple helpers");Qle.extend(this.helpers,e)}else this.helpers[e]=s},"registerHelper"),unregisterHelper:t(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:t(function(e,s){if(Qle.toString.call(e)===wjt)Qle.extend(this.partials,e);else{if(typeof s>"u")throw new Cjt.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=s}},"registerPartial"),unregisterPartial:t(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:t(function(e,s){if(Qle.toString.call(e)===wjt){if(s)throw new Cjt.default("Arg not supported with multiple decorators");Qle.extend(this.decorators,e)}else this.decorators[e]=s},"registerDecorator"),unregisterDecorator:t(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:t(function(){q7a.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Y7a=jnt.default.log;yG.log=Y7a;yG.createFrame=Qle.createFrame;yG.logger=jnt.default});var gIr=st((znt,mIr)=>{"use strict";pe();ue();oe();ce();le();znt.__esModule=!0;function Ajt(n){this.string=n}t(Ajt,"SafeString");Ajt.prototype.toString=Ajt.prototype.toHTML=function(){return""+this.string};znt.default=Ajt;mIr.exports=znt.default});var yIr=st(Tjt=>{"use strict";pe();ue();oe();ce();le();Tjt.__esModule=!0;Tjt.wrapHelper=Q7a;function Q7a(n,e){if(typeof n!="function")return n;var s=t(function(){var d=arguments[arguments.length-1];return arguments[arguments.length-1]=e(d),n.apply(this,arguments)},"wrapper");return s}t(Q7a,"wrapHelper")});var EIr=st(Fte=>{"use strict";pe();ue();oe();ce();le();Fte.__esModule=!0;Fte.checkRevision=iVa;Fte.template=aVa;Fte.wrapProgram=Gnt;Fte.resolvePartial=sVa;Fte.invokePartial=oVa;Fte.noop=SIr;function Z7a(n){return n&&n.__esModule?n:{default:n}}t(Z7a,"_interopRequireDefault");function eVa(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s]);return e.default=n,e}t(eVa,"_interopRequireWildcard");var tVa=zO(),UJ=eVa(tVa),nVa=R7(),jJ=Z7a(nVa),WJ=Wnt(),vIr=vjt(),rVa=yIr(),bIr=Ejt();function iVa(n){var e=n&&n[0]||1,s=WJ.COMPILER_REVISION;if(!(e>=WJ.LAST_COMPATIBLE_COMPILER_REVISION&&e<=WJ.COMPILER_REVISION))if(e<WJ.LAST_COMPATIBLE_COMPILER_REVISION){var c=WJ.REVISION_CHANGES[s],d=WJ.REVISION_CHANGES[e];throw new jJ.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+c+") or downgrade your runtime to an older version ("+d+").")}else throw new jJ.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").")}t(iVa,"checkRevision");function aVa(n,e){if(!e)throw new jJ.default("No environment passed to template");if(!n||!n.main)throw new jJ.default("Unknown template object: "+typeof n);n.main.decorator=n.main_d,e.VM.checkRevision(n.compiler);var s=n.compiler&&n.compiler[0]===7;function c(m,b,E){E.hash&&(b=UJ.extend({},b,E.hash),E.ids&&(E.ids[0]=!0)),m=e.VM.resolvePartial.call(this,m,b,E);var C=UJ.extend({},E,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),A=e.VM.invokePartial.call(this,m,b,C);if(A==null&&e.compile&&(E.partials[E.name]=e.compile(m,n.compilerOptions,e),A=E.partials[E.name](b,C)),A!=null){if(E.indent){for(var D=A.split(`
49259
49259
  `),N=0,F=D.length;N<F&&!(!D[N]&&N+1===F);N++)D[N]=E.indent+D[N];A=D.join(`