code-playpad 0.7.0 → 0.9.0

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.
Files changed (72) hide show
  1. package/JAVA-COMPATIBILITY.md +12 -12
  2. package/README.md +104 -14
  3. package/dist/COMPILER-LICENSE-AUDIT.md +104 -0
  4. package/dist/COMPILER-NOTICES.txt +16973 -0
  5. package/dist/THIRD-PARTY-NOTICES.txt +102 -0
  6. package/dist/cdn.js +2 -2
  7. package/dist/compiler-license-manifest.json +198 -0
  8. package/dist/{config-D9w0xYhX.js → config-cwuPIQ48.js} +1 -1
  9. package/dist/cpp-D2TrExLz.js +1 -0
  10. package/dist/cpp-DakNa4ys.js +6 -0
  11. package/dist/dist--J_vhCIU.js +14 -0
  12. package/dist/{dist-B5vq9x6M.js → dist-BIgiGgKu.js} +1 -1
  13. package/dist/dist-BNvM_BAY.js +6 -0
  14. package/dist/{dist-XlpaG2JF.js → dist-BkpKCrXQ.js} +1 -1
  15. package/dist/{dist-BKRQwpg6.js → dist-CJxiVI4a.js} +1 -1
  16. package/dist/dist-CNOK8CHE.js +6 -0
  17. package/dist/dist-D25hs99E.js +10 -0
  18. package/dist/dist-D2igTc4m.js +6 -0
  19. package/dist/{dist-CqpVTRAq.js → dist-D7jBL3Ib.js} +9 -9
  20. package/dist/dist-DXjodKfp.js +6 -0
  21. package/dist/dist-DfFrsBkU.js +8 -0
  22. package/dist/dist-Vr-fb58P.js +12 -0
  23. package/dist/{element-DaStU7U7.js → element-BQWrbSEp.js} +7 -7
  24. package/dist/element.js +1 -1
  25. package/dist/{hints-v5iHTd1l.js → hints-CCMgezw9.js} +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/java-DeBiVPXO.js +6 -0
  29. package/dist/java-Xf1xYcVv.js +1 -0
  30. package/dist/{java-library-bitset.generated-Duwl7F-b.js → java-library-bitset.generated-C3m-nf8F.js} +1 -1
  31. package/dist/{java-library-math.generated-DmUvund7.js → java-library-math.generated-BQwpn8sQ.js} +1 -1
  32. package/dist/{java-library-regex.generated-a8crcad3.js → java-library-regex.generated-ItYSF2aV.js} +1 -1
  33. package/dist/java-library-time.generated-Dl0XA7nZ.js +6 -0
  34. package/dist/java-library.generated-B7ib0gOX.js +6 -0
  35. package/dist/{javascript-CSfl5gbA.js → javascript-CTY3U1Mc.js} +4 -2
  36. package/dist/{javascript-CX-lsX2u.js → javascript-DkarEcEB.js} +4 -2
  37. package/dist/{pyodide-Crdd9em4.js → pyodide-B1U3JD9Z.js} +2 -2
  38. package/dist/{pyodide-CdDlM0du.js → pyodide-BGBI232i.js} +1 -1
  39. package/dist/react.js +1 -1
  40. package/dist/runtime/compiler-assets.d.ts +5 -0
  41. package/dist/runtime/compiler-cache.d.ts +9 -0
  42. package/dist/runtime/config.d.ts +11 -0
  43. package/dist/runtime/cpp/assets.d.ts +6 -0
  44. package/dist/runtime/cpp/project.d.ts +9 -0
  45. package/dist/runtime/cpp/worker.d.ts +1 -0
  46. package/dist/runtime/cpp-worker.generated.d.ts +1 -0
  47. package/dist/runtime/cpp.d.ts +3 -0
  48. package/dist/runtime/java-library-bitset.generated.d.ts +2 -2
  49. package/dist/runtime/java-library-math.generated.d.ts +2 -2
  50. package/dist/runtime/java-library-regex.generated.d.ts +2 -2
  51. package/dist/runtime/java-library-time.generated.d.ts +3 -3
  52. package/dist/runtime/java-library.generated.d.ts +3 -3
  53. package/dist/runtime/java-worker.generated.d.ts +3 -3
  54. package/dist/runtime/worker-runtime.d.ts +1 -0
  55. package/dist/standalone.js +9 -9
  56. package/dist/types.d.ts +13 -1
  57. package/dist/worker-runtime-DfYet3xy.js +9 -0
  58. package/dist/worker-runtime-Dq71SbjR.js +4 -0
  59. package/package.json +18 -6
  60. package/dist/dist-BThnYaQ5.js +0 -12
  61. package/dist/dist-CnC1nMtN.js +0 -6
  62. package/dist/dist-D0FPZcUi.js +0 -8
  63. package/dist/dist-DOsLUKSb.js +0 -10
  64. package/dist/dist-D_qJovVA.js +0 -14
  65. package/dist/dist-DlIO0dzi.js +0 -6
  66. package/dist/dist-DmrP6yta.js +0 -6
  67. package/dist/java-DIL6bxPF.js +0 -1
  68. package/dist/java-DxQWnfHu.js +0 -6
  69. package/dist/java-library-time.generated-mFyqZ0pg.js +0 -6
  70. package/dist/java-library.generated-1yFV284B.js +0 -6
  71. package/dist/worker-runtime-C8pmmgW9.js +0 -4
  72. package/dist/worker-runtime-CNPpMRo1.js +0 -9
@@ -1,6 +0,0 @@
1
- /*!
2
- * code-playpad — MIT © 2026 Seung Hun Lee
3
- * Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
4
- * Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
5
- */
6
- var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`f96214f5bd73ef7e78e8b56b304b192b21ccdcea962d6ff8e17ec303c3a4da35`,module:`java-library-time`},t='(()=>{var Ke=Object.create;var Oe=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Se=(n,e)=>()=>{try{return e||n((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var et=(n,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!Qe.call(n,i)&&i!==t&&Oe(n,i,{get:()=>e[i],enumerable:!(a=ze(e,i))||a.enumerable});return n};var Me=(n,e,t)=>(t=n!=null?Ke(Ze(n)):{},et(e||!n||!n.__esModule?Oe(t,"default",{value:n,enumerable:!0}):t,n));var Ee=Se((vt,Ve)=>{var le=globalThis.javaOnlineCompilerLibraryShared;if(!le||!le.common)throw new Error("the library chunk does not publish common, which java-library-time needs");Ve.exports=le.common});var we=Se((gt,Ae)=>{var me=globalThis.javaOnlineCompilerLibraryShared;if(!me||!me.streams)throw new Error("the library chunk does not publish streams, which java-library-time needs");Ae.exports=me.streams});var u=Me(Ee(),1),Ue=Me(we(),1),M="java.time.DateTimeException",ve="java.time.format.DateTimeParseException",I="java.time.temporal.UnsupportedTemporalTypeException",l="java.lang.NullPointerException",P="java.lang.IllegalArgumentException",ee="java.lang.ArithmeticException",x=["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],pe=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],De=["NANOS","MICROS","MILLIS","SECONDS","MINUTES","HOURS","HALF_DAYS","DAYS","WEEKS","MONTHS","YEARS","DECADES","CENTURIES","MILLENNIA","ERAS","FOREVER"],te=["Nanos","Micros","Millis","Seconds","Minutes","Hours","HalfDays","Days","Weeks","Months","Years","Decades","Centuries","Millennia","Eras","Forever"],ne=-999999999,ae=999999999,tt=719528,ie=n=>n[0]+n.slice(1).toLowerCase(),k=n=>(n&3)===0&&(n%100!==0||n%400===0),_=(n,e)=>n===2?e?29:28:n===4||n===6||n===9||n===11?30:31,Pe=(n,e)=>Math.floor(n/e),F=(n,e)=>(n%e+e)%e;function re(n,e,t){let a=365*n;return n>=0?a+=Math.trunc((n+3)/4)-Math.trunc((n+99)/100)+Math.trunc((n+399)/400):a-=Math.trunc(n/-4)-Math.trunc(n/-100)+Math.trunc(n/-400),a+=Math.trunc((367*e-362)/12),a+=t-1,e>2&&(a--,k(n)||a--),a-tt}function nt(n){let e=n+719468,t=Pe(e,146097),a=e-t*146097,i=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),r=a-(365*i+Math.floor(i/4)-Math.floor(i/100)),o=Math.floor((5*r+2)/153),s=r-Math.floor((153*o+2)/5)+1,g=o<10?o+3:o-9;return[i+t*400+(g<=2?1:0),g,s]}var ge=class extends u.LibObject{className;name;ordinal;#t;constructor(e,t,a,i,r=a){super(e),this.className=t,this.name=a,this.ordinal=i,this.#t=r}*javaString(){return this.#t}naturalOrder(e,t){return t===null?e.fail(l,null):this.ordinal-t.ordinal}"name()"(){return new u.K.JString(this.name)}"ordinal()"(){return this.ordinal}"toString()"(){return new u.K.JString(this.#t)}"getValue()"(){return this.ordinal+1}"compareTo(DayOfWeek)"(e,t){return this.naturalOrder(e,t)}"compareTo(Month)"(e,t){return this.naturalOrder(e,t)}"compareTo(ChronoUnit)"(e,t){return this.naturalOrder(e,t)}"plus(long)"(e,t){let a=this.className==="java.time.DayOfWeek"?K(e):z(e);return a[F(this.ordinal+Number(BigInt(t)%BigInt(a.length)),a.length)]}"minus(long)"(e,t){let a=this.className==="java.time.DayOfWeek"?K(e):z(e);return a[F(this.ordinal-Number(BigInt(t)%BigInt(a.length)),a.length)]}"length(boolean)"(e,t){return _(this.ordinal+1,t===1)}"maxLength()"(){return _(this.ordinal+1,!0)}"minLength()"(){return _(this.ordinal+1,!1)}"between(Temporal,Temporal)"(e,t,a){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "temporal1Inclusive" is null\'):t["until(Temporal,TemporalUnit)"](e,a,this)}};function ye(n,e,t){let a=new WeakMap;return i=>{let r=a.get(i);return r||a.set(i,r=n.map((o,s)=>new ge(i.hash(),e,o,s,t?.[s]))),r}}var K=ye(pe,"java.time.DayOfWeek"),z=ye(x,"java.time.Month"),He=ye(De,"java.time.temporal.ChronoUnit",te),R=class n extends u.LibObject{className="java.time.LocalDate";year;month;day;constructor(e,t,a,i){super(e),this.year=t,this.month=a,this.day=i}get epochDay(){return re(this.year,this.month,this.day)}*javaString(){return H(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.year===this.year&&t.month===this.month&&t.day===this.day}*contentHash(){return this.year&4294965248^((this.year<<11)+(this.month<<6)+this.day|0)}naturalOrder(e,t){if(t===null)return e.fail(l,null);let a=t;return this.year!==a.year?this.year-a.year:this.month!==a.month?this.month-a.month:this.day-a.day}get prolepticMonth(){return this.year*12+this.month-1}until(e,t,a){let i=()=>Math.trunc((t.prolepticMonth*32+t.day-(this.prolepticMonth*32+this.day))/32);switch(a.name){case"DAYS":return t.epochDay-this.epochDay;case"WEEKS":return Math.trunc((t.epochDay-this.epochDay)/7);case"MONTHS":return i();case"YEARS":return Math.trunc(i()/12);case"DECADES":return Math.trunc(i()/120);case"CENTURIES":return Math.trunc(i()/1200);case"MILLENNIA":return Math.trunc(i()/12e3);case"ERAS":return e.limitation("ChronoUnit.ERAS");default:return e.fail(I,`Unsupported unit: ${te[a.ordinal]}`)}}"getYear()"(){return this.year}"getMonthValue()"(){return this.month}"getMonth()"(e){return z(e)[this.month-1]}"getDayOfMonth()"(){return this.day}"getDayOfYear()"(){return this.epochDay-re(this.year,1,1)+1}"getDayOfWeek()"(e){return K(e)[F(this.epochDay+3,7)]}"isLeapYear()"(){return(0,u.bool)(k(this.year))}"lengthOfMonth()"(){return _(this.month,k(this.year))}"lengthOfYear()"(){return k(this.year)?366:365}"toEpochDay()"(){return this.epochDay}"plusDays(long)"(e,t){return t===0?this:Y(e,this.epochDay+Number(t))}"minusDays(long)"(e,t){return this["plusDays(long)"](e,-Number(t))}"plusWeeks(long)"(e,t){return this["plusDays(long)"](e,Number(t)*7)}"minusWeeks(long)"(e,t){return this["plusDays(long)"](e,-Number(t)*7)}"plusMonths(long)"(e,t){if(t===0)return this;let a=this.prolepticMonth+Number(t);return Q(e,Pe(a,12),F(a,12)+1,this.day)}"minusMonths(long)"(e,t){return this["plusMonths(long)"](e,-Number(t))}"plusYears(long)"(e,t){return t===0?this:Q(e,this.year+Number(t),this.month,this.day)}"minusYears(long)"(e,t){return this["plusYears(long)"](e,-Number(t))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,"unit");let i=Number(t);switch(a.name){case"DAYS":return this["plusDays(long)"](e,i);case"WEEKS":return this["plusWeeks(long)"](e,i);case"MONTHS":return this["plusMonths(long)"](e,i);case"YEARS":return this["plusYears(long)"](e,i);case"DECADES":return this["plusYears(long)"](e,i*10);case"CENTURIES":return this["plusYears(long)"](e,i*100);case"MILLENNIA":return this["plusYears(long)"](e,i*1e3);default:return e.fail(I,`Unsupported unit: ${te[a.ordinal]}`)}}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,-Number(t),a)}"plus(TemporalAmount)"(e,t){if(t===null)return e.fail(l,"amountToAdd");if(t instanceof G)return W(e,this,t,1);let a=t,i=a.years*12+a.months;return(i===0?this:this["plusMonths(long)"](e,i))["plusDays(long)"](e,a.days)}"minus(TemporalAmount)"(e,t){if(t===null)return e.fail(l,"amountToSubtract");if(t instanceof G)return W(e,this,t,-1);let a=t,i=a.years*12+a.months;return(i===0?this:this["plusMonths(long)"](e,-i))["plusDays(long)"](e,-a.days)}"withDayOfMonth(int)"(e,t){return t===this.day?this:w(e,this.year,this.month,t)}"withMonth(int)"(e,t){return E(e,"MonthOfYear",t,1,12),Q(e,this.year,t,this.day)}"withYear(int)"(e,t){return ue(e,t),Q(e,t,this.month,this.day)}"withDayOfYear(int)"(e,t){return Ye(e,this.year,t)}"isBefore(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"isEqual(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)===0)}"compareTo(LocalDate)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=xe(e,t);return a===null?e.fail(l,Le):this.until(e,i,a)}"atTime(int,int)"(e,t,a){return T(e,this,C(e,t,a))}"atTime(int,int,int)"(e,t,a,i){return T(e,this,C(e,t,a,i))}"atTime(int,int,int,int)"(e,t,a,i,r){return T(e,this,C(e,t,a,i,r))}"atTime(LocalTime)"(e,t){return t===null?e.fail(l,"time"):T(e,this,t)}"atStartOfDay()"(e){return T(e,this,new y(e.hash(),0,0,0,0))}"until(LocalDate)"(e,t){return t===null?e.fail(l,"endDateExclusive"):je(e,this,t)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}"datesUntil(LocalDate)"(e,t){if(t===null)return e.fail(l,"endExclusive");let a=t.epochDay;if(a<this.epochDay)return e.fail(P,`${H(t)} < ${H(this)}`);let i=this.epochDay;return(0,Ue.lazyStream)(e,()=>{e.allocate(a-i);let r=[];for(let o=i;o<a;o++)r.push(Y(e,o));return r})}};function H(n){let e=Math.abs(n.year);return`${e<1e3?(n.year<0?"-":"")+String(e).padStart(4,"0"):n.year>9999?`+${n.year}`:String(n.year)}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function E(n,e,t,a,i,r=`${a} - ${i}`){(t<a||t>i)&&n.fail(M,`Invalid value for ${e} (valid values ${r}): ${t}`)}var ue=(n,e)=>E(n,"Year",e,ne,ae);function w(n,e,t,a){return ue(n,e),E(n,"MonthOfYear",t,1,12),E(n,"DayOfMonth",a,1,31,"1 - 28/31"),a>28&&a>_(t,k(e))&&(a===29&&n.fail(M,`Invalid date \'February 29\' as \'${e}\' is not a leap year`),n.fail(M,`Invalid date \'${x[t-1]} ${a}\'`)),new R(n.hash(),e,t,a)}function Q(n,e,t,a){return ue(n,e),new R(n.hash(),e,t,Math.min(a,_(t,k(e))))}function Y(n,e){if(!Number.isSafeInteger(e)||e<-365243219162||e>365241780471)return n.fail(M,`Invalid value for EpochDay (valid values -365243219162 - 365241780471): ${e}`);let[t,a,i]=nt(e);return new R(n.hash(),t,a,i)}function Ye(n,e,t){return ue(n,e),E(n,"DayOfYear",t,1,366,"1 - 365/366"),t===366&&!k(e)&&n.fail(M,`Invalid date \'DayOfYear 366\' as \'${e}\' is not a leap year`),Y(n,re(e,1,1)+t-1)}var B=class n extends u.LibObject{className="java.time.Period";years;months;days;constructor(e,t,a,i){super(e),this.years=t,this.months=a,this.days=i}*javaString(){return this.years===0&&this.months===0&&this.days===0?"P0D":`P${this.years?`${this.years}Y`:""}${this.months?`${this.months}M`:""}${this.days?`${this.days}D`:""}`}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.years===this.years&&t.months===this.months&&t.days===this.days}*contentHash(){let e=(t,a)=>t<<a|t>>>32-a|0;return this.years+e(this.months,8)+e(this.days,16)|0}"getYears()"(){return this.years}"getMonths()"(){return this.months}"getDays()"(){return this.days}"toTotalMonths()"(){return this.years*12+this.months}"isZero()"(){return(0,u.bool)(this.years===0&&this.months===0&&this.days===0)}"isNegative()"(){return(0,u.bool)(this.years<0||this.months<0||this.days<0)}"normalized()"(e){let t=this.years*12+this.months;return L(e,Math.trunc(t/12),t%12,this.days)}"negated()"(e){return this["multipliedBy(int)"](e,-1)}"multipliedBy(int)"(e,t){let a=t;return L(e,U(e,this.years*a),U(e,this.months*a),U(e,this.days*a))}"plusDays(long)"(e,t){return L(e,this.years,this.months,U(e,this.days+Number(t)))}"plusMonths(long)"(e,t){return L(e,this.years,U(e,this.months+Number(t)),this.days)}"plusYears(long)"(e,t){return L(e,U(e,this.years+Number(t)),this.months,this.days)}};function U(n,e){return e>2147483647||e<-2147483648?n.fail(ee,"integer overflow"):e}var L=(n,e,t,a)=>new B(n.hash(),e,t,a);function je(n,e,t){let a=t.prolepticMonth-e.prolepticMonth,i=t.day-e.day;if(a>0&&i<0){a--;let r=e["plusMonths(long)"](n,a);i=t.epochDay-r.epochDay}else a<0&&i>0&&(a++,i-=_(t.month,k(t.year)));return L(n,Math.trunc(a/12),a%12,i)}var m=1000000000n,O=86400n*m,at=(1n<<63n)-1n,it=-(1n<<63n);function j(n){switch(n.name){case"NANOS":return 1n;case"MICROS":return 1000n;case"MILLIS":return 1000000n;case"SECONDS":return m;case"MINUTES":return 60n*m;case"HOURS":return 3600n*m;case"HALF_DAYS":return 43200n*m;case"DAYS":return O;default:return null}}var oe=n=>n.ordinal<7,h=n=>BigInt(n),ke=(n,e)=>n.fail(I,`Unsupported unit: ${te[e.ordinal]}`);function A(n,e){return e>at||e<it?n.fail(ee,"long overflow"):e}var Te=(n,e)=>n/e-(n%e!==0n&&n<0n!=e<0n?1n:0n),Ce=(n,e)=>n-Te(n,e)*e;function Re(n,e,t){let a=t instanceof R?H(t):t instanceof y?X(t):t instanceof V?Ge(t):t.className;return n.fail(M,`Unable to obtain ${e} from TemporalAccessor: ${a} of type ${t.className}`)}function xe(n,e){return e===null?n.fail(l,"temporal"):e instanceof R?e:e instanceof V?e.date:Re(n,"LocalDate",e)}function Fe(n,e){return e===null?n.fail(l,"temporal"):e instanceof y?e:e instanceof V?e.time:Re(n,"LocalTime",e)}function Be(n,e){return e===null?n.fail(l,"temporal"):e instanceof V?e:Re(n,"LocalDateTime",e)}var We=\'Cannot invoke "java.time.temporal.TemporalUnit.addTo(java.time.temporal.Temporal, long)" because "unit" is null\',Le=\'Cannot invoke "java.time.temporal.TemporalUnit.between(java.time.temporal.Temporal, java.time.temporal.Temporal)" because "unit" is null\',rt=\'Cannot invoke "java.time.temporal.TemporalUnit.getDuration()" because "unit" is null\';function W(n,e,t,a){let i=e,r=(s,g)=>{i=i["plus(long,TemporalUnit)"](n,u.K.normLong(BigInt(a)*s),He(n)[De.indexOf(g)])};if(t instanceof B){let s=BigInt(t.years)*12n+BigInt(t.months);return t.months===0?t.years!==0&&r(BigInt(t.years),"YEARS"):s!==0n&&r(s,"MONTHS"),t.days!==0&&r(BigInt(t.days),"DAYS"),i}let o=t;return o.seconds!==0n&&r(o.seconds,"SECONDS"),o.nanos!==0&&r(BigInt(o.nanos),"NANOS"),i}function X(n){let e=i=>String(i).padStart(2,"0"),t=`${e(n.hour)}:${e(n.minute)}`;if(n.second===0&&n.nano===0||(t+=`:${e(n.second)}`,n.nano===0))return t;let a=String(n.nano).padStart(9,"0");return t+"."+(n.nano%1e6===0?a.slice(0,3):n.nano%1e3===0?a.slice(0,6):a)}var Ge=n=>`${H(n.date)}T${X(n.time)}`,y=class n extends u.LibObject{className="java.time.LocalTime";hour;minute;second;nano;constructor(e,t,a,i,r){super(e),this.hour=t,this.minute=a,this.second=i,this.nano=r}get nanoOfDay(){return BigInt(this.hour*3600+this.minute*60+this.second)*m+BigInt(this.nano)}*javaString(){return X(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.nanoOfDay===this.nanoOfDay}*contentHash(){return(0,u.longHash)(u.K.normLong(this.nanoOfDay))}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot read field "hour" because "other" is null\');let a=this.nanoOfDay,i=t.nanoOfDay;return a<i?-1:a>i?1:0}plusNanosOfDay(e,t){return t===0n?this:Z(e,Ce(this.nanoOfDay+t,O))}"getHour()"(){return this.hour}"getMinute()"(){return this.minute}"getSecond()"(){return this.second}"getNano()"(){return this.nano}"toSecondOfDay()"(){return this.hour*3600+this.minute*60+this.second}"toNanoOfDay()"(){return u.K.normLong(this.nanoOfDay)}"plusHours(long)"(e,t){return this.plusNanosOfDay(e,h(t)%24n*3600n*m)}"plusMinutes(long)"(e,t){return this.plusNanosOfDay(e,h(t)%1440n*60n*m)}"plusSeconds(long)"(e,t){return this.plusNanosOfDay(e,h(t)%86400n*m)}"plusNanos(long)"(e,t){return this.plusNanosOfDay(e,h(t)%O)}"minusHours(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%24n)*3600n*m)}"minusMinutes(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%1440n)*60n*m)}"minusSeconds(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%86400n)*m)}"minusNanos(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%O))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,We);let i=a;if(!oe(i))return ke(e,i);let r=j(i);return this.plusNanosOfDay(e,h(t)%(O/r)*r)}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,u.K.normLong(-h(t)),a)}"plus(TemporalAmount)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.TemporalAmount.addTo(java.time.temporal.Temporal)" because "amountToAdd" is null\'):W(e,this,t,1)}"minus(TemporalAmount)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.TemporalAmount.subtractFrom(java.time.temporal.Temporal)" because "amountToSubtract" is null\'):W(e,this,t,-1)}"withHour(int)"(e,t){return C(e,t,this.minute,this.second,this.nano)}"withMinute(int)"(e,t){return C(e,this.hour,t,this.second,this.nano)}"withSecond(int)"(e,t){return C(e,this.hour,this.minute,t,this.nano)}"withNano(int)"(e,t){return C(e,this.hour,this.minute,this.second,t)}truncated(e,t){if(t===null)return e.fail(l,rt);let a=t;if(a.name==="NANOS")return this;let i=j(a);return i===null?e.fail(I,"Unit is too large to be used for truncation"):Z(e,this.nanoOfDay/i*i)}"truncatedTo(TemporalUnit)"(e,t){return this.truncated(e,t)}"isBefore(LocalTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"compareTo(LocalTime)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=Fe(e,t);if(a===null)return e.fail(l,Le);let r=a;return oe(r)?u.K.normLong((i.nanoOfDay-this.nanoOfDay)/j(r)):ke(e,r)}"atDate(LocalDate)"(e,t){return t===null?e.fail(l,"date"):new V(e.hash(),t,this)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}};function ot(n,e,t,a,i){E(n,"HourOfDay",e,0,23),E(n,"MinuteOfHour",t,0,59),E(n,"SecondOfMinute",a,0,59),E(n,"NanoOfSecond",i,0,999999999)}function C(n,e,t,a=0,i=0){return ot(n,e,t,a,i),new y(n.hash(),e,t,a,i)}function Z(n,e){if(e<0n||e>=O)return n.fail(M,`Invalid value for NanoOfDay (valid values 0 - 86399999999999): ${e}`);let t=Number(e/m);return new y(n.hash(),Math.floor(t/3600),Math.floor(t/60)%60,t%60,Number(e%m))}var V=class n extends u.LibObject{className="java.time.LocalDateTime";date;time;constructor(e,t,a){super(e),this.date=t,this.time=a}*javaString(){return Ge(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&this.date.naturalOrder(e,t.date)===0&&t.time.nanoOfDay===this.time.nanoOfDay}*contentHash(){return(yield*this.date.contentHash())^(yield*this.time.contentHash())}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot invoke "java.time.chrono.ChronoLocalDateTime.toLocalDate()" because "other" is null\');let a=t;return this.date.naturalOrder(e,a.date)||this.time.naturalOrder(e,a.time)}get epochNanos(){return BigInt(this.date.epochDay)*O+this.time.nanoOfDay}#t(e,t,a){return t===this.date&&a===this.time?this:new n(e.hash(),t,a)}plusNanosExact(e,t){if(t===0n)return this;let a=this.time.nanoOfDay+t,i=Te(a,O),r=i===0n?this.date:Y(e,this.date.epochDay+Number(i));return this.#t(e,r,Z(e,Ce(a,O)))}#e(e,t){return this.#t(e,t,this.time)}#n(e,t){return this.#t(e,this.date,t)}"toLocalDate()"(){return this.date}"toLocalTime()"(){return this.time}"getYear()"(){return this.date.year}"getMonthValue()"(){return this.date.month}"getMonth()"(e){return this.date["getMonth()"](e)}"getDayOfMonth()"(){return this.date.day}"getDayOfYear()"(){return this.date["getDayOfYear()"]()}"getDayOfWeek()"(e){return this.date["getDayOfWeek()"](e)}"getHour()"(){return this.time.hour}"getMinute()"(){return this.time.minute}"getSecond()"(){return this.time.second}"getNano()"(){return this.time.nano}"plusYears(long)"(e,t){return this.#e(e,this.date["plusYears(long)"](e,t))}"plusMonths(long)"(e,t){return this.#e(e,this.date["plusMonths(long)"](e,t))}"plusWeeks(long)"(e,t){return this.#e(e,this.date["plusWeeks(long)"](e,t))}"plusDays(long)"(e,t){return this.#e(e,this.date["plusDays(long)"](e,t))}"plusHours(long)"(e,t){return this.plusNanosExact(e,h(t)*3600n*m)}"plusMinutes(long)"(e,t){return this.plusNanosExact(e,h(t)*60n*m)}"plusSeconds(long)"(e,t){return this.plusNanosExact(e,h(t)*m)}"plusNanos(long)"(e,t){return this.plusNanosExact(e,h(t))}"minusYears(long)"(e,t){return this.#e(e,this.date["minusYears(long)"](e,t))}"minusMonths(long)"(e,t){return this.#e(e,this.date["minusMonths(long)"](e,t))}"minusWeeks(long)"(e,t){return this.#e(e,this.date["minusWeeks(long)"](e,t))}"minusDays(long)"(e,t){return this.#e(e,this.date["minusDays(long)"](e,t))}"minusHours(long)"(e,t){return this.plusNanosExact(e,-h(t)*3600n*m)}"minusMinutes(long)"(e,t){return this.plusNanosExact(e,-h(t)*60n*m)}"minusSeconds(long)"(e,t){return this.plusNanosExact(e,-h(t)*m)}"minusNanos(long)"(e,t){return this.plusNanosExact(e,-h(t))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,We);let i=a;return oe(i)?this.plusNanosExact(e,h(t)*j(i)):this.#e(e,this.date["plus(long,TemporalUnit)"](e,t,a))}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,u.K.normLong(-h(t)),a)}"plus(TemporalAmount)"(e,t){return t instanceof B?this.#e(e,this.date["plus(TemporalAmount)"](e,t)):t===null?e.fail(l,"amountToAdd"):W(e,this,t,1)}"minus(TemporalAmount)"(e,t){return t instanceof B?this.#e(e,this.date["minus(TemporalAmount)"](e,t)):t===null?e.fail(l,"amountToSubtract"):W(e,this,t,-1)}"withYear(int)"(e,t){return this.#e(e,this.date["withYear(int)"](e,t))}"withMonth(int)"(e,t){return this.#e(e,this.date["withMonth(int)"](e,t))}"withDayOfMonth(int)"(e,t){return this.#e(e,this.date["withDayOfMonth(int)"](e,t))}"withDayOfYear(int)"(e,t){return this.#e(e,this.date["withDayOfYear(int)"](e,t))}"withHour(int)"(e,t){return this.#n(e,this.time["withHour(int)"](e,t))}"withMinute(int)"(e,t){return this.#n(e,this.time["withMinute(int)"](e,t))}"withSecond(int)"(e,t){return this.#n(e,this.time["withSecond(int)"](e,t))}"withNano(int)"(e,t){return this.#n(e,this.time["withNano(int)"](e,t))}"truncatedTo(TemporalUnit)"(e,t){return this.#n(e,this.time.truncated(e,t))}"isBefore(LocalDateTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalDateTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"isEqual(LocalDateTime)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.chrono.ChronoLocalDateTime.toLocalTime()" because "other" is null\'):(0,u.bool)(this.naturalOrder(e,t)===0)}"compareTo(LocalDateTime)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=Be(e,t);if(a===null)return e.fail(l,Le);let r=a;if(oe(r))return u.K.normLong(A(e,(i.epochNanos-this.epochNanos)/j(r)));let o=i.date;return o.epochDay>this.date.epochDay&&i.time.nanoOfDay<this.time.nanoOfDay?o=Y(e,o.epochDay-1):o.epochDay<this.date.epochDay&&i.time.nanoOfDay>this.time.nanoOfDay&&(o=Y(e,o.epochDay+1)),this.date.until(e,o,r)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}},T=(n,e,t)=>new V(n.hash(),e,t),G=class n extends u.LibObject{className="java.time.Duration";seconds;nanos;constructor(e,t,a){super(e),this.seconds=t,this.nanos=a}get total(){return this.seconds*m+BigInt(this.nanos)}*javaString(){if(this.seconds===0n&&this.nanos===0)return"PT0S";let e=this.seconds<0n&&this.nanos>0,t=e?this.seconds+1n:this.seconds,a=t/3600n,i=t%3600n/60n,r=t%60n,o="PT";if(a!==0n&&(o+=`${a}H`),i!==0n&&(o+=`${i}M`),r===0n&&this.nanos===0&&o.length>2)return o;if(o+=e&&r===0n?"-0":String(r),this.nanos>0){let s=String(e?1e9-this.nanos:this.nanos).padStart(9,"0").replace(/0+$/,"");o+=`.${s}`}return o+"S"}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.seconds===this.seconds&&t.nanos===this.nanos}*contentHash(){return(0,u.longHash)(u.K.normLong(this.seconds))+51*this.nanos|0}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot read field "seconds" because "otherDuration" is null\');let a=this.total,i=t.total;return a<i?-1:a>i?1:0}#t(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.Duration.getSeconds()" because "duration" is null\'):t}"getSeconds()"(){return u.K.normLong(this.seconds)}"getNano()"(){return this.nanos}"isZero()"(){return(0,u.bool)(this.seconds===0n&&this.nanos===0)}"isNegative()"(){return(0,u.bool)(this.seconds<0n)}"isPositive()"(){return(0,u.bool)(this.total>0n)}"plus(Duration)"(e,t){return D(e,this.total+this.#t(e,t).total)}"minus(Duration)"(e,t){return D(e,this.total-this.#t(e,t).total)}"plus(long,TemporalUnit)"(e,t,a){return D(e,this.total+be(e,t,a))}"minus(long,TemporalUnit)"(e,t,a){return D(e,this.total-be(e,t,a))}#e(e,t,a){let i=a>=m?A(e,h(t)*(a/m))*m:h(t)*a;return D(e,this.total+i)}"plusDays(long)"(e,t){return this.#e(e,t,O)}"plusHours(long)"(e,t){return this.#e(e,t,3600n*m)}"plusMinutes(long)"(e,t){return this.#e(e,t,60n*m)}"plusSeconds(long)"(e,t){return this.#e(e,t,m)}"plusMillis(long)"(e,t){return this.#e(e,t,1000000n)}"plusNanos(long)"(e,t){return this.#e(e,t,1n)}"minusDays(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),O)}"minusHours(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),3600n*m)}"minusMinutes(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),60n*m)}"minusSeconds(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),m)}"minusMillis(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),1000000n)}"minusNanos(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),1n)}"multipliedBy(long)"(e,t){return D(e,this.total*h(t))}"dividedBy(long)"(e,t){let a=h(t);return a===0n?e.fail(ee,"Cannot divide by zero"):D(e,this.total/a)}"dividedBy(Duration)"(e,t){if(t===null)return e.fail(l,"divisor");let a=t.total;return a===0n?e.fail(ee,"Cannot divide by zero"):u.K.normLong(A(e,this.total/a))}"negated()"(e){return D(e,-this.total)}"abs()"(e){return this.seconds<0n?D(e,-this.total):this}"withSeconds(long)"(e,t){return new n(e.hash(),h(t),this.nanos)}"withNanos(int)"(e,t){return E(e,"NanoOfSecond",t,0,999999999),new n(e.hash(),this.seconds,t)}"truncatedTo(TemporalUnit)"(e,t){if(t===null)return e.fail(l,"unit");let a=t;if(a.name==="SECONDS"&&(this.seconds>=0n||this.nanos===0))return new n(e.hash(),this.seconds,0);if(a.name==="NANOS")return this;let i=j(a);if(i===null)return e.fail(I,"Unit is too large to be used for truncation");let r=this.seconds%86400n*m+BigInt(this.nanos);return D(e,this.total+r/i*i-r)}"toDays()"(){return u.K.normLong(this.seconds/86400n)}"toHours()"(){return u.K.normLong(this.seconds/3600n)}"toMinutes()"(){return u.K.normLong(this.seconds/60n)}"toSeconds()"(){return u.K.normLong(this.seconds)}"toMillis()"(e){return u.K.normLong(A(e,this.total/1000000n))}"toNanos()"(e){return u.K.normLong(A(e,this.total))}"toDaysPart()"(){return u.K.normLong(this.seconds/86400n)}"toHoursPart()"(){return Number(this.seconds/3600n%24n)}"toMinutesPart()"(){return Number(this.seconds/60n%60n)}"toSecondsPart()"(){return Number(this.seconds%60n)}"toMillisPart()"(){return Math.floor(this.nanos/1e6)}"toNanosPart()"(){return this.nanos}"compareTo(Duration)"(e,t){return this.naturalOrder(e,t)}};function D(n,e){return new G(n.hash(),A(n,Te(e,m)),Number(Ce(e,m)))}function be(n,e,t){if(t===null)return n.fail(l,"unit");let a=j(t);return a===null?n.fail(I,"Unit must not have an estimated duration"):(a>=m&&A(n,h(e)*(a/m)),h(e)*a)}function st(n,e){let t=/^([-+]?)P(?:([-+]?\\d+)D)?(T(?:([-+]?\\d+)H)?(?:([-+]?\\d+)M)?(?:([-+]?)(\\d+)(?:[.,](\\d{0,9}))?S)?)?$/i.exec(e),a=t?.[3];if(!t||t[2]===void 0&&a===void 0||a?.toUpperCase()==="T")return n.fail(ve,"Text cannot be parsed to a Duration");let i=o=>o===void 0?0n:BigInt(o),r=i(t[2])*O+i(t[4])*3600n*m+i(t[5])*60n*m;if(t[7]!==void 0){let o=BigInt(t[7])*m+BigInt((t[8]??"").padEnd(9,"0")||"0");r+=t[6]==="-"?-o:o}return D(n,t[1]==="-"?-r:r)}function ut(n,e,t){return e===null?n.fail(l,\'Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "startInclusive" is null\'):e instanceof y?D(n,Fe(n,t).nanoOfDay-e.nanoOfDay):e instanceof V?D(n,Be(n,t).epochNanos-e.epochNanos):(xe(n,t),n.fail(I,"Unsupported unit: Seconds"))}function Ie(){let n=new Date;return{date:[n.getFullYear(),n.getMonth()+1,n.getDate()],time:[n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()*1e6]}}var lt="yuMLdDEHhkKmsSan",mt="GuyDMLdQqYwWEecFaBhKkHmsSAnNVvzOXxZpg",ht={y:"YearOfEra",u:"Year",M:"MonthOfYear",L:"MonthOfYear",d:"DayOfMonth",D:"DayOfYear",E:"DayOfWeek",H:"HourOfDay",h:"ClockHourOfAmPm",k:"ClockHourOfDay",K:"HourOfAmPm",m:"MinuteOfHour",s:"SecondOfMinute",S:"NanoOfSecond",n:"NanoOfSecond",a:"AmPmOfDay"},ct="yuMLdDE",se=class extends u.LibObject{className="java.time.format.DateTimeFormatter";parts;strict;constructor(e,t,a){super(e),this.parts=t,this.strict=a}*javaString(e){return e.limitation("printing a DateTimeFormatter (the JDK\'s description of its fields)")}"format(TemporalAccessor)"(e,t){return t===null?e.fail(l,"temporal"):new u.K.JString(this.format(e,t))}format(e,t){let a=t instanceof R?t:t instanceof V?t.date:null,i=t instanceof y?t:t instanceof V?t.time:null,r="";for(let o of this.parts){if(o.kind==="literal"){r+=o.text;continue}if(o.kind==="iso-time"){if(!i)return e.fail(I,"Unsupported field: HourOfDay");let v=N=>String(N).padStart(2,"0");r+=`${v(i.hour)}:${v(i.minute)}:${v(i.second)}`,i.nano&&(r+="."+String(i.nano).padStart(9,"0").replace(/0+$/,""));continue}let s=o.count,g=ct.includes(o.letter);if(g&&!a||!g&&!i)return e.fail(I,`Unsupported field: ${ht[o.letter]}`);let f=a,c=i,b=v=>s===1?String(v):String(v).padStart(s,"0");switch(o.letter){case"y":case"u":{if(o.letter==="y"&&f.year<=0)return e.limitation("formatting a year before 1 CE with the pattern letter y");if(s===2)r+=String(F(f.year,100)).padStart(2,"0");else{let v=String(Math.abs(f.year)).padStart(s===1?1:s,"0");r+=f.year<0?`-${v}`:s>=4&&v.length>s?`+${v}`:v}break}case"M":case"L":r+=s===1?String(f.month):s===2?String(f.month).padStart(2,"0"):he(f.month,s);break;case"d":r+=b(f.day);break;case"D":{let v=f.epochDay-re(f.year,1,1)+1;r+=String(v).padStart(s,"0");break}case"E":{let v=pe[F(f.epochDay+3,7)];r+=s<=3?ie(v).slice(0,3):s===4?ie(v):v[0];break}case"H":r+=b(c.hour);break;case"h":r+=b(c.hour%12||12);break;case"k":r+=b(c.hour||24);break;case"K":r+=b(c.hour%12);break;case"m":r+=b(c.minute);break;case"s":r+=b(c.second);break;case"S":r+=String(c.nano).padStart(9,"0").slice(0,s);break;case"n":r+=b(c.nano);break;case"a":r+=c.hour<12?"AM":"PM";break}}return r}#t(e,t){let a=f=>e.fail(ve,f),i=f=>a(`Text \'${t}\' could not be parsed at index ${f}`),r=0,o={},s=f=>{let c=f;for(;c<t.length&&t.charCodeAt(c)>=48&&t.charCodeAt(c)<=57;)c++;return c-f},g=f=>s(f)>=2?Number(t.slice(f,f+2)):null;for(let f=0;f<this.parts.length;f++){let c=this.parts[f];if(c.kind==="literal"){t.startsWith(c.text,r)||i(r),r+=c.text.length;continue}if(c.kind==="iso-time"){let N=g(r);N===null&&i(r),t[r+2]!==":"&&i(r+2);let d=g(r+3);if(d===null&&i(r+3),o.hourOfDay=N,o.minute=d,r+=5,t[r]===":"&&g(r+1)!==null&&(o.second=g(r+1),r+=3,t[r]===".")){let p=Math.min(s(r+1),9);o.nano=Number(t.slice(r+1,r+1+p).padEnd(9,"0")),r+=1+p}continue}let b=0;for(let N=f+1;N<this.parts.length;N++){let d=this.parts[N];if(d.kind!=="field")break;if(d.count===2&&"MLdyHhkKms".includes(d.letter))b+=2;else if(d.letter==="S")b+=d.count;else break}let v=s(r);if((c.letter==="M"||c.letter==="L")&&c.count>2){let N=x.findIndex((d,p)=>t.startsWith(he(p+1,c.count),r));N<0&&i(r),o.month=N+1,r+=he(N+1,c.count).length;continue}switch(c.letter){case"y":case"u":{let N=1,d=r;c.count!==2&&(t[r]==="+"||t[r]==="-")&&(N=t[r]==="-"?-1:1,d++);let p=s(d)-b;if(c.count===2){v<2&&i(r),o.year=2e3+Number(t.slice(r,r+2)),r+=2;break}let S=c.count>=4?4:c.count;p<S&&i(r),c.count>=4&&p>4&&d===r&&i(r),o.year=N*Number(t.slice(d,d+Math.min(p,10))),r=d+Math.min(p,10);break}case"M":case"L":case"d":case"H":case"h":case"k":case"K":case"m":case"s":{let N=c.count===2?2:Math.max(1,Math.min(v-b,2));(v<N||N<1)&&i(r);let d=Number(t.slice(r,r+N)),p={M:"month",L:"month",d:"day",H:"hourOfDay",h:"clockHourOfAmPm",k:"clockHourOfDay",K:"hourOfAmPm",m:"minute",s:"second"}[c.letter];o[p]=d,r+=N;break}case"S":{v<c.count&&i(r),o.nano=Number(t.slice(r,r+c.count).padEnd(9,"0")),r+=c.count;break}case"a":{let N=t.startsWith("AM",r);!N&&!t.startsWith("PM",r)&&i(r),o.amPm=N?0:1,r+=2;break}default:return e.limitation(`parsing with the pattern letter ${c.letter}`)}}return r<t.length&&a(`Text \'${t}\' could not be parsed, unparsed text found at index ${r}`),o}parse(e,t,a){let i=this.#t(e,t),r=d=>e.fail(ve,`Text \'${t}\' could not be parsed: ${d}`,{className:M,message:d}),o=(d,p,S,J,qe=`${S} - ${J}`)=>{p!==void 0&&(p<S||p>J)&&r(`Invalid value for ${d} (valid values ${qe}): ${p}`)},s=null;if(i.year!==void 0||i.month!==void 0||i.day!==void 0){if(i.year===void 0||i.month===void 0||i.day===void 0)return e.limitation("parsing a date without a year, a month and a day");let{year:d,month:p}=i,S=i.day;o("Year",d,ne,ae),o("MonthOfYear",p,1,12),o("DayOfMonth",S,1,31,"1 - 28/31");let J=_(p,k(d));S>J&&(this.strict?r(S===29?`Invalid date \'February 29\' as \'${d}\' is not a leap year`:`Invalid date \'${x[p-1]} ${S}\'`):S=J),s=new R(e.hash(),d,p,S)}let f=i.hourOfDay;i.clockHourOfDay!==void 0&&((this.strict||i.clockHourOfDay!==0)&&o("ClockHourOfDay",i.clockHourOfDay,1,24),f=i.clockHourOfDay===24?0:i.clockHourOfDay);let c=i.hourOfAmPm;if(i.clockHourOfAmPm!==void 0&&((this.strict||i.clockHourOfAmPm!==0)&&o("ClockHourOfAmPm",i.clockHourOfAmPm,1,12),c=i.clockHourOfAmPm===12?0:i.clockHourOfAmPm),c!==void 0){if(o("HourOfAmPm",c,0,11),i.amPm===void 0)return e.limitation("parsing an hour of AM/PM (h or K) without the AM/PM (a)");f=i.amPm*12+c}let b=null;if(f!==void 0){if(o("HourOfDay",f,0,23),o("MinuteOfHour",i.minute,0,59),o("SecondOfMinute",i.second,0,59),i.second!==void 0&&i.minute===void 0)return e.limitation("parsing seconds without minutes");b=new y(e.hash(),f,i.minute??0,i.second??0,i.nano??0)}else if(i.minute!==void 0||i.second!==void 0||i.nano!==void 0)return e.limitation("parsing a time without its hour");let v=a==="LocalDate"?s:a==="LocalTime"?b:s&&b?T(e,s,b):null;if(v)return v;let N=s&&b?`${H(s)}T${X(b)}`:s?H(s):b?X(b):null;return r(`Unable to obtain ${a} from TemporalAccessor: {},ISO${N?` resolved to ${N}`:""} of type java.time.format.Parsed`)}};function he(n,e){let t=x[n-1];return e===3?ie(t).slice(0,3):e===4?ie(t):t[0]}function ft(n,e){let t=[],a,i=r=>{let o=t[t.length-1];o?.kind==="literal"?o.text+=r:t.push({kind:"literal",text:r})};for(let r=0;r<e.length;){let o=e[r];if(/[a-zA-Z]/.test(o)){let s=1;for(;e[r+s]===o;)s++;if(mt.includes(o)||n.fail(P,`Unknown pattern letter: ${o}`),!lt.includes(o)){a??=o,r+=s;continue}o==="S"&&s>9&&n.fail(P,`Minimum width must be from 0 to 9 inclusive but was ${s}`);let g={y:19,u:19,M:5,L:5,d:2,D:3,E:5,H:2,h:2,k:2,K:2,m:2,s:2,S:9,n:19,a:1}[o];s>g&&n.fail(P,`Too many pattern letters: ${o}`),o==="L"&&s<3?t.push({kind:"field",letter:"M",count:s}):t.push({kind:"field",letter:o,count:s}),r+=s}else if(o==="\'"){if(e[r+1]==="\'"){i("\'"),r+=2;continue}let s="",g=r+1;for(;;)if(g>=e.length&&n.fail(P,`Pattern ends with an incomplete string literal: ${e}`),e[g]==="\'"){if(e[g+1]!=="\'")break;s+="\'",g+=2}else s+=e[g++];i(s),r=g+1}else o==="{"||o==="}"||o==="#"?n.fail(P,`Pattern includes reserved character: \'${o}\'`):o==="["||o==="]"?n.limitation("optional sections ([ and ]) in a DateTimeFormatter pattern"):(i(o),r++)}return a&&n.limitation(`the DateTimeFormatter pattern letter ${a}`),new se(n.hash(),t,!1)}var _e=new WeakMap,$e=[{kind:"field",letter:"u",count:4},{kind:"literal",text:"-"},{kind:"field",letter:"M",count:2},{kind:"literal",text:"-"},{kind:"field",letter:"d",count:2}],dt={date:$e,time:[{kind:"iso-time"}],dateTime:[...$e,{kind:"literal",text:"T"},{kind:"iso-time"}]};function $(n,e){let t=_e.get(n);return t||_e.set(n,t={}),t[e]??=new se(n.hash(),dt[e],!0)}var ce=(n,e,t)=>e===null?n.fail(l,t):e.value,q=(n,e,t)=>e===null?n.fail(l,t):e instanceof u.K.JString?e.value:e.text,fe=(n,e)=>e===null?n.fail(l,"formatter"):e,de=(n,e)=>e===null?n.fail(l,"month"):e.ordinal+1;function Ne(n,e,t,a){let i={};return t.forEach((r,o)=>i[`${n}.${r}`]=s=>e(s)[o]),i[`${n}.values()`]=r=>new u.K.JArray(3,e(r).slice(),r.hash(),a),i[`${n}.valueOf(String)`]=(r,[o])=>o===null?r.fail(l,"Name is null"):e(r).find(g=>g.name===o.value)??r.fail(P,`No enum constant ${a.slice(2,-1)}.${o.value}`),i}var Je={...Ne("DayOfWeek",K,pe,"[Ljava.time.DayOfWeek;"),...Ne("Month",z,x,"[Ljava.time.Month;"),...Ne("ChronoUnit",He,De,"[Ljava.time.temporal.ChronoUnit;"),"DayOfWeek.of(int)":(n,[e])=>e<1||e>7?n.fail(M,`Invalid value for DayOfWeek: ${e}`):K(n)[e-1],"Month.of(int)":(n,[e])=>e<1||e>12?n.fail(M,`Invalid value for MonthOfYear: ${e}`):z(n)[e-1],"LocalDate.of(int,int,int)":(n,[e,t,a])=>w(n,e,t,a),"LocalDate.of(int,Month,int)":(n,[e,t,a])=>t===null?n.fail(l,"month"):w(n,e,t.ordinal+1,a),"LocalDate.ofEpochDay(long)":(n,[e])=>Y(n,Number(e)),"LocalDate.ofYearDay(int,int)":(n,[e,t])=>Ye(n,e,t),"LocalDate.parse(String)":(n,[e])=>$(n,"date").parse(n,ce(n,e,"text"),"LocalDate"),"LocalDate.parse(String,DateTimeFormatter)":(n,[e,t])=>{let a=ce(n,e,"text");return fe(n,t).parse(n,a,"LocalDate")},"LocalDate.now()":n=>{let e=new Date;return new R(n.hash(),e.getFullYear(),e.getMonth()+1,e.getDate())},"LocalDate.MIN":n=>new R(n.hash(),ne,1,1),"LocalDate.MAX":n=>new R(n.hash(),ae,12,31),"LocalDate.EPOCH":n=>new R(n.hash(),1970,1,1),"Period.of(int,int,int)":(n,[e,t,a])=>L(n,e,t,a),"Period.ofDays(int)":(n,[e])=>L(n,0,0,e),"Period.ofWeeks(int)":(n,[e])=>L(n,0,0,U(n,e*7)),"Period.ofMonths(int)":(n,[e])=>L(n,0,e,0),"Period.ofYears(int)":(n,[e])=>L(n,e,0,0),"Period.ZERO":n=>L(n,0,0,0),"Period.between(LocalDate,LocalDate)":(n,[e,t])=>e===null||t===null?n.fail(l,null):je(n,e,t),"DateTimeFormatter.ofPattern(String)":(n,[e])=>ft(n,ce(n,e,"pattern")),"DateTimeFormatter.ISO_LOCAL_DATE":n=>$(n,"date"),"DateTimeFormatter.ISO_DATE":n=>$(n,"date"),"DateTimeFormatter.ISO_LOCAL_TIME":n=>$(n,"time"),"DateTimeFormatter.ISO_LOCAL_DATE_TIME":n=>$(n,"dateTime"),"LocalTime.of(int,int)":(n,[e,t])=>C(n,e,t),"LocalTime.of(int,int,int)":(n,[e,t,a])=>C(n,e,t,a),"LocalTime.of(int,int,int,int)":(n,[e,t,a,i])=>C(n,e,t,a,i),"LocalTime.ofSecondOfDay(long)":(n,[e])=>{let t=h(e);return t<0n||t>86399n?n.fail(M,`Invalid value for SecondOfDay (valid values 0 - 86399): ${t}`):Z(n,t*m)},"LocalTime.ofNanoOfDay(long)":(n,[e])=>Z(n,h(e)),"LocalTime.parse(CharSequence)":(n,[e])=>$(n,"time").parse(n,q(n,e,"text"),"LocalTime"),"LocalTime.parse(CharSequence,DateTimeFormatter)":(n,[e,t])=>{let a=q(n,e,"text");return fe(n,t).parse(n,a,"LocalTime")},"LocalTime.now()":n=>{let[e,t,a,i]=Ie().time;return new y(n.hash(),e,t,a,i)},"LocalTime.MIN":n=>new y(n.hash(),0,0,0,0),"LocalTime.MIDNIGHT":n=>new y(n.hash(),0,0,0,0),"LocalTime.NOON":n=>new y(n.hash(),12,0,0,0),"LocalTime.MAX":n=>new y(n.hash(),23,59,59,999999999),"LocalDateTime.of(int,int,int,int,int)":(n,[e,t,a,i,r])=>T(n,w(n,e,t,a),C(n,i,r)),"LocalDateTime.of(int,int,int,int,int,int)":(n,[e,t,a,i,r,o])=>T(n,w(n,e,t,a),C(n,i,r,o)),"LocalDateTime.of(int,int,int,int,int,int,int)":(n,[e,t,a,i,r,o,s])=>T(n,w(n,e,t,a),C(n,i,r,o,s)),"LocalDateTime.of(int,Month,int,int,int)":(n,[e,t,a,i,r])=>T(n,w(n,e,de(n,t),a),C(n,i,r)),"LocalDateTime.of(int,Month,int,int,int,int)":(n,[e,t,a,i,r,o])=>T(n,w(n,e,de(n,t),a),C(n,i,r,o)),"LocalDateTime.of(int,Month,int,int,int,int,int)":(n,[e,t,a,i,r,o,s])=>T(n,w(n,e,de(n,t),a),C(n,i,r,o,s)),"LocalDateTime.of(LocalDate,LocalTime)":(n,[e,t])=>e===null?n.fail(l,"date"):t===null?n.fail(l,"time"):T(n,e,t),"LocalDateTime.parse(CharSequence)":(n,[e])=>$(n,"dateTime").parse(n,q(n,e,"text"),"LocalDateTime"),"LocalDateTime.parse(CharSequence,DateTimeFormatter)":(n,[e,t])=>{let a=q(n,e,"text");return fe(n,t).parse(n,a,"LocalDateTime")},"LocalDateTime.now()":n=>{let{date:e,time:t}=Ie();return T(n,new R(n.hash(),...e),new y(n.hash(),...t))},"LocalDateTime.MIN":n=>T(n,new R(n.hash(),ne,1,1),new y(n.hash(),0,0,0,0)),"LocalDateTime.MAX":n=>T(n,new R(n.hash(),ae,12,31),new y(n.hash(),23,59,59,999999999)),"Duration.ZERO":n=>new G(n.hash(),0n,0),"Duration.ofDays(long)":(n,[e])=>D(n,A(n,h(e)*86400n)*m),"Duration.ofHours(long)":(n,[e])=>D(n,A(n,h(e)*3600n)*m),"Duration.ofMinutes(long)":(n,[e])=>D(n,A(n,h(e)*60n)*m),"Duration.ofSeconds(long)":(n,[e])=>D(n,h(e)*m),"Duration.ofSeconds(long,long)":(n,[e,t])=>D(n,h(e)*m+h(t)),"Duration.ofMillis(long)":(n,[e])=>D(n,h(e)*1000000n),"Duration.ofNanos(long)":(n,[e])=>D(n,h(e)),"Duration.of(long,TemporalUnit)":(n,[e,t])=>D(n,be(n,e,t)),"Duration.between(Temporal,Temporal)":(n,[e,t])=>ut(n,e,t),"Duration.parse(CharSequence)":(n,[e])=>st(n,q(n,e,"text"))};(globalThis.javaOnlineCompilerLibraryParts??={})["java-library-time"]=Je;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};